feat(core-flows,medusa,types,utils): add/remove fulfillment shipping option rules (#6698)

what:

- adds fulfillment shipping option rules batch endpoint
- remove fulfillment shipping option rules batch endpoint
- breaks my British based education to not call it fulfilment with a single "l"
This commit is contained in:
Riqwan Thamir authored and GitHub committed 2024-03-14 16:02:50 +00:00
1 parent 480b4744af
commit cc1b66842c
24 files changed
+556 -19

No files matched your search

+2 -1
View File
@@ -1,4 +1,5 @@
export * from "./common"
export * from "./mutations"
export * from "./service"
export * from "./provider"
export * from "./service"
export * from "./workflows"
@@ -1,6 +1,16 @@
export type ShippingOptionRuleOperatorType =
| "in"
| "eq"
| "ne"
| "gt"
| "gte"
| "lt"
| "lte"
| "nin"
export interface CreateShippingOptionRuleDTO {
attribute: string
operator: "in" | "eq" | "ne" | "gt" | "gte" | "lt" | "lte" | "nin"
operator: ShippingOptionRuleOperatorType
value: string | string[]
shipping_option_id: string
}
@@ -0,0 +1,9 @@
import { CreateShippingOptionRuleDTO } from "./mutations"
export type AddFulfillmentShippingOptionRulesWorkflowDTO = {
data: CreateShippingOptionRuleDTO[]
}
export type RemoveFulfillmentShippingOptionRulesWorkflowDTO = {
ids: string[]
}