@likewatt/models 1.0.12 → 1.0.13
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 +54 -2
- package/dist/core/Site.js +288 -2
- package/dist/core/internal/bounding-box.d.ts +4 -0
- package/dist/core/internal/bounding-box.js +2 -0
- package/dist/core/internal/building-data.d.ts +13 -0
- package/dist/core/internal/building-data.js +2 -0
- package/dist/core/internal/building-stats.d.ts +5 -0
- package/dist/core/internal/building-stats.js +2 -0
- package/dist/core/internal/consumption-indexes.d.ts +14 -0
- package/dist/core/internal/consumption-indexes.js +2 -0
- package/dist/core/internal/data-source-history.d.ts +4 -0
- package/dist/core/internal/data-source-history.js +2 -0
- package/dist/core/internal/enums.js +0 -18
- package/dist/core/internal/imagery-date.d.ts +5 -0
- package/dist/core/internal/imagery-date.js +2 -0
- package/dist/core/internal/rest-of-the-years-tarif.d.ts +5 -0
- package/dist/core/internal/rest-of-the-years-tarif.js +2 -0
- package/dist/core/internal/solar-potential.d.ts +16 -0
- package/dist/core/internal/solar-potential.js +2 -0
- package/dist/core/internal/tarif.d.ts +11 -0
- package/dist/core/internal/tarif.js +2 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +9 -0
- package/package.json +1 -1
package/dist/core/Site.d.ts
CHANGED
|
@@ -1,10 +1,15 @@
|
|
|
1
|
-
import { Types,
|
|
1
|
+
import { Types, Document } from 'mongoose';
|
|
2
2
|
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
6
|
import { SubscriptionRate } from './internal/subscription-rate.model';
|
|
7
7
|
import { CustomerInfos } from './internal/customer-infos.model';
|
|
8
|
+
import { Tarif } from './internal/tarif';
|
|
9
|
+
import { BuildingData } from './internal/building-data';
|
|
10
|
+
import { RestOfTheYearTarifs } from './internal/rest-of-the-years-tarif';
|
|
11
|
+
import { DataSourceHistory } from './internal/data-source-history';
|
|
12
|
+
import { ConsumptionIndexes } from './internal/consumption-indexes';
|
|
8
13
|
export declare class Site {
|
|
9
14
|
country: string;
|
|
10
15
|
energyPrices: EnergyPrice[];
|
|
@@ -43,9 +48,56 @@ export declare class Site {
|
|
|
43
48
|
initialOwner: string;
|
|
44
49
|
isExtractingData?: boolean;
|
|
45
50
|
customerInfos?: CustomerInfos;
|
|
51
|
+
TCSPE: number;
|
|
52
|
+
TURPE_VERSION: number;
|
|
53
|
+
_createdAt: Date;
|
|
54
|
+
_lastModifiedAt: Date;
|
|
55
|
+
_lastUpdated: string;
|
|
56
|
+
_step: boolean;
|
|
57
|
+
_step3At: Date;
|
|
58
|
+
analysisId: string;
|
|
59
|
+
analysisYear: number;
|
|
60
|
+
autoC02: boolean;
|
|
61
|
+
buildingData: BuildingData;
|
|
62
|
+
c02rate: number;
|
|
63
|
+
connectingPower: string;
|
|
64
|
+
consentFileUrl: string;
|
|
65
|
+
consumptionIndexes: ConsumptionIndexes;
|
|
66
|
+
creator: string;
|
|
67
|
+
currency: string;
|
|
68
|
+
customerConsentEmail: string;
|
|
69
|
+
customerConsentFirstName: string;
|
|
70
|
+
customerConsentLastName: string;
|
|
71
|
+
dataIsHybridFrom: string;
|
|
72
|
+
dataSourceHistory: DataSourceHistory[];
|
|
73
|
+
descrption: string;
|
|
74
|
+
disabled: boolean;
|
|
75
|
+
enedisBuffer: string;
|
|
76
|
+
enedisData: boolean;
|
|
77
|
+
energyPricesTempo: EnergyPrice[];
|
|
78
|
+
energyPricesWe: EnergyPrice[];
|
|
79
|
+
error: string;
|
|
80
|
+
faltyPrm?: string;
|
|
81
|
+
hasConsentData: boolean;
|
|
82
|
+
hasPeakHours: boolean;
|
|
83
|
+
hasWeekendPricing: boolean;
|
|
84
|
+
includeTURPE: boolean;
|
|
85
|
+
includeTVA: boolean;
|
|
86
|
+
isConsentMailSent: boolean;
|
|
87
|
+
isFullSellOut: boolean;
|
|
88
|
+
maxEndDate: Date;
|
|
89
|
+
maxStartDate: Date;
|
|
90
|
+
meterOwner: string;
|
|
91
|
+
monthlyConsumptionIndexes: boolean;
|
|
92
|
+
restOfTheYearTarifs: RestOfTheYearTarifs;
|
|
93
|
+
siteHasData: boolean;
|
|
94
|
+
tarifBuilder: boolean;
|
|
95
|
+
tarifs: Tarif[];
|
|
96
|
+
tempoPricing: boolean;
|
|
97
|
+
timezone: number;
|
|
46
98
|
}
|
|
47
99
|
export type SiteDocument = Site & Document;
|
|
48
|
-
export declare const SiteSchema:
|
|
100
|
+
export declare const SiteSchema: import("mongoose").Schema<Site, import("mongoose").Model<Site, any, any, any, Document<unknown, any, Site, any> & Site & {
|
|
49
101
|
_id: Types.ObjectId;
|
|
50
102
|
} & {
|
|
51
103
|
__v: number;
|
package/dist/core/Site.js
CHANGED
|
@@ -20,6 +20,11 @@ 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
21
|
const subscription_rate_model_1 = require("./internal/subscription-rate.model");
|
|
22
22
|
const customer_infos_model_1 = require("./internal/customer-infos.model");
|
|
23
|
+
const tarif_1 = require("./internal/tarif");
|
|
24
|
+
const building_data_1 = require("./internal/building-data");
|
|
25
|
+
const rest_of_the_years_tarif_1 = require("./internal/rest-of-the-years-tarif");
|
|
26
|
+
const data_source_history_1 = require("./internal/data-source-history");
|
|
27
|
+
const consumption_indexes_1 = require("./internal/consumption-indexes");
|
|
23
28
|
let Site = class Site {
|
|
24
29
|
};
|
|
25
30
|
exports.Site = Site;
|
|
@@ -48,7 +53,7 @@ __decorate([
|
|
|
48
53
|
__metadata("design:type", String)
|
|
49
54
|
], Site.prototype, "purchaseAreaOfTension", void 0);
|
|
50
55
|
__decorate([
|
|
51
|
-
(0, swagger_1.ApiProperty)(),
|
|
56
|
+
(0, swagger_1.ApiProperty)({ type: [Number] }),
|
|
52
57
|
(0, mongoose_1.Prop)({ type: [Number], required: true }),
|
|
53
58
|
(0, class_validator_1.IsArray)(),
|
|
54
59
|
__metadata("design:type", Array)
|
|
@@ -200,7 +205,8 @@ __decorate([
|
|
|
200
205
|
], Site.prototype, "automaticUpdateError", void 0);
|
|
201
206
|
__decorate([
|
|
202
207
|
(0, swagger_1.ApiPropertyOptional)(),
|
|
203
|
-
(0, mongoose_1.Prop)({ type: mongoose_2.
|
|
208
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Types.ObjectId, ref: 'Scenario' }),
|
|
209
|
+
(0, class_validator_1.IsOptional)(),
|
|
204
210
|
__metadata("design:type", mongoose_2.Types.ObjectId)
|
|
205
211
|
], Site.prototype, "scenario", void 0);
|
|
206
212
|
__decorate([
|
|
@@ -248,6 +254,286 @@ __decorate([
|
|
|
248
254
|
(0, class_validator_1.IsOptional)(),
|
|
249
255
|
__metadata("design:type", customer_infos_model_1.CustomerInfos)
|
|
250
256
|
], Site.prototype, "customerInfos", void 0);
|
|
257
|
+
__decorate([
|
|
258
|
+
(0, swagger_1.ApiProperty)(),
|
|
259
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
260
|
+
(0, class_validator_1.IsNumber)(),
|
|
261
|
+
__metadata("design:type", Number)
|
|
262
|
+
], Site.prototype, "TCSPE", void 0);
|
|
263
|
+
__decorate([
|
|
264
|
+
(0, swagger_1.ApiProperty)(),
|
|
265
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
266
|
+
(0, class_validator_1.IsNumber)(),
|
|
267
|
+
__metadata("design:type", Number)
|
|
268
|
+
], Site.prototype, "TURPE_VERSION", void 0);
|
|
269
|
+
__decorate([
|
|
270
|
+
(0, swagger_1.ApiProperty)(),
|
|
271
|
+
(0, mongoose_1.Prop)({ type: Date, required: true }),
|
|
272
|
+
(0, class_validator_1.IsDate)(),
|
|
273
|
+
__metadata("design:type", Date)
|
|
274
|
+
], Site.prototype, "_createdAt", void 0);
|
|
275
|
+
__decorate([
|
|
276
|
+
(0, swagger_1.ApiProperty)(),
|
|
277
|
+
(0, mongoose_1.Prop)({ type: Date, required: true }),
|
|
278
|
+
(0, class_validator_1.IsDate)(),
|
|
279
|
+
__metadata("design:type", Date)
|
|
280
|
+
], Site.prototype, "_lastModifiedAt", void 0);
|
|
281
|
+
__decorate([
|
|
282
|
+
(0, swagger_1.ApiProperty)(),
|
|
283
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
284
|
+
(0, class_validator_1.IsString)(),
|
|
285
|
+
__metadata("design:type", String)
|
|
286
|
+
], Site.prototype, "_lastUpdated", void 0);
|
|
287
|
+
__decorate([
|
|
288
|
+
(0, swagger_1.ApiProperty)(),
|
|
289
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
290
|
+
(0, class_validator_1.IsBoolean)(),
|
|
291
|
+
__metadata("design:type", Boolean)
|
|
292
|
+
], Site.prototype, "_step", void 0);
|
|
293
|
+
__decorate([
|
|
294
|
+
(0, swagger_1.ApiProperty)(),
|
|
295
|
+
(0, mongoose_1.Prop)({ type: Date, required: true }),
|
|
296
|
+
(0, class_validator_1.IsDate)(),
|
|
297
|
+
__metadata("design:type", Date)
|
|
298
|
+
], Site.prototype, "_step3At", void 0);
|
|
299
|
+
__decorate([
|
|
300
|
+
(0, swagger_1.ApiProperty)(),
|
|
301
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
302
|
+
(0, class_validator_1.IsString)(),
|
|
303
|
+
__metadata("design:type", String)
|
|
304
|
+
], Site.prototype, "analysisId", void 0);
|
|
305
|
+
__decorate([
|
|
306
|
+
(0, swagger_1.ApiProperty)(),
|
|
307
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
308
|
+
(0, class_validator_1.IsNumber)(),
|
|
309
|
+
__metadata("design:type", Number)
|
|
310
|
+
], Site.prototype, "analysisYear", void 0);
|
|
311
|
+
__decorate([
|
|
312
|
+
(0, swagger_1.ApiProperty)(),
|
|
313
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
314
|
+
(0, class_validator_1.IsBoolean)(),
|
|
315
|
+
__metadata("design:type", Boolean)
|
|
316
|
+
], Site.prototype, "autoC02", void 0);
|
|
317
|
+
__decorate([
|
|
318
|
+
(0, swagger_1.ApiProperty)({ type: building_data_1.BuildingData }),
|
|
319
|
+
(0, mongoose_1.Prop)({ type: building_data_1.BuildingData, required: true }),
|
|
320
|
+
__metadata("design:type", building_data_1.BuildingData)
|
|
321
|
+
], Site.prototype, "buildingData", void 0);
|
|
322
|
+
__decorate([
|
|
323
|
+
(0, swagger_1.ApiProperty)(),
|
|
324
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
325
|
+
(0, class_validator_1.IsNumber)(),
|
|
326
|
+
__metadata("design:type", Number)
|
|
327
|
+
], Site.prototype, "c02rate", void 0);
|
|
328
|
+
__decorate([
|
|
329
|
+
(0, swagger_1.ApiProperty)(),
|
|
330
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
331
|
+
(0, class_validator_1.IsString)(),
|
|
332
|
+
__metadata("design:type", String)
|
|
333
|
+
], Site.prototype, "connectingPower", void 0);
|
|
334
|
+
__decorate([
|
|
335
|
+
(0, swagger_1.ApiProperty)(),
|
|
336
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
337
|
+
(0, class_validator_1.IsString)(),
|
|
338
|
+
__metadata("design:type", String)
|
|
339
|
+
], Site.prototype, "consentFileUrl", void 0);
|
|
340
|
+
__decorate([
|
|
341
|
+
(0, swagger_1.ApiProperty)({ type: consumption_indexes_1.ConsumptionIndexes }),
|
|
342
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
343
|
+
__metadata("design:type", consumption_indexes_1.ConsumptionIndexes)
|
|
344
|
+
], Site.prototype, "consumptionIndexes", void 0);
|
|
345
|
+
__decorate([
|
|
346
|
+
(0, swagger_1.ApiProperty)(),
|
|
347
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
348
|
+
(0, class_validator_1.IsString)(),
|
|
349
|
+
__metadata("design:type", String)
|
|
350
|
+
], Site.prototype, "creator", void 0);
|
|
351
|
+
__decorate([
|
|
352
|
+
(0, swagger_1.ApiProperty)(),
|
|
353
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
354
|
+
(0, class_validator_1.IsString)(),
|
|
355
|
+
__metadata("design:type", String)
|
|
356
|
+
], Site.prototype, "currency", void 0);
|
|
357
|
+
__decorate([
|
|
358
|
+
(0, swagger_1.ApiProperty)(),
|
|
359
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
360
|
+
(0, class_validator_1.IsString)(),
|
|
361
|
+
__metadata("design:type", String)
|
|
362
|
+
], Site.prototype, "customerConsentEmail", void 0);
|
|
363
|
+
__decorate([
|
|
364
|
+
(0, swagger_1.ApiProperty)(),
|
|
365
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
366
|
+
(0, class_validator_1.IsString)(),
|
|
367
|
+
__metadata("design:type", String)
|
|
368
|
+
], Site.prototype, "customerConsentFirstName", void 0);
|
|
369
|
+
__decorate([
|
|
370
|
+
(0, swagger_1.ApiProperty)(),
|
|
371
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
372
|
+
(0, class_validator_1.IsString)(),
|
|
373
|
+
__metadata("design:type", String)
|
|
374
|
+
], Site.prototype, "customerConsentLastName", void 0);
|
|
375
|
+
__decorate([
|
|
376
|
+
(0, swagger_1.ApiProperty)(),
|
|
377
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
378
|
+
(0, class_validator_1.IsString)(),
|
|
379
|
+
__metadata("design:type", String)
|
|
380
|
+
], Site.prototype, "dataIsHybridFrom", void 0);
|
|
381
|
+
__decorate([
|
|
382
|
+
(0, swagger_1.ApiProperty)({ type: [data_source_history_1.DataSourceHistory] }),
|
|
383
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
384
|
+
(0, class_validator_1.IsArray)(),
|
|
385
|
+
__metadata("design:type", Array)
|
|
386
|
+
], 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
|
+
__decorate([
|
|
394
|
+
(0, swagger_1.ApiProperty)(),
|
|
395
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
396
|
+
(0, class_validator_1.IsBoolean)(),
|
|
397
|
+
__metadata("design:type", Boolean)
|
|
398
|
+
], Site.prototype, "disabled", void 0);
|
|
399
|
+
__decorate([
|
|
400
|
+
(0, swagger_1.ApiProperty)(),
|
|
401
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
402
|
+
(0, class_validator_1.IsString)(),
|
|
403
|
+
__metadata("design:type", String)
|
|
404
|
+
], Site.prototype, "enedisBuffer", void 0);
|
|
405
|
+
__decorate([
|
|
406
|
+
(0, swagger_1.ApiProperty)(),
|
|
407
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
408
|
+
(0, class_validator_1.IsBoolean)(),
|
|
409
|
+
__metadata("design:type", Boolean)
|
|
410
|
+
], Site.prototype, "enedisData", void 0);
|
|
411
|
+
__decorate([
|
|
412
|
+
(0, swagger_1.ApiProperty)({ type: [energy_price_model_1.EnergyPrice] }),
|
|
413
|
+
(0, mongoose_1.Prop)({ type: [energy_price_model_1.EnergyPriceSchema], required: true }),
|
|
414
|
+
(0, class_validator_1.IsArray)(),
|
|
415
|
+
__metadata("design:type", Array)
|
|
416
|
+
], Site.prototype, "energyPricesTempo", void 0);
|
|
417
|
+
__decorate([
|
|
418
|
+
(0, swagger_1.ApiProperty)({ type: [energy_price_model_1.EnergyPrice] }),
|
|
419
|
+
(0, mongoose_1.Prop)({ type: [energy_price_model_1.EnergyPriceSchema], required: true }),
|
|
420
|
+
(0, class_validator_1.IsArray)(),
|
|
421
|
+
__metadata("design:type", Array)
|
|
422
|
+
], Site.prototype, "energyPricesWe", void 0);
|
|
423
|
+
__decorate([
|
|
424
|
+
(0, swagger_1.ApiProperty)(),
|
|
425
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
426
|
+
(0, class_validator_1.IsString)(),
|
|
427
|
+
__metadata("design:type", String)
|
|
428
|
+
], Site.prototype, "error", void 0);
|
|
429
|
+
__decorate([
|
|
430
|
+
(0, swagger_1.ApiPropertyOptional)(),
|
|
431
|
+
(0, mongoose_1.Prop)(),
|
|
432
|
+
(0, class_validator_1.IsOptional)(),
|
|
433
|
+
(0, class_validator_1.IsString)(),
|
|
434
|
+
__metadata("design:type", String)
|
|
435
|
+
], Site.prototype, "faltyPrm", void 0);
|
|
436
|
+
__decorate([
|
|
437
|
+
(0, swagger_1.ApiProperty)(),
|
|
438
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
439
|
+
(0, class_validator_1.IsBoolean)(),
|
|
440
|
+
__metadata("design:type", Boolean)
|
|
441
|
+
], Site.prototype, "hasConsentData", void 0);
|
|
442
|
+
__decorate([
|
|
443
|
+
(0, swagger_1.ApiProperty)(),
|
|
444
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
445
|
+
(0, class_validator_1.IsBoolean)(),
|
|
446
|
+
__metadata("design:type", Boolean)
|
|
447
|
+
], Site.prototype, "hasPeakHours", void 0);
|
|
448
|
+
__decorate([
|
|
449
|
+
(0, swagger_1.ApiProperty)(),
|
|
450
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
451
|
+
(0, class_validator_1.IsBoolean)(),
|
|
452
|
+
__metadata("design:type", Boolean)
|
|
453
|
+
], Site.prototype, "hasWeekendPricing", void 0);
|
|
454
|
+
__decorate([
|
|
455
|
+
(0, swagger_1.ApiProperty)(),
|
|
456
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
457
|
+
(0, class_validator_1.IsBoolean)(),
|
|
458
|
+
__metadata("design:type", Boolean)
|
|
459
|
+
], Site.prototype, "includeTURPE", void 0);
|
|
460
|
+
__decorate([
|
|
461
|
+
(0, swagger_1.ApiProperty)(),
|
|
462
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
463
|
+
(0, class_validator_1.IsBoolean)(),
|
|
464
|
+
__metadata("design:type", Boolean)
|
|
465
|
+
], Site.prototype, "includeTVA", void 0);
|
|
466
|
+
__decorate([
|
|
467
|
+
(0, swagger_1.ApiProperty)(),
|
|
468
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
469
|
+
(0, class_validator_1.IsBoolean)(),
|
|
470
|
+
__metadata("design:type", Boolean)
|
|
471
|
+
], Site.prototype, "isConsentMailSent", void 0);
|
|
472
|
+
__decorate([
|
|
473
|
+
(0, swagger_1.ApiProperty)(),
|
|
474
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
475
|
+
(0, class_validator_1.IsBoolean)(),
|
|
476
|
+
__metadata("design:type", Boolean)
|
|
477
|
+
], Site.prototype, "isFullSellOut", void 0);
|
|
478
|
+
__decorate([
|
|
479
|
+
(0, swagger_1.ApiProperty)(),
|
|
480
|
+
(0, mongoose_1.Prop)({ type: Date, required: true }),
|
|
481
|
+
(0, class_validator_1.IsDate)(),
|
|
482
|
+
__metadata("design:type", Date)
|
|
483
|
+
], Site.prototype, "maxEndDate", void 0);
|
|
484
|
+
__decorate([
|
|
485
|
+
(0, swagger_1.ApiProperty)(),
|
|
486
|
+
(0, mongoose_1.Prop)({ type: Date, required: true }),
|
|
487
|
+
(0, class_validator_1.IsDate)(),
|
|
488
|
+
__metadata("design:type", Date)
|
|
489
|
+
], Site.prototype, "maxStartDate", void 0);
|
|
490
|
+
__decorate([
|
|
491
|
+
(0, swagger_1.ApiProperty)(),
|
|
492
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
493
|
+
(0, class_validator_1.IsString)(),
|
|
494
|
+
__metadata("design:type", String)
|
|
495
|
+
], Site.prototype, "meterOwner", void 0);
|
|
496
|
+
__decorate([
|
|
497
|
+
(0, swagger_1.ApiProperty)(),
|
|
498
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
499
|
+
(0, class_validator_1.IsBoolean)(),
|
|
500
|
+
__metadata("design:type", Boolean)
|
|
501
|
+
], Site.prototype, "monthlyConsumptionIndexes", void 0);
|
|
502
|
+
__decorate([
|
|
503
|
+
(0, swagger_1.ApiProperty)({ type: rest_of_the_years_tarif_1.RestOfTheYearTarifs }),
|
|
504
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
505
|
+
__metadata("design:type", rest_of_the_years_tarif_1.RestOfTheYearTarifs)
|
|
506
|
+
], Site.prototype, "restOfTheYearTarifs", void 0);
|
|
507
|
+
__decorate([
|
|
508
|
+
(0, swagger_1.ApiProperty)(),
|
|
509
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
510
|
+
(0, class_validator_1.IsBoolean)(),
|
|
511
|
+
__metadata("design:type", Boolean)
|
|
512
|
+
], Site.prototype, "siteHasData", void 0);
|
|
513
|
+
__decorate([
|
|
514
|
+
(0, swagger_1.ApiProperty)(),
|
|
515
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
516
|
+
(0, class_validator_1.IsBoolean)(),
|
|
517
|
+
__metadata("design:type", Boolean)
|
|
518
|
+
], Site.prototype, "tarifBuilder", void 0);
|
|
519
|
+
__decorate([
|
|
520
|
+
(0, swagger_1.ApiProperty)({ type: [tarif_1.Tarif] }),
|
|
521
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
522
|
+
(0, class_validator_1.IsArray)(),
|
|
523
|
+
__metadata("design:type", Array)
|
|
524
|
+
], Site.prototype, "tarifs", void 0);
|
|
525
|
+
__decorate([
|
|
526
|
+
(0, swagger_1.ApiProperty)(),
|
|
527
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
528
|
+
(0, class_validator_1.IsBoolean)(),
|
|
529
|
+
__metadata("design:type", Boolean)
|
|
530
|
+
], Site.prototype, "tempoPricing", void 0);
|
|
531
|
+
__decorate([
|
|
532
|
+
(0, swagger_1.ApiProperty)(),
|
|
533
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
534
|
+
(0, class_validator_1.IsNumber)(),
|
|
535
|
+
__metadata("design:type", Number)
|
|
536
|
+
], Site.prototype, "timezone", void 0);
|
|
251
537
|
exports.Site = Site = __decorate([
|
|
252
538
|
(0, mongoose_1.Schema)({
|
|
253
539
|
toJSON: { virtuals: true, versionKey: false },
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { boundingBox } from './bounding-box';
|
|
2
|
+
import { ImageryDate } from './imagery-date';
|
|
3
|
+
import { SolarPotential } from './solar-potential';
|
|
4
|
+
export declare class BuildingData {
|
|
5
|
+
boundingBox: boundingBox;
|
|
6
|
+
center: number[];
|
|
7
|
+
imageryDate: ImageryDate;
|
|
8
|
+
imageryProcessedDate: ImageryDate;
|
|
9
|
+
imageryQuality: string;
|
|
10
|
+
name: string;
|
|
11
|
+
regionCode: string;
|
|
12
|
+
solarPotential: SolarPotential;
|
|
13
|
+
}
|
|
@@ -1,20 +1,2 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Profiles = exports.SiteType = void 0;
|
|
4
|
-
var SiteType;
|
|
5
|
-
(function (SiteType) {
|
|
6
|
-
SiteType["CONSUMER"] = "CONSUMER";
|
|
7
|
-
SiteType["PRODUCER"] = "PRODUCER";
|
|
8
|
-
SiteType["CONSUMER_PLUS"] = "CONSUMER_PLUS";
|
|
9
|
-
})(SiteType || (exports.SiteType = SiteType = {}));
|
|
10
|
-
var Profiles;
|
|
11
|
-
(function (Profiles) {
|
|
12
|
-
Profiles["RES_BASE_INF_6"] = "RES_BASE_INF_6";
|
|
13
|
-
Profiles["RES_BASE_SUP_6"] = "RES_BASE_SUP_6";
|
|
14
|
-
Profiles["RES_HP_HC"] = "RES_HP_HC";
|
|
15
|
-
Profiles["PRO_BASE"] = "PRO_BASE";
|
|
16
|
-
Profiles["PRO_HP_HC"] = "PRO_HP_HC";
|
|
17
|
-
Profiles["ENT_BT_SUP"] = "ENT_BT_SUP";
|
|
18
|
-
Profiles["ENT_HTA"] = "ENT_HTA";
|
|
19
|
-
Profiles["BBR"] = "BBR";
|
|
20
|
-
})(Profiles || (exports.Profiles = Profiles = {}));
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { BuildingStats } from './building-stats';
|
|
2
|
+
export declare class SolarPotential {
|
|
3
|
+
buildingStats: BuildingStats;
|
|
4
|
+
carbonOffsetFactorKgPerMwh: number;
|
|
5
|
+
maxArrayAreaMeters2: number;
|
|
6
|
+
maxArrayPanelsCount: number;
|
|
7
|
+
maxSunshineHoursPerYear: number;
|
|
8
|
+
panelCapacityWatts: number;
|
|
9
|
+
panelHeightMeters: number;
|
|
10
|
+
panelLifetimeYears: number;
|
|
11
|
+
panelWidthMeters: number;
|
|
12
|
+
roofSegmentStats: number | null;
|
|
13
|
+
solarPanelConfigs: number | null;
|
|
14
|
+
solarPanels: number | null;
|
|
15
|
+
wholeRoofStats: BuildingStats;
|
|
16
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -10,8 +10,17 @@ export * from './core/TypeORM/UsersFilters';
|
|
|
10
10
|
export * from './core/TypeORM/Optimization';
|
|
11
11
|
export * from './core/TypeORM/WebhookOutput';
|
|
12
12
|
export * from './core/internal/enums';
|
|
13
|
+
export * from './core/internal/bounding-box';
|
|
14
|
+
export * from './core/internal/building-data';
|
|
15
|
+
export * from './core/internal/building-stats';
|
|
16
|
+
export * from './core/internal/consumption-indexes';
|
|
13
17
|
export * from './core/internal/customer-infos.model';
|
|
18
|
+
export * from './core/internal/data-source-history';
|
|
14
19
|
export * from './core/internal/energy-price.model';
|
|
20
|
+
export * from './core/internal/imagery-date';
|
|
15
21
|
export * from './core/internal/off-peak-hour.model';
|
|
16
22
|
export * from './core/internal/peak-hour.model';
|
|
23
|
+
export * from './core/internal/rest-of-the-years-tarif';
|
|
24
|
+
export * from './core/internal/solar-potential';
|
|
17
25
|
export * from './core/internal/subscription-rate.model';
|
|
26
|
+
export * from './core/internal/tarif';
|
package/dist/index.js
CHANGED
|
@@ -30,8 +30,17 @@ __exportStar(require("./core/TypeORM/WebhookOutput"), exports);
|
|
|
30
30
|
// Enums
|
|
31
31
|
__exportStar(require("./core/internal/enums"), exports);
|
|
32
32
|
// Sub-models
|
|
33
|
+
__exportStar(require("./core/internal/bounding-box"), exports);
|
|
34
|
+
__exportStar(require("./core/internal/building-data"), exports);
|
|
35
|
+
__exportStar(require("./core/internal/building-stats"), exports);
|
|
36
|
+
__exportStar(require("./core/internal/consumption-indexes"), exports);
|
|
33
37
|
__exportStar(require("./core/internal/customer-infos.model"), exports);
|
|
38
|
+
__exportStar(require("./core/internal/data-source-history"), exports);
|
|
34
39
|
__exportStar(require("./core/internal/energy-price.model"), exports);
|
|
40
|
+
__exportStar(require("./core/internal/imagery-date"), exports);
|
|
35
41
|
__exportStar(require("./core/internal/off-peak-hour.model"), exports);
|
|
36
42
|
__exportStar(require("./core/internal/peak-hour.model"), exports);
|
|
43
|
+
__exportStar(require("./core/internal/rest-of-the-years-tarif"), exports);
|
|
44
|
+
__exportStar(require("./core/internal/solar-potential"), exports);
|
|
37
45
|
__exportStar(require("./core/internal/subscription-rate.model"), exports);
|
|
46
|
+
__exportStar(require("./core/internal/tarif"), exports);
|