@likewatt/models 1.0.13 → 1.0.14
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.
- package/dist/core/Site.d.ts +6 -7
- package/dist/core/Site.js +12 -15
- package/package.json +1 -1
package/dist/core/Site.d.ts
CHANGED
|
@@ -3,7 +3,6 @@ import { SiteType, Profiles } from './internal/enums';
|
|
|
3
3
|
import { EnergyPrice } from './internal/energy-price.model';
|
|
4
4
|
import { PeakHour } from './internal/peak-hour.model';
|
|
5
5
|
import { OffPeakHour } from './internal/off-peak-hour.model';
|
|
6
|
-
import { SubscriptionRate } from './internal/subscription-rate.model';
|
|
7
6
|
import { CustomerInfos } from './internal/customer-infos.model';
|
|
8
7
|
import { Tarif } from './internal/tarif';
|
|
9
8
|
import { BuildingData } from './internal/building-data';
|
|
@@ -22,7 +21,7 @@ export declare class Site {
|
|
|
22
21
|
purchaseMeterOwner: string;
|
|
23
22
|
purchaseContractType: string;
|
|
24
23
|
description: string;
|
|
25
|
-
subscriptionRates:
|
|
24
|
+
subscriptionRates: number;
|
|
26
25
|
address: string;
|
|
27
26
|
ratesOption: string;
|
|
28
27
|
owner: string;
|
|
@@ -53,13 +52,13 @@ export declare class Site {
|
|
|
53
52
|
_createdAt: Date;
|
|
54
53
|
_lastModifiedAt: Date;
|
|
55
54
|
_lastUpdated: string;
|
|
56
|
-
|
|
55
|
+
_step3: boolean;
|
|
57
56
|
_step3At: Date;
|
|
58
57
|
analysisId: string;
|
|
59
58
|
analysisYear: number;
|
|
60
|
-
|
|
59
|
+
autoCO2: boolean;
|
|
61
60
|
buildingData: BuildingData;
|
|
62
|
-
|
|
61
|
+
co2rate: number;
|
|
63
62
|
connectingPower: string;
|
|
64
63
|
consentFileUrl: string;
|
|
65
64
|
consumptionIndexes: ConsumptionIndexes;
|
|
@@ -70,7 +69,6 @@ export declare class Site {
|
|
|
70
69
|
customerConsentLastName: string;
|
|
71
70
|
dataIsHybridFrom: string;
|
|
72
71
|
dataSourceHistory: DataSourceHistory[];
|
|
73
|
-
descrption: string;
|
|
74
72
|
disabled: boolean;
|
|
75
73
|
enedisBuffer: string;
|
|
76
74
|
enedisData: boolean;
|
|
@@ -88,13 +86,14 @@ export declare class Site {
|
|
|
88
86
|
maxEndDate: Date;
|
|
89
87
|
maxStartDate: Date;
|
|
90
88
|
meterOwner: string;
|
|
91
|
-
|
|
89
|
+
monthlyConsumptionIndex: boolean;
|
|
92
90
|
restOfTheYearTarifs: RestOfTheYearTarifs;
|
|
93
91
|
siteHasData: boolean;
|
|
94
92
|
tarifBuilder: boolean;
|
|
95
93
|
tarifs: Tarif[];
|
|
96
94
|
tempoPricing: boolean;
|
|
97
95
|
timezone: number;
|
|
96
|
+
TMYstatus: number;
|
|
98
97
|
}
|
|
99
98
|
export type SiteDocument = Site & Document;
|
|
100
99
|
export declare const SiteSchema: import("mongoose").Schema<Site, import("mongoose").Model<Site, any, any, any, Document<unknown, any, Site, any> & Site & {
|
package/dist/core/Site.js
CHANGED
|
@@ -18,7 +18,6 @@ const enums_1 = require("./internal/enums");
|
|
|
18
18
|
const energy_price_model_1 = require("./internal/energy-price.model");
|
|
19
19
|
const peak_hour_model_1 = require("./internal/peak-hour.model");
|
|
20
20
|
const off_peak_hour_model_1 = require("./internal/off-peak-hour.model");
|
|
21
|
-
const subscription_rate_model_1 = require("./internal/subscription-rate.model");
|
|
22
21
|
const customer_infos_model_1 = require("./internal/customer-infos.model");
|
|
23
22
|
const tarif_1 = require("./internal/tarif");
|
|
24
23
|
const building_data_1 = require("./internal/building-data");
|
|
@@ -95,10 +94,9 @@ __decorate([
|
|
|
95
94
|
__metadata("design:type", String)
|
|
96
95
|
], Site.prototype, "description", void 0);
|
|
97
96
|
__decorate([
|
|
98
|
-
(0,
|
|
99
|
-
(0,
|
|
100
|
-
(
|
|
101
|
-
__metadata("design:type", Array)
|
|
97
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
98
|
+
(0, class_validator_1.IsNumber)(),
|
|
99
|
+
__metadata("design:type", Number)
|
|
102
100
|
], Site.prototype, "subscriptionRates", void 0);
|
|
103
101
|
__decorate([
|
|
104
102
|
(0, swagger_1.ApiProperty)(),
|
|
@@ -289,7 +287,7 @@ __decorate([
|
|
|
289
287
|
(0, mongoose_1.Prop)({ required: true }),
|
|
290
288
|
(0, class_validator_1.IsBoolean)(),
|
|
291
289
|
__metadata("design:type", Boolean)
|
|
292
|
-
], Site.prototype, "
|
|
290
|
+
], Site.prototype, "_step3", void 0);
|
|
293
291
|
__decorate([
|
|
294
292
|
(0, swagger_1.ApiProperty)(),
|
|
295
293
|
(0, mongoose_1.Prop)({ type: Date, required: true }),
|
|
@@ -313,7 +311,7 @@ __decorate([
|
|
|
313
311
|
(0, mongoose_1.Prop)({ required: true }),
|
|
314
312
|
(0, class_validator_1.IsBoolean)(),
|
|
315
313
|
__metadata("design:type", Boolean)
|
|
316
|
-
], Site.prototype, "
|
|
314
|
+
], Site.prototype, "autoCO2", void 0);
|
|
317
315
|
__decorate([
|
|
318
316
|
(0, swagger_1.ApiProperty)({ type: building_data_1.BuildingData }),
|
|
319
317
|
(0, mongoose_1.Prop)({ type: building_data_1.BuildingData, required: true }),
|
|
@@ -324,7 +322,7 @@ __decorate([
|
|
|
324
322
|
(0, mongoose_1.Prop)({ required: true }),
|
|
325
323
|
(0, class_validator_1.IsNumber)(),
|
|
326
324
|
__metadata("design:type", Number)
|
|
327
|
-
], Site.prototype, "
|
|
325
|
+
], Site.prototype, "co2rate", void 0);
|
|
328
326
|
__decorate([
|
|
329
327
|
(0, swagger_1.ApiProperty)(),
|
|
330
328
|
(0, mongoose_1.Prop)({ required: true }),
|
|
@@ -384,12 +382,6 @@ __decorate([
|
|
|
384
382
|
(0, class_validator_1.IsArray)(),
|
|
385
383
|
__metadata("design:type", Array)
|
|
386
384
|
], Site.prototype, "dataSourceHistory", void 0);
|
|
387
|
-
__decorate([
|
|
388
|
-
(0, swagger_1.ApiProperty)(),
|
|
389
|
-
(0, mongoose_1.Prop)({ required: true }),
|
|
390
|
-
(0, class_validator_1.IsString)(),
|
|
391
|
-
__metadata("design:type", String)
|
|
392
|
-
], Site.prototype, "descrption", void 0);
|
|
393
385
|
__decorate([
|
|
394
386
|
(0, swagger_1.ApiProperty)(),
|
|
395
387
|
(0, mongoose_1.Prop)({ required: true }),
|
|
@@ -498,7 +490,7 @@ __decorate([
|
|
|
498
490
|
(0, mongoose_1.Prop)({ required: true }),
|
|
499
491
|
(0, class_validator_1.IsBoolean)(),
|
|
500
492
|
__metadata("design:type", Boolean)
|
|
501
|
-
], Site.prototype, "
|
|
493
|
+
], Site.prototype, "monthlyConsumptionIndex", void 0);
|
|
502
494
|
__decorate([
|
|
503
495
|
(0, swagger_1.ApiProperty)({ type: rest_of_the_years_tarif_1.RestOfTheYearTarifs }),
|
|
504
496
|
(0, mongoose_1.Prop)({ required: true }),
|
|
@@ -534,6 +526,11 @@ __decorate([
|
|
|
534
526
|
(0, class_validator_1.IsNumber)(),
|
|
535
527
|
__metadata("design:type", Number)
|
|
536
528
|
], Site.prototype, "timezone", void 0);
|
|
529
|
+
__decorate([
|
|
530
|
+
(0, swagger_1.ApiProperty)(),
|
|
531
|
+
(0, class_validator_1.IsNumber)(),
|
|
532
|
+
__metadata("design:type", Number)
|
|
533
|
+
], Site.prototype, "TMYstatus", void 0);
|
|
537
534
|
exports.Site = Site = __decorate([
|
|
538
535
|
(0, mongoose_1.Schema)({
|
|
539
536
|
toJSON: { virtuals: true, versionKey: false },
|