@likewatt/models 1.0.45 → 1.0.47
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.
|
@@ -7,14 +7,14 @@ export declare class CollectiveSite {
|
|
|
7
7
|
_lastModified: string;
|
|
8
8
|
addressGeocode: number[];
|
|
9
9
|
type: SiteType;
|
|
10
|
-
description
|
|
10
|
+
description?: string | undefined;
|
|
11
11
|
address: string;
|
|
12
12
|
initialOwner: string;
|
|
13
13
|
name: string;
|
|
14
14
|
isC_AND_I: boolean;
|
|
15
15
|
currency: string;
|
|
16
|
-
autoCO2
|
|
17
|
-
co2rate
|
|
16
|
+
autoCO2?: boolean | null;
|
|
17
|
+
co2rate?: number | null;
|
|
18
18
|
folder?: string;
|
|
19
19
|
TCSPE: number;
|
|
20
20
|
TURPE_VERSION: number;
|
|
@@ -52,10 +52,11 @@ __decorate([
|
|
|
52
52
|
__metadata("design:type", String)
|
|
53
53
|
], CollectiveSite.prototype, "type", void 0);
|
|
54
54
|
__decorate([
|
|
55
|
-
(0, swagger_1.ApiProperty)(),
|
|
56
|
-
(0, mongoose_1.Prop)({ required:
|
|
55
|
+
(0, swagger_1.ApiProperty)({ required: false }),
|
|
56
|
+
(0, mongoose_1.Prop)({ required: false }),
|
|
57
|
+
(0, class_validator_1.IsOptional)(),
|
|
57
58
|
(0, class_validator_1.IsString)(),
|
|
58
|
-
__metadata("design:type",
|
|
59
|
+
__metadata("design:type", Object)
|
|
59
60
|
], CollectiveSite.prototype, "description", void 0);
|
|
60
61
|
__decorate([
|
|
61
62
|
(0, swagger_1.ApiProperty)(),
|
|
@@ -88,16 +89,18 @@ __decorate([
|
|
|
88
89
|
__metadata("design:type", String)
|
|
89
90
|
], CollectiveSite.prototype, "currency", void 0);
|
|
90
91
|
__decorate([
|
|
91
|
-
(0, swagger_1.ApiProperty)(),
|
|
92
|
-
(0, mongoose_1.Prop)({ required:
|
|
92
|
+
(0, swagger_1.ApiProperty)({ required: false, nullable: true }),
|
|
93
|
+
(0, mongoose_1.Prop)({ required: false, default: null }),
|
|
94
|
+
(0, class_validator_1.IsOptional)(),
|
|
93
95
|
(0, class_validator_1.IsBoolean)(),
|
|
94
|
-
__metadata("design:type",
|
|
96
|
+
__metadata("design:type", Object)
|
|
95
97
|
], CollectiveSite.prototype, "autoCO2", void 0);
|
|
96
98
|
__decorate([
|
|
97
|
-
(0, swagger_1.ApiProperty)(),
|
|
98
|
-
(0, mongoose_1.Prop)({ required:
|
|
99
|
+
(0, swagger_1.ApiProperty)({ required: false, nullable: true }),
|
|
100
|
+
(0, mongoose_1.Prop)({ required: false, default: null }),
|
|
101
|
+
(0, class_validator_1.IsOptional)(),
|
|
99
102
|
(0, class_validator_1.IsNumber)(),
|
|
100
|
-
__metadata("design:type",
|
|
103
|
+
__metadata("design:type", Object)
|
|
101
104
|
], CollectiveSite.prototype, "co2rate", void 0);
|
|
102
105
|
__decorate([
|
|
103
106
|
(0, swagger_1.ApiPropertyOptional)(),
|
package/dist/core/Site.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ export declare class Site {
|
|
|
21
21
|
type: SiteType;
|
|
22
22
|
purchaseMeterOwner: string;
|
|
23
23
|
purchaseContractType: string;
|
|
24
|
-
description
|
|
24
|
+
description?: string | undefined;
|
|
25
25
|
subscriptionRates: number;
|
|
26
26
|
address: string;
|
|
27
27
|
ratesOption: string;
|
|
@@ -56,7 +56,7 @@ export declare class Site {
|
|
|
56
56
|
_step3At: Date;
|
|
57
57
|
analysisId: string;
|
|
58
58
|
analysisYear: number;
|
|
59
|
-
autoCO2
|
|
59
|
+
autoCO2?: boolean | null;
|
|
60
60
|
buildingData: BuildingData;
|
|
61
61
|
co2rate?: number | null;
|
|
62
62
|
connectingPower: string;
|
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:
|
|
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",
|
|
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:
|
|
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",
|
|
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 }),
|