@likewatt/models-front 1.96.2 → 1.98.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.
@@ -30,4 +30,5 @@ export interface CollectiveSite {
30
30
  hasAnalysis: boolean;
31
31
  buildingData?: BuildingData | null;
32
32
  buildingDataStatus?: BuildingDataStatus | null;
33
+ demoTemplateSourceId?: string;
33
34
  }
@@ -133,4 +133,5 @@ export interface Site {
133
133
  hasContractData: boolean;
134
134
  scenarioOption?: string;
135
135
  invoiceData?: InvoiceOcrResult;
136
+ demoTemplateSourceId?: string;
136
137
  }
@@ -1,6 +1,14 @@
1
1
  import { EnergyPrice } from './EnergyPrice.types';
2
2
  import { EnergyPriceTempo } from './EnergyPriceTempo.types';
3
3
  export type InvoiceRatesOption = 'BASE' | 'HP/HC' | 'TEMPO' | 'WE';
4
+ /**
5
+ * Postes tarifaires de fourniture extraits par l'OCR Koncile. Liste fermée :
6
+ * les suffixes marquent la saison — HS = haute saison (hiver), BS = basse
7
+ * saison (été).
8
+ */
9
+ export type InvoicePricingPeriod = 'BASE' | 'HP' | 'HC' | 'HPHS' | 'HCHS' | 'HPBS' | 'HCBS';
10
+ /** Saison tarifaire d'une facture saisonnière. */
11
+ export type InvoiceSeason = 'HIGH' | 'LOW';
4
12
  export interface InvoiceOcrResult {
5
13
  documentId?: number;
6
14
  enedisNumber?: string;
@@ -9,4 +17,15 @@ export interface InvoiceOcrResult {
9
17
  energyPricesTempo?: EnergyPriceTempo[];
10
18
  energyPricesWe?: EnergyPrice[];
11
19
  subscriptionRates?: number;
20
+ /** Postes effectivement lus sur la facture. */
21
+ pricingPeriods?: InvoicePricingPeriod[];
22
+ /** Vrai lorsque la facture porte au moins un poste saisonnier. */
23
+ seasonal?: boolean;
24
+ /**
25
+ * Saison absente d'une facture saisonnière. Seul cas où l'import d'une
26
+ * seconde facture est autorisé.
27
+ */
28
+ missingSeason?: InvoiceSeason;
29
+ /** Vrai lorsque tous les postes de la structure tarifaire sont couverts. */
30
+ complete?: boolean;
12
31
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@likewatt/models-front",
3
- "version": "1.96.2",
3
+ "version": "1.98.0",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",