@likewatt/models 1.0.43 → 1.0.45

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.
@@ -50,7 +50,7 @@ export declare class Site {
50
50
  TCSPE: number;
51
51
  TURPE_VERSION: number;
52
52
  _createdAt: Date;
53
- _lastModifiedAt: Date;
53
+ _lastModified: Date;
54
54
  _lastUpdated: string;
55
55
  _step3: boolean;
56
56
  _step3At: Date;
@@ -58,7 +58,7 @@ export declare class Site {
58
58
  analysisYear: number;
59
59
  autoCO2: boolean;
60
60
  buildingData: BuildingData;
61
- co2rate: number;
61
+ co2rate?: number | null;
62
62
  connectingPower: string;
63
63
  consentFileUrl: string;
64
64
  consumptionIndexes: ConsumptionIndexes;
package/dist/core/Site.js CHANGED
@@ -272,7 +272,7 @@ __decorate([
272
272
  (0, mongoose_1.Prop)({ type: Date, required: true }),
273
273
  (0, class_validator_1.IsDate)(),
274
274
  __metadata("design:type", Date)
275
- ], Site.prototype, "_lastModifiedAt", void 0);
275
+ ], Site.prototype, "_lastModified", void 0);
276
276
  __decorate([
277
277
  (0, swagger_1.ApiProperty)(),
278
278
  (0, mongoose_1.Prop)({ required: true }),
@@ -315,10 +315,11 @@ __decorate([
315
315
  __metadata("design:type", building_data_1.BuildingData)
316
316
  ], Site.prototype, "buildingData", void 0);
317
317
  __decorate([
318
- (0, swagger_1.ApiProperty)(),
319
- (0, mongoose_1.Prop)({ required: true }),
318
+ (0, swagger_1.ApiProperty)({ required: false, nullable: true }),
319
+ (0, mongoose_1.Prop)({ required: false, default: null }),
320
+ (0, class_validator_1.IsOptional)(),
320
321
  (0, class_validator_1.IsNumber)(),
321
- __metadata("design:type", Number)
322
+ __metadata("design:type", Object)
322
323
  ], Site.prototype, "co2rate", void 0);
323
324
  __decorate([
324
325
  (0, swagger_1.ApiProperty)(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@likewatt/models",
3
- "version": "1.0.43",
3
+ "version": "1.0.45",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {