@likewatt/models 1.56.0 → 1.57.1
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/core/Consent.js +1 -1
- package/dist/core/DefaultRate.d.ts +1 -0
- package/dist/core/DefaultRate.js +7 -0
- package/dist/core/License.js +2 -2
- package/dist/core/ScenarioDefaultValue.d.ts +1 -1
- package/dist/core/ScenarioDefaultValue.js +1 -2
- package/dist/core/Site.js +5 -5
- package/dist/core/Subscription.js +3 -3
- package/dist/core/User.d.ts +6 -6
- package/dist/core/User.js +10 -9
- package/package.json +1 -1
package/dist/core/Consent.js
CHANGED
|
@@ -77,7 +77,7 @@ __decorate([
|
|
|
77
77
|
}),
|
|
78
78
|
(0, mongoose_2.Prop)({ type: Date, required: false }),
|
|
79
79
|
(0, class_validator_1.IsOptional)(),
|
|
80
|
-
(0, class_validator_1.
|
|
80
|
+
(0, class_validator_1.IsOptional)(),
|
|
81
81
|
__metadata("design:type", Date)
|
|
82
82
|
], Consent.prototype, "date", void 0);
|
|
83
83
|
__decorate([
|
package/dist/core/DefaultRate.js
CHANGED
|
@@ -57,6 +57,13 @@ __decorate([
|
|
|
57
57
|
(0, class_validator_1.IsOptional)(),
|
|
58
58
|
__metadata("design:type", String)
|
|
59
59
|
], DefaultRate.prototype, "userId", void 0);
|
|
60
|
+
__decorate([
|
|
61
|
+
(0, swagger_1.ApiProperty)(),
|
|
62
|
+
(0, mongoose_1.Prop)({ type: String, required: false }),
|
|
63
|
+
(0, class_validator_1.IsOptional)(),
|
|
64
|
+
(0, class_validator_1.IsString)(),
|
|
65
|
+
__metadata("design:type", String)
|
|
66
|
+
], DefaultRate.prototype, "rateId", void 0);
|
|
60
67
|
__decorate([
|
|
61
68
|
(0, swagger_1.ApiProperty)({ type: [rates_1.Rates] }),
|
|
62
69
|
(0, mongoose_1.Prop)({ required: true }),
|
package/dist/core/License.js
CHANGED
|
@@ -60,7 +60,7 @@ __decorate([
|
|
|
60
60
|
example: '2023-01-01T00:00:00Z',
|
|
61
61
|
}),
|
|
62
62
|
(0, mongoose_1.Prop)({ type: Date, required: true }),
|
|
63
|
-
(0, class_validator_1.
|
|
63
|
+
(0, class_validator_1.IsOptional)(),
|
|
64
64
|
__metadata("design:type", Date)
|
|
65
65
|
], License.prototype, "startDate", void 0);
|
|
66
66
|
__decorate([
|
|
@@ -69,7 +69,7 @@ __decorate([
|
|
|
69
69
|
example: '2023-12-31T23:59:59Z',
|
|
70
70
|
}),
|
|
71
71
|
(0, mongoose_1.Prop)({ type: Date, required: true }),
|
|
72
|
-
(0, class_validator_1.
|
|
72
|
+
(0, class_validator_1.IsOptional)(),
|
|
73
73
|
__metadata("design:type", Date)
|
|
74
74
|
], License.prototype, "endDate", void 0);
|
|
75
75
|
__decorate([
|
|
@@ -234,8 +234,7 @@ __decorate([
|
|
|
234
234
|
(0, mongoose_1.Prop)(),
|
|
235
235
|
(0, class_validator_1.IsOptional)(),
|
|
236
236
|
(0, class_validator_1.IsString)(),
|
|
237
|
-
(
|
|
238
|
-
__metadata("design:type", Date)
|
|
237
|
+
__metadata("design:type", Object)
|
|
239
238
|
], ScenarioDefaultValue.prototype, "createdBy", void 0);
|
|
240
239
|
__decorate([
|
|
241
240
|
(0, swagger_1.ApiPropertyOptional)(),
|
package/dist/core/Site.js
CHANGED
|
@@ -187,13 +187,13 @@ __decorate([
|
|
|
187
187
|
__decorate([
|
|
188
188
|
(0, swagger_1.ApiProperty)(),
|
|
189
189
|
(0, mongoose_1.Prop)({ type: Date, required: false }),
|
|
190
|
-
(0, class_validator_1.
|
|
190
|
+
(0, class_validator_1.IsOptional)(),
|
|
191
191
|
__metadata("design:type", Object)
|
|
192
192
|
], Site.prototype, "startDate", void 0);
|
|
193
193
|
__decorate([
|
|
194
194
|
(0, swagger_1.ApiProperty)(),
|
|
195
195
|
(0, mongoose_1.Prop)({ type: Date, required: false }),
|
|
196
|
-
(0, class_validator_1.
|
|
196
|
+
(0, class_validator_1.IsOptional)(),
|
|
197
197
|
__metadata("design:type", Object)
|
|
198
198
|
], Site.prototype, "endDate", void 0);
|
|
199
199
|
__decorate([
|
|
@@ -277,7 +277,7 @@ __decorate([
|
|
|
277
277
|
(0, swagger_1.ApiPropertyOptional)(),
|
|
278
278
|
(0, mongoose_1.Prop)({ type: Date, required: false }),
|
|
279
279
|
(0, class_validator_1.IsOptional)(),
|
|
280
|
-
(0, class_validator_1.
|
|
280
|
+
(0, class_validator_1.IsOptional)(),
|
|
281
281
|
__metadata("design:type", Object)
|
|
282
282
|
], Site.prototype, "_step3At", void 0);
|
|
283
283
|
__decorate([
|
|
@@ -482,14 +482,14 @@ __decorate([
|
|
|
482
482
|
(0, swagger_1.ApiPropertyOptional)(),
|
|
483
483
|
(0, mongoose_1.Prop)({ type: Date, required: false }),
|
|
484
484
|
(0, class_validator_1.IsOptional)(),
|
|
485
|
-
(0, class_validator_1.
|
|
485
|
+
(0, class_validator_1.IsOptional)(),
|
|
486
486
|
__metadata("design:type", Object)
|
|
487
487
|
], Site.prototype, "maxEndDate", void 0);
|
|
488
488
|
__decorate([
|
|
489
489
|
(0, swagger_1.ApiPropertyOptional)(),
|
|
490
490
|
(0, mongoose_1.Prop)({ type: Date, required: false }),
|
|
491
491
|
(0, class_validator_1.IsOptional)(),
|
|
492
|
-
(0, class_validator_1.
|
|
492
|
+
(0, class_validator_1.IsOptional)(),
|
|
493
493
|
__metadata("design:type", Object)
|
|
494
494
|
], Site.prototype, "maxStartDate", void 0);
|
|
495
495
|
__decorate([
|
|
@@ -169,7 +169,7 @@ __decorate([
|
|
|
169
169
|
example: '2024-01-01T00:00:00Z',
|
|
170
170
|
}),
|
|
171
171
|
(0, mongoose_1.Prop)({ type: Date, required: true }),
|
|
172
|
-
(0, class_validator_1.
|
|
172
|
+
(0, class_validator_1.IsOptional)(),
|
|
173
173
|
__metadata("design:type", Date)
|
|
174
174
|
], Subscription.prototype, "currentPeriodStart", void 0);
|
|
175
175
|
__decorate([
|
|
@@ -178,7 +178,7 @@ __decorate([
|
|
|
178
178
|
example: '2024-02-01T00:00:00Z',
|
|
179
179
|
}),
|
|
180
180
|
(0, mongoose_1.Prop)({ type: Date, required: true }),
|
|
181
|
-
(0, class_validator_1.
|
|
181
|
+
(0, class_validator_1.IsOptional)(),
|
|
182
182
|
__metadata("design:type", Date)
|
|
183
183
|
], Subscription.prototype, "currentPeriodEnd", void 0);
|
|
184
184
|
__decorate([
|
|
@@ -207,7 +207,7 @@ __decorate([
|
|
|
207
207
|
}),
|
|
208
208
|
(0, mongoose_1.Prop)({ type: Date, required: false }),
|
|
209
209
|
(0, class_validator_1.IsOptional)(),
|
|
210
|
-
(0, class_validator_1.
|
|
210
|
+
(0, class_validator_1.IsOptional)(),
|
|
211
211
|
__metadata("design:type", Date)
|
|
212
212
|
], Subscription.prototype, "lastSyncedAt", void 0);
|
|
213
213
|
exports.Subscription = Subscription = __decorate([
|
package/dist/core/User.d.ts
CHANGED
|
@@ -72,13 +72,13 @@ export declare class User {
|
|
|
72
72
|
password: string;
|
|
73
73
|
firstname: string;
|
|
74
74
|
folders: Folder[];
|
|
75
|
-
managerLicenses
|
|
76
|
-
managerLicensesUsed
|
|
77
|
-
renewLicense
|
|
75
|
+
managerLicenses?: ManagerLicenses;
|
|
76
|
+
managerLicensesUsed?: ManagerLicenses;
|
|
77
|
+
renewLicense?: object;
|
|
78
78
|
defaultRates: string[];
|
|
79
79
|
defaultScenarios: string[];
|
|
80
80
|
lastname: string;
|
|
81
|
-
usersList
|
|
81
|
+
usersList?: UsersList[];
|
|
82
82
|
phone?: string;
|
|
83
83
|
company?: string;
|
|
84
84
|
organization?: string;
|
|
@@ -117,8 +117,8 @@ export declare class User {
|
|
|
117
117
|
webhook?: WebhookParams;
|
|
118
118
|
tokenData?: tokenData;
|
|
119
119
|
_lastConnected?: string;
|
|
120
|
-
startDate?: Date;
|
|
121
|
-
endDate?: Date;
|
|
120
|
+
startDate?: Date | string;
|
|
121
|
+
endDate?: Date | string;
|
|
122
122
|
stripeCustomerId?: string;
|
|
123
123
|
hasLeads?: boolean;
|
|
124
124
|
}
|
package/dist/core/User.js
CHANGED
|
@@ -88,7 +88,7 @@ __decorate([
|
|
|
88
88
|
example: true,
|
|
89
89
|
}),
|
|
90
90
|
(0, mongoose_1.Prop)({ type: Date, required: true }),
|
|
91
|
-
(0, class_validator_1.
|
|
91
|
+
(0, class_validator_1.IsOptional)(),
|
|
92
92
|
__metadata("design:type", Date)
|
|
93
93
|
], tokenData.prototype, "resetPasswordExpires", void 0);
|
|
94
94
|
exports.tokenData = tokenData = __decorate([
|
|
@@ -201,19 +201,19 @@ __decorate([
|
|
|
201
201
|
__decorate([
|
|
202
202
|
(0, swagger_1.ApiProperty)({ type: manager_licenses_1.ManagerLicenses }),
|
|
203
203
|
(0, mongoose_1.Prop)({ type: [folder_model_1.FolderSchema] }),
|
|
204
|
-
(0, class_validator_1.
|
|
204
|
+
(0, class_validator_1.IsOptional)(),
|
|
205
205
|
__metadata("design:type", manager_licenses_1.ManagerLicenses)
|
|
206
206
|
], User.prototype, "managerLicenses", void 0);
|
|
207
207
|
__decorate([
|
|
208
208
|
(0, swagger_1.ApiProperty)({ type: manager_licenses_1.ManagerLicenses }),
|
|
209
209
|
(0, mongoose_1.Prop)({ type: [folder_model_1.FolderSchema] }),
|
|
210
|
-
(0, class_validator_1.
|
|
210
|
+
(0, class_validator_1.IsOptional)(),
|
|
211
211
|
__metadata("design:type", manager_licenses_1.ManagerLicenses)
|
|
212
212
|
], User.prototype, "managerLicensesUsed", void 0);
|
|
213
213
|
__decorate([
|
|
214
214
|
(0, swagger_1.ApiProperty)({ type: Object }),
|
|
215
215
|
(0, mongoose_1.Prop)({ type: [Object] }),
|
|
216
|
-
(0, class_validator_1.
|
|
216
|
+
(0, class_validator_1.IsOptional)(),
|
|
217
217
|
__metadata("design:type", Object)
|
|
218
218
|
], User.prototype, "renewLicense", void 0);
|
|
219
219
|
__decorate([
|
|
@@ -240,7 +240,8 @@ __decorate([
|
|
|
240
240
|
__decorate([
|
|
241
241
|
(0, swagger_1.ApiProperty)({ type: [users_list_1.UsersList] }),
|
|
242
242
|
(0, mongoose_1.Prop)({ type: [users_list_1.UsersListSchema], required: true, default: [] }),
|
|
243
|
-
(0, class_validator_1.
|
|
243
|
+
(0, class_validator_1.IsOptional)(),
|
|
244
|
+
(0, class_validator_1.IsArray)(),
|
|
244
245
|
__metadata("design:type", Array)
|
|
245
246
|
], User.prototype, "usersList", void 0);
|
|
246
247
|
__decorate([
|
|
@@ -631,14 +632,14 @@ __decorate([
|
|
|
631
632
|
__decorate([
|
|
632
633
|
(0, swagger_1.ApiProperty)(),
|
|
633
634
|
(0, mongoose_1.Prop)({ type: Date, required: false }),
|
|
634
|
-
(0, class_validator_1.
|
|
635
|
-
__metadata("design:type",
|
|
635
|
+
(0, class_validator_1.IsOptional)(),
|
|
636
|
+
__metadata("design:type", Object)
|
|
636
637
|
], User.prototype, "startDate", void 0);
|
|
637
638
|
__decorate([
|
|
638
639
|
(0, swagger_1.ApiProperty)(),
|
|
639
640
|
(0, mongoose_1.Prop)({ type: Date, required: false }),
|
|
640
|
-
(0, class_validator_1.
|
|
641
|
-
__metadata("design:type",
|
|
641
|
+
(0, class_validator_1.IsOptional)(),
|
|
642
|
+
__metadata("design:type", Object)
|
|
642
643
|
], User.prototype, "endDate", void 0);
|
|
643
644
|
__decorate([
|
|
644
645
|
(0, swagger_1.ApiProperty)({
|