@likewatt/models 1.56.0 → 1.57.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.
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/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
|
@@ -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)({
|