@saihu/common 1.1.30 → 1.1.31
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.
|
@@ -4,11 +4,17 @@ export declare enum Exchanges {
|
|
|
4
4
|
SHOP = "shop",
|
|
5
5
|
OPER_LOG_EXCHANGE = "oper_log_exchange"
|
|
6
6
|
}
|
|
7
|
-
export declare
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
7
|
+
export declare const RoutingKeys: {
|
|
8
|
+
readonly "im.procurement.order": {
|
|
9
|
+
readonly RETURN_APPROVED: "procurement.order.return.approved";
|
|
10
|
+
readonly FINALIZED: "procurement.order.finalized";
|
|
11
|
+
};
|
|
12
|
+
readonly shop: {
|
|
13
|
+
readonly CREATED: "shop.created";
|
|
14
|
+
};
|
|
15
|
+
readonly oper_log_exchange: {};
|
|
16
|
+
};
|
|
17
|
+
export type RoutingKeysForExchange<E extends Exchanges> = (typeof RoutingKeys)[E][keyof (typeof RoutingKeys)[E]];
|
|
12
18
|
export declare const ExchangeTypes: Record<Exchanges, ExchangeType>;
|
|
13
19
|
export declare const ExchangeOptions: Record<Exchanges, {
|
|
14
20
|
durable: boolean;
|
|
@@ -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,IAAI,SAAS;IACb,iBAAiB,sBAAsB;CACxC;AAED,
|
|
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,IAAI,SAAS;IACb,iBAAiB,sBAAsB;CACxC;AAED,eAAO,MAAM,WAAW;;;;;;;;;CAWd,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,CAIzD,CAAC;AAEF,eAAO,MAAM,eAAe,EAAE,MAAM,CAClC,SAAS,EACT;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAAC,UAAU,CAAC,EAAE,OAAO,CAAA;CAAE,CAK/D,CAAC;AAEF,eAAO,MAAM,CAAC,GAAI,SAAS,MAAM,EAAE,IAAI,MAAM,WAAyB,CAAC"}
|
|
@@ -7,12 +7,18 @@ var Exchanges;
|
|
|
7
7
|
Exchanges["SHOP"] = "shop";
|
|
8
8
|
Exchanges["OPER_LOG_EXCHANGE"] = "oper_log_exchange";
|
|
9
9
|
})(Exchanges || (exports.Exchanges = Exchanges = {}));
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
10
|
+
exports.RoutingKeys = {
|
|
11
|
+
[Exchanges.IM_PROCUREMENT_ORDER]: {
|
|
12
|
+
RETURN_APPROVED: 'procurement.order.return.approved',
|
|
13
|
+
FINALIZED: 'procurement.order.finalized',
|
|
14
|
+
},
|
|
15
|
+
[Exchanges.SHOP]: {
|
|
16
|
+
CREATED: 'shop.created',
|
|
17
|
+
},
|
|
18
|
+
[Exchanges.OPER_LOG_EXCHANGE]: {
|
|
19
|
+
// Add your oper log routing keys here
|
|
20
|
+
},
|
|
21
|
+
};
|
|
16
22
|
exports.ExchangeTypes = {
|
|
17
23
|
[Exchanges.IM_PROCUREMENT_ORDER]: 'topic',
|
|
18
24
|
[Exchanges.SHOP]: 'topic',
|