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