|
1
|
// TODO: Comment temporarely and we will re enable it in the near future #14478 |
|
2
|
// import { EventOptions } from "@medusajs/types" |
|
3
|
import { buildEventNamesFromEntityName } from "../event-bus" |
|
4
|
import { Modules } from "../modules-sdk" |
|
5
|
|
|
6
|
const eventBaseNames: [ |
|
7
|
"priceListRule", |
|
8
|
"priceList", |
|
9
|
"priceRule", |
|
10
|
"priceSet", |
|
11
|
"price" |
|
12
|
] = ["priceListRule", "priceList", "priceRule", "priceSet", "price"] |
|
13
|
|
|
14
|
export const PricingEvents = buildEventNamesFromEntityName( |
|
15
|
eventBaseNames, |
|
16
|
Modules.PRICING |
|
17
|
) |
|
18
|
|
|
19
|
// TODO: Comment temporarely and we will re enable it in the near future #14478 |
|
20
|
// declare module "@medusajs/types" { |
|
21
|
// export interface EventBusEventsOptions { |
|
22
|
// // Price List Rule events |
|
23
|
// [PricingEvents.PRICE_LIST_RULE_CREATED]?: EventOptions |
|
24
|
// [PricingEvents.PRICE_LIST_RULE_UPDATED]?: EventOptions |
|
25
|
// [PricingEvents.PRICE_LIST_RULE_DELETED]?: EventOptions |
|
26
|
// [PricingEvents.PRICE_LIST_RULE_RESTORED]?: EventOptions |
|
27
|
// [PricingEvents.PRICE_LIST_RULE_ATTACHED]?: EventOptions |
|
28
|
// [PricingEvents.PRICE_LIST_RULE_DETACHED]?: EventOptions |
|
29
|
|
|
30
|
// // Price List events |
|
31
|
// [PricingEvents.PRICE_LIST_CREATED]?: EventOptions |
|
32
|
// [PricingEvents.PRICE_LIST_UPDATED]?: EventOptions |
|
33
|
// [PricingEvents.PRICE_LIST_DELETED]?: EventOptions |
|
34
|
// [PricingEvents.PRICE_LIST_RESTORED]?: EventOptions |
|
35
|
// [PricingEvents.PRICE_LIST_ATTACHED]?: EventOptions |
|
36
|
// [PricingEvents.PRICE_LIST_DETACHED]?: EventOptions |
|
37
|
|
|
38
|
// // Price Rule events |
|
39
|
// [PricingEvents.PRICE_RULE_CREATED]?: EventOptions |
|
40
|
// [PricingEvents.PRICE_RULE_UPDATED]?: EventOptions |
|
41
|
// [PricingEvents.PRICE_RULE_DELETED]?: EventOptions |
|
42
|
// [PricingEvents.PRICE_RULE_RESTORED]?: EventOptions |
|
43
|
// [PricingEvents.PRICE_RULE_ATTACHED]?: EventOptions |
|
44
|
// [PricingEvents.PRICE_RULE_DETACHED]?: EventOptions |
|
45
|
|
|
46
|
// // Price Set events |
|
47
|
// [PricingEvents.PRICE_SET_CREATED]?: EventOptions |
|
48
|
// [PricingEvents.PRICE_SET_UPDATED]?: EventOptions |
|
49
|
// [PricingEvents.PRICE_SET_DELETED]?: EventOptions |
|
50
|
// [PricingEvents.PRICE_SET_RESTORED]?: EventOptions |
|
51
|
// [PricingEvents.PRICE_SET_ATTACHED]?: EventOptions |
|
52
|
// [PricingEvents.PRICE_SET_DETACHED]?: EventOptions |
|
53
|
|
|
54
|
// // Price events |
|
55
|
// [PricingEvents.PRICE_CREATED]?: EventOptions |
|
56
|
// [PricingEvents.PRICE_UPDATED]?: EventOptions |
|
57
|
// [PricingEvents.PRICE_DELETED]?: EventOptions |
|
58
|
// [PricingEvents.PRICE_RESTORED]?: EventOptions |
|
59
|
// [PricingEvents.PRICE_ATTACHED]?: EventOptions |
|
60
|
// [PricingEvents.PRICE_DETACHED]?: EventOptions |
|
61
|
// } |
|
62
|
// } |