eiagov-typescript-fetch-client 1.0.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.
Files changed (76) hide show
  1. package/.openapi-generator/FILES +73 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator-ignore +23 -0
  4. package/apis/AEOApi.ts +415 -0
  5. package/apis/COALApi.ts +3645 -0
  6. package/apis/CRUDIMPORTSApi.ts +322 -0
  7. package/apis/DBFApi.ts +2260 -0
  8. package/apis/ELECApi.ts +1180 -0
  9. package/apis/EMISSApi.ts +640 -0
  10. package/apis/IEOApi.ts +415 -0
  11. package/apis/INTLApi.ts +322 -0
  12. package/apis/NGApi.ts +511 -0
  13. package/apis/NUCSTATUSApi.ts +910 -0
  14. package/apis/RTOApi.ts +2260 -0
  15. package/apis/RootApi.ts +66 -0
  16. package/apis/SEDSApi.ts +322 -0
  17. package/apis/SEPApi.ts +1990 -0
  18. package/apis/STEOApi.ts +322 -0
  19. package/apis/TOTALApi.ts +322 -0
  20. package/apis/index.ts +18 -0
  21. package/docs/AEOApi.md +456 -0
  22. package/docs/COALApi.md +4847 -0
  23. package/docs/CRUDIMPORTSApi.md +371 -0
  24. package/docs/DBFApi.md +2976 -0
  25. package/docs/DataParams.md +48 -0
  26. package/docs/DataResponse.md +42 -0
  27. package/docs/DataResponseContainer.md +38 -0
  28. package/docs/ELECApi.md +1524 -0
  29. package/docs/EMISSApi.md +798 -0
  30. package/docs/Facet.md +38 -0
  31. package/docs/FacetDetails.md +36 -0
  32. package/docs/FacetDetailsContainer.md +38 -0
  33. package/docs/FacetMetaData.md +36 -0
  34. package/docs/FacetOptionList.md +36 -0
  35. package/docs/FacetOptionListContainer.md +38 -0
  36. package/docs/FinalRoute.md +52 -0
  37. package/docs/FinalRouteResponse.md +36 -0
  38. package/docs/FinalRouteResponseContainer.md +38 -0
  39. package/docs/Frequency.md +40 -0
  40. package/docs/IEOApi.md +456 -0
  41. package/docs/INTLApi.md +371 -0
  42. package/docs/NGApi.md +541 -0
  43. package/docs/NUCSTATUSApi.md +1161 -0
  44. package/docs/RTOApi.md +2976 -0
  45. package/docs/RootApi.md +70 -0
  46. package/docs/RouteRequest.md +36 -0
  47. package/docs/RouteResponse.md +36 -0
  48. package/docs/RouteResponseContainer.md +38 -0
  49. package/docs/Routes.md +40 -0
  50. package/docs/SEDSApi.md +372 -0
  51. package/docs/SEPApi.md +2613 -0
  52. package/docs/STEOApi.md +371 -0
  53. package/docs/Sort.md +36 -0
  54. package/docs/TOTALApi.md +371 -0
  55. package/index.ts +5 -0
  56. package/models/DataParams.ts +129 -0
  57. package/models/DataResponse.ts +97 -0
  58. package/models/DataResponseContainer.ts +96 -0
  59. package/models/Facet.ts +81 -0
  60. package/models/FacetDetails.ts +81 -0
  61. package/models/FacetDetailsContainer.ts +96 -0
  62. package/models/FacetMetaData.ts +73 -0
  63. package/models/FacetOptionList.ts +73 -0
  64. package/models/FacetOptionListContainer.ts +96 -0
  65. package/models/FinalRoute.ts +152 -0
  66. package/models/FinalRouteResponse.ts +88 -0
  67. package/models/FinalRouteResponseContainer.ts +96 -0
  68. package/models/Frequency.ts +89 -0
  69. package/models/RouteRequest.ts +73 -0
  70. package/models/RouteResponse.ts +88 -0
  71. package/models/RouteResponseContainer.ts +96 -0
  72. package/models/Routes.ts +89 -0
  73. package/models/Sort.ts +73 -0
  74. package/models/index.ts +20 -0
  75. package/package.json +15 -0
  76. package/runtime.ts +449 -0
