@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.
@@ -103,7 +103,7 @@ __decorate([
103
103
  __decorate([
104
104
  (0, swagger_1.ApiProperty)({
105
105
  description: 'Type de l’utilisateur',
106
- example: 'CONSUMER_PLUS',
106
+ example: true,
107
107
  }),
108
108
  (0, mongoose_2.Prop)({ type: Boolean, required: false, default: false }),
109
109
  (0, class_validator_1.IsOptional)(),
@@ -27,8 +27,6 @@ export declare const SiteTagSchema: import("mongoose").Schema<SiteTag, import("m
27
27
  export declare class User {
28
28
  _id: Types.ObjectId;
29
29
  email: string;
30
- endDate: Date;
31
- startDate: Date;
32
30
  password: string;
33
31
  firstname: string;
34
32
  folders: Folder[];
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: false }),
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: true }),
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: false }),
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: false }),
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)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@likewatt/models",
3
- "version": "1.0.78",
3
+ "version": "1.0.80",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {