@likewatt/models 1.0.50 → 1.0.56

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.
@@ -246,19 +246,19 @@ let ConfigSite = class ConfigSite {
246
246
  exports.ConfigSite = ConfigSite;
247
247
  __decorate([
248
248
  (0, swagger_1.ApiProperty)({ example: 'REFERENCE' }),
249
- (0, mongoose_1.Prop)({ required: true }),
249
+ (0, mongoose_1.Prop)({ required: false }),
250
250
  (0, class_validator_1.IsString)(),
251
251
  __metadata("design:type", String)
252
252
  ], ConfigSite.prototype, "consumptionReference", void 0);
253
253
  __decorate([
254
254
  (0, swagger_1.ApiProperty)({ type: [DemandMultiplierSlot] }),
255
- (0, mongoose_1.Prop)({ type: [exports.DemandMultiplierSlotSchema], required: true }),
255
+ (0, mongoose_1.Prop)({ type: [exports.DemandMultiplierSlotSchema], required: false }),
256
256
  (0, class_validator_1.IsArray)(),
257
257
  __metadata("design:type", Array)
258
258
  ], ConfigSite.prototype, "demandMultiplierSlots", void 0);
259
259
  __decorate([
260
260
  (0, swagger_1.ApiProperty)({ type: [RateOfGrowth] }),
261
- (0, mongoose_1.Prop)({ type: [exports.RateOfGrowthSchema], required: true }),
261
+ (0, mongoose_1.Prop)({ type: [exports.RateOfGrowthSchema], required: false }),
262
262
  (0, class_validator_1.IsArray)(),
263
263
  __metadata("design:type", Array)
264
264
  ], ConfigSite.prototype, "rateOfGrowth", void 0);
@@ -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 { RateOfGrowth } from './Scenario';
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
- scenarioConfigSite?: {
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", Object)
175
- ], ScenarioDefaultValue.prototype, "scenarioConfigSite", void 0);
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)(),
@@ -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 }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@likewatt/models",
3
- "version": "1.0.50",
3
+ "version": "1.0.56",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "scripts": {