@likewatt/models 1.0.78 → 1.0.80
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/License.js +1 -1
- package/dist/core/User.d.ts +0 -2
- package/dist/core/User.js +4 -16
- package/package.json +1 -1
package/dist/core/License.js
CHANGED
|
@@ -103,7 +103,7 @@ __decorate([
|
|
|
103
103
|
__decorate([
|
|
104
104
|
(0, swagger_1.ApiProperty)({
|
|
105
105
|
description: 'Type de l’utilisateur',
|
|
106
|
-
example:
|
|
106
|
+
example: true,
|
|
107
107
|
}),
|
|
108
108
|
(0, mongoose_2.Prop)({ type: Boolean, required: false, default: false }),
|
|
109
109
|
(0, class_validator_1.IsOptional)(),
|
package/dist/core/User.d.ts
CHANGED
package/dist/core/User.js
CHANGED
|
@@ -73,18 +73,6 @@ __decorate([
|
|
|
73
73
|
(0, class_validator_1.IsEmail)(),
|
|
74
74
|
__metadata("design:type", String)
|
|
75
75
|
], User.prototype, "email", void 0);
|
|
76
|
-
__decorate([
|
|
77
|
-
(0, swagger_1.ApiProperty)(),
|
|
78
|
-
(0, mongoose_2.Prop)({ type: Date, required: true }),
|
|
79
|
-
(0, class_validator_1.IsDate)(),
|
|
80
|
-
__metadata("design:type", Date)
|
|
81
|
-
], User.prototype, "endDate", void 0);
|
|
82
|
-
__decorate([
|
|
83
|
-
(0, swagger_1.ApiProperty)(),
|
|
84
|
-
(0, mongoose_2.Prop)({ type: Date, required: true }),
|
|
85
|
-
(0, class_validator_1.IsDate)(),
|
|
86
|
-
__metadata("design:type", Date)
|
|
87
|
-
], User.prototype, "startDate", void 0);
|
|
88
76
|
__decorate([
|
|
89
77
|
(0, swagger_1.ApiProperty)({
|
|
90
78
|
description: 'Mot de passe (stocké hashé)',
|
|
@@ -164,7 +152,7 @@ __decorate([
|
|
|
164
152
|
description: 'Nom de la société',
|
|
165
153
|
example: 'LIKEWATT',
|
|
166
154
|
}),
|
|
167
|
-
(0, mongoose_2.Prop)({ type: String, required:
|
|
155
|
+
(0, mongoose_2.Prop)({ type: String, required: true }),
|
|
168
156
|
(0, class_validator_1.IsOptional)(),
|
|
169
157
|
(0, class_validator_1.IsString)(),
|
|
170
158
|
__metadata("design:type", String)
|
|
@@ -174,7 +162,7 @@ __decorate([
|
|
|
174
162
|
description: 'Nom de la société',
|
|
175
163
|
example: 'LIKEWATT',
|
|
176
164
|
}),
|
|
177
|
-
(0, mongoose_2.Prop)({ type: String, required:
|
|
165
|
+
(0, mongoose_2.Prop)({ type: String, required: false }),
|
|
178
166
|
(0, class_validator_1.IsOptional)(),
|
|
179
167
|
(0, class_validator_1.IsString)(),
|
|
180
168
|
__metadata("design:type", String)
|
|
@@ -184,7 +172,7 @@ __decorate([
|
|
|
184
172
|
description: 'Adresse postale',
|
|
185
173
|
example: '1 rue de la République',
|
|
186
174
|
}),
|
|
187
|
-
(0, mongoose_2.Prop)({ type: String, required:
|
|
175
|
+
(0, mongoose_2.Prop)({ type: String, required: true }),
|
|
188
176
|
(0, class_validator_1.IsOptional)(),
|
|
189
177
|
(0, class_validator_1.IsString)(),
|
|
190
178
|
__metadata("design:type", String)
|
|
@@ -204,7 +192,7 @@ __decorate([
|
|
|
204
192
|
description: 'Code postal',
|
|
205
193
|
example: '69100',
|
|
206
194
|
}),
|
|
207
|
-
(0, mongoose_2.Prop)({ type: String, required:
|
|
195
|
+
(0, mongoose_2.Prop)({ type: String, required: true }),
|
|
208
196
|
(0, class_validator_1.IsOptional)(),
|
|
209
197
|
(0, class_validator_1.IsString)(),
|
|
210
198
|
__metadata("design:type", String)
|