fix(core-flows,utils): move fulfillment workflow events (#12338)
Move fulfillment workflow events to be with other workflow events. Could be considered a breaking change for users using the previously `FulfillmentEvents` variable
This commit is contained in:
@@ -8,7 +8,7 @@ import {
|
||||
OrderWorkflow,
|
||||
ProductVariantDTO,
|
||||
} from "@medusajs/framework/types"
|
||||
import { FulfillmentEvents, MathBN, Modules } from "@medusajs/framework/utils"
|
||||
import { FulfillmentWorkflowEvents, MathBN, Modules } from "@medusajs/framework/utils"
|
||||
import {
|
||||
WorkflowData,
|
||||
WorkflowResponse,
|
||||
@@ -243,7 +243,7 @@ export const createOrderShipmentWorkflow = createWorkflow(
|
||||
)
|
||||
|
||||
emitEventStep({
|
||||
eventName: FulfillmentEvents.SHIPMENT_CREATED,
|
||||
eventName: FulfillmentWorkflowEvents.SHIPMENT_CREATED,
|
||||
data: { id: shipment.id, no_notification: input.no_notification },
|
||||
})
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ import {
|
||||
ProductVariantDTO,
|
||||
RegisterOrderDeliveryDTO,
|
||||
} from "@medusajs/framework/types"
|
||||
import { FulfillmentEvents, MathBN, Modules } from "@medusajs/framework/utils"
|
||||
import { FulfillmentWorkflowEvents, MathBN, Modules } from "@medusajs/framework/utils"
|
||||
import {
|
||||
WorkflowData,
|
||||
WorkflowResponse,
|
||||
@@ -261,7 +261,7 @@ export const markOrderFulfillmentAsDeliveredWorkflow = createWorkflow(
|
||||
)
|
||||
|
||||
emitEventStep({
|
||||
eventName: FulfillmentEvents.DELIVERY_CREATED,
|
||||
eventName: FulfillmentWorkflowEvents.DELIVERY_CREATED,
|
||||
data: { id: deliveredFulfillment.id },
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user