@likewatt/models 1.0.44 → 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.
@@ -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
@@ -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.44",
3
+ "version": "1.0.45",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {