feat(core-flows,utils): Shipping options workflow events emission (#14388)
* Shipping options workflow events type * Emit shipping options workflow events * add changeset
This commit is contained in:
@@ -861,6 +861,46 @@ export const ShippingOptionTypeWorkflowEvents = {
|
||||
DELETED: "shipping-option-type.deleted",
|
||||
}
|
||||
|
||||
/**
|
||||
* @category Shipping Option
|
||||
* @customNamespace Fulfillment
|
||||
*/
|
||||
export const ShippingOptionWorkflowEvents = {
|
||||
/**
|
||||
* Emitted when shipping options are created.
|
||||
*
|
||||
* @eventPayload
|
||||
* ```ts
|
||||
* {
|
||||
* id, // The ID of the shipping option
|
||||
* }
|
||||
* ```
|
||||
*/
|
||||
CREATED: "shipping-option.created",
|
||||
/**
|
||||
* Emitted when shipping options are updated.
|
||||
*
|
||||
* @eventPayload
|
||||
* ```ts
|
||||
* {
|
||||
* id, // The ID of the shipping option
|
||||
* }
|
||||
* ```
|
||||
*/
|
||||
UPDATED: "shipping-option.updated",
|
||||
/**
|
||||
* Emitted when shipping options are deleted.
|
||||
*
|
||||
* @eventPayload
|
||||
* ```ts
|
||||
* {
|
||||
* id, // The ID of the shipping option
|
||||
* }
|
||||
* ```
|
||||
*/
|
||||
DELETED: "shipping-option.deleted",
|
||||
}
|
||||
|
||||
/**
|
||||
* @category Payment
|
||||
* @customNamespace Payment
|
||||
|
||||
Reference in New Issue
Block a user