@likewatt/models 1.36.0 → 1.38.0
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/DefaultRate.d.ts +2 -2
- package/dist/core/DefaultRate.js +3 -3
- package/dist/core/Scenario.d.ts +1 -0
- package/dist/core/Scenario.js +7 -0
- package/dist/core/Site.d.ts +2 -2
- package/dist/core/Site.js +4 -4
- package/dist/core/internal/{tarif.d.ts → rates.d.ts} +3 -3
- package/dist/core/internal/{tarif.js → rates.js} +15 -15
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Document } from 'mongoose';
|
|
2
2
|
import { RestOfTheYearTarifs } from './internal/rest-of-the-years-tarif';
|
|
3
|
-
import {
|
|
3
|
+
import { Rates } from './internal/rates';
|
|
4
4
|
/**
|
|
5
5
|
* Représente un utilisateur dans le système.
|
|
6
6
|
* - @Schema/timestamps : gère createdAt et updatedAt automatiques
|
|
@@ -12,7 +12,7 @@ export declare class DefaultRate {
|
|
|
12
12
|
_id: string;
|
|
13
13
|
name?: string;
|
|
14
14
|
userId: string;
|
|
15
|
-
|
|
15
|
+
rates: Rates[];
|
|
16
16
|
restOfTheYear: RestOfTheYearTarifs;
|
|
17
17
|
}
|
|
18
18
|
export type DefaultRateDocument = DefaultRate & Document;
|
package/dist/core/DefaultRate.js
CHANGED
|
@@ -15,7 +15,7 @@ const mongoose_1 = require("@nestjs/mongoose");
|
|
|
15
15
|
const uuid_1 = require("uuid");
|
|
16
16
|
const class_validator_1 = require("class-validator");
|
|
17
17
|
const rest_of_the_years_tarif_1 = require("./internal/rest-of-the-years-tarif");
|
|
18
|
-
const
|
|
18
|
+
const rates_1 = require("./internal/rates");
|
|
19
19
|
/**
|
|
20
20
|
* Représente un utilisateur dans le système.
|
|
21
21
|
* - @Schema/timestamps : gère createdAt et updatedAt automatiques
|
|
@@ -58,11 +58,11 @@ __decorate([
|
|
|
58
58
|
__metadata("design:type", String)
|
|
59
59
|
], DefaultRate.prototype, "userId", void 0);
|
|
60
60
|
__decorate([
|
|
61
|
-
(0, swagger_1.ApiProperty)({ type: [
|
|
61
|
+
(0, swagger_1.ApiProperty)({ type: [rates_1.Rates] }),
|
|
62
62
|
(0, mongoose_1.Prop)({ required: true }),
|
|
63
63
|
(0, class_validator_1.IsArray)(),
|
|
64
64
|
__metadata("design:type", Array)
|
|
65
|
-
], DefaultRate.prototype, "
|
|
65
|
+
], DefaultRate.prototype, "rates", void 0);
|
|
66
66
|
__decorate([
|
|
67
67
|
(0, swagger_1.ApiProperty)({ type: rest_of_the_years_tarif_1.RestOfTheYearTarifs }),
|
|
68
68
|
(0, mongoose_1.Prop)({ required: false }),
|
package/dist/core/Scenario.d.ts
CHANGED
|
@@ -131,6 +131,7 @@ export declare class ConfigSite {
|
|
|
131
131
|
demandMultiplierSlots?: DemandMultiplierSlot[];
|
|
132
132
|
demandMultiplierUnit?: string;
|
|
133
133
|
distributionKey?: DistributionKey[];
|
|
134
|
+
distribKeys?: string;
|
|
134
135
|
priorityStage?: number;
|
|
135
136
|
rateOfGrowth?: RateOfGrowth[];
|
|
136
137
|
settings: Record<string, unknown>;
|
package/dist/core/Scenario.js
CHANGED
|
@@ -371,6 +371,13 @@ __decorate([
|
|
|
371
371
|
(0, class_validator_1.IsArray)(),
|
|
372
372
|
__metadata("design:type", Array)
|
|
373
373
|
], ConfigSite.prototype, "distributionKey", void 0);
|
|
374
|
+
__decorate([
|
|
375
|
+
(0, swagger_1.ApiPropertyOptional)({ example: 1 }),
|
|
376
|
+
(0, mongoose_1.Prop)(),
|
|
377
|
+
(0, class_validator_1.IsOptional)(),
|
|
378
|
+
(0, class_validator_1.IsString)(),
|
|
379
|
+
__metadata("design:type", String)
|
|
380
|
+
], ConfigSite.prototype, "distribKeys", void 0);
|
|
374
381
|
__decorate([
|
|
375
382
|
(0, swagger_1.ApiPropertyOptional)({ example: 1 }),
|
|
376
383
|
(0, mongoose_1.Prop)(),
|
package/dist/core/Site.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ import { BuildingData } from './internal/building-data';
|
|
|
8
8
|
import { RestOfTheYearTarifs } from './internal/rest-of-the-years-tarif';
|
|
9
9
|
import { DataSourceHistory } from './internal/data-source-history';
|
|
10
10
|
import { EnergyPriceTempo } from './internal/energy-price-tempo.model';
|
|
11
|
-
import {
|
|
11
|
+
import { Rates } from './internal/rates';
|
|
12
12
|
import { BuildingDataStatus } from './enums/BuildingDataStatus';
|
|
13
13
|
import { Comments } from './internal/comments';
|
|
14
14
|
export declare class Site {
|
|
@@ -89,7 +89,7 @@ export declare class Site {
|
|
|
89
89
|
restOfTheYearTarifs: RestOfTheYearTarifs;
|
|
90
90
|
siteHasData: boolean;
|
|
91
91
|
tarifBuilder: boolean;
|
|
92
|
-
|
|
92
|
+
rates: Rates[];
|
|
93
93
|
tempoPricing: boolean;
|
|
94
94
|
timezone: number;
|
|
95
95
|
TMYstatus?: number;
|
package/dist/core/Site.js
CHANGED
|
@@ -23,7 +23,7 @@ const building_data_1 = require("./internal/building-data");
|
|
|
23
23
|
const rest_of_the_years_tarif_1 = require("./internal/rest-of-the-years-tarif");
|
|
24
24
|
const data_source_history_1 = require("./internal/data-source-history");
|
|
25
25
|
const energy_price_tempo_model_1 = require("./internal/energy-price-tempo.model");
|
|
26
|
-
const
|
|
26
|
+
const rates_1 = require("./internal/rates");
|
|
27
27
|
const BuildingDataStatus_1 = require("./enums/BuildingDataStatus");
|
|
28
28
|
const comments_1 = require("./internal/comments");
|
|
29
29
|
let Site = class Site {
|
|
@@ -516,11 +516,11 @@ __decorate([
|
|
|
516
516
|
__metadata("design:type", Boolean)
|
|
517
517
|
], Site.prototype, "tarifBuilder", void 0);
|
|
518
518
|
__decorate([
|
|
519
|
-
(0, swagger_1.ApiProperty)({ type: [
|
|
520
|
-
(0, mongoose_1.Prop)({ type: [
|
|
519
|
+
(0, swagger_1.ApiProperty)({ type: [rates_1.Rates] }),
|
|
520
|
+
(0, mongoose_1.Prop)({ type: [rates_1.RatesSchema], required: true }),
|
|
521
521
|
(0, class_validator_1.IsArray)(),
|
|
522
522
|
__metadata("design:type", Array)
|
|
523
|
-
], Site.prototype, "
|
|
523
|
+
], Site.prototype, "rates", void 0);
|
|
524
524
|
__decorate([
|
|
525
525
|
(0, swagger_1.ApiProperty)(),
|
|
526
526
|
(0, mongoose_1.Prop)({ required: false }),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ImageryDate } from './imagery-date';
|
|
2
|
-
export declare class
|
|
2
|
+
export declare class Rates {
|
|
3
3
|
days: number[];
|
|
4
4
|
name: string;
|
|
5
5
|
endHour: number;
|
|
@@ -10,11 +10,11 @@ export declare class Tarif {
|
|
|
10
10
|
subscribedPower: number;
|
|
11
11
|
subscriptionRate: number;
|
|
12
12
|
}
|
|
13
|
-
export declare const
|
|
13
|
+
export declare const RatesSchema: import("mongoose").Schema<Rates, import("mongoose").Model<Rates, any, any, any, import("mongoose").Document<unknown, any, Rates, any, {}> & Rates & {
|
|
14
14
|
_id: import("mongoose").Types.ObjectId;
|
|
15
15
|
} & {
|
|
16
16
|
__v: number;
|
|
17
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions,
|
|
17
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, Rates, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<Rates>, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").FlatRecord<Rates> & {
|
|
18
18
|
_id: import("mongoose").Types.ObjectId;
|
|
19
19
|
} & {
|
|
20
20
|
__v: number;
|
|
@@ -9,49 +9,49 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
9
9
|
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
12
|
+
exports.RatesSchema = exports.Rates = void 0;
|
|
13
13
|
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
14
|
const imagery_date_1 = require("./imagery-date");
|
|
15
|
-
let
|
|
15
|
+
let Rates = class Rates {
|
|
16
16
|
};
|
|
17
|
-
exports.
|
|
17
|
+
exports.Rates = Rates;
|
|
18
18
|
__decorate([
|
|
19
19
|
(0, mongoose_1.Prop)([Number]),
|
|
20
20
|
__metadata("design:type", Array)
|
|
21
|
-
],
|
|
21
|
+
], Rates.prototype, "days", void 0);
|
|
22
22
|
__decorate([
|
|
23
23
|
(0, mongoose_1.Prop)(),
|
|
24
24
|
__metadata("design:type", String)
|
|
25
|
-
],
|
|
25
|
+
], Rates.prototype, "name", void 0);
|
|
26
26
|
__decorate([
|
|
27
27
|
(0, mongoose_1.Prop)(),
|
|
28
28
|
__metadata("design:type", Number)
|
|
29
|
-
],
|
|
29
|
+
], Rates.prototype, "endHour", void 0);
|
|
30
30
|
__decorate([
|
|
31
31
|
(0, mongoose_1.Prop)(),
|
|
32
32
|
__metadata("design:type", Number)
|
|
33
|
-
],
|
|
33
|
+
], Rates.prototype, "energyRate", void 0);
|
|
34
34
|
__decorate([
|
|
35
35
|
(0, mongoose_1.Prop)(),
|
|
36
36
|
__metadata("design:type", String)
|
|
37
|
-
],
|
|
37
|
+
], Rates.prototype, "id", void 0);
|
|
38
38
|
__decorate([
|
|
39
39
|
(0, mongoose_1.Prop)({ type: [imagery_date_1.ImageryDateSchema] }),
|
|
40
40
|
__metadata("design:type", Array)
|
|
41
|
-
],
|
|
41
|
+
], Rates.prototype, "months", void 0);
|
|
42
42
|
__decorate([
|
|
43
43
|
(0, mongoose_1.Prop)(),
|
|
44
44
|
__metadata("design:type", Number)
|
|
45
|
-
],
|
|
45
|
+
], Rates.prototype, "startHour", void 0);
|
|
46
46
|
__decorate([
|
|
47
47
|
(0, mongoose_1.Prop)(),
|
|
48
48
|
__metadata("design:type", Number)
|
|
49
|
-
],
|
|
49
|
+
], Rates.prototype, "subscribedPower", void 0);
|
|
50
50
|
__decorate([
|
|
51
51
|
(0, mongoose_1.Prop)(),
|
|
52
52
|
__metadata("design:type", Number)
|
|
53
|
-
],
|
|
54
|
-
exports.
|
|
53
|
+
], Rates.prototype, "subscriptionRate", void 0);
|
|
54
|
+
exports.Rates = Rates = __decorate([
|
|
55
55
|
(0, mongoose_1.Schema)({ _id: false })
|
|
56
|
-
],
|
|
57
|
-
exports.
|
|
56
|
+
], Rates);
|
|
57
|
+
exports.RatesSchema = mongoose_1.SchemaFactory.createForClass(Rates);
|
package/dist/index.d.ts
CHANGED
|
@@ -67,7 +67,7 @@ export * from './core/internal/peak-hour.model';
|
|
|
67
67
|
export * from './core/internal/rest-of-the-years-tarif';
|
|
68
68
|
export * from './core/internal/solar-potential';
|
|
69
69
|
export * from './core/internal/subscription-rate.model';
|
|
70
|
-
export * from './core/internal/
|
|
70
|
+
export * from './core/internal/rates';
|
|
71
71
|
export * from './core/internal/folder.model';
|
|
72
72
|
export * from './core/internal/leads-form';
|
|
73
73
|
export * from './core/webhookTypes/webhook-leads-output.dto';
|
package/dist/index.js
CHANGED
|
@@ -91,7 +91,7 @@ __exportStar(require("./core/internal/peak-hour.model"), exports);
|
|
|
91
91
|
__exportStar(require("./core/internal/rest-of-the-years-tarif"), exports);
|
|
92
92
|
__exportStar(require("./core/internal/solar-potential"), exports);
|
|
93
93
|
__exportStar(require("./core/internal/subscription-rate.model"), exports);
|
|
94
|
-
__exportStar(require("./core/internal/
|
|
94
|
+
__exportStar(require("./core/internal/rates"), exports);
|
|
95
95
|
__exportStar(require("./core/internal/folder.model"), exports);
|
|
96
96
|
__exportStar(require("./core/internal/leads-form"), exports);
|
|
97
97
|
// Webhook types
|