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:
Adrien de Peretti
2024-06-06 11:47:38 +00:00
committed by GitHub
parent c3b6fc1d8e
commit 3fbb8aa671
20 changed files with 292 additions and 1756 deletions
+15
View File
@@ -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
)
+2
View File
@@ -4,3 +4,5 @@ export enum ProductStatus {
PUBLISHED = "published",
REJECTED = "rejected",
}
export * from "./events"