implement events to the pricing module (#7584)
This commit is contained in:
27
packages/core/utils/src/pricing/events.ts
Normal file
27
packages/core/utils/src/pricing/events.ts
Normal file
@@ -0,0 +1,27 @@
|
||||
import { buildEventNamesFromEntityName } from "../event-bus"
|
||||
import { Modules } from "../modules-sdk"
|
||||
|
||||
const eventBaseNames: [
|
||||
"priceListRuleValue",
|
||||
"priceListRule",
|
||||
"priceList",
|
||||
"priceRule",
|
||||
"priceSetRuleType",
|
||||
"priceSet",
|
||||
"price",
|
||||
"ruleType"
|
||||
] = [
|
||||
"priceListRuleValue",
|
||||
"priceListRule",
|
||||
"priceList",
|
||||
"priceRule",
|
||||
"priceSetRuleType",
|
||||
"priceSet",
|
||||
"price",
|
||||
"ruleType",
|
||||
]
|
||||
|
||||
export const PricingEvents = buildEventNamesFromEntityName(
|
||||
eventBaseNames,
|
||||
Modules.PRICING
|
||||
)
|
||||
@@ -1,3 +1,4 @@
|
||||
export * from "./builders"
|
||||
export * from "./price-list"
|
||||
export * from "./rule-type"
|
||||
export * from "./events"
|
||||
|
||||
Reference in New Issue
Block a user