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
2024-03-14 16:02:50 +00:00
committed by GitHub
parent 480b4744af
commit cc1b66842c
24 changed files with 556 additions and 19 deletions
+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[]
}