@saihu/common 1.1.84 → 1.1.86

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -8,6 +8,7 @@ export declare enum Exchanges {
8
8
  OPER_LOG_EXCHANGE = "oper_log_exchange",
9
9
  SCM_DATA = "scm.data",
10
10
  SCM_PROCUREMENT_ORDER = "scm.procurement.order",
11
+ SCM_SORT = "scm.sort",
11
12
  IM_PROCUREMENT_ORDER_DLX = "im.procurement.order.dlx",
12
13
  IM_INVENTORY_DLX = "im.inventory.dlx",
13
14
  IM_SALES_ORDER_DLX = "im.sales.order.dlx",
@@ -15,7 +16,8 @@ export declare enum Exchanges {
15
16
  MASTER_DATA_DLX = "master.data.dlx",
16
17
  OPER_LOG_EXCHANGE_DLX = "oper_log_exchange.dlx",
17
18
  SCM_DATA_DLX = "scm.data.dlx",
18
- SCM_PROCUREMENT_ORDER_DLX = "scm.procurement.order.dlx"
19
+ SCM_PROCUREMENT_ORDER_DLX = "scm.procurement.order.dlx",
20
+ SCM_SORT_DLX = "scm.sort.dlx"
19
21
  }
20
22
  export declare const RoutingKeys: {
21
23
  readonly "im.procurement.order": {
@@ -87,10 +89,12 @@ export declare const RoutingKeys: {
87
89
  readonly SCM_GOOD_DELETED: "scm.good.deleted.dlq";
88
90
  };
89
91
  readonly "scm.procurement.order": {
92
+ readonly SCM_PROCUREMENT_ORDER_CREATED: "scm.procurement.order.created";
90
93
  readonly SCM_PROCUREMENT_ORDER_RECEIVED: "scm.procurement.order.received";
91
94
  readonly SCM_PROCUREMENT_ORDER_DELETED: "scm.procurement.order.deleted";
92
95
  };
93
96
  readonly "scm.procurement.order.dlx": {
97
+ readonly SCM_PROCUREMENT_ORDER_CREATED: "scm.procurement.order.created.dlq";
94
98
  readonly SCM_PROCUREMENT_ORDER_RECEIVED: "scm.procurement.order.received.dlq";
95
99
  readonly SCM_PROCUREMENT_ORDER_DELETED: "scm.procurement.order.deleted.dlq";
96
100
  };
@@ -100,6 +104,16 @@ export declare const RoutingKeys: {
100
104
  readonly "oper_log_exchange.dlx": {
101
105
  readonly OPER_LOG_CREATED: "oper.log.created.dlq";
102
106
  };
107
+ readonly "scm.sort": {
108
+ readonly SORT_BATCH_CREATED: "sort.batch.created";
109
+ readonly SORT_BATCH_FINISHED: "sort.batch.finished";
110
+ readonly SORT_BATCH_DELETED: "sort.batch.deleted";
111
+ };
112
+ readonly "scm.sort.dlx": {
113
+ readonly SORT_BATCH_CREATED: "sort.batch.created.dlq";
114
+ readonly SORT_BATCH_DELETED: "sort.batch.deleted.dlq";
115
+ readonly SORT_BATCH_FINISHED: "sort.batch.finished.dlq";
116
+ };
103
117
  };
104
118
  export type RoutingKeysForExchange<E extends Exchanges> = (typeof RoutingKeys)[E][keyof (typeof RoutingKeys)[E]];
105
119
  export declare const ExchangeTypes: Record<Exchanges, ExchangeType>;
@@ -1 +1 @@
1
- {"version":3,"file":"topology.d.ts","sourceRoot":"","sources":["../../src/messaging/topology.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;AAErE,oBAAY,SAAS;IACnB,oBAAoB,yBAAyB;IAC7C,YAAY,iBAAiB;IAC7B,cAAc,mBAAmB;IACjC,OAAO,YAAY;IACnB,WAAW,gBAAgB;IAC3B,iBAAiB,sBAAsB;IACvC,QAAQ,aAAa;IACrB,qBAAqB,0BAA0B;IAG/C,wBAAwB,6BAA6B;IACrD,gBAAgB,qBAAqB;IACrC,kBAAkB,uBAAuB;IACzC,WAAW,gBAAgB;IAC3B,eAAe,oBAAoB;IACnC,qBAAqB,0BAA0B;IAC/C,YAAY,iBAAiB;IAC7B,yBAAyB,8BAA8B;CACxD;AAED,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmFd,CAAC;AAEX,MA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fd,CAAC;AAEX,MAAM,MAAM,sBAAsB,CAAC,CAAC,SAAS,SAAS,IACpD,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAEzD,eAAO,MAAM,aAAa,EAAE,MAAM,CAAC,SAAS,EAAE,YAAY,CAqBzD,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,MAAM,CAClC,SAAS,EACT;IACE,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB,CAoBF,CAAC;AAEF,eAAO,MAAM,CAAC,GAAI,SAAS,MAAM,EAAE,IAAI,MAAM,WAAyB,CAAC"}
@@ -11,6 +11,7 @@ var Exchanges;
11
11
  Exchanges["OPER_LOG_EXCHANGE"] = "oper_log_exchange";
12
12
  Exchanges["SCM_DATA"] = "scm.data";
13
13
  Exchanges["SCM_PROCUREMENT_ORDER"] = "scm.procurement.order";
14
+ Exchanges["SCM_SORT"] = "scm.sort";
14
15
  // DLX versions
15
16
  Exchanges["IM_PROCUREMENT_ORDER_DLX"] = "im.procurement.order.dlx";
16
17
  Exchanges["IM_INVENTORY_DLX"] = "im.inventory.dlx";
@@ -20,6 +21,7 @@ var Exchanges;
20
21
  Exchanges["OPER_LOG_EXCHANGE_DLX"] = "oper_log_exchange.dlx";
21
22
  Exchanges["SCM_DATA_DLX"] = "scm.data.dlx";
22
23
  Exchanges["SCM_PROCUREMENT_ORDER_DLX"] = "scm.procurement.order.dlx";
24
+ Exchanges["SCM_SORT_DLX"] = "scm.sort.dlx";
23
25
  })(Exchanges || (exports.Exchanges = Exchanges = {}));
24
26
  exports.RoutingKeys = {
25
27
  [Exchanges.IM_PROCUREMENT_ORDER]: {
@@ -91,10 +93,12 @@ exports.RoutingKeys = {
91
93
  SCM_GOOD_DELETED: 'scm.good.deleted.dlq',
92
94
  },
93
95
  [Exchanges.SCM_PROCUREMENT_ORDER]: {
96
+ SCM_PROCUREMENT_ORDER_CREATED: 'scm.procurement.order.created',
94
97
  SCM_PROCUREMENT_ORDER_RECEIVED: 'scm.procurement.order.received',
95
98
  SCM_PROCUREMENT_ORDER_DELETED: 'scm.procurement.order.deleted',
96
99
  },
97
100
  [Exchanges.SCM_PROCUREMENT_ORDER_DLX]: {
101
+ SCM_PROCUREMENT_ORDER_CREATED: 'scm.procurement.order.created.dlq',
98
102
  SCM_PROCUREMENT_ORDER_RECEIVED: 'scm.procurement.order.received.dlq',
99
103
  SCM_PROCUREMENT_ORDER_DELETED: 'scm.procurement.order.deleted.dlq',
100
104
  },
@@ -104,6 +108,16 @@ exports.RoutingKeys = {
104
108
  [Exchanges.OPER_LOG_EXCHANGE_DLX]: {
105
109
  OPER_LOG_CREATED: 'oper.log.created.dlq',
106
110
  },
111
+ [Exchanges.SCM_SORT]: {
112
+ SORT_BATCH_CREATED: 'sort.batch.created',
113
+ SORT_BATCH_FINISHED: 'sort.batch.finished',
114
+ SORT_BATCH_DELETED: 'sort.batch.deleted',
115
+ },
116
+ [Exchanges.SCM_SORT_DLX]: {
117
+ SORT_BATCH_CREATED: 'sort.batch.created.dlq',
118
+ SORT_BATCH_DELETED: 'sort.batch.deleted.dlq',
119
+ SORT_BATCH_FINISHED: 'sort.batch.finished.dlq',
120
+ },
107
121
  };
108
122
  exports.ExchangeTypes = {
109
123
  [Exchanges.IM_PROCUREMENT_ORDER]: 'topic',
@@ -115,6 +129,7 @@ exports.ExchangeTypes = {
115
129
  [Exchanges.IM_SALES_ORDER]: 'topic',
116
130
  [Exchanges.SCM_DATA]: 'topic',
117
131
  [Exchanges.SCM_PROCUREMENT_ORDER]: 'topic',
132
+ [Exchanges.SCM_SORT]: 'topic',
118
133
  [Exchanges.IM_PROCUREMENT_ORDER_DLX]: 'topic',
119
134
  [Exchanges.IM_INVENTORY_DLX]: 'topic',
120
135
  [Exchanges.IM_SALES_ORDER_DLX]: 'topic',
@@ -123,6 +138,7 @@ exports.ExchangeTypes = {
123
138
  [Exchanges.OPER_LOG_EXCHANGE_DLX]: 'topic',
124
139
  [Exchanges.SCM_DATA_DLX]: 'topic',
125
140
  [Exchanges.SCM_PROCUREMENT_ORDER_DLX]: 'topic',
141
+ [Exchanges.SCM_SORT_DLX]: 'topic',
126
142
  };
127
143
  exports.ExchangeOptions = {
128
144
  [Exchanges.IM_PROCUREMENT_ORDER]: { durable: true },
@@ -133,6 +149,8 @@ exports.ExchangeOptions = {
133
149
  [Exchanges.IM_SALES_ORDER]: { durable: true },
134
150
  [Exchanges.SCM_DATA]: { durable: true },
135
151
  [Exchanges.SCM_PROCUREMENT_ORDER]: { durable: true },
152
+ [Exchanges.SCM_SORT]: { durable: true },
153
+ [Exchanges.SCM_SORT_DLX]: { durable: true },
136
154
  [Exchanges.IM_PROCUREMENT_ORDER_DLX]: { durable: true },
137
155
  [Exchanges.IM_INVENTORY_DLX]: { durable: true },
138
156
  [Exchanges.IM_SALES_ORDER_DLX]: { durable: true },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@saihu/common",
3
- "version": "1.1.84",
3
+ "version": "1.1.86",
4
4
  "description": "Common utilities for NestJS applications",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",