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:
Nicolas Gorga
2026-01-02 07:28:29 -03:00
committed by GitHub
parent 7e3ed913a6
commit bf4cc12545
5 changed files with 92 additions and 7 deletions

View File

@@ -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