@estgbue/mezgeb 0.0.33 → 0.0.34

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.
@@ -21,11 +21,11 @@ __decorate([
21
21
  __metadata("design:type", String)
22
22
  ], AuditLogCommand.prototype, "id", void 0);
23
23
  __decorate([
24
- (0, typeorm_1.Column)({ type: 'timestamptz', default: () => 'CURRENT_TIMESTAMP' }),
24
+ (0, typeorm_1.Column)({ type: 'timestamptz', default: () => 'CURRENT_TIMESTAMP', name: 'created_at' }),
25
25
  __metadata("design:type", Date)
26
26
  ], AuditLogCommand.prototype, "createdAt", void 0);
27
27
  __decorate([
28
- (0, typeorm_1.Column)({ type: 'timestamptz', nullable: true }),
28
+ (0, typeorm_1.Column)({ type: 'timestamptz', nullable: true, name: 'deleted_at' }),
29
29
  __metadata("design:type", Date)
30
30
  ], AuditLogCommand.prototype, "deletedAt", void 0);
31
31
  __decorate([
@@ -33,11 +33,11 @@ __decorate([
33
33
  __metadata("design:type", Object)
34
34
  ], AuditLogCommand.prototype, "entity", void 0);
35
35
  __decorate([
36
- (0, typeorm_1.Column)({ type: 'text' }),
36
+ (0, typeorm_1.Column)({ type: 'text', name: 'entity_id' }),
37
37
  __metadata("design:type", String)
38
38
  ], AuditLogCommand.prototype, "entityId", void 0);
39
39
  __decorate([
40
- (0, typeorm_1.Column)(),
40
+ (0, typeorm_1.Column)({ name: 'entity_name' }),
41
41
  __metadata("design:type", String)
42
42
  ], AuditLogCommand.prototype, "entityName", void 0);
43
43
  __decorate([
@@ -65,23 +65,23 @@ __decorate([
65
65
  __metadata("design:type", String)
66
66
  ], AuditLogCommand.prototype, "status", void 0);
67
67
  __decorate([
68
- (0, typeorm_1.Column)({ nullable: true }),
68
+ (0, typeorm_1.Column)({ nullable: true, name: 'parent_id' }),
69
69
  __metadata("design:type", String)
70
70
  ], AuditLogCommand.prototype, "parentId", void 0);
71
71
  __decorate([
72
72
  (0, typeorm_1.OneToOne)(() => AuditLogCommand, (auditLog) => auditLog.parent),
73
- (0, typeorm_1.JoinColumn)({ name: 'parentId' }),
73
+ (0, typeorm_1.JoinColumn)({ name: 'parent_id' }),
74
74
  __metadata("design:type", AuditLogCommand)
75
75
  ], AuditLogCommand.prototype, "parent", void 0);
76
76
  __decorate([
77
- (0, typeorm_1.Column)({ nullable: true }),
77
+ (0, typeorm_1.Column)({ nullable: true, name: 'audit_log_id' }),
78
78
  __metadata("design:type", String)
79
79
  ], AuditLogCommand.prototype, "auditLogId", void 0);
80
80
  __decorate([
81
81
  (0, typeorm_1.ManyToOne)(() => audit_log_entity_1.AuditLog, (auditLog) => auditLog.commands, {
82
82
  onDelete: 'CASCADE',
83
83
  }),
84
- (0, typeorm_1.JoinColumn)({ name: 'auditLogId' }),
84
+ (0, typeorm_1.JoinColumn)({ name: 'audit_log_id' }),
85
85
  __metadata("design:type", audit_log_entity_1.AuditLog)
86
86
  ], AuditLogCommand.prototype, "auditLog", void 0);
87
87
  exports.AuditLogCommand = AuditLogCommand = __decorate([
@@ -21,15 +21,15 @@ __decorate([
21
21
  __metadata("design:type", String)
22
22
  ], AuditLog.prototype, "id", void 0);
23
23
  __decorate([
24
- (0, typeorm_1.CreateDateColumn)({ type: 'timestamptz', default: () => 'CURRENT_TIMESTAMP' }),
24
+ (0, typeorm_1.CreateDateColumn)({ type: 'timestamptz', default: () => 'CURRENT_TIMESTAMP', name: 'created_at' }),
25
25
  __metadata("design:type", Date)
26
26
  ], AuditLog.prototype, "createdAt", void 0);
27
27
  __decorate([
28
- (0, typeorm_1.UpdateDateColumn)({ type: 'timestamptz', default: () => 'CURRENT_TIMESTAMP' }),
28
+ (0, typeorm_1.UpdateDateColumn)({ type: 'timestamptz', default: () => 'CURRENT_TIMESTAMP', name: 'updated_at' }),
29
29
  __metadata("design:type", Date)
30
30
  ], AuditLog.prototype, "updatedAt", void 0);
31
31
  __decorate([
32
- (0, typeorm_1.Column)({ type: 'varchar' }),
32
+ (0, typeorm_1.Column)({ type: 'varchar', name: 'request_method' }),
33
33
  __metadata("design:type", String)
34
34
  ], AuditLog.prototype, "requestMethod", void 0);
35
35
  __decorate([
@@ -41,23 +41,23 @@ __decorate([
41
41
  __metadata("design:type", String)
42
42
  ], AuditLog.prototype, "module", void 0);
43
43
  __decorate([
44
- (0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
44
+ (0, typeorm_1.Column)({ type: 'jsonb', nullable: true, name: 'request_body' }),
45
45
  __metadata("design:type", Object)
46
46
  ], AuditLog.prototype, "requestBody", void 0);
47
47
  __decorate([
48
- (0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
48
+ (0, typeorm_1.Column)({ type: 'jsonb', nullable: true, name: 'request_header' }),
49
49
  __metadata("design:type", Object)
50
50
  ], AuditLog.prototype, "requestHeader", void 0);
51
51
  __decorate([
52
- (0, typeorm_1.Column)(),
52
+ (0, typeorm_1.Column)({ name: 'status_code' }),
53
53
  __metadata("design:type", Number)
54
54
  ], AuditLog.prototype, "statusCode", void 0);
55
55
  __decorate([
56
- (0, typeorm_1.Column)(),
56
+ (0, typeorm_1.Column)({ name: 'ip_address' }),
57
57
  __metadata("design:type", String)
58
58
  ], AuditLog.prototype, "ipAddress", void 0);
59
59
  __decorate([
60
- (0, typeorm_1.Column)(),
60
+ (0, typeorm_1.Column)({ name: 'execution_time' }),
61
61
  __metadata("design:type", Number)
62
62
  ], AuditLog.prototype, "executionTime", void 0);
63
63
  __decorate([
@@ -65,7 +65,7 @@ __decorate([
65
65
  __metadata("design:type", String)
66
66
  ], AuditLog.prototype, "status", void 0);
67
67
  __decorate([
68
- (0, typeorm_1.Column)({ type: 'jsonb', nullable: true }),
68
+ (0, typeorm_1.Column)({ type: 'jsonb', nullable: true, name: 'user' }),
69
69
  __metadata("design:type", Object)
70
70
  ], AuditLog.prototype, "user", void 0);
71
71
  __decorate([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@estgbue/mezgeb",
3
- "version": "0.0.33",
3
+ "version": "0.0.34",
4
4
  "main": "./src/index",
5
5
  "exports": {
6
6
  ".": "./dist/index.js"