@likewatt/models 1.0.50 → 1.0.57
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.
|
@@ -13,7 +13,7 @@ import { WindTurbineParams } from './internal/wind-turbine-params';
|
|
|
13
13
|
import { ElectrolyseParams } from './internal/electrolyse-params';
|
|
14
14
|
import { ECSParams } from './internal/ecs-params';
|
|
15
15
|
import { H2StorageParams } from './internal/h2-storage-params';
|
|
16
|
-
import {
|
|
16
|
+
import { ConfigSite } from './Scenario';
|
|
17
17
|
import { ScenarioParams } from './internal/scenario-params';
|
|
18
18
|
import { StationParams } from './internal/station-params';
|
|
19
19
|
import { ThermalStorageParams } from './internal/thermal-storage-params';
|
|
@@ -42,20 +42,7 @@ export declare class ScenarioDefaultValue {
|
|
|
42
42
|
paramsStation: StationParams;
|
|
43
43
|
paramsScenario: ScenarioParams;
|
|
44
44
|
financingType: FinancingType;
|
|
45
|
-
|
|
46
|
-
rateOfGrowth: RateOfGrowth[];
|
|
47
|
-
demandMultiplierSlots: Array<{
|
|
48
|
-
months: Array<{
|
|
49
|
-
month: number;
|
|
50
|
-
year: number;
|
|
51
|
-
}>;
|
|
52
|
-
id: string;
|
|
53
|
-
days: number[];
|
|
54
|
-
startHour: number;
|
|
55
|
-
endHour: number;
|
|
56
|
-
demandMultiplier: number;
|
|
57
|
-
}>;
|
|
58
|
-
};
|
|
45
|
+
configSite?: ConfigSite;
|
|
59
46
|
name?: string;
|
|
60
47
|
description?: string;
|
|
61
48
|
isActive?: boolean;
|
|
@@ -28,6 +28,7 @@ const wind_turbine_params_1 = require("./internal/wind-turbine-params");
|
|
|
28
28
|
const electrolyse_params_1 = require("./internal/electrolyse-params");
|
|
29
29
|
const ecs_params_1 = require("./internal/ecs-params");
|
|
30
30
|
const h2_storage_params_1 = require("./internal/h2-storage-params");
|
|
31
|
+
const Scenario_1 = require("./Scenario");
|
|
31
32
|
const scenario_params_1 = require("./internal/scenario-params");
|
|
32
33
|
const station_params_1 = require("./internal/station-params");
|
|
33
34
|
const thermal_storage_params_1 = require("./internal/thermal-storage-params");
|
|
@@ -168,11 +169,11 @@ __decorate([
|
|
|
168
169
|
], ScenarioDefaultValue.prototype, "financingType", void 0);
|
|
169
170
|
__decorate([
|
|
170
171
|
(0, swagger_1.ApiPropertyOptional)(),
|
|
171
|
-
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.Mixed }),
|
|
172
|
+
(0, mongoose_1.Prop)({ type: mongoose_2.Schema.Types.Mixed, required: false }),
|
|
172
173
|
(0, class_validator_1.IsOptional)(),
|
|
173
174
|
(0, class_validator_1.IsObject)(),
|
|
174
|
-
__metadata("design:type",
|
|
175
|
-
], ScenarioDefaultValue.prototype, "
|
|
175
|
+
__metadata("design:type", Scenario_1.ConfigSite)
|
|
176
|
+
], ScenarioDefaultValue.prototype, "configSite", void 0);
|
|
176
177
|
__decorate([
|
|
177
178
|
(0, swagger_1.ApiPropertyOptional)(),
|
|
178
179
|
(0, mongoose_1.Prop)(),
|
package/dist/core/Site.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ import { ConsumptionIndexes } from './internal/consumption-indexes';
|
|
|
12
12
|
import { EnergyPriceTempo } from './internal/energy-price-tempo.model';
|
|
13
13
|
export declare class Site {
|
|
14
14
|
readonly _id: Types.ObjectId;
|
|
15
|
+
id: string;
|
|
15
16
|
country: string;
|
|
16
17
|
energyPrices: EnergyPrice[];
|
|
17
18
|
purchaseAreaOfTension: string;
|
package/dist/core/Site.js
CHANGED
|
@@ -37,6 +37,15 @@ __decorate([
|
|
|
37
37
|
}),
|
|
38
38
|
__metadata("design:type", mongoose_2.Types.ObjectId)
|
|
39
39
|
], Site.prototype, "_id", void 0);
|
|
40
|
+
__decorate([
|
|
41
|
+
(0, swagger_1.ApiProperty)({
|
|
42
|
+
description: 'Identifiant dupliqué pour lapi python',
|
|
43
|
+
example: '2M61PGSm7lRpqXeaDacbAYOLTYG3',
|
|
44
|
+
type: String,
|
|
45
|
+
readOnly: false,
|
|
46
|
+
}),
|
|
47
|
+
__metadata("design:type", String)
|
|
48
|
+
], Site.prototype, "id", void 0);
|
|
40
49
|
__decorate([
|
|
41
50
|
(0, swagger_1.ApiProperty)(),
|
|
42
51
|
(0, mongoose_1.Prop)({ required: true }),
|