ProductWorkflowEvents from @mercurjs/core/workflows. Subscribe to them to notify stores, sync external systems, or reindex search.
Product events
Each event is emitted once per product. Payloads come from theemitEventStep calls in packages/core/src/workflows/product/workflows.
Subscribe to an event
Write a subscriber that listens for one of the events. This one logs the rejection reason for each rejected product.src/subscribers/product-rejected.ts
Events from Medusa
Medusa’s own product workflows emit their events alongside Mercur’s. These matter for the catalog:product.updated: from Medusa’supdateProductsWorkflow, whichassignProductsToCategoryWorkflowand the admin product update both runproduct.deleted: from Medusa’sdeleteProductsWorkflowproduct-variant.created: fromcreateProductVariantsWorkflow, which Mercur’s create workflow runs forvariants
product-change.* events, listed in the product edit events.