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:
@@ -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[]
|
||||
}
|
||||
Reference in New Issue
Block a user