@likewatt/models 1.52.0 → 1.52.2

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.
@@ -180,13 +180,11 @@ __decorate([
180
180
  __decorate([
181
181
  (0, swagger_1.ApiPropertyOptional)(),
182
182
  (0, class_validator_1.IsOptional)(),
183
- (0, class_validator_1.IsDate)(),
184
183
  __metadata("design:type", Object)
185
184
  ], CollectiveSite.prototype, "createdAt", void 0);
186
185
  __decorate([
187
186
  (0, swagger_1.ApiPropertyOptional)(),
188
187
  (0, class_validator_1.IsOptional)(),
189
- (0, class_validator_1.IsDate)(),
190
188
  __metadata("design:type", Object)
191
189
  ], CollectiveSite.prototype, "updatedAt", void 0);
192
190
  exports.CollectiveSite = CollectiveSite = __decorate([
@@ -10,7 +10,8 @@ export declare class Invitation {
10
10
  _id: string;
11
11
  email: string;
12
12
  principal: string;
13
- createdAt?: Date;
13
+ createdAt?: Date | string;
14
+ updatedAt?: Date | string;
14
15
  }
15
16
  export type InvitationDocument = Invitation & Document;
16
17
  export declare const InvitationSchema: import("mongoose").Schema<Invitation, import("mongoose").Model<Invitation, any, any, any, Document<unknown, any, Invitation, any, {}> & Invitation & Required<{
@@ -60,11 +60,15 @@ __decorate([
60
60
  example: '30-04-2024',
61
61
  type: String,
62
62
  }),
63
- (0, mongoose_1.Prop)({ type: String, required: false }),
63
+ (0, swagger_1.ApiPropertyOptional)(),
64
64
  (0, class_validator_1.IsOptional)(),
65
- (0, class_validator_1.IsString)(),
66
- __metadata("design:type", Date)
65
+ __metadata("design:type", Object)
67
66
  ], Invitation.prototype, "createdAt", void 0);
67
+ __decorate([
68
+ (0, swagger_1.ApiPropertyOptional)(),
69
+ (0, class_validator_1.IsOptional)(),
70
+ __metadata("design:type", Object)
71
+ ], Invitation.prototype, "updatedAt", void 0);
68
72
  exports.Invitation = Invitation = __decorate([
69
73
  (0, mongoose_1.Schema)({
70
74
  id: false,
@@ -167,7 +167,8 @@ export declare class Scenario {
167
167
  technologies?: Technology[];
168
168
  pvs?: Pv[];
169
169
  version?: number;
170
- createdAt: Date;
170
+ createdAt?: Date | string;
171
+ updatedAt?: Date | string;
171
172
  }
172
173
  export type ScenarioDocument = Scenario & Document;
173
174
  export declare const ScenarioSchema: MSchema<Scenario, import("mongoose").Model<Scenario, any, any, any, Document<unknown, any, Scenario, any, {}> & Scenario & Required<{
@@ -585,11 +585,15 @@ __decorate([
585
585
  __metadata("design:type", Number)
586
586
  ], Scenario.prototype, "version", void 0);
587
587
  __decorate([
588
- (0, swagger_1.ApiProperty)({ example: '2025-04-24T14:05:00.000Z' }),
589
- (0, mongoose_1.Prop)({ default: Date.now }),
590
- (0, class_validator_1.IsDate)(),
591
- __metadata("design:type", Date)
588
+ (0, swagger_1.ApiPropertyOptional)({ example: '2025-04-24T14:05:00.000Z' }),
589
+ (0, class_validator_1.IsOptional)(),
590
+ __metadata("design:type", Object)
592
591
  ], Scenario.prototype, "createdAt", void 0);
592
+ __decorate([
593
+ (0, swagger_1.ApiPropertyOptional)(),
594
+ (0, class_validator_1.IsOptional)(),
595
+ __metadata("design:type", Object)
596
+ ], Scenario.prototype, "updatedAt", void 0);
593
597
  exports.Scenario = Scenario = __decorate([
594
598
  (0, mongoose_1.Schema)({
595
599
  id: false,
@@ -51,9 +51,9 @@ export declare class ScenarioDefaultValue {
51
51
  isOptimized?: boolean;
52
52
  scenarioOption?: string;
53
53
  createdBy?: Date;
54
- updatedAt?: Date;
54
+ updatedAt?: Date | string;
55
55
  isLeads?: boolean;
56
- createdAt?: Date;
56
+ createdAt?: Date | string;
57
57
  }
58
58
  export type ScenarioDefaultValueDocument = ScenarioDefaultValue & Document;
59
59
  export declare const ScenarioDefaultValueSchema: import("mongoose").Schema<ScenarioDefaultValue, import("mongoose").Model<ScenarioDefaultValue, any, any, any, Document<unknown, any, ScenarioDefaultValue, any, {}> & ScenarioDefaultValue & Required<{
@@ -239,10 +239,8 @@ __decorate([
239
239
  ], ScenarioDefaultValue.prototype, "createdBy", void 0);
240
240
  __decorate([
241
241
  (0, swagger_1.ApiPropertyOptional)(),
242
- (0, mongoose_1.Prop)({ type: Date, default: Date.now }),
243
- (0, class_validator_1.IsDate)(),
244
242
  (0, class_validator_1.IsOptional)(),
245
- __metadata("design:type", Date)
243
+ __metadata("design:type", Object)
246
244
  ], ScenarioDefaultValue.prototype, "updatedAt", void 0);
247
245
  __decorate([
248
246
  (0, swagger_1.ApiPropertyOptional)({ example: false }),
@@ -254,8 +252,7 @@ __decorate([
254
252
  __decorate([
255
253
  (0, swagger_1.ApiPropertyOptional)(),
256
254
  (0, class_validator_1.IsOptional)(),
257
- (0, class_validator_1.IsDate)(),
258
- __metadata("design:type", Date)
255
+ __metadata("design:type", Object)
259
256
  ], ScenarioDefaultValue.prototype, "createdAt", void 0);
260
257
  exports.ScenarioDefaultValue = ScenarioDefaultValue = __decorate([
261
258
  (0, mongoose_1.Schema)({
package/dist/core/Site.js CHANGED
@@ -579,15 +579,13 @@ __decorate([
579
579
  __metadata("design:type", String)
580
580
  ], Site.prototype, "scenarioOption", void 0);
581
581
  __decorate([
582
- (0, swagger_1.ApiPropertyOptional)({ description: 'Date de création (Mongoose timestamps)' }),
582
+ (0, swagger_1.ApiPropertyOptional)(),
583
583
  (0, class_validator_1.IsOptional)(),
584
- (0, class_validator_1.IsDate)(),
585
584
  __metadata("design:type", Object)
586
585
  ], Site.prototype, "createdAt", void 0);
587
586
  __decorate([
588
- (0, swagger_1.ApiPropertyOptional)({ description: 'Date de dernière mise à jour (Mongoose timestamps)' }),
587
+ (0, swagger_1.ApiPropertyOptional)(),
589
588
  (0, class_validator_1.IsOptional)(),
590
- (0, class_validator_1.IsDate)(),
591
589
  __metadata("design:type", Object)
592
590
  ], Site.prototype, "updatedAt", void 0);
593
591
  exports.Site = Site = __decorate([
@@ -100,13 +100,11 @@ __decorate([
100
100
  __decorate([
101
101
  (0, swagger_1.ApiPropertyOptional)(),
102
102
  (0, class_validator_1.IsOptional)(),
103
- (0, class_validator_1.IsDate)(),
104
103
  __metadata("design:type", Object)
105
104
  ], LeadsForm.prototype, "createdAt", void 0);
106
105
  __decorate([
107
106
  (0, swagger_1.ApiPropertyOptional)(),
108
107
  (0, class_validator_1.IsOptional)(),
109
- (0, class_validator_1.IsDate)(),
110
108
  __metadata("design:type", Object)
111
109
  ], LeadsForm.prototype, "updatedAt", void 0);
112
110
  exports.LeadsForm = LeadsForm = __decorate([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@likewatt/models",
3
- "version": "1.52.0",
3
+ "version": "1.52.2",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {