@likewatt/models 1.0.44 → 1.0.46

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.
@@ -21,7 +21,7 @@ export declare class Site {
21
21
  type: SiteType;
22
22
  purchaseMeterOwner: string;
23
23
  purchaseContractType: string;
24
- description: string;
24
+ description?: string | undefined;
25
25
  subscriptionRates: number;
26
26
  address: string;
27
27
  ratesOption: string;
@@ -56,9 +56,9 @@ export declare class Site {
56
56
  _step3At: Date;
57
57
  analysisId: string;
58
58
  analysisYear: number;
59
- autoCO2: boolean;
59
+ autoCO2?: boolean | null;
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
@@ -92,10 +92,11 @@ __decorate([
92
92
  __metadata("design:type", String)
93
93
  ], Site.prototype, "purchaseContractType", void 0);
94
94
  __decorate([
95
- (0, swagger_1.ApiProperty)(),
96
- (0, mongoose_1.Prop)({ required: true }),
95
+ (0, swagger_1.ApiProperty)({ required: false }),
96
+ (0, mongoose_1.Prop)({ required: false }),
97
+ (0, class_validator_1.IsOptional)(),
97
98
  (0, class_validator_1.IsString)(),
98
- __metadata("design:type", String)
99
+ __metadata("design:type", Object)
99
100
  ], Site.prototype, "description", void 0);
100
101
  __decorate([
101
102
  (0, mongoose_1.Prop)({ required: true }),
@@ -304,10 +305,11 @@ __decorate([
304
305
  __metadata("design:type", Number)
305
306
  ], Site.prototype, "analysisYear", void 0);
306
307
  __decorate([
307
- (0, swagger_1.ApiProperty)(),
308
- (0, mongoose_1.Prop)({ required: true }),
308
+ (0, swagger_1.ApiProperty)({ required: false, nullable: true }),
309
+ (0, mongoose_1.Prop)({ required: false, default: null }),
310
+ (0, class_validator_1.IsOptional)(),
309
311
  (0, class_validator_1.IsBoolean)(),
310
- __metadata("design:type", Boolean)
312
+ __metadata("design:type", Object)
311
313
  ], Site.prototype, "autoCO2", void 0);
312
314
  __decorate([
313
315
  (0, swagger_1.ApiProperty)({ type: building_data_1.BuildingData }),
@@ -315,10 +317,11 @@ __decorate([
315
317
  __metadata("design:type", building_data_1.BuildingData)
316
318
  ], Site.prototype, "buildingData", void 0);
317
319
  __decorate([
318
- (0, swagger_1.ApiProperty)(),
319
- (0, mongoose_1.Prop)({ required: true }),
320
+ (0, swagger_1.ApiProperty)({ required: false, nullable: true }),
321
+ (0, mongoose_1.Prop)({ required: false, default: null }),
322
+ (0, class_validator_1.IsOptional)(),
320
323
  (0, class_validator_1.IsNumber)(),
321
- __metadata("design:type", Number)
324
+ __metadata("design:type", Object)
322
325
  ], Site.prototype, "co2rate", void 0);
323
326
  __decorate([
324
327
  (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.46",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {