@estgbue/mezgeb 0.0.35 → 0.0.37
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.
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -0
- package/dist/mezgeb/client/client-audit.interceptor.d.ts.map +1 -1
- package/dist/mezgeb/client/client-audit.interceptor.js +1 -6
- package/dist/mezgeb/listener/controllers/audit-log-command.controller.d.ts +1 -1
- package/dist/mezgeb/listener/controllers/audit-log-command.controller.d.ts.map +1 -1
- package/dist/mezgeb/listener/controllers/audit-log-command.controller.js +4 -4
- package/dist/mezgeb/listener/dtos/audit.dto.d.ts +1 -61
- package/dist/mezgeb/listener/dtos/audit.dto.d.ts.map +1 -1
- package/dist/mezgeb/listener/dtos/audit.dto.js +56 -26
- package/dist/mezgeb/listener/services/audit-log-command.service.d.ts +1 -1
- package/dist/mezgeb/listener/services/audit-log-command.service.d.ts.map +1 -1
- package/dist/mezgeb/listener/services/audit-log.service.d.ts +1 -1
- package/dist/mezgeb/listener/services/audit-log.service.d.ts.map +1 -1
- package/dist/mezgeb/mezgeb.dto.d.ts +17 -5
- package/dist/mezgeb/mezgeb.dto.d.ts.map +1 -1
- package/dist/mezgeb/mezgeb.dto.js +42 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -4,4 +4,7 @@ export * from './mezgeb.module';
|
|
|
4
4
|
export * from './mezgeb/listener/audit.module';
|
|
5
5
|
export * from './mezgeb/listener/dtos/audit.dto';
|
|
6
6
|
export * from './mezgeb/listener/decorators/ignore-logger.decorator';
|
|
7
|
+
export * from './mezgeb/mezgeb.enum';
|
|
8
|
+
export * from './mezgeb/mezgeb.dto';
|
|
9
|
+
export * from './mezgeb/mezgeb.type';
|
|
7
10
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../libs/mezgeb/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,0CAA0C,CAAC;AACzD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,iBAAiB,CAAC;AAChC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kCAAkC,CAAC;AACjD,cAAc,sDAAsD,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../libs/mezgeb/src/index.ts"],"names":[],"mappings":"AAAA,cAAc,0CAA0C,CAAC;AACzD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,iBAAiB,CAAC;AAChC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kCAAkC,CAAC;AACjD,cAAc,sDAAsD,CAAC;AACrE,cAAc,sBAAsB,CAAA;AACpC,cAAc,qBAAqB,CAAA;AACnC,cAAc,sBAAsB,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -20,3 +20,6 @@ __exportStar(require("./mezgeb.module"), exports);
|
|
|
20
20
|
__exportStar(require("./mezgeb/listener/audit.module"), exports);
|
|
21
21
|
__exportStar(require("./mezgeb/listener/dtos/audit.dto"), exports);
|
|
22
22
|
__exportStar(require("./mezgeb/listener/decorators/ignore-logger.decorator"), exports);
|
|
23
|
+
__exportStar(require("./mezgeb/mezgeb.enum"), exports);
|
|
24
|
+
__exportStar(require("./mezgeb/mezgeb.dto"), exports);
|
|
25
|
+
__exportStar(require("./mezgeb/mezgeb.type"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client-audit.interceptor.d.ts","sourceRoot":"","sources":["../../../libs/mezgeb/src/mezgeb/client/client-audit.interceptor.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,gBAAgB,EAGhB,eAAe,EAChB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAA6B,UAAU,EAAE,MAAM,MAAM,CAAC;AAC7D,OAAO,EAAE,WA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,CAAC,UAAU;CAOnB"}
|
|
@@ -65,12 +65,7 @@ let ClientLoggerInterceptor = class ClientLoggerInterceptor {
|
|
|
65
65
|
const req = context.switchToHttp().getRequest();
|
|
66
66
|
const { ip, ips, method, originalUrl, headers, body, params, user } = req;
|
|
67
67
|
const ds = this.connection;
|
|
68
|
-
const userPayload = (ds.user = {
|
|
69
|
-
id: user === null || user === void 0 ? void 0 : user.id,
|
|
70
|
-
name: `${user === null || user === void 0 ? void 0 : user.firstName} ${user === null || user === void 0 ? void 0 : user.lastName}`,
|
|
71
|
-
organizationId: (_a = user === null || user === void 0 ? void 0 : user.organization) === null || _a === void 0 ? void 0 : _a.id,
|
|
72
|
-
organizationName: (_b = user === null || user === void 0 ? void 0 : user.organization) === null || _b === void 0 ? void 0 : _b.name,
|
|
73
|
-
});
|
|
68
|
+
const userPayload = (ds.user = Object.assign({ id: user === null || user === void 0 ? void 0 : user.id, name: `${user === null || user === void 0 ? void 0 : user.firstName} ${user === null || user === void 0 ? void 0 : user.lastName}`, organizationId: (_a = user === null || user === void 0 ? void 0 : user.organization) === null || _a === void 0 ? void 0 : _a.id, organizationName: (_b = user === null || user === void 0 ? void 0 : user.organization) === null || _b === void 0 ? void 0 : _b.name }, user));
|
|
74
69
|
const log = {
|
|
75
70
|
id: requestId,
|
|
76
71
|
requestMethod: method,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AuditLogCommandService } from '../services/audit-log-command.service';
|
|
2
|
-
import { CreateEventDTO, EmitQueryDTO } from '
|
|
2
|
+
import { CreateEventDTO, EmitQueryDTO } from '../../mezgeb.dto';
|
|
3
3
|
export declare class AuditLogCommandController {
|
|
4
4
|
private readonly auditLogService;
|
|
5
5
|
constructor(auditLogService: AuditLogCommandService);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audit-log-command.controller.d.ts","sourceRoot":"","sources":["../../../../libs/mezgeb/src/mezgeb/listener/controllers/audit-log-command.controller.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;
|
|
1
|
+
{"version":3,"file":"audit-log-command.controller.d.ts","sourceRoot":"","sources":["../../../../libs/mezgeb/src/mezgeb/listener/controllers/audit-log-command.controller.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAI/E,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAEhE,qBAGa,yBAAyB;IACxB,OAAO,CAAC,QAAQ,CAAC,eAAe;gBAAf,eAAe,EAAE,sBAAsB;IAI9D,cAAc,CAAC,IAAI,EAAE,cAAc;IAMnC,wBAAwB,CAAC,OAAO,EAAE,YAAY;IAM9C,yBAAyB,CAAC,OAAO,EAAE,YAAY;IAiB/C,YAAY,CACG,QAAQ,EAAE,MAAM,EACb,WAAW,EAAE,MAAM,EAC1B,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM;CAQ9B"}
|
|
@@ -25,10 +25,10 @@ exports.AuditLogCommandController = void 0;
|
|
|
25
25
|
const common_1 = require("@nestjs/common");
|
|
26
26
|
const microservices_1 = require("@nestjs/microservices");
|
|
27
27
|
const audit_log_command_service_1 = require("../services/audit-log-command.service");
|
|
28
|
-
const audit_dto_1 = require("../dtos/audit.dto");
|
|
29
28
|
const swagger_1 = require("@nestjs/swagger");
|
|
30
29
|
const mezgeb_enum_1 = require("../../mezgeb.enum");
|
|
31
30
|
const event_nack_interceptor_1 = require("../interceptor/event-nack.interceptor");
|
|
31
|
+
const mezgeb_dto_1 = require("../../mezgeb.dto");
|
|
32
32
|
let AuditLogCommandController = class AuditLogCommandController {
|
|
33
33
|
constructor(auditLogService) {
|
|
34
34
|
this.auditLogService = auditLogService;
|
|
@@ -59,21 +59,21 @@ __decorate([
|
|
|
59
59
|
(0, microservices_1.EventPattern)(mezgeb_enum_1.RecordInsertion),
|
|
60
60
|
(0, common_1.UseInterceptors)(event_nack_interceptor_1.EventAcknowledgmentInterceptor),
|
|
61
61
|
__metadata("design:type", Function),
|
|
62
|
-
__metadata("design:paramtypes", [
|
|
62
|
+
__metadata("design:paramtypes", [mezgeb_dto_1.CreateEventDTO]),
|
|
63
63
|
__metadata("design:returntype", Promise)
|
|
64
64
|
], AuditLogCommandController.prototype, "handleAuditLog", null);
|
|
65
65
|
__decorate([
|
|
66
66
|
(0, microservices_1.EventPattern)(mezgeb_enum_1.RecordUpdate),
|
|
67
67
|
(0, common_1.UseInterceptors)(event_nack_interceptor_1.EventAcknowledgmentInterceptor),
|
|
68
68
|
__metadata("design:type", Function),
|
|
69
|
-
__metadata("design:paramtypes", [
|
|
69
|
+
__metadata("design:paramtypes", [mezgeb_dto_1.EmitQueryDTO]),
|
|
70
70
|
__metadata("design:returntype", Promise)
|
|
71
71
|
], AuditLogCommandController.prototype, "handleApproveTransaction", null);
|
|
72
72
|
__decorate([
|
|
73
73
|
(0, microservices_1.EventPattern)(mezgeb_enum_1.RecordDeletion),
|
|
74
74
|
(0, common_1.UseInterceptors)(event_nack_interceptor_1.EventAcknowledgmentInterceptor),
|
|
75
75
|
__metadata("design:type", Function),
|
|
76
|
-
__metadata("design:paramtypes", [
|
|
76
|
+
__metadata("design:paramtypes", [mezgeb_dto_1.EmitQueryDTO]),
|
|
77
77
|
__metadata("design:returntype", Promise)
|
|
78
78
|
], AuditLogCommandController.prototype, "handleRollbackTransaction", null);
|
|
79
79
|
__decorate([
|
|
@@ -1,62 +1,2 @@
|
|
|
1
|
-
export
|
|
2
|
-
POST = "POST",
|
|
3
|
-
GET = "GET",
|
|
4
|
-
PUT = "PUT",
|
|
5
|
-
DELETE = "DELETE"
|
|
6
|
-
}
|
|
7
|
-
export declare class CreateAuditLogDto {
|
|
8
|
-
requestMethod: EAuditLogRequestMethod;
|
|
9
|
-
id?: string;
|
|
10
|
-
application: string;
|
|
11
|
-
module: string;
|
|
12
|
-
requestBody: any;
|
|
13
|
-
requestHeader: any;
|
|
14
|
-
statusCode: number;
|
|
15
|
-
ipAddress: string;
|
|
16
|
-
executionTime?: number;
|
|
17
|
-
user: any;
|
|
18
|
-
}
|
|
19
|
-
export declare class UpdateEventDTO {
|
|
20
|
-
entityId?: string;
|
|
21
|
-
entityName: string;
|
|
22
|
-
user: any;
|
|
23
|
-
requestId: string;
|
|
24
|
-
whereParams?: Record<string, any>;
|
|
25
|
-
setParams: Record<string, any>;
|
|
26
|
-
createdAt: Date;
|
|
27
|
-
}
|
|
28
|
-
export declare class CreateEventDTO {
|
|
29
|
-
entity: any;
|
|
30
|
-
entityId?: string;
|
|
31
|
-
entityName: string;
|
|
32
|
-
user: any;
|
|
33
|
-
requestId: string;
|
|
34
|
-
createdAt?: Date;
|
|
35
|
-
query?: string;
|
|
36
|
-
parameters?: any[];
|
|
37
|
-
}
|
|
38
|
-
export declare class AuditChildDto {
|
|
39
|
-
entity: any;
|
|
40
|
-
entityId: string;
|
|
41
|
-
entityName: string;
|
|
42
|
-
auditLogId: string;
|
|
43
|
-
queryMethod: 'INSERT_CHILD' | 'DELETE_CHILD';
|
|
44
|
-
payload?: {
|
|
45
|
-
name?: string;
|
|
46
|
-
description?: string;
|
|
47
|
-
id: string;
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
export declare class EmitQueryDTO {
|
|
51
|
-
createdAt: Date;
|
|
52
|
-
query: string;
|
|
53
|
-
parameters: any[];
|
|
54
|
-
requestId: string;
|
|
55
|
-
user?: any;
|
|
56
|
-
}
|
|
57
|
-
export declare class ApproveTransactionPayload {
|
|
58
|
-
requestId: string;
|
|
59
|
-
executionTime: number;
|
|
60
|
-
statusCode: number;
|
|
61
|
-
}
|
|
1
|
+
export {};
|
|
62
2
|
//# sourceMappingURL=audit.dto.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audit.dto.d.ts","sourceRoot":"","sources":["../../../../libs/mezgeb/src/mezgeb/listener/dtos/audit.dto.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"audit.dto.d.ts","sourceRoot":"","sources":["../../../../libs/mezgeb/src/mezgeb/listener/dtos/audit.dto.ts"],"names":[],"mappings":""}
|
|
@@ -1,28 +1,58 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
3
|
+
// export class CreateAuditLogDto {
|
|
4
|
+
// requestMethod!: EAuditLogRequestMethod;
|
|
5
|
+
// id?: string;
|
|
6
|
+
// application!: string;
|
|
7
|
+
// module!: string;
|
|
8
|
+
// requestBody!: any;
|
|
9
|
+
// requestHeader!: any;
|
|
10
|
+
// statusCode!: number;
|
|
11
|
+
// ipAddress!: string;
|
|
12
|
+
// executionTime?: number;
|
|
13
|
+
// user!: any;
|
|
14
|
+
// }
|
|
15
|
+
// export class UpdateEventDTO {
|
|
16
|
+
// entityId?: string;
|
|
17
|
+
// entityName!: string;
|
|
18
|
+
// user: any;
|
|
19
|
+
// requestId!: string;
|
|
20
|
+
// whereParams?: Record<string, any>;
|
|
21
|
+
// setParams!: Record<string, any>;
|
|
22
|
+
// createdAt!: Date;
|
|
23
|
+
// }
|
|
24
|
+
// export class CreateEventDTO {
|
|
25
|
+
// entity: any;
|
|
26
|
+
// entityId?: string;
|
|
27
|
+
// entityName!: string;
|
|
28
|
+
// user: any;
|
|
29
|
+
// requestId!: string;
|
|
30
|
+
// createdAt?: Date;
|
|
31
|
+
// query?: string;
|
|
32
|
+
// parameters?: any[];
|
|
33
|
+
// }
|
|
34
|
+
// export class AuditChildDto {
|
|
35
|
+
// entity: any;
|
|
36
|
+
// entityId!: string;
|
|
37
|
+
// entityName!: string;
|
|
38
|
+
// auditLogId!: string;
|
|
39
|
+
// queryMethod!: 'INSERT_CHILD' | 'DELETE_CHILD';
|
|
40
|
+
// payload?: {
|
|
41
|
+
// name?: string;
|
|
42
|
+
// description?: string;
|
|
43
|
+
// id: string;
|
|
44
|
+
// };
|
|
45
|
+
// }
|
|
46
|
+
// export class EmitQueryDTO {
|
|
47
|
+
// createdAt!: Date;
|
|
48
|
+
// query!: string;
|
|
49
|
+
// parameters!: any[];
|
|
50
|
+
// requestId!: string;
|
|
51
|
+
// user?: any;
|
|
52
|
+
// }
|
|
53
|
+
// export class ApproveTransactionPayload {
|
|
54
|
+
// requestId!: string;
|
|
55
|
+
// executionTime!: number;
|
|
56
|
+
// statusCode!: number;
|
|
57
|
+
// remark?: string;
|
|
58
|
+
// }
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Repository } from 'typeorm';
|
|
2
|
-
import { CreateEventDTO, EmitQueryDTO } from '../dtos/audit.dto';
|
|
3
2
|
import { AuditLog } from '../entities/audit-log.entity';
|
|
4
3
|
import { AuditLogCommand } from '../entities/audit-log-command.entity';
|
|
4
|
+
import { CreateEventDTO, EmitQueryDTO } from '../../mezgeb.dto';
|
|
5
5
|
export declare class AuditLogCommandService {
|
|
6
6
|
private auditLogRepository;
|
|
7
7
|
private auditLogCommandRepository;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audit-log-command.service.d.ts","sourceRoot":"","sources":["../../../../libs/mezgeb/src/mezgeb/listener/services/audit-log-command.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,
|
|
1
|
+
{"version":3,"file":"audit-log-command.service.d.ts","sourceRoot":"","sources":["../../../../libs/mezgeb/src/mezgeb/listener/services/audit-log-command.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AACvE,OAAO,EAAiB,cAAc,EAAE,YAAY,EAAkB,MAAM,kBAAkB,CAAC;AAE/F,qBACa,sBAAsB;IAG/B,OAAO,CAAC,kBAAkB;IAE1B,OAAO,CAAC,yBAAyB;gBAFzB,kBAAkB,EAAE,UAAU,CAAC,QAAQ,CAAC,EAExC,yBAAyB,EAAE,UAAU,CAAC,eAAe,CAAC;IAG1D,MAAM,CAAC,QAAQ,EAAE,cAAc;IAS/B,MAAM,CAAC,QAAQ,EAAE,YAAY;IAqD7B,MAAM,CAAC,QAAQ,EAAE,YAAY;IAsB7B,YAAY,CAChB,MAAM,EAAE,GAAG,EACX,MAAM,EAAE,cAAc,GAAG,cAAc,EACvC,eAAe,EAAE,MAAM,EACvB,UAAU,EAAE,MAAM;IA0CpB,OAAO,CAAC,sBAAsB;IAI9B,sBAAsB,CAAC,IAAI,EAAE,MAAM;IAsB7B,YAAY,CAChB,QAAQ,EAAE,MAAM,EAChB,WAAW,EAAE,MAAM,EACnB,QAAQ,GAAE;QAAE,IAAI,CAAC,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAO;YAwCnC,YAAY;YAqBZ,gBAAgB;IAsD9B,OAAO,CAAC,UAAU;CAWnB"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Repository } from 'typeorm';
|
|
2
|
-
import { ApproveTransactionPayload, CreateAuditLogDto } from '../dtos/audit.dto';
|
|
3
2
|
import { AuditLog } from '../entities/audit-log.entity';
|
|
4
3
|
import { AuditLogCommand } from '../entities/audit-log-command.entity';
|
|
4
|
+
import { CreateAuditLogDto, ApproveTransactionPayload } from '../../mezgeb.dto';
|
|
5
5
|
export declare class AuditLogService {
|
|
6
6
|
private auditLogRepository;
|
|
7
7
|
private auditLogCommandRepository;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audit-log.service.d.ts","sourceRoot":"","sources":["../../../../libs/mezgeb/src/mezgeb/listener/services/audit-log.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,
|
|
1
|
+
{"version":3,"file":"audit-log.service.d.ts","sourceRoot":"","sources":["../../../../libs/mezgeb/src/mezgeb/listener/services/audit-log.service.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAEvE,OAAO,EAAE,iBAAiB,EAAE,yBAAyB,EAAE,MAAM,kBAAkB,CAAC;AAGhF,qBACa,eAAe;IAGxB,OAAO,CAAC,kBAAkB;IAE1B,OAAO,CAAC,yBAAyB;gBAFzB,kBAAkB,EAAE,UAAU,CAAC,QAAQ,CAAC,EAExC,yBAAyB,EAAE,UAAU,CAAC,eAAe,CAAC;IAM1D,cAAc,CAAC,IAAI,EAAE,iBAAiB;IAKtC,iBAAiB,CAAC,OAAO,EAAE,yBAAyB;IAQpD,mBAAmB,CAAC,OAAO,EAAE,yBAAyB;CAG7D"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { EAuditLogRequestMethod } from "./mezgeb.enum";
|
|
2
2
|
export declare class CreateAuditLogDto {
|
|
3
3
|
requestMethod: EAuditLogRequestMethod;
|
|
4
|
-
id
|
|
4
|
+
id?: string;
|
|
5
5
|
application: string;
|
|
6
6
|
module: string;
|
|
7
7
|
requestBody: any;
|
|
8
8
|
requestHeader: any;
|
|
9
9
|
statusCode: number;
|
|
10
10
|
ipAddress: string;
|
|
11
|
-
executionTime
|
|
11
|
+
executionTime?: number;
|
|
12
12
|
user: any;
|
|
13
13
|
}
|
|
14
14
|
export declare class UpdateEventDTO {
|
|
@@ -17,7 +17,7 @@ export declare class UpdateEventDTO {
|
|
|
17
17
|
user: any;
|
|
18
18
|
requestId: string;
|
|
19
19
|
whereParams?: Record<string, any>;
|
|
20
|
-
setParams
|
|
20
|
+
setParams: Record<string, any>;
|
|
21
21
|
createdAt: Date;
|
|
22
22
|
}
|
|
23
23
|
export declare class CreateEventDTO {
|
|
@@ -26,17 +26,29 @@ export declare class CreateEventDTO {
|
|
|
26
26
|
entityName: string;
|
|
27
27
|
user: any;
|
|
28
28
|
requestId: string;
|
|
29
|
-
createdAt
|
|
29
|
+
createdAt?: Date;
|
|
30
30
|
query?: string;
|
|
31
31
|
parameters?: any[];
|
|
32
32
|
}
|
|
33
33
|
export declare class EmitQueryDTO {
|
|
34
34
|
createdAt: Date;
|
|
35
35
|
query: string;
|
|
36
|
-
parameters
|
|
36
|
+
parameters: any[];
|
|
37
37
|
requestId: string;
|
|
38
38
|
user?: any;
|
|
39
39
|
}
|
|
40
|
+
export declare class AuditChildDto {
|
|
41
|
+
entity: any;
|
|
42
|
+
entityId: string;
|
|
43
|
+
entityName: string;
|
|
44
|
+
auditLogId: string;
|
|
45
|
+
queryMethod: 'INSERT_CHILD' | 'DELETE_CHILD';
|
|
46
|
+
payload?: {
|
|
47
|
+
name?: string;
|
|
48
|
+
description?: string;
|
|
49
|
+
id: string;
|
|
50
|
+
};
|
|
51
|
+
}
|
|
40
52
|
export declare class ApproveTransactionPayload {
|
|
41
53
|
requestId: string;
|
|
42
54
|
executionTime: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mezgeb.dto.d.ts","sourceRoot":"","sources":["../../libs/mezgeb/src/mezgeb/mezgeb.dto.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"mezgeb.dto.d.ts","sourceRoot":"","sources":["../../libs/mezgeb/src/mezgeb/mezgeb.dto.ts"],"names":[],"mappings":"AAAA,O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AAQ,EAAG,MAAM,CAAC;IAClB,UAAU,EAAG,MAAM,CAAC;IACpB,UAAU,EAAG,MAAM,CAAC;IACpB,WAAW,EAAG,cAAc,GAAG,cAAc,CAAC;IAC9C,OAAO,CAAC,EAAE;QACR,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,EAAE,EAAE,MAAM,CAAC;KACZ,CAAC;CACH;AAED,qBAAa,yBAAyB;IACpC,SAAS,EAAG,MAAM,CAAC;IACnB,aAAa,EAAG,MAAM,CAAC;IACvB,UAAU,EAAG,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -1,6 +1,44 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ApproveTransactionPayload = exports.EmitQueryDTO = exports.CreateEventDTO = exports.UpdateEventDTO = exports.CreateAuditLogDto = void 0;
|
|
3
|
+
exports.ApproveTransactionPayload = exports.AuditChildDto = exports.EmitQueryDTO = exports.CreateEventDTO = exports.UpdateEventDTO = exports.CreateAuditLogDto = void 0;
|
|
4
|
+
// export class CreateAuditLogDto {
|
|
5
|
+
// requestMethod!: EAuditLogRequestMethod;
|
|
6
|
+
// id!: string;
|
|
7
|
+
// application!: string;
|
|
8
|
+
// module!: string;
|
|
9
|
+
// requestBody!: any;
|
|
10
|
+
// requestHeader!: any;
|
|
11
|
+
// statusCode!: number;
|
|
12
|
+
// ipAddress!: string;
|
|
13
|
+
// executionTime!: number;
|
|
14
|
+
// user!: any;
|
|
15
|
+
// }
|
|
16
|
+
// export class UpdateEventDTO {
|
|
17
|
+
// entityId?: string;
|
|
18
|
+
// entityName!: string;
|
|
19
|
+
// user: any;
|
|
20
|
+
// requestId!: string;
|
|
21
|
+
// whereParams?: Record<string, any>;
|
|
22
|
+
// setParams?: Record<string, any>;
|
|
23
|
+
// createdAt!: Date;
|
|
24
|
+
// }
|
|
25
|
+
// export class CreateEventDTO {
|
|
26
|
+
// entity: any;
|
|
27
|
+
// entityId?: string;
|
|
28
|
+
// entityName!: string;
|
|
29
|
+
// user: any;
|
|
30
|
+
// requestId!: string;
|
|
31
|
+
// createdAt!: Date;
|
|
32
|
+
// query?: string;
|
|
33
|
+
// parameters?: any[];
|
|
34
|
+
// }
|
|
35
|
+
// export class EmitQueryDTO {
|
|
36
|
+
// createdAt!: Date;
|
|
37
|
+
// query!: string;
|
|
38
|
+
// parameters?: any[];
|
|
39
|
+
// requestId!: string;
|
|
40
|
+
// user?: any;
|
|
41
|
+
// }
|
|
4
42
|
class CreateAuditLogDto {
|
|
5
43
|
}
|
|
6
44
|
exports.CreateAuditLogDto = CreateAuditLogDto;
|
|
@@ -13,6 +51,9 @@ exports.CreateEventDTO = CreateEventDTO;
|
|
|
13
51
|
class EmitQueryDTO {
|
|
14
52
|
}
|
|
15
53
|
exports.EmitQueryDTO = EmitQueryDTO;
|
|
54
|
+
class AuditChildDto {
|
|
55
|
+
}
|
|
56
|
+
exports.AuditChildDto = AuditChildDto;
|
|
16
57
|
class ApproveTransactionPayload {
|
|
17
58
|
}
|
|
18
59
|
exports.ApproveTransactionPayload = ApproveTransactionPayload;
|