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/NGApi.md ADDED
@@ -0,0 +1,541 @@
1
+ # NGApi
2
+
3
+ All URIs are relative to *https://api.eia.gov*
4
+
5
+ | Method | HTTP request | Description |
6
+ |------------- | ------------- | -------------|
7
+ | [**v2NaturalGasGet**](NGApi.md#v2naturalgasget) | **GET** /v2/natural-gas | |
8
+ | [**v2NaturalGasRoute1Get**](NGApi.md#v2naturalgasroute1get) | **GET** /v2/natural-gas/{route1} | |
9
+ | [**v2NaturalGasRoute1Route2DataGet**](NGApi.md#v2naturalgasroute1route2dataget) | **GET** /v2/natural-gas/{route1}/{route2}/data | |
10
+ | [**v2NaturalGasRoute1Route2DataPost**](NGApi.md#v2naturalgasroute1route2datapost) | **POST** /v2/natural-gas/{route1}/{route2}/data | Return Natural Gas Data |
11
+ | [**v2NaturalGasRoute1Route2FacetFacetIdGet**](NGApi.md#v2naturalgasroute1route2facetfacetidget) | **GET** /v2/natural-gas/{route1}/{route2}/facet/{facet_id} | |
12
+ | [**v2NaturalGasRoute1Route2FacetGet**](NGApi.md#v2naturalgasroute1route2facetget) | **GET** /v2/natural-gas/{route1}/{route2}/facet | |
13
+ | [**v2NaturalGasRoute1Route2Get**](NGApi.md#v2naturalgasroute1route2get) | **GET** /v2/natural-gas/{route1}/{route2} | |
14
+
15
+
16
+
17
+ ## v2NaturalGasGet
18
+
19
+ > RouteResponseContainer v2NaturalGasGet()
20
+
21
+
22
+
23
+ ### Example
24
+
25
+ ```ts
26
+ import {
27
+ Configuration,
28
+ NGApi,
29
+ } from '';
30
+ import type { V2NaturalGasGetRequest } from '';
31
+
32
+ async function example() {
33
+ console.log("🚀 Testing SDK...");
34
+ const config = new Configuration({
35
+ // To configure API key authorization: api_key
36
+ apiKey: "YOUR API KEY",
37
+ });
38
+ const api = new NGApi(config);
39
+
40
+ try {
41
+ const data = await api.v2NaturalGasGet();
42
+ console.log(data);
43
+ } catch (error) {
44
+ console.error(error);
45
+ }
46
+ }
47
+
48
+ // Run the test
49
+ example().catch(console.error);
50
+ ```
51
+
52
+ ### Parameters
53
+
54
+ This endpoint does not need any parameter.
55
+
56
+ ### Return type
57
+
58
+ [**RouteResponseContainer**](RouteResponseContainer.md)
59
+
60
+ ### Authorization
61
+
62
+ [api_key](../README.md#api_key)
63
+
64
+ ### HTTP request headers
65
+
66
+ - **Content-Type**: Not defined
67
+ - **Accept**: `application/json`
68
+
69
+
70
+ ### HTTP response details
71
+ | Status code | Description | Response headers |
72
+ |-------------|-------------|------------------|
73
+ | **200** | List of API data sets | - |
74
+
75
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
76
+
77
+
78
+ ## v2NaturalGasRoute1Get
79
+
80
+ > RouteResponseContainer v2NaturalGasRoute1Get(route1)
81
+
82
+
83
+
84
+ ### Example
85
+
86
+ ```ts
87
+ import {
88
+ Configuration,
89
+ NGApi,
90
+ } from '';
91
+ import type { V2NaturalGasRoute1GetRequest } from '';
92
+
93
+ async function example() {
94
+ console.log("🚀 Testing SDK...");
95
+ const config = new Configuration({
96
+ // To configure API key authorization: api_key
97
+ apiKey: "YOUR API KEY",
98
+ });
99
+ const api = new NGApi(config);
100
+
101
+ const body = {
102
+ // string | First level Sub route
103
+ route1: route1_example,
104
+ } satisfies V2NaturalGasRoute1GetRequest;
105
+
106
+ try {
107
+ const data = await api.v2NaturalGasRoute1Get(body);
108
+ console.log(data);
109
+ } catch (error) {
110
+ console.error(error);
111
+ }
112
+ }
113
+
114
+ // Run the test
115
+ example().catch(console.error);
116
+ ```
117
+
118
+ ### Parameters
119
+
120
+
121
+ | Name | Type | Description | Notes |
122
+ |------------- | ------------- | ------------- | -------------|
123
+ | **route1** | `string` | First level Sub route | [Defaults to `undefined`] |
124
+
125
+ ### Return type
126
+
127
+ [**RouteResponseContainer**](RouteResponseContainer.md)
128
+
129
+ ### Authorization
130
+
131
+ [api_key](../README.md#api_key)
132
+
133
+ ### HTTP request headers
134
+
135
+ - **Content-Type**: Not defined
136
+ - **Accept**: `application/json`
137
+
138
+
139
+ ### HTTP response details
140
+ | Status code | Description | Response headers |
141
+ |-------------|-------------|------------------|
142
+ | **200** | List of API data sets | - |
143
+
144
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
145
+
146
+
147
+ ## v2NaturalGasRoute1Route2DataGet
148
+
149
+ > DataResponseContainer v2NaturalGasRoute1Route2DataGet(route1, route2, data, facets, frequency, start, end, sort, length, offset)
150
+
151
+
152
+
153
+ API data with query params
154
+
155
+ ### Example
156
+
157
+ ```ts
158
+ import {
159
+ Configuration,
160
+ NGApi,
161
+ } from '';
162
+ import type { V2NaturalGasRoute1Route2DataGetRequest } from '';
163
+
164
+ async function example() {
165
+ console.log("🚀 Testing SDK...");
166
+ const config = new Configuration({
167
+ // To configure API key authorization: api_key
168
+ apiKey: "YOUR API KEY",
169
+ });
170
+ const api = new NGApi(config);
171
+
172
+ const body = {
173
+ // string | First level Sub route
174
+ route1: route1_example,
175
+ // string | Second level Sub route
176
+ route2: route2_example,
177
+ // Array<string> | Data columns to filter by (optional)
178
+ data: ...,
179
+ // object | Facets to filter by (optional)
180
+ facets: Object,
181
+ // string | Frequency to filter by (optional)
182
+ frequency: frequency_example,
183
+ // string | Start date to filter by (optional)
184
+ start: start_example,
185
+ // string | End date to filter by (optional)
186
+ end: end_example,
187
+ // Sort | How to sort returned data (optional)
188
+ sort: ...,
189
+ // number | Max length of returned data (optional)
190
+ length: 56,
191
+ // number | Offset of returned data (optional)
192
+ offset: 56,
193
+ } satisfies V2NaturalGasRoute1Route2DataGetRequest;
194
+
195
+ try {
196
+ const data = await api.v2NaturalGasRoute1Route2DataGet(body);
197
+ console.log(data);
198
+ } catch (error) {
199
+ console.error(error);
200
+ }
201
+ }
202
+
203
+ // Run the test
204
+ example().catch(console.error);
205
+ ```
206
+
207
+ ### Parameters
208
+
209
+
210
+ | Name | Type | Description | Notes |
211
+ |------------- | ------------- | ------------- | -------------|
212
+ | **route1** | `string` | First level Sub route | [Defaults to `undefined`] |
213
+ | **route2** | `string` | Second level Sub route | [Defaults to `undefined`] |
214
+ | **data** | `Array<string>` | Data columns to filter by | [Optional] |
215
+ | **facets** | `object` | Facets to filter by | [Optional] [Defaults to `undefined`] |
216
+ | **frequency** | `string` | Frequency to filter by | [Optional] [Defaults to `undefined`] |
217
+ | **start** | `string` | Start date to filter by | [Optional] [Defaults to `undefined`] |
218
+ | **end** | `string` | End date to filter by | [Optional] [Defaults to `undefined`] |
219
+ | **sort** | [](.md) | How to sort returned data | [Optional] [Defaults to `undefined`] |
220
+ | **length** | `number` | Max length of returned data | [Optional] [Defaults to `undefined`] |
221
+ | **offset** | `number` | Offset of returned data | [Optional] [Defaults to `undefined`] |
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**: Not defined
234
+ - **Accept**: `application/json`
235
+
236
+
237
+ ### HTTP response details
238
+ | Status code | Description | Response headers |
239
+ |-------------|-------------|------------------|
240
+ | **405** | 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
+ ## v2NaturalGasRoute1Route2DataPost
247
+
248
+ > DataResponseContainer v2NaturalGasRoute1Route2DataPost(route1, route2, dataParams)
249
+
250
+ Return Natural Gas Data
251
+
252
+ ### Example
253
+
254
+ ```ts
255
+ import {
256
+ Configuration,
257
+ NGApi,
258
+ } from '';
259
+ import type { V2NaturalGasRoute1Route2DataPostRequest } 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 NGApi(config);
268
+
269
+ const body = {
270
+ // string | First level Sub route
271
+ route1: route1_example,
272
+ // string | Second level Sub route
273
+ route2: route2_example,
274
+ // DataParams | Parameters for data call
275
+ dataParams: ...,
276
+ } satisfies V2NaturalGasRoute1Route2DataPostRequest;
277
+
278
+ try {
279
+ const data = await api.v2NaturalGasRoute1Route2DataPost(body);
280
+ console.log(data);
281
+ } catch (error) {
282
+ console.error(error);
283
+ }
284
+ }
285
+
286
+ // Run the test
287
+ example().catch(console.error);
288
+ ```
289
+
290
+ ### Parameters
291
+
292
+
293
+ | Name | Type | Description | Notes |
294
+ |------------- | ------------- | ------------- | -------------|
295
+ | **route1** | `string` | First level Sub route | [Defaults to `undefined`] |
296
+ | **route2** | `string` | Second level Sub route | [Defaults to `undefined`] |
297
+ | **dataParams** | [DataParams](DataParams.md) | Parameters for data call | |
298
+
299
+ ### Return type
300
+
301
+ [**DataResponseContainer**](DataResponseContainer.md)
302
+
303
+ ### Authorization
304
+
305
+ [api_key](../README.md#api_key)
306
+
307
+ ### HTTP request headers
308
+
309
+ - **Content-Type**: `application/json`
310
+ - **Accept**: `application/json`
311
+
312
+
313
+ ### HTTP response details
314
+ | Status code | Description | Response headers |
315
+ |-------------|-------------|------------------|
316
+ | **405** | Invalid input | - |
317
+ | **200** | API Data | - |
318
+
319
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
320
+
321
+
322
+ ## v2NaturalGasRoute1Route2FacetFacetIdGet
323
+
324
+ > FacetDetailsContainer v2NaturalGasRoute1Route2FacetFacetIdGet(route1, route2, facetId)
325
+
326
+
327
+
328
+ ### Example
329
+
330
+ ```ts
331
+ import {
332
+ Configuration,
333
+ NGApi,
334
+ } from '';
335
+ import type { V2NaturalGasRoute1Route2FacetFacetIdGetRequest } from '';
336
+
337
+ async function example() {
338
+ console.log("🚀 Testing SDK...");
339
+ const config = new Configuration({
340
+ // To configure API key authorization: api_key
341
+ apiKey: "YOUR API KEY",
342
+ });
343
+ const api = new NGApi(config);
344
+
345
+ const body = {
346
+ // string | First level Sub route
347
+ route1: route1_example,
348
+ // string | Second level Sub route
349
+ route2: route2_example,
350
+ // string | Facet ID
351
+ facetId: facetId_example,
352
+ } satisfies V2NaturalGasRoute1Route2FacetFacetIdGetRequest;
353
+
354
+ try {
355
+ const data = await api.v2NaturalGasRoute1Route2FacetFacetIdGet(body);
356
+ console.log(data);
357
+ } catch (error) {
358
+ console.error(error);
359
+ }
360
+ }
361
+
362
+ // Run the test
363
+ example().catch(console.error);
364
+ ```
365
+
366
+ ### Parameters
367
+
368
+
369
+ | Name | Type | Description | Notes |
370
+ |------------- | ------------- | ------------- | -------------|
371
+ | **route1** | `string` | First level Sub route | [Defaults to `undefined`] |
372
+ | **route2** | `string` | Second level Sub route | [Defaults to `undefined`] |
373
+ | **facetId** | `string` | Facet ID | [Defaults to `undefined`] |
374
+
375
+ ### Return type
376
+
377
+ [**FacetDetailsContainer**](FacetDetailsContainer.md)
378
+
379
+ ### Authorization
380
+
381
+ [api_key](../README.md#api_key)
382
+
383
+ ### HTTP request headers
384
+
385
+ - **Content-Type**: Not defined
386
+ - **Accept**: `application/json`
387
+
388
+
389
+ ### HTTP response details
390
+ | Status code | Description | Response headers |
391
+ |-------------|-------------|------------------|
392
+ | **400** | Invalid input | - |
393
+ | **200** | Facet details | - |
394
+
395
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
396
+
397
+
398
+ ## v2NaturalGasRoute1Route2FacetGet
399
+
400
+ > FacetOptionListContainer v2NaturalGasRoute1Route2FacetGet(route1, route2)
401
+
402
+
403
+
404
+ ### Example
405
+
406
+ ```ts
407
+ import {
408
+ Configuration,
409
+ NGApi,
410
+ } from '';
411
+ import type { V2NaturalGasRoute1Route2FacetGetRequest } from '';
412
+
413
+ async function example() {
414
+ console.log("🚀 Testing SDK...");
415
+ const config = new Configuration({
416
+ // To configure API key authorization: api_key
417
+ apiKey: "YOUR API KEY",
418
+ });
419
+ const api = new NGApi(config);
420
+
421
+ const body = {
422
+ // string | First level Sub route
423
+ route1: route1_example,
424
+ // string | Second level Sub route
425
+ route2: route2_example,
426
+ } satisfies V2NaturalGasRoute1Route2FacetGetRequest;
427
+
428
+ try {
429
+ const data = await api.v2NaturalGasRoute1Route2FacetGet(body);
430
+ console.log(data);
431
+ } catch (error) {
432
+ console.error(error);
433
+ }
434
+ }
435
+
436
+ // Run the test
437
+ example().catch(console.error);
438
+ ```
439
+
440
+ ### Parameters
441
+
442
+
443
+ | Name | Type | Description | Notes |
444
+ |------------- | ------------- | ------------- | -------------|
445
+ | **route1** | `string` | First level Sub route | [Defaults to `undefined`] |
446
+ | **route2** | `string` | Second level Sub route | [Defaults to `undefined`] |
447
+
448
+ ### Return type
449
+
450
+ [**FacetOptionListContainer**](FacetOptionListContainer.md)
451
+
452
+ ### Authorization
453
+
454
+ [api_key](../README.md#api_key)
455
+
456
+ ### HTTP request headers
457
+
458
+ - **Content-Type**: Not defined
459
+ - **Accept**: `application/json`
460
+
461
+
462
+ ### HTTP response details
463
+ | Status code | Description | Response headers |
464
+ |-------------|-------------|------------------|
465
+ | **400** | Invalid input | - |
466
+ | **200** | List of facet options | - |
467
+
468
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
469
+
470
+
471
+ ## v2NaturalGasRoute1Route2Get
472
+
473
+ > FinalRouteResponseContainer v2NaturalGasRoute1Route2Get(route1, route2)
474
+
475
+
476
+
477
+ ### Example
478
+
479
+ ```ts
480
+ import {
481
+ Configuration,
482
+ NGApi,
483
+ } from '';
484
+ import type { V2NaturalGasRoute1Route2GetRequest } from '';
485
+
486
+ async function example() {
487
+ console.log("🚀 Testing SDK...");
488
+ const config = new Configuration({
489
+ // To configure API key authorization: api_key
490
+ apiKey: "YOUR API KEY",
491
+ });
492
+ const api = new NGApi(config);
493
+
494
+ const body = {
495
+ // string | First level Sub route
496
+ route1: route1_example,
497
+ // string | Second level Sub route
498
+ route2: route2_example,
499
+ } satisfies V2NaturalGasRoute1Route2GetRequest;
500
+
501
+ try {
502
+ const data = await api.v2NaturalGasRoute1Route2Get(body);
503
+ console.log(data);
504
+ } catch (error) {
505
+ console.error(error);
506
+ }
507
+ }
508
+
509
+ // Run the test
510
+ example().catch(console.error);
511
+ ```
512
+
513
+ ### Parameters
514
+
515
+
516
+ | Name | Type | Description | Notes |
517
+ |------------- | ------------- | ------------- | -------------|
518
+ | **route1** | `string` | First level Sub route | [Defaults to `undefined`] |
519
+ | **route2** | `string` | Second level Sub route | [Defaults to `undefined`] |
520
+
521
+ ### Return type
522
+
523
+ [**FinalRouteResponseContainer**](FinalRouteResponseContainer.md)
524
+
525
+ ### Authorization
526
+
527
+ [api_key](../README.md#api_key)
528
+
529
+ ### HTTP request headers
530
+
531
+ - **Content-Type**: Not defined
532
+ - **Accept**: `application/json`
533
+
534
+
535
+ ### HTTP response details
536
+ | Status code | Description | Response headers |
537
+ |-------------|-------------|------------------|
538
+ | **200** | List of API data sets | - |
539
+
540
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
541
+