refactor: rename workflow to singular (#10134)

This commit is contained in:
Harminder Virk
2024-11-18 14:58:30 +05:30
committed by GitHub
parent f5c580a661
commit 2c957c64be
2 changed files with 8 additions and 2 deletions
@@ -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"