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/apis/RTOApi.ts
ADDED
|
@@ -0,0 +1,2260 @@
|
|
|
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 * as runtime from '../runtime';
|
|
16
|
+
import {
|
|
17
|
+
type DataParams,
|
|
18
|
+
DataParamsFromJSON,
|
|
19
|
+
DataParamsToJSON,
|
|
20
|
+
} from '../models/DataParams';
|
|
21
|
+
import {
|
|
22
|
+
type DataResponseContainer,
|
|
23
|
+
DataResponseContainerFromJSON,
|
|
24
|
+
DataResponseContainerToJSON,
|
|
25
|
+
} from '../models/DataResponseContainer';
|
|
26
|
+
import {
|
|
27
|
+
type FacetDetailsContainer,
|
|
28
|
+
FacetDetailsContainerFromJSON,
|
|
29
|
+
FacetDetailsContainerToJSON,
|
|
30
|
+
} from '../models/FacetDetailsContainer';
|
|
31
|
+
import {
|
|
32
|
+
type FacetOptionListContainer,
|
|
33
|
+
FacetOptionListContainerFromJSON,
|
|
34
|
+
FacetOptionListContainerToJSON,
|
|
35
|
+
} from '../models/FacetOptionListContainer';
|
|
36
|
+
import {
|
|
37
|
+
type FinalRouteResponseContainer,
|
|
38
|
+
FinalRouteResponseContainerFromJSON,
|
|
39
|
+
FinalRouteResponseContainerToJSON,
|
|
40
|
+
} from '../models/FinalRouteResponseContainer';
|
|
41
|
+
import {
|
|
42
|
+
type RouteResponseContainer,
|
|
43
|
+
RouteResponseContainerFromJSON,
|
|
44
|
+
RouteResponseContainerToJSON,
|
|
45
|
+
} from '../models/RouteResponseContainer';
|
|
46
|
+
import {
|
|
47
|
+
type Sort,
|
|
48
|
+
SortFromJSON,
|
|
49
|
+
SortToJSON,
|
|
50
|
+
} from '../models/Sort';
|
|
51
|
+
|
|
52
|
+
export interface V2ElectricityRtoDailyFuelTypeDataDataGetRequest {
|
|
53
|
+
data?: Array<string>;
|
|
54
|
+
facets?: object;
|
|
55
|
+
frequency?: string;
|
|
56
|
+
start?: string;
|
|
57
|
+
end?: string;
|
|
58
|
+
sort?: Sort;
|
|
59
|
+
length?: number;
|
|
60
|
+
offset?: number;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export interface V2ElectricityRtoDailyFuelTypeDataDataPostRequest {
|
|
64
|
+
dataParams: DataParams;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export interface V2ElectricityRtoDailyFuelTypeDataFacetFacetIdGetRequest {
|
|
68
|
+
facetId: string;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export interface V2ElectricityRtoDailyInterchangeDataDataGetRequest {
|
|
72
|
+
data?: Array<string>;
|
|
73
|
+
facets?: object;
|
|
74
|
+
frequency?: string;
|
|
75
|
+
start?: string;
|
|
76
|
+
end?: string;
|
|
77
|
+
sort?: Sort;
|
|
78
|
+
length?: number;
|
|
79
|
+
offset?: number;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export interface V2ElectricityRtoDailyInterchangeDataDataPostRequest {
|
|
83
|
+
dataParams: DataParams;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export interface V2ElectricityRtoDailyInterchangeDataFacetFacetIdGetRequest {
|
|
87
|
+
facetId: string;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export interface V2ElectricityRtoDailyRegionDataDataGetRequest {
|
|
91
|
+
data?: Array<string>;
|
|
92
|
+
facets?: object;
|
|
93
|
+
frequency?: string;
|
|
94
|
+
start?: string;
|
|
95
|
+
end?: string;
|
|
96
|
+
sort?: Sort;
|
|
97
|
+
length?: number;
|
|
98
|
+
offset?: number;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export interface V2ElectricityRtoDailyRegionDataDataPostRequest {
|
|
102
|
+
dataParams: DataParams;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export interface V2ElectricityRtoDailyRegionDataFacetFacetIdGetRequest {
|
|
106
|
+
facetId: string;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export interface V2ElectricityRtoDailyRegionSubBaDataDataGetRequest {
|
|
110
|
+
data?: Array<string>;
|
|
111
|
+
facets?: object;
|
|
112
|
+
frequency?: string;
|
|
113
|
+
start?: string;
|
|
114
|
+
end?: string;
|
|
115
|
+
sort?: Sort;
|
|
116
|
+
length?: number;
|
|
117
|
+
offset?: number;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export interface V2ElectricityRtoDailyRegionSubBaDataDataPostRequest {
|
|
121
|
+
dataParams: DataParams;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export interface V2ElectricityRtoDailyRegionSubBaDataFacetFacetIdGetRequest {
|
|
125
|
+
facetId: string;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export interface V2ElectricityRtoFuelTypeDataDataGetRequest {
|
|
129
|
+
data?: Array<string>;
|
|
130
|
+
facets?: object;
|
|
131
|
+
frequency?: string;
|
|
132
|
+
start?: string;
|
|
133
|
+
end?: string;
|
|
134
|
+
sort?: Sort;
|
|
135
|
+
length?: number;
|
|
136
|
+
offset?: number;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export interface V2ElectricityRtoFuelTypeDataDataPostRequest {
|
|
140
|
+
dataParams: DataParams;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export interface V2ElectricityRtoFuelTypeDataFacetFacetIdGetRequest {
|
|
144
|
+
facetId: string;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
export interface V2ElectricityRtoInterchangeDataDataGetRequest {
|
|
148
|
+
data?: Array<string>;
|
|
149
|
+
facets?: object;
|
|
150
|
+
frequency?: string;
|
|
151
|
+
start?: string;
|
|
152
|
+
end?: string;
|
|
153
|
+
sort?: Sort;
|
|
154
|
+
length?: number;
|
|
155
|
+
offset?: number;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
export interface V2ElectricityRtoInterchangeDataDataPostRequest {
|
|
159
|
+
dataParams: DataParams;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
export interface V2ElectricityRtoInterchangeDataFacetFacetIdGetRequest {
|
|
163
|
+
facetId: string;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
export interface V2ElectricityRtoRegionDataDataGetRequest {
|
|
167
|
+
data?: Array<string>;
|
|
168
|
+
facets?: object;
|
|
169
|
+
frequency?: string;
|
|
170
|
+
start?: string;
|
|
171
|
+
end?: string;
|
|
172
|
+
sort?: Sort;
|
|
173
|
+
length?: number;
|
|
174
|
+
offset?: number;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
export interface V2ElectricityRtoRegionDataDataPostRequest {
|
|
178
|
+
dataParams: DataParams;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
export interface V2ElectricityRtoRegionDataFacetFacetIdGetRequest {
|
|
182
|
+
facetId: string;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
export interface V2ElectricityRtoRegionSubBaDataDataGetRequest {
|
|
186
|
+
data?: Array<string>;
|
|
187
|
+
facets?: object;
|
|
188
|
+
frequency?: string;
|
|
189
|
+
start?: string;
|
|
190
|
+
end?: string;
|
|
191
|
+
sort?: Sort;
|
|
192
|
+
length?: number;
|
|
193
|
+
offset?: number;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
export interface V2ElectricityRtoRegionSubBaDataDataPostRequest {
|
|
197
|
+
dataParams: DataParams;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
export interface V2ElectricityRtoRegionSubBaDataFacetFacetIdGetRequest {
|
|
201
|
+
facetId: string;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
*
|
|
206
|
+
*/
|
|
207
|
+
export class RTOApi extends runtime.BaseAPI {
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* Creates request options for v2ElectricityRtoDailyFuelTypeDataDataGet without sending the request
|
|
211
|
+
*/
|
|
212
|
+
async v2ElectricityRtoDailyFuelTypeDataDataGetRequestOpts(requestParameters: V2ElectricityRtoDailyFuelTypeDataDataGetRequest): Promise<runtime.RequestOpts> {
|
|
213
|
+
const queryParameters: any = {};
|
|
214
|
+
|
|
215
|
+
if (requestParameters['data'] != null) {
|
|
216
|
+
queryParameters['data'] = requestParameters['data'];
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
if (requestParameters['facets'] != null) {
|
|
220
|
+
queryParameters['facets'] = requestParameters['facets'];
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
if (requestParameters['frequency'] != null) {
|
|
224
|
+
queryParameters['frequency'] = requestParameters['frequency'];
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
if (requestParameters['start'] != null) {
|
|
228
|
+
queryParameters['start'] = requestParameters['start'];
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
if (requestParameters['end'] != null) {
|
|
232
|
+
queryParameters['end'] = requestParameters['end'];
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
if (requestParameters['sort'] != null) {
|
|
236
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
if (requestParameters['length'] != null) {
|
|
240
|
+
queryParameters['length'] = requestParameters['length'];
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
if (requestParameters['offset'] != null) {
|
|
244
|
+
queryParameters['offset'] = requestParameters['offset'];
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
248
|
+
|
|
249
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
250
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
let urlPath = `/v2/electricity/rto/daily-fuel-type-data/data`;
|
|
255
|
+
|
|
256
|
+
return {
|
|
257
|
+
path: urlPath,
|
|
258
|
+
method: 'GET',
|
|
259
|
+
headers: headerParameters,
|
|
260
|
+
query: queryParameters,
|
|
261
|
+
};
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
/**
|
|
265
|
+
* API data with query params
|
|
266
|
+
*/
|
|
267
|
+
async v2ElectricityRtoDailyFuelTypeDataDataGetRaw(requestParameters: V2ElectricityRtoDailyFuelTypeDataDataGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataResponseContainer>> {
|
|
268
|
+
const requestOptions = await this.v2ElectricityRtoDailyFuelTypeDataDataGetRequestOpts(requestParameters);
|
|
269
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
270
|
+
|
|
271
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DataResponseContainerFromJSON(jsonValue));
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* API data with query params
|
|
276
|
+
*/
|
|
277
|
+
async v2ElectricityRtoDailyFuelTypeDataDataGet(requestParameters: V2ElectricityRtoDailyFuelTypeDataDataGetRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataResponseContainer> {
|
|
278
|
+
const response = await this.v2ElectricityRtoDailyFuelTypeDataDataGetRaw(requestParameters, initOverrides);
|
|
279
|
+
return await response.value();
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
/**
|
|
283
|
+
* Creates request options for v2ElectricityRtoDailyFuelTypeDataDataPost without sending the request
|
|
284
|
+
*/
|
|
285
|
+
async v2ElectricityRtoDailyFuelTypeDataDataPostRequestOpts(requestParameters: V2ElectricityRtoDailyFuelTypeDataDataPostRequest): Promise<runtime.RequestOpts> {
|
|
286
|
+
if (requestParameters['dataParams'] == null) {
|
|
287
|
+
throw new runtime.RequiredError(
|
|
288
|
+
'dataParams',
|
|
289
|
+
'Required parameter "dataParams" was null or undefined when calling v2ElectricityRtoDailyFuelTypeDataDataPost().'
|
|
290
|
+
);
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
const queryParameters: any = {};
|
|
294
|
+
|
|
295
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
296
|
+
|
|
297
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
298
|
+
|
|
299
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
300
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
let urlPath = `/v2/electricity/rto/daily-fuel-type-data/data`;
|
|
305
|
+
|
|
306
|
+
return {
|
|
307
|
+
path: urlPath,
|
|
308
|
+
method: 'POST',
|
|
309
|
+
headers: headerParameters,
|
|
310
|
+
query: queryParameters,
|
|
311
|
+
body: DataParamsToJSON(requestParameters['dataParams']),
|
|
312
|
+
};
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
/**
|
|
316
|
+
* Class DailyRegionDataByFuelTypeController Daily region data by fuel type set controller.
|
|
317
|
+
* Return daily-fuel-type Data
|
|
318
|
+
*/
|
|
319
|
+
async v2ElectricityRtoDailyFuelTypeDataDataPostRaw(requestParameters: V2ElectricityRtoDailyFuelTypeDataDataPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataResponseContainer>> {
|
|
320
|
+
const requestOptions = await this.v2ElectricityRtoDailyFuelTypeDataDataPostRequestOpts(requestParameters);
|
|
321
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
322
|
+
|
|
323
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DataResponseContainerFromJSON(jsonValue));
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
/**
|
|
327
|
+
* Class DailyRegionDataByFuelTypeController Daily region data by fuel type set controller.
|
|
328
|
+
* Return daily-fuel-type Data
|
|
329
|
+
*/
|
|
330
|
+
async v2ElectricityRtoDailyFuelTypeDataDataPost(requestParameters: V2ElectricityRtoDailyFuelTypeDataDataPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataResponseContainer> {
|
|
331
|
+
const response = await this.v2ElectricityRtoDailyFuelTypeDataDataPostRaw(requestParameters, initOverrides);
|
|
332
|
+
return await response.value();
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
/**
|
|
336
|
+
* Creates request options for v2ElectricityRtoDailyFuelTypeDataFacetFacetIdGet without sending the request
|
|
337
|
+
*/
|
|
338
|
+
async v2ElectricityRtoDailyFuelTypeDataFacetFacetIdGetRequestOpts(requestParameters: V2ElectricityRtoDailyFuelTypeDataFacetFacetIdGetRequest): Promise<runtime.RequestOpts> {
|
|
339
|
+
if (requestParameters['facetId'] == null) {
|
|
340
|
+
throw new runtime.RequiredError(
|
|
341
|
+
'facetId',
|
|
342
|
+
'Required parameter "facetId" was null or undefined when calling v2ElectricityRtoDailyFuelTypeDataFacetFacetIdGet().'
|
|
343
|
+
);
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
const queryParameters: any = {};
|
|
347
|
+
|
|
348
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
349
|
+
|
|
350
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
351
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
|
|
355
|
+
let urlPath = `/v2/electricity/rto/daily-fuel-type-data/facet/{facet_id}`;
|
|
356
|
+
urlPath = urlPath.replace('{facet_id}', encodeURIComponent(String(requestParameters['facetId'])));
|
|
357
|
+
|
|
358
|
+
return {
|
|
359
|
+
path: urlPath,
|
|
360
|
+
method: 'GET',
|
|
361
|
+
headers: headerParameters,
|
|
362
|
+
query: queryParameters,
|
|
363
|
+
};
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
/**
|
|
367
|
+
*/
|
|
368
|
+
async v2ElectricityRtoDailyFuelTypeDataFacetFacetIdGetRaw(requestParameters: V2ElectricityRtoDailyFuelTypeDataFacetFacetIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FacetDetailsContainer>> {
|
|
369
|
+
const requestOptions = await this.v2ElectricityRtoDailyFuelTypeDataFacetFacetIdGetRequestOpts(requestParameters);
|
|
370
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
371
|
+
|
|
372
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FacetDetailsContainerFromJSON(jsonValue));
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
/**
|
|
376
|
+
*/
|
|
377
|
+
async v2ElectricityRtoDailyFuelTypeDataFacetFacetIdGet(requestParameters: V2ElectricityRtoDailyFuelTypeDataFacetFacetIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FacetDetailsContainer> {
|
|
378
|
+
const response = await this.v2ElectricityRtoDailyFuelTypeDataFacetFacetIdGetRaw(requestParameters, initOverrides);
|
|
379
|
+
return await response.value();
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
/**
|
|
383
|
+
* Creates request options for v2ElectricityRtoDailyFuelTypeDataFacetGet without sending the request
|
|
384
|
+
*/
|
|
385
|
+
async v2ElectricityRtoDailyFuelTypeDataFacetGetRequestOpts(): Promise<runtime.RequestOpts> {
|
|
386
|
+
const queryParameters: any = {};
|
|
387
|
+
|
|
388
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
389
|
+
|
|
390
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
391
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
392
|
+
}
|
|
393
|
+
|
|
394
|
+
|
|
395
|
+
let urlPath = `/v2/electricity/rto/daily-fuel-type-data/facet`;
|
|
396
|
+
|
|
397
|
+
return {
|
|
398
|
+
path: urlPath,
|
|
399
|
+
method: 'GET',
|
|
400
|
+
headers: headerParameters,
|
|
401
|
+
query: queryParameters,
|
|
402
|
+
};
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
/**
|
|
406
|
+
*/
|
|
407
|
+
async v2ElectricityRtoDailyFuelTypeDataFacetGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FacetOptionListContainer>> {
|
|
408
|
+
const requestOptions = await this.v2ElectricityRtoDailyFuelTypeDataFacetGetRequestOpts();
|
|
409
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
410
|
+
|
|
411
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FacetOptionListContainerFromJSON(jsonValue));
|
|
412
|
+
}
|
|
413
|
+
|
|
414
|
+
/**
|
|
415
|
+
*/
|
|
416
|
+
async v2ElectricityRtoDailyFuelTypeDataFacetGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FacetOptionListContainer> {
|
|
417
|
+
const response = await this.v2ElectricityRtoDailyFuelTypeDataFacetGetRaw(initOverrides);
|
|
418
|
+
return await response.value();
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
/**
|
|
422
|
+
* Creates request options for v2ElectricityRtoDailyFuelTypeDataGet without sending the request
|
|
423
|
+
*/
|
|
424
|
+
async v2ElectricityRtoDailyFuelTypeDataGetRequestOpts(): Promise<runtime.RequestOpts> {
|
|
425
|
+
const queryParameters: any = {};
|
|
426
|
+
|
|
427
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
428
|
+
|
|
429
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
430
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
|
|
434
|
+
let urlPath = `/v2/electricity/rto/daily-fuel-type-data`;
|
|
435
|
+
|
|
436
|
+
return {
|
|
437
|
+
path: urlPath,
|
|
438
|
+
method: 'GET',
|
|
439
|
+
headers: headerParameters,
|
|
440
|
+
query: queryParameters,
|
|
441
|
+
};
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
/**
|
|
445
|
+
*/
|
|
446
|
+
async v2ElectricityRtoDailyFuelTypeDataGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FinalRouteResponseContainer>> {
|
|
447
|
+
const requestOptions = await this.v2ElectricityRtoDailyFuelTypeDataGetRequestOpts();
|
|
448
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
449
|
+
|
|
450
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FinalRouteResponseContainerFromJSON(jsonValue));
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
/**
|
|
454
|
+
*/
|
|
455
|
+
async v2ElectricityRtoDailyFuelTypeDataGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FinalRouteResponseContainer> {
|
|
456
|
+
const response = await this.v2ElectricityRtoDailyFuelTypeDataGetRaw(initOverrides);
|
|
457
|
+
return await response.value();
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
/**
|
|
461
|
+
* Creates request options for v2ElectricityRtoDailyInterchangeDataDataGet without sending the request
|
|
462
|
+
*/
|
|
463
|
+
async v2ElectricityRtoDailyInterchangeDataDataGetRequestOpts(requestParameters: V2ElectricityRtoDailyInterchangeDataDataGetRequest): Promise<runtime.RequestOpts> {
|
|
464
|
+
const queryParameters: any = {};
|
|
465
|
+
|
|
466
|
+
if (requestParameters['data'] != null) {
|
|
467
|
+
queryParameters['data'] = requestParameters['data'];
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
if (requestParameters['facets'] != null) {
|
|
471
|
+
queryParameters['facets'] = requestParameters['facets'];
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
if (requestParameters['frequency'] != null) {
|
|
475
|
+
queryParameters['frequency'] = requestParameters['frequency'];
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
if (requestParameters['start'] != null) {
|
|
479
|
+
queryParameters['start'] = requestParameters['start'];
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
if (requestParameters['end'] != null) {
|
|
483
|
+
queryParameters['end'] = requestParameters['end'];
|
|
484
|
+
}
|
|
485
|
+
|
|
486
|
+
if (requestParameters['sort'] != null) {
|
|
487
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
if (requestParameters['length'] != null) {
|
|
491
|
+
queryParameters['length'] = requestParameters['length'];
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
if (requestParameters['offset'] != null) {
|
|
495
|
+
queryParameters['offset'] = requestParameters['offset'];
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
499
|
+
|
|
500
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
501
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
|
|
505
|
+
let urlPath = `/v2/electricity/rto/daily-interchange-data/data`;
|
|
506
|
+
|
|
507
|
+
return {
|
|
508
|
+
path: urlPath,
|
|
509
|
+
method: 'GET',
|
|
510
|
+
headers: headerParameters,
|
|
511
|
+
query: queryParameters,
|
|
512
|
+
};
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
/**
|
|
516
|
+
* API data with query params
|
|
517
|
+
*/
|
|
518
|
+
async v2ElectricityRtoDailyInterchangeDataDataGetRaw(requestParameters: V2ElectricityRtoDailyInterchangeDataDataGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataResponseContainer>> {
|
|
519
|
+
const requestOptions = await this.v2ElectricityRtoDailyInterchangeDataDataGetRequestOpts(requestParameters);
|
|
520
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
521
|
+
|
|
522
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DataResponseContainerFromJSON(jsonValue));
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
/**
|
|
526
|
+
* API data with query params
|
|
527
|
+
*/
|
|
528
|
+
async v2ElectricityRtoDailyInterchangeDataDataGet(requestParameters: V2ElectricityRtoDailyInterchangeDataDataGetRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataResponseContainer> {
|
|
529
|
+
const response = await this.v2ElectricityRtoDailyInterchangeDataDataGetRaw(requestParameters, initOverrides);
|
|
530
|
+
return await response.value();
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
/**
|
|
534
|
+
* Creates request options for v2ElectricityRtoDailyInterchangeDataDataPost without sending the request
|
|
535
|
+
*/
|
|
536
|
+
async v2ElectricityRtoDailyInterchangeDataDataPostRequestOpts(requestParameters: V2ElectricityRtoDailyInterchangeDataDataPostRequest): Promise<runtime.RequestOpts> {
|
|
537
|
+
if (requestParameters['dataParams'] == null) {
|
|
538
|
+
throw new runtime.RequiredError(
|
|
539
|
+
'dataParams',
|
|
540
|
+
'Required parameter "dataParams" was null or undefined when calling v2ElectricityRtoDailyInterchangeDataDataPost().'
|
|
541
|
+
);
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
const queryParameters: any = {};
|
|
545
|
+
|
|
546
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
547
|
+
|
|
548
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
549
|
+
|
|
550
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
551
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
|
|
555
|
+
let urlPath = `/v2/electricity/rto/daily-interchange-data/data`;
|
|
556
|
+
|
|
557
|
+
return {
|
|
558
|
+
path: urlPath,
|
|
559
|
+
method: 'POST',
|
|
560
|
+
headers: headerParameters,
|
|
561
|
+
query: queryParameters,
|
|
562
|
+
body: DataParamsToJSON(requestParameters['dataParams']),
|
|
563
|
+
};
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
/**
|
|
567
|
+
* Class DailyInterchangeDataController Daily Interchange data set controller.
|
|
568
|
+
* Return daily-interchange Data
|
|
569
|
+
*/
|
|
570
|
+
async v2ElectricityRtoDailyInterchangeDataDataPostRaw(requestParameters: V2ElectricityRtoDailyInterchangeDataDataPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataResponseContainer>> {
|
|
571
|
+
const requestOptions = await this.v2ElectricityRtoDailyInterchangeDataDataPostRequestOpts(requestParameters);
|
|
572
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
573
|
+
|
|
574
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DataResponseContainerFromJSON(jsonValue));
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
/**
|
|
578
|
+
* Class DailyInterchangeDataController Daily Interchange data set controller.
|
|
579
|
+
* Return daily-interchange Data
|
|
580
|
+
*/
|
|
581
|
+
async v2ElectricityRtoDailyInterchangeDataDataPost(requestParameters: V2ElectricityRtoDailyInterchangeDataDataPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataResponseContainer> {
|
|
582
|
+
const response = await this.v2ElectricityRtoDailyInterchangeDataDataPostRaw(requestParameters, initOverrides);
|
|
583
|
+
return await response.value();
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
/**
|
|
587
|
+
* Creates request options for v2ElectricityRtoDailyInterchangeDataFacetFacetIdGet without sending the request
|
|
588
|
+
*/
|
|
589
|
+
async v2ElectricityRtoDailyInterchangeDataFacetFacetIdGetRequestOpts(requestParameters: V2ElectricityRtoDailyInterchangeDataFacetFacetIdGetRequest): Promise<runtime.RequestOpts> {
|
|
590
|
+
if (requestParameters['facetId'] == null) {
|
|
591
|
+
throw new runtime.RequiredError(
|
|
592
|
+
'facetId',
|
|
593
|
+
'Required parameter "facetId" was null or undefined when calling v2ElectricityRtoDailyInterchangeDataFacetFacetIdGet().'
|
|
594
|
+
);
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
const queryParameters: any = {};
|
|
598
|
+
|
|
599
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
600
|
+
|
|
601
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
602
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
|
|
606
|
+
let urlPath = `/v2/electricity/rto/daily-interchange-data/facet/{facet_id}`;
|
|
607
|
+
urlPath = urlPath.replace('{facet_id}', encodeURIComponent(String(requestParameters['facetId'])));
|
|
608
|
+
|
|
609
|
+
return {
|
|
610
|
+
path: urlPath,
|
|
611
|
+
method: 'GET',
|
|
612
|
+
headers: headerParameters,
|
|
613
|
+
query: queryParameters,
|
|
614
|
+
};
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
/**
|
|
618
|
+
*/
|
|
619
|
+
async v2ElectricityRtoDailyInterchangeDataFacetFacetIdGetRaw(requestParameters: V2ElectricityRtoDailyInterchangeDataFacetFacetIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FacetDetailsContainer>> {
|
|
620
|
+
const requestOptions = await this.v2ElectricityRtoDailyInterchangeDataFacetFacetIdGetRequestOpts(requestParameters);
|
|
621
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
622
|
+
|
|
623
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FacetDetailsContainerFromJSON(jsonValue));
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
/**
|
|
627
|
+
*/
|
|
628
|
+
async v2ElectricityRtoDailyInterchangeDataFacetFacetIdGet(requestParameters: V2ElectricityRtoDailyInterchangeDataFacetFacetIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FacetDetailsContainer> {
|
|
629
|
+
const response = await this.v2ElectricityRtoDailyInterchangeDataFacetFacetIdGetRaw(requestParameters, initOverrides);
|
|
630
|
+
return await response.value();
|
|
631
|
+
}
|
|
632
|
+
|
|
633
|
+
/**
|
|
634
|
+
* Creates request options for v2ElectricityRtoDailyInterchangeDataFacetGet without sending the request
|
|
635
|
+
*/
|
|
636
|
+
async v2ElectricityRtoDailyInterchangeDataFacetGetRequestOpts(): Promise<runtime.RequestOpts> {
|
|
637
|
+
const queryParameters: any = {};
|
|
638
|
+
|
|
639
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
640
|
+
|
|
641
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
642
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
643
|
+
}
|
|
644
|
+
|
|
645
|
+
|
|
646
|
+
let urlPath = `/v2/electricity/rto/daily-interchange-data/facet`;
|
|
647
|
+
|
|
648
|
+
return {
|
|
649
|
+
path: urlPath,
|
|
650
|
+
method: 'GET',
|
|
651
|
+
headers: headerParameters,
|
|
652
|
+
query: queryParameters,
|
|
653
|
+
};
|
|
654
|
+
}
|
|
655
|
+
|
|
656
|
+
/**
|
|
657
|
+
*/
|
|
658
|
+
async v2ElectricityRtoDailyInterchangeDataFacetGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FacetOptionListContainer>> {
|
|
659
|
+
const requestOptions = await this.v2ElectricityRtoDailyInterchangeDataFacetGetRequestOpts();
|
|
660
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
661
|
+
|
|
662
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FacetOptionListContainerFromJSON(jsonValue));
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
/**
|
|
666
|
+
*/
|
|
667
|
+
async v2ElectricityRtoDailyInterchangeDataFacetGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FacetOptionListContainer> {
|
|
668
|
+
const response = await this.v2ElectricityRtoDailyInterchangeDataFacetGetRaw(initOverrides);
|
|
669
|
+
return await response.value();
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
/**
|
|
673
|
+
* Creates request options for v2ElectricityRtoDailyInterchangeDataGet without sending the request
|
|
674
|
+
*/
|
|
675
|
+
async v2ElectricityRtoDailyInterchangeDataGetRequestOpts(): Promise<runtime.RequestOpts> {
|
|
676
|
+
const queryParameters: any = {};
|
|
677
|
+
|
|
678
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
679
|
+
|
|
680
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
681
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
|
|
685
|
+
let urlPath = `/v2/electricity/rto/daily-interchange-data`;
|
|
686
|
+
|
|
687
|
+
return {
|
|
688
|
+
path: urlPath,
|
|
689
|
+
method: 'GET',
|
|
690
|
+
headers: headerParameters,
|
|
691
|
+
query: queryParameters,
|
|
692
|
+
};
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
/**
|
|
696
|
+
*/
|
|
697
|
+
async v2ElectricityRtoDailyInterchangeDataGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FinalRouteResponseContainer>> {
|
|
698
|
+
const requestOptions = await this.v2ElectricityRtoDailyInterchangeDataGetRequestOpts();
|
|
699
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
700
|
+
|
|
701
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FinalRouteResponseContainerFromJSON(jsonValue));
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
/**
|
|
705
|
+
*/
|
|
706
|
+
async v2ElectricityRtoDailyInterchangeDataGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FinalRouteResponseContainer> {
|
|
707
|
+
const response = await this.v2ElectricityRtoDailyInterchangeDataGetRaw(initOverrides);
|
|
708
|
+
return await response.value();
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
/**
|
|
712
|
+
* Creates request options for v2ElectricityRtoDailyRegionDataDataGet without sending the request
|
|
713
|
+
*/
|
|
714
|
+
async v2ElectricityRtoDailyRegionDataDataGetRequestOpts(requestParameters: V2ElectricityRtoDailyRegionDataDataGetRequest): Promise<runtime.RequestOpts> {
|
|
715
|
+
const queryParameters: any = {};
|
|
716
|
+
|
|
717
|
+
if (requestParameters['data'] != null) {
|
|
718
|
+
queryParameters['data'] = requestParameters['data'];
|
|
719
|
+
}
|
|
720
|
+
|
|
721
|
+
if (requestParameters['facets'] != null) {
|
|
722
|
+
queryParameters['facets'] = requestParameters['facets'];
|
|
723
|
+
}
|
|
724
|
+
|
|
725
|
+
if (requestParameters['frequency'] != null) {
|
|
726
|
+
queryParameters['frequency'] = requestParameters['frequency'];
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
if (requestParameters['start'] != null) {
|
|
730
|
+
queryParameters['start'] = requestParameters['start'];
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
if (requestParameters['end'] != null) {
|
|
734
|
+
queryParameters['end'] = requestParameters['end'];
|
|
735
|
+
}
|
|
736
|
+
|
|
737
|
+
if (requestParameters['sort'] != null) {
|
|
738
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
739
|
+
}
|
|
740
|
+
|
|
741
|
+
if (requestParameters['length'] != null) {
|
|
742
|
+
queryParameters['length'] = requestParameters['length'];
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
if (requestParameters['offset'] != null) {
|
|
746
|
+
queryParameters['offset'] = requestParameters['offset'];
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
750
|
+
|
|
751
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
752
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
753
|
+
}
|
|
754
|
+
|
|
755
|
+
|
|
756
|
+
let urlPath = `/v2/electricity/rto/daily-region-data/data`;
|
|
757
|
+
|
|
758
|
+
return {
|
|
759
|
+
path: urlPath,
|
|
760
|
+
method: 'GET',
|
|
761
|
+
headers: headerParameters,
|
|
762
|
+
query: queryParameters,
|
|
763
|
+
};
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
/**
|
|
767
|
+
* API data with query params
|
|
768
|
+
*/
|
|
769
|
+
async v2ElectricityRtoDailyRegionDataDataGetRaw(requestParameters: V2ElectricityRtoDailyRegionDataDataGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataResponseContainer>> {
|
|
770
|
+
const requestOptions = await this.v2ElectricityRtoDailyRegionDataDataGetRequestOpts(requestParameters);
|
|
771
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
772
|
+
|
|
773
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DataResponseContainerFromJSON(jsonValue));
|
|
774
|
+
}
|
|
775
|
+
|
|
776
|
+
/**
|
|
777
|
+
* API data with query params
|
|
778
|
+
*/
|
|
779
|
+
async v2ElectricityRtoDailyRegionDataDataGet(requestParameters: V2ElectricityRtoDailyRegionDataDataGetRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataResponseContainer> {
|
|
780
|
+
const response = await this.v2ElectricityRtoDailyRegionDataDataGetRaw(requestParameters, initOverrides);
|
|
781
|
+
return await response.value();
|
|
782
|
+
}
|
|
783
|
+
|
|
784
|
+
/**
|
|
785
|
+
* Creates request options for v2ElectricityRtoDailyRegionDataDataPost without sending the request
|
|
786
|
+
*/
|
|
787
|
+
async v2ElectricityRtoDailyRegionDataDataPostRequestOpts(requestParameters: V2ElectricityRtoDailyRegionDataDataPostRequest): Promise<runtime.RequestOpts> {
|
|
788
|
+
if (requestParameters['dataParams'] == null) {
|
|
789
|
+
throw new runtime.RequiredError(
|
|
790
|
+
'dataParams',
|
|
791
|
+
'Required parameter "dataParams" was null or undefined when calling v2ElectricityRtoDailyRegionDataDataPost().'
|
|
792
|
+
);
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
const queryParameters: any = {};
|
|
796
|
+
|
|
797
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
798
|
+
|
|
799
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
800
|
+
|
|
801
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
802
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
803
|
+
}
|
|
804
|
+
|
|
805
|
+
|
|
806
|
+
let urlPath = `/v2/electricity/rto/daily-region-data/data`;
|
|
807
|
+
|
|
808
|
+
return {
|
|
809
|
+
path: urlPath,
|
|
810
|
+
method: 'POST',
|
|
811
|
+
headers: headerParameters,
|
|
812
|
+
query: queryParameters,
|
|
813
|
+
body: DataParamsToJSON(requestParameters['dataParams']),
|
|
814
|
+
};
|
|
815
|
+
}
|
|
816
|
+
|
|
817
|
+
/**
|
|
818
|
+
* Class DailyRegionDataController Daily region data set controller.
|
|
819
|
+
* Return daily-region Data
|
|
820
|
+
*/
|
|
821
|
+
async v2ElectricityRtoDailyRegionDataDataPostRaw(requestParameters: V2ElectricityRtoDailyRegionDataDataPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataResponseContainer>> {
|
|
822
|
+
const requestOptions = await this.v2ElectricityRtoDailyRegionDataDataPostRequestOpts(requestParameters);
|
|
823
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
824
|
+
|
|
825
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DataResponseContainerFromJSON(jsonValue));
|
|
826
|
+
}
|
|
827
|
+
|
|
828
|
+
/**
|
|
829
|
+
* Class DailyRegionDataController Daily region data set controller.
|
|
830
|
+
* Return daily-region Data
|
|
831
|
+
*/
|
|
832
|
+
async v2ElectricityRtoDailyRegionDataDataPost(requestParameters: V2ElectricityRtoDailyRegionDataDataPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataResponseContainer> {
|
|
833
|
+
const response = await this.v2ElectricityRtoDailyRegionDataDataPostRaw(requestParameters, initOverrides);
|
|
834
|
+
return await response.value();
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
/**
|
|
838
|
+
* Creates request options for v2ElectricityRtoDailyRegionDataFacetFacetIdGet without sending the request
|
|
839
|
+
*/
|
|
840
|
+
async v2ElectricityRtoDailyRegionDataFacetFacetIdGetRequestOpts(requestParameters: V2ElectricityRtoDailyRegionDataFacetFacetIdGetRequest): Promise<runtime.RequestOpts> {
|
|
841
|
+
if (requestParameters['facetId'] == null) {
|
|
842
|
+
throw new runtime.RequiredError(
|
|
843
|
+
'facetId',
|
|
844
|
+
'Required parameter "facetId" was null or undefined when calling v2ElectricityRtoDailyRegionDataFacetFacetIdGet().'
|
|
845
|
+
);
|
|
846
|
+
}
|
|
847
|
+
|
|
848
|
+
const queryParameters: any = {};
|
|
849
|
+
|
|
850
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
851
|
+
|
|
852
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
853
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
854
|
+
}
|
|
855
|
+
|
|
856
|
+
|
|
857
|
+
let urlPath = `/v2/electricity/rto/daily-region-data/facet/{facet_id}`;
|
|
858
|
+
urlPath = urlPath.replace('{facet_id}', encodeURIComponent(String(requestParameters['facetId'])));
|
|
859
|
+
|
|
860
|
+
return {
|
|
861
|
+
path: urlPath,
|
|
862
|
+
method: 'GET',
|
|
863
|
+
headers: headerParameters,
|
|
864
|
+
query: queryParameters,
|
|
865
|
+
};
|
|
866
|
+
}
|
|
867
|
+
|
|
868
|
+
/**
|
|
869
|
+
*/
|
|
870
|
+
async v2ElectricityRtoDailyRegionDataFacetFacetIdGetRaw(requestParameters: V2ElectricityRtoDailyRegionDataFacetFacetIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FacetDetailsContainer>> {
|
|
871
|
+
const requestOptions = await this.v2ElectricityRtoDailyRegionDataFacetFacetIdGetRequestOpts(requestParameters);
|
|
872
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
873
|
+
|
|
874
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FacetDetailsContainerFromJSON(jsonValue));
|
|
875
|
+
}
|
|
876
|
+
|
|
877
|
+
/**
|
|
878
|
+
*/
|
|
879
|
+
async v2ElectricityRtoDailyRegionDataFacetFacetIdGet(requestParameters: V2ElectricityRtoDailyRegionDataFacetFacetIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FacetDetailsContainer> {
|
|
880
|
+
const response = await this.v2ElectricityRtoDailyRegionDataFacetFacetIdGetRaw(requestParameters, initOverrides);
|
|
881
|
+
return await response.value();
|
|
882
|
+
}
|
|
883
|
+
|
|
884
|
+
/**
|
|
885
|
+
* Creates request options for v2ElectricityRtoDailyRegionDataFacetGet without sending the request
|
|
886
|
+
*/
|
|
887
|
+
async v2ElectricityRtoDailyRegionDataFacetGetRequestOpts(): Promise<runtime.RequestOpts> {
|
|
888
|
+
const queryParameters: any = {};
|
|
889
|
+
|
|
890
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
891
|
+
|
|
892
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
893
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
894
|
+
}
|
|
895
|
+
|
|
896
|
+
|
|
897
|
+
let urlPath = `/v2/electricity/rto/daily-region-data/facet`;
|
|
898
|
+
|
|
899
|
+
return {
|
|
900
|
+
path: urlPath,
|
|
901
|
+
method: 'GET',
|
|
902
|
+
headers: headerParameters,
|
|
903
|
+
query: queryParameters,
|
|
904
|
+
};
|
|
905
|
+
}
|
|
906
|
+
|
|
907
|
+
/**
|
|
908
|
+
*/
|
|
909
|
+
async v2ElectricityRtoDailyRegionDataFacetGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FacetOptionListContainer>> {
|
|
910
|
+
const requestOptions = await this.v2ElectricityRtoDailyRegionDataFacetGetRequestOpts();
|
|
911
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
912
|
+
|
|
913
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FacetOptionListContainerFromJSON(jsonValue));
|
|
914
|
+
}
|
|
915
|
+
|
|
916
|
+
/**
|
|
917
|
+
*/
|
|
918
|
+
async v2ElectricityRtoDailyRegionDataFacetGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FacetOptionListContainer> {
|
|
919
|
+
const response = await this.v2ElectricityRtoDailyRegionDataFacetGetRaw(initOverrides);
|
|
920
|
+
return await response.value();
|
|
921
|
+
}
|
|
922
|
+
|
|
923
|
+
/**
|
|
924
|
+
* Creates request options for v2ElectricityRtoDailyRegionDataGet without sending the request
|
|
925
|
+
*/
|
|
926
|
+
async v2ElectricityRtoDailyRegionDataGetRequestOpts(): Promise<runtime.RequestOpts> {
|
|
927
|
+
const queryParameters: any = {};
|
|
928
|
+
|
|
929
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
930
|
+
|
|
931
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
932
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
933
|
+
}
|
|
934
|
+
|
|
935
|
+
|
|
936
|
+
let urlPath = `/v2/electricity/rto/daily-region-data`;
|
|
937
|
+
|
|
938
|
+
return {
|
|
939
|
+
path: urlPath,
|
|
940
|
+
method: 'GET',
|
|
941
|
+
headers: headerParameters,
|
|
942
|
+
query: queryParameters,
|
|
943
|
+
};
|
|
944
|
+
}
|
|
945
|
+
|
|
946
|
+
/**
|
|
947
|
+
*/
|
|
948
|
+
async v2ElectricityRtoDailyRegionDataGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FinalRouteResponseContainer>> {
|
|
949
|
+
const requestOptions = await this.v2ElectricityRtoDailyRegionDataGetRequestOpts();
|
|
950
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
951
|
+
|
|
952
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FinalRouteResponseContainerFromJSON(jsonValue));
|
|
953
|
+
}
|
|
954
|
+
|
|
955
|
+
/**
|
|
956
|
+
*/
|
|
957
|
+
async v2ElectricityRtoDailyRegionDataGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FinalRouteResponseContainer> {
|
|
958
|
+
const response = await this.v2ElectricityRtoDailyRegionDataGetRaw(initOverrides);
|
|
959
|
+
return await response.value();
|
|
960
|
+
}
|
|
961
|
+
|
|
962
|
+
/**
|
|
963
|
+
* Creates request options for v2ElectricityRtoDailyRegionSubBaDataDataGet without sending the request
|
|
964
|
+
*/
|
|
965
|
+
async v2ElectricityRtoDailyRegionSubBaDataDataGetRequestOpts(requestParameters: V2ElectricityRtoDailyRegionSubBaDataDataGetRequest): Promise<runtime.RequestOpts> {
|
|
966
|
+
const queryParameters: any = {};
|
|
967
|
+
|
|
968
|
+
if (requestParameters['data'] != null) {
|
|
969
|
+
queryParameters['data'] = requestParameters['data'];
|
|
970
|
+
}
|
|
971
|
+
|
|
972
|
+
if (requestParameters['facets'] != null) {
|
|
973
|
+
queryParameters['facets'] = requestParameters['facets'];
|
|
974
|
+
}
|
|
975
|
+
|
|
976
|
+
if (requestParameters['frequency'] != null) {
|
|
977
|
+
queryParameters['frequency'] = requestParameters['frequency'];
|
|
978
|
+
}
|
|
979
|
+
|
|
980
|
+
if (requestParameters['start'] != null) {
|
|
981
|
+
queryParameters['start'] = requestParameters['start'];
|
|
982
|
+
}
|
|
983
|
+
|
|
984
|
+
if (requestParameters['end'] != null) {
|
|
985
|
+
queryParameters['end'] = requestParameters['end'];
|
|
986
|
+
}
|
|
987
|
+
|
|
988
|
+
if (requestParameters['sort'] != null) {
|
|
989
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
990
|
+
}
|
|
991
|
+
|
|
992
|
+
if (requestParameters['length'] != null) {
|
|
993
|
+
queryParameters['length'] = requestParameters['length'];
|
|
994
|
+
}
|
|
995
|
+
|
|
996
|
+
if (requestParameters['offset'] != null) {
|
|
997
|
+
queryParameters['offset'] = requestParameters['offset'];
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1001
|
+
|
|
1002
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1003
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
1004
|
+
}
|
|
1005
|
+
|
|
1006
|
+
|
|
1007
|
+
let urlPath = `/v2/electricity/rto/daily-region-sub-ba-data/data`;
|
|
1008
|
+
|
|
1009
|
+
return {
|
|
1010
|
+
path: urlPath,
|
|
1011
|
+
method: 'GET',
|
|
1012
|
+
headers: headerParameters,
|
|
1013
|
+
query: queryParameters,
|
|
1014
|
+
};
|
|
1015
|
+
}
|
|
1016
|
+
|
|
1017
|
+
/**
|
|
1018
|
+
* API data with query params
|
|
1019
|
+
*/
|
|
1020
|
+
async v2ElectricityRtoDailyRegionSubBaDataDataGetRaw(requestParameters: V2ElectricityRtoDailyRegionSubBaDataDataGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataResponseContainer>> {
|
|
1021
|
+
const requestOptions = await this.v2ElectricityRtoDailyRegionSubBaDataDataGetRequestOpts(requestParameters);
|
|
1022
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1023
|
+
|
|
1024
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DataResponseContainerFromJSON(jsonValue));
|
|
1025
|
+
}
|
|
1026
|
+
|
|
1027
|
+
/**
|
|
1028
|
+
* API data with query params
|
|
1029
|
+
*/
|
|
1030
|
+
async v2ElectricityRtoDailyRegionSubBaDataDataGet(requestParameters: V2ElectricityRtoDailyRegionSubBaDataDataGetRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataResponseContainer> {
|
|
1031
|
+
const response = await this.v2ElectricityRtoDailyRegionSubBaDataDataGetRaw(requestParameters, initOverrides);
|
|
1032
|
+
return await response.value();
|
|
1033
|
+
}
|
|
1034
|
+
|
|
1035
|
+
/**
|
|
1036
|
+
* Creates request options for v2ElectricityRtoDailyRegionSubBaDataDataPost without sending the request
|
|
1037
|
+
*/
|
|
1038
|
+
async v2ElectricityRtoDailyRegionSubBaDataDataPostRequestOpts(requestParameters: V2ElectricityRtoDailyRegionSubBaDataDataPostRequest): Promise<runtime.RequestOpts> {
|
|
1039
|
+
if (requestParameters['dataParams'] == null) {
|
|
1040
|
+
throw new runtime.RequiredError(
|
|
1041
|
+
'dataParams',
|
|
1042
|
+
'Required parameter "dataParams" was null or undefined when calling v2ElectricityRtoDailyRegionSubBaDataDataPost().'
|
|
1043
|
+
);
|
|
1044
|
+
}
|
|
1045
|
+
|
|
1046
|
+
const queryParameters: any = {};
|
|
1047
|
+
|
|
1048
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1049
|
+
|
|
1050
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1051
|
+
|
|
1052
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1053
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
1054
|
+
}
|
|
1055
|
+
|
|
1056
|
+
|
|
1057
|
+
let urlPath = `/v2/electricity/rto/daily-region-sub-ba-data/data`;
|
|
1058
|
+
|
|
1059
|
+
return {
|
|
1060
|
+
path: urlPath,
|
|
1061
|
+
method: 'POST',
|
|
1062
|
+
headers: headerParameters,
|
|
1063
|
+
query: queryParameters,
|
|
1064
|
+
body: DataParamsToJSON(requestParameters['dataParams']),
|
|
1065
|
+
};
|
|
1066
|
+
}
|
|
1067
|
+
|
|
1068
|
+
/**
|
|
1069
|
+
* Class DailyRegionDataBySubBAController Daily region data by sub ba data set controller.
|
|
1070
|
+
* Return daily-region-sub-ba Data
|
|
1071
|
+
*/
|
|
1072
|
+
async v2ElectricityRtoDailyRegionSubBaDataDataPostRaw(requestParameters: V2ElectricityRtoDailyRegionSubBaDataDataPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataResponseContainer>> {
|
|
1073
|
+
const requestOptions = await this.v2ElectricityRtoDailyRegionSubBaDataDataPostRequestOpts(requestParameters);
|
|
1074
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1075
|
+
|
|
1076
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DataResponseContainerFromJSON(jsonValue));
|
|
1077
|
+
}
|
|
1078
|
+
|
|
1079
|
+
/**
|
|
1080
|
+
* Class DailyRegionDataBySubBAController Daily region data by sub ba data set controller.
|
|
1081
|
+
* Return daily-region-sub-ba Data
|
|
1082
|
+
*/
|
|
1083
|
+
async v2ElectricityRtoDailyRegionSubBaDataDataPost(requestParameters: V2ElectricityRtoDailyRegionSubBaDataDataPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataResponseContainer> {
|
|
1084
|
+
const response = await this.v2ElectricityRtoDailyRegionSubBaDataDataPostRaw(requestParameters, initOverrides);
|
|
1085
|
+
return await response.value();
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1088
|
+
/**
|
|
1089
|
+
* Creates request options for v2ElectricityRtoDailyRegionSubBaDataFacetFacetIdGet without sending the request
|
|
1090
|
+
*/
|
|
1091
|
+
async v2ElectricityRtoDailyRegionSubBaDataFacetFacetIdGetRequestOpts(requestParameters: V2ElectricityRtoDailyRegionSubBaDataFacetFacetIdGetRequest): Promise<runtime.RequestOpts> {
|
|
1092
|
+
if (requestParameters['facetId'] == null) {
|
|
1093
|
+
throw new runtime.RequiredError(
|
|
1094
|
+
'facetId',
|
|
1095
|
+
'Required parameter "facetId" was null or undefined when calling v2ElectricityRtoDailyRegionSubBaDataFacetFacetIdGet().'
|
|
1096
|
+
);
|
|
1097
|
+
}
|
|
1098
|
+
|
|
1099
|
+
const queryParameters: any = {};
|
|
1100
|
+
|
|
1101
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1102
|
+
|
|
1103
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1104
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
1105
|
+
}
|
|
1106
|
+
|
|
1107
|
+
|
|
1108
|
+
let urlPath = `/v2/electricity/rto/daily-region-sub-ba-data/facet/{facet_id}`;
|
|
1109
|
+
urlPath = urlPath.replace('{facet_id}', encodeURIComponent(String(requestParameters['facetId'])));
|
|
1110
|
+
|
|
1111
|
+
return {
|
|
1112
|
+
path: urlPath,
|
|
1113
|
+
method: 'GET',
|
|
1114
|
+
headers: headerParameters,
|
|
1115
|
+
query: queryParameters,
|
|
1116
|
+
};
|
|
1117
|
+
}
|
|
1118
|
+
|
|
1119
|
+
/**
|
|
1120
|
+
*/
|
|
1121
|
+
async v2ElectricityRtoDailyRegionSubBaDataFacetFacetIdGetRaw(requestParameters: V2ElectricityRtoDailyRegionSubBaDataFacetFacetIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FacetDetailsContainer>> {
|
|
1122
|
+
const requestOptions = await this.v2ElectricityRtoDailyRegionSubBaDataFacetFacetIdGetRequestOpts(requestParameters);
|
|
1123
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1124
|
+
|
|
1125
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FacetDetailsContainerFromJSON(jsonValue));
|
|
1126
|
+
}
|
|
1127
|
+
|
|
1128
|
+
/**
|
|
1129
|
+
*/
|
|
1130
|
+
async v2ElectricityRtoDailyRegionSubBaDataFacetFacetIdGet(requestParameters: V2ElectricityRtoDailyRegionSubBaDataFacetFacetIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FacetDetailsContainer> {
|
|
1131
|
+
const response = await this.v2ElectricityRtoDailyRegionSubBaDataFacetFacetIdGetRaw(requestParameters, initOverrides);
|
|
1132
|
+
return await response.value();
|
|
1133
|
+
}
|
|
1134
|
+
|
|
1135
|
+
/**
|
|
1136
|
+
* Creates request options for v2ElectricityRtoDailyRegionSubBaDataFacetGet without sending the request
|
|
1137
|
+
*/
|
|
1138
|
+
async v2ElectricityRtoDailyRegionSubBaDataFacetGetRequestOpts(): Promise<runtime.RequestOpts> {
|
|
1139
|
+
const queryParameters: any = {};
|
|
1140
|
+
|
|
1141
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1142
|
+
|
|
1143
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1144
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
1145
|
+
}
|
|
1146
|
+
|
|
1147
|
+
|
|
1148
|
+
let urlPath = `/v2/electricity/rto/daily-region-sub-ba-data/facet`;
|
|
1149
|
+
|
|
1150
|
+
return {
|
|
1151
|
+
path: urlPath,
|
|
1152
|
+
method: 'GET',
|
|
1153
|
+
headers: headerParameters,
|
|
1154
|
+
query: queryParameters,
|
|
1155
|
+
};
|
|
1156
|
+
}
|
|
1157
|
+
|
|
1158
|
+
/**
|
|
1159
|
+
*/
|
|
1160
|
+
async v2ElectricityRtoDailyRegionSubBaDataFacetGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FacetOptionListContainer>> {
|
|
1161
|
+
const requestOptions = await this.v2ElectricityRtoDailyRegionSubBaDataFacetGetRequestOpts();
|
|
1162
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1163
|
+
|
|
1164
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FacetOptionListContainerFromJSON(jsonValue));
|
|
1165
|
+
}
|
|
1166
|
+
|
|
1167
|
+
/**
|
|
1168
|
+
*/
|
|
1169
|
+
async v2ElectricityRtoDailyRegionSubBaDataFacetGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FacetOptionListContainer> {
|
|
1170
|
+
const response = await this.v2ElectricityRtoDailyRegionSubBaDataFacetGetRaw(initOverrides);
|
|
1171
|
+
return await response.value();
|
|
1172
|
+
}
|
|
1173
|
+
|
|
1174
|
+
/**
|
|
1175
|
+
* Creates request options for v2ElectricityRtoDailyRegionSubBaDataGet without sending the request
|
|
1176
|
+
*/
|
|
1177
|
+
async v2ElectricityRtoDailyRegionSubBaDataGetRequestOpts(): Promise<runtime.RequestOpts> {
|
|
1178
|
+
const queryParameters: any = {};
|
|
1179
|
+
|
|
1180
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1181
|
+
|
|
1182
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1183
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
1184
|
+
}
|
|
1185
|
+
|
|
1186
|
+
|
|
1187
|
+
let urlPath = `/v2/electricity/rto/daily-region-sub-ba-data`;
|
|
1188
|
+
|
|
1189
|
+
return {
|
|
1190
|
+
path: urlPath,
|
|
1191
|
+
method: 'GET',
|
|
1192
|
+
headers: headerParameters,
|
|
1193
|
+
query: queryParameters,
|
|
1194
|
+
};
|
|
1195
|
+
}
|
|
1196
|
+
|
|
1197
|
+
/**
|
|
1198
|
+
*/
|
|
1199
|
+
async v2ElectricityRtoDailyRegionSubBaDataGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FinalRouteResponseContainer>> {
|
|
1200
|
+
const requestOptions = await this.v2ElectricityRtoDailyRegionSubBaDataGetRequestOpts();
|
|
1201
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1202
|
+
|
|
1203
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FinalRouteResponseContainerFromJSON(jsonValue));
|
|
1204
|
+
}
|
|
1205
|
+
|
|
1206
|
+
/**
|
|
1207
|
+
*/
|
|
1208
|
+
async v2ElectricityRtoDailyRegionSubBaDataGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FinalRouteResponseContainer> {
|
|
1209
|
+
const response = await this.v2ElectricityRtoDailyRegionSubBaDataGetRaw(initOverrides);
|
|
1210
|
+
return await response.value();
|
|
1211
|
+
}
|
|
1212
|
+
|
|
1213
|
+
/**
|
|
1214
|
+
* Creates request options for v2ElectricityRtoFuelTypeDataDataGet without sending the request
|
|
1215
|
+
*/
|
|
1216
|
+
async v2ElectricityRtoFuelTypeDataDataGetRequestOpts(requestParameters: V2ElectricityRtoFuelTypeDataDataGetRequest): Promise<runtime.RequestOpts> {
|
|
1217
|
+
const queryParameters: any = {};
|
|
1218
|
+
|
|
1219
|
+
if (requestParameters['data'] != null) {
|
|
1220
|
+
queryParameters['data'] = requestParameters['data'];
|
|
1221
|
+
}
|
|
1222
|
+
|
|
1223
|
+
if (requestParameters['facets'] != null) {
|
|
1224
|
+
queryParameters['facets'] = requestParameters['facets'];
|
|
1225
|
+
}
|
|
1226
|
+
|
|
1227
|
+
if (requestParameters['frequency'] != null) {
|
|
1228
|
+
queryParameters['frequency'] = requestParameters['frequency'];
|
|
1229
|
+
}
|
|
1230
|
+
|
|
1231
|
+
if (requestParameters['start'] != null) {
|
|
1232
|
+
queryParameters['start'] = requestParameters['start'];
|
|
1233
|
+
}
|
|
1234
|
+
|
|
1235
|
+
if (requestParameters['end'] != null) {
|
|
1236
|
+
queryParameters['end'] = requestParameters['end'];
|
|
1237
|
+
}
|
|
1238
|
+
|
|
1239
|
+
if (requestParameters['sort'] != null) {
|
|
1240
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
1241
|
+
}
|
|
1242
|
+
|
|
1243
|
+
if (requestParameters['length'] != null) {
|
|
1244
|
+
queryParameters['length'] = requestParameters['length'];
|
|
1245
|
+
}
|
|
1246
|
+
|
|
1247
|
+
if (requestParameters['offset'] != null) {
|
|
1248
|
+
queryParameters['offset'] = requestParameters['offset'];
|
|
1249
|
+
}
|
|
1250
|
+
|
|
1251
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1252
|
+
|
|
1253
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1254
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
1255
|
+
}
|
|
1256
|
+
|
|
1257
|
+
|
|
1258
|
+
let urlPath = `/v2/electricity/rto/fuel-type-data/data`;
|
|
1259
|
+
|
|
1260
|
+
return {
|
|
1261
|
+
path: urlPath,
|
|
1262
|
+
method: 'GET',
|
|
1263
|
+
headers: headerParameters,
|
|
1264
|
+
query: queryParameters,
|
|
1265
|
+
};
|
|
1266
|
+
}
|
|
1267
|
+
|
|
1268
|
+
/**
|
|
1269
|
+
* API data with query params
|
|
1270
|
+
*/
|
|
1271
|
+
async v2ElectricityRtoFuelTypeDataDataGetRaw(requestParameters: V2ElectricityRtoFuelTypeDataDataGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataResponseContainer>> {
|
|
1272
|
+
const requestOptions = await this.v2ElectricityRtoFuelTypeDataDataGetRequestOpts(requestParameters);
|
|
1273
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1274
|
+
|
|
1275
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DataResponseContainerFromJSON(jsonValue));
|
|
1276
|
+
}
|
|
1277
|
+
|
|
1278
|
+
/**
|
|
1279
|
+
* API data with query params
|
|
1280
|
+
*/
|
|
1281
|
+
async v2ElectricityRtoFuelTypeDataDataGet(requestParameters: V2ElectricityRtoFuelTypeDataDataGetRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataResponseContainer> {
|
|
1282
|
+
const response = await this.v2ElectricityRtoFuelTypeDataDataGetRaw(requestParameters, initOverrides);
|
|
1283
|
+
return await response.value();
|
|
1284
|
+
}
|
|
1285
|
+
|
|
1286
|
+
/**
|
|
1287
|
+
* Creates request options for v2ElectricityRtoFuelTypeDataDataPost without sending the request
|
|
1288
|
+
*/
|
|
1289
|
+
async v2ElectricityRtoFuelTypeDataDataPostRequestOpts(requestParameters: V2ElectricityRtoFuelTypeDataDataPostRequest): Promise<runtime.RequestOpts> {
|
|
1290
|
+
if (requestParameters['dataParams'] == null) {
|
|
1291
|
+
throw new runtime.RequiredError(
|
|
1292
|
+
'dataParams',
|
|
1293
|
+
'Required parameter "dataParams" was null or undefined when calling v2ElectricityRtoFuelTypeDataDataPost().'
|
|
1294
|
+
);
|
|
1295
|
+
}
|
|
1296
|
+
|
|
1297
|
+
const queryParameters: any = {};
|
|
1298
|
+
|
|
1299
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1300
|
+
|
|
1301
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1302
|
+
|
|
1303
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1304
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
1305
|
+
}
|
|
1306
|
+
|
|
1307
|
+
|
|
1308
|
+
let urlPath = `/v2/electricity/rto/fuel-type-data/data`;
|
|
1309
|
+
|
|
1310
|
+
return {
|
|
1311
|
+
path: urlPath,
|
|
1312
|
+
method: 'POST',
|
|
1313
|
+
headers: headerParameters,
|
|
1314
|
+
query: queryParameters,
|
|
1315
|
+
body: DataParamsToJSON(requestParameters['dataParams']),
|
|
1316
|
+
};
|
|
1317
|
+
}
|
|
1318
|
+
|
|
1319
|
+
/**
|
|
1320
|
+
* Class RegionDataByFuelTypeController Electricity region data set controller.
|
|
1321
|
+
* Return fuel-type Data
|
|
1322
|
+
*/
|
|
1323
|
+
async v2ElectricityRtoFuelTypeDataDataPostRaw(requestParameters: V2ElectricityRtoFuelTypeDataDataPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataResponseContainer>> {
|
|
1324
|
+
const requestOptions = await this.v2ElectricityRtoFuelTypeDataDataPostRequestOpts(requestParameters);
|
|
1325
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1326
|
+
|
|
1327
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DataResponseContainerFromJSON(jsonValue));
|
|
1328
|
+
}
|
|
1329
|
+
|
|
1330
|
+
/**
|
|
1331
|
+
* Class RegionDataByFuelTypeController Electricity region data set controller.
|
|
1332
|
+
* Return fuel-type Data
|
|
1333
|
+
*/
|
|
1334
|
+
async v2ElectricityRtoFuelTypeDataDataPost(requestParameters: V2ElectricityRtoFuelTypeDataDataPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataResponseContainer> {
|
|
1335
|
+
const response = await this.v2ElectricityRtoFuelTypeDataDataPostRaw(requestParameters, initOverrides);
|
|
1336
|
+
return await response.value();
|
|
1337
|
+
}
|
|
1338
|
+
|
|
1339
|
+
/**
|
|
1340
|
+
* Creates request options for v2ElectricityRtoFuelTypeDataFacetFacetIdGet without sending the request
|
|
1341
|
+
*/
|
|
1342
|
+
async v2ElectricityRtoFuelTypeDataFacetFacetIdGetRequestOpts(requestParameters: V2ElectricityRtoFuelTypeDataFacetFacetIdGetRequest): Promise<runtime.RequestOpts> {
|
|
1343
|
+
if (requestParameters['facetId'] == null) {
|
|
1344
|
+
throw new runtime.RequiredError(
|
|
1345
|
+
'facetId',
|
|
1346
|
+
'Required parameter "facetId" was null or undefined when calling v2ElectricityRtoFuelTypeDataFacetFacetIdGet().'
|
|
1347
|
+
);
|
|
1348
|
+
}
|
|
1349
|
+
|
|
1350
|
+
const queryParameters: any = {};
|
|
1351
|
+
|
|
1352
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1353
|
+
|
|
1354
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1355
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
1356
|
+
}
|
|
1357
|
+
|
|
1358
|
+
|
|
1359
|
+
let urlPath = `/v2/electricity/rto/fuel-type-data/facet/{facet_id}`;
|
|
1360
|
+
urlPath = urlPath.replace('{facet_id}', encodeURIComponent(String(requestParameters['facetId'])));
|
|
1361
|
+
|
|
1362
|
+
return {
|
|
1363
|
+
path: urlPath,
|
|
1364
|
+
method: 'GET',
|
|
1365
|
+
headers: headerParameters,
|
|
1366
|
+
query: queryParameters,
|
|
1367
|
+
};
|
|
1368
|
+
}
|
|
1369
|
+
|
|
1370
|
+
/**
|
|
1371
|
+
*/
|
|
1372
|
+
async v2ElectricityRtoFuelTypeDataFacetFacetIdGetRaw(requestParameters: V2ElectricityRtoFuelTypeDataFacetFacetIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FacetDetailsContainer>> {
|
|
1373
|
+
const requestOptions = await this.v2ElectricityRtoFuelTypeDataFacetFacetIdGetRequestOpts(requestParameters);
|
|
1374
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1375
|
+
|
|
1376
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FacetDetailsContainerFromJSON(jsonValue));
|
|
1377
|
+
}
|
|
1378
|
+
|
|
1379
|
+
/**
|
|
1380
|
+
*/
|
|
1381
|
+
async v2ElectricityRtoFuelTypeDataFacetFacetIdGet(requestParameters: V2ElectricityRtoFuelTypeDataFacetFacetIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FacetDetailsContainer> {
|
|
1382
|
+
const response = await this.v2ElectricityRtoFuelTypeDataFacetFacetIdGetRaw(requestParameters, initOverrides);
|
|
1383
|
+
return await response.value();
|
|
1384
|
+
}
|
|
1385
|
+
|
|
1386
|
+
/**
|
|
1387
|
+
* Creates request options for v2ElectricityRtoFuelTypeDataFacetGet without sending the request
|
|
1388
|
+
*/
|
|
1389
|
+
async v2ElectricityRtoFuelTypeDataFacetGetRequestOpts(): Promise<runtime.RequestOpts> {
|
|
1390
|
+
const queryParameters: any = {};
|
|
1391
|
+
|
|
1392
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1393
|
+
|
|
1394
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1395
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
1396
|
+
}
|
|
1397
|
+
|
|
1398
|
+
|
|
1399
|
+
let urlPath = `/v2/electricity/rto/fuel-type-data/facet`;
|
|
1400
|
+
|
|
1401
|
+
return {
|
|
1402
|
+
path: urlPath,
|
|
1403
|
+
method: 'GET',
|
|
1404
|
+
headers: headerParameters,
|
|
1405
|
+
query: queryParameters,
|
|
1406
|
+
};
|
|
1407
|
+
}
|
|
1408
|
+
|
|
1409
|
+
/**
|
|
1410
|
+
*/
|
|
1411
|
+
async v2ElectricityRtoFuelTypeDataFacetGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FacetOptionListContainer>> {
|
|
1412
|
+
const requestOptions = await this.v2ElectricityRtoFuelTypeDataFacetGetRequestOpts();
|
|
1413
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1414
|
+
|
|
1415
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FacetOptionListContainerFromJSON(jsonValue));
|
|
1416
|
+
}
|
|
1417
|
+
|
|
1418
|
+
/**
|
|
1419
|
+
*/
|
|
1420
|
+
async v2ElectricityRtoFuelTypeDataFacetGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FacetOptionListContainer> {
|
|
1421
|
+
const response = await this.v2ElectricityRtoFuelTypeDataFacetGetRaw(initOverrides);
|
|
1422
|
+
return await response.value();
|
|
1423
|
+
}
|
|
1424
|
+
|
|
1425
|
+
/**
|
|
1426
|
+
* Creates request options for v2ElectricityRtoFuelTypeDataGet without sending the request
|
|
1427
|
+
*/
|
|
1428
|
+
async v2ElectricityRtoFuelTypeDataGetRequestOpts(): Promise<runtime.RequestOpts> {
|
|
1429
|
+
const queryParameters: any = {};
|
|
1430
|
+
|
|
1431
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1432
|
+
|
|
1433
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1434
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
1435
|
+
}
|
|
1436
|
+
|
|
1437
|
+
|
|
1438
|
+
let urlPath = `/v2/electricity/rto/fuel-type-data`;
|
|
1439
|
+
|
|
1440
|
+
return {
|
|
1441
|
+
path: urlPath,
|
|
1442
|
+
method: 'GET',
|
|
1443
|
+
headers: headerParameters,
|
|
1444
|
+
query: queryParameters,
|
|
1445
|
+
};
|
|
1446
|
+
}
|
|
1447
|
+
|
|
1448
|
+
/**
|
|
1449
|
+
*/
|
|
1450
|
+
async v2ElectricityRtoFuelTypeDataGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FinalRouteResponseContainer>> {
|
|
1451
|
+
const requestOptions = await this.v2ElectricityRtoFuelTypeDataGetRequestOpts();
|
|
1452
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1453
|
+
|
|
1454
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FinalRouteResponseContainerFromJSON(jsonValue));
|
|
1455
|
+
}
|
|
1456
|
+
|
|
1457
|
+
/**
|
|
1458
|
+
*/
|
|
1459
|
+
async v2ElectricityRtoFuelTypeDataGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FinalRouteResponseContainer> {
|
|
1460
|
+
const response = await this.v2ElectricityRtoFuelTypeDataGetRaw(initOverrides);
|
|
1461
|
+
return await response.value();
|
|
1462
|
+
}
|
|
1463
|
+
|
|
1464
|
+
/**
|
|
1465
|
+
* Creates request options for v2ElectricityRtoGet without sending the request
|
|
1466
|
+
*/
|
|
1467
|
+
async v2ElectricityRtoGetRequestOpts(): Promise<runtime.RequestOpts> {
|
|
1468
|
+
const queryParameters: any = {};
|
|
1469
|
+
|
|
1470
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1471
|
+
|
|
1472
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1473
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
1474
|
+
}
|
|
1475
|
+
|
|
1476
|
+
|
|
1477
|
+
let urlPath = `/v2/electricity/rto`;
|
|
1478
|
+
|
|
1479
|
+
return {
|
|
1480
|
+
path: urlPath,
|
|
1481
|
+
method: 'GET',
|
|
1482
|
+
headers: headerParameters,
|
|
1483
|
+
query: queryParameters,
|
|
1484
|
+
};
|
|
1485
|
+
}
|
|
1486
|
+
|
|
1487
|
+
/**
|
|
1488
|
+
* RTO data set top-level controller.
|
|
1489
|
+
* Class RTOController
|
|
1490
|
+
*/
|
|
1491
|
+
async v2ElectricityRtoGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RouteResponseContainer>> {
|
|
1492
|
+
const requestOptions = await this.v2ElectricityRtoGetRequestOpts();
|
|
1493
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1494
|
+
|
|
1495
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RouteResponseContainerFromJSON(jsonValue));
|
|
1496
|
+
}
|
|
1497
|
+
|
|
1498
|
+
/**
|
|
1499
|
+
* RTO data set top-level controller.
|
|
1500
|
+
* Class RTOController
|
|
1501
|
+
*/
|
|
1502
|
+
async v2ElectricityRtoGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RouteResponseContainer> {
|
|
1503
|
+
const response = await this.v2ElectricityRtoGetRaw(initOverrides);
|
|
1504
|
+
return await response.value();
|
|
1505
|
+
}
|
|
1506
|
+
|
|
1507
|
+
/**
|
|
1508
|
+
* Creates request options for v2ElectricityRtoInterchangeDataDataGet without sending the request
|
|
1509
|
+
*/
|
|
1510
|
+
async v2ElectricityRtoInterchangeDataDataGetRequestOpts(requestParameters: V2ElectricityRtoInterchangeDataDataGetRequest): Promise<runtime.RequestOpts> {
|
|
1511
|
+
const queryParameters: any = {};
|
|
1512
|
+
|
|
1513
|
+
if (requestParameters['data'] != null) {
|
|
1514
|
+
queryParameters['data'] = requestParameters['data'];
|
|
1515
|
+
}
|
|
1516
|
+
|
|
1517
|
+
if (requestParameters['facets'] != null) {
|
|
1518
|
+
queryParameters['facets'] = requestParameters['facets'];
|
|
1519
|
+
}
|
|
1520
|
+
|
|
1521
|
+
if (requestParameters['frequency'] != null) {
|
|
1522
|
+
queryParameters['frequency'] = requestParameters['frequency'];
|
|
1523
|
+
}
|
|
1524
|
+
|
|
1525
|
+
if (requestParameters['start'] != null) {
|
|
1526
|
+
queryParameters['start'] = requestParameters['start'];
|
|
1527
|
+
}
|
|
1528
|
+
|
|
1529
|
+
if (requestParameters['end'] != null) {
|
|
1530
|
+
queryParameters['end'] = requestParameters['end'];
|
|
1531
|
+
}
|
|
1532
|
+
|
|
1533
|
+
if (requestParameters['sort'] != null) {
|
|
1534
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
1535
|
+
}
|
|
1536
|
+
|
|
1537
|
+
if (requestParameters['length'] != null) {
|
|
1538
|
+
queryParameters['length'] = requestParameters['length'];
|
|
1539
|
+
}
|
|
1540
|
+
|
|
1541
|
+
if (requestParameters['offset'] != null) {
|
|
1542
|
+
queryParameters['offset'] = requestParameters['offset'];
|
|
1543
|
+
}
|
|
1544
|
+
|
|
1545
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1546
|
+
|
|
1547
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1548
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
1549
|
+
}
|
|
1550
|
+
|
|
1551
|
+
|
|
1552
|
+
let urlPath = `/v2/electricity/rto/interchange-data/data`;
|
|
1553
|
+
|
|
1554
|
+
return {
|
|
1555
|
+
path: urlPath,
|
|
1556
|
+
method: 'GET',
|
|
1557
|
+
headers: headerParameters,
|
|
1558
|
+
query: queryParameters,
|
|
1559
|
+
};
|
|
1560
|
+
}
|
|
1561
|
+
|
|
1562
|
+
/**
|
|
1563
|
+
* API data with query params
|
|
1564
|
+
*/
|
|
1565
|
+
async v2ElectricityRtoInterchangeDataDataGetRaw(requestParameters: V2ElectricityRtoInterchangeDataDataGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataResponseContainer>> {
|
|
1566
|
+
const requestOptions = await this.v2ElectricityRtoInterchangeDataDataGetRequestOpts(requestParameters);
|
|
1567
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1568
|
+
|
|
1569
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DataResponseContainerFromJSON(jsonValue));
|
|
1570
|
+
}
|
|
1571
|
+
|
|
1572
|
+
/**
|
|
1573
|
+
* API data with query params
|
|
1574
|
+
*/
|
|
1575
|
+
async v2ElectricityRtoInterchangeDataDataGet(requestParameters: V2ElectricityRtoInterchangeDataDataGetRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataResponseContainer> {
|
|
1576
|
+
const response = await this.v2ElectricityRtoInterchangeDataDataGetRaw(requestParameters, initOverrides);
|
|
1577
|
+
return await response.value();
|
|
1578
|
+
}
|
|
1579
|
+
|
|
1580
|
+
/**
|
|
1581
|
+
* Creates request options for v2ElectricityRtoInterchangeDataDataPost without sending the request
|
|
1582
|
+
*/
|
|
1583
|
+
async v2ElectricityRtoInterchangeDataDataPostRequestOpts(requestParameters: V2ElectricityRtoInterchangeDataDataPostRequest): Promise<runtime.RequestOpts> {
|
|
1584
|
+
if (requestParameters['dataParams'] == null) {
|
|
1585
|
+
throw new runtime.RequiredError(
|
|
1586
|
+
'dataParams',
|
|
1587
|
+
'Required parameter "dataParams" was null or undefined when calling v2ElectricityRtoInterchangeDataDataPost().'
|
|
1588
|
+
);
|
|
1589
|
+
}
|
|
1590
|
+
|
|
1591
|
+
const queryParameters: any = {};
|
|
1592
|
+
|
|
1593
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1594
|
+
|
|
1595
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1596
|
+
|
|
1597
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1598
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
1599
|
+
}
|
|
1600
|
+
|
|
1601
|
+
|
|
1602
|
+
let urlPath = `/v2/electricity/rto/interchange-data/data`;
|
|
1603
|
+
|
|
1604
|
+
return {
|
|
1605
|
+
path: urlPath,
|
|
1606
|
+
method: 'POST',
|
|
1607
|
+
headers: headerParameters,
|
|
1608
|
+
query: queryParameters,
|
|
1609
|
+
body: DataParamsToJSON(requestParameters['dataParams']),
|
|
1610
|
+
};
|
|
1611
|
+
}
|
|
1612
|
+
|
|
1613
|
+
/**
|
|
1614
|
+
* Class InterchangeDataController Electricity retail sales data set controller.
|
|
1615
|
+
* Return interchange Data
|
|
1616
|
+
*/
|
|
1617
|
+
async v2ElectricityRtoInterchangeDataDataPostRaw(requestParameters: V2ElectricityRtoInterchangeDataDataPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataResponseContainer>> {
|
|
1618
|
+
const requestOptions = await this.v2ElectricityRtoInterchangeDataDataPostRequestOpts(requestParameters);
|
|
1619
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1620
|
+
|
|
1621
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DataResponseContainerFromJSON(jsonValue));
|
|
1622
|
+
}
|
|
1623
|
+
|
|
1624
|
+
/**
|
|
1625
|
+
* Class InterchangeDataController Electricity retail sales data set controller.
|
|
1626
|
+
* Return interchange Data
|
|
1627
|
+
*/
|
|
1628
|
+
async v2ElectricityRtoInterchangeDataDataPost(requestParameters: V2ElectricityRtoInterchangeDataDataPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataResponseContainer> {
|
|
1629
|
+
const response = await this.v2ElectricityRtoInterchangeDataDataPostRaw(requestParameters, initOverrides);
|
|
1630
|
+
return await response.value();
|
|
1631
|
+
}
|
|
1632
|
+
|
|
1633
|
+
/**
|
|
1634
|
+
* Creates request options for v2ElectricityRtoInterchangeDataFacetFacetIdGet without sending the request
|
|
1635
|
+
*/
|
|
1636
|
+
async v2ElectricityRtoInterchangeDataFacetFacetIdGetRequestOpts(requestParameters: V2ElectricityRtoInterchangeDataFacetFacetIdGetRequest): Promise<runtime.RequestOpts> {
|
|
1637
|
+
if (requestParameters['facetId'] == null) {
|
|
1638
|
+
throw new runtime.RequiredError(
|
|
1639
|
+
'facetId',
|
|
1640
|
+
'Required parameter "facetId" was null or undefined when calling v2ElectricityRtoInterchangeDataFacetFacetIdGet().'
|
|
1641
|
+
);
|
|
1642
|
+
}
|
|
1643
|
+
|
|
1644
|
+
const queryParameters: any = {};
|
|
1645
|
+
|
|
1646
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1647
|
+
|
|
1648
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1649
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
1650
|
+
}
|
|
1651
|
+
|
|
1652
|
+
|
|
1653
|
+
let urlPath = `/v2/electricity/rto/interchange-data/facet/{facet_id}`;
|
|
1654
|
+
urlPath = urlPath.replace('{facet_id}', encodeURIComponent(String(requestParameters['facetId'])));
|
|
1655
|
+
|
|
1656
|
+
return {
|
|
1657
|
+
path: urlPath,
|
|
1658
|
+
method: 'GET',
|
|
1659
|
+
headers: headerParameters,
|
|
1660
|
+
query: queryParameters,
|
|
1661
|
+
};
|
|
1662
|
+
}
|
|
1663
|
+
|
|
1664
|
+
/**
|
|
1665
|
+
*/
|
|
1666
|
+
async v2ElectricityRtoInterchangeDataFacetFacetIdGetRaw(requestParameters: V2ElectricityRtoInterchangeDataFacetFacetIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FacetDetailsContainer>> {
|
|
1667
|
+
const requestOptions = await this.v2ElectricityRtoInterchangeDataFacetFacetIdGetRequestOpts(requestParameters);
|
|
1668
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1669
|
+
|
|
1670
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FacetDetailsContainerFromJSON(jsonValue));
|
|
1671
|
+
}
|
|
1672
|
+
|
|
1673
|
+
/**
|
|
1674
|
+
*/
|
|
1675
|
+
async v2ElectricityRtoInterchangeDataFacetFacetIdGet(requestParameters: V2ElectricityRtoInterchangeDataFacetFacetIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FacetDetailsContainer> {
|
|
1676
|
+
const response = await this.v2ElectricityRtoInterchangeDataFacetFacetIdGetRaw(requestParameters, initOverrides);
|
|
1677
|
+
return await response.value();
|
|
1678
|
+
}
|
|
1679
|
+
|
|
1680
|
+
/**
|
|
1681
|
+
* Creates request options for v2ElectricityRtoInterchangeDataFacetGet without sending the request
|
|
1682
|
+
*/
|
|
1683
|
+
async v2ElectricityRtoInterchangeDataFacetGetRequestOpts(): Promise<runtime.RequestOpts> {
|
|
1684
|
+
const queryParameters: any = {};
|
|
1685
|
+
|
|
1686
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1687
|
+
|
|
1688
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1689
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
1690
|
+
}
|
|
1691
|
+
|
|
1692
|
+
|
|
1693
|
+
let urlPath = `/v2/electricity/rto/interchange-data/facet`;
|
|
1694
|
+
|
|
1695
|
+
return {
|
|
1696
|
+
path: urlPath,
|
|
1697
|
+
method: 'GET',
|
|
1698
|
+
headers: headerParameters,
|
|
1699
|
+
query: queryParameters,
|
|
1700
|
+
};
|
|
1701
|
+
}
|
|
1702
|
+
|
|
1703
|
+
/**
|
|
1704
|
+
*/
|
|
1705
|
+
async v2ElectricityRtoInterchangeDataFacetGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FacetOptionListContainer>> {
|
|
1706
|
+
const requestOptions = await this.v2ElectricityRtoInterchangeDataFacetGetRequestOpts();
|
|
1707
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1708
|
+
|
|
1709
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FacetOptionListContainerFromJSON(jsonValue));
|
|
1710
|
+
}
|
|
1711
|
+
|
|
1712
|
+
/**
|
|
1713
|
+
*/
|
|
1714
|
+
async v2ElectricityRtoInterchangeDataFacetGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FacetOptionListContainer> {
|
|
1715
|
+
const response = await this.v2ElectricityRtoInterchangeDataFacetGetRaw(initOverrides);
|
|
1716
|
+
return await response.value();
|
|
1717
|
+
}
|
|
1718
|
+
|
|
1719
|
+
/**
|
|
1720
|
+
* Creates request options for v2ElectricityRtoInterchangeDataGet without sending the request
|
|
1721
|
+
*/
|
|
1722
|
+
async v2ElectricityRtoInterchangeDataGetRequestOpts(): Promise<runtime.RequestOpts> {
|
|
1723
|
+
const queryParameters: any = {};
|
|
1724
|
+
|
|
1725
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1726
|
+
|
|
1727
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1728
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
1729
|
+
}
|
|
1730
|
+
|
|
1731
|
+
|
|
1732
|
+
let urlPath = `/v2/electricity/rto/interchange-data`;
|
|
1733
|
+
|
|
1734
|
+
return {
|
|
1735
|
+
path: urlPath,
|
|
1736
|
+
method: 'GET',
|
|
1737
|
+
headers: headerParameters,
|
|
1738
|
+
query: queryParameters,
|
|
1739
|
+
};
|
|
1740
|
+
}
|
|
1741
|
+
|
|
1742
|
+
/**
|
|
1743
|
+
*/
|
|
1744
|
+
async v2ElectricityRtoInterchangeDataGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FinalRouteResponseContainer>> {
|
|
1745
|
+
const requestOptions = await this.v2ElectricityRtoInterchangeDataGetRequestOpts();
|
|
1746
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1747
|
+
|
|
1748
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FinalRouteResponseContainerFromJSON(jsonValue));
|
|
1749
|
+
}
|
|
1750
|
+
|
|
1751
|
+
/**
|
|
1752
|
+
*/
|
|
1753
|
+
async v2ElectricityRtoInterchangeDataGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FinalRouteResponseContainer> {
|
|
1754
|
+
const response = await this.v2ElectricityRtoInterchangeDataGetRaw(initOverrides);
|
|
1755
|
+
return await response.value();
|
|
1756
|
+
}
|
|
1757
|
+
|
|
1758
|
+
/**
|
|
1759
|
+
* Creates request options for v2ElectricityRtoRegionDataDataGet without sending the request
|
|
1760
|
+
*/
|
|
1761
|
+
async v2ElectricityRtoRegionDataDataGetRequestOpts(requestParameters: V2ElectricityRtoRegionDataDataGetRequest): Promise<runtime.RequestOpts> {
|
|
1762
|
+
const queryParameters: any = {};
|
|
1763
|
+
|
|
1764
|
+
if (requestParameters['data'] != null) {
|
|
1765
|
+
queryParameters['data'] = requestParameters['data'];
|
|
1766
|
+
}
|
|
1767
|
+
|
|
1768
|
+
if (requestParameters['facets'] != null) {
|
|
1769
|
+
queryParameters['facets'] = requestParameters['facets'];
|
|
1770
|
+
}
|
|
1771
|
+
|
|
1772
|
+
if (requestParameters['frequency'] != null) {
|
|
1773
|
+
queryParameters['frequency'] = requestParameters['frequency'];
|
|
1774
|
+
}
|
|
1775
|
+
|
|
1776
|
+
if (requestParameters['start'] != null) {
|
|
1777
|
+
queryParameters['start'] = requestParameters['start'];
|
|
1778
|
+
}
|
|
1779
|
+
|
|
1780
|
+
if (requestParameters['end'] != null) {
|
|
1781
|
+
queryParameters['end'] = requestParameters['end'];
|
|
1782
|
+
}
|
|
1783
|
+
|
|
1784
|
+
if (requestParameters['sort'] != null) {
|
|
1785
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
1786
|
+
}
|
|
1787
|
+
|
|
1788
|
+
if (requestParameters['length'] != null) {
|
|
1789
|
+
queryParameters['length'] = requestParameters['length'];
|
|
1790
|
+
}
|
|
1791
|
+
|
|
1792
|
+
if (requestParameters['offset'] != null) {
|
|
1793
|
+
queryParameters['offset'] = requestParameters['offset'];
|
|
1794
|
+
}
|
|
1795
|
+
|
|
1796
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1797
|
+
|
|
1798
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1799
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
1800
|
+
}
|
|
1801
|
+
|
|
1802
|
+
|
|
1803
|
+
let urlPath = `/v2/electricity/rto/region-data/data`;
|
|
1804
|
+
|
|
1805
|
+
return {
|
|
1806
|
+
path: urlPath,
|
|
1807
|
+
method: 'GET',
|
|
1808
|
+
headers: headerParameters,
|
|
1809
|
+
query: queryParameters,
|
|
1810
|
+
};
|
|
1811
|
+
}
|
|
1812
|
+
|
|
1813
|
+
/**
|
|
1814
|
+
* API data with query params
|
|
1815
|
+
*/
|
|
1816
|
+
async v2ElectricityRtoRegionDataDataGetRaw(requestParameters: V2ElectricityRtoRegionDataDataGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataResponseContainer>> {
|
|
1817
|
+
const requestOptions = await this.v2ElectricityRtoRegionDataDataGetRequestOpts(requestParameters);
|
|
1818
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1819
|
+
|
|
1820
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DataResponseContainerFromJSON(jsonValue));
|
|
1821
|
+
}
|
|
1822
|
+
|
|
1823
|
+
/**
|
|
1824
|
+
* API data with query params
|
|
1825
|
+
*/
|
|
1826
|
+
async v2ElectricityRtoRegionDataDataGet(requestParameters: V2ElectricityRtoRegionDataDataGetRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataResponseContainer> {
|
|
1827
|
+
const response = await this.v2ElectricityRtoRegionDataDataGetRaw(requestParameters, initOverrides);
|
|
1828
|
+
return await response.value();
|
|
1829
|
+
}
|
|
1830
|
+
|
|
1831
|
+
/**
|
|
1832
|
+
* Creates request options for v2ElectricityRtoRegionDataDataPost without sending the request
|
|
1833
|
+
*/
|
|
1834
|
+
async v2ElectricityRtoRegionDataDataPostRequestOpts(requestParameters: V2ElectricityRtoRegionDataDataPostRequest): Promise<runtime.RequestOpts> {
|
|
1835
|
+
if (requestParameters['dataParams'] == null) {
|
|
1836
|
+
throw new runtime.RequiredError(
|
|
1837
|
+
'dataParams',
|
|
1838
|
+
'Required parameter "dataParams" was null or undefined when calling v2ElectricityRtoRegionDataDataPost().'
|
|
1839
|
+
);
|
|
1840
|
+
}
|
|
1841
|
+
|
|
1842
|
+
const queryParameters: any = {};
|
|
1843
|
+
|
|
1844
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1845
|
+
|
|
1846
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1847
|
+
|
|
1848
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1849
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
1850
|
+
}
|
|
1851
|
+
|
|
1852
|
+
|
|
1853
|
+
let urlPath = `/v2/electricity/rto/region-data/data`;
|
|
1854
|
+
|
|
1855
|
+
return {
|
|
1856
|
+
path: urlPath,
|
|
1857
|
+
method: 'POST',
|
|
1858
|
+
headers: headerParameters,
|
|
1859
|
+
query: queryParameters,
|
|
1860
|
+
body: DataParamsToJSON(requestParameters['dataParams']),
|
|
1861
|
+
};
|
|
1862
|
+
}
|
|
1863
|
+
|
|
1864
|
+
/**
|
|
1865
|
+
* Class RegionDataController Electricity retail sales data set controller.
|
|
1866
|
+
* Return region Data
|
|
1867
|
+
*/
|
|
1868
|
+
async v2ElectricityRtoRegionDataDataPostRaw(requestParameters: V2ElectricityRtoRegionDataDataPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataResponseContainer>> {
|
|
1869
|
+
const requestOptions = await this.v2ElectricityRtoRegionDataDataPostRequestOpts(requestParameters);
|
|
1870
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1871
|
+
|
|
1872
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DataResponseContainerFromJSON(jsonValue));
|
|
1873
|
+
}
|
|
1874
|
+
|
|
1875
|
+
/**
|
|
1876
|
+
* Class RegionDataController Electricity retail sales data set controller.
|
|
1877
|
+
* Return region Data
|
|
1878
|
+
*/
|
|
1879
|
+
async v2ElectricityRtoRegionDataDataPost(requestParameters: V2ElectricityRtoRegionDataDataPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataResponseContainer> {
|
|
1880
|
+
const response = await this.v2ElectricityRtoRegionDataDataPostRaw(requestParameters, initOverrides);
|
|
1881
|
+
return await response.value();
|
|
1882
|
+
}
|
|
1883
|
+
|
|
1884
|
+
/**
|
|
1885
|
+
* Creates request options for v2ElectricityRtoRegionDataFacetFacetIdGet without sending the request
|
|
1886
|
+
*/
|
|
1887
|
+
async v2ElectricityRtoRegionDataFacetFacetIdGetRequestOpts(requestParameters: V2ElectricityRtoRegionDataFacetFacetIdGetRequest): Promise<runtime.RequestOpts> {
|
|
1888
|
+
if (requestParameters['facetId'] == null) {
|
|
1889
|
+
throw new runtime.RequiredError(
|
|
1890
|
+
'facetId',
|
|
1891
|
+
'Required parameter "facetId" was null or undefined when calling v2ElectricityRtoRegionDataFacetFacetIdGet().'
|
|
1892
|
+
);
|
|
1893
|
+
}
|
|
1894
|
+
|
|
1895
|
+
const queryParameters: any = {};
|
|
1896
|
+
|
|
1897
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1898
|
+
|
|
1899
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1900
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
1901
|
+
}
|
|
1902
|
+
|
|
1903
|
+
|
|
1904
|
+
let urlPath = `/v2/electricity/rto/region-data/facet/{facet_id}`;
|
|
1905
|
+
urlPath = urlPath.replace('{facet_id}', encodeURIComponent(String(requestParameters['facetId'])));
|
|
1906
|
+
|
|
1907
|
+
return {
|
|
1908
|
+
path: urlPath,
|
|
1909
|
+
method: 'GET',
|
|
1910
|
+
headers: headerParameters,
|
|
1911
|
+
query: queryParameters,
|
|
1912
|
+
};
|
|
1913
|
+
}
|
|
1914
|
+
|
|
1915
|
+
/**
|
|
1916
|
+
*/
|
|
1917
|
+
async v2ElectricityRtoRegionDataFacetFacetIdGetRaw(requestParameters: V2ElectricityRtoRegionDataFacetFacetIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FacetDetailsContainer>> {
|
|
1918
|
+
const requestOptions = await this.v2ElectricityRtoRegionDataFacetFacetIdGetRequestOpts(requestParameters);
|
|
1919
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1920
|
+
|
|
1921
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FacetDetailsContainerFromJSON(jsonValue));
|
|
1922
|
+
}
|
|
1923
|
+
|
|
1924
|
+
/**
|
|
1925
|
+
*/
|
|
1926
|
+
async v2ElectricityRtoRegionDataFacetFacetIdGet(requestParameters: V2ElectricityRtoRegionDataFacetFacetIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FacetDetailsContainer> {
|
|
1927
|
+
const response = await this.v2ElectricityRtoRegionDataFacetFacetIdGetRaw(requestParameters, initOverrides);
|
|
1928
|
+
return await response.value();
|
|
1929
|
+
}
|
|
1930
|
+
|
|
1931
|
+
/**
|
|
1932
|
+
* Creates request options for v2ElectricityRtoRegionDataFacetGet without sending the request
|
|
1933
|
+
*/
|
|
1934
|
+
async v2ElectricityRtoRegionDataFacetGetRequestOpts(): Promise<runtime.RequestOpts> {
|
|
1935
|
+
const queryParameters: any = {};
|
|
1936
|
+
|
|
1937
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1938
|
+
|
|
1939
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1940
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
1941
|
+
}
|
|
1942
|
+
|
|
1943
|
+
|
|
1944
|
+
let urlPath = `/v2/electricity/rto/region-data/facet`;
|
|
1945
|
+
|
|
1946
|
+
return {
|
|
1947
|
+
path: urlPath,
|
|
1948
|
+
method: 'GET',
|
|
1949
|
+
headers: headerParameters,
|
|
1950
|
+
query: queryParameters,
|
|
1951
|
+
};
|
|
1952
|
+
}
|
|
1953
|
+
|
|
1954
|
+
/**
|
|
1955
|
+
*/
|
|
1956
|
+
async v2ElectricityRtoRegionDataFacetGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FacetOptionListContainer>> {
|
|
1957
|
+
const requestOptions = await this.v2ElectricityRtoRegionDataFacetGetRequestOpts();
|
|
1958
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1959
|
+
|
|
1960
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FacetOptionListContainerFromJSON(jsonValue));
|
|
1961
|
+
}
|
|
1962
|
+
|
|
1963
|
+
/**
|
|
1964
|
+
*/
|
|
1965
|
+
async v2ElectricityRtoRegionDataFacetGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FacetOptionListContainer> {
|
|
1966
|
+
const response = await this.v2ElectricityRtoRegionDataFacetGetRaw(initOverrides);
|
|
1967
|
+
return await response.value();
|
|
1968
|
+
}
|
|
1969
|
+
|
|
1970
|
+
/**
|
|
1971
|
+
* Creates request options for v2ElectricityRtoRegionDataGet without sending the request
|
|
1972
|
+
*/
|
|
1973
|
+
async v2ElectricityRtoRegionDataGetRequestOpts(): Promise<runtime.RequestOpts> {
|
|
1974
|
+
const queryParameters: any = {};
|
|
1975
|
+
|
|
1976
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1977
|
+
|
|
1978
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1979
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
1980
|
+
}
|
|
1981
|
+
|
|
1982
|
+
|
|
1983
|
+
let urlPath = `/v2/electricity/rto/region-data`;
|
|
1984
|
+
|
|
1985
|
+
return {
|
|
1986
|
+
path: urlPath,
|
|
1987
|
+
method: 'GET',
|
|
1988
|
+
headers: headerParameters,
|
|
1989
|
+
query: queryParameters,
|
|
1990
|
+
};
|
|
1991
|
+
}
|
|
1992
|
+
|
|
1993
|
+
/**
|
|
1994
|
+
*/
|
|
1995
|
+
async v2ElectricityRtoRegionDataGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FinalRouteResponseContainer>> {
|
|
1996
|
+
const requestOptions = await this.v2ElectricityRtoRegionDataGetRequestOpts();
|
|
1997
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1998
|
+
|
|
1999
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FinalRouteResponseContainerFromJSON(jsonValue));
|
|
2000
|
+
}
|
|
2001
|
+
|
|
2002
|
+
/**
|
|
2003
|
+
*/
|
|
2004
|
+
async v2ElectricityRtoRegionDataGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FinalRouteResponseContainer> {
|
|
2005
|
+
const response = await this.v2ElectricityRtoRegionDataGetRaw(initOverrides);
|
|
2006
|
+
return await response.value();
|
|
2007
|
+
}
|
|
2008
|
+
|
|
2009
|
+
/**
|
|
2010
|
+
* Creates request options for v2ElectricityRtoRegionSubBaDataDataGet without sending the request
|
|
2011
|
+
*/
|
|
2012
|
+
async v2ElectricityRtoRegionSubBaDataDataGetRequestOpts(requestParameters: V2ElectricityRtoRegionSubBaDataDataGetRequest): Promise<runtime.RequestOpts> {
|
|
2013
|
+
const queryParameters: any = {};
|
|
2014
|
+
|
|
2015
|
+
if (requestParameters['data'] != null) {
|
|
2016
|
+
queryParameters['data'] = requestParameters['data'];
|
|
2017
|
+
}
|
|
2018
|
+
|
|
2019
|
+
if (requestParameters['facets'] != null) {
|
|
2020
|
+
queryParameters['facets'] = requestParameters['facets'];
|
|
2021
|
+
}
|
|
2022
|
+
|
|
2023
|
+
if (requestParameters['frequency'] != null) {
|
|
2024
|
+
queryParameters['frequency'] = requestParameters['frequency'];
|
|
2025
|
+
}
|
|
2026
|
+
|
|
2027
|
+
if (requestParameters['start'] != null) {
|
|
2028
|
+
queryParameters['start'] = requestParameters['start'];
|
|
2029
|
+
}
|
|
2030
|
+
|
|
2031
|
+
if (requestParameters['end'] != null) {
|
|
2032
|
+
queryParameters['end'] = requestParameters['end'];
|
|
2033
|
+
}
|
|
2034
|
+
|
|
2035
|
+
if (requestParameters['sort'] != null) {
|
|
2036
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
2037
|
+
}
|
|
2038
|
+
|
|
2039
|
+
if (requestParameters['length'] != null) {
|
|
2040
|
+
queryParameters['length'] = requestParameters['length'];
|
|
2041
|
+
}
|
|
2042
|
+
|
|
2043
|
+
if (requestParameters['offset'] != null) {
|
|
2044
|
+
queryParameters['offset'] = requestParameters['offset'];
|
|
2045
|
+
}
|
|
2046
|
+
|
|
2047
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
2048
|
+
|
|
2049
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2050
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
2051
|
+
}
|
|
2052
|
+
|
|
2053
|
+
|
|
2054
|
+
let urlPath = `/v2/electricity/rto/region-sub-ba-data/data`;
|
|
2055
|
+
|
|
2056
|
+
return {
|
|
2057
|
+
path: urlPath,
|
|
2058
|
+
method: 'GET',
|
|
2059
|
+
headers: headerParameters,
|
|
2060
|
+
query: queryParameters,
|
|
2061
|
+
};
|
|
2062
|
+
}
|
|
2063
|
+
|
|
2064
|
+
/**
|
|
2065
|
+
* API data with query params
|
|
2066
|
+
*/
|
|
2067
|
+
async v2ElectricityRtoRegionSubBaDataDataGetRaw(requestParameters: V2ElectricityRtoRegionSubBaDataDataGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataResponseContainer>> {
|
|
2068
|
+
const requestOptions = await this.v2ElectricityRtoRegionSubBaDataDataGetRequestOpts(requestParameters);
|
|
2069
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2070
|
+
|
|
2071
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DataResponseContainerFromJSON(jsonValue));
|
|
2072
|
+
}
|
|
2073
|
+
|
|
2074
|
+
/**
|
|
2075
|
+
* API data with query params
|
|
2076
|
+
*/
|
|
2077
|
+
async v2ElectricityRtoRegionSubBaDataDataGet(requestParameters: V2ElectricityRtoRegionSubBaDataDataGetRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataResponseContainer> {
|
|
2078
|
+
const response = await this.v2ElectricityRtoRegionSubBaDataDataGetRaw(requestParameters, initOverrides);
|
|
2079
|
+
return await response.value();
|
|
2080
|
+
}
|
|
2081
|
+
|
|
2082
|
+
/**
|
|
2083
|
+
* Creates request options for v2ElectricityRtoRegionSubBaDataDataPost without sending the request
|
|
2084
|
+
*/
|
|
2085
|
+
async v2ElectricityRtoRegionSubBaDataDataPostRequestOpts(requestParameters: V2ElectricityRtoRegionSubBaDataDataPostRequest): Promise<runtime.RequestOpts> {
|
|
2086
|
+
if (requestParameters['dataParams'] == null) {
|
|
2087
|
+
throw new runtime.RequiredError(
|
|
2088
|
+
'dataParams',
|
|
2089
|
+
'Required parameter "dataParams" was null or undefined when calling v2ElectricityRtoRegionSubBaDataDataPost().'
|
|
2090
|
+
);
|
|
2091
|
+
}
|
|
2092
|
+
|
|
2093
|
+
const queryParameters: any = {};
|
|
2094
|
+
|
|
2095
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
2096
|
+
|
|
2097
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
2098
|
+
|
|
2099
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2100
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
2101
|
+
}
|
|
2102
|
+
|
|
2103
|
+
|
|
2104
|
+
let urlPath = `/v2/electricity/rto/region-sub-ba-data/data`;
|
|
2105
|
+
|
|
2106
|
+
return {
|
|
2107
|
+
path: urlPath,
|
|
2108
|
+
method: 'POST',
|
|
2109
|
+
headers: headerParameters,
|
|
2110
|
+
query: queryParameters,
|
|
2111
|
+
body: DataParamsToJSON(requestParameters['dataParams']),
|
|
2112
|
+
};
|
|
2113
|
+
}
|
|
2114
|
+
|
|
2115
|
+
/**
|
|
2116
|
+
* Class RegionDataBySubBAController Electricity region data by sub ba data set controller.
|
|
2117
|
+
* Return region-sub-ba Data
|
|
2118
|
+
*/
|
|
2119
|
+
async v2ElectricityRtoRegionSubBaDataDataPostRaw(requestParameters: V2ElectricityRtoRegionSubBaDataDataPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataResponseContainer>> {
|
|
2120
|
+
const requestOptions = await this.v2ElectricityRtoRegionSubBaDataDataPostRequestOpts(requestParameters);
|
|
2121
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2122
|
+
|
|
2123
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DataResponseContainerFromJSON(jsonValue));
|
|
2124
|
+
}
|
|
2125
|
+
|
|
2126
|
+
/**
|
|
2127
|
+
* Class RegionDataBySubBAController Electricity region data by sub ba data set controller.
|
|
2128
|
+
* Return region-sub-ba Data
|
|
2129
|
+
*/
|
|
2130
|
+
async v2ElectricityRtoRegionSubBaDataDataPost(requestParameters: V2ElectricityRtoRegionSubBaDataDataPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataResponseContainer> {
|
|
2131
|
+
const response = await this.v2ElectricityRtoRegionSubBaDataDataPostRaw(requestParameters, initOverrides);
|
|
2132
|
+
return await response.value();
|
|
2133
|
+
}
|
|
2134
|
+
|
|
2135
|
+
/**
|
|
2136
|
+
* Creates request options for v2ElectricityRtoRegionSubBaDataFacetFacetIdGet without sending the request
|
|
2137
|
+
*/
|
|
2138
|
+
async v2ElectricityRtoRegionSubBaDataFacetFacetIdGetRequestOpts(requestParameters: V2ElectricityRtoRegionSubBaDataFacetFacetIdGetRequest): Promise<runtime.RequestOpts> {
|
|
2139
|
+
if (requestParameters['facetId'] == null) {
|
|
2140
|
+
throw new runtime.RequiredError(
|
|
2141
|
+
'facetId',
|
|
2142
|
+
'Required parameter "facetId" was null or undefined when calling v2ElectricityRtoRegionSubBaDataFacetFacetIdGet().'
|
|
2143
|
+
);
|
|
2144
|
+
}
|
|
2145
|
+
|
|
2146
|
+
const queryParameters: any = {};
|
|
2147
|
+
|
|
2148
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
2149
|
+
|
|
2150
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2151
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
2152
|
+
}
|
|
2153
|
+
|
|
2154
|
+
|
|
2155
|
+
let urlPath = `/v2/electricity/rto/region-sub-ba-data/facet/{facet_id}`;
|
|
2156
|
+
urlPath = urlPath.replace('{facet_id}', encodeURIComponent(String(requestParameters['facetId'])));
|
|
2157
|
+
|
|
2158
|
+
return {
|
|
2159
|
+
path: urlPath,
|
|
2160
|
+
method: 'GET',
|
|
2161
|
+
headers: headerParameters,
|
|
2162
|
+
query: queryParameters,
|
|
2163
|
+
};
|
|
2164
|
+
}
|
|
2165
|
+
|
|
2166
|
+
/**
|
|
2167
|
+
*/
|
|
2168
|
+
async v2ElectricityRtoRegionSubBaDataFacetFacetIdGetRaw(requestParameters: V2ElectricityRtoRegionSubBaDataFacetFacetIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FacetDetailsContainer>> {
|
|
2169
|
+
const requestOptions = await this.v2ElectricityRtoRegionSubBaDataFacetFacetIdGetRequestOpts(requestParameters);
|
|
2170
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2171
|
+
|
|
2172
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FacetDetailsContainerFromJSON(jsonValue));
|
|
2173
|
+
}
|
|
2174
|
+
|
|
2175
|
+
/**
|
|
2176
|
+
*/
|
|
2177
|
+
async v2ElectricityRtoRegionSubBaDataFacetFacetIdGet(requestParameters: V2ElectricityRtoRegionSubBaDataFacetFacetIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FacetDetailsContainer> {
|
|
2178
|
+
const response = await this.v2ElectricityRtoRegionSubBaDataFacetFacetIdGetRaw(requestParameters, initOverrides);
|
|
2179
|
+
return await response.value();
|
|
2180
|
+
}
|
|
2181
|
+
|
|
2182
|
+
/**
|
|
2183
|
+
* Creates request options for v2ElectricityRtoRegionSubBaDataFacetGet without sending the request
|
|
2184
|
+
*/
|
|
2185
|
+
async v2ElectricityRtoRegionSubBaDataFacetGetRequestOpts(): Promise<runtime.RequestOpts> {
|
|
2186
|
+
const queryParameters: any = {};
|
|
2187
|
+
|
|
2188
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
2189
|
+
|
|
2190
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2191
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
2192
|
+
}
|
|
2193
|
+
|
|
2194
|
+
|
|
2195
|
+
let urlPath = `/v2/electricity/rto/region-sub-ba-data/facet`;
|
|
2196
|
+
|
|
2197
|
+
return {
|
|
2198
|
+
path: urlPath,
|
|
2199
|
+
method: 'GET',
|
|
2200
|
+
headers: headerParameters,
|
|
2201
|
+
query: queryParameters,
|
|
2202
|
+
};
|
|
2203
|
+
}
|
|
2204
|
+
|
|
2205
|
+
/**
|
|
2206
|
+
*/
|
|
2207
|
+
async v2ElectricityRtoRegionSubBaDataFacetGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FacetOptionListContainer>> {
|
|
2208
|
+
const requestOptions = await this.v2ElectricityRtoRegionSubBaDataFacetGetRequestOpts();
|
|
2209
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2210
|
+
|
|
2211
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FacetOptionListContainerFromJSON(jsonValue));
|
|
2212
|
+
}
|
|
2213
|
+
|
|
2214
|
+
/**
|
|
2215
|
+
*/
|
|
2216
|
+
async v2ElectricityRtoRegionSubBaDataFacetGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FacetOptionListContainer> {
|
|
2217
|
+
const response = await this.v2ElectricityRtoRegionSubBaDataFacetGetRaw(initOverrides);
|
|
2218
|
+
return await response.value();
|
|
2219
|
+
}
|
|
2220
|
+
|
|
2221
|
+
/**
|
|
2222
|
+
* Creates request options for v2ElectricityRtoRegionSubBaDataGet without sending the request
|
|
2223
|
+
*/
|
|
2224
|
+
async v2ElectricityRtoRegionSubBaDataGetRequestOpts(): Promise<runtime.RequestOpts> {
|
|
2225
|
+
const queryParameters: any = {};
|
|
2226
|
+
|
|
2227
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
2228
|
+
|
|
2229
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2230
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
2231
|
+
}
|
|
2232
|
+
|
|
2233
|
+
|
|
2234
|
+
let urlPath = `/v2/electricity/rto/region-sub-ba-data`;
|
|
2235
|
+
|
|
2236
|
+
return {
|
|
2237
|
+
path: urlPath,
|
|
2238
|
+
method: 'GET',
|
|
2239
|
+
headers: headerParameters,
|
|
2240
|
+
query: queryParameters,
|
|
2241
|
+
};
|
|
2242
|
+
}
|
|
2243
|
+
|
|
2244
|
+
/**
|
|
2245
|
+
*/
|
|
2246
|
+
async v2ElectricityRtoRegionSubBaDataGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FinalRouteResponseContainer>> {
|
|
2247
|
+
const requestOptions = await this.v2ElectricityRtoRegionSubBaDataGetRequestOpts();
|
|
2248
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2249
|
+
|
|
2250
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FinalRouteResponseContainerFromJSON(jsonValue));
|
|
2251
|
+
}
|
|
2252
|
+
|
|
2253
|
+
/**
|
|
2254
|
+
*/
|
|
2255
|
+
async v2ElectricityRtoRegionSubBaDataGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FinalRouteResponseContainer> {
|
|
2256
|
+
const response = await this.v2ElectricityRtoRegionSubBaDataGetRaw(initOverrides);
|
|
2257
|
+
return await response.value();
|
|
2258
|
+
}
|
|
2259
|
+
|
|
2260
|
+
}
|