@estgbue/mezgeb 0.0.17 → 0.0.19
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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.module.d.ts","sourceRoot":"","sources":["../../../libs/mezgeb/src/mezgeb/client/client.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAU,MAAM,gBAAgB,CAAC;AAUvD,qBAaa,iBAAiB;
|
|
1
|
+
{"version":3,"file":"client.module.d.ts","sourceRoot":"","sources":["../../../libs/mezgeb/src/mezgeb/client/client.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAU,MAAM,gBAAgB,CAAC;AAUvD,qBAaa,iBAAiB;IAC5B,MAAM,CAAC,OAAO,IAAI,aAAa;CAehC"}
|
|
@@ -14,20 +14,19 @@ const microservices_1 = require("@nestjs/microservices");
|
|
|
14
14
|
const client_logger_config_1 = require("./client.logger.config");
|
|
15
15
|
const client_audit_interceptor_1 = require("./client-audit.interceptor");
|
|
16
16
|
const client_subscriber_1 = require("./client.subscriber");
|
|
17
|
-
const typeorm_1 = require("typeorm");
|
|
18
|
-
const typeorm_2 = require("@nestjs/typeorm");
|
|
17
|
+
const typeorm_1 = require("@nestjs/typeorm");
|
|
19
18
|
const mezgeb_enum_1 = require("../mezgeb.enum");
|
|
20
19
|
let AuditClientModule = AuditClientModule_1 = class AuditClientModule {
|
|
21
20
|
static forRoot() {
|
|
22
21
|
return {
|
|
23
22
|
module: AuditClientModule_1,
|
|
24
|
-
imports: [
|
|
23
|
+
imports: [],
|
|
25
24
|
providers: [
|
|
26
25
|
client_subscriber_1.ClientSubscriber,
|
|
27
26
|
{
|
|
28
27
|
provide: mezgeb_enum_1.AuditDatasource,
|
|
29
28
|
useFactory: (dataSource) => dataSource,
|
|
30
|
-
inject: [typeorm_1.
|
|
29
|
+
inject: [(0, typeorm_1.getDataSourceToken)()], // 🔑 correct token
|
|
31
30
|
},
|
|
32
31
|
],
|
|
33
32
|
exports: [client_subscriber_1.ClientSubscriber],
|
|
@@ -6,7 +6,7 @@ export declare enum EAuditLogRequestMethod {
|
|
|
6
6
|
PATCH = "PATCH",
|
|
7
7
|
EVENT = "EVENT"
|
|
8
8
|
}
|
|
9
|
-
export declare const AuditDatasource
|
|
9
|
+
export declare const AuditDatasource = "AUDIT_DATASOURCE";
|
|
10
10
|
export declare const ClientLoggerInterceptorKey = "AUDIT_LOGGER_RMQ_CLIENT";
|
|
11
11
|
export declare const AuditLoggerRMQQueue = "audit";
|
|
12
12
|
export declare const AuditLoggerRMQTopic = "audit-log-topic";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mezgeb.enum.d.ts","sourceRoot":"","sources":["../../libs/mezgeb/src/mezgeb/mezgeb.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,sBAAsB;IAChC,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,KAAK,UAAU;CAChB;AAGD,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"mezgeb.enum.d.ts","sourceRoot":"","sources":["../../libs/mezgeb/src/mezgeb/mezgeb.enum.ts"],"names":[],"mappings":"AAAA,oBAAY,sBAAsB;IAChC,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,KAAK,UAAU;CAChB;AAGD,eAAO,MAAM,eAAe,qBAAqB,CAAC;AAClD,eAAO,MAAM,0BAA0B,4BAA4B,CAAC;AACpE,eAAO,MAAM,mBAAmB,UAAU,CAAC;AAC3C,eAAO,MAAM,mBAAmB,oBAAoB,CAAC;AACrD,eAAO,MAAM,uBAAuB,yBAAyB,CAAC;AAC9D,eAAO,MAAM,mBAAmB,eAAe,CAAC;AAEhD,eAAO,MAAM,oBAAoB,2BAA2B,CAAC;AAC7D,eAAO,MAAM,kBAAkB,yBAAyB,CAAC;AACzD,eAAO,MAAM,oBAAoB,2BAA2B,CAAC;AAC7D,eAAO,MAAM,eAAe,qBAAqB,CAAC;AAClD,eAAO,MAAM,YAAY,kBAAkB,CAAC;AAC5C,eAAO,MAAM,cAAc,kBAAkB,CAAC"}
|
|
@@ -10,7 +10,7 @@ var EAuditLogRequestMethod;
|
|
|
10
10
|
EAuditLogRequestMethod["PATCH"] = "PATCH";
|
|
11
11
|
EAuditLogRequestMethod["EVENT"] = "EVENT";
|
|
12
12
|
})(EAuditLogRequestMethod || (exports.EAuditLogRequestMethod = EAuditLogRequestMethod = {}));
|
|
13
|
-
exports.AuditDatasource =
|
|
13
|
+
exports.AuditDatasource = 'AUDIT_DATASOURCE';
|
|
14
14
|
exports.ClientLoggerInterceptorKey = 'AUDIT_LOGGER_RMQ_CLIENT';
|
|
15
15
|
exports.AuditLoggerRMQQueue = 'audit';
|
|
16
16
|
exports.AuditLoggerRMQTopic = 'audit-log-topic';
|