@saihu/common 1.2.0 → 1.2.2
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.
|
@@ -54,7 +54,7 @@ let UnifiedExceptionFilter = UnifiedExceptionFilter_1 = class UnifiedExceptionFi
|
|
|
54
54
|
errorCode = exception.code;
|
|
55
55
|
details = null; // Hide infra details from user
|
|
56
56
|
}
|
|
57
|
-
else if (exception.status) {
|
|
57
|
+
else if (typeof exception.status === 'number') {
|
|
58
58
|
// Handle standard NestJS HttpExceptions (like 401 Unauthorized)
|
|
59
59
|
statusCode = exception.status;
|
|
60
60
|
message = exception.message;
|
|
@@ -95,10 +95,20 @@ export declare const RoutingKeys: {
|
|
|
95
95
|
readonly SCM_GOOD_DELETED: "scm.good.deleted";
|
|
96
96
|
readonly SCM_SHOP_UPSERTED: "scm.shop.upserted";
|
|
97
97
|
readonly SCM_SHOP_DELETED: "scm.shop.deleted";
|
|
98
|
+
readonly SCM_REGION_UPSERTED: "scm.region.upserted";
|
|
99
|
+
readonly SCM_REGION_DELETED: "scm.region.deleted";
|
|
100
|
+
readonly SCM_CITY_UPSERTED: "scm.city.upserted";
|
|
101
|
+
readonly SCM_CITY_DELETED: "scm.city.deleted";
|
|
98
102
|
};
|
|
99
103
|
readonly "scm.data.dlx": {
|
|
100
104
|
readonly SCM_GOOD_UPSERTED: "scm.good.upserted.dlq";
|
|
101
105
|
readonly SCM_GOOD_DELETED: "scm.good.deleted.dlq";
|
|
106
|
+
readonly SCM_SHOP_UPSERTED: "scm.shop.upserted.dlq";
|
|
107
|
+
readonly SCM_SHOP_DELETED: "scm.shop.deleted.dlq";
|
|
108
|
+
readonly SCM_REGION_UPSERTED: "scm.region.upserted.dlq";
|
|
109
|
+
readonly SCM_REGION_DELETED: "scm.region.deleted.dlq";
|
|
110
|
+
readonly SCM_CITY_UPSERTED: "scm.city.upserted.dlq";
|
|
111
|
+
readonly SCM_CITY_DELETED: "scm.city.deleted.dlq";
|
|
102
112
|
};
|
|
103
113
|
readonly "scm.procurement.order": {
|
|
104
114
|
readonly SCM_PROCUREMENT_ORDER_CREATED: "scm.procurement.order.created";
|
|
@@ -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,iBAAiB,sBAAsB;IACvC,QAAQ,aAAa;IACrB,qBAAqB,0BAA0B;IAC/C,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,MAAM,WAAW;IAGjB,wBAAwB,6BAA6B;IACrD,gBAAgB,qBAAqB;IACrC,kBAAkB,uBAAuB;IACzC,WAAW,gBAAgB;IAC3B,qBAAqB,0BAA0B;IAC/C,YAAY,iBAAiB;IAC7B,yBAAyB,8BAA8B;IACvD,YAAY,iBAAiB;IAC7B,WAAW,gBAAgB;IAC3B,UAAU,eAAe;CAC1B;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,cAAc,mBAAmB;IACjC,OAAO,YAAY;IACnB,iBAAiB,sBAAsB;IACvC,QAAQ,aAAa;IACrB,qBAAqB,0BAA0B;IAC/C,QAAQ,aAAa;IACrB,OAAO,YAAY;IACnB,MAAM,WAAW;IAGjB,wBAAwB,6BAA6B;IACrD,gBAAgB,qBAAqB;IACrC,kBAAkB,uBAAuB;IACzC,WAAW,gBAAgB;IAC3B,qBAAqB,0BAA0B;IAC/C,YAAY,iBAAiB;IAC7B,yBAAyB,8BAA8B;IACvD,YAAY,iBAAiB;IAC7B,WAAW,gBAAgB;IAC3B,UAAU,eAAe;CAC1B;AAED,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmHd,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,CAsBzD,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,CAsBF,CAAC;AAEF,eAAO,MAAM,CAAC,GAAI,SAAS,MAAM,EAAE,IAAI,MAAM,WAAyB,CAAC"}
|
|
@@ -99,10 +99,20 @@ exports.RoutingKeys = {
|
|
|
99
99
|
SCM_GOOD_DELETED: 'scm.good.deleted',
|
|
100
100
|
SCM_SHOP_UPSERTED: 'scm.shop.upserted',
|
|
101
101
|
SCM_SHOP_DELETED: 'scm.shop.deleted',
|
|
102
|
+
SCM_REGION_UPSERTED: 'scm.region.upserted',
|
|
103
|
+
SCM_REGION_DELETED: 'scm.region.deleted',
|
|
104
|
+
SCM_CITY_UPSERTED: 'scm.city.upserted',
|
|
105
|
+
SCM_CITY_DELETED: 'scm.city.deleted',
|
|
102
106
|
},
|
|
103
107
|
[Exchanges.SCM_DATA_DLX]: {
|
|
104
108
|
SCM_GOOD_UPSERTED: 'scm.good.upserted.dlq',
|
|
105
109
|
SCM_GOOD_DELETED: 'scm.good.deleted.dlq',
|
|
110
|
+
SCM_SHOP_UPSERTED: 'scm.shop.upserted.dlq',
|
|
111
|
+
SCM_SHOP_DELETED: 'scm.shop.deleted.dlq',
|
|
112
|
+
SCM_REGION_UPSERTED: 'scm.region.upserted.dlq',
|
|
113
|
+
SCM_REGION_DELETED: 'scm.region.deleted.dlq',
|
|
114
|
+
SCM_CITY_UPSERTED: 'scm.city.upserted.dlq',
|
|
115
|
+
SCM_CITY_DELETED: 'scm.city.deleted.dlq',
|
|
106
116
|
},
|
|
107
117
|
[Exchanges.SCM_PROCUREMENT_ORDER]: {
|
|
108
118
|
SCM_PROCUREMENT_ORDER_CREATED: 'scm.procurement.order.created',
|