@saihu/common 1.1.42 → 1.1.44
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.
|
@@ -5,7 +5,8 @@ export declare enum Exchanges {
|
|
|
5
5
|
IM_SALES_ORDER = "im.sales.order",
|
|
6
6
|
IM_DATA = "im.data",
|
|
7
7
|
MASTER_DATA = "master.data",
|
|
8
|
-
OPER_LOG_EXCHANGE = "oper_log_exchange"
|
|
8
|
+
OPER_LOG_EXCHANGE = "oper_log_exchange",
|
|
9
|
+
SCM_DATA = "scm.data"
|
|
9
10
|
}
|
|
10
11
|
export declare const RoutingKeys: {
|
|
11
12
|
readonly "im.procurement.order": {
|
|
@@ -19,7 +20,7 @@ export declare const RoutingKeys: {
|
|
|
19
20
|
readonly INVENTORY_COUNT_DELETED: "inventory.count.deleted";
|
|
20
21
|
};
|
|
21
22
|
readonly "im.sales.order": {
|
|
22
|
-
readonly
|
|
23
|
+
readonly SALES_ORDER_UPSERTED: "sales.orders.upserted";
|
|
23
24
|
readonly SALES_ORDER_DELETED: "sales.order.deleted";
|
|
24
25
|
};
|
|
25
26
|
readonly "master.data": {
|
|
@@ -34,6 +35,10 @@ export declare const RoutingKeys: {
|
|
|
34
35
|
readonly SHOP_SPECIALTY_ITEM_UPSERTED: "shop.specialty.item.upserted";
|
|
35
36
|
readonly SHOP_SPECIALTY_ITEM_DELETED: "shop.specialty.item.deleted";
|
|
36
37
|
};
|
|
38
|
+
readonly "scm.data": {
|
|
39
|
+
readonly SCM_GOOD_UPSERTED: "scm.good.upserted";
|
|
40
|
+
readonly SCM_GOOD_DELETED: "scm.good.deleted";
|
|
41
|
+
};
|
|
37
42
|
readonly oper_log_exchange: {
|
|
38
43
|
readonly OPER_LOG_CREATED: "oper.log.created";
|
|
39
44
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"topology.d.ts","sourceRoot":"","sources":["../../src/messaging/topology.ts"],"names":[],"mappings":"AAAA,MA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10
10
|
Exchanges["MASTER_DATA"] = "master.data";
|
|
11
11
|
Exchanges["OPER_LOG_EXCHANGE"] = "oper_log_exchange";
|
|
12
|
+
Exchanges["SCM_DATA"] = "scm.data";
|
|
12
13
|
})(Exchanges || (exports.Exchanges = Exchanges = {}));
|
|
13
14
|
exports.RoutingKeys = {
|
|
14
15
|
[Exchanges.IM_PROCUREMENT_ORDER]: {
|
|
@@ -22,7 +23,7 @@ exports.RoutingKeys = {
|
|
|
22
23
|
INVENTORY_COUNT_DELETED: 'inventory.count.deleted',
|
|
23
24
|
},
|
|
24
25
|
[Exchanges.IM_SALES_ORDER]: {
|
|
25
|
-
|
|
26
|
+
SALES_ORDER_UPSERTED: 'sales.orders.upserted',
|
|
26
27
|
SALES_ORDER_DELETED: 'sales.order.deleted',
|
|
27
28
|
},
|
|
28
29
|
[Exchanges.MASTER_DATA]: {
|
|
@@ -37,6 +38,10 @@ exports.RoutingKeys = {
|
|
|
37
38
|
SHOP_SPECIALTY_ITEM_UPSERTED: 'shop.specialty.item.upserted',
|
|
38
39
|
SHOP_SPECIALTY_ITEM_DELETED: 'shop.specialty.item.deleted',
|
|
39
40
|
},
|
|
41
|
+
[Exchanges.SCM_DATA]: {
|
|
42
|
+
SCM_GOOD_UPSERTED: 'scm.good.upserted',
|
|
43
|
+
SCM_GOOD_DELETED: 'scm.good.deleted',
|
|
44
|
+
},
|
|
40
45
|
[Exchanges.OPER_LOG_EXCHANGE]: {
|
|
41
46
|
// Add your oper log routing keys here
|
|
42
47
|
OPER_LOG_CREATED: 'oper.log.created',
|
|
@@ -50,6 +55,7 @@ exports.ExchangeTypes = {
|
|
|
50
55
|
[Exchanges.MASTER_DATA]: 'topic',
|
|
51
56
|
[Exchanges.OPER_LOG_EXCHANGE]: 'direct',
|
|
52
57
|
[Exchanges.IM_SALES_ORDER]: 'topic',
|
|
58
|
+
[Exchanges.SCM_DATA]: 'topic',
|
|
53
59
|
};
|
|
54
60
|
exports.ExchangeOptions = {
|
|
55
61
|
[Exchanges.IM_PROCUREMENT_ORDER]: { durable: true },
|
|
@@ -58,6 +64,7 @@ exports.ExchangeOptions = {
|
|
|
58
64
|
[Exchanges.MASTER_DATA]: { durable: true },
|
|
59
65
|
[Exchanges.OPER_LOG_EXCHANGE]: { durable: true, messageTtl: 86400000 },
|
|
60
66
|
[Exchanges.IM_SALES_ORDER]: { durable: true },
|
|
67
|
+
[Exchanges.SCM_DATA]: { durable: true },
|
|
61
68
|
};
|
|
62
69
|
const q = (service, rk) => `q.${rk}.${service}`; // e.g. q.procurement.order.delivered.imjobs
|
|
63
70
|
exports.q = q;
|