@saihu/common 1.1.39 → 1.1.40
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.
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export type ExchangeType = 'topic' | 'direct' | 'fanout' | 'headers';
|
|
2
2
|
export declare enum Exchanges {
|
|
3
3
|
IM_PROCUREMENT_ORDER = "im.procurement.order",
|
|
4
|
+
IM_INVENTORY = "im.inventory",
|
|
4
5
|
IM_DATA = "im.data",
|
|
5
6
|
MASTER_DATA = "master.data",
|
|
6
7
|
OPER_LOG_EXCHANGE = "oper_log_exchange"
|
|
@@ -12,6 +13,9 @@ export declare const RoutingKeys: {
|
|
|
12
13
|
readonly ORDER_FINALIZED: "procurement.order.finalized";
|
|
13
14
|
readonly ORDER_CHECK_PASSED: "procurement.order.check.passed";
|
|
14
15
|
};
|
|
16
|
+
readonly "im.inventory": {
|
|
17
|
+
readonly INVENTORY_COUNT_CREATED: "inventory.count.created";
|
|
18
|
+
};
|
|
15
19
|
readonly "master.data": {
|
|
16
20
|
readonly SHOP_UPSERTED: "shop.upserted";
|
|
17
21
|
};
|
|
@@ -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,OAAO,YAAY;IACnB,WAAW,gBAAgB;IAC3B,iBAAiB,sBAAsB;CACxC;AAED,eAAO,MAAM,WAAW
|
|
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,OAAO,YAAY;IACnB,WAAW,gBAAgB;IAC3B,iBAAiB,sBAAsB;CACxC;AAED,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;CA0Bd,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,CAMzD,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,CAOF,CAAC;AAEF,eAAO,MAAM,CAAC,GAAI,SAAS,MAAM,EAAE,IAAI,MAAM,WAAyB,CAAC"}
|
|
@@ -4,6 +4,7 @@ exports.q = exports.ExchangeOptions = exports.ExchangeTypes = exports.RoutingKey
|
|
|
4
4
|
var Exchanges;
|
|
5
5
|
(function (Exchanges) {
|
|
6
6
|
Exchanges["IM_PROCUREMENT_ORDER"] = "im.procurement.order";
|
|
7
|
+
Exchanges["IM_INVENTORY"] = "im.inventory";
|
|
7
8
|
Exchanges["IM_DATA"] = "im.data";
|
|
8
9
|
Exchanges["MASTER_DATA"] = "master.data";
|
|
9
10
|
Exchanges["OPER_LOG_EXCHANGE"] = "oper_log_exchange";
|
|
@@ -15,6 +16,9 @@ exports.RoutingKeys = {
|
|
|
15
16
|
ORDER_FINALIZED: 'procurement.order.finalized',
|
|
16
17
|
ORDER_CHECK_PASSED: 'procurement.order.check.passed',
|
|
17
18
|
},
|
|
19
|
+
[Exchanges.IM_INVENTORY]: {
|
|
20
|
+
INVENTORY_COUNT_CREATED: 'inventory.count.created',
|
|
21
|
+
},
|
|
18
22
|
[Exchanges.MASTER_DATA]: {
|
|
19
23
|
SHOP_UPSERTED: 'shop.upserted',
|
|
20
24
|
},
|
|
@@ -34,15 +38,17 @@ exports.RoutingKeys = {
|
|
|
34
38
|
};
|
|
35
39
|
exports.ExchangeTypes = {
|
|
36
40
|
[Exchanges.IM_PROCUREMENT_ORDER]: 'topic',
|
|
41
|
+
[Exchanges.IM_DATA]: 'topic',
|
|
42
|
+
[Exchanges.IM_INVENTORY]: 'topic',
|
|
37
43
|
[Exchanges.MASTER_DATA]: 'topic',
|
|
38
44
|
[Exchanges.OPER_LOG_EXCHANGE]: 'direct',
|
|
39
|
-
[Exchanges.IM_DATA]: 'topic',
|
|
40
45
|
};
|
|
41
46
|
exports.ExchangeOptions = {
|
|
42
47
|
[Exchanges.IM_PROCUREMENT_ORDER]: { durable: true },
|
|
48
|
+
[Exchanges.IM_INVENTORY]: { durable: true },
|
|
49
|
+
[Exchanges.IM_DATA]: { durable: true },
|
|
43
50
|
[Exchanges.MASTER_DATA]: { durable: true },
|
|
44
51
|
[Exchanges.OPER_LOG_EXCHANGE]: { durable: true, messageTtl: 86400000 },
|
|
45
|
-
[Exchanges.IM_DATA]: { durable: true },
|
|
46
52
|
};
|
|
47
53
|
const q = (service, rk) => `q.${rk}.${service}`; // e.g. q.procurement.order.delivered.imjobs
|
|
48
54
|
exports.q = q;
|