@likewatt/models 1.0.30 → 1.0.32
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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Document } from 'mongoose';
|
|
2
2
|
import { DefaultPPATarif } from './internal/default-ppa-tarif';
|
|
3
3
|
import { PowerCostConfig } from './internal/power-cost-config';
|
|
4
4
|
import { BatteryParams } from './internal/battery-params';
|
|
@@ -18,7 +18,8 @@ import { ScenarioParams } from './internal/scenario-params';
|
|
|
18
18
|
import { StationParams } from './internal/station-params';
|
|
19
19
|
import { ThermalStorageParams } from './internal/thermal-storage-params';
|
|
20
20
|
import { OptimizationParams } from './internal/optimization-params';
|
|
21
|
-
|
|
21
|
+
import { FinancingType } from './internal/financing-type';
|
|
22
|
+
export declare enum FinancingTypeEnum {
|
|
22
23
|
INVESTMENT = "Investissement",
|
|
23
24
|
LEASING = "Location",
|
|
24
25
|
PPA = "PPA"
|
|
@@ -38,7 +39,6 @@ export declare enum ConsumptionReference {
|
|
|
38
39
|
CUSTOM = "CUSTOM"
|
|
39
40
|
}
|
|
40
41
|
export declare class ScenarioDefaultValue {
|
|
41
|
-
readonly _id: Types.ObjectId;
|
|
42
42
|
defaultPPATarif: DefaultPPATarif;
|
|
43
43
|
VERSION: number;
|
|
44
44
|
version: number;
|
|
@@ -60,7 +60,7 @@ export declare class ScenarioDefaultValue {
|
|
|
60
60
|
paramsStockageThermal: ThermalStorageParams;
|
|
61
61
|
paramsStation: StationParams;
|
|
62
62
|
paramsScenario: ScenarioParams;
|
|
63
|
-
financingType
|
|
63
|
+
financingType: FinancingType;
|
|
64
64
|
scenarioConfigSite?: {
|
|
65
65
|
rateOfGrowth: RateOfGrowth[];
|
|
66
66
|
demandMultiplierSlots: Array<{
|
|
@@ -83,12 +83,12 @@ export declare class ScenarioDefaultValue {
|
|
|
83
83
|
updatedAt?: Date;
|
|
84
84
|
}
|
|
85
85
|
export type ScenarioDefaultValueDocument = ScenarioDefaultValue & Document;
|
|
86
|
-
export declare const ScenarioDefaultValueSchema: import("mongoose").Schema<ScenarioDefaultValue, import("mongoose").Model<ScenarioDefaultValue, any, any, any, Document<unknown, any, ScenarioDefaultValue, any> & ScenarioDefaultValue &
|
|
87
|
-
_id: Types.ObjectId;
|
|
88
|
-
}
|
|
86
|
+
export declare const ScenarioDefaultValueSchema: import("mongoose").Schema<ScenarioDefaultValue, import("mongoose").Model<ScenarioDefaultValue, any, any, any, Document<unknown, any, ScenarioDefaultValue, any> & ScenarioDefaultValue & {
|
|
87
|
+
_id: import("mongoose").Types.ObjectId;
|
|
88
|
+
} & {
|
|
89
89
|
__v: number;
|
|
90
|
-
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, ScenarioDefaultValue, Document<unknown, {}, import("mongoose").FlatRecord<ScenarioDefaultValue>, {}> & import("mongoose").FlatRecord<ScenarioDefaultValue> &
|
|
91
|
-
_id: Types.ObjectId;
|
|
92
|
-
}
|
|
90
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, ScenarioDefaultValue, Document<unknown, {}, import("mongoose").FlatRecord<ScenarioDefaultValue>, {}> & import("mongoose").FlatRecord<ScenarioDefaultValue> & {
|
|
91
|
+
_id: import("mongoose").Types.ObjectId;
|
|
92
|
+
} & {
|
|
93
93
|
__v: number;
|
|
94
94
|
}>;
|
|
@@ -9,10 +9,9 @@ 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.ScenarioDefaultValueSchema = exports.ScenarioDefaultValue = exports.ConsumptionReference = exports.UseCase = exports.TrackerType = exports.
|
|
12
|
+
exports.ScenarioDefaultValueSchema = exports.ScenarioDefaultValue = exports.ConsumptionReference = exports.UseCase = exports.TrackerType = exports.FinancingTypeEnum = void 0;
|
|
13
13
|
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
14
|
const swagger_1 = require("@nestjs/swagger");
|
|
15
|
-
const mongoose_2 = require("mongoose");
|
|
16
15
|
const class_validator_1 = require("class-validator");
|
|
17
16
|
const default_ppa_tarif_1 = require("./internal/default-ppa-tarif");
|
|
18
17
|
const power_cost_config_1 = require("./internal/power-cost-config");
|
|
@@ -32,13 +31,14 @@ const scenario_params_1 = require("./internal/scenario-params");
|
|
|
32
31
|
const station_params_1 = require("./internal/station-params");
|
|
33
32
|
const thermal_storage_params_1 = require("./internal/thermal-storage-params");
|
|
34
33
|
const optimization_params_1 = require("./internal/optimization-params");
|
|
34
|
+
const financing_type_1 = require("./internal/financing-type");
|
|
35
35
|
// Enums
|
|
36
|
-
var
|
|
37
|
-
(function (
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
})(
|
|
36
|
+
var FinancingTypeEnum;
|
|
37
|
+
(function (FinancingTypeEnum) {
|
|
38
|
+
FinancingTypeEnum["INVESTMENT"] = "Investissement";
|
|
39
|
+
FinancingTypeEnum["LEASING"] = "Location";
|
|
40
|
+
FinancingTypeEnum["PPA"] = "PPA";
|
|
41
|
+
})(FinancingTypeEnum || (exports.FinancingTypeEnum = FinancingTypeEnum = {}));
|
|
42
42
|
var TrackerType;
|
|
43
43
|
(function (TrackerType) {
|
|
44
44
|
TrackerType["OFF"] = "OFF";
|
|
@@ -59,15 +59,6 @@ var ConsumptionReference;
|
|
|
59
59
|
let ScenarioDefaultValue = class ScenarioDefaultValue {
|
|
60
60
|
};
|
|
61
61
|
exports.ScenarioDefaultValue = ScenarioDefaultValue;
|
|
62
|
-
__decorate([
|
|
63
|
-
(0, swagger_1.ApiProperty)({
|
|
64
|
-
description: 'Identifiant unique MongoDB',
|
|
65
|
-
example: '2M61PGSm7lRpqXeaDacbAYOLTYG3',
|
|
66
|
-
type: mongoose_2.Types.ObjectId,
|
|
67
|
-
readOnly: true,
|
|
68
|
-
}),
|
|
69
|
-
__metadata("design:type", mongoose_2.Types.ObjectId)
|
|
70
|
-
], ScenarioDefaultValue.prototype, "_id", void 0);
|
|
71
62
|
__decorate([
|
|
72
63
|
(0, swagger_1.ApiProperty)({ type: default_ppa_tarif_1.DefaultPPATarif }),
|
|
73
64
|
(0, mongoose_1.Prop)({ type: default_ppa_tarif_1.DefaultPPATarif, required: true }),
|
|
@@ -176,11 +167,9 @@ __decorate([
|
|
|
176
167
|
__metadata("design:type", scenario_params_1.ScenarioParams)
|
|
177
168
|
], ScenarioDefaultValue.prototype, "paramsScenario", void 0);
|
|
178
169
|
__decorate([
|
|
179
|
-
(0, swagger_1.ApiProperty)({
|
|
180
|
-
(0, mongoose_1.Prop)({ type:
|
|
181
|
-
(
|
|
182
|
-
(0, class_validator_1.IsEnum)(FinancingType),
|
|
183
|
-
__metadata("design:type", String)
|
|
170
|
+
(0, swagger_1.ApiProperty)({ type: financing_type_1.FinancingType }),
|
|
171
|
+
(0, mongoose_1.Prop)({ type: financing_type_1.FinancingType, required: true }),
|
|
172
|
+
__metadata("design:type", financing_type_1.FinancingType)
|
|
184
173
|
], ScenarioDefaultValue.prototype, "financingType", void 0);
|
|
185
174
|
__decorate([
|
|
186
175
|
(0, swagger_1.ApiPropertyOptional)(),
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { FinancingTypeEnum } from '../ScenarioDefaultValue';
|
|
2
|
+
export declare class FinancingType {
|
|
3
|
+
INVESTMENT: FinancingTypeEnum.INVESTMENT;
|
|
4
|
+
LEASING: FinancingTypeEnum.LEASING;
|
|
5
|
+
PPA: FinancingTypeEnum.PPA;
|
|
6
|
+
}
|
|
7
|
+
export declare const FinancingTypeSchema: import("mongoose").Schema<FinancingType, import("mongoose").Model<FinancingType, any, any, any, import("mongoose").Document<unknown, any, FinancingType, any> & FinancingType & {
|
|
8
|
+
_id: import("mongoose").Types.ObjectId;
|
|
9
|
+
} & {
|
|
10
|
+
__v: number;
|
|
11
|
+
}, any>, {}, {}, {}, {}, import("mongoose").DefaultSchemaOptions, FinancingType, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<FinancingType>, {}> & import("mongoose").FlatRecord<FinancingType> & {
|
|
12
|
+
_id: import("mongoose").Types.ObjectId;
|
|
13
|
+
} & {
|
|
14
|
+
__v: number;
|
|
15
|
+
}>;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.FinancingTypeSchema = exports.FinancingType = void 0;
|
|
13
|
+
const mongoose_1 = require("@nestjs/mongoose");
|
|
14
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
15
|
+
const class_validator_1 = require("class-validator");
|
|
16
|
+
const ScenarioDefaultValue_1 = require("../ScenarioDefaultValue");
|
|
17
|
+
let FinancingType = class FinancingType {
|
|
18
|
+
};
|
|
19
|
+
exports.FinancingType = FinancingType;
|
|
20
|
+
__decorate([
|
|
21
|
+
(0, swagger_1.ApiProperty)(),
|
|
22
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
23
|
+
(0, class_validator_1.IsString)(),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], FinancingType.prototype, "INVESTMENT", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, swagger_1.ApiProperty)(),
|
|
28
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
29
|
+
(0, class_validator_1.IsString)(),
|
|
30
|
+
__metadata("design:type", String)
|
|
31
|
+
], FinancingType.prototype, "LEASING", void 0);
|
|
32
|
+
__decorate([
|
|
33
|
+
(0, swagger_1.ApiProperty)(),
|
|
34
|
+
(0, mongoose_1.Prop)({ required: true }),
|
|
35
|
+
(0, class_validator_1.IsString)(),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], FinancingType.prototype, "PPA", void 0);
|
|
38
|
+
exports.FinancingType = FinancingType = __decorate([
|
|
39
|
+
(0, mongoose_1.Schema)({ _id: false })
|
|
40
|
+
], FinancingType);
|
|
41
|
+
exports.FinancingTypeSchema = mongoose_1.SchemaFactory.createForClass(FinancingType);
|