refactor: rename workflow to singular (#10134)
This commit is contained in:
+7
-1
@@ -88,7 +88,7 @@ export const createOrdersWorkflowId = "create-orders"
|
||||
/**
|
||||
* This workflow creates an order.
|
||||
*/
|
||||
export const createOrdersWorkflow = createWorkflow(
|
||||
export const createOrderWorkflow = createWorkflow(
|
||||
createOrdersWorkflowId,
|
||||
(input: WorkflowData<CreateOrderDTO & AdditionalData>) => {
|
||||
const variantIds = transform({ input }, (data) => {
|
||||
@@ -189,3 +189,9 @@ export const createOrdersWorkflow = createWorkflow(
|
||||
})
|
||||
}
|
||||
)
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
* Instead use the singular name "createOrderWorkflow"
|
||||
*/
|
||||
export const createOrdersWorkflow = createOrderWorkflow
|
||||
@@ -22,7 +22,7 @@ export * from "./create-fulfillment"
|
||||
export * from "./create-order-change"
|
||||
export * from "./create-order-change-actions"
|
||||
export * from "./create-order-payment-collection"
|
||||
export * from "./create-orders"
|
||||
export * from "./create-order"
|
||||
export * from "./create-shipment"
|
||||
export * from "./decline-order-change"
|
||||
export * from "./delete-order-change"
|
||||
|
||||
Reference in New Issue
Block a user