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,88 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EIA APIv2
5
+ * Swagger UI interface for EIA\'s APIv2. You can also explore EIA\'s API using the [Opendata Query Browser](https://www.eia.gov/opendata/browser/). For this UI, you must use your EIA `api key` to apply filters and return data. You can register for an API Key at [https://www.eia.gov/opendata/](https://www.eia.gov/opendata/)
6
+ *
7
+ * The version of the OpenAPI document: 2.1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { FinalRoute } from './FinalRoute';
17
+ import {
18
+ FinalRouteFromJSON,
19
+ FinalRouteFromJSONTyped,
20
+ FinalRouteToJSON,
21
+ FinalRouteToJSONTyped,
22
+ } from './FinalRoute';
23
+ import type { RouteRequest } from './RouteRequest';
24
+ import {
25
+ RouteRequestFromJSON,
26
+ RouteRequestFromJSONTyped,
27
+ RouteRequestToJSON,
28
+ RouteRequestToJSONTyped,
29
+ } from './RouteRequest';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface FinalRouteResponse
35
+ */
36
+ export interface FinalRouteResponse {
37
+ /**
38
+ *
39
+ * @type {FinalRoute}
40
+ * @memberof FinalRouteResponse
41
+ */
42
+ response?: FinalRoute;
43
+ /**
44
+ *
45
+ * @type {RouteRequest}
46
+ * @memberof FinalRouteResponse
47
+ */
48
+ request?: RouteRequest;
49
+ }
50
+
51
+ /**
52
+ * Check if a given object implements the FinalRouteResponse interface.
53
+ */
54
+ export function instanceOfFinalRouteResponse(value: object): value is FinalRouteResponse {
55
+ return true;
56
+ }
57
+
58
+ export function FinalRouteResponseFromJSON(json: any): FinalRouteResponse {
59
+ return FinalRouteResponseFromJSONTyped(json, false);
60
+ }
61
+
62
+ export function FinalRouteResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): FinalRouteResponse {
63
+ if (json == null) {
64
+ return json;
65
+ }
66
+ return {
67
+
68
+ 'response': json['response'] == null ? undefined : FinalRouteFromJSON(json['response']),
69
+ 'request': json['request'] == null ? undefined : RouteRequestFromJSON(json['request']),
70
+ };
71
+ }
72
+
73
+ export function FinalRouteResponseToJSON(json: any): FinalRouteResponse {
74
+ return FinalRouteResponseToJSONTyped(json, false);
75
+ }
76
+
77
+ export function FinalRouteResponseToJSONTyped(value?: FinalRouteResponse | null, ignoreDiscriminator: boolean = false): any {
78
+ if (value == null) {
79
+ return value;
80
+ }
81
+
82
+ return {
83
+
84
+ 'response': FinalRouteToJSON(value['response']),
85
+ 'request': RouteRequestToJSON(value['request']),
86
+ };
87
+ }
88
+
@@ -0,0 +1,96 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EIA APIv2
5
+ * Swagger UI interface for EIA\'s APIv2. You can also explore EIA\'s API using the [Opendata Query Browser](https://www.eia.gov/opendata/browser/). For this UI, you must use your EIA `api key` to apply filters and return data. You can register for an API Key at [https://www.eia.gov/opendata/](https://www.eia.gov/opendata/)
6
+ *
7
+ * The version of the OpenAPI document: 2.1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { RouteRequest } from './RouteRequest';
17
+ import {
18
+ RouteRequestFromJSON,
19
+ RouteRequestFromJSONTyped,
20
+ RouteRequestToJSON,
21
+ RouteRequestToJSONTyped,
22
+ } from './RouteRequest';
23
+ import type { FinalRouteResponse } from './FinalRouteResponse';
24
+ import {
25
+ FinalRouteResponseFromJSON,
26
+ FinalRouteResponseFromJSONTyped,
27
+ FinalRouteResponseToJSON,
28
+ FinalRouteResponseToJSONTyped,
29
+ } from './FinalRouteResponse';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface FinalRouteResponseContainer
35
+ */
36
+ export interface FinalRouteResponseContainer {
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof FinalRouteResponseContainer
41
+ */
42
+ apiVersion?: string;
43
+ /**
44
+ *
45
+ * @type {RouteRequest}
46
+ * @memberof FinalRouteResponseContainer
47
+ */
48
+ request?: RouteRequest;
49
+ /**
50
+ *
51
+ * @type {FinalRouteResponse}
52
+ * @memberof FinalRouteResponseContainer
53
+ */
54
+ response?: FinalRouteResponse;
55
+ }
56
+
57
+ /**
58
+ * Check if a given object implements the FinalRouteResponseContainer interface.
59
+ */
60
+ export function instanceOfFinalRouteResponseContainer(value: object): value is FinalRouteResponseContainer {
61
+ return true;
62
+ }
63
+
64
+ export function FinalRouteResponseContainerFromJSON(json: any): FinalRouteResponseContainer {
65
+ return FinalRouteResponseContainerFromJSONTyped(json, false);
66
+ }
67
+
68
+ export function FinalRouteResponseContainerFromJSONTyped(json: any, ignoreDiscriminator: boolean): FinalRouteResponseContainer {
69
+ if (json == null) {
70
+ return json;
71
+ }
72
+ return {
73
+
74
+ 'apiVersion': json['apiVersion'] == null ? undefined : json['apiVersion'],
75
+ 'request': json['request'] == null ? undefined : RouteRequestFromJSON(json['request']),
76
+ 'response': json['response'] == null ? undefined : FinalRouteResponseFromJSON(json['response']),
77
+ };
78
+ }
79
+
80
+ export function FinalRouteResponseContainerToJSON(json: any): FinalRouteResponseContainer {
81
+ return FinalRouteResponseContainerToJSONTyped(json, false);
82
+ }
83
+
84
+ export function FinalRouteResponseContainerToJSONTyped(value?: FinalRouteResponseContainer | null, ignoreDiscriminator: boolean = false): any {
85
+ if (value == null) {
86
+ return value;
87
+ }
88
+
89
+ return {
90
+
91
+ 'apiVersion': value['apiVersion'],
92
+ 'request': RouteRequestToJSON(value['request']),
93
+ 'response': FinalRouteResponseToJSON(value['response']),
94
+ };
95
+ }
96
+
@@ -0,0 +1,89 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EIA APIv2
5
+ * Swagger UI interface for EIA\'s APIv2. You can also explore EIA\'s API using the [Opendata Query Browser](https://www.eia.gov/opendata/browser/). For this UI, you must use your EIA `api key` to apply filters and return data. You can register for an API Key at [https://www.eia.gov/opendata/](https://www.eia.gov/opendata/)
6
+ *
7
+ * The version of the OpenAPI document: 2.1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface Frequency
20
+ */
21
+ export interface Frequency {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof Frequency
26
+ */
27
+ id?: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof Frequency
32
+ */
33
+ description?: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof Frequency
38
+ */
39
+ format?: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof Frequency
44
+ */
45
+ query?: string;
46
+ }
47
+
48
+ /**
49
+ * Check if a given object implements the Frequency interface.
50
+ */
51
+ export function instanceOfFrequency(value: object): value is Frequency {
52
+ return true;
53
+ }
54
+
55
+ export function FrequencyFromJSON(json: any): Frequency {
56
+ return FrequencyFromJSONTyped(json, false);
57
+ }
58
+
59
+ export function FrequencyFromJSONTyped(json: any, ignoreDiscriminator: boolean): Frequency {
60
+ if (json == null) {
61
+ return json;
62
+ }
63
+ return {
64
+
65
+ 'id': json['id'] == null ? undefined : json['id'],
66
+ 'description': json['description'] == null ? undefined : json['description'],
67
+ 'format': json['format'] == null ? undefined : json['format'],
68
+ 'query': json['query'] == null ? undefined : json['query'],
69
+ };
70
+ }
71
+
72
+ export function FrequencyToJSON(json: any): Frequency {
73
+ return FrequencyToJSONTyped(json, false);
74
+ }
75
+
76
+ export function FrequencyToJSONTyped(value?: Frequency | null, ignoreDiscriminator: boolean = false): any {
77
+ if (value == null) {
78
+ return value;
79
+ }
80
+
81
+ return {
82
+
83
+ 'id': value['id'],
84
+ 'description': value['description'],
85
+ 'format': value['format'],
86
+ 'query': value['query'],
87
+ };
88
+ }
89
+
@@ -0,0 +1,73 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EIA APIv2
5
+ * Swagger UI interface for EIA\'s APIv2. You can also explore EIA\'s API using the [Opendata Query Browser](https://www.eia.gov/opendata/browser/). For this UI, you must use your EIA `api key` to apply filters and return data. You can register for an API Key at [https://www.eia.gov/opendata/](https://www.eia.gov/opendata/)
6
+ *
7
+ * The version of the OpenAPI document: 2.1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface RouteRequest
20
+ */
21
+ export interface RouteRequest {
22
+ /**
23
+ *
24
+ * @type {Array<string>}
25
+ * @memberof RouteRequest
26
+ */
27
+ command?: Array<string>;
28
+ /**
29
+ *
30
+ * @type {any}
31
+ * @memberof RouteRequest
32
+ */
33
+ params?: any | null;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the RouteRequest interface.
38
+ */
39
+ export function instanceOfRouteRequest(value: object): value is RouteRequest {
40
+ return true;
41
+ }
42
+
43
+ export function RouteRequestFromJSON(json: any): RouteRequest {
44
+ return RouteRequestFromJSONTyped(json, false);
45
+ }
46
+
47
+ export function RouteRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): RouteRequest {
48
+ if (json == null) {
49
+ return json;
50
+ }
51
+ return {
52
+
53
+ 'command': json['command'] == null ? undefined : json['command'],
54
+ 'params': json['params'] == null ? undefined : json['params'],
55
+ };
56
+ }
57
+
58
+ export function RouteRequestToJSON(json: any): RouteRequest {
59
+ return RouteRequestToJSONTyped(json, false);
60
+ }
61
+
62
+ export function RouteRequestToJSONTyped(value?: RouteRequest | null, ignoreDiscriminator: boolean = false): any {
63
+ if (value == null) {
64
+ return value;
65
+ }
66
+
67
+ return {
68
+
69
+ 'command': value['command'],
70
+ 'params': value['params'],
71
+ };
72
+ }
73
+
@@ -0,0 +1,88 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EIA APIv2
5
+ * Swagger UI interface for EIA\'s APIv2. You can also explore EIA\'s API using the [Opendata Query Browser](https://www.eia.gov/opendata/browser/). For this UI, you must use your EIA `api key` to apply filters and return data. You can register for an API Key at [https://www.eia.gov/opendata/](https://www.eia.gov/opendata/)
6
+ *
7
+ * The version of the OpenAPI document: 2.1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { RouteRequest } from './RouteRequest';
17
+ import {
18
+ RouteRequestFromJSON,
19
+ RouteRequestFromJSONTyped,
20
+ RouteRequestToJSON,
21
+ RouteRequestToJSONTyped,
22
+ } from './RouteRequest';
23
+ import type { Routes } from './Routes';
24
+ import {
25
+ RoutesFromJSON,
26
+ RoutesFromJSONTyped,
27
+ RoutesToJSON,
28
+ RoutesToJSONTyped,
29
+ } from './Routes';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface RouteResponse
35
+ */
36
+ export interface RouteResponse {
37
+ /**
38
+ *
39
+ * @type {Routes}
40
+ * @memberof RouteResponse
41
+ */
42
+ response?: Routes;
43
+ /**
44
+ *
45
+ * @type {RouteRequest}
46
+ * @memberof RouteResponse
47
+ */
48
+ request?: RouteRequest;
49
+ }
50
+
51
+ /**
52
+ * Check if a given object implements the RouteResponse interface.
53
+ */
54
+ export function instanceOfRouteResponse(value: object): value is RouteResponse {
55
+ return true;
56
+ }
57
+
58
+ export function RouteResponseFromJSON(json: any): RouteResponse {
59
+ return RouteResponseFromJSONTyped(json, false);
60
+ }
61
+
62
+ export function RouteResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): RouteResponse {
63
+ if (json == null) {
64
+ return json;
65
+ }
66
+ return {
67
+
68
+ 'response': json['response'] == null ? undefined : RoutesFromJSON(json['response']),
69
+ 'request': json['request'] == null ? undefined : RouteRequestFromJSON(json['request']),
70
+ };
71
+ }
72
+
73
+ export function RouteResponseToJSON(json: any): RouteResponse {
74
+ return RouteResponseToJSONTyped(json, false);
75
+ }
76
+
77
+ export function RouteResponseToJSONTyped(value?: RouteResponse | null, ignoreDiscriminator: boolean = false): any {
78
+ if (value == null) {
79
+ return value;
80
+ }
81
+
82
+ return {
83
+
84
+ 'response': RoutesToJSON(value['response']),
85
+ 'request': RouteRequestToJSON(value['request']),
86
+ };
87
+ }
88
+
@@ -0,0 +1,96 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EIA APIv2
5
+ * Swagger UI interface for EIA\'s APIv2. You can also explore EIA\'s API using the [Opendata Query Browser](https://www.eia.gov/opendata/browser/). For this UI, you must use your EIA `api key` to apply filters and return data. You can register for an API Key at [https://www.eia.gov/opendata/](https://www.eia.gov/opendata/)
6
+ *
7
+ * The version of the OpenAPI document: 2.1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { RouteRequest } from './RouteRequest';
17
+ import {
18
+ RouteRequestFromJSON,
19
+ RouteRequestFromJSONTyped,
20
+ RouteRequestToJSON,
21
+ RouteRequestToJSONTyped,
22
+ } from './RouteRequest';
23
+ import type { RouteResponse } from './RouteResponse';
24
+ import {
25
+ RouteResponseFromJSON,
26
+ RouteResponseFromJSONTyped,
27
+ RouteResponseToJSON,
28
+ RouteResponseToJSONTyped,
29
+ } from './RouteResponse';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface RouteResponseContainer
35
+ */
36
+ export interface RouteResponseContainer {
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof RouteResponseContainer
41
+ */
42
+ apiVersion?: string;
43
+ /**
44
+ *
45
+ * @type {RouteRequest}
46
+ * @memberof RouteResponseContainer
47
+ */
48
+ request?: RouteRequest;
49
+ /**
50
+ *
51
+ * @type {RouteResponse}
52
+ * @memberof RouteResponseContainer
53
+ */
54
+ response?: RouteResponse;
55
+ }
56
+
57
+ /**
58
+ * Check if a given object implements the RouteResponseContainer interface.
59
+ */
60
+ export function instanceOfRouteResponseContainer(value: object): value is RouteResponseContainer {
61
+ return true;
62
+ }
63
+
64
+ export function RouteResponseContainerFromJSON(json: any): RouteResponseContainer {
65
+ return RouteResponseContainerFromJSONTyped(json, false);
66
+ }
67
+
68
+ export function RouteResponseContainerFromJSONTyped(json: any, ignoreDiscriminator: boolean): RouteResponseContainer {
69
+ if (json == null) {
70
+ return json;
71
+ }
72
+ return {
73
+
74
+ 'apiVersion': json['apiVersion'] == null ? undefined : json['apiVersion'],
75
+ 'request': json['request'] == null ? undefined : RouteRequestFromJSON(json['request']),
76
+ 'response': json['response'] == null ? undefined : RouteResponseFromJSON(json['response']),
77
+ };
78
+ }
79
+
80
+ export function RouteResponseContainerToJSON(json: any): RouteResponseContainer {
81
+ return RouteResponseContainerToJSONTyped(json, false);
82
+ }
83
+
84
+ export function RouteResponseContainerToJSONTyped(value?: RouteResponseContainer | null, ignoreDiscriminator: boolean = false): any {
85
+ if (value == null) {
86
+ return value;
87
+ }
88
+
89
+ return {
90
+
91
+ 'apiVersion': value['apiVersion'],
92
+ 'request': RouteRequestToJSON(value['request']),
93
+ 'response': RouteResponseToJSON(value['response']),
94
+ };
95
+ }
96
+
@@ -0,0 +1,89 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EIA APIv2
5
+ * Swagger UI interface for EIA\'s APIv2. You can also explore EIA\'s API using the [Opendata Query Browser](https://www.eia.gov/opendata/browser/). For this UI, you must use your EIA `api key` to apply filters and return data. You can register for an API Key at [https://www.eia.gov/opendata/](https://www.eia.gov/opendata/)
6
+ *
7
+ * The version of the OpenAPI document: 2.1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface Routes
20
+ */
21
+ export interface Routes {
22
+ /**
23
+ *
24
+ * @type {Array<string>}
25
+ * @memberof Routes
26
+ */
27
+ routes?: Array<string>;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof Routes
32
+ */
33
+ id?: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof Routes
38
+ */
39
+ name?: string;
40
+ /**
41
+ *
42
+ * @type {string}
43
+ * @memberof Routes
44
+ */
45
+ description?: string;
46
+ }
47
+
48
+ /**
49
+ * Check if a given object implements the Routes interface.
50
+ */
51
+ export function instanceOfRoutes(value: object): value is Routes {
52
+ return true;
53
+ }
54
+
55
+ export function RoutesFromJSON(json: any): Routes {
56
+ return RoutesFromJSONTyped(json, false);
57
+ }
58
+
59
+ export function RoutesFromJSONTyped(json: any, ignoreDiscriminator: boolean): Routes {
60
+ if (json == null) {
61
+ return json;
62
+ }
63
+ return {
64
+
65
+ 'routes': json['routes'] == null ? undefined : json['routes'],
66
+ 'id': json['id'] == null ? undefined : json['id'],
67
+ 'name': json['name'] == null ? undefined : json['name'],
68
+ 'description': json['description'] == null ? undefined : json['description'],
69
+ };
70
+ }
71
+
72
+ export function RoutesToJSON(json: any): Routes {
73
+ return RoutesToJSONTyped(json, false);
74
+ }
75
+
76
+ export function RoutesToJSONTyped(value?: Routes | null, ignoreDiscriminator: boolean = false): any {
77
+ if (value == null) {
78
+ return value;
79
+ }
80
+
81
+ return {
82
+
83
+ 'routes': value['routes'],
84
+ 'id': value['id'],
85
+ 'name': value['name'],
86
+ 'description': value['description'],
87
+ };
88
+ }
89
+
package/models/Sort.ts ADDED
@@ -0,0 +1,73 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * EIA APIv2
5
+ * Swagger UI interface for EIA\'s APIv2. You can also explore EIA\'s API using the [Opendata Query Browser](https://www.eia.gov/opendata/browser/). For this UI, you must use your EIA `api key` to apply filters and return data. You can register for an API Key at [https://www.eia.gov/opendata/](https://www.eia.gov/opendata/)
6
+ *
7
+ * The version of the OpenAPI document: 2.1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface Sort
20
+ */
21
+ export interface Sort {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof Sort
26
+ */
27
+ column?: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof Sort
32
+ */
33
+ direction?: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the Sort interface.
38
+ */
39
+ export function instanceOfSort(value: object): value is Sort {
40
+ return true;
41
+ }
42
+
43
+ export function SortFromJSON(json: any): Sort {
44
+ return SortFromJSONTyped(json, false);
45
+ }
46
+
47
+ export function SortFromJSONTyped(json: any, ignoreDiscriminator: boolean): Sort {
48
+ if (json == null) {
49
+ return json;
50
+ }
51
+ return {
52
+
53
+ 'column': json['column'] == null ? undefined : json['column'],
54
+ 'direction': json['direction'] == null ? undefined : json['direction'],
55
+ };
56
+ }
57
+
58
+ export function SortToJSON(json: any): Sort {
59
+ return SortToJSONTyped(json, false);
60
+ }
61
+
62
+ export function SortToJSONTyped(value?: Sort | null, ignoreDiscriminator: boolean = false): any {
63
+ if (value == null) {
64
+ return value;
65
+ }
66
+
67
+ return {
68
+
69
+ 'column': value['column'],
70
+ 'direction': value['direction'],
71
+ };
72
+ }
73
+