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
package/docs/AEOApi.md ADDED
@@ -0,0 +1,456 @@
1
+ # AEOApi
2
+
3
+ All URIs are relative to *https://api.eia.gov*
4
+
5
+ | Method | HTTP request | Description |
6
+ |------------- | ------------- | -------------|
7
+ | [**v2AeoGet**](AEOApi.md#v2aeoget) | **GET** /v2/aeo | |
8
+ | [**v2AeoRoute1DataGet**](AEOApi.md#v2aeoroute1dataget) | **GET** /v2/aeo/{route1}/data | |
9
+ | [**v2AeoRoute1DataPost**](AEOApi.md#v2aeoroute1datapost) | **POST** /v2/aeo/{route1}/data | Return AEO Data |
10
+ | [**v2AeoRoute1FacetFacetIdGet**](AEOApi.md#v2aeoroute1facetfacetidget) | **GET** /v2/aeo/{route1}/facet/{facet_id} | |
11
+ | [**v2AeoRoute1FacetGet**](AEOApi.md#v2aeoroute1facetget) | **GET** /v2/aeo/{route1}/facet | |
12
+ | [**v2AeoRoute1Get**](AEOApi.md#v2aeoroute1get) | **GET** /v2/aeo/{route1} | |
13
+
14
+
15
+
16
+ ## v2AeoGet
17
+
18
+ > RouteResponseContainer v2AeoGet()
19
+
20
+
21
+
22
+ ### Example
23
+
24
+ ```ts
25
+ import {
26
+ Configuration,
27
+ AEOApi,
28
+ } from '';
29
+ import type { V2AeoGetRequest } from '';
30
+
31
+ async function example() {
32
+ console.log("🚀 Testing SDK...");
33
+ const config = new Configuration({
34
+ // To configure API key authorization: api_key
35
+ apiKey: "YOUR API KEY",
36
+ });
37
+ const api = new AEOApi(config);
38
+
39
+ try {
40
+ const data = await api.v2AeoGet();
41
+ console.log(data);
42
+ } catch (error) {
43
+ console.error(error);
44
+ }
45
+ }
46
+
47
+ // Run the test
48
+ example().catch(console.error);
49
+ ```
50
+
51
+ ### Parameters
52
+
53
+ This endpoint does not need any parameter.
54
+
55
+ ### Return type
56
+
57
+ [**RouteResponseContainer**](RouteResponseContainer.md)
58
+
59
+ ### Authorization
60
+
61
+ [api_key](../README.md#api_key)
62
+
63
+ ### HTTP request headers
64
+
65
+ - **Content-Type**: Not defined
66
+ - **Accept**: `application/json`
67
+
68
+
69
+ ### HTTP response details
70
+ | Status code | Description | Response headers |
71
+ |-------------|-------------|------------------|
72
+ | **200** | List of API data sets | - |
73
+
74
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
75
+
76
+
77
+ ## v2AeoRoute1DataGet
78
+
79
+ > DataResponseContainer v2AeoRoute1DataGet(route1, data, facets, frequency, start, end, sort, length, offset)
80
+
81
+
82
+
83
+ API data with query params
84
+
85
+ ### Example
86
+
87
+ ```ts
88
+ import {
89
+ Configuration,
90
+ AEOApi,
91
+ } from '';
92
+ import type { V2AeoRoute1DataGetRequest } from '';
93
+
94
+ async function example() {
95
+ console.log("🚀 Testing SDK...");
96
+ const config = new Configuration({
97
+ // To configure API key authorization: api_key
98
+ apiKey: "YOUR API KEY",
99
+ });
100
+ const api = new AEOApi(config);
101
+
102
+ const body = {
103
+ // string | First level Sub route
104
+ route1: route1_example,
105
+ // Array<string> | Data columns to filter by (optional)
106
+ data: ...,
107
+ // object | Facets to filter by (optional)
108
+ facets: Object,
109
+ // string | Frequency to filter by (optional)
110
+ frequency: frequency_example,
111
+ // string | Start date to filter by (optional)
112
+ start: start_example,
113
+ // string | End date to filter by (optional)
114
+ end: end_example,
115
+ // Sort | How to sort returned data (optional)
116
+ sort: ...,
117
+ // number | Max length of returned data (optional)
118
+ length: 56,
119
+ // number | Offset of returned data (optional)
120
+ offset: 56,
121
+ } satisfies V2AeoRoute1DataGetRequest;
122
+
123
+ try {
124
+ const data = await api.v2AeoRoute1DataGet(body);
125
+ console.log(data);
126
+ } catch (error) {
127
+ console.error(error);
128
+ }
129
+ }
130
+
131
+ // Run the test
132
+ example().catch(console.error);
133
+ ```
134
+
135
+ ### Parameters
136
+
137
+
138
+ | Name | Type | Description | Notes |
139
+ |------------- | ------------- | ------------- | -------------|
140
+ | **route1** | `string` | First level Sub route | [Defaults to `undefined`] |
141
+ | **data** | `Array<string>` | Data columns to filter by | [Optional] |
142
+ | **facets** | `object` | Facets to filter by | [Optional] [Defaults to `undefined`] |
143
+ | **frequency** | `string` | Frequency to filter by | [Optional] [Defaults to `undefined`] |
144
+ | **start** | `string` | Start date to filter by | [Optional] [Defaults to `undefined`] |
145
+ | **end** | `string` | End date to filter by | [Optional] [Defaults to `undefined`] |
146
+ | **sort** | [](.md) | How to sort returned data | [Optional] [Defaults to `undefined`] |
147
+ | **length** | `number` | Max length of returned data | [Optional] [Defaults to `undefined`] |
148
+ | **offset** | `number` | Offset of returned data | [Optional] [Defaults to `undefined`] |
149
+
150
+ ### Return type
151
+
152
+ [**DataResponseContainer**](DataResponseContainer.md)
153
+
154
+ ### Authorization
155
+
156
+ [api_key](../README.md#api_key)
157
+
158
+ ### HTTP request headers
159
+
160
+ - **Content-Type**: Not defined
161
+ - **Accept**: `application/json`
162
+
163
+
164
+ ### HTTP response details
165
+ | Status code | Description | Response headers |
166
+ |-------------|-------------|------------------|
167
+ | **400** | Invalid input | - |
168
+ | **200** | API Data | - |
169
+
170
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
171
+
172
+
173
+ ## v2AeoRoute1DataPost
174
+
175
+ > DataResponseContainer v2AeoRoute1DataPost(route1, dataParams)
176
+
177
+ Return AEO Data
178
+
179
+ ### Example
180
+
181
+ ```ts
182
+ import {
183
+ Configuration,
184
+ AEOApi,
185
+ } from '';
186
+ import type { V2AeoRoute1DataPostRequest } from '';
187
+
188
+ async function example() {
189
+ console.log("🚀 Testing SDK...");
190
+ const config = new Configuration({
191
+ // To configure API key authorization: api_key
192
+ apiKey: "YOUR API KEY",
193
+ });
194
+ const api = new AEOApi(config);
195
+
196
+ const body = {
197
+ // string | First level Sub route
198
+ route1: route1_example,
199
+ // DataParams | Parameters for data call
200
+ dataParams: ...,
201
+ } satisfies V2AeoRoute1DataPostRequest;
202
+
203
+ try {
204
+ const data = await api.v2AeoRoute1DataPost(body);
205
+ console.log(data);
206
+ } catch (error) {
207
+ console.error(error);
208
+ }
209
+ }
210
+
211
+ // Run the test
212
+ example().catch(console.error);
213
+ ```
214
+
215
+ ### Parameters
216
+
217
+
218
+ | Name | Type | Description | Notes |
219
+ |------------- | ------------- | ------------- | -------------|
220
+ | **route1** | `string` | First level Sub route | [Defaults to `undefined`] |
221
+ | **dataParams** | [DataParams](DataParams.md) | Parameters for data call | |
222
+
223
+ ### Return type
224
+
225
+ [**DataResponseContainer**](DataResponseContainer.md)
226
+
227
+ ### Authorization
228
+
229
+ [api_key](../README.md#api_key)
230
+
231
+ ### HTTP request headers
232
+
233
+ - **Content-Type**: `application/json`
234
+ - **Accept**: `application/json`
235
+
236
+
237
+ ### HTTP response details
238
+ | Status code | Description | Response headers |
239
+ |-------------|-------------|------------------|
240
+ | **400** | Invalid input | - |
241
+ | **200** | API Data | - |
242
+
243
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
244
+
245
+
246
+ ## v2AeoRoute1FacetFacetIdGet
247
+
248
+ > FacetDetailsContainer v2AeoRoute1FacetFacetIdGet(route1, facetId)
249
+
250
+
251
+
252
+ ### Example
253
+
254
+ ```ts
255
+ import {
256
+ Configuration,
257
+ AEOApi,
258
+ } from '';
259
+ import type { V2AeoRoute1FacetFacetIdGetRequest } from '';
260
+
261
+ async function example() {
262
+ console.log("🚀 Testing SDK...");
263
+ const config = new Configuration({
264
+ // To configure API key authorization: api_key
265
+ apiKey: "YOUR API KEY",
266
+ });
267
+ const api = new AEOApi(config);
268
+
269
+ const body = {
270
+ // string | First level Sub route
271
+ route1: route1_example,
272
+ // string | Facet ID
273
+ facetId: facetId_example,
274
+ } satisfies V2AeoRoute1FacetFacetIdGetRequest;
275
+
276
+ try {
277
+ const data = await api.v2AeoRoute1FacetFacetIdGet(body);
278
+ console.log(data);
279
+ } catch (error) {
280
+ console.error(error);
281
+ }
282
+ }
283
+
284
+ // Run the test
285
+ example().catch(console.error);
286
+ ```
287
+
288
+ ### Parameters
289
+
290
+
291
+ | Name | Type | Description | Notes |
292
+ |------------- | ------------- | ------------- | -------------|
293
+ | **route1** | `string` | First level Sub route | [Defaults to `undefined`] |
294
+ | **facetId** | `string` | Facet ID | [Defaults to `undefined`] |
295
+
296
+ ### Return type
297
+
298
+ [**FacetDetailsContainer**](FacetDetailsContainer.md)
299
+
300
+ ### Authorization
301
+
302
+ [api_key](../README.md#api_key)
303
+
304
+ ### HTTP request headers
305
+
306
+ - **Content-Type**: Not defined
307
+ - **Accept**: `application/json`
308
+
309
+
310
+ ### HTTP response details
311
+ | Status code | Description | Response headers |
312
+ |-------------|-------------|------------------|
313
+ | **400** | Invalid input | - |
314
+ | **200** | Facet details | - |
315
+
316
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
317
+
318
+
319
+ ## v2AeoRoute1FacetGet
320
+
321
+ > FacetOptionListContainer v2AeoRoute1FacetGet(route1)
322
+
323
+
324
+
325
+ ### Example
326
+
327
+ ```ts
328
+ import {
329
+ Configuration,
330
+ AEOApi,
331
+ } from '';
332
+ import type { V2AeoRoute1FacetGetRequest } from '';
333
+
334
+ async function example() {
335
+ console.log("🚀 Testing SDK...");
336
+ const config = new Configuration({
337
+ // To configure API key authorization: api_key
338
+ apiKey: "YOUR API KEY",
339
+ });
340
+ const api = new AEOApi(config);
341
+
342
+ const body = {
343
+ // string | First level Sub route
344
+ route1: route1_example,
345
+ } satisfies V2AeoRoute1FacetGetRequest;
346
+
347
+ try {
348
+ const data = await api.v2AeoRoute1FacetGet(body);
349
+ console.log(data);
350
+ } catch (error) {
351
+ console.error(error);
352
+ }
353
+ }
354
+
355
+ // Run the test
356
+ example().catch(console.error);
357
+ ```
358
+
359
+ ### Parameters
360
+
361
+
362
+ | Name | Type | Description | Notes |
363
+ |------------- | ------------- | ------------- | -------------|
364
+ | **route1** | `string` | First level Sub route | [Defaults to `undefined`] |
365
+
366
+ ### Return type
367
+
368
+ [**FacetOptionListContainer**](FacetOptionListContainer.md)
369
+
370
+ ### Authorization
371
+
372
+ [api_key](../README.md#api_key)
373
+
374
+ ### HTTP request headers
375
+
376
+ - **Content-Type**: Not defined
377
+ - **Accept**: `application/json`
378
+
379
+
380
+ ### HTTP response details
381
+ | Status code | Description | Response headers |
382
+ |-------------|-------------|------------------|
383
+ | **400** | Invalid input | - |
384
+ | **200** | List of facet options | - |
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
+ ## v2AeoRoute1Get
390
+
391
+ > FinalRouteResponseContainer v2AeoRoute1Get(route1)
392
+
393
+
394
+
395
+ ### Example
396
+
397
+ ```ts
398
+ import {
399
+ Configuration,
400
+ AEOApi,
401
+ } from '';
402
+ import type { V2AeoRoute1GetRequest } from '';
403
+
404
+ async function example() {
405
+ console.log("🚀 Testing SDK...");
406
+ const config = new Configuration({
407
+ // To configure API key authorization: api_key
408
+ apiKey: "YOUR API KEY",
409
+ });
410
+ const api = new AEOApi(config);
411
+
412
+ const body = {
413
+ // string | First level Sub route
414
+ route1: route1_example,
415
+ } satisfies V2AeoRoute1GetRequest;
416
+
417
+ try {
418
+ const data = await api.v2AeoRoute1Get(body);
419
+ console.log(data);
420
+ } catch (error) {
421
+ console.error(error);
422
+ }
423
+ }
424
+
425
+ // Run the test
426
+ example().catch(console.error);
427
+ ```
428
+
429
+ ### Parameters
430
+
431
+
432
+ | Name | Type | Description | Notes |
433
+ |------------- | ------------- | ------------- | -------------|
434
+ | **route1** | `string` | First level Sub route | [Defaults to `undefined`] |
435
+
436
+ ### Return type
437
+
438
+ [**FinalRouteResponseContainer**](FinalRouteResponseContainer.md)
439
+
440
+ ### Authorization
441
+
442
+ [api_key](../README.md#api_key)
443
+
444
+ ### HTTP request headers
445
+
446
+ - **Content-Type**: Not defined
447
+ - **Accept**: `application/json`
448
+
449
+
450
+ ### HTTP response details
451
+ | Status code | Description | Response headers |
452
+ |-------------|-------------|------------------|
453
+ | **200** | List of API data sets | - |
454
+
455
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
456
+