@likewatt/models 1.4.0 → 1.4.1
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/internal/energy-inflation-rates.d.ts +14 -0
- package/dist/core/internal/{energy-inflation-rate.js → energy-inflation-rates.js} +9 -9
- package/dist/core/internal/grid-params.d.ts +2 -2
- package/dist/core/internal/grid-params.js +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
- package/dist/core/internal/energy-inflation-rate.d.ts +0 -14
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare class EnergyInflationRates {
|
|
2
|
+
id: string;
|
|
3
|
+
period: number;
|
|
4
|
+
energyInflationRate: number;
|
|
5
|
+
}
|
|
6
|
+
export declare const EnergyInflationRatesSchema: import("mongoose").Schema<EnergyInflationRates, import("mongoose").Model<EnergyInflationRates, any, any, any, import("mongoose").Document<unknown, any, EnergyInflationRates, any, {}> & EnergyInflationRates & {
|
|
7
|
+
_id: import("mongoose").Types.ObjectId;
|
|
8
|
+
} & {
|
|
9
|
+
__v: number;
|
|
10
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, EnergyInflationRates, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<EnergyInflationRates>, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").FlatRecord<EnergyInflationRates> & {
|
|
11
|
+
_id: import("mongoose").Types.ObjectId;
|
|
12
|
+
} & {
|
|
13
|
+
__v: number;
|
|
14
|
+
}>;
|
|
@@ -9,28 +9,28 @@ 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.EnergyInflationRatesSchema = exports.EnergyInflationRates = void 0;
|
|
13
13
|
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
14
|
const class_validator_1 = require("class-validator");
|
|
15
|
-
let
|
|
15
|
+
let EnergyInflationRates = class EnergyInflationRates {
|
|
16
16
|
};
|
|
17
|
-
exports.
|
|
17
|
+
exports.EnergyInflationRates = EnergyInflationRates;
|
|
18
18
|
__decorate([
|
|
19
19
|
(0, mongoose_1.Prop)({ required: true }),
|
|
20
20
|
(0, class_validator_1.IsString)(),
|
|
21
21
|
__metadata("design:type", String)
|
|
22
|
-
],
|
|
22
|
+
], EnergyInflationRates.prototype, "id", void 0);
|
|
23
23
|
__decorate([
|
|
24
24
|
(0, mongoose_1.Prop)({ required: true }),
|
|
25
25
|
(0, class_validator_1.IsNumber)(),
|
|
26
26
|
__metadata("design:type", Number)
|
|
27
|
-
],
|
|
27
|
+
], EnergyInflationRates.prototype, "period", void 0);
|
|
28
28
|
__decorate([
|
|
29
29
|
(0, mongoose_1.Prop)({ required: true }),
|
|
30
30
|
(0, class_validator_1.IsNumber)(),
|
|
31
31
|
__metadata("design:type", Number)
|
|
32
|
-
],
|
|
33
|
-
exports.
|
|
32
|
+
], EnergyInflationRates.prototype, "energyInflationRate", void 0);
|
|
33
|
+
exports.EnergyInflationRates = EnergyInflationRates = __decorate([
|
|
34
34
|
(0, mongoose_1.Schema)({ _id: false })
|
|
35
|
-
],
|
|
36
|
-
exports.
|
|
35
|
+
], EnergyInflationRates);
|
|
36
|
+
exports.EnergyInflationRatesSchema = mongoose_1.SchemaFactory.createForClass(EnergyInflationRates);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EnergyInflationRates } from './energy-inflation-rates';
|
|
2
2
|
export declare class GridParams {
|
|
3
3
|
ACI: number;
|
|
4
4
|
energyInflation: number;
|
|
@@ -14,5 +14,5 @@ export declare class GridParams {
|
|
|
14
14
|
demandMultiplier: number;
|
|
15
15
|
includeTVA: number;
|
|
16
16
|
includeTURPE: number;
|
|
17
|
-
energyInflationRates:
|
|
17
|
+
energyInflationRates: EnergyInflationRates[];
|
|
18
18
|
}
|
|
@@ -12,7 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.GridParams = void 0;
|
|
13
13
|
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
14
|
const class_validator_1 = require("class-validator");
|
|
15
|
-
const
|
|
15
|
+
const energy_inflation_rates_1 = require("./energy-inflation-rates");
|
|
16
16
|
let GridParams = class GridParams {
|
|
17
17
|
};
|
|
18
18
|
exports.GridParams = GridParams;
|
|
@@ -87,7 +87,7 @@ __decorate([
|
|
|
87
87
|
__metadata("design:type", Number)
|
|
88
88
|
], GridParams.prototype, "includeTURPE", void 0);
|
|
89
89
|
__decorate([
|
|
90
|
-
(0, mongoose_1.Prop)({ type: [
|
|
90
|
+
(0, mongoose_1.Prop)({ type: [energy_inflation_rates_1.EnergyInflationRatesSchema], required: true }),
|
|
91
91
|
(0, class_validator_1.IsArray)(),
|
|
92
92
|
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
93
93
|
__metadata("design:type", Array)
|
package/dist/index.d.ts
CHANGED
|
@@ -35,7 +35,7 @@ export * from './core/internal/data-source-history';
|
|
|
35
35
|
export * from './core/internal/default-ppa-tarif';
|
|
36
36
|
export * from './core/internal/ecs-params';
|
|
37
37
|
export * from './core/internal/electrolyse-params';
|
|
38
|
-
export * from './core/internal/energy-inflation-
|
|
38
|
+
export * from './core/internal/energy-inflation-rates';
|
|
39
39
|
export * from './core/internal/energy-price.model';
|
|
40
40
|
export * from './core/internal/energy-price-tempo.model';
|
|
41
41
|
export * from './core/internal/financing-type';
|
package/dist/index.js
CHANGED
|
@@ -59,7 +59,7 @@ __exportStar(require("./core/internal/data-source-history"), exports);
|
|
|
59
59
|
__exportStar(require("./core/internal/default-ppa-tarif"), exports);
|
|
60
60
|
__exportStar(require("./core/internal/ecs-params"), exports);
|
|
61
61
|
__exportStar(require("./core/internal/electrolyse-params"), exports);
|
|
62
|
-
__exportStar(require("./core/internal/energy-inflation-
|
|
62
|
+
__exportStar(require("./core/internal/energy-inflation-rates"), exports);
|
|
63
63
|
__exportStar(require("./core/internal/energy-price.model"), exports);
|
|
64
64
|
__exportStar(require("./core/internal/energy-price-tempo.model"), exports);
|
|
65
65
|
__exportStar(require("./core/internal/financing-type"), exports);
|
package/package.json
CHANGED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export declare class EnergyInflationRate {
|
|
2
|
-
id: string;
|
|
3
|
-
period: number;
|
|
4
|
-
energyInflationRate: number;
|
|
5
|
-
}
|
|
6
|
-
export declare const EnergyInflationRateSchema: import("mongoose").Schema<EnergyInflationRate, import("mongoose").Model<EnergyInflationRate, any, any, any, import("mongoose").Document<unknown, any, EnergyInflationRate, any, {}> & EnergyInflationRate & {
|
|
7
|
-
_id: import("mongoose").Types.ObjectId;
|
|
8
|
-
} & {
|
|
9
|
-
__v: number;
|
|
10
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, EnergyInflationRate, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<EnergyInflationRate>, {}, import("mongoose").ResolveSchemaOptions<import("mongoose").DefaultSchemaOptions>> & import("mongoose").FlatRecord<EnergyInflationRate> & {
|
|
11
|
-
_id: import("mongoose").Types.ObjectId;
|
|
12
|
-
} & {
|
|
13
|
-
__v: number;
|
|
14
|
-
}>;
|