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,70 @@
1
+ # RootApi
2
+
3
+ All URIs are relative to *https://api.eia.gov*
4
+
5
+ | Method | HTTP request | Description |
6
+ |------------- | ------------- | -------------|
7
+ | [**v2Get**](RootApi.md#v2get) | **GET** /v2 | |
8
+
9
+
10
+
11
+ ## v2Get
12
+
13
+ > RouteResponseContainer v2Get()
14
+
15
+
16
+
17
+ ### Example
18
+
19
+ ```ts
20
+ import {
21
+ Configuration,
22
+ RootApi,
23
+ } from '';
24
+ import type { V2GetRequest } from '';
25
+
26
+ async function example() {
27
+ console.log("🚀 Testing SDK...");
28
+ const config = new Configuration({
29
+ // To configure API key authorization: api_key
30
+ apiKey: "YOUR API KEY",
31
+ });
32
+ const api = new RootApi(config);
33
+
34
+ try {
35
+ const data = await api.v2Get();
36
+ console.log(data);
37
+ } catch (error) {
38
+ console.error(error);
39
+ }
40
+ }
41
+
42
+ // Run the test
43
+ example().catch(console.error);
44
+ ```
45
+
46
+ ### Parameters
47
+
48
+ This endpoint does not need any parameter.
49
+
50
+ ### Return type
51
+
52
+ [**RouteResponseContainer**](RouteResponseContainer.md)
53
+
54
+ ### Authorization
55
+
56
+ [api_key](../README.md#api_key)
57
+
58
+ ### HTTP request headers
59
+
60
+ - **Content-Type**: Not defined
61
+ - **Accept**: `application/json`
62
+
63
+
64
+ ### HTTP response details
65
+ | Status code | Description | Response headers |
66
+ |-------------|-------------|------------------|
67
+ | **200** | List of API data sets | - |
68
+
69
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
70
+
@@ -0,0 +1,36 @@
1
+
2
+ # RouteRequest
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `command` | Array<string>
10
+ `params` | any
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { RouteRequest } from ''
16
+
17
+ // TODO: Update the object below with actual values
18
+ const example = {
19
+ "command": null,
20
+ "params": null,
21
+ } satisfies RouteRequest
22
+
23
+ console.log(example)
24
+
25
+ // Convert the instance to a JSON string
26
+ const exampleJSON: string = JSON.stringify(example)
27
+ console.log(exampleJSON)
28
+
29
+ // Parse the JSON string back to an object
30
+ const exampleParsed = JSON.parse(exampleJSON) as RouteRequest
31
+ console.log(exampleParsed)
32
+ ```
33
+
34
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
35
+
36
+
@@ -0,0 +1,36 @@
1
+
2
+ # RouteResponse
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `response` | [Routes](Routes.md)
10
+ `request` | [RouteRequest](RouteRequest.md)
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { RouteResponse } from ''
16
+
17
+ // TODO: Update the object below with actual values
18
+ const example = {
19
+ "response": null,
20
+ "request": null,
21
+ } satisfies RouteResponse
22
+
23
+ console.log(example)
24
+
25
+ // Convert the instance to a JSON string
26
+ const exampleJSON: string = JSON.stringify(example)
27
+ console.log(exampleJSON)
28
+
29
+ // Parse the JSON string back to an object
30
+ const exampleParsed = JSON.parse(exampleJSON) as RouteResponse
31
+ console.log(exampleParsed)
32
+ ```
33
+
34
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
35
+
36
+
@@ -0,0 +1,38 @@
1
+
2
+ # RouteResponseContainer
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `apiVersion` | string
10
+ `request` | [RouteRequest](RouteRequest.md)
11
+ `response` | [RouteResponse](RouteResponse.md)
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import type { RouteResponseContainer } from ''
17
+
18
+ // TODO: Update the object below with actual values
19
+ const example = {
20
+ "apiVersion": null,
21
+ "request": null,
22
+ "response": null,
23
+ } satisfies RouteResponseContainer
24
+
25
+ console.log(example)
26
+
27
+ // Convert the instance to a JSON string
28
+ const exampleJSON: string = JSON.stringify(example)
29
+ console.log(exampleJSON)
30
+
31
+ // Parse the JSON string back to an object
32
+ const exampleParsed = JSON.parse(exampleJSON) as RouteResponseContainer
33
+ console.log(exampleParsed)
34
+ ```
35
+
36
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
37
+
38
+
package/docs/Routes.md ADDED
@@ -0,0 +1,40 @@
1
+
2
+ # Routes
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `routes` | Array<string>
10
+ `id` | string
11
+ `name` | string
12
+ `description` | string
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import type { Routes } from ''
18
+
19
+ // TODO: Update the object below with actual values
20
+ const example = {
21
+ "routes": null,
22
+ "id": null,
23
+ "name": null,
24
+ "description": null,
25
+ } satisfies Routes
26
+
27
+ console.log(example)
28
+
29
+ // Convert the instance to a JSON string
30
+ const exampleJSON: string = JSON.stringify(example)
31
+ console.log(exampleJSON)
32
+
33
+ // Parse the JSON string back to an object
34
+ const exampleParsed = JSON.parse(exampleJSON) as Routes
35
+ console.log(exampleParsed)
36
+ ```
37
+
38
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
39
+
40
+
@@ -0,0 +1,372 @@
1
+ # SEDSApi
2
+
3
+ All URIs are relative to *https://api.eia.gov*
4
+
5
+ | Method | HTTP request | Description |
6
+ |------------- | ------------- | -------------|
7
+ | [**v2SedsDataGet**](SEDSApi.md#v2sedsdataget) | **GET** /v2/seds/data | |
8
+ | [**v2SedsDataPost**](SEDSApi.md#v2sedsdatapost) | **POST** /v2/seds/data | Return SEDS Data |
9
+ | [**v2SedsFacetFacetIdGet**](SEDSApi.md#v2sedsfacetfacetidget) | **GET** /v2/seds/facet/{facet_id} | |
10
+ | [**v2SedsFacetGet**](SEDSApi.md#v2sedsfacetget) | **GET** /v2/seds/facet | |
11
+ | [**v2SedsGet**](SEDSApi.md#v2sedsget) | **GET** /v2/seds | |
12
+
13
+
14
+
15
+ ## v2SedsDataGet
16
+
17
+ > DataResponseContainer v2SedsDataGet(data, facets, frequency, start, end, sort, length, offset)
18
+
19
+
20
+
21
+ API data with query params
22
+
23
+ ### Example
24
+
25
+ ```ts
26
+ import {
27
+ Configuration,
28
+ SEDSApi,
29
+ } from '';
30
+ import type { V2SedsDataGetRequest } 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 SEDSApi(config);
39
+
40
+ const body = {
41
+ // Array<string> | Data columns to filter by (optional)
42
+ data: ...,
43
+ // object | Facets to filter by (optional)
44
+ facets: Object,
45
+ // string | Frequency to filter by (optional)
46
+ frequency: frequency_example,
47
+ // string | Start date to filter by (optional)
48
+ start: start_example,
49
+ // string | End date to filter by (optional)
50
+ end: end_example,
51
+ // Sort | How to sort returned data (optional)
52
+ sort: ...,
53
+ // number | Max length of returned data (optional)
54
+ length: 56,
55
+ // number | Offset of returned data (optional)
56
+ offset: 56,
57
+ } satisfies V2SedsDataGetRequest;
58
+
59
+ try {
60
+ const data = await api.v2SedsDataGet(body);
61
+ console.log(data);
62
+ } catch (error) {
63
+ console.error(error);
64
+ }
65
+ }
66
+
67
+ // Run the test
68
+ example().catch(console.error);
69
+ ```
70
+
71
+ ### Parameters
72
+
73
+
74
+ | Name | Type | Description | Notes |
75
+ |------------- | ------------- | ------------- | -------------|
76
+ | **data** | `Array<string>` | Data columns to filter by | [Optional] |
77
+ | **facets** | `object` | Facets to filter by | [Optional] [Defaults to `undefined`] |
78
+ | **frequency** | `string` | Frequency to filter by | [Optional] [Defaults to `undefined`] |
79
+ | **start** | `string` | Start date to filter by | [Optional] [Defaults to `undefined`] |
80
+ | **end** | `string` | End date to filter by | [Optional] [Defaults to `undefined`] |
81
+ | **sort** | [](.md) | How to sort returned data | [Optional] [Defaults to `undefined`] |
82
+ | **length** | `number` | Max length of returned data | [Optional] [Defaults to `undefined`] |
83
+ | **offset** | `number` | Offset of returned data | [Optional] [Defaults to `undefined`] |
84
+
85
+ ### Return type
86
+
87
+ [**DataResponseContainer**](DataResponseContainer.md)
88
+
89
+ ### Authorization
90
+
91
+ [api_key](../README.md#api_key)
92
+
93
+ ### HTTP request headers
94
+
95
+ - **Content-Type**: Not defined
96
+ - **Accept**: `application/json`
97
+
98
+
99
+ ### HTTP response details
100
+ | Status code | Description | Response headers |
101
+ |-------------|-------------|------------------|
102
+ | **400** | Invalid input | - |
103
+ | **404** | Not Found | - |
104
+ | **200** | API Data | - |
105
+
106
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
107
+
108
+
109
+ ## v2SedsDataPost
110
+
111
+ > DataResponseContainer v2SedsDataPost(dataParams)
112
+
113
+ Return SEDS Data
114
+
115
+ Class SEDSController SEDS data set top-level controller.
116
+
117
+ ### Example
118
+
119
+ ```ts
120
+ import {
121
+ Configuration,
122
+ SEDSApi,
123
+ } from '';
124
+ import type { V2SedsDataPostRequest } from '';
125
+
126
+ async function example() {
127
+ console.log("🚀 Testing SDK...");
128
+ const config = new Configuration({
129
+ // To configure API key authorization: api_key
130
+ apiKey: "YOUR API KEY",
131
+ });
132
+ const api = new SEDSApi(config);
133
+
134
+ const body = {
135
+ // DataParams | Parameters for data call
136
+ dataParams: ...,
137
+ } satisfies V2SedsDataPostRequest;
138
+
139
+ try {
140
+ const data = await api.v2SedsDataPost(body);
141
+ console.log(data);
142
+ } catch (error) {
143
+ console.error(error);
144
+ }
145
+ }
146
+
147
+ // Run the test
148
+ example().catch(console.error);
149
+ ```
150
+
151
+ ### Parameters
152
+
153
+
154
+ | Name | Type | Description | Notes |
155
+ |------------- | ------------- | ------------- | -------------|
156
+ | **dataParams** | [DataParams](DataParams.md) | Parameters for data call | |
157
+
158
+ ### Return type
159
+
160
+ [**DataResponseContainer**](DataResponseContainer.md)
161
+
162
+ ### Authorization
163
+
164
+ [api_key](../README.md#api_key)
165
+
166
+ ### HTTP request headers
167
+
168
+ - **Content-Type**: `application/json`
169
+ - **Accept**: `application/json`
170
+
171
+
172
+ ### HTTP response details
173
+ | Status code | Description | Response headers |
174
+ |-------------|-------------|------------------|
175
+ | **400** | Invalid input | - |
176
+ | **200** | API Data | - |
177
+
178
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
179
+
180
+
181
+ ## v2SedsFacetFacetIdGet
182
+
183
+ > FacetDetailsContainer v2SedsFacetFacetIdGet(facetId)
184
+
185
+
186
+
187
+ ### Example
188
+
189
+ ```ts
190
+ import {
191
+ Configuration,
192
+ SEDSApi,
193
+ } from '';
194
+ import type { V2SedsFacetFacetIdGetRequest } from '';
195
+
196
+ async function example() {
197
+ console.log("🚀 Testing SDK...");
198
+ const config = new Configuration({
199
+ // To configure API key authorization: api_key
200
+ apiKey: "YOUR API KEY",
201
+ });
202
+ const api = new SEDSApi(config);
203
+
204
+ const body = {
205
+ // string |
206
+ facetId: facetId_example,
207
+ } satisfies V2SedsFacetFacetIdGetRequest;
208
+
209
+ try {
210
+ const data = await api.v2SedsFacetFacetIdGet(body);
211
+ console.log(data);
212
+ } catch (error) {
213
+ console.error(error);
214
+ }
215
+ }
216
+
217
+ // Run the test
218
+ example().catch(console.error);
219
+ ```
220
+
221
+ ### Parameters
222
+
223
+
224
+ | Name | Type | Description | Notes |
225
+ |------------- | ------------- | ------------- | -------------|
226
+ | **facetId** | `string` | | [Defaults to `undefined`] |
227
+
228
+ ### Return type
229
+
230
+ [**FacetDetailsContainer**](FacetDetailsContainer.md)
231
+
232
+ ### Authorization
233
+
234
+ [api_key](../README.md#api_key)
235
+
236
+ ### HTTP request headers
237
+
238
+ - **Content-Type**: Not defined
239
+ - **Accept**: `application/json`
240
+
241
+
242
+ ### HTTP response details
243
+ | Status code | Description | Response headers |
244
+ |-------------|-------------|------------------|
245
+ | **400** | Invalid input | - |
246
+ | **200** | Facet details | - |
247
+
248
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
249
+
250
+
251
+ ## v2SedsFacetGet
252
+
253
+ > FacetOptionListContainer v2SedsFacetGet()
254
+
255
+
256
+
257
+ ### Example
258
+
259
+ ```ts
260
+ import {
261
+ Configuration,
262
+ SEDSApi,
263
+ } from '';
264
+ import type { V2SedsFacetGetRequest } from '';
265
+
266
+ async function example() {
267
+ console.log("🚀 Testing SDK...");
268
+ const config = new Configuration({
269
+ // To configure API key authorization: api_key
270
+ apiKey: "YOUR API KEY",
271
+ });
272
+ const api = new SEDSApi(config);
273
+
274
+ try {
275
+ const data = await api.v2SedsFacetGet();
276
+ console.log(data);
277
+ } catch (error) {
278
+ console.error(error);
279
+ }
280
+ }
281
+
282
+ // Run the test
283
+ example().catch(console.error);
284
+ ```
285
+
286
+ ### Parameters
287
+
288
+ This endpoint does not need any parameter.
289
+
290
+ ### Return type
291
+
292
+ [**FacetOptionListContainer**](FacetOptionListContainer.md)
293
+
294
+ ### Authorization
295
+
296
+ [api_key](../README.md#api_key)
297
+
298
+ ### HTTP request headers
299
+
300
+ - **Content-Type**: Not defined
301
+ - **Accept**: `application/json`
302
+
303
+
304
+ ### HTTP response details
305
+ | Status code | Description | Response headers |
306
+ |-------------|-------------|------------------|
307
+ | **400** | Invalid input | - |
308
+ | **200** | List of facet options | - |
309
+
310
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
311
+
312
+
313
+ ## v2SedsGet
314
+
315
+ > FinalRouteResponseContainer v2SedsGet()
316
+
317
+
318
+
319
+ ### Example
320
+
321
+ ```ts
322
+ import {
323
+ Configuration,
324
+ SEDSApi,
325
+ } from '';
326
+ import type { V2SedsGetRequest } from '';
327
+
328
+ async function example() {
329
+ console.log("🚀 Testing SDK...");
330
+ const config = new Configuration({
331
+ // To configure API key authorization: api_key
332
+ apiKey: "YOUR API KEY",
333
+ });
334
+ const api = new SEDSApi(config);
335
+
336
+ try {
337
+ const data = await api.v2SedsGet();
338
+ console.log(data);
339
+ } catch (error) {
340
+ console.error(error);
341
+ }
342
+ }
343
+
344
+ // Run the test
345
+ example().catch(console.error);
346
+ ```
347
+
348
+ ### Parameters
349
+
350
+ This endpoint does not need any parameter.
351
+
352
+ ### Return type
353
+
354
+ [**FinalRouteResponseContainer**](FinalRouteResponseContainer.md)
355
+
356
+ ### Authorization
357
+
358
+ [api_key](../README.md#api_key)
359
+
360
+ ### HTTP request headers
361
+
362
+ - **Content-Type**: Not defined
363
+ - **Accept**: `application/json`
364
+
365
+
366
+ ### HTTP response details
367
+ | Status code | Description | Response headers |
368
+ |-------------|-------------|------------------|
369
+ | **200** | List of API data sets | - |
370
+
371
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
372
+