@likewatt/models 1.0.102 → 1.0.104

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.
@@ -60,7 +60,7 @@ export declare class Site {
60
60
  buildingData: BuildingData;
61
61
  autoCO2?: boolean;
62
62
  co2rate?: number;
63
- connectingPower: string;
63
+ connectingPower: number;
64
64
  consentFileUrl: string;
65
65
  consumptionIndexes: ConsumptionIndexes;
66
66
  creator: string;
package/dist/core/Site.js CHANGED
@@ -334,9 +334,9 @@ __decorate([
334
334
  ], Site.prototype, "co2rate", void 0);
335
335
  __decorate([
336
336
  (0, swagger_1.ApiProperty)(),
337
- (0, mongoose_1.Prop)({ required: false }),
338
- (0, class_validator_1.IsString)(),
339
- __metadata("design:type", String)
337
+ (0, mongoose_1.Prop)({ type: Number, required: true, default: 0 }),
338
+ (0, class_validator_1.IsNumber)(),
339
+ __metadata("design:type", Number)
340
340
  ], Site.prototype, "connectingPower", void 0);
341
341
  __decorate([
342
342
  (0, swagger_1.ApiProperty)(),
@@ -59,7 +59,7 @@ export interface Site {
59
59
  buildingData: BuildingData;
60
60
  autoCO2?: boolean;
61
61
  co2rate?: number;
62
- connectingPower: string;
62
+ connectingPower: number;
63
63
  consentFileUrl: string;
64
64
  consumptionIndexes: ConsumptionIndexes;
65
65
  creator: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@likewatt/models",
3
- "version": "1.0.102",
3
+ "version": "1.0.104",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {