@likewatt/models 1.1.22 → 1.2.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.
@@ -36,6 +36,7 @@ export declare class Site {
36
36
  addressDepartement: string;
37
37
  reportURL: string;
38
38
  enedisNumber: string;
39
+ strasbourgNumber: string;
39
40
  startDate: Date;
40
41
  endDate: Date;
41
42
  automaticUpdateError?: string;
@@ -69,7 +70,7 @@ export declare class Site {
69
70
  dataIsHybridFrom: string;
70
71
  dataSourceHistory: DataSourceHistory[];
71
72
  dataSource: string;
72
- selectedDataSource: string;
73
+ selectedDataSource?: string;
73
74
  disabled: boolean;
74
75
  enedisBuffer: string;
75
76
  enedisData: boolean;
package/dist/core/Site.js CHANGED
@@ -185,6 +185,12 @@ __decorate([
185
185
  (0, class_validator_1.IsString)(),
186
186
  __metadata("design:type", String)
187
187
  ], Site.prototype, "enedisNumber", void 0);
188
+ __decorate([
189
+ (0, swagger_1.ApiProperty)(),
190
+ (0, mongoose_1.Prop)({ required: false }),
191
+ (0, class_validator_1.IsString)(),
192
+ __metadata("design:type", String)
193
+ ], Site.prototype, "strasbourgNumber", void 0);
188
194
  __decorate([
189
195
  (0, swagger_1.ApiProperty)(),
190
196
  (0, mongoose_1.Prop)({ type: Date, required: false }),
@@ -388,7 +394,7 @@ __decorate([
388
394
  ], Site.prototype, "dataSource", void 0);
389
395
  __decorate([
390
396
  (0, swagger_1.ApiProperty)(),
391
- (0, mongoose_1.Prop)({ required: true }),
397
+ (0, mongoose_1.Prop)({ required: false }),
392
398
  (0, class_validator_1.IsString)(),
393
399
  __metadata("design:type", String)
394
400
  ], Site.prototype, "selectedDataSource", void 0);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@likewatt/models",
3
- "version": "1.1.22",
3
+ "version": "1.2.0",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {