feat(medusa, core-flows, types): Allow to update the rules from a shipping options (#7175)
**What** Add support for the following operations - update rules from the update shipping options end point - update rules from the batch update end point Also added some improvements, that can be revisited later - Add a rule value normalizer, jsonb will transform the input value to a [primitive](https://www.postgresql.org/docs/current/datatype-json.html#JSON-TYPE-MAPPING-TABLE) when possible meaning that passing `"true"` will result in storing `true` and not the string. The normalizer takes care of that
This commit is contained in:
1 parent
3affcc2525
commit
e26cda4b6a
11 files changed
+470
-41
No files matched your search
@@ -126,5 +126,6 @@ export const AdminUpdateShippingOption = z
|
||||
)
|
||||
.array()
|
||||
.optional(),
|
||||
rules: AdminUpdateShippingOptionRule.or(AdminCreateShippingOptionRule).array().optional(),
|
||||
})
|
||||
.strict()
|
||||
Reference in new issue
Block a user