@likewatt/models-front 1.111.0 → 1.113.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.
@@ -29,6 +29,8 @@ export interface CollectiveSite {
29
29
  timezone: number;
30
30
  sites: string[];
31
31
  hasAnalysis: boolean;
32
+ /** Calculé à la lecture par l'API (jamais stocké) : au moins un scénario du site a `isOptimized: true`. */
33
+ hasOptimizedScenario?: boolean;
32
34
  buildingData?: BuildingData | null;
33
35
  buildingDataStatus?: BuildingDataStatus | null;
34
36
  demoTemplateSourceId?: string;
@@ -142,6 +142,8 @@ export interface Site {
142
142
  hasConsoData: boolean;
143
143
  hasInjectionData: boolean;
144
144
  hasAnalysis: boolean;
145
+ /** Calculé à la lecture par l'API (jamais stocké) : au moins un scénario du site a `isOptimized: true`. */
146
+ hasOptimizedScenario?: boolean;
145
147
  hasContractData: boolean;
146
148
  scenarioOption?: string;
147
149
  invoiceData?: InvoiceOcrResult;
@@ -220,6 +220,7 @@ export declare const SiteConstants: {
220
220
  vsOn: number;
221
221
  vsPVRate: number;
222
222
  vsConnectingRate: number;
223
+ vsDischargeCost: number;
223
224
  vsMaxCapacity: number;
224
225
  vsTurpe: number;
225
226
  };
@@ -887,6 +887,7 @@ exports.SiteConstants = {
887
887
  vsOn: 0,
888
888
  vsPVRate: 12,
889
889
  vsConnectingRate: 249.17,
890
+ vsDischargeCost: 0,
890
891
  vsMaxCapacity: 10000,
891
892
  vsTurpe: 0,
892
893
  },
@@ -8,4 +8,6 @@ export interface VSParams {
8
8
  vsMaxCapacity: number;
9
9
  vsTurpe: number;
10
10
  vsConnectingRate: number;
11
+ /** Coût par kWh déstocké (€ / kWh). Absent des valeurs par défaut antérieures : 0. */
12
+ vsDischargeCost?: number;
11
13
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@likewatt/models-front",
3
- "version": "1.111.0",
3
+ "version": "1.113.0",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",