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.
- package/.openapi-generator/FILES +73 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/apis/AEOApi.ts +415 -0
- package/apis/COALApi.ts +3645 -0
- package/apis/CRUDIMPORTSApi.ts +322 -0
- package/apis/DBFApi.ts +2260 -0
- package/apis/ELECApi.ts +1180 -0
- package/apis/EMISSApi.ts +640 -0
- package/apis/IEOApi.ts +415 -0
- package/apis/INTLApi.ts +322 -0
- package/apis/NGApi.ts +511 -0
- package/apis/NUCSTATUSApi.ts +910 -0
- package/apis/RTOApi.ts +2260 -0
- package/apis/RootApi.ts +66 -0
- package/apis/SEDSApi.ts +322 -0
- package/apis/SEPApi.ts +1990 -0
- package/apis/STEOApi.ts +322 -0
- package/apis/TOTALApi.ts +322 -0
- package/apis/index.ts +18 -0
- package/docs/AEOApi.md +456 -0
- package/docs/COALApi.md +4847 -0
- package/docs/CRUDIMPORTSApi.md +371 -0
- package/docs/DBFApi.md +2976 -0
- package/docs/DataParams.md +48 -0
- package/docs/DataResponse.md +42 -0
- package/docs/DataResponseContainer.md +38 -0
- package/docs/ELECApi.md +1524 -0
- package/docs/EMISSApi.md +798 -0
- package/docs/Facet.md +38 -0
- package/docs/FacetDetails.md +36 -0
- package/docs/FacetDetailsContainer.md +38 -0
- package/docs/FacetMetaData.md +36 -0
- package/docs/FacetOptionList.md +36 -0
- package/docs/FacetOptionListContainer.md +38 -0
- package/docs/FinalRoute.md +52 -0
- package/docs/FinalRouteResponse.md +36 -0
- package/docs/FinalRouteResponseContainer.md +38 -0
- package/docs/Frequency.md +40 -0
- package/docs/IEOApi.md +456 -0
- package/docs/INTLApi.md +371 -0
- package/docs/NGApi.md +541 -0
- package/docs/NUCSTATUSApi.md +1161 -0
- package/docs/RTOApi.md +2976 -0
- package/docs/RootApi.md +70 -0
- package/docs/RouteRequest.md +36 -0
- package/docs/RouteResponse.md +36 -0
- package/docs/RouteResponseContainer.md +38 -0
- package/docs/Routes.md +40 -0
- package/docs/SEDSApi.md +372 -0
- package/docs/SEPApi.md +2613 -0
- package/docs/STEOApi.md +371 -0
- package/docs/Sort.md +36 -0
- package/docs/TOTALApi.md +371 -0
- package/index.ts +5 -0
- package/models/DataParams.ts +129 -0
- package/models/DataResponse.ts +97 -0
- package/models/DataResponseContainer.ts +96 -0
- package/models/Facet.ts +81 -0
- package/models/FacetDetails.ts +81 -0
- package/models/FacetDetailsContainer.ts +96 -0
- package/models/FacetMetaData.ts +73 -0
- package/models/FacetOptionList.ts +73 -0
- package/models/FacetOptionListContainer.ts +96 -0
- package/models/FinalRoute.ts +152 -0
- package/models/FinalRouteResponse.ts +88 -0
- package/models/FinalRouteResponseContainer.ts +96 -0
- package/models/Frequency.ts +89 -0
- package/models/RouteRequest.ts +73 -0
- package/models/RouteResponse.ts +88 -0
- package/models/RouteResponseContainer.ts +96 -0
- package/models/Routes.ts +89 -0
- package/models/Sort.ts +73 -0
- package/models/index.ts +20 -0
- package/package.json +15 -0
- package/runtime.ts +449 -0
package/docs/INTLApi.md
ADDED
|
@@ -0,0 +1,371 @@
|
|
|
1
|
+
# INTLApi
|
|
2
|
+
|
|
3
|
+
All URIs are relative to *https://api.eia.gov*
|
|
4
|
+
|
|
5
|
+
| Method | HTTP request | Description |
|
|
6
|
+
|------------- | ------------- | -------------|
|
|
7
|
+
| [**v2InternationalDataGet**](INTLApi.md#v2internationaldataget) | **GET** /v2/international/data | |
|
|
8
|
+
| [**v2InternationalDataPost**](INTLApi.md#v2internationaldatapost) | **POST** /v2/international/data | Return international Data |
|
|
9
|
+
| [**v2InternationalFacetFacetIdGet**](INTLApi.md#v2internationalfacetfacetidget) | **GET** /v2/international/facet/{facet_id} | |
|
|
10
|
+
| [**v2InternationalFacetGet**](INTLApi.md#v2internationalfacetget) | **GET** /v2/international/facet | |
|
|
11
|
+
| [**v2InternationalGet**](INTLApi.md#v2internationalget) | **GET** /v2/international | |
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
## v2InternationalDataGet
|
|
16
|
+
|
|
17
|
+
> DataResponseContainer v2InternationalDataGet(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
|
+
INTLApi,
|
|
29
|
+
} from '';
|
|
30
|
+
import type { V2InternationalDataGetRequest } 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 INTLApi(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 V2InternationalDataGetRequest;
|
|
58
|
+
|
|
59
|
+
try {
|
|
60
|
+
const data = await api.v2InternationalDataGet(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
|
+
## v2InternationalDataPost
|
|
109
|
+
|
|
110
|
+
> DataResponseContainer v2InternationalDataPost(dataParams)
|
|
111
|
+
|
|
112
|
+
Return international Data
|
|
113
|
+
|
|
114
|
+
Class InternationalController International data set top-level controller.
|
|
115
|
+
|
|
116
|
+
### Example
|
|
117
|
+
|
|
118
|
+
```ts
|
|
119
|
+
import {
|
|
120
|
+
Configuration,
|
|
121
|
+
INTLApi,
|
|
122
|
+
} from '';
|
|
123
|
+
import type { V2InternationalDataPostRequest } 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 INTLApi(config);
|
|
132
|
+
|
|
133
|
+
const body = {
|
|
134
|
+
// DataParams | Parameters for data call
|
|
135
|
+
dataParams: ...,
|
|
136
|
+
} satisfies V2InternationalDataPostRequest;
|
|
137
|
+
|
|
138
|
+
try {
|
|
139
|
+
const data = await api.v2InternationalDataPost(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
|
+
## v2InternationalFacetFacetIdGet
|
|
181
|
+
|
|
182
|
+
> FacetDetailsContainer v2InternationalFacetFacetIdGet(facetId)
|
|
183
|
+
|
|
184
|
+
|
|
185
|
+
|
|
186
|
+
### Example
|
|
187
|
+
|
|
188
|
+
```ts
|
|
189
|
+
import {
|
|
190
|
+
Configuration,
|
|
191
|
+
INTLApi,
|
|
192
|
+
} from '';
|
|
193
|
+
import type { V2InternationalFacetFacetIdGetRequest } 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 INTLApi(config);
|
|
202
|
+
|
|
203
|
+
const body = {
|
|
204
|
+
// string | Facet ID
|
|
205
|
+
facetId: facetId_example,
|
|
206
|
+
} satisfies V2InternationalFacetFacetIdGetRequest;
|
|
207
|
+
|
|
208
|
+
try {
|
|
209
|
+
const data = await api.v2InternationalFacetFacetIdGet(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` | Facet ID | [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
|
+
## v2InternationalFacetGet
|
|
251
|
+
|
|
252
|
+
> FacetOptionListContainer v2InternationalFacetGet()
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
### Example
|
|
257
|
+
|
|
258
|
+
```ts
|
|
259
|
+
import {
|
|
260
|
+
Configuration,
|
|
261
|
+
INTLApi,
|
|
262
|
+
} from '';
|
|
263
|
+
import type { V2InternationalFacetGetRequest } 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 INTLApi(config);
|
|
272
|
+
|
|
273
|
+
try {
|
|
274
|
+
const data = await api.v2InternationalFacetGet();
|
|
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
|
+
## v2InternationalGet
|
|
313
|
+
|
|
314
|
+
> FinalRouteResponseContainer v2InternationalGet()
|
|
315
|
+
|
|
316
|
+
|
|
317
|
+
|
|
318
|
+
### Example
|
|
319
|
+
|
|
320
|
+
```ts
|
|
321
|
+
import {
|
|
322
|
+
Configuration,
|
|
323
|
+
INTLApi,
|
|
324
|
+
} from '';
|
|
325
|
+
import type { V2InternationalGetRequest } 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 INTLApi(config);
|
|
334
|
+
|
|
335
|
+
try {
|
|
336
|
+
const data = await api.v2InternationalGet();
|
|
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
|
+
|