@likewatt/models-front 1.6.0 → 1.7.1

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