@saihu/common 1.1.76 → 1.1.77
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.
|
@@ -7,13 +7,15 @@ export declare enum Exchanges {
|
|
|
7
7
|
MASTER_DATA = "master.data",
|
|
8
8
|
OPER_LOG_EXCHANGE = "oper_log_exchange",
|
|
9
9
|
SCM_DATA = "scm.data",
|
|
10
|
+
SCM_PROCUREMENT_ORDER = "scm.procurement.order",
|
|
10
11
|
IM_PROCUREMENT_ORDER_DLX = "im.procurement.order.dlx",
|
|
11
12
|
IM_INVENTORY_DLX = "im.inventory.dlx",
|
|
12
13
|
IM_SALES_ORDER_DLX = "im.sales.order.dlx",
|
|
13
14
|
IM_DATA_DLX = "im.data.dlx",
|
|
14
15
|
MASTER_DATA_DLX = "master.data.dlx",
|
|
15
16
|
OPER_LOG_EXCHANGE_DLX = "oper_log_exchange.dlx",
|
|
16
|
-
SCM_DATA_DLX = "scm.data.dlx"
|
|
17
|
+
SCM_DATA_DLX = "scm.data.dlx",
|
|
18
|
+
SCM_PROCUREMENT_ORDER_DLX = "scm.procurement.order.dlx"
|
|
17
19
|
}
|
|
18
20
|
export declare const RoutingKeys: {
|
|
19
21
|
readonly "im.procurement.order": {
|
|
@@ -78,6 +80,14 @@ export declare const RoutingKeys: {
|
|
|
78
80
|
readonly SCM_GOOD_UPSERTED: "scm.good.upserted.dlq";
|
|
79
81
|
readonly SCM_GOOD_DELETED: "scm.good.deleted.dlq";
|
|
80
82
|
};
|
|
83
|
+
readonly "scm.procurement.order": {
|
|
84
|
+
readonly SCM_PROCUREMENT_ORDER_RECEIVED: "scm.procurement.order.received";
|
|
85
|
+
readonly SCM_PROCUREMENT_ORDER_DELETED: "scm.procurement.order.deleted";
|
|
86
|
+
};
|
|
87
|
+
readonly "scm.procurement.order.dlx": {
|
|
88
|
+
readonly SCM_PROCUREMENT_ORDER_RECEIVED: "scm.procurement.order.received.dlq";
|
|
89
|
+
readonly SCM_PROCUREMENT_ORDER_DELETED: "scm.procurement.order.deleted.dlq";
|
|
90
|
+
};
|
|
81
91
|
readonly oper_log_exchange: {
|
|
82
92
|
readonly OPER_LOG_CREATED: "oper.log.created";
|
|
83
93
|
};
|
|
@@ -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;
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6Ed,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,CAmBzD,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,CAmBF,CAAC;AAEF,eAAO,MAAM,CAAC,GAAI,SAAS,MAAM,EAAE,IAAI,MAAM,WAAyB,CAAC"}
|
|
@@ -10,6 +10,7 @@ var Exchanges;
|
|
|
10
10
|
Exchanges["MASTER_DATA"] = "master.data";
|
|
11
11
|
Exchanges["OPER_LOG_EXCHANGE"] = "oper_log_exchange";
|
|
12
12
|
Exchanges["SCM_DATA"] = "scm.data";
|
|
13
|
+
Exchanges["SCM_PROCUREMENT_ORDER"] = "scm.procurement.order";
|
|
13
14
|
// DLX versions
|
|
14
15
|
Exchanges["IM_PROCUREMENT_ORDER_DLX"] = "im.procurement.order.dlx";
|
|
15
16
|
Exchanges["IM_INVENTORY_DLX"] = "im.inventory.dlx";
|
|
@@ -18,6 +19,7 @@ var Exchanges;
|
|
|
18
19
|
Exchanges["MASTER_DATA_DLX"] = "master.data.dlx";
|
|
19
20
|
Exchanges["OPER_LOG_EXCHANGE_DLX"] = "oper_log_exchange.dlx";
|
|
20
21
|
Exchanges["SCM_DATA_DLX"] = "scm.data.dlx";
|
|
22
|
+
Exchanges["SCM_PROCUREMENT_ORDER_DLX"] = "scm.procurement.order.dlx";
|
|
21
23
|
})(Exchanges || (exports.Exchanges = Exchanges = {}));
|
|
22
24
|
exports.RoutingKeys = {
|
|
23
25
|
[Exchanges.IM_PROCUREMENT_ORDER]: {
|
|
@@ -82,6 +84,14 @@ exports.RoutingKeys = {
|
|
|
82
84
|
SCM_GOOD_UPSERTED: 'scm.good.upserted.dlq',
|
|
83
85
|
SCM_GOOD_DELETED: 'scm.good.deleted.dlq',
|
|
84
86
|
},
|
|
87
|
+
[Exchanges.SCM_PROCUREMENT_ORDER]: {
|
|
88
|
+
SCM_PROCUREMENT_ORDER_RECEIVED: 'scm.procurement.order.received',
|
|
89
|
+
SCM_PROCUREMENT_ORDER_DELETED: 'scm.procurement.order.deleted',
|
|
90
|
+
},
|
|
91
|
+
[Exchanges.SCM_PROCUREMENT_ORDER_DLX]: {
|
|
92
|
+
SCM_PROCUREMENT_ORDER_RECEIVED: 'scm.procurement.order.received.dlq',
|
|
93
|
+
SCM_PROCUREMENT_ORDER_DELETED: 'scm.procurement.order.deleted.dlq',
|
|
94
|
+
},
|
|
85
95
|
[Exchanges.OPER_LOG_EXCHANGE]: {
|
|
86
96
|
OPER_LOG_CREATED: 'oper.log.created',
|
|
87
97
|
},
|
|
@@ -98,6 +108,7 @@ exports.ExchangeTypes = {
|
|
|
98
108
|
[Exchanges.OPER_LOG_EXCHANGE]: 'topic',
|
|
99
109
|
[Exchanges.IM_SALES_ORDER]: 'topic',
|
|
100
110
|
[Exchanges.SCM_DATA]: 'topic',
|
|
111
|
+
[Exchanges.SCM_PROCUREMENT_ORDER]: 'topic',
|
|
101
112
|
[Exchanges.IM_PROCUREMENT_ORDER_DLX]: 'topic',
|
|
102
113
|
[Exchanges.IM_INVENTORY_DLX]: 'topic',
|
|
103
114
|
[Exchanges.IM_SALES_ORDER_DLX]: 'topic',
|
|
@@ -105,6 +116,7 @@ exports.ExchangeTypes = {
|
|
|
105
116
|
[Exchanges.MASTER_DATA_DLX]: 'topic',
|
|
106
117
|
[Exchanges.OPER_LOG_EXCHANGE_DLX]: 'topic',
|
|
107
118
|
[Exchanges.SCM_DATA_DLX]: 'topic',
|
|
119
|
+
[Exchanges.SCM_PROCUREMENT_ORDER_DLX]: 'topic',
|
|
108
120
|
};
|
|
109
121
|
exports.ExchangeOptions = {
|
|
110
122
|
[Exchanges.IM_PROCUREMENT_ORDER]: { durable: true },
|
|
@@ -114,6 +126,7 @@ exports.ExchangeOptions = {
|
|
|
114
126
|
[Exchanges.OPER_LOG_EXCHANGE]: { durable: true, messageTtl: 86400000 },
|
|
115
127
|
[Exchanges.IM_SALES_ORDER]: { durable: true },
|
|
116
128
|
[Exchanges.SCM_DATA]: { durable: true },
|
|
129
|
+
[Exchanges.SCM_PROCUREMENT_ORDER]: { durable: true },
|
|
117
130
|
[Exchanges.IM_PROCUREMENT_ORDER_DLX]: { durable: true },
|
|
118
131
|
[Exchanges.IM_INVENTORY_DLX]: { durable: true },
|
|
119
132
|
[Exchanges.IM_SALES_ORDER_DLX]: { durable: true },
|
|
@@ -121,6 +134,7 @@ exports.ExchangeOptions = {
|
|
|
121
134
|
[Exchanges.MASTER_DATA_DLX]: { durable: true },
|
|
122
135
|
[Exchanges.OPER_LOG_EXCHANGE_DLX]: { durable: true },
|
|
123
136
|
[Exchanges.SCM_DATA_DLX]: { durable: true },
|
|
137
|
+
[Exchanges.SCM_PROCUREMENT_ORDER_DLX]: { durable: true },
|
|
124
138
|
};
|
|
125
139
|
const q = (service, rk) => `q.${rk}.${service}`; // e.g. q.procurement.order.delivered.imjobs
|
|
126
140
|
exports.q = q;
|