chore(product): Update the events emitted from the product module (#9557)

This commit is contained in:
Adrien de Peretti
2024-10-14 14:19:32 +02:00
committed by GitHub
parent b40fa6353e
commit d8b7f90689
6 changed files with 117 additions and 127 deletions
@@ -114,4 +114,22 @@ export const eventBuilders = {
object: "product_category",
eventsEnum: ProductEvents,
}),
createdProductCollection: moduleEventBuilderFactory({
source: Modules.PRODUCT,
action: CommonEvents.CREATED,
object: "product_collection",
eventName: ProductEvents.PRODUCT_COLLECTION_CREATED,
}),
updatedProductCollection: moduleEventBuilderFactory({
source: Modules.PRODUCT,
action: CommonEvents.UPDATED,
object: "product_collection",
eventName: ProductEvents.PRODUCT_COLLECTION_UPDATED,
}),
deletedProductCollection: moduleEventBuilderFactory({
source: Modules.PRODUCT,
action: CommonEvents.DELETED,
object: "product_collection",
eventName: ProductEvents.PRODUCT_COLLECTION_DELETED,
}),
}