@@ -0,0 +1,1524 @@
1
+ # ELECApi
2
+
3
+ All URIs are relative to *https://api.eia.gov*
4
+
5
+ | Method | HTTP request | Description |
6
+ |------------- | ------------- | -------------|
7
+ | [**v2ElectricityElectricPowerOperationalDataDataGet**](ELECApi.md#v2electricityelectricpoweroperationaldatadataget) | **GET** /v2/electricity/electric-power-operational-data/data | |
8
+ | [**v2ElectricityElectricPowerOperationalDataDataPost**](ELECApi.md#v2electricityelectricpoweroperationaldatadatapost) | **POST** /v2/electricity/electric-power-operational-data/data | Return Electricity electric-power-operational Data |
9
+ | [**v2ElectricityElectricPowerOperationalDataFacetFacetIdGet**](ELECApi.md#v2electricityelectricpoweroperationaldatafacetfacetidget) | **GET** /v2/electricity/electric-power-operational-data/facet/{facet_id} | |
10
+ | [**v2ElectricityElectricPowerOperationalDataFacetGet**](ELECApi.md#v2electricityelectricpoweroperationaldatafacetget) | **GET** /v2/electricity/electric-power-operational-data/facet | |
11
+ | [**v2ElectricityElectricPowerOperationalDataGet**](ELECApi.md#v2electricityelectricpoweroperationaldataget) | **GET** /v2/electricity/electric-power-operational-data | |
12
+ | [**v2ElectricityFacilityFuelDataGet**](ELECApi.md#v2electricityfacilityfueldataget) | **GET** /v2/electricity/facility-fuel/data | |
13
+ | [**v2ElectricityFacilityFuelDataPost**](ELECApi.md#v2electricityfacilityfueldatapost) | **POST** /v2/electricity/facility-fuel/data | Class FacilityFuelController |
14
+ | [**v2ElectricityFacilityFuelFacetFacetIdGet**](ELECApi.md#v2electricityfacilityfuelfacetfacetidget) | **GET** /v2/electricity/facility-fuel/facet/{facet_id} | |
15
+ | [**v2ElectricityFacilityFuelFacetGet**](ELECApi.md#v2electricityfacilityfuelfacetget) | **GET** /v2/electricity/facility-fuel/facet | |
16
+ | [**v2ElectricityFacilityFuelGet**](ELECApi.md#v2electricityfacilityfuelget) | **GET** /v2/electricity/facility-fuel | |
17
+ | [**v2ElectricityGet**](ELECApi.md#v2electricityget) | **GET** /v2/electricity | Class ElectricityController |
18
+ | [**v2ElectricityOperatingGeneratorCapacityDataGet**](ELECApi.md#v2electricityoperatinggeneratorcapacitydataget) | **GET** /v2/electricity/operating-generator-capacity/data | |
19
+ | [**v2ElectricityOperatingGeneratorCapacityDataPost**](ELECApi.md#v2electricityoperatinggeneratorcapacitydatapost) | **POST** /v2/electricity/operating-generator-capacity/data | Return Electricity operating-generator-capacity Data |
20
+ | [**v2ElectricityOperatingGeneratorCapacityFacetFacetIdGet**](ELECApi.md#v2electricityoperatinggeneratorcapacityfacetfacetidget) | **GET** /v2/electricity/operating-generator-capacity/facet/{facet_id} | |
21
+ | [**v2ElectricityOperatingGeneratorCapacityFacetGet**](ELECApi.md#v2electricityoperatinggeneratorcapacityfacetget) | **GET** /v2/electricity/operating-generator-capacity/facet | |
22
+ | [**v2ElectricityOperatingGeneratorCapacityGet**](ELECApi.md#v2electricityoperatinggeneratorcapacityget) | **GET** /v2/electricity/operating-generator-capacity | |
23
+ | [**v2ElectricityRetailSalesDataGet**](ELECApi.md#v2electricityretailsalesdataget) | **GET** /v2/electricity/retail-sales/data | |
24
+ | [**v2ElectricityRetailSalesDataPost**](ELECApi.md#v2electricityretailsalesdatapost) | **POST** /v2/electricity/retail-sales/data | Return Electricity retail-sales Data |
25
+ | [**v2ElectricityRetailSalesFacetFacetIdGet**](ELECApi.md#v2electricityretailsalesfacetfacetidget) | **GET** /v2/electricity/retail-sales/facet/{facet_id} | |
26
+ | [**v2ElectricityRetailSalesFacetGet**](ELECApi.md#v2electricityretailsalesfacetget) | **GET** /v2/electricity/retail-sales/facet | |
27
+ | [**v2ElectricityRetailSalesGet**](ELECApi.md#v2electricityretailsalesget) | **GET** /v2/electricity/retail-sales | |
28
+
29
+
30
+
31
+ ## v2ElectricityElectricPowerOperationalDataDataGet
32
+
33
+ > DataResponseContainer v2ElectricityElectricPowerOperationalDataDataGet(data, facets, frequency, start, end, sort, length, offset)
34
+
35
+
36
+
37
+ API data with query params
38
+
39
+ ### Example
40
+
41
+ ```ts
42
+ import {
43
+ Configuration,
44
+ ELECApi,
45
+ } from '';
46
+ import type { V2ElectricityElectricPowerOperationalDataDataGetRequest } from '';
47
+
48
+ async function example() {
49
+ console.log("🚀 Testing SDK...");
50
+ const config = new Configuration({
51
+ // To configure API key authorization: api_key
52
+ apiKey: "YOUR API KEY",
53
+ });
54
+ const api = new ELECApi(config);
55
+
56
+ const body = {
57
+ // Array<string> | Data columns to filter by (optional)
58
+ data: ...,
59
+ // object | Facets to filter by (optional)
60
+ facets: Object,
61
+ // string | Frequency to filter by (optional)
62
+ frequency: frequency_example,
63
+ // string | Start date to filter by (optional)
64
+ start: start_example,
65
+ // string | End date to filter by (optional)
66
+ end: end_example,
67
+ // Sort | How to sort returned data (optional)
68
+ sort: ...,
69
+ // number | Max length of returned data (optional)
70
+ length: 56,
71
+ // number | Offset of returned data (optional)
72
+ offset: 56,
73
+ } satisfies V2ElectricityElectricPowerOperationalDataDataGetRequest;
74
+
75
+ try {
76
+ const data = await api.v2ElectricityElectricPowerOperationalDataDataGet(body);
77
+ console.log(data);
78
+ } catch (error) {
79
+ console.error(error);
80
+ }
81
+ }
82
+
83
+ // Run the test
84
+ example().catch(console.error);
85
+ ```
86
+
87
+ ### Parameters
88
+
89
+
90
+ | Name | Type | Description | Notes |
91
+ |------------- | ------------- | ------------- | -------------|
92
+ | **data** | `Array<string>` | Data columns to filter by | [Optional] |
93
+ | **facets** | `object` | Facets to filter by | [Optional] [Defaults to `undefined`] |
94
+ | **frequency** | `string` | Frequency to filter by | [Optional] [Defaults to `undefined`] |
95
+ | **start** | `string` | Start date to filter by | [Optional] [Defaults to `undefined`] |
96
+ | **end** | `string` | End date to filter by | [Optional] [Defaults to `undefined`] |
97
+ | **sort** | [](.md) | How to sort returned data | [Optional] [Defaults to `undefined`] |
98
+ | **length** | `number` | Max length of returned data | [Optional] [Defaults to `undefined`] |
99
+ | **offset** | `number` | Offset of returned data | [Optional] [Defaults to `undefined`] |
100
+
101
+ ### Return type
102
+
103
+ [**DataResponseContainer**](DataResponseContainer.md)
104
+
105
+ ### Authorization
106
+
107
+ [api_key](../README.md#api_key)
108
+
109
+ ### HTTP request headers
110
+
111
+ - **Content-Type**: Not defined
112
+ - **Accept**: `application/json`
113
+
114
+
115
+ ### HTTP response details
116
+ | Status code | Description | Response headers |
117
+ |-------------|-------------|------------------|
118
+ | **400** | Invalid input | - |
119
+ | **200** | API Data | - |
120
+
121
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
122
+
123
+
124
+ ## v2ElectricityElectricPowerOperationalDataDataPost
125
+
126
+ > DataResponseContainer v2ElectricityElectricPowerOperationalDataDataPost(dataParams)
127
+
128
+ Return Electricity electric-power-operational Data
129
+
130
+ Class GenerationController Electricity generation dataset controller.
131
+
132
+ ### Example
133
+
134
+ ```ts
135
+ import {
136
+ Configuration,
137
+ ELECApi,
138
+ } from '';
139
+ import type { V2ElectricityElectricPowerOperationalDataDataPostRequest } from '';
140
+
141
+ async function example() {
142
+ console.log("🚀 Testing SDK...");
143
+ const config = new Configuration({
144
+ // To configure API key authorization: api_key
145
+ apiKey: "YOUR API KEY",
146
+ });
147
+ const api = new ELECApi(config);
148
+
149
+ const body = {
150
+ // DataParams | Parameters for data call
151
+ dataParams: ...,
152
+ } satisfies V2ElectricityElectricPowerOperationalDataDataPostRequest;
153
+
154
+ try {
155
+ const data = await api.v2ElectricityElectricPowerOperationalDataDataPost(body);
156
+ console.log(data);
157
+ } catch (error) {
158
+ console.error(error);
159
+ }
160
+ }
161
+
162
+ // Run the test
163
+ example().catch(console.error);
164
+ ```
165
+
166
+ ### Parameters
167
+
168
+
169
+ | Name | Type | Description | Notes |
170
+ |------------- | ------------- | ------------- | -------------|
171
+ | **dataParams** | [DataParams](DataParams.md) | Parameters for data call | |
172
+
173
+ ### Return type
174
+
175
+ [**DataResponseContainer**](DataResponseContainer.md)
176
+
177
+ ### Authorization
178
+
179
+ [api_key](../README.md#api_key)
180
+
181
+ ### HTTP request headers
182
+
183
+ - **Content-Type**: `application/json`
184
+ - **Accept**: `application/json`
185
+
186
+
187
+ ### HTTP response details
188
+ | Status code | Description | Response headers |
189
+ |-------------|-------------|------------------|
190
+ | **400** | Invalid input | - |
191
+ | **200** | API Data | - |
192
+
193
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
194
+
195
+
196
+ ## v2ElectricityElectricPowerOperationalDataFacetFacetIdGet
197
+
198
+ > FacetDetailsContainer v2ElectricityElectricPowerOperationalDataFacetFacetIdGet(facetId)
199
+
200
+
201
+
202
+ ### Example
203
+
204
+ ```ts
205
+ import {
206
+ Configuration,
207
+ ELECApi,
208
+ } from '';
209
+ import type { V2ElectricityElectricPowerOperationalDataFacetFacetIdGetRequest } from '';
210
+
211
+ async function example() {
212
+ console.log("🚀 Testing SDK...");
213
+ const config = new Configuration({
214
+ // To configure API key authorization: api_key
215
+ apiKey: "YOUR API KEY",
216
+ });
217
+ const api = new ELECApi(config);
218
+
219
+ const body = {
220
+ // string | Facet ID
221
+ facetId: facetId_example,
222
+ } satisfies V2ElectricityElectricPowerOperationalDataFacetFacetIdGetRequest;
223
+
224
+ try {
225
+ const data = await api.v2ElectricityElectricPowerOperationalDataFacetFacetIdGet(body);
226
+ console.log(data);
227
+ } catch (error) {
228
+ console.error(error);
229
+ }
230
+ }
231
+
232
+ // Run the test
233
+ example().catch(console.error);
234
+ ```
235
+
236
+ ### Parameters
237
+
238
+
239
+ | Name | Type | Description | Notes |
240
+ |------------- | ------------- | ------------- | -------------|
241
+ | **facetId** | `string` | Facet ID | [Defaults to `undefined`] |
242
+
243
+ ### Return type
244
+
245
+ [**FacetDetailsContainer**](FacetDetailsContainer.md)
246
+
247
+ ### Authorization
248
+
249
+ [api_key](../README.md#api_key)
250
+
251
+ ### HTTP request headers
252
+
253
+ - **Content-Type**: Not defined
254
+ - **Accept**: `application/json`
255
+
256
+
257
+ ### HTTP response details
258
+ | Status code | Description | Response headers |
259
+ |-------------|-------------|------------------|
260
+ | **400** | Invalid input | - |
261
+ | **200** | Facet details | - |
262
+
263
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
264
+
265
+
266
+ ## v2ElectricityElectricPowerOperationalDataFacetGet
267
+
268
+ > FacetOptionListContainer v2ElectricityElectricPowerOperationalDataFacetGet()
269
+
270
+
271
+
272
+ ### Example
273
+
274
+ ```ts
275
+ import {
276
+ Configuration,
277
+ ELECApi,
278
+ } from '';
279
+ import type { V2ElectricityElectricPowerOperationalDataFacetGetRequest } from '';
280
+
281
+ async function example() {
282
+ console.log("🚀 Testing SDK...");
283
+ const config = new Configuration({
284
+ // To configure API key authorization: api_key
285
+ apiKey: "YOUR API KEY",
286
+ });
287
+ const api = new ELECApi(config);
288
+
289
+ try {
290
+ const data = await api.v2ElectricityElectricPowerOperationalDataFacetGet();
291
+ console.log(data);
292
+ } catch (error) {
293
+ console.error(error);
294
+ }
295
+ }
296
+
297
+ // Run the test
298
+ example().catch(console.error);
299
+ ```
300
+
301
+ ### Parameters
302
+
303
+ This endpoint does not need any parameter.
304
+
305
+ ### Return type
306
+
307
+ [**FacetOptionListContainer**](FacetOptionListContainer.md)
308
+
309
+ ### Authorization
310
+
311
+ [api_key](../README.md#api_key)
312
+
313
+ ### HTTP request headers
314
+
315
+ - **Content-Type**: Not defined
316
+ - **Accept**: `application/json`
317
+
318
+
319
+ ### HTTP response details
320
+ | Status code | Description | Response headers |
321
+ |-------------|-------------|------------------|
322
+ | **400** | Invalid input | - |
323
+ | **200** | List of facet options | - |
324
+
325
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
326
+
327
+
328
+ ## v2ElectricityElectricPowerOperationalDataGet
329
+
330
+ > FinalRouteResponseContainer v2ElectricityElectricPowerOperationalDataGet()
331
+
332
+
333
+
334
+ ### Example
335
+
336
+ ```ts
337
+ import {
338
+ Configuration,
339
+ ELECApi,
340
+ } from '';
341
+ import type { V2ElectricityElectricPowerOperationalDataGetRequest } from '';
342
+
343
+ async function example() {
344
+ console.log("🚀 Testing SDK...");
345
+ const config = new Configuration({
346
+ // To configure API key authorization: api_key
347
+ apiKey: "YOUR API KEY",
348
+ });
349
+ const api = new ELECApi(config);
350
+
351
+ try {
352
+ const data = await api.v2ElectricityElectricPowerOperationalDataGet();
353
+ console.log(data);
354
+ } catch (error) {
355
+ console.error(error);
356
+ }
357
+ }
358
+
359
+ // Run the test
360
+ example().catch(console.error);
361
+ ```
362
+
363
+ ### Parameters
364
+
365
+ This endpoint does not need any parameter.
366
+
367
+ ### Return type
368
+
369
+ [**FinalRouteResponseContainer**](FinalRouteResponseContainer.md)
370
+
371
+ ### Authorization
372
+
373
+ [api_key](../README.md#api_key)
374
+
375
+ ### HTTP request headers
376
+
377
+ - **Content-Type**: Not defined
378
+ - **Accept**: `application/json`
379
+
380
+
381
+ ### HTTP response details
382
+ | Status code | Description | Response headers |
383
+ |-------------|-------------|------------------|
384
+ | **200** | List of API data sets | - |
385
+
386
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
387
+
388
+
389
+ ## v2ElectricityFacilityFuelDataGet
390
+
391
+ > DataResponseContainer v2ElectricityFacilityFuelDataGet(data, facets, frequency, start, end, sort, length, offset)
392
+
393
+
394
+
395
+ API data with query params
396
+
397
+ ### Example
398
+
399
+ ```ts
400
+ import {
401
+ Configuration,
402
+ ELECApi,
403
+ } from '';
404
+ import type { V2ElectricityFacilityFuelDataGetRequest } from '';
405
+
406
+ async function example() {
407
+ console.log("🚀 Testing SDK...");
408
+ const config = new Configuration({
409
+ // To configure API key authorization: api_key
410
+ apiKey: "YOUR API KEY",
411
+ });
412
+ const api = new ELECApi(config);
413
+
414
+ const body = {
415
+ // Array<string> | Data columns to filter by (optional)
416
+ data: ...,
417
+ // object | Facets to filter by (optional)
418
+ facets: Object,
419
+ // string | Frequency to filter by (optional)
420
+ frequency: frequency_example,
421
+ // string | Start date to filter by (optional)
422
+ start: start_example,
423
+ // string | End date to filter by (optional)
424
+ end: end_example,
425
+ // Sort | How to sort returned data (optional)
426
+ sort: ...,
427
+ // number | Max length of returned data (optional)
428
+ length: 56,
429
+ // number | Offset of returned data (optional)
430
+ offset: 56,
431
+ } satisfies V2ElectricityFacilityFuelDataGetRequest;
432
+
433
+ try {
434
+ const data = await api.v2ElectricityFacilityFuelDataGet(body);
435
+ console.log(data);
436
+ } catch (error) {
437
+ console.error(error);
438
+ }
439
+ }
440
+
441
+ // Run the test
442
+ example().catch(console.error);
443
+ ```
444
+
445
+ ### Parameters
446
+
447
+
448
+ | Name | Type | Description | Notes |
449
+ |------------- | ------------- | ------------- | -------------|
450
+ | **data** | `Array<string>` | Data columns to filter by | [Optional] |
451
+ | **facets** | `object` | Facets to filter by | [Optional] [Defaults to `undefined`] |
452
+ | **frequency** | `string` | Frequency to filter by | [Optional] [Defaults to `undefined`] |
453
+ | **start** | `string` | Start date to filter by | [Optional] [Defaults to `undefined`] |
454
+ | **end** | `string` | End date to filter by | [Optional] [Defaults to `undefined`] |
455
+ | **sort** | [](.md) | How to sort returned data | [Optional] [Defaults to `undefined`] |
456
+ | **length** | `number` | Max length of returned data | [Optional] [Defaults to `undefined`] |
457
+ | **offset** | `number` | Offset of returned data | [Optional] [Defaults to `undefined`] |
458
+
459
+ ### Return type
460
+
461
+ [**DataResponseContainer**](DataResponseContainer.md)
462
+
463
+ ### Authorization
464
+
465
+ [api_key](../README.md#api_key)
466
+
467
+ ### HTTP request headers
468
+
469
+ - **Content-Type**: Not defined
470
+ - **Accept**: `application/json`
471
+
472
+
473
+ ### HTTP response details
474
+ | Status code | Description | Response headers |
475
+ |-------------|-------------|------------------|
476
+ | **400** | Invalid input | - |
477
+ | **200** | API Data | - |
478
+
479
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
480
+
481
+
482
+ ## v2ElectricityFacilityFuelDataPost
483
+
484
+ > DataResponseContainer v2ElectricityFacilityFuelDataPost(dataParams)
485
+
486
+ Class FacilityFuelController
487
+
488
+ Electricity FacilityFuel dataset controller.
489
+
490
+ ### Example
491
+
492
+ ```ts
493
+ import {
494
+ Configuration,
495
+ ELECApi,
496
+ } from '';
497
+ import type { V2ElectricityFacilityFuelDataPostRequest } from '';
498
+
499
+ async function example() {
500
+ console.log("🚀 Testing SDK...");
501
+ const config = new Configuration({
502
+ // To configure API key authorization: api_key
503
+ apiKey: "YOUR API KEY",
504
+ });
505
+ const api = new ELECApi(config);
506
+
507
+ const body = {
508
+ // DataParams | Parameters for data call
509
+ dataParams: ...,
510
+ } satisfies V2ElectricityFacilityFuelDataPostRequest;
511
+
512
+ try {
513
+ const data = await api.v2ElectricityFacilityFuelDataPost(body);
514
+ console.log(data);
515
+ } catch (error) {
516
+ console.error(error);
517
+ }
518
+ }
519
+
520
+ // Run the test
521
+ example().catch(console.error);
522
+ ```
523
+
524
+ ### Parameters
525
+
526
+
527
+ | Name | Type | Description | Notes |
528
+ |------------- | ------------- | ------------- | -------------|
529
+ | **dataParams** | [DataParams](DataParams.md) | Parameters for data call | |
530
+
531
+ ### Return type
532
+
533
+ [**DataResponseContainer**](DataResponseContainer.md)
534
+
535
+ ### Authorization
536
+
537
+ [api_key](../README.md#api_key)
538
+
539
+ ### HTTP request headers
540
+
541
+ - **Content-Type**: `application/json`
542
+ - **Accept**: `application/json`
543
+
544
+
545
+ ### HTTP response details
546
+ | Status code | Description | Response headers |
547
+ |-------------|-------------|------------------|
548
+ | **400** | Invalid input | - |
549
+ | **200** | API Data | - |
550
+
551
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
552
+
553
+
554
+ ## v2ElectricityFacilityFuelFacetFacetIdGet
555
+
556
+ > FacetDetailsContainer v2ElectricityFacilityFuelFacetFacetIdGet(facetId)
557
+
558
+
559
+
560
+ ### Example
561
+
562
+ ```ts
563
+ import {
564
+ Configuration,
565
+ ELECApi,
566
+ } from '';
567
+ import type { V2ElectricityFacilityFuelFacetFacetIdGetRequest } from '';
568
+
569
+ async function example() {
570
+ console.log("🚀 Testing SDK...");
571
+ const config = new Configuration({
572
+ // To configure API key authorization: api_key
573
+ apiKey: "YOUR API KEY",
574
+ });
575
+ const api = new ELECApi(config);
576
+
577
+ const body = {
578
+ // string | Facet ID
579
+ facetId: facetId_example,
580
+ } satisfies V2ElectricityFacilityFuelFacetFacetIdGetRequest;
581
+
582
+ try {
583
+ const data = await api.v2ElectricityFacilityFuelFacetFacetIdGet(body);
584
+ console.log(data);
585
+ } catch (error) {
586
+ console.error(error);
587
+ }
588
+ }
589
+
590
+ // Run the test
591
+ example().catch(console.error);
592
+ ```
593
+
594
+ ### Parameters
595
+
596
+
597
+ | Name | Type | Description | Notes |
598
+ |------------- | ------------- | ------------- | -------------|
599
+ | **facetId** | `string` | Facet ID | [Defaults to `undefined`] |
600
+
601
+ ### Return type
602
+
603
+ [**FacetDetailsContainer**](FacetDetailsContainer.md)
604
+
605
+ ### Authorization
606
+
607
+ [api_key](../README.md#api_key)
608
+
609
+ ### HTTP request headers
610
+
611
+ - **Content-Type**: Not defined
612
+ - **Accept**: `application/json`
613
+
614
+
615
+ ### HTTP response details
616
+ | Status code | Description | Response headers |
617
+ |-------------|-------------|------------------|
618
+ | **400** | Invalid input | - |
619
+ | **200** | Facet details | - |
620
+
621
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
622
+
623
+
624
+ ## v2ElectricityFacilityFuelFacetGet
625
+
626
+ > FacetOptionListContainer v2ElectricityFacilityFuelFacetGet()
627
+
628
+
629
+
630
+ ### Example
631
+
632
+ ```ts
633
+ import {
634
+ Configuration,
635
+ ELECApi,
636
+ } from '';
637
+ import type { V2ElectricityFacilityFuelFacetGetRequest } from '';
638
+
639
+ async function example() {
640
+ console.log("🚀 Testing SDK...");
641
+ const config = new Configuration({
642
+ // To configure API key authorization: api_key
643
+ apiKey: "YOUR API KEY",
644
+ });
645
+ const api = new ELECApi(config);
646
+
647
+ try {
648
+ const data = await api.v2ElectricityFacilityFuelFacetGet();
649
+ console.log(data);
650
+ } catch (error) {
651
+ console.error(error);
652
+ }
653
+ }
654
+
655
+ // Run the test
656
+ example().catch(console.error);
657
+ ```
658
+
659
+ ### Parameters
660
+
661
+ This endpoint does not need any parameter.
662
+
663
+ ### Return type
664
+
665
+ [**FacetOptionListContainer**](FacetOptionListContainer.md)
666
+
667
+ ### Authorization
668
+
669
+ [api_key](../README.md#api_key)
670
+
671
+ ### HTTP request headers
672
+
673
+ - **Content-Type**: Not defined
674
+ - **Accept**: `application/json`
675
+
676
+
677
+ ### HTTP response details
678
+ | Status code | Description | Response headers |
679
+ |-------------|-------------|------------------|
680
+ | **400** | Invalid input | - |
681
+ | **200** | List of facet options | - |
682
+
683
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
684
+
685
+
686
+ ## v2ElectricityFacilityFuelGet
687
+
688
+ > FinalRouteResponseContainer v2ElectricityFacilityFuelGet()
689
+
690
+
691
+
692
+ ### Example
693
+
694
+ ```ts
695
+ import {
696
+ Configuration,
697
+ ELECApi,
698
+ } from '';
699
+ import type { V2ElectricityFacilityFuelGetRequest } from '';
700
+
701
+ async function example() {
702
+ console.log("🚀 Testing SDK...");
703
+ const config = new Configuration({
704
+ // To configure API key authorization: api_key
705
+ apiKey: "YOUR API KEY",
706
+ });
707
+ const api = new ELECApi(config);
708
+
709
+ try {
710
+ const data = await api.v2ElectricityFacilityFuelGet();
711
+ console.log(data);
712
+ } catch (error) {
713
+ console.error(error);
714
+ }
715
+ }
716
+
717
+ // Run the test
718
+ example().catch(console.error);
719
+ ```
720
+
721
+ ### Parameters
722
+
723
+ This endpoint does not need any parameter.
724
+
725
+ ### Return type
726
+
727
+ [**FinalRouteResponseContainer**](FinalRouteResponseContainer.md)
728
+
729
+ ### Authorization
730
+
731
+ [api_key](../README.md#api_key)
732
+
733
+ ### HTTP request headers
734
+
735
+ - **Content-Type**: Not defined
736
+ - **Accept**: `application/json`
737
+
738
+
739
+ ### HTTP response details
740
+ | Status code | Description | Response headers |
741
+ |-------------|-------------|------------------|
742
+ | **200** | List of API data sets | - |
743
+
744
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
745
+
746
+
747
+ ## v2ElectricityGet
748
+
749
+ > RouteResponseContainer v2ElectricityGet()
750
+
751
+ Class ElectricityController
752
+
753
+ Electricity data set top-level controller.
754
+
755
+ ### Example
756
+
757
+ ```ts
758
+ import {
759
+ Configuration,
760
+ ELECApi,
761
+ } from '';
762
+ import type { V2ElectricityGetRequest } from '';
763
+
764
+ async function example() {
765
+ console.log("🚀 Testing SDK...");
766
+ const config = new Configuration({
767
+ // To configure API key authorization: api_key
768
+ apiKey: "YOUR API KEY",
769
+ });
770
+ const api = new ELECApi(config);
771
+
772
+ try {
773
+ const data = await api.v2ElectricityGet();
774
+ console.log(data);
775
+ } catch (error) {
776
+ console.error(error);
777
+ }
778
+ }
779
+
780
+ // Run the test
781
+ example().catch(console.error);
782
+ ```
783
+
784
+ ### Parameters
785
+
786
+ This endpoint does not need any parameter.
787
+
788
+ ### Return type
789
+
790
+ [**RouteResponseContainer**](RouteResponseContainer.md)
791
+
792
+ ### Authorization
793
+
794
+ [api_key](../README.md#api_key)
795
+
796
+ ### HTTP request headers
797
+
798
+ - **Content-Type**: Not defined
799
+ - **Accept**: `application/json`
800
+
801
+
802
+ ### HTTP response details
803
+ | Status code | Description | Response headers |
804
+ |-------------|-------------|------------------|
805
+ | **200** | List of API data sets | - |
806
+
807
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
808
+
809
+
810
+ ## v2ElectricityOperatingGeneratorCapacityDataGet
811
+
812
+ > DataResponseContainer v2ElectricityOperatingGeneratorCapacityDataGet(data, facets, frequency, start, end, sort, length, offset)
813
+
814
+
815
+
816
+ API data with query params
817
+
818
+ ### Example
819
+
820
+ ```ts
821
+ import {
822
+ Configuration,
823
+ ELECApi,
824
+ } from '';
825
+ import type { V2ElectricityOperatingGeneratorCapacityDataGetRequest } from '';
826
+
827
+ async function example() {
828
+ console.log("🚀 Testing SDK...");
829
+ const config = new Configuration({
830
+ // To configure API key authorization: api_key
831
+ apiKey: "YOUR API KEY",
832
+ });
833
+ const api = new ELECApi(config);
834
+
835
+ const body = {
836
+ // Array<string> | Data columns to filter by (optional)
837
+ data: ...,
838
+ // object | Facets to filter by (optional)
839
+ facets: Object,
840
+ // string | Frequency to filter by (optional)
841
+ frequency: frequency_example,
842
+ // string | Start date to filter by (optional)
843
+ start: start_example,
844
+ // string | End date to filter by (optional)
845
+ end: end_example,
846
+ // Sort | How to sort returned data (optional)
847
+ sort: ...,
848
+ // number | Max length of returned data (optional)
849
+ length: 56,
850
+ // number | Offset of returned data (optional)
851
+ offset: 56,
852
+ } satisfies V2ElectricityOperatingGeneratorCapacityDataGetRequest;
853
+
854
+ try {
855
+ const data = await api.v2ElectricityOperatingGeneratorCapacityDataGet(body);
856
+ console.log(data);
857
+ } catch (error) {
858
+ console.error(error);
859
+ }
860
+ }
861
+
862
+ // Run the test
863
+ example().catch(console.error);
864
+ ```
865
+
866
+ ### Parameters
867
+
868
+
869
+ | Name | Type | Description | Notes |
870
+ |------------- | ------------- | ------------- | -------------|
871
+ | **data** | `Array<string>` | Data columns to filter by | [Optional] |
872
+ | **facets** | `object` | Facets to filter by | [Optional] [Defaults to `undefined`] |
873
+ | **frequency** | `string` | Frequency to filter by | [Optional] [Defaults to `undefined`] |
874
+ | **start** | `string` | Start date to filter by | [Optional] [Defaults to `undefined`] |
875
+ | **end** | `string` | End date to filter by | [Optional] [Defaults to `undefined`] |
876
+ | **sort** | [](.md) | How to sort returned data | [Optional] [Defaults to `undefined`] |
877
+ | **length** | `number` | Max length of returned data | [Optional] [Defaults to `undefined`] |
878
+ | **offset** | `number` | Offset of returned data | [Optional] [Defaults to `undefined`] |
879
+
880
+ ### Return type
881
+
882
+ [**DataResponseContainer**](DataResponseContainer.md)
883
+
884
+ ### Authorization
885
+
886
+ [api_key](../README.md#api_key)
887
+
888
+ ### HTTP request headers
889
+
890
+ - **Content-Type**: Not defined
891
+ - **Accept**: `application/json`
892
+
893
+
894
+ ### HTTP response details
895
+ | Status code | Description | Response headers |
896
+ |-------------|-------------|------------------|
897
+ | **400** | Invalid input | - |
898
+ | **200** | API Data | - |
899
+
900
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
901
+
902
+
903
+ ## v2ElectricityOperatingGeneratorCapacityDataPost
904
+
905
+ > DataResponseContainer v2ElectricityOperatingGeneratorCapacityDataPost(dataParams)
906
+
907
+ Return Electricity operating-generator-capacity Data
908
+
909
+ Class GeneratorLevelCapacityController Electricity generation dataset controller.
910
+
911
+ ### Example
912
+
913
+ ```ts
914
+ import {
915
+ Configuration,
916
+ ELECApi,
917
+ } from '';
918
+ import type { V2ElectricityOperatingGeneratorCapacityDataPostRequest } from '';
919
+
920
+ async function example() {
921
+ console.log("🚀 Testing SDK...");
922
+ const config = new Configuration({
923
+ // To configure API key authorization: api_key
924
+ apiKey: "YOUR API KEY",
925
+ });
926
+ const api = new ELECApi(config);
927
+
928
+ const body = {
929
+ // DataParams | Parameters for data call
930
+ dataParams: ...,
931
+ } satisfies V2ElectricityOperatingGeneratorCapacityDataPostRequest;
932
+
933
+ try {
934
+ const data = await api.v2ElectricityOperatingGeneratorCapacityDataPost(body);
935
+ console.log(data);
936
+ } catch (error) {
937
+ console.error(error);
938
+ }
939
+ }
940
+
941
+ // Run the test
942
+ example().catch(console.error);
943
+ ```
944
+
945
+ ### Parameters
946
+
947
+
948
+ | Name | Type | Description | Notes |
949
+ |------------- | ------------- | ------------- | -------------|
950
+ | **dataParams** | [DataParams](DataParams.md) | Parameters for data call | |
951
+
952
+ ### Return type
953
+
954
+ [**DataResponseContainer**](DataResponseContainer.md)
955
+
956
+ ### Authorization
957
+
958
+ [api_key](../README.md#api_key)
959
+
960
+ ### HTTP request headers
961
+
962
+ - **Content-Type**: `application/json`
963
+ - **Accept**: `application/json`
964
+
965
+
966
+ ### HTTP response details
967
+ | Status code | Description | Response headers |
968
+ |-------------|-------------|------------------|
969
+ | **400** | Invalid input | - |
970
+ | **200** | API Data | - |
971
+
972
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
973
+
974
+
975
+ ## v2ElectricityOperatingGeneratorCapacityFacetFacetIdGet
976
+
977
+ > FacetDetailsContainer v2ElectricityOperatingGeneratorCapacityFacetFacetIdGet(facetId)
978
+
979
+
980
+
981
+ ### Example
982
+
983
+ ```ts
984
+ import {
985
+ Configuration,
986
+ ELECApi,
987
+ } from '';
988
+ import type { V2ElectricityOperatingGeneratorCapacityFacetFacetIdGetRequest } from '';
989
+
990
+ async function example() {
991
+ console.log("🚀 Testing SDK...");
992
+ const config = new Configuration({
993
+ // To configure API key authorization: api_key
994
+ apiKey: "YOUR API KEY",
995
+ });
996
+ const api = new ELECApi(config);
997
+
998
+ const body = {
999
+ // string | Facet ID
1000
+ facetId: facetId_example,
1001
+ } satisfies V2ElectricityOperatingGeneratorCapacityFacetFacetIdGetRequest;
1002
+
1003
+ try {
1004
+ const data = await api.v2ElectricityOperatingGeneratorCapacityFacetFacetIdGet(body);
1005
+ console.log(data);
1006
+ } catch (error) {
1007
+ console.error(error);
1008
+ }
1009
+ }
1010
+
1011
+ // Run the test
1012
+ example().catch(console.error);
1013
+ ```
1014
+
1015
+ ### Parameters
1016
+
1017
+
1018
+ | Name | Type | Description | Notes |
1019
+ |------------- | ------------- | ------------- | -------------|
1020
+ | **facetId** | `string` | Facet ID | [Defaults to `undefined`] |
1021
+
1022
+ ### Return type
1023
+
1024
+ [**FacetDetailsContainer**](FacetDetailsContainer.md)
1025
+
1026
+ ### Authorization
1027
+
1028
+ [api_key](../README.md#api_key)
1029
+
1030
+ ### HTTP request headers
1031
+
1032
+ - **Content-Type**: Not defined
1033
+ - **Accept**: `application/json`
1034
+
1035
+
1036
+ ### HTTP response details
1037
+ | Status code | Description | Response headers |
1038
+ |-------------|-------------|------------------|
1039
+ | **400** | Invalid input | - |
1040
+ | **200** | Facet details | - |
1041
+
1042
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1043
+
1044
+
1045
+ ## v2ElectricityOperatingGeneratorCapacityFacetGet
1046
+
1047
+ > FacetOptionListContainer v2ElectricityOperatingGeneratorCapacityFacetGet()
1048
+
1049
+
1050
+
1051
+ ### Example
1052
+
1053
+ ```ts
1054
+ import {
1055
+ Configuration,
1056
+ ELECApi,
1057
+ } from '';
1058
+ import type { V2ElectricityOperatingGeneratorCapacityFacetGetRequest } from '';
1059
+
1060
+ async function example() {
1061
+ console.log("🚀 Testing SDK...");
1062
+ const config = new Configuration({
1063
+ // To configure API key authorization: api_key
1064
+ apiKey: "YOUR API KEY",
1065
+ });
1066
+ const api = new ELECApi(config);
1067
+
1068
+ try {
1069
+ const data = await api.v2ElectricityOperatingGeneratorCapacityFacetGet();
1070
+ console.log(data);
1071
+ } catch (error) {
1072
+ console.error(error);
1073
+ }
1074
+ }
1075
+
1076
+ // Run the test
1077
+ example().catch(console.error);
1078
+ ```
1079
+
1080
+ ### Parameters
1081
+
1082
+ This endpoint does not need any parameter.
1083
+
1084
+ ### Return type
1085
+
1086
+ [**FacetOptionListContainer**](FacetOptionListContainer.md)
1087
+
1088
+ ### Authorization
1089
+
1090
+ [api_key](../README.md#api_key)
1091
+
1092
+ ### HTTP request headers
1093
+
1094
+ - **Content-Type**: Not defined
1095
+ - **Accept**: `application/json`
1096
+
1097
+
1098
+ ### HTTP response details
1099
+ | Status code | Description | Response headers |
1100
+ |-------------|-------------|------------------|
1101
+ | **400** | Invalid input | - |
1102
+ | **200** | List of facet options | - |
1103
+
1104
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1105
+
1106
+
1107
+ ## v2ElectricityOperatingGeneratorCapacityGet
1108
+
1109
+ > FinalRouteResponseContainer v2ElectricityOperatingGeneratorCapacityGet()
1110
+
1111
+
1112
+
1113
+ ### Example
1114
+
1115
+ ```ts
1116
+ import {
1117
+ Configuration,
1118
+ ELECApi,
1119
+ } from '';
1120
+ import type { V2ElectricityOperatingGeneratorCapacityGetRequest } from '';
1121
+
1122
+ async function example() {
1123
+ console.log("🚀 Testing SDK...");
1124
+ const config = new Configuration({
1125
+ // To configure API key authorization: api_key
1126
+ apiKey: "YOUR API KEY",
1127
+ });
1128
+ const api = new ELECApi(config);
1129
+
1130
+ try {
1131
+ const data = await api.v2ElectricityOperatingGeneratorCapacityGet();
1132
+ console.log(data);
1133
+ } catch (error) {
1134
+ console.error(error);
1135
+ }
1136
+ }
1137
+
1138
+ // Run the test
1139
+ example().catch(console.error);
1140
+ ```
1141
+
1142
+ ### Parameters
1143
+
1144
+ This endpoint does not need any parameter.
1145
+
1146
+ ### Return type
1147
+
1148
+ [**FinalRouteResponseContainer**](FinalRouteResponseContainer.md)
1149
+
1150
+ ### Authorization
1151
+
1152
+ [api_key](../README.md#api_key)
1153
+
1154
+ ### HTTP request headers
1155
+
1156
+ - **Content-Type**: Not defined
1157
+ - **Accept**: `application/json`
1158
+
1159
+
1160
+ ### HTTP response details
1161
+ | Status code | Description | Response headers |
1162
+ |-------------|-------------|------------------|
1163
+ | **200** | List of API data sets | - |
1164
+
1165
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1166
+
1167
+
1168
+ ## v2ElectricityRetailSalesDataGet
1169
+
1170
+ > DataResponseContainer v2ElectricityRetailSalesDataGet(data, facets, frequency, start, end, sort, length, offset)
1171
+
1172
+
1173
+
1174
+ API data with query params
1175
+
1176
+ ### Example
1177
+
1178
+ ```ts
1179
+ import {
1180
+ Configuration,
1181
+ ELECApi,
1182
+ } from '';
1183
+ import type { V2ElectricityRetailSalesDataGetRequest } from '';
1184
+
1185
+ async function example() {
1186
+ console.log("🚀 Testing SDK...");
1187
+ const config = new Configuration({
1188
+ // To configure API key authorization: api_key
1189
+ apiKey: "YOUR API KEY",
1190
+ });
1191
+ const api = new ELECApi(config);
1192
+
1193
+ const body = {
1194
+ // Array<string> | Data columns to filter by (optional)
1195
+ data: ...,
1196
+ // object | Facets to filter by (optional)
1197
+ facets: Object,
1198
+ // string | Frequency to filter by (optional)
1199
+ frequency: frequency_example,
1200
+ // string | Start date to filter by (optional)
1201
+ start: start_example,
1202
+ // string | End date to filter by (optional)
1203
+ end: end_example,
1204
+ // Sort | How to sort returned data (optional)
1205
+ sort: ...,
1206
+ // number | Max length of returned data (optional)
1207
+ length: 56,
1208
+ // number | Offset of returned data (optional)
1209
+ offset: 56,
1210
+ } satisfies V2ElectricityRetailSalesDataGetRequest;
1211
+
1212
+ try {
1213
+ const data = await api.v2ElectricityRetailSalesDataGet(body);
1214
+ console.log(data);
1215
+ } catch (error) {
1216
+ console.error(error);
1217
+ }
1218
+ }
1219
+
1220
+ // Run the test
1221
+ example().catch(console.error);
1222
+ ```
1223
+
1224
+ ### Parameters
1225
+
1226
+
1227
+ | Name | Type | Description | Notes |
1228
+ |------------- | ------------- | ------------- | -------------|
1229
+ | **data** | `Array<string>` | Data columns to filter by | [Optional] |
1230
+ | **facets** | `object` | Facets to filter by | [Optional] [Defaults to `undefined`] |
1231
+ | **frequency** | `string` | Frequency to filter by | [Optional] [Defaults to `undefined`] |
1232
+ | **start** | `string` | Start date to filter by | [Optional] [Defaults to `undefined`] |
1233
+ | **end** | `string` | End date to filter by | [Optional] [Defaults to `undefined`] |
1234
+ | **sort** | [](.md) | How to sort returned data | [Optional] [Defaults to `undefined`] |
1235
+ | **length** | `number` | Max length of returned data | [Optional] [Defaults to `undefined`] |
1236
+ | **offset** | `number` | Offset of returned data | [Optional] [Defaults to `undefined`] |
1237
+
1238
+ ### Return type
1239
+
1240
+ [**DataResponseContainer**](DataResponseContainer.md)
1241
+
1242
+ ### Authorization
1243
+
1244
+ [api_key](../README.md#api_key)
1245
+
1246
+ ### HTTP request headers
1247
+
1248
+ - **Content-Type**: Not defined
1249
+ - **Accept**: `application/json`
1250
+
1251
+
1252
+ ### HTTP response details
1253
+ | Status code | Description | Response headers |
1254
+ |-------------|-------------|------------------|
1255
+ | **400** | Invalid input | - |
1256
+ | **200** | API Data | - |
1257
+
1258
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1259
+
1260
+
1261
+ ## v2ElectricityRetailSalesDataPost
1262
+
1263
+ > DataResponseContainer v2ElectricityRetailSalesDataPost(dataParams)
1264
+
1265
+ Return Electricity retail-sales Data
1266
+
1267
+ Class RetailSalesController Electricity retail sales dataset controller.
1268
+
1269
+ ### Example
1270
+
1271
+ ```ts
1272
+ import {
1273
+ Configuration,
1274
+ ELECApi,
1275
+ } from '';
1276
+ import type { V2ElectricityRetailSalesDataPostRequest } from '';
1277
+
1278
+ async function example() {
1279
+ console.log("🚀 Testing SDK...");
1280
+ const config = new Configuration({
1281
+ // To configure API key authorization: api_key
1282
+ apiKey: "YOUR API KEY",
1283
+ });
1284
+ const api = new ELECApi(config);
1285
+
1286
+ const body = {
1287
+ // DataParams | Parameters for data call
1288
+ dataParams: ...,
1289
+ } satisfies V2ElectricityRetailSalesDataPostRequest;
1290
+
1291
+ try {
1292
+ const data = await api.v2ElectricityRetailSalesDataPost(body);
1293
+ console.log(data);
1294
+ } catch (error) {
1295
+ console.error(error);
1296
+ }
1297
+ }
1298
+
1299
+ // Run the test
1300
+ example().catch(console.error);
1301
+ ```
1302
+
1303
+ ### Parameters
1304
+
1305
+
1306
+ | Name | Type | Description | Notes |
1307
+ |------------- | ------------- | ------------- | -------------|
1308
+ | **dataParams** | [DataParams](DataParams.md) | Parameters for data call | |
1309
+
1310
+ ### Return type
1311
+
1312
+ [**DataResponseContainer**](DataResponseContainer.md)
1313
+
1314
+ ### Authorization
1315
+
1316
+ [api_key](../README.md#api_key)
1317
+
1318
+ ### HTTP request headers
1319
+
1320
+ - **Content-Type**: `application/json`
1321
+ - **Accept**: `application/json`
1322
+
1323
+
1324
+ ### HTTP response details
1325
+ | Status code | Description | Response headers |
1326
+ |-------------|-------------|------------------|
1327
+ | **400** | Invalid input | - |
1328
+ | **200** | API Data | - |
1329
+
1330
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1331
+
1332
+
1333
+ ## v2ElectricityRetailSalesFacetFacetIdGet
1334
+
1335
+ > FacetDetailsContainer v2ElectricityRetailSalesFacetFacetIdGet(facetId)
1336
+
1337
+
1338
+
1339
+ ### Example
1340
+
1341
+ ```ts
1342
+ import {
1343
+ Configuration,
1344
+ ELECApi,
1345
+ } from '';
1346
+ import type { V2ElectricityRetailSalesFacetFacetIdGetRequest } from '';
1347
+
1348
+ async function example() {
1349
+ console.log("🚀 Testing SDK...");
1350
+ const config = new Configuration({
1351
+ // To configure API key authorization: api_key
1352
+ apiKey: "YOUR API KEY",
1353
+ });
1354
+ const api = new ELECApi(config);
1355
+
1356
+ const body = {
1357
+ // string | Facet ID
1358
+ facetId: facetId_example,
1359
+ } satisfies V2ElectricityRetailSalesFacetFacetIdGetRequest;
1360
+
1361
+ try {
1362
+ const data = await api.v2ElectricityRetailSalesFacetFacetIdGet(body);
1363
+ console.log(data);
1364
+ } catch (error) {
1365
+ console.error(error);
1366
+ }
1367
+ }
1368
+
1369
+ // Run the test
1370
+ example().catch(console.error);
1371
+ ```
1372
+
1373
+ ### Parameters
1374
+
1375
+
1376
+ | Name | Type | Description | Notes |
1377
+ |------------- | ------------- | ------------- | -------------|
1378
+ | **facetId** | `string` | Facet ID | [Defaults to `undefined`] |
1379
+
1380
+ ### Return type
1381
+
1382
+ [**FacetDetailsContainer**](FacetDetailsContainer.md)
1383
+
1384
+ ### Authorization
1385
+
1386
+ [api_key](../README.md#api_key)
1387
+
1388
+ ### HTTP request headers
1389
+
1390
+ - **Content-Type**: Not defined
1391
+ - **Accept**: `application/json`
1392
+
1393
+
1394
+ ### HTTP response details
1395
+ | Status code | Description | Response headers |
1396
+ |-------------|-------------|------------------|
1397
+ | **400** | Invalid input | - |
1398
+ | **200** | Facet details | - |
1399
+
1400
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1401
+
1402
+
1403
+ ## v2ElectricityRetailSalesFacetGet
1404
+
1405
+ > FacetOptionListContainer v2ElectricityRetailSalesFacetGet()
1406
+
1407
+
1408
+
1409
+ ### Example
1410
+
1411
+ ```ts
1412
+ import {
1413
+ Configuration,
1414
+ ELECApi,
1415
+ } from '';
1416
+ import type { V2ElectricityRetailSalesFacetGetRequest } from '';
1417
+
1418
+ async function example() {
1419
+ console.log("🚀 Testing SDK...");
1420
+ const config = new Configuration({
1421
+ // To configure API key authorization: api_key
1422
+ apiKey: "YOUR API KEY",
1423
+ });
1424
+ const api = new ELECApi(config);
1425
+
1426
+ try {
1427
+ const data = await api.v2ElectricityRetailSalesFacetGet();
1428
+ console.log(data);
1429
+ } catch (error) {
1430
+ console.error(error);
1431
+ }
1432
+ }
1433
+
1434
+ // Run the test
1435
+ example().catch(console.error);
1436
+ ```
1437
+
1438
+ ### Parameters
1439
+
1440
+ This endpoint does not need any parameter.
1441
+
1442
+ ### Return type
1443
+
1444
+ [**FacetOptionListContainer**](FacetOptionListContainer.md)
1445
+
1446
+ ### Authorization
1447
+
1448
+ [api_key](../README.md#api_key)
1449
+
1450
+ ### HTTP request headers
1451
+
1452
+ - **Content-Type**: Not defined
1453
+ - **Accept**: `application/json`
1454
+
1455
+
1456
+ ### HTTP response details
1457
+ | Status code | Description | Response headers |
1458
+ |-------------|-------------|------------------|
1459
+ | **400** | Invalid input | - |
1460
+ | **200** | List of facet options | - |
1461
+
1462
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1463
+
1464
+
1465
+ ## v2ElectricityRetailSalesGet
1466
+
1467
+ > FinalRouteResponseContainer v2ElectricityRetailSalesGet()
1468
+
1469
+
1470
+
1471
+ ### Example
1472
+
1473
+ ```ts
1474
+ import {
1475
+ Configuration,
1476
+ ELECApi,
1477
+ } from '';
1478
+ import type { V2ElectricityRetailSalesGetRequest } from '';
1479
+
1480
+ async function example() {
1481
+ console.log("🚀 Testing SDK...");
1482
+ const config = new Configuration({
1483
+ // To configure API key authorization: api_key
1484
+ apiKey: "YOUR API KEY",
1485
+ });
1486
+ const api = new ELECApi(config);
1487
+
1488
+ try {
1489
+ const data = await api.v2ElectricityRetailSalesGet();
1490
+ console.log(data);
1491
+ } catch (error) {
1492
+ console.error(error);
1493
+ }
1494
+ }
1495
+
1496
+ // Run the test
1497
+ example().catch(console.error);
1498
+ ```
1499
+
1500
+ ### Parameters
1501
+
1502
+ This endpoint does not need any parameter.
1503
+
1504
+ ### Return type
1505
+
1506
+ [**FinalRouteResponseContainer**](FinalRouteResponseContainer.md)
1507
+
1508
+ ### Authorization
1509
+
1510
+ [api_key](../README.md#api_key)
1511
+
1512
+ ### HTTP request headers
1513
+
1514
+ - **Content-Type**: Not defined
1515
+ - **Accept**: `application/json`
1516
+
1517
+
1518
+ ### HTTP response details
1519
+ | Status code | Description | Response headers |
1520
+ |-------------|-------------|------------------|
1521
+ | **200** | List of API data sets | - |
1522
+
1523
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
1524
+