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,81 @@
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 Facet
20
+ */
21
+ export interface Facet {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof Facet
26
+ */
27
+ id?: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof Facet
32
+ */
33
+ name?: string;
34
+ /**
35
+ *
36
+ * @type {string}
37
+ * @memberof Facet
38
+ */
39
+ alias?: string;
40
+ }
41
+
42
+ /**
43
+ * Check if a given object implements the Facet interface.
44
+ */
45
+ export function instanceOfFacet(value: object): value is Facet {
46
+ return true;
47
+ }
48
+
49
+ export function FacetFromJSON(json: any): Facet {
50
+ return FacetFromJSONTyped(json, false);
51
+ }
52
+
53
+ export function FacetFromJSONTyped(json: any, ignoreDiscriminator: boolean): Facet {
54
+ if (json == null) {
55
+ return json;
56
+ }
57
+ return {
58
+
59
+ 'id': json['id'] == null ? undefined : json['id'],
60
+ 'name': json['name'] == null ? undefined : json['name'],
61
+ 'alias': json['alias'] == null ? undefined : json['alias'],
62
+ };
63
+ }
64
+
65
+ export function FacetToJSON(json: any): Facet {
66
+ return FacetToJSONTyped(json, false);
67
+ }
68
+
69
+ export function FacetToJSONTyped(value?: Facet | null, ignoreDiscriminator: boolean = false): any {
70
+ if (value == null) {
71
+ return value;
72
+ }
73
+
74
+ return {
75
+
76
+ 'id': value['id'],
77
+ 'name': value['name'],
78
+ 'alias': value['alias'],
79
+ };
80
+ }
81
+
@@ -0,0 +1,81 @@
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 { Facet } from './Facet';
17
+ import {
18
+ FacetFromJSON,
19
+ FacetFromJSONTyped,
20
+ FacetToJSON,
21
+ FacetToJSONTyped,
22
+ } from './Facet';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface FacetDetails
28
+ */
29
+ export interface FacetDetails {
30
+ /**
31
+ *
32
+ * @type {number}
33
+ * @memberof FacetDetails
34
+ */
35
+ totalFacets?: number;
36
+ /**
37
+ *
38
+ * @type {Array<Facet>}
39
+ * @memberof FacetDetails
40
+ */
41
+ facets?: Array<Facet>;
42
+ }
43
+
44
+ /**
45
+ * Check if a given object implements the FacetDetails interface.
46
+ */
47
+ export function instanceOfFacetDetails(value: object): value is FacetDetails {
48
+ return true;
49
+ }
50
+
51
+ export function FacetDetailsFromJSON(json: any): FacetDetails {
52
+ return FacetDetailsFromJSONTyped(json, false);
53
+ }
54
+
55
+ export function FacetDetailsFromJSONTyped(json: any, ignoreDiscriminator: boolean): FacetDetails {
56
+ if (json == null) {
57
+ return json;
58
+ }
59
+ return {
60
+
61
+ 'totalFacets': json['totalFacets'] == null ? undefined : json['totalFacets'],
62
+ 'facets': json['facets'] == null ? undefined : ((json['facets'] as Array<any>).map(FacetFromJSON)),
63
+ };
64
+ }
65
+
66
+ export function FacetDetailsToJSON(json: any): FacetDetails {
67
+ return FacetDetailsToJSONTyped(json, false);
68
+ }
69
+
70
+ export function FacetDetailsToJSONTyped(value?: FacetDetails | null, ignoreDiscriminator: boolean = false): any {
71
+ if (value == null) {
72
+ return value;
73
+ }
74
+
75
+ return {
76
+
77
+ 'totalFacets': value['totalFacets'],
78
+ 'facets': value['facets'] == null ? undefined : ((value['facets'] as Array<any>).map(FacetToJSON)),
79
+ };
80
+ }
81
+
@@ -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 { FacetDetails } from './FacetDetails';
17
+ import {
18
+ FacetDetailsFromJSON,
19
+ FacetDetailsFromJSONTyped,
20
+ FacetDetailsToJSON,
21
+ FacetDetailsToJSONTyped,
22
+ } from './FacetDetails';
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 FacetDetailsContainer
35
+ */
36
+ export interface FacetDetailsContainer {
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof FacetDetailsContainer
41
+ */
42
+ apiVersion?: string;
43
+ /**
44
+ *
45
+ * @type {RouteRequest}
46
+ * @memberof FacetDetailsContainer
47
+ */
48
+ request?: RouteRequest;
49
+ /**
50
+ *
51
+ * @type {FacetDetails}
52
+ * @memberof FacetDetailsContainer
53
+ */
54
+ response?: FacetDetails;
55
+ }
56
+
57
+ /**
58
+ * Check if a given object implements the FacetDetailsContainer interface.
59
+ */
60
+ export function instanceOfFacetDetailsContainer(value: object): value is FacetDetailsContainer {
61
+ return true;
62
+ }
63
+
64
+ export function FacetDetailsContainerFromJSON(json: any): FacetDetailsContainer {
65
+ return FacetDetailsContainerFromJSONTyped(json, false);
66
+ }
67
+
68
+ export function FacetDetailsContainerFromJSONTyped(json: any, ignoreDiscriminator: boolean): FacetDetailsContainer {
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 : FacetDetailsFromJSON(json['response']),
77
+ };
78
+ }
79
+
80
+ export function FacetDetailsContainerToJSON(json: any): FacetDetailsContainer {
81
+ return FacetDetailsContainerToJSONTyped(json, false);
82
+ }
83
+
84
+ export function FacetDetailsContainerToJSONTyped(value?: FacetDetailsContainer | 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': FacetDetailsToJSON(value['response']),
94
+ };
95
+ }
96
+
@@ -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 FacetMetaData
20
+ */
21
+ export interface FacetMetaData {
22
+ /**
23
+ *
24
+ * @type {string}
25
+ * @memberof FacetMetaData
26
+ */
27
+ id?: string;
28
+ /**
29
+ *
30
+ * @type {string}
31
+ * @memberof FacetMetaData
32
+ */
33
+ description?: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the FacetMetaData interface.
38
+ */
39
+ export function instanceOfFacetMetaData(value: object): value is FacetMetaData {
40
+ return true;
41
+ }
42
+
43
+ export function FacetMetaDataFromJSON(json: any): FacetMetaData {
44
+ return FacetMetaDataFromJSONTyped(json, false);
45
+ }
46
+
47
+ export function FacetMetaDataFromJSONTyped(json: any, ignoreDiscriminator: boolean): FacetMetaData {
48
+ if (json == null) {
49
+ return json;
50
+ }
51
+ return {
52
+
53
+ 'id': json['id'] == null ? undefined : json['id'],
54
+ 'description': json['description'] == null ? undefined : json['description'],
55
+ };
56
+ }
57
+
58
+ export function FacetMetaDataToJSON(json: any): FacetMetaData {
59
+ return FacetMetaDataToJSONTyped(json, false);
60
+ }
61
+
62
+ export function FacetMetaDataToJSONTyped(value?: FacetMetaData | null, ignoreDiscriminator: boolean = false): any {
63
+ if (value == null) {
64
+ return value;
65
+ }
66
+
67
+ return {
68
+
69
+ 'id': value['id'],
70
+ 'description': value['description'],
71
+ };
72
+ }
73
+
@@ -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 FacetOptionList
20
+ */
21
+ export interface FacetOptionList {
22
+ /**
23
+ *
24
+ * @type {number}
25
+ * @memberof FacetOptionList
26
+ */
27
+ totalFacetOptions?: number;
28
+ /**
29
+ *
30
+ * @type {Array<string>}
31
+ * @memberof FacetOptionList
32
+ */
33
+ facetOptions?: Array<string>;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the FacetOptionList interface.
38
+ */
39
+ export function instanceOfFacetOptionList(value: object): value is FacetOptionList {
40
+ return true;
41
+ }
42
+
43
+ export function FacetOptionListFromJSON(json: any): FacetOptionList {
44
+ return FacetOptionListFromJSONTyped(json, false);
45
+ }
46
+
47
+ export function FacetOptionListFromJSONTyped(json: any, ignoreDiscriminator: boolean): FacetOptionList {
48
+ if (json == null) {
49
+ return json;
50
+ }
51
+ return {
52
+
53
+ 'totalFacetOptions': json['totalFacetOptions'] == null ? undefined : json['totalFacetOptions'],
54
+ 'facetOptions': json['facetOptions'] == null ? undefined : json['facetOptions'],
55
+ };
56
+ }
57
+
58
+ export function FacetOptionListToJSON(json: any): FacetOptionList {
59
+ return FacetOptionListToJSONTyped(json, false);
60
+ }
61
+
62
+ export function FacetOptionListToJSONTyped(value?: FacetOptionList | null, ignoreDiscriminator: boolean = false): any {
63
+ if (value == null) {
64
+ return value;
65
+ }
66
+
67
+ return {
68
+
69
+ 'totalFacetOptions': value['totalFacetOptions'],
70
+ 'facetOptions': value['facetOptions'],
71
+ };
72
+ }
73
+
@@ -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 { FacetOptionList } from './FacetOptionList';
17
+ import {
18
+ FacetOptionListFromJSON,
19
+ FacetOptionListFromJSONTyped,
20
+ FacetOptionListToJSON,
21
+ FacetOptionListToJSONTyped,
22
+ } from './FacetOptionList';
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 FacetOptionListContainer
35
+ */
36
+ export interface FacetOptionListContainer {
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof FacetOptionListContainer
41
+ */
42
+ apiVersion?: string;
43
+ /**
44
+ *
45
+ * @type {RouteRequest}
46
+ * @memberof FacetOptionListContainer
47
+ */
48
+ request?: RouteRequest;
49
+ /**
50
+ *
51
+ * @type {FacetOptionList}
52
+ * @memberof FacetOptionListContainer
53
+ */
54
+ response?: FacetOptionList;
55
+ }
56
+
57
+ /**
58
+ * Check if a given object implements the FacetOptionListContainer interface.
59
+ */
60
+ export function instanceOfFacetOptionListContainer(value: object): value is FacetOptionListContainer {
61
+ return true;
62
+ }
63
+
64
+ export function FacetOptionListContainerFromJSON(json: any): FacetOptionListContainer {
65
+ return FacetOptionListContainerFromJSONTyped(json, false);
66
+ }
67
+
68
+ export function FacetOptionListContainerFromJSONTyped(json: any, ignoreDiscriminator: boolean): FacetOptionListContainer {
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 : FacetOptionListFromJSON(json['response']),
77
+ };
78
+ }
79
+
80
+ export function FacetOptionListContainerToJSON(json: any): FacetOptionListContainer {
81
+ return FacetOptionListContainerToJSONTyped(json, false);
82
+ }
83
+
84
+ export function FacetOptionListContainerToJSONTyped(value?: FacetOptionListContainer | 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': FacetOptionListToJSON(value['response']),
94
+ };
95
+ }
96
+
@@ -0,0 +1,152 @@
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 { Frequency } from './Frequency';
17
+ import {
18
+ FrequencyFromJSON,
19
+ FrequencyFromJSONTyped,
20
+ FrequencyToJSON,
21
+ FrequencyToJSONTyped,
22
+ } from './Frequency';
23
+ import type { FacetMetaData } from './FacetMetaData';
24
+ import {
25
+ FacetMetaDataFromJSON,
26
+ FacetMetaDataFromJSONTyped,
27
+ FacetMetaDataToJSON,
28
+ FacetMetaDataToJSONTyped,
29
+ } from './FacetMetaData';
30
+
31
+ /**
32
+ *
33
+ * @export
34
+ * @interface FinalRoute
35
+ */
36
+ export interface FinalRoute {
37
+ /**
38
+ *
39
+ * @type {string}
40
+ * @memberof FinalRoute
41
+ */
42
+ id?: string;
43
+ /**
44
+ *
45
+ * @type {string}
46
+ * @memberof FinalRoute
47
+ */
48
+ name?: string;
49
+ /**
50
+ *
51
+ * @type {string}
52
+ * @memberof FinalRoute
53
+ */
54
+ description?: string;
55
+ /**
56
+ *
57
+ * @type {Array<Frequency>}
58
+ * @memberof FinalRoute
59
+ */
60
+ frequency?: Array<Frequency>;
61
+ /**
62
+ *
63
+ * @type {Array<FacetMetaData>}
64
+ * @memberof FinalRoute
65
+ */
66
+ facets?: Array<FacetMetaData>;
67
+ /**
68
+ *
69
+ * @type {any}
70
+ * @memberof FinalRoute
71
+ */
72
+ data?: any | null;
73
+ /**
74
+ *
75
+ * @type {string}
76
+ * @memberof FinalRoute
77
+ */
78
+ startPeriod?: string;
79
+ /**
80
+ *
81
+ * @type {string}
82
+ * @memberof FinalRoute
83
+ */
84
+ endPeriod?: string;
85
+ /**
86
+ *
87
+ * @type {string}
88
+ * @memberof FinalRoute
89
+ */
90
+ defaultDateFormat?: string;
91
+ /**
92
+ *
93
+ * @type {string}
94
+ * @memberof FinalRoute
95
+ */
96
+ defaultFrequency?: string;
97
+ }
98
+
99
+ /**
100
+ * Check if a given object implements the FinalRoute interface.
101
+ */
102
+ export function instanceOfFinalRoute(value: object): value is FinalRoute {
103
+ return true;
104
+ }
105
+
106
+ export function FinalRouteFromJSON(json: any): FinalRoute {
107
+ return FinalRouteFromJSONTyped(json, false);
108
+ }
109
+
110
+ export function FinalRouteFromJSONTyped(json: any, ignoreDiscriminator: boolean): FinalRoute {
111
+ if (json == null) {
112
+ return json;
113
+ }
114
+ return {
115
+
116
+ 'id': json['id'] == null ? undefined : json['id'],
117
+ 'name': json['name'] == null ? undefined : json['name'],
118
+ 'description': json['description'] == null ? undefined : json['description'],
119
+ 'frequency': json['frequency'] == null ? undefined : ((json['frequency'] as Array<any>).map(FrequencyFromJSON)),
120
+ 'facets': json['facets'] == null ? undefined : ((json['facets'] as Array<any>).map(FacetMetaDataFromJSON)),
121
+ 'data': json['data'] == null ? undefined : json['data'],
122
+ 'startPeriod': json['startPeriod'] == null ? undefined : json['startPeriod'],
123
+ 'endPeriod': json['endPeriod'] == null ? undefined : json['endPeriod'],
124
+ 'defaultDateFormat': json['defaultDateFormat'] == null ? undefined : json['defaultDateFormat'],
125
+ 'defaultFrequency': json['defaultFrequency'] == null ? undefined : json['defaultFrequency'],
126
+ };
127
+ }
128
+
129
+ export function FinalRouteToJSON(json: any): FinalRoute {
130
+ return FinalRouteToJSONTyped(json, false);
131
+ }
132
+
133
+ export function FinalRouteToJSONTyped(value?: FinalRoute | null, ignoreDiscriminator: boolean = false): any {
134
+ if (value == null) {
135
+ return value;
136
+ }
137
+
138
+ return {
139
+
140
+ 'id': value['id'],
141
+ 'name': value['name'],
142
+ 'description': value['description'],
143
+ 'frequency': value['frequency'] == null ? undefined : ((value['frequency'] as Array<any>).map(FrequencyToJSON)),
144
+ 'facets': value['facets'] == null ? undefined : ((value['facets'] as Array<any>).map(FacetMetaDataToJSON)),
145
+ 'data': value['data'],
146
+ 'startPeriod': value['startPeriod'],
147
+ 'endPeriod': value['endPeriod'],
148
+ 'defaultDateFormat': value['defaultDateFormat'],
149
+ 'defaultFrequency': value['defaultFrequency'],
150
+ };
151
+ }
152
+