@likewatt/models 1.104.0 → 1.105.0
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.
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.AdminActionLog = void 0;
|
|
13
|
+
const typeorm_1 = require("typeorm");
|
|
14
|
+
let AdminActionLog = class AdminActionLog {
|
|
15
|
+
};
|
|
16
|
+
exports.AdminActionLog = AdminActionLog;
|
|
17
|
+
__decorate([
|
|
18
|
+
(0, typeorm_1.PrimaryGeneratedColumn)({ type: 'bigint' }),
|
|
19
|
+
__metadata("design:type", Number)
|
|
20
|
+
], AdminActionLog.prototype, "id", void 0);
|
|
21
|
+
__decorate([
|
|
22
|
+
(0, typeorm_1.Column)({
|
|
23
|
+
name: 'actor_user_id',
|
|
24
|
+
type: 'varchar',
|
|
25
|
+
length: 64,
|
|
26
|
+
nullable: false,
|
|
27
|
+
}),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], AdminActionLog.prototype, "actorUserId", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ type: 'varchar', length: 48, nullable: false }),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], AdminActionLog.prototype, "action", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({
|
|
36
|
+
name: 'target_user_id',
|
|
37
|
+
type: 'varchar',
|
|
38
|
+
length: 64,
|
|
39
|
+
nullable: true,
|
|
40
|
+
}),
|
|
41
|
+
__metadata("design:type", Object)
|
|
42
|
+
], AdminActionLog.prototype, "targetUserId", void 0);
|
|
43
|
+
__decorate([
|
|
44
|
+
(0, typeorm_1.Column)({
|
|
45
|
+
name: 'resource_type',
|
|
46
|
+
type: 'varchar',
|
|
47
|
+
length: 32,
|
|
48
|
+
nullable: true,
|
|
49
|
+
}),
|
|
50
|
+
__metadata("design:type", Object)
|
|
51
|
+
], AdminActionLog.prototype, "resourceType", void 0);
|
|
52
|
+
__decorate([
|
|
53
|
+
(0, typeorm_1.Column)({
|
|
54
|
+
name: 'resource_id',
|
|
55
|
+
type: 'varchar',
|
|
56
|
+
length: 64,
|
|
57
|
+
nullable: true,
|
|
58
|
+
}),
|
|
59
|
+
__metadata("design:type", Object)
|
|
60
|
+
], AdminActionLog.prototype, "resourceId", void 0);
|
|
61
|
+
__decorate([
|
|
62
|
+
(0, typeorm_1.Column)({ type: 'json', nullable: true }),
|
|
63
|
+
__metadata("design:type", Object)
|
|
64
|
+
], AdminActionLog.prototype, "metadata", void 0);
|
|
65
|
+
__decorate([
|
|
66
|
+
(0, typeorm_1.CreateDateColumn)({ name: 'created_at' }),
|
|
67
|
+
__metadata("design:type", Date)
|
|
68
|
+
], AdminActionLog.prototype, "createdAt", void 0);
|
|
69
|
+
exports.AdminActionLog = AdminActionLog = __decorate([
|
|
70
|
+
(0, typeorm_1.Entity)('admin_action_log'),
|
|
71
|
+
(0, typeorm_1.Index)('idx_admin_action_actor_created', ['actorUserId', 'createdAt']),
|
|
72
|
+
(0, typeorm_1.Index)('idx_admin_action_target_created', ['targetUserId', 'createdAt']),
|
|
73
|
+
(0, typeorm_1.Index)('idx_admin_action_action_created', ['action', 'createdAt'])
|
|
74
|
+
], AdminActionLog);
|
|
@@ -21,11 +21,6 @@ __decorate([
|
|
|
21
21
|
(0, class_validator_1.IsNumber)(),
|
|
22
22
|
__metadata("design:type", Number)
|
|
23
23
|
], GridParams.prototype, "ACI", void 0);
|
|
24
|
-
__decorate([
|
|
25
|
-
(0, mongoose_1.Prop)({ required: true }),
|
|
26
|
-
(0, class_validator_1.IsNumber)(),
|
|
27
|
-
__metadata("design:type", Number)
|
|
28
|
-
], GridParams.prototype, "energyInflation", void 0);
|
|
29
24
|
__decorate([
|
|
30
25
|
(0, mongoose_1.Prop)({ required: true }),
|
|
31
26
|
(0, class_validator_1.IsNumber)(),
|
package/dist/index.d.ts
CHANGED
|
@@ -30,6 +30,7 @@ export * from './core/TypeORM/TempoHistory';
|
|
|
30
30
|
export * from './core/TypeORM/UsersFilters';
|
|
31
31
|
export * from './core/TypeORM/KoncileOcr';
|
|
32
32
|
export * from './core/TypeORM/WebhookOutput';
|
|
33
|
+
export * from './core/TypeORM/AdminActionLog';
|
|
33
34
|
export { EnedisReportAcquisitionMethod, EnedisReportOperationType, ExtractionSens, ExtractionType, ExtractionSource, } from './core/TypeORM/EnedisReportHistory';
|
|
34
35
|
export * from './core/internal/enums';
|
|
35
36
|
export * from './core/enums/BuildingDataStatus';
|
package/dist/index.js
CHANGED
|
@@ -49,6 +49,7 @@ __exportStar(require("./core/TypeORM/TempoHistory"), exports);
|
|
|
49
49
|
__exportStar(require("./core/TypeORM/UsersFilters"), exports);
|
|
50
50
|
__exportStar(require("./core/TypeORM/KoncileOcr"), exports);
|
|
51
51
|
__exportStar(require("./core/TypeORM/WebhookOutput"), exports);
|
|
52
|
+
__exportStar(require("./core/TypeORM/AdminActionLog"), exports);
|
|
52
53
|
// TypeORM enums
|
|
53
54
|
var EnedisReportHistory_1 = require("./core/TypeORM/EnedisReportHistory");
|
|
54
55
|
Object.defineProperty(exports, "EnedisReportAcquisitionMethod", { enumerable: true, get: function () { return EnedisReportHistory_1.EnedisReportAcquisitionMethod; } });
|