|
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: ["inventoryItem", "reservationItem", "inventoryLevel"] = [ |
|
7
|
"inventoryItem", |
|
8
|
"reservationItem", |
|
9
|
"inventoryLevel", |
|
10
|
] |
|
11
|
|
|
12
|
export const InventoryEvents = buildEventNamesFromEntityName( |
|
13
|
eventBaseNames, |
|
14
|
Modules.INVENTORY |
|
15
|
) |
|
16
|
|
|
17
|
// TODO: Comment temporarely and we will re enable it in the near future #14478 |
|
18
|
// declare module "@medusajs/types" { |
|
19
|
// export interface EventBusEventsOptions { |
|
20
|
// // Inventory Item events |
|
21
|
// [InventoryEvents.INVENTORY_ITEM_CREATED]?: EventOptions |
|
22
|
// [InventoryEvents.INVENTORY_ITEM_UPDATED]?: EventOptions |
|
23
|
// [InventoryEvents.INVENTORY_ITEM_DELETED]?: EventOptions |
|
24
|
// [InventoryEvents.INVENTORY_ITEM_RESTORED]?: EventOptions |
|
25
|
// [InventoryEvents.INVENTORY_ITEM_ATTACHED]?: EventOptions |
|
26
|
// [InventoryEvents.INVENTORY_ITEM_DETACHED]?: EventOptions |
|
27
|
|
|
28
|
// // Reservation Item events |
|
29
|
// [InventoryEvents.RESERVATION_ITEM_CREATED]?: EventOptions |
|
30
|
// [InventoryEvents.RESERVATION_ITEM_UPDATED]?: EventOptions |
|
31
|
// [InventoryEvents.RESERVATION_ITEM_DELETED]?: EventOptions |
|
32
|
// [InventoryEvents.RESERVATION_ITEM_RESTORED]?: EventOptions |
|
33
|
// [InventoryEvents.RESERVATION_ITEM_ATTACHED]?: EventOptions |
|
34
|
// [InventoryEvents.RESERVATION_ITEM_DETACHED]?: EventOptions |
|
35
|
|
|
36
|
// // Inventory Level events |
|
37
|
// [InventoryEvents.INVENTORY_LEVEL_CREATED]?: EventOptions |
|
38
|
// [InventoryEvents.INVENTORY_LEVEL_UPDATED]?: EventOptions |
|
39
|
// [InventoryEvents.INVENTORY_LEVEL_DELETED]?: EventOptions |
|
40
|
// [InventoryEvents.INVENTORY_LEVEL_RESTORED]?: EventOptions |
|
41
|
// [InventoryEvents.INVENTORY_LEVEL_ATTACHED]?: EventOptions |
|
42
|
// [InventoryEvents.INVENTORY_LEVEL_DETACHED]?: EventOptions |
|
43
|
// } |
|
44
|
// } |