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,371 @@
1
+ # STEOApi
2
+
3
+ All URIs are relative to *https://api.eia.gov*
4
+
5
+ | Method | HTTP request | Description |
6
+ |------------- | ------------- | -------------|
7
+ | [**v2SteoDataGet**](STEOApi.md#v2steodataget) | **GET** /v2/steo/data | |
8
+ | [**v2SteoDataPost**](STEOApi.md#v2steodatapost) | **POST** /v2/steo/data | Class STEOController |
9
+ | [**v2SteoFacetFacetIdGet**](STEOApi.md#v2steofacetfacetidget) | **GET** /v2/steo/facet/{facet_id} | |
10
+ | [**v2SteoFacetGet**](STEOApi.md#v2steofacetget) | **GET** /v2/steo/facet | |
11
+ | [**v2SteoGet**](STEOApi.md#v2steoget) | **GET** /v2/steo | |
12
+
13
+
14
+
15
+ ## v2SteoDataGet
16
+
17
+ > DataResponseContainer v2SteoDataGet(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
+ STEOApi,
29
+ } from '';
30
+ import type { V2SteoDataGetRequest } 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 STEOApi(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 V2SteoDataGetRequest;
58
+
59
+ try {
60
+ const data = await api.v2SteoDataGet(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
+ | **200** | API Data | - |
104
+
105
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
106
+
107
+
108
+ ## v2SteoDataPost
109
+
110
+ > DataResponseContainer v2SteoDataPost(dataParams)
111
+
112
+ Class STEOController
113
+
114
+ STEO data set top-level controller.
115
+
116
+ ### Example
117
+
118
+ ```ts
119
+ import {
120
+ Configuration,
121
+ STEOApi,
122
+ } from '';
123
+ import type { V2SteoDataPostRequest } from '';
124
+
125
+ async function example() {
126
+ console.log("🚀 Testing SDK...");
127
+ const config = new Configuration({
128
+ // To configure API key authorization: api_key
129
+ apiKey: "YOUR API KEY",
130
+ });
131
+ const api = new STEOApi(config);
132
+
133
+ const body = {
134
+ // DataParams | Parameters for data call
135
+ dataParams: ...,
136
+ } satisfies V2SteoDataPostRequest;
137
+
138
+ try {
139
+ const data = await api.v2SteoDataPost(body);
140
+ console.log(data);
141
+ } catch (error) {
142
+ console.error(error);
143
+ }
144
+ }
145
+
146
+ // Run the test
147
+ example().catch(console.error);
148
+ ```
149
+
150
+ ### Parameters
151
+
152
+
153
+ | Name | Type | Description | Notes |
154
+ |------------- | ------------- | ------------- | -------------|
155
+ | **dataParams** | [DataParams](DataParams.md) | Parameters for data call | |
156
+
157
+ ### Return type
158
+
159
+ [**DataResponseContainer**](DataResponseContainer.md)
160
+
161
+ ### Authorization
162
+
163
+ [api_key](../README.md#api_key)
164
+
165
+ ### HTTP request headers
166
+
167
+ - **Content-Type**: `application/json`
168
+ - **Accept**: `application/json`
169
+
170
+
171
+ ### HTTP response details
172
+ | Status code | Description | Response headers |
173
+ |-------------|-------------|------------------|
174
+ | **400** | Invalid input | - |
175
+ | **200** | API Data | - |
176
+
177
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
178
+
179
+
180
+ ## v2SteoFacetFacetIdGet
181
+
182
+ > FacetDetailsContainer v2SteoFacetFacetIdGet(facetId)
183
+
184
+
185
+
186
+ ### Example
187
+
188
+ ```ts
189
+ import {
190
+ Configuration,
191
+ STEOApi,
192
+ } from '';
193
+ import type { V2SteoFacetFacetIdGetRequest } from '';
194
+
195
+ async function example() {
196
+ console.log("🚀 Testing SDK...");
197
+ const config = new Configuration({
198
+ // To configure API key authorization: api_key
199
+ apiKey: "YOUR API KEY",
200
+ });
201
+ const api = new STEOApi(config);
202
+
203
+ const body = {
204
+ // string |
205
+ facetId: facetId_example,
206
+ } satisfies V2SteoFacetFacetIdGetRequest;
207
+
208
+ try {
209
+ const data = await api.v2SteoFacetFacetIdGet(body);
210
+ console.log(data);
211
+ } catch (error) {
212
+ console.error(error);
213
+ }
214
+ }
215
+
216
+ // Run the test
217
+ example().catch(console.error);
218
+ ```
219
+
220
+ ### Parameters
221
+
222
+
223
+ | Name | Type | Description | Notes |
224
+ |------------- | ------------- | ------------- | -------------|
225
+ | **facetId** | `string` | | [Defaults to `undefined`] |
226
+
227
+ ### Return type
228
+
229
+ [**FacetDetailsContainer**](FacetDetailsContainer.md)
230
+
231
+ ### Authorization
232
+
233
+ [api_key](../README.md#api_key)
234
+
235
+ ### HTTP request headers
236
+
237
+ - **Content-Type**: Not defined
238
+ - **Accept**: `application/json`
239
+
240
+
241
+ ### HTTP response details
242
+ | Status code | Description | Response headers |
243
+ |-------------|-------------|------------------|
244
+ | **400** | Invalid input | - |
245
+ | **200** | Facet details | - |
246
+
247
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
248
+
249
+
250
+ ## v2SteoFacetGet
251
+
252
+ > FacetOptionListContainer v2SteoFacetGet()
253
+
254
+
255
+
256
+ ### Example
257
+
258
+ ```ts
259
+ import {
260
+ Configuration,
261
+ STEOApi,
262
+ } from '';
263
+ import type { V2SteoFacetGetRequest } from '';
264
+
265
+ async function example() {
266
+ console.log("🚀 Testing SDK...");
267
+ const config = new Configuration({
268
+ // To configure API key authorization: api_key
269
+ apiKey: "YOUR API KEY",
270
+ });
271
+ const api = new STEOApi(config);
272
+
273
+ try {
274
+ const data = await api.v2SteoFacetGet();
275
+ console.log(data);
276
+ } catch (error) {
277
+ console.error(error);
278
+ }
279
+ }
280
+
281
+ // Run the test
282
+ example().catch(console.error);
283
+ ```
284
+
285
+ ### Parameters
286
+
287
+ This endpoint does not need any parameter.
288
+
289
+ ### Return type
290
+
291
+ [**FacetOptionListContainer**](FacetOptionListContainer.md)
292
+
293
+ ### Authorization
294
+
295
+ [api_key](../README.md#api_key)
296
+
297
+ ### HTTP request headers
298
+
299
+ - **Content-Type**: Not defined
300
+ - **Accept**: `application/json`
301
+
302
+
303
+ ### HTTP response details
304
+ | Status code | Description | Response headers |
305
+ |-------------|-------------|------------------|
306
+ | **400** | Invalid input | - |
307
+ | **200** | List of facet options | - |
308
+
309
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
310
+
311
+
312
+ ## v2SteoGet
313
+
314
+ > FinalRouteResponseContainer v2SteoGet()
315
+
316
+
317
+
318
+ ### Example
319
+
320
+ ```ts
321
+ import {
322
+ Configuration,
323
+ STEOApi,
324
+ } from '';
325
+ import type { V2SteoGetRequest } from '';
326
+
327
+ async function example() {
328
+ console.log("🚀 Testing SDK...");
329
+ const config = new Configuration({
330
+ // To configure API key authorization: api_key
331
+ apiKey: "YOUR API KEY",
332
+ });
333
+ const api = new STEOApi(config);
334
+
335
+ try {
336
+ const data = await api.v2SteoGet();
337
+ console.log(data);
338
+ } catch (error) {
339
+ console.error(error);
340
+ }
341
+ }
342
+
343
+ // Run the test
344
+ example().catch(console.error);
345
+ ```
346
+
347
+ ### Parameters
348
+
349
+ This endpoint does not need any parameter.
350
+
351
+ ### Return type
352
+
353
+ [**FinalRouteResponseContainer**](FinalRouteResponseContainer.md)
354
+
355
+ ### Authorization
356
+
357
+ [api_key](../README.md#api_key)
358
+
359
+ ### HTTP request headers
360
+
361
+ - **Content-Type**: Not defined
362
+ - **Accept**: `application/json`
363
+
364
+
365
+ ### HTTP response details
366
+ | Status code | Description | Response headers |
367
+ |-------------|-------------|------------------|
368
+ | **200** | List of API data sets | - |
369
+
370
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
371
+
package/docs/Sort.md ADDED
@@ -0,0 +1,36 @@
1
+
2
+ # Sort
3
+
4
+
5
+ ## Properties
6
+
7
+ Name | Type
8
+ ------------ | -------------
9
+ `column` | string
10
+ `direction` | string
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import type { Sort } from ''
16
+
17
+ // TODO: Update the object below with actual values
18
+ const example = {
19
+ "column": null,
20
+ "direction": null,
21
+ } satisfies Sort
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 Sort
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
+