feat: Product module events (#7598)
WIP, not ready to review **what** - add events - integration tests of emitted events - remove integration tests on auto generated services in favor of module method integration tests
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
import { buildEventNamesFromEntityName } from "../event-bus"
|
||||
import { Modules } from "../modules-sdk"
|
||||
|
||||
const eventBaseNames: [
|
||||
"product",
|
||||
"productVariant",
|
||||
"productOption",
|
||||
"productType",
|
||||
"productTag"
|
||||
] = ["product", "productVariant", "productOption", "productType", "productTag"]
|
||||
|
||||
export const ProductEvents = buildEventNamesFromEntityName(
|
||||
eventBaseNames,
|
||||
Modules.PRODUCT
|
||||
)
|
||||
@@ -4,3 +4,5 @@ export enum ProductStatus {
|
||||
PUBLISHED = "published",
|
||||
REJECTED = "rejected",
|
||||
}
|
||||
|
||||
export * from "./events"
|
||||
|
||||
Reference in New Issue
Block a user