@likewatt/models-front 1.7.1 → 1.7.2

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,139 +1,286 @@
1
1
  export declare const SiteConstants: {
2
- type: {
3
- CONSUMER: string;
4
- CONSUMER_PLUS: string;
2
+ readonly type: {
3
+ readonly CONSUMER: "CONSUMER";
4
+ readonly CONSUMER_PLUS: "CONSUMER_PLUS";
5
5
  };
6
- siteChoices: {
7
- INDIV: string;
8
- ACC: string;
9
- FULL_SELLOUT: string;
6
+ readonly siteChoices: {
7
+ readonly INDIV: "INDIV";
8
+ readonly ACC: "ACC";
9
+ readonly FULL_SELLOUT: "FULL_SELLOUT";
10
10
  };
11
- profiles: {
12
- RES_BASE: string;
13
- RES_BASE_INF_6: string;
14
- RES_BASE_SUP_6: string;
15
- RES_HP_HC: string;
16
- PRO_BASE: string;
17
- PRO_HP_HC: string;
18
- ENT_BT_SUP: string;
19
- ENT_HTA: string;
11
+ readonly profiles: {
12
+ readonly RES_BASE: "RES_BASE";
13
+ readonly RES_BASE_INF_6: "RES_BASE_INF_6";
14
+ readonly RES_BASE_SUP_6: "RES_BASE_SUP_6";
15
+ readonly RES_HP_HC: "RES_HP_HC";
16
+ readonly PRO_BASE: "PRO_BASE";
17
+ readonly PRO_HP_HC: "PRO_HP_HC";
18
+ readonly ENT_BT_SUP: "ENT_BT_SUP";
19
+ readonly ENT_HTA: "ENT_HTA";
20
20
  };
21
- profilesDisplayNames: {
22
- RES_BASE: string;
23
- RES_HP_HC: string;
24
- PRO_BASE: string;
25
- PRO_HP_HC: string;
26
- ENT_BT_SUP: string;
27
- ENT_HTA: string;
21
+ readonly profilesDisplayNames: {
22
+ readonly RES_BASE: "Résidentiel Base";
23
+ readonly RES_HP_HC: "Résidentiel HP/HC";
24
+ readonly PRO_BASE: "Professionnel Base";
25
+ readonly PRO_HP_HC: "Professionnel HP/HC";
26
+ readonly ENT_BT_SUP: "Entreprise >36kVa";
27
+ readonly ENT_HTA: "Entreprise HTA";
28
28
  };
29
- _profilesDisplayNames: {
30
- RES_BASE: string;
31
- RES_HP_HC: string;
32
- PRO_BASE: string;
33
- PRO_HP_HC: string;
34
- ENT_BT_SUP: string;
35
- ENT_HTA: string;
29
+ readonly _profilesDisplayNames: {
30
+ readonly RES_BASE: "RES_BASE";
31
+ readonly RES_HP_HC: "RES_HP_HC";
32
+ readonly PRO_BASE: "PRO_BASE";
33
+ readonly PRO_HP_HC: "PRO_HP_HC";
34
+ readonly ENT_BT_SUP: "ENT_BT_SUP";
35
+ readonly ENT_HTA: "ENT_HTA";
36
36
  };
37
- timeSlotsByProfile: {
38
- RES_BASE_INF_6: string[];
39
- RES_BASE_SUP_6: string[];
40
- RES_BASE: string[];
41
- RES_HP_HC: string[];
42
- PRO_BASE: string[];
43
- PRO_HP_HC: string[];
44
- ENT_BT_SUP: string[];
45
- ENT_HTA: string[];
37
+ readonly timeSlotsByProfile: {
38
+ readonly RES_BASE_INF_6: readonly ["timeSlotsByProfile.consumption"];
39
+ readonly RES_BASE_SUP_6: readonly ["timeSlotsByProfile.consumption"];
40
+ readonly RES_BASE: readonly ["timeSlotsByProfile.consumption"];
41
+ readonly RES_HP_HC: readonly ["timeSlotsByProfile.peak", "timeSlotsByProfile.offpeak"];
42
+ readonly PRO_BASE: readonly ["timeSlotsByProfile.consumption"];
43
+ readonly PRO_HP_HC: readonly ["timeSlotsByProfile.peak", "timeSlotsByProfile.monthlyOffpeak"];
44
+ readonly ENT_BT_SUP: readonly ["timeSlotsByProfile.winterPeak", "timeSlotsByProfile.winterOffpeak", "timeSlotsByProfile.summerPeak", "timeSlotsByProfile.summerOffpeak"];
45
+ readonly ENT_HTA: readonly ["timeSlotsByProfile.criticalPeak", "timeSlotsByProfile.winterPeak", "timeSlotsByProfile.winterOffpeak", "timeSlotsByProfile.summerPeak", "timeSlotsByProfile.summerOffpeak"];
46
46
  };
47
- DATA_SOURCES: {
48
- MESURES: string;
49
- CSV: string;
50
- ENEDIS: string;
51
- PROFILE: string;
52
- DAILY_INDEX: string;
53
- HYBRID: string;
47
+ readonly DATA_SOURCES: {
48
+ readonly MESURES: "MESURES";
49
+ readonly CSV: "CSV";
50
+ readonly ENEDIS: "ENEDIS";
51
+ readonly PROFILE: "PROFILE";
52
+ readonly DAILY_INDEX: "INDEX J.";
53
+ readonly HYBRID: "HYBRIDE";
54
54
  };
55
- purchaseContractType: {
56
- 'CARD/T': string;
57
- 'Contrat unique': string;
58
- Autoproducteur: string;
55
+ readonly purchaseContractType: {
56
+ readonly 'CARD/T': "CARD/T";
57
+ readonly 'Contrat unique': "Contrat unique";
58
+ readonly Autoproducteur: "Autoproducteur";
59
59
  };
60
- purchaseMeterOwner: {
61
- AODE: string;
62
- Utilisateur: string;
60
+ readonly purchaseMeterOwner: {
61
+ readonly AODE: "AODE";
62
+ readonly Utilisateur: "Utilisateur";
63
63
  };
64
- purchaseAreaOfTension: {
65
- 'BT<36 kVA': string;
66
- 'BT>36 kVA': string;
67
- HTA: string;
68
- HTB1: string;
69
- HTB2: string;
70
- HTB3: string;
64
+ readonly purchaseAreaOfTension: {
65
+ readonly 'BT<36 kVA': "BT<36 kVA";
66
+ readonly 'BT>36 kVA': "BT>36 kVA";
67
+ readonly HTA: "HTA";
68
+ readonly HTB1: "HTB1";
69
+ readonly HTB2: "HTB2";
70
+ readonly HTB3: "HTB3";
71
71
  };
72
- ratesOption: {
73
- CU: string;
74
- LU: string;
75
- 'CU pointe fixe': string;
76
- 'CU pointe mobile': string;
77
- 'LU pointe fixe': string;
78
- 'LU pointe mobile': string;
79
- MU: string;
80
- CU4: string;
81
- MU4: string;
82
- MUDT: string;
72
+ readonly ratesOption: {
73
+ readonly CU: "CU";
74
+ readonly LU: "LU";
75
+ readonly 'CU pointe fixe': "CU pointe fixe";
76
+ readonly 'CU pointe mobile': "CU pointe mobile";
77
+ readonly 'LU pointe fixe': "LU pointe fixe";
78
+ readonly 'LU pointe mobile': "LU pointe mobile";
79
+ readonly MU: "MU";
80
+ readonly CU4: "CU4";
81
+ readonly MU4: "MU4";
82
+ readonly MUDT: "MUDT";
83
83
  };
84
- areaOfTensionRatesOption: {
85
- 'BT>36 kVA': string[];
86
- HTA: string[];
87
- HTB1: string[];
88
- HTB2: string[];
89
- HTB3: string[];
90
- 'BT<36 kVA': string[];
84
+ readonly areaOfTensionRatesOption: {
85
+ readonly 'BT>36 kVA': readonly ["CU", "LU"];
86
+ readonly HTA: readonly ["CU pointe fixe", "CU pointe mobile", "LU pointe fixe", "LU pointe mobile"];
87
+ readonly HTB1: readonly ["CU", "MU", "LU"];
88
+ readonly HTB2: readonly ["CU", "MU", "LU"];
89
+ readonly HTB3: readonly ["CU", "MU", "LU"];
90
+ readonly 'BT<36 kVA': readonly ["CU4", "CU", "MU4", "MUDT", "LU"];
91
91
  };
92
- subscribedPowersRanges: {
93
- '<36kVA': string;
94
- '<=250kVA': string;
95
- '>250kVA': string;
92
+ readonly subscribedPowersRanges: {
93
+ readonly '<36kVA': "<36kVA";
94
+ readonly '<=250kVA': "<=250kVA";
95
+ readonly '>250kVA': ">250kVA";
96
96
  };
97
- CSPE: {
98
- '<36kVA': number;
99
- '<=250kVA': number;
100
- '>250kVA': number;
97
+ readonly CSPE: {
98
+ readonly '<36kVA': 3;
99
+ readonly '<=250kVA': 2.58;
100
+ readonly '>250kVA': 2.58;
101
101
  };
102
- basePrices: {
103
- power: number;
104
- subscriptionRates: number;
105
- energyPrices: number;
106
- }[];
107
- peakHoursPrices: {
108
- power: number;
109
- subscriptionRates: number;
110
- energyPrices: {
111
- HP: number;
112
- HC: number;
102
+ readonly basePrices: readonly [{
103
+ readonly power: 3;
104
+ readonly subscriptionRates: 117.3;
105
+ readonly energyPrices: 13.27;
106
+ }, {
107
+ readonly power: 6;
108
+ readonly subscriptionRates: 154.7;
109
+ readonly energyPrices: 13.27;
110
+ }, {
111
+ readonly power: 9;
112
+ readonly subscriptionRates: 193.9;
113
+ readonly energyPrices: 13.27;
114
+ }, {
115
+ readonly power: 12;
116
+ readonly subscriptionRates: 233.2;
117
+ readonly energyPrices: 13.27;
118
+ }, {
119
+ readonly power: 15;
120
+ readonly subscriptionRates: 270.6;
121
+ readonly energyPrices: 13.27;
122
+ }, {
123
+ readonly power: 18;
124
+ readonly subscriptionRates: 307.6;
125
+ readonly energyPrices: 13.27;
126
+ }, {
127
+ readonly power: 24;
128
+ readonly subscriptionRates: 387.9;
129
+ readonly energyPrices: 13.27;
130
+ }, {
131
+ readonly power: 30;
132
+ readonly subscriptionRates: 464.4;
133
+ readonly energyPrices: 13.27;
134
+ }, {
135
+ readonly power: 36;
136
+ readonly subscriptionRates: 542.9;
137
+ readonly energyPrices: 13.27;
138
+ }];
139
+ readonly peakHoursPrices: readonly [{
140
+ readonly power: 6;
141
+ readonly subscriptionRates: 157.4;
142
+ readonly energyPrices: {
143
+ readonly HP: 14.34;
144
+ readonly HC: 10.62;
113
145
  };
114
- }[];
115
- tempoPrices: {
116
- power: number;
117
- subscriptionRates: number;
118
- energyPrices: {
119
- BCHC: number;
120
- BCHP: number;
121
- BUHC: number;
122
- BUHP: number;
123
- RHC: number;
124
- RHP: number;
146
+ }, {
147
+ readonly power: 9;
148
+ readonly subscriptionRates: 198.1;
149
+ readonly energyPrices: {
150
+ readonly HP: 14.34;
151
+ readonly HC: 10.62;
125
152
  };
126
- }[];
127
- WINTER_MONTH: number[];
128
- PTE_MONTH: number[];
129
- ENT_BT_SUP_WINTER_INDEXES: number[];
130
- ENT_HTA_WINTER_INDEXES: number[];
131
- ENT_HTA_PTE_INDEXES: number[];
132
- TIME_SLOTS: {
133
- HCBS: string;
134
- HPBS: string;
135
- HCHS: string;
136
- HPHS: string;
137
- PTE: string;
153
+ }, {
154
+ readonly power: 12;
155
+ readonly subscriptionRates: 237.6;
156
+ readonly energyPrices: {
157
+ readonly HP: 14.34;
158
+ readonly HC: 10.62;
159
+ };
160
+ }, {
161
+ readonly power: 15;
162
+ readonly subscriptionRates: 274.9;
163
+ readonly energyPrices: {
164
+ readonly HP: 14.34;
165
+ readonly HC: 10.62;
166
+ };
167
+ }, {
168
+ readonly power: 18;
169
+ readonly subscriptionRates: 313.4;
170
+ readonly energyPrices: {
171
+ readonly HP: 14.34;
172
+ readonly HC: 10.62;
173
+ };
174
+ }, {
175
+ readonly power: 24;
176
+ readonly subscriptionRates: 394.7;
177
+ readonly energyPrices: {
178
+ readonly HP: 14.34;
179
+ readonly HC: 10.62;
180
+ };
181
+ }, {
182
+ readonly power: 30;
183
+ readonly subscriptionRates: 470.2;
184
+ readonly energyPrices: {
185
+ readonly HP: 14.34;
186
+ readonly HC: 10.62;
187
+ };
188
+ }, {
189
+ readonly power: 36;
190
+ readonly subscriptionRates: 546.1;
191
+ readonly energyPrices: {
192
+ readonly HP: 14.34;
193
+ readonly HC: 10.62;
194
+ };
195
+ }];
196
+ readonly tempoPrices: readonly [{
197
+ readonly power: 6;
198
+ readonly subscriptionRates: 155;
199
+ readonly energyPrices: {
200
+ readonly BCHC: 8.59;
201
+ readonly BCHP: 11.42;
202
+ readonly BUHC: 7.27;
203
+ readonly BUHP: 9.45;
204
+ readonly RHC: 9.17;
205
+ readonly RHP: 50.9;
206
+ };
207
+ }, {
208
+ readonly power: 9;
209
+ readonly subscriptionRates: 194.9;
210
+ readonly energyPrices: {
211
+ readonly BCHC: 8.59;
212
+ readonly BCHP: 11.42;
213
+ readonly BUHC: 7.27;
214
+ readonly BUHP: 9.45;
215
+ readonly RHC: 9.17;
216
+ readonly RHP: 50.9;
217
+ };
218
+ }, {
219
+ readonly power: 12;
220
+ readonly subscriptionRates: 233.8;
221
+ readonly energyPrices: {
222
+ readonly BCHC: 8.59;
223
+ readonly BCHP: 11.42;
224
+ readonly BUHC: 7.27;
225
+ readonly BUHP: 9.45;
226
+ readonly RHC: 9.17;
227
+ readonly RHP: 50.9;
228
+ };
229
+ }, {
230
+ readonly power: 15;
231
+ readonly subscriptionRates: 388.94;
232
+ readonly energyPrices: {
233
+ readonly BCHC: 8.59;
234
+ readonly BCHP: 11.42;
235
+ readonly BUHC: 7.27;
236
+ readonly BUHP: 9.45;
237
+ readonly RHC: 9.17;
238
+ readonly RHP: 50.9;
239
+ };
240
+ }, {
241
+ readonly power: 18;
242
+ readonly subscriptionRates: 307.9;
243
+ readonly energyPrices: {
244
+ readonly BCHC: 8.59;
245
+ readonly BCHP: 11.42;
246
+ readonly BUHC: 7.27;
247
+ readonly BUHP: 9.45;
248
+ readonly RHC: 9.17;
249
+ readonly RHP: 50.9;
250
+ };
251
+ }, {
252
+ readonly power: 30;
253
+ readonly subscriptionRates: 463.1;
254
+ readonly energyPrices: {
255
+ readonly BCHC: 8.59;
256
+ readonly BCHP: 11.42;
257
+ readonly BUHC: 7.27;
258
+ readonly BUHP: 9.45;
259
+ readonly RHC: 9.17;
260
+ readonly RHP: 50.9;
261
+ };
262
+ }, {
263
+ readonly power: 36;
264
+ readonly subscriptionRates: 544.3;
265
+ readonly energyPrices: {
266
+ readonly BCHC: 8.59;
267
+ readonly BCHP: 11.42;
268
+ readonly BUHC: 7.27;
269
+ readonly BUHP: 9.45;
270
+ readonly RHC: 9.17;
271
+ readonly RHP: 50.9;
272
+ };
273
+ }];
274
+ readonly WINTER_MONTH: readonly [11, 12, 1, 2, 3];
275
+ readonly PTE_MONTH: readonly [12, 1, 2];
276
+ readonly ENT_BT_SUP_WINTER_INDEXES: readonly [0, 1];
277
+ readonly ENT_HTA_WINTER_INDEXES: readonly [1, 2];
278
+ readonly ENT_HTA_PTE_INDEXES: readonly [0];
279
+ readonly TIME_SLOTS: {
280
+ readonly HCBS: "HCB";
281
+ readonly HPBS: "HPB";
282
+ readonly HCHS: "HCH";
283
+ readonly HPHS: "HPH";
284
+ readonly PTE: "PTE";
138
285
  };
139
286
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@likewatt/models-front",
3
- "version": "1.7.1",
3
+ "version": "1.7.2",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",