@estgbue/mezgeb 0.0.50 → 0.0.51
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.
|
@@ -6,11 +6,11 @@ export declare class AuditLogCommandController {
|
|
|
6
6
|
handleAuditLog(data: CreateEventDTO): Promise<void>;
|
|
7
7
|
handleApproveTransaction(payload: ChangeEventDTO): Promise<void>;
|
|
8
8
|
handleRollbackTransaction(payload: ChangeEventDTO): Promise<void>;
|
|
9
|
-
|
|
9
|
+
getAllAuditLogs(application: string, skip: number, take: number): Promise<{
|
|
10
10
|
count: number;
|
|
11
11
|
items: import("../entities/audit-log-command.entity").AuditLogCommand[];
|
|
12
12
|
}>;
|
|
13
|
-
|
|
13
|
+
getAuditLogs(entityId: string, application: string, skip: number, take: number): Promise<{
|
|
14
14
|
count: number;
|
|
15
15
|
items: import("../entities/audit-log-command.entity").AuditLogCommand[];
|
|
16
16
|
}>;
|
|
@@ -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;AAI/E,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElE,qBAGa,yBAAyB;IACxB,OAAO,CAAC,QAAQ,CAAC,eAAe;gBAAf,eAAe,EAAE,sBAAsB;IAI9D,cAAc,CAAC,IAAI,EAAE,cAAc;IAMnC,wBAAwB,CAAC,OAAO,EAAE,cAAc;IAMhD,yBAAyB,CAAC,OAAO,EAAE,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,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAElE,qBAGa,yBAAyB;IACxB,OAAO,CAAC,QAAQ,CAAC,eAAe;gBAAf,eAAe,EAAE,sBAAsB;IAI9D,cAAc,CAAC,IAAI,EAAE,cAAc;IAMnC,wBAAwB,CAAC,OAAO,EAAE,cAAc;IAMhD,yBAAyB,CAAC,OAAO,EAAE,cAAc;IAkBjD,eAAe,CACG,WAAW,EAAE,MAAM,EAC1B,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM;;;;IAqBvB,YAAY,CACG,QAAQ,EAAE,MAAM,EACb,WAAW,EAAE,MAAM,EAC1B,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM;;;;CAQ9B"}
|
|
@@ -48,14 +48,14 @@ let AuditLogCommandController = class AuditLogCommandController {
|
|
|
48
48
|
yield this.auditLogService.delete(payload);
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
|
-
|
|
51
|
+
getAllAuditLogs(application, skip, take) {
|
|
52
52
|
return __awaiter(this, void 0, void 0, function* () {
|
|
53
|
-
return yield this.auditLogService.
|
|
53
|
+
return yield this.auditLogService.getAllAuditLogs(application, { skip, take });
|
|
54
54
|
});
|
|
55
55
|
}
|
|
56
|
-
|
|
56
|
+
getAuditLogs(entityId, application, skip, take) {
|
|
57
57
|
return __awaiter(this, void 0, void 0, function* () {
|
|
58
|
-
return yield this.auditLogService.
|
|
58
|
+
return yield this.auditLogService.getAuditLogs(entityId, application, { skip, take });
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
61
|
};
|
|
@@ -82,7 +82,7 @@ __decorate([
|
|
|
82
82
|
__metadata("design:returntype", Promise)
|
|
83
83
|
], AuditLogCommandController.prototype, "handleRollbackTransaction", null);
|
|
84
84
|
__decorate([
|
|
85
|
-
(0, common_1.Get)('/:
|
|
85
|
+
(0, common_1.Get)('all/:application'),
|
|
86
86
|
(0, swagger_1.ApiQuery)({
|
|
87
87
|
name: 'skip',
|
|
88
88
|
type: Number,
|
|
@@ -95,16 +95,15 @@ __decorate([
|
|
|
95
95
|
description: 'Number of records to take for pagination. Optional',
|
|
96
96
|
required: false,
|
|
97
97
|
}),
|
|
98
|
-
__param(0, (0, common_1.Param)('
|
|
99
|
-
__param(1, (0, common_1.
|
|
100
|
-
__param(2, (0, common_1.Query)('
|
|
101
|
-
__param(3, (0, common_1.Query)('take')),
|
|
98
|
+
__param(0, (0, common_1.Param)('application')),
|
|
99
|
+
__param(1, (0, common_1.Query)('skip')),
|
|
100
|
+
__param(2, (0, common_1.Query)('take')),
|
|
102
101
|
__metadata("design:type", Function),
|
|
103
|
-
__metadata("design:paramtypes", [String,
|
|
102
|
+
__metadata("design:paramtypes", [String, Number, Number]),
|
|
104
103
|
__metadata("design:returntype", Promise)
|
|
105
|
-
], AuditLogCommandController.prototype, "
|
|
104
|
+
], AuditLogCommandController.prototype, "getAllAuditLogs", null);
|
|
106
105
|
__decorate([
|
|
107
|
-
(0, common_1.Get)('
|
|
106
|
+
(0, common_1.Get)('/:entityId/:application'),
|
|
108
107
|
(0, swagger_1.ApiQuery)({
|
|
109
108
|
name: 'skip',
|
|
110
109
|
type: Number,
|
|
@@ -117,13 +116,14 @@ __decorate([
|
|
|
117
116
|
description: 'Number of records to take for pagination. Optional',
|
|
118
117
|
required: false,
|
|
119
118
|
}),
|
|
120
|
-
__param(0, (0, common_1.Param)('
|
|
121
|
-
__param(1, (0, common_1.
|
|
122
|
-
__param(2, (0, common_1.Query)('
|
|
119
|
+
__param(0, (0, common_1.Param)('entityId')),
|
|
120
|
+
__param(1, (0, common_1.Param)('application')),
|
|
121
|
+
__param(2, (0, common_1.Query)('skip')),
|
|
122
|
+
__param(3, (0, common_1.Query)('take')),
|
|
123
123
|
__metadata("design:type", Function),
|
|
124
|
-
__metadata("design:paramtypes", [String, Number, Number]),
|
|
124
|
+
__metadata("design:paramtypes", [String, String, Number, Number]),
|
|
125
125
|
__metadata("design:returntype", Promise)
|
|
126
|
-
], AuditLogCommandController.prototype, "
|
|
126
|
+
], AuditLogCommandController.prototype, "getAuditLogs", null);
|
|
127
127
|
exports.AuditLogCommandController = AuditLogCommandController = __decorate([
|
|
128
128
|
(0, common_1.Controller)('audit-log-commands'),
|
|
129
129
|
(0, swagger_1.ApiTags)('Audit Log'),
|