@likewatt/models 1.0.49 → 1.0.50

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.
@@ -53,7 +53,7 @@ __decorate([
53
53
  ], CollectiveSite.prototype, "type", void 0);
54
54
  __decorate([
55
55
  (0, swagger_1.ApiProperty)(),
56
- (0, mongoose_1.Prop)({ required: false }),
56
+ (0, mongoose_1.Prop)({ type: String, required: false }),
57
57
  (0, class_validator_1.IsOptional)(),
58
58
  (0, class_validator_1.IsString)(),
59
59
  __metadata("design:type", String)
@@ -90,14 +90,14 @@ __decorate([
90
90
  ], CollectiveSite.prototype, "currency", void 0);
91
91
  __decorate([
92
92
  (0, swagger_1.ApiProperty)(),
93
- (0, mongoose_1.Prop)({ required: false, default: null }),
93
+ (0, mongoose_1.Prop)({ type: Boolean, required: false, default: null }),
94
94
  (0, class_validator_1.IsOptional)(),
95
95
  (0, class_validator_1.IsBoolean)(),
96
96
  __metadata("design:type", Boolean)
97
97
  ], CollectiveSite.prototype, "autoCO2", void 0);
98
98
  __decorate([
99
99
  (0, swagger_1.ApiProperty)(),
100
- (0, mongoose_1.Prop)({ required: false, default: null }),
100
+ (0, mongoose_1.Prop)({ type: Number, required: false, default: null }),
101
101
  (0, class_validator_1.IsOptional)(),
102
102
  (0, class_validator_1.IsNumber)(),
103
103
  __metadata("design:type", Number)
@@ -21,7 +21,7 @@ export declare class Site {
21
21
  type: SiteType;
22
22
  purchaseMeterOwner: string;
23
23
  purchaseContractType: string;
24
- description?: string | undefined;
24
+ description?: string;
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 | null;
60
59
  buildingData: BuildingData;
61
- co2rate?: number | null;
60
+ autoCO2?: boolean;
61
+ co2rate?: number;
62
62
  connectingPower: string;
63
63
  consentFileUrl: string;
64
64
  consumptionIndexes: ConsumptionIndexes;
package/dist/core/Site.js CHANGED
@@ -92,11 +92,11 @@ __decorate([
92
92
  __metadata("design:type", String)
93
93
  ], Site.prototype, "purchaseContractType", void 0);
94
94
  __decorate([
95
- (0, swagger_1.ApiProperty)({ required: false }),
96
- (0, mongoose_1.Prop)({ required: false }),
95
+ (0, swagger_1.ApiProperty)(),
96
+ (0, mongoose_1.Prop)({ type: String, required: false }),
97
97
  (0, class_validator_1.IsOptional)(),
98
98
  (0, class_validator_1.IsString)(),
99
- __metadata("design:type", Object)
99
+ __metadata("design:type", String)
100
100
  ], Site.prototype, "description", void 0);
101
101
  __decorate([
102
102
  (0, mongoose_1.Prop)({ required: true }),
@@ -304,24 +304,24 @@ __decorate([
304
304
  (0, class_validator_1.IsNumber)(),
305
305
  __metadata("design:type", Number)
306
306
  ], Site.prototype, "analysisYear", void 0);
307
- __decorate([
308
- (0, swagger_1.ApiProperty)({ required: false, nullable: true }),
309
- (0, mongoose_1.Prop)({ required: false, default: null }),
310
- (0, class_validator_1.IsOptional)(),
311
- (0, class_validator_1.IsBoolean)(),
312
- __metadata("design:type", Object)
313
- ], Site.prototype, "autoCO2", void 0);
314
307
  __decorate([
315
308
  (0, swagger_1.ApiProperty)({ type: building_data_1.BuildingData }),
316
309
  (0, mongoose_1.Prop)({ type: building_data_1.BuildingData, required: true }),
317
310
  __metadata("design:type", building_data_1.BuildingData)
318
311
  ], Site.prototype, "buildingData", void 0);
319
312
  __decorate([
320
- (0, swagger_1.ApiProperty)({ required: false, nullable: true }),
321
- (0, mongoose_1.Prop)({ required: false, default: null }),
313
+ (0, swagger_1.ApiProperty)(),
314
+ (0, mongoose_1.Prop)({ type: Boolean, required: false, default: null }),
315
+ (0, class_validator_1.IsOptional)(),
316
+ (0, class_validator_1.IsBoolean)(),
317
+ __metadata("design:type", Boolean)
318
+ ], Site.prototype, "autoCO2", void 0);
319
+ __decorate([
320
+ (0, swagger_1.ApiProperty)(),
321
+ (0, mongoose_1.Prop)({ type: Number, required: false, default: null }),
322
322
  (0, class_validator_1.IsOptional)(),
323
323
  (0, class_validator_1.IsNumber)(),
324
- __metadata("design:type", Object)
324
+ __metadata("design:type", Number)
325
325
  ], Site.prototype, "co2rate", void 0);
326
326
  __decorate([
327
327
  (0, swagger_1.ApiProperty)(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@likewatt/models",
3
- "version": "1.0.49",
3
+ "version": "1.0.50",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {