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/COALApi.ts
ADDED
|
@@ -0,0 +1,3645 @@
|
|
|
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 V2CoalAggregateProductionDataGetRequest {
|
|
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 V2CoalAggregateProductionDataPostRequest {
|
|
64
|
+
dataParams: DataParams;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export interface V2CoalAggregateProductionFacetFacetIdGetRequest {
|
|
68
|
+
facetId: string;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export interface V2CoalConsumptionAndQualityDataGetRequest {
|
|
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 V2CoalConsumptionAndQualityDataPostRequest {
|
|
83
|
+
dataParams: DataParams;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export interface V2CoalConsumptionAndQualityFacetFacetIdGetRequest {
|
|
87
|
+
facetId: string;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export interface V2CoalExportsImportsQuantityPriceDataGetRequest {
|
|
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 V2CoalExportsImportsQuantityPriceDataPostRequest {
|
|
102
|
+
dataParams: DataParams;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export interface V2CoalExportsImportsQuantityPriceFacetFacetIdGetRequest {
|
|
106
|
+
facetId: string;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export interface V2CoalMarketSalesPriceDataGetRequest {
|
|
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 V2CoalMarketSalesPriceDataPostRequest {
|
|
121
|
+
dataParams: DataParams;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export interface V2CoalMarketSalesPriceFacetFacetIdGetRequest {
|
|
125
|
+
facetId: string;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export interface V2CoalMineProductionDataGetRequest {
|
|
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 V2CoalMineProductionDataPostRequest {
|
|
140
|
+
dataParams: DataParams;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export interface V2CoalMineProductionFacetFacetIdGetRequest {
|
|
144
|
+
facetId: string;
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
export interface V2CoalPriceByRankDataGetRequest {
|
|
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 V2CoalPriceByRankDataPostRequest {
|
|
159
|
+
dataParams: DataParams;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
export interface V2CoalPriceByRankFacetFacetIdGetRequest {
|
|
163
|
+
facetId: string;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
export interface V2CoalReservesCapacityDataGetRequest {
|
|
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 V2CoalReservesCapacityDataPostRequest {
|
|
178
|
+
dataParams: DataParams;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
export interface V2CoalReservesCapacityFacetFacetIdGetRequest {
|
|
182
|
+
facetId: string;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
export interface V2CoalShipmentsByMineByPlantDataGetRequest {
|
|
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 V2CoalShipmentsByMineByPlantDataPostRequest {
|
|
197
|
+
dataParams: DataParams;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
export interface V2CoalShipmentsByMineByPlantFacetFacetIdGetRequest {
|
|
201
|
+
facetId: string;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
export interface V2CoalShipmentsMineAggregatesDataGetRequest {
|
|
205
|
+
data?: Array<string>;
|
|
206
|
+
facets?: object;
|
|
207
|
+
frequency?: string;
|
|
208
|
+
start?: string;
|
|
209
|
+
end?: string;
|
|
210
|
+
sort?: Sort;
|
|
211
|
+
length?: number;
|
|
212
|
+
offset?: number;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
export interface V2CoalShipmentsMineAggregatesDataPostRequest {
|
|
216
|
+
dataParams: DataParams;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
export interface V2CoalShipmentsMineAggregatesFacetFacetIdGetRequest {
|
|
220
|
+
facetId: string;
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
export interface V2CoalShipmentsMineStateAggregatesDataGetRequest {
|
|
224
|
+
data?: Array<string>;
|
|
225
|
+
facets?: object;
|
|
226
|
+
frequency?: string;
|
|
227
|
+
start?: string;
|
|
228
|
+
end?: string;
|
|
229
|
+
sort?: Sort;
|
|
230
|
+
length?: number;
|
|
231
|
+
offset?: number;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
export interface V2CoalShipmentsMineStateAggregatesDataPostRequest {
|
|
235
|
+
dataParams: DataParams;
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
export interface V2CoalShipmentsMineStateAggregatesFacetFacetIdGetRequest {
|
|
239
|
+
facetId: string;
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
export interface V2CoalShipmentsPlantAggregatesDataGetRequest {
|
|
243
|
+
data?: Array<string>;
|
|
244
|
+
facets?: object;
|
|
245
|
+
frequency?: string;
|
|
246
|
+
start?: string;
|
|
247
|
+
end?: string;
|
|
248
|
+
sort?: Sort;
|
|
249
|
+
length?: number;
|
|
250
|
+
offset?: number;
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
export interface V2CoalShipmentsPlantAggregatesDataPostRequest {
|
|
254
|
+
dataParams: DataParams;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
export interface V2CoalShipmentsPlantAggregatesFacetFacetIdGetRequest {
|
|
258
|
+
facetId: string;
|
|
259
|
+
}
|
|
260
|
+
|
|
261
|
+
export interface V2CoalShipmentsPlantStateAggregatesDataGetRequest {
|
|
262
|
+
data?: Array<string>;
|
|
263
|
+
facets?: object;
|
|
264
|
+
frequency?: string;
|
|
265
|
+
start?: string;
|
|
266
|
+
end?: string;
|
|
267
|
+
sort?: Sort;
|
|
268
|
+
length?: number;
|
|
269
|
+
offset?: number;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
export interface V2CoalShipmentsPlantStateAggregatesDataPostRequest {
|
|
273
|
+
dataParams: DataParams;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
export interface V2CoalShipmentsPlantStateAggregatesFacetFacetIdGetRequest {
|
|
277
|
+
facetId: string;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
export interface V2CoalShipmentsReceiptsDataGetRequest {
|
|
281
|
+
data?: Array<string>;
|
|
282
|
+
facets?: object;
|
|
283
|
+
frequency?: string;
|
|
284
|
+
start?: string;
|
|
285
|
+
end?: string;
|
|
286
|
+
sort?: Sort;
|
|
287
|
+
length?: number;
|
|
288
|
+
offset?: number;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
export interface V2CoalShipmentsReceiptsDataPostRequest {
|
|
292
|
+
dataParams: DataParams;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
export interface V2CoalShipmentsReceiptsFacetFacetIdGetRequest {
|
|
296
|
+
facetId: string;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
/**
|
|
300
|
+
*
|
|
301
|
+
*/
|
|
302
|
+
export class COALApi extends runtime.BaseAPI {
|
|
303
|
+
|
|
304
|
+
/**
|
|
305
|
+
* Creates request options for v2CoalAggregateProductionDataGet without sending the request
|
|
306
|
+
*/
|
|
307
|
+
async v2CoalAggregateProductionDataGetRequestOpts(requestParameters: V2CoalAggregateProductionDataGetRequest): Promise<runtime.RequestOpts> {
|
|
308
|
+
const queryParameters: any = {};
|
|
309
|
+
|
|
310
|
+
if (requestParameters['data'] != null) {
|
|
311
|
+
queryParameters['data'] = requestParameters['data'];
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
if (requestParameters['facets'] != null) {
|
|
315
|
+
queryParameters['facets'] = requestParameters['facets'];
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
if (requestParameters['frequency'] != null) {
|
|
319
|
+
queryParameters['frequency'] = requestParameters['frequency'];
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
if (requestParameters['start'] != null) {
|
|
323
|
+
queryParameters['start'] = requestParameters['start'];
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
if (requestParameters['end'] != null) {
|
|
327
|
+
queryParameters['end'] = requestParameters['end'];
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
if (requestParameters['sort'] != null) {
|
|
331
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
if (requestParameters['length'] != null) {
|
|
335
|
+
queryParameters['length'] = requestParameters['length'];
|
|
336
|
+
}
|
|
337
|
+
|
|
338
|
+
if (requestParameters['offset'] != null) {
|
|
339
|
+
queryParameters['offset'] = requestParameters['offset'];
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
343
|
+
|
|
344
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
345
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
|
|
349
|
+
let urlPath = `/v2/coal/aggregate-production/data`;
|
|
350
|
+
|
|
351
|
+
return {
|
|
352
|
+
path: urlPath,
|
|
353
|
+
method: 'GET',
|
|
354
|
+
headers: headerParameters,
|
|
355
|
+
query: queryParameters,
|
|
356
|
+
};
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
/**
|
|
360
|
+
* API data with query params
|
|
361
|
+
*/
|
|
362
|
+
async v2CoalAggregateProductionDataGetRaw(requestParameters: V2CoalAggregateProductionDataGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataResponseContainer>> {
|
|
363
|
+
const requestOptions = await this.v2CoalAggregateProductionDataGetRequestOpts(requestParameters);
|
|
364
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
365
|
+
|
|
366
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DataResponseContainerFromJSON(jsonValue));
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
/**
|
|
370
|
+
* API data with query params
|
|
371
|
+
*/
|
|
372
|
+
async v2CoalAggregateProductionDataGet(requestParameters: V2CoalAggregateProductionDataGetRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataResponseContainer> {
|
|
373
|
+
const response = await this.v2CoalAggregateProductionDataGetRaw(requestParameters, initOverrides);
|
|
374
|
+
return await response.value();
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
/**
|
|
378
|
+
* Creates request options for v2CoalAggregateProductionDataPost without sending the request
|
|
379
|
+
*/
|
|
380
|
+
async v2CoalAggregateProductionDataPostRequestOpts(requestParameters: V2CoalAggregateProductionDataPostRequest): Promise<runtime.RequestOpts> {
|
|
381
|
+
if (requestParameters['dataParams'] == null) {
|
|
382
|
+
throw new runtime.RequiredError(
|
|
383
|
+
'dataParams',
|
|
384
|
+
'Required parameter "dataParams" was null or undefined when calling v2CoalAggregateProductionDataPost().'
|
|
385
|
+
);
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
const queryParameters: any = {};
|
|
389
|
+
|
|
390
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
391
|
+
|
|
392
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
393
|
+
|
|
394
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
395
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
|
|
399
|
+
let urlPath = `/v2/coal/aggregate-production/data`;
|
|
400
|
+
|
|
401
|
+
return {
|
|
402
|
+
path: urlPath,
|
|
403
|
+
method: 'POST',
|
|
404
|
+
headers: headerParameters,
|
|
405
|
+
query: queryParameters,
|
|
406
|
+
body: DataParamsToJSON(requestParameters['dataParams']),
|
|
407
|
+
};
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
/**
|
|
411
|
+
* Class AggregateProductionController Aggregate Production data set top-level controller.
|
|
412
|
+
* Return aggregate-production Data
|
|
413
|
+
*/
|
|
414
|
+
async v2CoalAggregateProductionDataPostRaw(requestParameters: V2CoalAggregateProductionDataPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataResponseContainer>> {
|
|
415
|
+
const requestOptions = await this.v2CoalAggregateProductionDataPostRequestOpts(requestParameters);
|
|
416
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
417
|
+
|
|
418
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DataResponseContainerFromJSON(jsonValue));
|
|
419
|
+
}
|
|
420
|
+
|
|
421
|
+
/**
|
|
422
|
+
* Class AggregateProductionController Aggregate Production data set top-level controller.
|
|
423
|
+
* Return aggregate-production Data
|
|
424
|
+
*/
|
|
425
|
+
async v2CoalAggregateProductionDataPost(requestParameters: V2CoalAggregateProductionDataPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataResponseContainer> {
|
|
426
|
+
const response = await this.v2CoalAggregateProductionDataPostRaw(requestParameters, initOverrides);
|
|
427
|
+
return await response.value();
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
/**
|
|
431
|
+
* Creates request options for v2CoalAggregateProductionFacetFacetIdGet without sending the request
|
|
432
|
+
*/
|
|
433
|
+
async v2CoalAggregateProductionFacetFacetIdGetRequestOpts(requestParameters: V2CoalAggregateProductionFacetFacetIdGetRequest): Promise<runtime.RequestOpts> {
|
|
434
|
+
if (requestParameters['facetId'] == null) {
|
|
435
|
+
throw new runtime.RequiredError(
|
|
436
|
+
'facetId',
|
|
437
|
+
'Required parameter "facetId" was null or undefined when calling v2CoalAggregateProductionFacetFacetIdGet().'
|
|
438
|
+
);
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
const queryParameters: any = {};
|
|
442
|
+
|
|
443
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
444
|
+
|
|
445
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
446
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
|
|
450
|
+
let urlPath = `/v2/coal/aggregate-production/facet/{facet_id}`;
|
|
451
|
+
urlPath = urlPath.replace('{facet_id}', encodeURIComponent(String(requestParameters['facetId'])));
|
|
452
|
+
|
|
453
|
+
return {
|
|
454
|
+
path: urlPath,
|
|
455
|
+
method: 'GET',
|
|
456
|
+
headers: headerParameters,
|
|
457
|
+
query: queryParameters,
|
|
458
|
+
};
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
/**
|
|
462
|
+
*/
|
|
463
|
+
async v2CoalAggregateProductionFacetFacetIdGetRaw(requestParameters: V2CoalAggregateProductionFacetFacetIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FacetDetailsContainer>> {
|
|
464
|
+
const requestOptions = await this.v2CoalAggregateProductionFacetFacetIdGetRequestOpts(requestParameters);
|
|
465
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
466
|
+
|
|
467
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FacetDetailsContainerFromJSON(jsonValue));
|
|
468
|
+
}
|
|
469
|
+
|
|
470
|
+
/**
|
|
471
|
+
*/
|
|
472
|
+
async v2CoalAggregateProductionFacetFacetIdGet(requestParameters: V2CoalAggregateProductionFacetFacetIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FacetDetailsContainer> {
|
|
473
|
+
const response = await this.v2CoalAggregateProductionFacetFacetIdGetRaw(requestParameters, initOverrides);
|
|
474
|
+
return await response.value();
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
/**
|
|
478
|
+
* Creates request options for v2CoalAggregateProductionFacetGet without sending the request
|
|
479
|
+
*/
|
|
480
|
+
async v2CoalAggregateProductionFacetGetRequestOpts(): Promise<runtime.RequestOpts> {
|
|
481
|
+
const queryParameters: any = {};
|
|
482
|
+
|
|
483
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
484
|
+
|
|
485
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
486
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
|
|
490
|
+
let urlPath = `/v2/coal/aggregate-production/facet`;
|
|
491
|
+
|
|
492
|
+
return {
|
|
493
|
+
path: urlPath,
|
|
494
|
+
method: 'GET',
|
|
495
|
+
headers: headerParameters,
|
|
496
|
+
query: queryParameters,
|
|
497
|
+
};
|
|
498
|
+
}
|
|
499
|
+
|
|
500
|
+
/**
|
|
501
|
+
*/
|
|
502
|
+
async v2CoalAggregateProductionFacetGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FacetOptionListContainer>> {
|
|
503
|
+
const requestOptions = await this.v2CoalAggregateProductionFacetGetRequestOpts();
|
|
504
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
505
|
+
|
|
506
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FacetOptionListContainerFromJSON(jsonValue));
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
/**
|
|
510
|
+
*/
|
|
511
|
+
async v2CoalAggregateProductionFacetGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FacetOptionListContainer> {
|
|
512
|
+
const response = await this.v2CoalAggregateProductionFacetGetRaw(initOverrides);
|
|
513
|
+
return await response.value();
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
/**
|
|
517
|
+
* Creates request options for v2CoalAggregateProductionGet without sending the request
|
|
518
|
+
*/
|
|
519
|
+
async v2CoalAggregateProductionGetRequestOpts(): Promise<runtime.RequestOpts> {
|
|
520
|
+
const queryParameters: any = {};
|
|
521
|
+
|
|
522
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
523
|
+
|
|
524
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
525
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
|
|
529
|
+
let urlPath = `/v2/coal/aggregate-production`;
|
|
530
|
+
|
|
531
|
+
return {
|
|
532
|
+
path: urlPath,
|
|
533
|
+
method: 'GET',
|
|
534
|
+
headers: headerParameters,
|
|
535
|
+
query: queryParameters,
|
|
536
|
+
};
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
/**
|
|
540
|
+
*/
|
|
541
|
+
async v2CoalAggregateProductionGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FinalRouteResponseContainer>> {
|
|
542
|
+
const requestOptions = await this.v2CoalAggregateProductionGetRequestOpts();
|
|
543
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
544
|
+
|
|
545
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FinalRouteResponseContainerFromJSON(jsonValue));
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
/**
|
|
549
|
+
*/
|
|
550
|
+
async v2CoalAggregateProductionGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FinalRouteResponseContainer> {
|
|
551
|
+
const response = await this.v2CoalAggregateProductionGetRaw(initOverrides);
|
|
552
|
+
return await response.value();
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
/**
|
|
556
|
+
* Creates request options for v2CoalConsumptionAndQualityDataGet without sending the request
|
|
557
|
+
*/
|
|
558
|
+
async v2CoalConsumptionAndQualityDataGetRequestOpts(requestParameters: V2CoalConsumptionAndQualityDataGetRequest): Promise<runtime.RequestOpts> {
|
|
559
|
+
const queryParameters: any = {};
|
|
560
|
+
|
|
561
|
+
if (requestParameters['data'] != null) {
|
|
562
|
+
queryParameters['data'] = requestParameters['data'];
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
if (requestParameters['facets'] != null) {
|
|
566
|
+
queryParameters['facets'] = requestParameters['facets'];
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
if (requestParameters['frequency'] != null) {
|
|
570
|
+
queryParameters['frequency'] = requestParameters['frequency'];
|
|
571
|
+
}
|
|
572
|
+
|
|
573
|
+
if (requestParameters['start'] != null) {
|
|
574
|
+
queryParameters['start'] = requestParameters['start'];
|
|
575
|
+
}
|
|
576
|
+
|
|
577
|
+
if (requestParameters['end'] != null) {
|
|
578
|
+
queryParameters['end'] = requestParameters['end'];
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
if (requestParameters['sort'] != null) {
|
|
582
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
if (requestParameters['length'] != null) {
|
|
586
|
+
queryParameters['length'] = requestParameters['length'];
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
if (requestParameters['offset'] != null) {
|
|
590
|
+
queryParameters['offset'] = requestParameters['offset'];
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
594
|
+
|
|
595
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
596
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
|
|
600
|
+
let urlPath = `/v2/coal/consumption-and-quality/data`;
|
|
601
|
+
|
|
602
|
+
return {
|
|
603
|
+
path: urlPath,
|
|
604
|
+
method: 'GET',
|
|
605
|
+
headers: headerParameters,
|
|
606
|
+
query: queryParameters,
|
|
607
|
+
};
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
/**
|
|
611
|
+
* API data with query params
|
|
612
|
+
*/
|
|
613
|
+
async v2CoalConsumptionAndQualityDataGetRaw(requestParameters: V2CoalConsumptionAndQualityDataGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataResponseContainer>> {
|
|
614
|
+
const requestOptions = await this.v2CoalConsumptionAndQualityDataGetRequestOpts(requestParameters);
|
|
615
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
616
|
+
|
|
617
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DataResponseContainerFromJSON(jsonValue));
|
|
618
|
+
}
|
|
619
|
+
|
|
620
|
+
/**
|
|
621
|
+
* API data with query params
|
|
622
|
+
*/
|
|
623
|
+
async v2CoalConsumptionAndQualityDataGet(requestParameters: V2CoalConsumptionAndQualityDataGetRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataResponseContainer> {
|
|
624
|
+
const response = await this.v2CoalConsumptionAndQualityDataGetRaw(requestParameters, initOverrides);
|
|
625
|
+
return await response.value();
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
/**
|
|
629
|
+
* Creates request options for v2CoalConsumptionAndQualityDataPost without sending the request
|
|
630
|
+
*/
|
|
631
|
+
async v2CoalConsumptionAndQualityDataPostRequestOpts(requestParameters: V2CoalConsumptionAndQualityDataPostRequest): Promise<runtime.RequestOpts> {
|
|
632
|
+
if (requestParameters['dataParams'] == null) {
|
|
633
|
+
throw new runtime.RequiredError(
|
|
634
|
+
'dataParams',
|
|
635
|
+
'Required parameter "dataParams" was null or undefined when calling v2CoalConsumptionAndQualityDataPost().'
|
|
636
|
+
);
|
|
637
|
+
}
|
|
638
|
+
|
|
639
|
+
const queryParameters: any = {};
|
|
640
|
+
|
|
641
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
642
|
+
|
|
643
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
644
|
+
|
|
645
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
646
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
|
|
650
|
+
let urlPath = `/v2/coal/consumption-and-quality/data`;
|
|
651
|
+
|
|
652
|
+
return {
|
|
653
|
+
path: urlPath,
|
|
654
|
+
method: 'POST',
|
|
655
|
+
headers: headerParameters,
|
|
656
|
+
query: queryParameters,
|
|
657
|
+
body: DataParamsToJSON(requestParameters['dataParams']),
|
|
658
|
+
};
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
/**
|
|
662
|
+
* Return consumption-and-quality Data
|
|
663
|
+
*/
|
|
664
|
+
async v2CoalConsumptionAndQualityDataPostRaw(requestParameters: V2CoalConsumptionAndQualityDataPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataResponseContainer>> {
|
|
665
|
+
const requestOptions = await this.v2CoalConsumptionAndQualityDataPostRequestOpts(requestParameters);
|
|
666
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
667
|
+
|
|
668
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DataResponseContainerFromJSON(jsonValue));
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
/**
|
|
672
|
+
* Return consumption-and-quality Data
|
|
673
|
+
*/
|
|
674
|
+
async v2CoalConsumptionAndQualityDataPost(requestParameters: V2CoalConsumptionAndQualityDataPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataResponseContainer> {
|
|
675
|
+
const response = await this.v2CoalConsumptionAndQualityDataPostRaw(requestParameters, initOverrides);
|
|
676
|
+
return await response.value();
|
|
677
|
+
}
|
|
678
|
+
|
|
679
|
+
/**
|
|
680
|
+
* Creates request options for v2CoalConsumptionAndQualityFacetFacetIdGet without sending the request
|
|
681
|
+
*/
|
|
682
|
+
async v2CoalConsumptionAndQualityFacetFacetIdGetRequestOpts(requestParameters: V2CoalConsumptionAndQualityFacetFacetIdGetRequest): Promise<runtime.RequestOpts> {
|
|
683
|
+
if (requestParameters['facetId'] == null) {
|
|
684
|
+
throw new runtime.RequiredError(
|
|
685
|
+
'facetId',
|
|
686
|
+
'Required parameter "facetId" was null or undefined when calling v2CoalConsumptionAndQualityFacetFacetIdGet().'
|
|
687
|
+
);
|
|
688
|
+
}
|
|
689
|
+
|
|
690
|
+
const queryParameters: any = {};
|
|
691
|
+
|
|
692
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
693
|
+
|
|
694
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
695
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
696
|
+
}
|
|
697
|
+
|
|
698
|
+
|
|
699
|
+
let urlPath = `/v2/coal/consumption-and-quality/facet/{facet_id}`;
|
|
700
|
+
urlPath = urlPath.replace('{facet_id}', encodeURIComponent(String(requestParameters['facetId'])));
|
|
701
|
+
|
|
702
|
+
return {
|
|
703
|
+
path: urlPath,
|
|
704
|
+
method: 'GET',
|
|
705
|
+
headers: headerParameters,
|
|
706
|
+
query: queryParameters,
|
|
707
|
+
};
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
/**
|
|
711
|
+
*/
|
|
712
|
+
async v2CoalConsumptionAndQualityFacetFacetIdGetRaw(requestParameters: V2CoalConsumptionAndQualityFacetFacetIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FacetDetailsContainer>> {
|
|
713
|
+
const requestOptions = await this.v2CoalConsumptionAndQualityFacetFacetIdGetRequestOpts(requestParameters);
|
|
714
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
715
|
+
|
|
716
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FacetDetailsContainerFromJSON(jsonValue));
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
/**
|
|
720
|
+
*/
|
|
721
|
+
async v2CoalConsumptionAndQualityFacetFacetIdGet(requestParameters: V2CoalConsumptionAndQualityFacetFacetIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FacetDetailsContainer> {
|
|
722
|
+
const response = await this.v2CoalConsumptionAndQualityFacetFacetIdGetRaw(requestParameters, initOverrides);
|
|
723
|
+
return await response.value();
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
/**
|
|
727
|
+
* Creates request options for v2CoalConsumptionAndQualityFacetGet without sending the request
|
|
728
|
+
*/
|
|
729
|
+
async v2CoalConsumptionAndQualityFacetGetRequestOpts(): Promise<runtime.RequestOpts> {
|
|
730
|
+
const queryParameters: any = {};
|
|
731
|
+
|
|
732
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
733
|
+
|
|
734
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
735
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
736
|
+
}
|
|
737
|
+
|
|
738
|
+
|
|
739
|
+
let urlPath = `/v2/coal/consumption-and-quality/facet`;
|
|
740
|
+
|
|
741
|
+
return {
|
|
742
|
+
path: urlPath,
|
|
743
|
+
method: 'GET',
|
|
744
|
+
headers: headerParameters,
|
|
745
|
+
query: queryParameters,
|
|
746
|
+
};
|
|
747
|
+
}
|
|
748
|
+
|
|
749
|
+
/**
|
|
750
|
+
*/
|
|
751
|
+
async v2CoalConsumptionAndQualityFacetGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FacetOptionListContainer>> {
|
|
752
|
+
const requestOptions = await this.v2CoalConsumptionAndQualityFacetGetRequestOpts();
|
|
753
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
754
|
+
|
|
755
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FacetOptionListContainerFromJSON(jsonValue));
|
|
756
|
+
}
|
|
757
|
+
|
|
758
|
+
/**
|
|
759
|
+
*/
|
|
760
|
+
async v2CoalConsumptionAndQualityFacetGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FacetOptionListContainer> {
|
|
761
|
+
const response = await this.v2CoalConsumptionAndQualityFacetGetRaw(initOverrides);
|
|
762
|
+
return await response.value();
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
/**
|
|
766
|
+
* Creates request options for v2CoalConsumptionAndQualityGet without sending the request
|
|
767
|
+
*/
|
|
768
|
+
async v2CoalConsumptionAndQualityGetRequestOpts(): Promise<runtime.RequestOpts> {
|
|
769
|
+
const queryParameters: any = {};
|
|
770
|
+
|
|
771
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
772
|
+
|
|
773
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
774
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
|
|
778
|
+
let urlPath = `/v2/coal/consumption-and-quality`;
|
|
779
|
+
|
|
780
|
+
return {
|
|
781
|
+
path: urlPath,
|
|
782
|
+
method: 'GET',
|
|
783
|
+
headers: headerParameters,
|
|
784
|
+
query: queryParameters,
|
|
785
|
+
};
|
|
786
|
+
}
|
|
787
|
+
|
|
788
|
+
/**
|
|
789
|
+
*/
|
|
790
|
+
async v2CoalConsumptionAndQualityGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FinalRouteResponseContainer>> {
|
|
791
|
+
const requestOptions = await this.v2CoalConsumptionAndQualityGetRequestOpts();
|
|
792
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
793
|
+
|
|
794
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FinalRouteResponseContainerFromJSON(jsonValue));
|
|
795
|
+
}
|
|
796
|
+
|
|
797
|
+
/**
|
|
798
|
+
*/
|
|
799
|
+
async v2CoalConsumptionAndQualityGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FinalRouteResponseContainer> {
|
|
800
|
+
const response = await this.v2CoalConsumptionAndQualityGetRaw(initOverrides);
|
|
801
|
+
return await response.value();
|
|
802
|
+
}
|
|
803
|
+
|
|
804
|
+
/**
|
|
805
|
+
* Creates request options for v2CoalExportsImportsQuantityPriceDataGet without sending the request
|
|
806
|
+
*/
|
|
807
|
+
async v2CoalExportsImportsQuantityPriceDataGetRequestOpts(requestParameters: V2CoalExportsImportsQuantityPriceDataGetRequest): Promise<runtime.RequestOpts> {
|
|
808
|
+
const queryParameters: any = {};
|
|
809
|
+
|
|
810
|
+
if (requestParameters['data'] != null) {
|
|
811
|
+
queryParameters['data'] = requestParameters['data'];
|
|
812
|
+
}
|
|
813
|
+
|
|
814
|
+
if (requestParameters['facets'] != null) {
|
|
815
|
+
queryParameters['facets'] = requestParameters['facets'];
|
|
816
|
+
}
|
|
817
|
+
|
|
818
|
+
if (requestParameters['frequency'] != null) {
|
|
819
|
+
queryParameters['frequency'] = requestParameters['frequency'];
|
|
820
|
+
}
|
|
821
|
+
|
|
822
|
+
if (requestParameters['start'] != null) {
|
|
823
|
+
queryParameters['start'] = requestParameters['start'];
|
|
824
|
+
}
|
|
825
|
+
|
|
826
|
+
if (requestParameters['end'] != null) {
|
|
827
|
+
queryParameters['end'] = requestParameters['end'];
|
|
828
|
+
}
|
|
829
|
+
|
|
830
|
+
if (requestParameters['sort'] != null) {
|
|
831
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
832
|
+
}
|
|
833
|
+
|
|
834
|
+
if (requestParameters['length'] != null) {
|
|
835
|
+
queryParameters['length'] = requestParameters['length'];
|
|
836
|
+
}
|
|
837
|
+
|
|
838
|
+
if (requestParameters['offset'] != null) {
|
|
839
|
+
queryParameters['offset'] = requestParameters['offset'];
|
|
840
|
+
}
|
|
841
|
+
|
|
842
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
843
|
+
|
|
844
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
845
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
846
|
+
}
|
|
847
|
+
|
|
848
|
+
|
|
849
|
+
let urlPath = `/v2/coal/exports-imports-quantity-price/data`;
|
|
850
|
+
|
|
851
|
+
return {
|
|
852
|
+
path: urlPath,
|
|
853
|
+
method: 'GET',
|
|
854
|
+
headers: headerParameters,
|
|
855
|
+
query: queryParameters,
|
|
856
|
+
};
|
|
857
|
+
}
|
|
858
|
+
|
|
859
|
+
/**
|
|
860
|
+
* API data with query params
|
|
861
|
+
*/
|
|
862
|
+
async v2CoalExportsImportsQuantityPriceDataGetRaw(requestParameters: V2CoalExportsImportsQuantityPriceDataGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataResponseContainer>> {
|
|
863
|
+
const requestOptions = await this.v2CoalExportsImportsQuantityPriceDataGetRequestOpts(requestParameters);
|
|
864
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
865
|
+
|
|
866
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DataResponseContainerFromJSON(jsonValue));
|
|
867
|
+
}
|
|
868
|
+
|
|
869
|
+
/**
|
|
870
|
+
* API data with query params
|
|
871
|
+
*/
|
|
872
|
+
async v2CoalExportsImportsQuantityPriceDataGet(requestParameters: V2CoalExportsImportsQuantityPriceDataGetRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataResponseContainer> {
|
|
873
|
+
const response = await this.v2CoalExportsImportsQuantityPriceDataGetRaw(requestParameters, initOverrides);
|
|
874
|
+
return await response.value();
|
|
875
|
+
}
|
|
876
|
+
|
|
877
|
+
/**
|
|
878
|
+
* Creates request options for v2CoalExportsImportsQuantityPriceDataPost without sending the request
|
|
879
|
+
*/
|
|
880
|
+
async v2CoalExportsImportsQuantityPriceDataPostRequestOpts(requestParameters: V2CoalExportsImportsQuantityPriceDataPostRequest): Promise<runtime.RequestOpts> {
|
|
881
|
+
if (requestParameters['dataParams'] == null) {
|
|
882
|
+
throw new runtime.RequiredError(
|
|
883
|
+
'dataParams',
|
|
884
|
+
'Required parameter "dataParams" was null or undefined when calling v2CoalExportsImportsQuantityPriceDataPost().'
|
|
885
|
+
);
|
|
886
|
+
}
|
|
887
|
+
|
|
888
|
+
const queryParameters: any = {};
|
|
889
|
+
|
|
890
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
891
|
+
|
|
892
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
893
|
+
|
|
894
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
895
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
896
|
+
}
|
|
897
|
+
|
|
898
|
+
|
|
899
|
+
let urlPath = `/v2/coal/exports-imports-quantity-price/data`;
|
|
900
|
+
|
|
901
|
+
return {
|
|
902
|
+
path: urlPath,
|
|
903
|
+
method: 'POST',
|
|
904
|
+
headers: headerParameters,
|
|
905
|
+
query: queryParameters,
|
|
906
|
+
body: DataParamsToJSON(requestParameters['dataParams']),
|
|
907
|
+
};
|
|
908
|
+
}
|
|
909
|
+
|
|
910
|
+
/**
|
|
911
|
+
* Class ExportsImportsQuantityPriceController Exports\\Imports Quantity\\Price data set top-level controller.
|
|
912
|
+
* Return exports-imports-quantity-price Data
|
|
913
|
+
*/
|
|
914
|
+
async v2CoalExportsImportsQuantityPriceDataPostRaw(requestParameters: V2CoalExportsImportsQuantityPriceDataPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataResponseContainer>> {
|
|
915
|
+
const requestOptions = await this.v2CoalExportsImportsQuantityPriceDataPostRequestOpts(requestParameters);
|
|
916
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
917
|
+
|
|
918
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DataResponseContainerFromJSON(jsonValue));
|
|
919
|
+
}
|
|
920
|
+
|
|
921
|
+
/**
|
|
922
|
+
* Class ExportsImportsQuantityPriceController Exports\\Imports Quantity\\Price data set top-level controller.
|
|
923
|
+
* Return exports-imports-quantity-price Data
|
|
924
|
+
*/
|
|
925
|
+
async v2CoalExportsImportsQuantityPriceDataPost(requestParameters: V2CoalExportsImportsQuantityPriceDataPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataResponseContainer> {
|
|
926
|
+
const response = await this.v2CoalExportsImportsQuantityPriceDataPostRaw(requestParameters, initOverrides);
|
|
927
|
+
return await response.value();
|
|
928
|
+
}
|
|
929
|
+
|
|
930
|
+
/**
|
|
931
|
+
* Creates request options for v2CoalExportsImportsQuantityPriceFacetFacetIdGet without sending the request
|
|
932
|
+
*/
|
|
933
|
+
async v2CoalExportsImportsQuantityPriceFacetFacetIdGetRequestOpts(requestParameters: V2CoalExportsImportsQuantityPriceFacetFacetIdGetRequest): Promise<runtime.RequestOpts> {
|
|
934
|
+
if (requestParameters['facetId'] == null) {
|
|
935
|
+
throw new runtime.RequiredError(
|
|
936
|
+
'facetId',
|
|
937
|
+
'Required parameter "facetId" was null or undefined when calling v2CoalExportsImportsQuantityPriceFacetFacetIdGet().'
|
|
938
|
+
);
|
|
939
|
+
}
|
|
940
|
+
|
|
941
|
+
const queryParameters: any = {};
|
|
942
|
+
|
|
943
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
944
|
+
|
|
945
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
946
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
947
|
+
}
|
|
948
|
+
|
|
949
|
+
|
|
950
|
+
let urlPath = `/v2/coal/exports-imports-quantity-price/facet/{facet_id}`;
|
|
951
|
+
urlPath = urlPath.replace('{facet_id}', encodeURIComponent(String(requestParameters['facetId'])));
|
|
952
|
+
|
|
953
|
+
return {
|
|
954
|
+
path: urlPath,
|
|
955
|
+
method: 'GET',
|
|
956
|
+
headers: headerParameters,
|
|
957
|
+
query: queryParameters,
|
|
958
|
+
};
|
|
959
|
+
}
|
|
960
|
+
|
|
961
|
+
/**
|
|
962
|
+
*/
|
|
963
|
+
async v2CoalExportsImportsQuantityPriceFacetFacetIdGetRaw(requestParameters: V2CoalExportsImportsQuantityPriceFacetFacetIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FacetDetailsContainer>> {
|
|
964
|
+
const requestOptions = await this.v2CoalExportsImportsQuantityPriceFacetFacetIdGetRequestOpts(requestParameters);
|
|
965
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
966
|
+
|
|
967
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FacetDetailsContainerFromJSON(jsonValue));
|
|
968
|
+
}
|
|
969
|
+
|
|
970
|
+
/**
|
|
971
|
+
*/
|
|
972
|
+
async v2CoalExportsImportsQuantityPriceFacetFacetIdGet(requestParameters: V2CoalExportsImportsQuantityPriceFacetFacetIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FacetDetailsContainer> {
|
|
973
|
+
const response = await this.v2CoalExportsImportsQuantityPriceFacetFacetIdGetRaw(requestParameters, initOverrides);
|
|
974
|
+
return await response.value();
|
|
975
|
+
}
|
|
976
|
+
|
|
977
|
+
/**
|
|
978
|
+
* Creates request options for v2CoalExportsImportsQuantityPriceFacetGet without sending the request
|
|
979
|
+
*/
|
|
980
|
+
async v2CoalExportsImportsQuantityPriceFacetGetRequestOpts(): Promise<runtime.RequestOpts> {
|
|
981
|
+
const queryParameters: any = {};
|
|
982
|
+
|
|
983
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
984
|
+
|
|
985
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
986
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
987
|
+
}
|
|
988
|
+
|
|
989
|
+
|
|
990
|
+
let urlPath = `/v2/coal/exports-imports-quantity-price/facet`;
|
|
991
|
+
|
|
992
|
+
return {
|
|
993
|
+
path: urlPath,
|
|
994
|
+
method: 'GET',
|
|
995
|
+
headers: headerParameters,
|
|
996
|
+
query: queryParameters,
|
|
997
|
+
};
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
/**
|
|
1001
|
+
*/
|
|
1002
|
+
async v2CoalExportsImportsQuantityPriceFacetGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FacetOptionListContainer>> {
|
|
1003
|
+
const requestOptions = await this.v2CoalExportsImportsQuantityPriceFacetGetRequestOpts();
|
|
1004
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1005
|
+
|
|
1006
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FacetOptionListContainerFromJSON(jsonValue));
|
|
1007
|
+
}
|
|
1008
|
+
|
|
1009
|
+
/**
|
|
1010
|
+
*/
|
|
1011
|
+
async v2CoalExportsImportsQuantityPriceFacetGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FacetOptionListContainer> {
|
|
1012
|
+
const response = await this.v2CoalExportsImportsQuantityPriceFacetGetRaw(initOverrides);
|
|
1013
|
+
return await response.value();
|
|
1014
|
+
}
|
|
1015
|
+
|
|
1016
|
+
/**
|
|
1017
|
+
* Creates request options for v2CoalExportsImportsQuantityPriceGet without sending the request
|
|
1018
|
+
*/
|
|
1019
|
+
async v2CoalExportsImportsQuantityPriceGetRequestOpts(): Promise<runtime.RequestOpts> {
|
|
1020
|
+
const queryParameters: any = {};
|
|
1021
|
+
|
|
1022
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1023
|
+
|
|
1024
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1025
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
1026
|
+
}
|
|
1027
|
+
|
|
1028
|
+
|
|
1029
|
+
let urlPath = `/v2/coal/exports-imports-quantity-price`;
|
|
1030
|
+
|
|
1031
|
+
return {
|
|
1032
|
+
path: urlPath,
|
|
1033
|
+
method: 'GET',
|
|
1034
|
+
headers: headerParameters,
|
|
1035
|
+
query: queryParameters,
|
|
1036
|
+
};
|
|
1037
|
+
}
|
|
1038
|
+
|
|
1039
|
+
/**
|
|
1040
|
+
*/
|
|
1041
|
+
async v2CoalExportsImportsQuantityPriceGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FinalRouteResponseContainer>> {
|
|
1042
|
+
const requestOptions = await this.v2CoalExportsImportsQuantityPriceGetRequestOpts();
|
|
1043
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1044
|
+
|
|
1045
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FinalRouteResponseContainerFromJSON(jsonValue));
|
|
1046
|
+
}
|
|
1047
|
+
|
|
1048
|
+
/**
|
|
1049
|
+
*/
|
|
1050
|
+
async v2CoalExportsImportsQuantityPriceGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FinalRouteResponseContainer> {
|
|
1051
|
+
const response = await this.v2CoalExportsImportsQuantityPriceGetRaw(initOverrides);
|
|
1052
|
+
return await response.value();
|
|
1053
|
+
}
|
|
1054
|
+
|
|
1055
|
+
/**
|
|
1056
|
+
* Creates request options for v2CoalGet without sending the request
|
|
1057
|
+
*/
|
|
1058
|
+
async v2CoalGetRequestOpts(): Promise<runtime.RequestOpts> {
|
|
1059
|
+
const queryParameters: any = {};
|
|
1060
|
+
|
|
1061
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1062
|
+
|
|
1063
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1064
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
1065
|
+
}
|
|
1066
|
+
|
|
1067
|
+
|
|
1068
|
+
let urlPath = `/v2/coal`;
|
|
1069
|
+
|
|
1070
|
+
return {
|
|
1071
|
+
path: urlPath,
|
|
1072
|
+
method: 'GET',
|
|
1073
|
+
headers: headerParameters,
|
|
1074
|
+
query: queryParameters,
|
|
1075
|
+
};
|
|
1076
|
+
}
|
|
1077
|
+
|
|
1078
|
+
/**
|
|
1079
|
+
* Coal data set top-level controller.
|
|
1080
|
+
* Class CoalController
|
|
1081
|
+
*/
|
|
1082
|
+
async v2CoalGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RouteResponseContainer>> {
|
|
1083
|
+
const requestOptions = await this.v2CoalGetRequestOpts();
|
|
1084
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1085
|
+
|
|
1086
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RouteResponseContainerFromJSON(jsonValue));
|
|
1087
|
+
}
|
|
1088
|
+
|
|
1089
|
+
/**
|
|
1090
|
+
* Coal data set top-level controller.
|
|
1091
|
+
* Class CoalController
|
|
1092
|
+
*/
|
|
1093
|
+
async v2CoalGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RouteResponseContainer> {
|
|
1094
|
+
const response = await this.v2CoalGetRaw(initOverrides);
|
|
1095
|
+
return await response.value();
|
|
1096
|
+
}
|
|
1097
|
+
|
|
1098
|
+
/**
|
|
1099
|
+
* Creates request options for v2CoalMarketSalesPriceDataGet without sending the request
|
|
1100
|
+
*/
|
|
1101
|
+
async v2CoalMarketSalesPriceDataGetRequestOpts(requestParameters: V2CoalMarketSalesPriceDataGetRequest): Promise<runtime.RequestOpts> {
|
|
1102
|
+
const queryParameters: any = {};
|
|
1103
|
+
|
|
1104
|
+
if (requestParameters['data'] != null) {
|
|
1105
|
+
queryParameters['data'] = requestParameters['data'];
|
|
1106
|
+
}
|
|
1107
|
+
|
|
1108
|
+
if (requestParameters['facets'] != null) {
|
|
1109
|
+
queryParameters['facets'] = requestParameters['facets'];
|
|
1110
|
+
}
|
|
1111
|
+
|
|
1112
|
+
if (requestParameters['frequency'] != null) {
|
|
1113
|
+
queryParameters['frequency'] = requestParameters['frequency'];
|
|
1114
|
+
}
|
|
1115
|
+
|
|
1116
|
+
if (requestParameters['start'] != null) {
|
|
1117
|
+
queryParameters['start'] = requestParameters['start'];
|
|
1118
|
+
}
|
|
1119
|
+
|
|
1120
|
+
if (requestParameters['end'] != null) {
|
|
1121
|
+
queryParameters['end'] = requestParameters['end'];
|
|
1122
|
+
}
|
|
1123
|
+
|
|
1124
|
+
if (requestParameters['sort'] != null) {
|
|
1125
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
1126
|
+
}
|
|
1127
|
+
|
|
1128
|
+
if (requestParameters['length'] != null) {
|
|
1129
|
+
queryParameters['length'] = requestParameters['length'];
|
|
1130
|
+
}
|
|
1131
|
+
|
|
1132
|
+
if (requestParameters['offset'] != null) {
|
|
1133
|
+
queryParameters['offset'] = requestParameters['offset'];
|
|
1134
|
+
}
|
|
1135
|
+
|
|
1136
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1137
|
+
|
|
1138
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1139
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
1140
|
+
}
|
|
1141
|
+
|
|
1142
|
+
|
|
1143
|
+
let urlPath = `/v2/coal/market-sales-price/data`;
|
|
1144
|
+
|
|
1145
|
+
return {
|
|
1146
|
+
path: urlPath,
|
|
1147
|
+
method: 'GET',
|
|
1148
|
+
headers: headerParameters,
|
|
1149
|
+
query: queryParameters,
|
|
1150
|
+
};
|
|
1151
|
+
}
|
|
1152
|
+
|
|
1153
|
+
/**
|
|
1154
|
+
* API data with query params
|
|
1155
|
+
*/
|
|
1156
|
+
async v2CoalMarketSalesPriceDataGetRaw(requestParameters: V2CoalMarketSalesPriceDataGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataResponseContainer>> {
|
|
1157
|
+
const requestOptions = await this.v2CoalMarketSalesPriceDataGetRequestOpts(requestParameters);
|
|
1158
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1159
|
+
|
|
1160
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DataResponseContainerFromJSON(jsonValue));
|
|
1161
|
+
}
|
|
1162
|
+
|
|
1163
|
+
/**
|
|
1164
|
+
* API data with query params
|
|
1165
|
+
*/
|
|
1166
|
+
async v2CoalMarketSalesPriceDataGet(requestParameters: V2CoalMarketSalesPriceDataGetRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataResponseContainer> {
|
|
1167
|
+
const response = await this.v2CoalMarketSalesPriceDataGetRaw(requestParameters, initOverrides);
|
|
1168
|
+
return await response.value();
|
|
1169
|
+
}
|
|
1170
|
+
|
|
1171
|
+
/**
|
|
1172
|
+
* Creates request options for v2CoalMarketSalesPriceDataPost without sending the request
|
|
1173
|
+
*/
|
|
1174
|
+
async v2CoalMarketSalesPriceDataPostRequestOpts(requestParameters: V2CoalMarketSalesPriceDataPostRequest): Promise<runtime.RequestOpts> {
|
|
1175
|
+
if (requestParameters['dataParams'] == null) {
|
|
1176
|
+
throw new runtime.RequiredError(
|
|
1177
|
+
'dataParams',
|
|
1178
|
+
'Required parameter "dataParams" was null or undefined when calling v2CoalMarketSalesPriceDataPost().'
|
|
1179
|
+
);
|
|
1180
|
+
}
|
|
1181
|
+
|
|
1182
|
+
const queryParameters: any = {};
|
|
1183
|
+
|
|
1184
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1185
|
+
|
|
1186
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1187
|
+
|
|
1188
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1189
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
1190
|
+
}
|
|
1191
|
+
|
|
1192
|
+
|
|
1193
|
+
let urlPath = `/v2/coal/market-sales-price/data`;
|
|
1194
|
+
|
|
1195
|
+
return {
|
|
1196
|
+
path: urlPath,
|
|
1197
|
+
method: 'POST',
|
|
1198
|
+
headers: headerParameters,
|
|
1199
|
+
query: queryParameters,
|
|
1200
|
+
body: DataParamsToJSON(requestParameters['dataParams']),
|
|
1201
|
+
};
|
|
1202
|
+
}
|
|
1203
|
+
|
|
1204
|
+
/**
|
|
1205
|
+
* Class MarketSalesPriceController Market Sales Price data set top-level controller.
|
|
1206
|
+
* Return market-sales-price Data
|
|
1207
|
+
*/
|
|
1208
|
+
async v2CoalMarketSalesPriceDataPostRaw(requestParameters: V2CoalMarketSalesPriceDataPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataResponseContainer>> {
|
|
1209
|
+
const requestOptions = await this.v2CoalMarketSalesPriceDataPostRequestOpts(requestParameters);
|
|
1210
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1211
|
+
|
|
1212
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DataResponseContainerFromJSON(jsonValue));
|
|
1213
|
+
}
|
|
1214
|
+
|
|
1215
|
+
/**
|
|
1216
|
+
* Class MarketSalesPriceController Market Sales Price data set top-level controller.
|
|
1217
|
+
* Return market-sales-price Data
|
|
1218
|
+
*/
|
|
1219
|
+
async v2CoalMarketSalesPriceDataPost(requestParameters: V2CoalMarketSalesPriceDataPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataResponseContainer> {
|
|
1220
|
+
const response = await this.v2CoalMarketSalesPriceDataPostRaw(requestParameters, initOverrides);
|
|
1221
|
+
return await response.value();
|
|
1222
|
+
}
|
|
1223
|
+
|
|
1224
|
+
/**
|
|
1225
|
+
* Creates request options for v2CoalMarketSalesPriceFacetFacetIdGet without sending the request
|
|
1226
|
+
*/
|
|
1227
|
+
async v2CoalMarketSalesPriceFacetFacetIdGetRequestOpts(requestParameters: V2CoalMarketSalesPriceFacetFacetIdGetRequest): Promise<runtime.RequestOpts> {
|
|
1228
|
+
if (requestParameters['facetId'] == null) {
|
|
1229
|
+
throw new runtime.RequiredError(
|
|
1230
|
+
'facetId',
|
|
1231
|
+
'Required parameter "facetId" was null or undefined when calling v2CoalMarketSalesPriceFacetFacetIdGet().'
|
|
1232
|
+
);
|
|
1233
|
+
}
|
|
1234
|
+
|
|
1235
|
+
const queryParameters: any = {};
|
|
1236
|
+
|
|
1237
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1238
|
+
|
|
1239
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1240
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
1241
|
+
}
|
|
1242
|
+
|
|
1243
|
+
|
|
1244
|
+
let urlPath = `/v2/coal/market-sales-price/facet/{facet_id}`;
|
|
1245
|
+
urlPath = urlPath.replace('{facet_id}', encodeURIComponent(String(requestParameters['facetId'])));
|
|
1246
|
+
|
|
1247
|
+
return {
|
|
1248
|
+
path: urlPath,
|
|
1249
|
+
method: 'GET',
|
|
1250
|
+
headers: headerParameters,
|
|
1251
|
+
query: queryParameters,
|
|
1252
|
+
};
|
|
1253
|
+
}
|
|
1254
|
+
|
|
1255
|
+
/**
|
|
1256
|
+
*/
|
|
1257
|
+
async v2CoalMarketSalesPriceFacetFacetIdGetRaw(requestParameters: V2CoalMarketSalesPriceFacetFacetIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FacetDetailsContainer>> {
|
|
1258
|
+
const requestOptions = await this.v2CoalMarketSalesPriceFacetFacetIdGetRequestOpts(requestParameters);
|
|
1259
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1260
|
+
|
|
1261
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FacetDetailsContainerFromJSON(jsonValue));
|
|
1262
|
+
}
|
|
1263
|
+
|
|
1264
|
+
/**
|
|
1265
|
+
*/
|
|
1266
|
+
async v2CoalMarketSalesPriceFacetFacetIdGet(requestParameters: V2CoalMarketSalesPriceFacetFacetIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FacetDetailsContainer> {
|
|
1267
|
+
const response = await this.v2CoalMarketSalesPriceFacetFacetIdGetRaw(requestParameters, initOverrides);
|
|
1268
|
+
return await response.value();
|
|
1269
|
+
}
|
|
1270
|
+
|
|
1271
|
+
/**
|
|
1272
|
+
* Creates request options for v2CoalMarketSalesPriceFacetGet without sending the request
|
|
1273
|
+
*/
|
|
1274
|
+
async v2CoalMarketSalesPriceFacetGetRequestOpts(): Promise<runtime.RequestOpts> {
|
|
1275
|
+
const queryParameters: any = {};
|
|
1276
|
+
|
|
1277
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1278
|
+
|
|
1279
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1280
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
1281
|
+
}
|
|
1282
|
+
|
|
1283
|
+
|
|
1284
|
+
let urlPath = `/v2/coal/market-sales-price/facet`;
|
|
1285
|
+
|
|
1286
|
+
return {
|
|
1287
|
+
path: urlPath,
|
|
1288
|
+
method: 'GET',
|
|
1289
|
+
headers: headerParameters,
|
|
1290
|
+
query: queryParameters,
|
|
1291
|
+
};
|
|
1292
|
+
}
|
|
1293
|
+
|
|
1294
|
+
/**
|
|
1295
|
+
*/
|
|
1296
|
+
async v2CoalMarketSalesPriceFacetGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FacetOptionListContainer>> {
|
|
1297
|
+
const requestOptions = await this.v2CoalMarketSalesPriceFacetGetRequestOpts();
|
|
1298
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1299
|
+
|
|
1300
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FacetOptionListContainerFromJSON(jsonValue));
|
|
1301
|
+
}
|
|
1302
|
+
|
|
1303
|
+
/**
|
|
1304
|
+
*/
|
|
1305
|
+
async v2CoalMarketSalesPriceFacetGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FacetOptionListContainer> {
|
|
1306
|
+
const response = await this.v2CoalMarketSalesPriceFacetGetRaw(initOverrides);
|
|
1307
|
+
return await response.value();
|
|
1308
|
+
}
|
|
1309
|
+
|
|
1310
|
+
/**
|
|
1311
|
+
* Creates request options for v2CoalMarketSalesPriceGet without sending the request
|
|
1312
|
+
*/
|
|
1313
|
+
async v2CoalMarketSalesPriceGetRequestOpts(): Promise<runtime.RequestOpts> {
|
|
1314
|
+
const queryParameters: any = {};
|
|
1315
|
+
|
|
1316
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1317
|
+
|
|
1318
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1319
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
1320
|
+
}
|
|
1321
|
+
|
|
1322
|
+
|
|
1323
|
+
let urlPath = `/v2/coal/market-sales-price`;
|
|
1324
|
+
|
|
1325
|
+
return {
|
|
1326
|
+
path: urlPath,
|
|
1327
|
+
method: 'GET',
|
|
1328
|
+
headers: headerParameters,
|
|
1329
|
+
query: queryParameters,
|
|
1330
|
+
};
|
|
1331
|
+
}
|
|
1332
|
+
|
|
1333
|
+
/**
|
|
1334
|
+
*/
|
|
1335
|
+
async v2CoalMarketSalesPriceGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FinalRouteResponseContainer>> {
|
|
1336
|
+
const requestOptions = await this.v2CoalMarketSalesPriceGetRequestOpts();
|
|
1337
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1338
|
+
|
|
1339
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FinalRouteResponseContainerFromJSON(jsonValue));
|
|
1340
|
+
}
|
|
1341
|
+
|
|
1342
|
+
/**
|
|
1343
|
+
*/
|
|
1344
|
+
async v2CoalMarketSalesPriceGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FinalRouteResponseContainer> {
|
|
1345
|
+
const response = await this.v2CoalMarketSalesPriceGetRaw(initOverrides);
|
|
1346
|
+
return await response.value();
|
|
1347
|
+
}
|
|
1348
|
+
|
|
1349
|
+
/**
|
|
1350
|
+
* Creates request options for v2CoalMineProductionDataGet without sending the request
|
|
1351
|
+
*/
|
|
1352
|
+
async v2CoalMineProductionDataGetRequestOpts(requestParameters: V2CoalMineProductionDataGetRequest): Promise<runtime.RequestOpts> {
|
|
1353
|
+
const queryParameters: any = {};
|
|
1354
|
+
|
|
1355
|
+
if (requestParameters['data'] != null) {
|
|
1356
|
+
queryParameters['data'] = requestParameters['data'];
|
|
1357
|
+
}
|
|
1358
|
+
|
|
1359
|
+
if (requestParameters['facets'] != null) {
|
|
1360
|
+
queryParameters['facets'] = requestParameters['facets'];
|
|
1361
|
+
}
|
|
1362
|
+
|
|
1363
|
+
if (requestParameters['frequency'] != null) {
|
|
1364
|
+
queryParameters['frequency'] = requestParameters['frequency'];
|
|
1365
|
+
}
|
|
1366
|
+
|
|
1367
|
+
if (requestParameters['start'] != null) {
|
|
1368
|
+
queryParameters['start'] = requestParameters['start'];
|
|
1369
|
+
}
|
|
1370
|
+
|
|
1371
|
+
if (requestParameters['end'] != null) {
|
|
1372
|
+
queryParameters['end'] = requestParameters['end'];
|
|
1373
|
+
}
|
|
1374
|
+
|
|
1375
|
+
if (requestParameters['sort'] != null) {
|
|
1376
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
1377
|
+
}
|
|
1378
|
+
|
|
1379
|
+
if (requestParameters['length'] != null) {
|
|
1380
|
+
queryParameters['length'] = requestParameters['length'];
|
|
1381
|
+
}
|
|
1382
|
+
|
|
1383
|
+
if (requestParameters['offset'] != null) {
|
|
1384
|
+
queryParameters['offset'] = requestParameters['offset'];
|
|
1385
|
+
}
|
|
1386
|
+
|
|
1387
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1388
|
+
|
|
1389
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1390
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
1391
|
+
}
|
|
1392
|
+
|
|
1393
|
+
|
|
1394
|
+
let urlPath = `/v2/coal/mine-production/data`;
|
|
1395
|
+
|
|
1396
|
+
return {
|
|
1397
|
+
path: urlPath,
|
|
1398
|
+
method: 'GET',
|
|
1399
|
+
headers: headerParameters,
|
|
1400
|
+
query: queryParameters,
|
|
1401
|
+
};
|
|
1402
|
+
}
|
|
1403
|
+
|
|
1404
|
+
/**
|
|
1405
|
+
* API data with query params
|
|
1406
|
+
*/
|
|
1407
|
+
async v2CoalMineProductionDataGetRaw(requestParameters: V2CoalMineProductionDataGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataResponseContainer>> {
|
|
1408
|
+
const requestOptions = await this.v2CoalMineProductionDataGetRequestOpts(requestParameters);
|
|
1409
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1410
|
+
|
|
1411
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DataResponseContainerFromJSON(jsonValue));
|
|
1412
|
+
}
|
|
1413
|
+
|
|
1414
|
+
/**
|
|
1415
|
+
* API data with query params
|
|
1416
|
+
*/
|
|
1417
|
+
async v2CoalMineProductionDataGet(requestParameters: V2CoalMineProductionDataGetRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataResponseContainer> {
|
|
1418
|
+
const response = await this.v2CoalMineProductionDataGetRaw(requestParameters, initOverrides);
|
|
1419
|
+
return await response.value();
|
|
1420
|
+
}
|
|
1421
|
+
|
|
1422
|
+
/**
|
|
1423
|
+
* Creates request options for v2CoalMineProductionDataPost without sending the request
|
|
1424
|
+
*/
|
|
1425
|
+
async v2CoalMineProductionDataPostRequestOpts(requestParameters: V2CoalMineProductionDataPostRequest): Promise<runtime.RequestOpts> {
|
|
1426
|
+
if (requestParameters['dataParams'] == null) {
|
|
1427
|
+
throw new runtime.RequiredError(
|
|
1428
|
+
'dataParams',
|
|
1429
|
+
'Required parameter "dataParams" was null or undefined when calling v2CoalMineProductionDataPost().'
|
|
1430
|
+
);
|
|
1431
|
+
}
|
|
1432
|
+
|
|
1433
|
+
const queryParameters: any = {};
|
|
1434
|
+
|
|
1435
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1436
|
+
|
|
1437
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1438
|
+
|
|
1439
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1440
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
1441
|
+
}
|
|
1442
|
+
|
|
1443
|
+
|
|
1444
|
+
let urlPath = `/v2/coal/mine-production/data`;
|
|
1445
|
+
|
|
1446
|
+
return {
|
|
1447
|
+
path: urlPath,
|
|
1448
|
+
method: 'POST',
|
|
1449
|
+
headers: headerParameters,
|
|
1450
|
+
query: queryParameters,
|
|
1451
|
+
body: DataParamsToJSON(requestParameters['dataParams']),
|
|
1452
|
+
};
|
|
1453
|
+
}
|
|
1454
|
+
|
|
1455
|
+
/**
|
|
1456
|
+
* Class MinProductionController Mine Production data set top-level controller.
|
|
1457
|
+
* Return mine-production Data
|
|
1458
|
+
*/
|
|
1459
|
+
async v2CoalMineProductionDataPostRaw(requestParameters: V2CoalMineProductionDataPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataResponseContainer>> {
|
|
1460
|
+
const requestOptions = await this.v2CoalMineProductionDataPostRequestOpts(requestParameters);
|
|
1461
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1462
|
+
|
|
1463
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DataResponseContainerFromJSON(jsonValue));
|
|
1464
|
+
}
|
|
1465
|
+
|
|
1466
|
+
/**
|
|
1467
|
+
* Class MinProductionController Mine Production data set top-level controller.
|
|
1468
|
+
* Return mine-production Data
|
|
1469
|
+
*/
|
|
1470
|
+
async v2CoalMineProductionDataPost(requestParameters: V2CoalMineProductionDataPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataResponseContainer> {
|
|
1471
|
+
const response = await this.v2CoalMineProductionDataPostRaw(requestParameters, initOverrides);
|
|
1472
|
+
return await response.value();
|
|
1473
|
+
}
|
|
1474
|
+
|
|
1475
|
+
/**
|
|
1476
|
+
* Creates request options for v2CoalMineProductionFacetFacetIdGet without sending the request
|
|
1477
|
+
*/
|
|
1478
|
+
async v2CoalMineProductionFacetFacetIdGetRequestOpts(requestParameters: V2CoalMineProductionFacetFacetIdGetRequest): Promise<runtime.RequestOpts> {
|
|
1479
|
+
if (requestParameters['facetId'] == null) {
|
|
1480
|
+
throw new runtime.RequiredError(
|
|
1481
|
+
'facetId',
|
|
1482
|
+
'Required parameter "facetId" was null or undefined when calling v2CoalMineProductionFacetFacetIdGet().'
|
|
1483
|
+
);
|
|
1484
|
+
}
|
|
1485
|
+
|
|
1486
|
+
const queryParameters: any = {};
|
|
1487
|
+
|
|
1488
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1489
|
+
|
|
1490
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1491
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
1492
|
+
}
|
|
1493
|
+
|
|
1494
|
+
|
|
1495
|
+
let urlPath = `/v2/coal/mine-production/facet/{facet_id}`;
|
|
1496
|
+
urlPath = urlPath.replace('{facet_id}', encodeURIComponent(String(requestParameters['facetId'])));
|
|
1497
|
+
|
|
1498
|
+
return {
|
|
1499
|
+
path: urlPath,
|
|
1500
|
+
method: 'GET',
|
|
1501
|
+
headers: headerParameters,
|
|
1502
|
+
query: queryParameters,
|
|
1503
|
+
};
|
|
1504
|
+
}
|
|
1505
|
+
|
|
1506
|
+
/**
|
|
1507
|
+
*/
|
|
1508
|
+
async v2CoalMineProductionFacetFacetIdGetRaw(requestParameters: V2CoalMineProductionFacetFacetIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FacetDetailsContainer>> {
|
|
1509
|
+
const requestOptions = await this.v2CoalMineProductionFacetFacetIdGetRequestOpts(requestParameters);
|
|
1510
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1511
|
+
|
|
1512
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FacetDetailsContainerFromJSON(jsonValue));
|
|
1513
|
+
}
|
|
1514
|
+
|
|
1515
|
+
/**
|
|
1516
|
+
*/
|
|
1517
|
+
async v2CoalMineProductionFacetFacetIdGet(requestParameters: V2CoalMineProductionFacetFacetIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FacetDetailsContainer> {
|
|
1518
|
+
const response = await this.v2CoalMineProductionFacetFacetIdGetRaw(requestParameters, initOverrides);
|
|
1519
|
+
return await response.value();
|
|
1520
|
+
}
|
|
1521
|
+
|
|
1522
|
+
/**
|
|
1523
|
+
* Creates request options for v2CoalMineProductionFacetGet without sending the request
|
|
1524
|
+
*/
|
|
1525
|
+
async v2CoalMineProductionFacetGetRequestOpts(): Promise<runtime.RequestOpts> {
|
|
1526
|
+
const queryParameters: any = {};
|
|
1527
|
+
|
|
1528
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1529
|
+
|
|
1530
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1531
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
1532
|
+
}
|
|
1533
|
+
|
|
1534
|
+
|
|
1535
|
+
let urlPath = `/v2/coal/mine-production/facet`;
|
|
1536
|
+
|
|
1537
|
+
return {
|
|
1538
|
+
path: urlPath,
|
|
1539
|
+
method: 'GET',
|
|
1540
|
+
headers: headerParameters,
|
|
1541
|
+
query: queryParameters,
|
|
1542
|
+
};
|
|
1543
|
+
}
|
|
1544
|
+
|
|
1545
|
+
/**
|
|
1546
|
+
*/
|
|
1547
|
+
async v2CoalMineProductionFacetGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FacetOptionListContainer>> {
|
|
1548
|
+
const requestOptions = await this.v2CoalMineProductionFacetGetRequestOpts();
|
|
1549
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1550
|
+
|
|
1551
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FacetOptionListContainerFromJSON(jsonValue));
|
|
1552
|
+
}
|
|
1553
|
+
|
|
1554
|
+
/**
|
|
1555
|
+
*/
|
|
1556
|
+
async v2CoalMineProductionFacetGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FacetOptionListContainer> {
|
|
1557
|
+
const response = await this.v2CoalMineProductionFacetGetRaw(initOverrides);
|
|
1558
|
+
return await response.value();
|
|
1559
|
+
}
|
|
1560
|
+
|
|
1561
|
+
/**
|
|
1562
|
+
* Creates request options for v2CoalMineProductionGet without sending the request
|
|
1563
|
+
*/
|
|
1564
|
+
async v2CoalMineProductionGetRequestOpts(): Promise<runtime.RequestOpts> {
|
|
1565
|
+
const queryParameters: any = {};
|
|
1566
|
+
|
|
1567
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1568
|
+
|
|
1569
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1570
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
1571
|
+
}
|
|
1572
|
+
|
|
1573
|
+
|
|
1574
|
+
let urlPath = `/v2/coal/mine-production`;
|
|
1575
|
+
|
|
1576
|
+
return {
|
|
1577
|
+
path: urlPath,
|
|
1578
|
+
method: 'GET',
|
|
1579
|
+
headers: headerParameters,
|
|
1580
|
+
query: queryParameters,
|
|
1581
|
+
};
|
|
1582
|
+
}
|
|
1583
|
+
|
|
1584
|
+
/**
|
|
1585
|
+
*/
|
|
1586
|
+
async v2CoalMineProductionGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FinalRouteResponseContainer>> {
|
|
1587
|
+
const requestOptions = await this.v2CoalMineProductionGetRequestOpts();
|
|
1588
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1589
|
+
|
|
1590
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FinalRouteResponseContainerFromJSON(jsonValue));
|
|
1591
|
+
}
|
|
1592
|
+
|
|
1593
|
+
/**
|
|
1594
|
+
*/
|
|
1595
|
+
async v2CoalMineProductionGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FinalRouteResponseContainer> {
|
|
1596
|
+
const response = await this.v2CoalMineProductionGetRaw(initOverrides);
|
|
1597
|
+
return await response.value();
|
|
1598
|
+
}
|
|
1599
|
+
|
|
1600
|
+
/**
|
|
1601
|
+
* Creates request options for v2CoalPriceByRankDataGet without sending the request
|
|
1602
|
+
*/
|
|
1603
|
+
async v2CoalPriceByRankDataGetRequestOpts(requestParameters: V2CoalPriceByRankDataGetRequest): Promise<runtime.RequestOpts> {
|
|
1604
|
+
const queryParameters: any = {};
|
|
1605
|
+
|
|
1606
|
+
if (requestParameters['data'] != null) {
|
|
1607
|
+
queryParameters['data'] = requestParameters['data'];
|
|
1608
|
+
}
|
|
1609
|
+
|
|
1610
|
+
if (requestParameters['facets'] != null) {
|
|
1611
|
+
queryParameters['facets'] = requestParameters['facets'];
|
|
1612
|
+
}
|
|
1613
|
+
|
|
1614
|
+
if (requestParameters['frequency'] != null) {
|
|
1615
|
+
queryParameters['frequency'] = requestParameters['frequency'];
|
|
1616
|
+
}
|
|
1617
|
+
|
|
1618
|
+
if (requestParameters['start'] != null) {
|
|
1619
|
+
queryParameters['start'] = requestParameters['start'];
|
|
1620
|
+
}
|
|
1621
|
+
|
|
1622
|
+
if (requestParameters['end'] != null) {
|
|
1623
|
+
queryParameters['end'] = requestParameters['end'];
|
|
1624
|
+
}
|
|
1625
|
+
|
|
1626
|
+
if (requestParameters['sort'] != null) {
|
|
1627
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
1628
|
+
}
|
|
1629
|
+
|
|
1630
|
+
if (requestParameters['length'] != null) {
|
|
1631
|
+
queryParameters['length'] = requestParameters['length'];
|
|
1632
|
+
}
|
|
1633
|
+
|
|
1634
|
+
if (requestParameters['offset'] != null) {
|
|
1635
|
+
queryParameters['offset'] = requestParameters['offset'];
|
|
1636
|
+
}
|
|
1637
|
+
|
|
1638
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1639
|
+
|
|
1640
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1641
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
1642
|
+
}
|
|
1643
|
+
|
|
1644
|
+
|
|
1645
|
+
let urlPath = `/v2/coal/price-by-rank/data`;
|
|
1646
|
+
|
|
1647
|
+
return {
|
|
1648
|
+
path: urlPath,
|
|
1649
|
+
method: 'GET',
|
|
1650
|
+
headers: headerParameters,
|
|
1651
|
+
query: queryParameters,
|
|
1652
|
+
};
|
|
1653
|
+
}
|
|
1654
|
+
|
|
1655
|
+
/**
|
|
1656
|
+
* API data with query params
|
|
1657
|
+
*/
|
|
1658
|
+
async v2CoalPriceByRankDataGetRaw(requestParameters: V2CoalPriceByRankDataGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataResponseContainer>> {
|
|
1659
|
+
const requestOptions = await this.v2CoalPriceByRankDataGetRequestOpts(requestParameters);
|
|
1660
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1661
|
+
|
|
1662
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DataResponseContainerFromJSON(jsonValue));
|
|
1663
|
+
}
|
|
1664
|
+
|
|
1665
|
+
/**
|
|
1666
|
+
* API data with query params
|
|
1667
|
+
*/
|
|
1668
|
+
async v2CoalPriceByRankDataGet(requestParameters: V2CoalPriceByRankDataGetRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataResponseContainer> {
|
|
1669
|
+
const response = await this.v2CoalPriceByRankDataGetRaw(requestParameters, initOverrides);
|
|
1670
|
+
return await response.value();
|
|
1671
|
+
}
|
|
1672
|
+
|
|
1673
|
+
/**
|
|
1674
|
+
* Creates request options for v2CoalPriceByRankDataPost without sending the request
|
|
1675
|
+
*/
|
|
1676
|
+
async v2CoalPriceByRankDataPostRequestOpts(requestParameters: V2CoalPriceByRankDataPostRequest): Promise<runtime.RequestOpts> {
|
|
1677
|
+
if (requestParameters['dataParams'] == null) {
|
|
1678
|
+
throw new runtime.RequiredError(
|
|
1679
|
+
'dataParams',
|
|
1680
|
+
'Required parameter "dataParams" was null or undefined when calling v2CoalPriceByRankDataPost().'
|
|
1681
|
+
);
|
|
1682
|
+
}
|
|
1683
|
+
|
|
1684
|
+
const queryParameters: any = {};
|
|
1685
|
+
|
|
1686
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1687
|
+
|
|
1688
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1689
|
+
|
|
1690
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1691
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
1692
|
+
}
|
|
1693
|
+
|
|
1694
|
+
|
|
1695
|
+
let urlPath = `/v2/coal/price-by-rank/data`;
|
|
1696
|
+
|
|
1697
|
+
return {
|
|
1698
|
+
path: urlPath,
|
|
1699
|
+
method: 'POST',
|
|
1700
|
+
headers: headerParameters,
|
|
1701
|
+
query: queryParameters,
|
|
1702
|
+
body: DataParamsToJSON(requestParameters['dataParams']),
|
|
1703
|
+
};
|
|
1704
|
+
}
|
|
1705
|
+
|
|
1706
|
+
/**
|
|
1707
|
+
* Class PriceByRankController Price By Rank data set top-level controller.
|
|
1708
|
+
* Return price-by-rank Data
|
|
1709
|
+
*/
|
|
1710
|
+
async v2CoalPriceByRankDataPostRaw(requestParameters: V2CoalPriceByRankDataPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataResponseContainer>> {
|
|
1711
|
+
const requestOptions = await this.v2CoalPriceByRankDataPostRequestOpts(requestParameters);
|
|
1712
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1713
|
+
|
|
1714
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DataResponseContainerFromJSON(jsonValue));
|
|
1715
|
+
}
|
|
1716
|
+
|
|
1717
|
+
/**
|
|
1718
|
+
* Class PriceByRankController Price By Rank data set top-level controller.
|
|
1719
|
+
* Return price-by-rank Data
|
|
1720
|
+
*/
|
|
1721
|
+
async v2CoalPriceByRankDataPost(requestParameters: V2CoalPriceByRankDataPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataResponseContainer> {
|
|
1722
|
+
const response = await this.v2CoalPriceByRankDataPostRaw(requestParameters, initOverrides);
|
|
1723
|
+
return await response.value();
|
|
1724
|
+
}
|
|
1725
|
+
|
|
1726
|
+
/**
|
|
1727
|
+
* Creates request options for v2CoalPriceByRankFacetFacetIdGet without sending the request
|
|
1728
|
+
*/
|
|
1729
|
+
async v2CoalPriceByRankFacetFacetIdGetRequestOpts(requestParameters: V2CoalPriceByRankFacetFacetIdGetRequest): Promise<runtime.RequestOpts> {
|
|
1730
|
+
if (requestParameters['facetId'] == null) {
|
|
1731
|
+
throw new runtime.RequiredError(
|
|
1732
|
+
'facetId',
|
|
1733
|
+
'Required parameter "facetId" was null or undefined when calling v2CoalPriceByRankFacetFacetIdGet().'
|
|
1734
|
+
);
|
|
1735
|
+
}
|
|
1736
|
+
|
|
1737
|
+
const queryParameters: any = {};
|
|
1738
|
+
|
|
1739
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1740
|
+
|
|
1741
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1742
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
1743
|
+
}
|
|
1744
|
+
|
|
1745
|
+
|
|
1746
|
+
let urlPath = `/v2/coal/price-by-rank/facet/{facet_id}`;
|
|
1747
|
+
urlPath = urlPath.replace('{facet_id}', encodeURIComponent(String(requestParameters['facetId'])));
|
|
1748
|
+
|
|
1749
|
+
return {
|
|
1750
|
+
path: urlPath,
|
|
1751
|
+
method: 'GET',
|
|
1752
|
+
headers: headerParameters,
|
|
1753
|
+
query: queryParameters,
|
|
1754
|
+
};
|
|
1755
|
+
}
|
|
1756
|
+
|
|
1757
|
+
/**
|
|
1758
|
+
*/
|
|
1759
|
+
async v2CoalPriceByRankFacetFacetIdGetRaw(requestParameters: V2CoalPriceByRankFacetFacetIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FacetDetailsContainer>> {
|
|
1760
|
+
const requestOptions = await this.v2CoalPriceByRankFacetFacetIdGetRequestOpts(requestParameters);
|
|
1761
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1762
|
+
|
|
1763
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FacetDetailsContainerFromJSON(jsonValue));
|
|
1764
|
+
}
|
|
1765
|
+
|
|
1766
|
+
/**
|
|
1767
|
+
*/
|
|
1768
|
+
async v2CoalPriceByRankFacetFacetIdGet(requestParameters: V2CoalPriceByRankFacetFacetIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FacetDetailsContainer> {
|
|
1769
|
+
const response = await this.v2CoalPriceByRankFacetFacetIdGetRaw(requestParameters, initOverrides);
|
|
1770
|
+
return await response.value();
|
|
1771
|
+
}
|
|
1772
|
+
|
|
1773
|
+
/**
|
|
1774
|
+
* Creates request options for v2CoalPriceByRankFacetGet without sending the request
|
|
1775
|
+
*/
|
|
1776
|
+
async v2CoalPriceByRankFacetGetRequestOpts(): Promise<runtime.RequestOpts> {
|
|
1777
|
+
const queryParameters: any = {};
|
|
1778
|
+
|
|
1779
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1780
|
+
|
|
1781
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1782
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
1783
|
+
}
|
|
1784
|
+
|
|
1785
|
+
|
|
1786
|
+
let urlPath = `/v2/coal/price-by-rank/facet`;
|
|
1787
|
+
|
|
1788
|
+
return {
|
|
1789
|
+
path: urlPath,
|
|
1790
|
+
method: 'GET',
|
|
1791
|
+
headers: headerParameters,
|
|
1792
|
+
query: queryParameters,
|
|
1793
|
+
};
|
|
1794
|
+
}
|
|
1795
|
+
|
|
1796
|
+
/**
|
|
1797
|
+
*/
|
|
1798
|
+
async v2CoalPriceByRankFacetGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FacetOptionListContainer>> {
|
|
1799
|
+
const requestOptions = await this.v2CoalPriceByRankFacetGetRequestOpts();
|
|
1800
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1801
|
+
|
|
1802
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FacetOptionListContainerFromJSON(jsonValue));
|
|
1803
|
+
}
|
|
1804
|
+
|
|
1805
|
+
/**
|
|
1806
|
+
*/
|
|
1807
|
+
async v2CoalPriceByRankFacetGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FacetOptionListContainer> {
|
|
1808
|
+
const response = await this.v2CoalPriceByRankFacetGetRaw(initOverrides);
|
|
1809
|
+
return await response.value();
|
|
1810
|
+
}
|
|
1811
|
+
|
|
1812
|
+
/**
|
|
1813
|
+
* Creates request options for v2CoalPriceByRankGet without sending the request
|
|
1814
|
+
*/
|
|
1815
|
+
async v2CoalPriceByRankGetRequestOpts(): Promise<runtime.RequestOpts> {
|
|
1816
|
+
const queryParameters: any = {};
|
|
1817
|
+
|
|
1818
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1819
|
+
|
|
1820
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1821
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
1822
|
+
}
|
|
1823
|
+
|
|
1824
|
+
|
|
1825
|
+
let urlPath = `/v2/coal/price-by-rank`;
|
|
1826
|
+
|
|
1827
|
+
return {
|
|
1828
|
+
path: urlPath,
|
|
1829
|
+
method: 'GET',
|
|
1830
|
+
headers: headerParameters,
|
|
1831
|
+
query: queryParameters,
|
|
1832
|
+
};
|
|
1833
|
+
}
|
|
1834
|
+
|
|
1835
|
+
/**
|
|
1836
|
+
*/
|
|
1837
|
+
async v2CoalPriceByRankGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FinalRouteResponseContainer>> {
|
|
1838
|
+
const requestOptions = await this.v2CoalPriceByRankGetRequestOpts();
|
|
1839
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1840
|
+
|
|
1841
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FinalRouteResponseContainerFromJSON(jsonValue));
|
|
1842
|
+
}
|
|
1843
|
+
|
|
1844
|
+
/**
|
|
1845
|
+
*/
|
|
1846
|
+
async v2CoalPriceByRankGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FinalRouteResponseContainer> {
|
|
1847
|
+
const response = await this.v2CoalPriceByRankGetRaw(initOverrides);
|
|
1848
|
+
return await response.value();
|
|
1849
|
+
}
|
|
1850
|
+
|
|
1851
|
+
/**
|
|
1852
|
+
* Creates request options for v2CoalReservesCapacityDataGet without sending the request
|
|
1853
|
+
*/
|
|
1854
|
+
async v2CoalReservesCapacityDataGetRequestOpts(requestParameters: V2CoalReservesCapacityDataGetRequest): Promise<runtime.RequestOpts> {
|
|
1855
|
+
const queryParameters: any = {};
|
|
1856
|
+
|
|
1857
|
+
if (requestParameters['data'] != null) {
|
|
1858
|
+
queryParameters['data'] = requestParameters['data'];
|
|
1859
|
+
}
|
|
1860
|
+
|
|
1861
|
+
if (requestParameters['facets'] != null) {
|
|
1862
|
+
queryParameters['facets'] = requestParameters['facets'];
|
|
1863
|
+
}
|
|
1864
|
+
|
|
1865
|
+
if (requestParameters['frequency'] != null) {
|
|
1866
|
+
queryParameters['frequency'] = requestParameters['frequency'];
|
|
1867
|
+
}
|
|
1868
|
+
|
|
1869
|
+
if (requestParameters['start'] != null) {
|
|
1870
|
+
queryParameters['start'] = requestParameters['start'];
|
|
1871
|
+
}
|
|
1872
|
+
|
|
1873
|
+
if (requestParameters['end'] != null) {
|
|
1874
|
+
queryParameters['end'] = requestParameters['end'];
|
|
1875
|
+
}
|
|
1876
|
+
|
|
1877
|
+
if (requestParameters['sort'] != null) {
|
|
1878
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
1879
|
+
}
|
|
1880
|
+
|
|
1881
|
+
if (requestParameters['length'] != null) {
|
|
1882
|
+
queryParameters['length'] = requestParameters['length'];
|
|
1883
|
+
}
|
|
1884
|
+
|
|
1885
|
+
if (requestParameters['offset'] != null) {
|
|
1886
|
+
queryParameters['offset'] = requestParameters['offset'];
|
|
1887
|
+
}
|
|
1888
|
+
|
|
1889
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1890
|
+
|
|
1891
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1892
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
1893
|
+
}
|
|
1894
|
+
|
|
1895
|
+
|
|
1896
|
+
let urlPath = `/v2/coal/reserves-capacity/data`;
|
|
1897
|
+
|
|
1898
|
+
return {
|
|
1899
|
+
path: urlPath,
|
|
1900
|
+
method: 'GET',
|
|
1901
|
+
headers: headerParameters,
|
|
1902
|
+
query: queryParameters,
|
|
1903
|
+
};
|
|
1904
|
+
}
|
|
1905
|
+
|
|
1906
|
+
/**
|
|
1907
|
+
* API data with query params
|
|
1908
|
+
*/
|
|
1909
|
+
async v2CoalReservesCapacityDataGetRaw(requestParameters: V2CoalReservesCapacityDataGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataResponseContainer>> {
|
|
1910
|
+
const requestOptions = await this.v2CoalReservesCapacityDataGetRequestOpts(requestParameters);
|
|
1911
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1912
|
+
|
|
1913
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DataResponseContainerFromJSON(jsonValue));
|
|
1914
|
+
}
|
|
1915
|
+
|
|
1916
|
+
/**
|
|
1917
|
+
* API data with query params
|
|
1918
|
+
*/
|
|
1919
|
+
async v2CoalReservesCapacityDataGet(requestParameters: V2CoalReservesCapacityDataGetRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataResponseContainer> {
|
|
1920
|
+
const response = await this.v2CoalReservesCapacityDataGetRaw(requestParameters, initOverrides);
|
|
1921
|
+
return await response.value();
|
|
1922
|
+
}
|
|
1923
|
+
|
|
1924
|
+
/**
|
|
1925
|
+
* Creates request options for v2CoalReservesCapacityDataPost without sending the request
|
|
1926
|
+
*/
|
|
1927
|
+
async v2CoalReservesCapacityDataPostRequestOpts(requestParameters: V2CoalReservesCapacityDataPostRequest): Promise<runtime.RequestOpts> {
|
|
1928
|
+
if (requestParameters['dataParams'] == null) {
|
|
1929
|
+
throw new runtime.RequiredError(
|
|
1930
|
+
'dataParams',
|
|
1931
|
+
'Required parameter "dataParams" was null or undefined when calling v2CoalReservesCapacityDataPost().'
|
|
1932
|
+
);
|
|
1933
|
+
}
|
|
1934
|
+
|
|
1935
|
+
const queryParameters: any = {};
|
|
1936
|
+
|
|
1937
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1938
|
+
|
|
1939
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
1940
|
+
|
|
1941
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1942
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
1943
|
+
}
|
|
1944
|
+
|
|
1945
|
+
|
|
1946
|
+
let urlPath = `/v2/coal/reserves-capacity/data`;
|
|
1947
|
+
|
|
1948
|
+
return {
|
|
1949
|
+
path: urlPath,
|
|
1950
|
+
method: 'POST',
|
|
1951
|
+
headers: headerParameters,
|
|
1952
|
+
query: queryParameters,
|
|
1953
|
+
body: DataParamsToJSON(requestParameters['dataParams']),
|
|
1954
|
+
};
|
|
1955
|
+
}
|
|
1956
|
+
|
|
1957
|
+
/**
|
|
1958
|
+
* Class ReservesCapacityController Reserves Capacity data set top-level controller.
|
|
1959
|
+
* Return reserves-capacity data
|
|
1960
|
+
*/
|
|
1961
|
+
async v2CoalReservesCapacityDataPostRaw(requestParameters: V2CoalReservesCapacityDataPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataResponseContainer>> {
|
|
1962
|
+
const requestOptions = await this.v2CoalReservesCapacityDataPostRequestOpts(requestParameters);
|
|
1963
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
1964
|
+
|
|
1965
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DataResponseContainerFromJSON(jsonValue));
|
|
1966
|
+
}
|
|
1967
|
+
|
|
1968
|
+
/**
|
|
1969
|
+
* Class ReservesCapacityController Reserves Capacity data set top-level controller.
|
|
1970
|
+
* Return reserves-capacity data
|
|
1971
|
+
*/
|
|
1972
|
+
async v2CoalReservesCapacityDataPost(requestParameters: V2CoalReservesCapacityDataPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataResponseContainer> {
|
|
1973
|
+
const response = await this.v2CoalReservesCapacityDataPostRaw(requestParameters, initOverrides);
|
|
1974
|
+
return await response.value();
|
|
1975
|
+
}
|
|
1976
|
+
|
|
1977
|
+
/**
|
|
1978
|
+
* Creates request options for v2CoalReservesCapacityFacetFacetIdGet without sending the request
|
|
1979
|
+
*/
|
|
1980
|
+
async v2CoalReservesCapacityFacetFacetIdGetRequestOpts(requestParameters: V2CoalReservesCapacityFacetFacetIdGetRequest): Promise<runtime.RequestOpts> {
|
|
1981
|
+
if (requestParameters['facetId'] == null) {
|
|
1982
|
+
throw new runtime.RequiredError(
|
|
1983
|
+
'facetId',
|
|
1984
|
+
'Required parameter "facetId" was null or undefined when calling v2CoalReservesCapacityFacetFacetIdGet().'
|
|
1985
|
+
);
|
|
1986
|
+
}
|
|
1987
|
+
|
|
1988
|
+
const queryParameters: any = {};
|
|
1989
|
+
|
|
1990
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
1991
|
+
|
|
1992
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1993
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
1994
|
+
}
|
|
1995
|
+
|
|
1996
|
+
|
|
1997
|
+
let urlPath = `/v2/coal/reserves-capacity/facet/{facet_id}`;
|
|
1998
|
+
urlPath = urlPath.replace('{facet_id}', encodeURIComponent(String(requestParameters['facetId'])));
|
|
1999
|
+
|
|
2000
|
+
return {
|
|
2001
|
+
path: urlPath,
|
|
2002
|
+
method: 'GET',
|
|
2003
|
+
headers: headerParameters,
|
|
2004
|
+
query: queryParameters,
|
|
2005
|
+
};
|
|
2006
|
+
}
|
|
2007
|
+
|
|
2008
|
+
/**
|
|
2009
|
+
*/
|
|
2010
|
+
async v2CoalReservesCapacityFacetFacetIdGetRaw(requestParameters: V2CoalReservesCapacityFacetFacetIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FacetDetailsContainer>> {
|
|
2011
|
+
const requestOptions = await this.v2CoalReservesCapacityFacetFacetIdGetRequestOpts(requestParameters);
|
|
2012
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2013
|
+
|
|
2014
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FacetDetailsContainerFromJSON(jsonValue));
|
|
2015
|
+
}
|
|
2016
|
+
|
|
2017
|
+
/**
|
|
2018
|
+
*/
|
|
2019
|
+
async v2CoalReservesCapacityFacetFacetIdGet(requestParameters: V2CoalReservesCapacityFacetFacetIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FacetDetailsContainer> {
|
|
2020
|
+
const response = await this.v2CoalReservesCapacityFacetFacetIdGetRaw(requestParameters, initOverrides);
|
|
2021
|
+
return await response.value();
|
|
2022
|
+
}
|
|
2023
|
+
|
|
2024
|
+
/**
|
|
2025
|
+
* Creates request options for v2CoalReservesCapacityFacetGet without sending the request
|
|
2026
|
+
*/
|
|
2027
|
+
async v2CoalReservesCapacityFacetGetRequestOpts(): Promise<runtime.RequestOpts> {
|
|
2028
|
+
const queryParameters: any = {};
|
|
2029
|
+
|
|
2030
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
2031
|
+
|
|
2032
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2033
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
2034
|
+
}
|
|
2035
|
+
|
|
2036
|
+
|
|
2037
|
+
let urlPath = `/v2/coal/reserves-capacity/facet`;
|
|
2038
|
+
|
|
2039
|
+
return {
|
|
2040
|
+
path: urlPath,
|
|
2041
|
+
method: 'GET',
|
|
2042
|
+
headers: headerParameters,
|
|
2043
|
+
query: queryParameters,
|
|
2044
|
+
};
|
|
2045
|
+
}
|
|
2046
|
+
|
|
2047
|
+
/**
|
|
2048
|
+
*/
|
|
2049
|
+
async v2CoalReservesCapacityFacetGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FacetOptionListContainer>> {
|
|
2050
|
+
const requestOptions = await this.v2CoalReservesCapacityFacetGetRequestOpts();
|
|
2051
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2052
|
+
|
|
2053
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FacetOptionListContainerFromJSON(jsonValue));
|
|
2054
|
+
}
|
|
2055
|
+
|
|
2056
|
+
/**
|
|
2057
|
+
*/
|
|
2058
|
+
async v2CoalReservesCapacityFacetGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FacetOptionListContainer> {
|
|
2059
|
+
const response = await this.v2CoalReservesCapacityFacetGetRaw(initOverrides);
|
|
2060
|
+
return await response.value();
|
|
2061
|
+
}
|
|
2062
|
+
|
|
2063
|
+
/**
|
|
2064
|
+
* Creates request options for v2CoalReservesCapacityGet without sending the request
|
|
2065
|
+
*/
|
|
2066
|
+
async v2CoalReservesCapacityGetRequestOpts(): Promise<runtime.RequestOpts> {
|
|
2067
|
+
const queryParameters: any = {};
|
|
2068
|
+
|
|
2069
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
2070
|
+
|
|
2071
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2072
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
2073
|
+
}
|
|
2074
|
+
|
|
2075
|
+
|
|
2076
|
+
let urlPath = `/v2/coal/reserves-capacity`;
|
|
2077
|
+
|
|
2078
|
+
return {
|
|
2079
|
+
path: urlPath,
|
|
2080
|
+
method: 'GET',
|
|
2081
|
+
headers: headerParameters,
|
|
2082
|
+
query: queryParameters,
|
|
2083
|
+
};
|
|
2084
|
+
}
|
|
2085
|
+
|
|
2086
|
+
/**
|
|
2087
|
+
*/
|
|
2088
|
+
async v2CoalReservesCapacityGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FinalRouteResponseContainer>> {
|
|
2089
|
+
const requestOptions = await this.v2CoalReservesCapacityGetRequestOpts();
|
|
2090
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2091
|
+
|
|
2092
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FinalRouteResponseContainerFromJSON(jsonValue));
|
|
2093
|
+
}
|
|
2094
|
+
|
|
2095
|
+
/**
|
|
2096
|
+
*/
|
|
2097
|
+
async v2CoalReservesCapacityGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FinalRouteResponseContainer> {
|
|
2098
|
+
const response = await this.v2CoalReservesCapacityGetRaw(initOverrides);
|
|
2099
|
+
return await response.value();
|
|
2100
|
+
}
|
|
2101
|
+
|
|
2102
|
+
/**
|
|
2103
|
+
* Creates request options for v2CoalShipmentsByMineByPlantDataGet without sending the request
|
|
2104
|
+
*/
|
|
2105
|
+
async v2CoalShipmentsByMineByPlantDataGetRequestOpts(requestParameters: V2CoalShipmentsByMineByPlantDataGetRequest): Promise<runtime.RequestOpts> {
|
|
2106
|
+
const queryParameters: any = {};
|
|
2107
|
+
|
|
2108
|
+
if (requestParameters['data'] != null) {
|
|
2109
|
+
queryParameters['data'] = requestParameters['data'];
|
|
2110
|
+
}
|
|
2111
|
+
|
|
2112
|
+
if (requestParameters['facets'] != null) {
|
|
2113
|
+
queryParameters['facets'] = requestParameters['facets'];
|
|
2114
|
+
}
|
|
2115
|
+
|
|
2116
|
+
if (requestParameters['frequency'] != null) {
|
|
2117
|
+
queryParameters['frequency'] = requestParameters['frequency'];
|
|
2118
|
+
}
|
|
2119
|
+
|
|
2120
|
+
if (requestParameters['start'] != null) {
|
|
2121
|
+
queryParameters['start'] = requestParameters['start'];
|
|
2122
|
+
}
|
|
2123
|
+
|
|
2124
|
+
if (requestParameters['end'] != null) {
|
|
2125
|
+
queryParameters['end'] = requestParameters['end'];
|
|
2126
|
+
}
|
|
2127
|
+
|
|
2128
|
+
if (requestParameters['sort'] != null) {
|
|
2129
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
2130
|
+
}
|
|
2131
|
+
|
|
2132
|
+
if (requestParameters['length'] != null) {
|
|
2133
|
+
queryParameters['length'] = requestParameters['length'];
|
|
2134
|
+
}
|
|
2135
|
+
|
|
2136
|
+
if (requestParameters['offset'] != null) {
|
|
2137
|
+
queryParameters['offset'] = requestParameters['offset'];
|
|
2138
|
+
}
|
|
2139
|
+
|
|
2140
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
2141
|
+
|
|
2142
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2143
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
2144
|
+
}
|
|
2145
|
+
|
|
2146
|
+
|
|
2147
|
+
let urlPath = `/v2/coal/shipments/by-mine-by-plant/data`;
|
|
2148
|
+
|
|
2149
|
+
return {
|
|
2150
|
+
path: urlPath,
|
|
2151
|
+
method: 'GET',
|
|
2152
|
+
headers: headerParameters,
|
|
2153
|
+
query: queryParameters,
|
|
2154
|
+
};
|
|
2155
|
+
}
|
|
2156
|
+
|
|
2157
|
+
/**
|
|
2158
|
+
* API data with query params
|
|
2159
|
+
*/
|
|
2160
|
+
async v2CoalShipmentsByMineByPlantDataGetRaw(requestParameters: V2CoalShipmentsByMineByPlantDataGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataResponseContainer>> {
|
|
2161
|
+
const requestOptions = await this.v2CoalShipmentsByMineByPlantDataGetRequestOpts(requestParameters);
|
|
2162
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2163
|
+
|
|
2164
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DataResponseContainerFromJSON(jsonValue));
|
|
2165
|
+
}
|
|
2166
|
+
|
|
2167
|
+
/**
|
|
2168
|
+
* API data with query params
|
|
2169
|
+
*/
|
|
2170
|
+
async v2CoalShipmentsByMineByPlantDataGet(requestParameters: V2CoalShipmentsByMineByPlantDataGetRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataResponseContainer> {
|
|
2171
|
+
const response = await this.v2CoalShipmentsByMineByPlantDataGetRaw(requestParameters, initOverrides);
|
|
2172
|
+
return await response.value();
|
|
2173
|
+
}
|
|
2174
|
+
|
|
2175
|
+
/**
|
|
2176
|
+
* Creates request options for v2CoalShipmentsByMineByPlantDataPost without sending the request
|
|
2177
|
+
*/
|
|
2178
|
+
async v2CoalShipmentsByMineByPlantDataPostRequestOpts(requestParameters: V2CoalShipmentsByMineByPlantDataPostRequest): Promise<runtime.RequestOpts> {
|
|
2179
|
+
if (requestParameters['dataParams'] == null) {
|
|
2180
|
+
throw new runtime.RequiredError(
|
|
2181
|
+
'dataParams',
|
|
2182
|
+
'Required parameter "dataParams" was null or undefined when calling v2CoalShipmentsByMineByPlantDataPost().'
|
|
2183
|
+
);
|
|
2184
|
+
}
|
|
2185
|
+
|
|
2186
|
+
const queryParameters: any = {};
|
|
2187
|
+
|
|
2188
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
2189
|
+
|
|
2190
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
2191
|
+
|
|
2192
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2193
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
2194
|
+
}
|
|
2195
|
+
|
|
2196
|
+
|
|
2197
|
+
let urlPath = `/v2/coal/shipments/by-mine-by-plant/data`;
|
|
2198
|
+
|
|
2199
|
+
return {
|
|
2200
|
+
path: urlPath,
|
|
2201
|
+
method: 'POST',
|
|
2202
|
+
headers: headerParameters,
|
|
2203
|
+
query: queryParameters,
|
|
2204
|
+
body: DataParamsToJSON(requestParameters['dataParams']),
|
|
2205
|
+
};
|
|
2206
|
+
}
|
|
2207
|
+
|
|
2208
|
+
/**
|
|
2209
|
+
* Return shipments by-mine-by-plant data
|
|
2210
|
+
*/
|
|
2211
|
+
async v2CoalShipmentsByMineByPlantDataPostRaw(requestParameters: V2CoalShipmentsByMineByPlantDataPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataResponseContainer>> {
|
|
2212
|
+
const requestOptions = await this.v2CoalShipmentsByMineByPlantDataPostRequestOpts(requestParameters);
|
|
2213
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2214
|
+
|
|
2215
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DataResponseContainerFromJSON(jsonValue));
|
|
2216
|
+
}
|
|
2217
|
+
|
|
2218
|
+
/**
|
|
2219
|
+
* Return shipments by-mine-by-plant data
|
|
2220
|
+
*/
|
|
2221
|
+
async v2CoalShipmentsByMineByPlantDataPost(requestParameters: V2CoalShipmentsByMineByPlantDataPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataResponseContainer> {
|
|
2222
|
+
const response = await this.v2CoalShipmentsByMineByPlantDataPostRaw(requestParameters, initOverrides);
|
|
2223
|
+
return await response.value();
|
|
2224
|
+
}
|
|
2225
|
+
|
|
2226
|
+
/**
|
|
2227
|
+
* Creates request options for v2CoalShipmentsByMineByPlantFacetFacetIdGet without sending the request
|
|
2228
|
+
*/
|
|
2229
|
+
async v2CoalShipmentsByMineByPlantFacetFacetIdGetRequestOpts(requestParameters: V2CoalShipmentsByMineByPlantFacetFacetIdGetRequest): Promise<runtime.RequestOpts> {
|
|
2230
|
+
if (requestParameters['facetId'] == null) {
|
|
2231
|
+
throw new runtime.RequiredError(
|
|
2232
|
+
'facetId',
|
|
2233
|
+
'Required parameter "facetId" was null or undefined when calling v2CoalShipmentsByMineByPlantFacetFacetIdGet().'
|
|
2234
|
+
);
|
|
2235
|
+
}
|
|
2236
|
+
|
|
2237
|
+
const queryParameters: any = {};
|
|
2238
|
+
|
|
2239
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
2240
|
+
|
|
2241
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2242
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
2243
|
+
}
|
|
2244
|
+
|
|
2245
|
+
|
|
2246
|
+
let urlPath = `/v2/coal/shipments/by-mine-by-plant/facet/{facet_id}`;
|
|
2247
|
+
urlPath = urlPath.replace('{facet_id}', encodeURIComponent(String(requestParameters['facetId'])));
|
|
2248
|
+
|
|
2249
|
+
return {
|
|
2250
|
+
path: urlPath,
|
|
2251
|
+
method: 'GET',
|
|
2252
|
+
headers: headerParameters,
|
|
2253
|
+
query: queryParameters,
|
|
2254
|
+
};
|
|
2255
|
+
}
|
|
2256
|
+
|
|
2257
|
+
/**
|
|
2258
|
+
*/
|
|
2259
|
+
async v2CoalShipmentsByMineByPlantFacetFacetIdGetRaw(requestParameters: V2CoalShipmentsByMineByPlantFacetFacetIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FacetDetailsContainer>> {
|
|
2260
|
+
const requestOptions = await this.v2CoalShipmentsByMineByPlantFacetFacetIdGetRequestOpts(requestParameters);
|
|
2261
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2262
|
+
|
|
2263
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FacetDetailsContainerFromJSON(jsonValue));
|
|
2264
|
+
}
|
|
2265
|
+
|
|
2266
|
+
/**
|
|
2267
|
+
*/
|
|
2268
|
+
async v2CoalShipmentsByMineByPlantFacetFacetIdGet(requestParameters: V2CoalShipmentsByMineByPlantFacetFacetIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FacetDetailsContainer> {
|
|
2269
|
+
const response = await this.v2CoalShipmentsByMineByPlantFacetFacetIdGetRaw(requestParameters, initOverrides);
|
|
2270
|
+
return await response.value();
|
|
2271
|
+
}
|
|
2272
|
+
|
|
2273
|
+
/**
|
|
2274
|
+
* Creates request options for v2CoalShipmentsByMineByPlantFacetGet without sending the request
|
|
2275
|
+
*/
|
|
2276
|
+
async v2CoalShipmentsByMineByPlantFacetGetRequestOpts(): Promise<runtime.RequestOpts> {
|
|
2277
|
+
const queryParameters: any = {};
|
|
2278
|
+
|
|
2279
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
2280
|
+
|
|
2281
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2282
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
2283
|
+
}
|
|
2284
|
+
|
|
2285
|
+
|
|
2286
|
+
let urlPath = `/v2/coal/shipments/by-mine-by-plant/facet`;
|
|
2287
|
+
|
|
2288
|
+
return {
|
|
2289
|
+
path: urlPath,
|
|
2290
|
+
method: 'GET',
|
|
2291
|
+
headers: headerParameters,
|
|
2292
|
+
query: queryParameters,
|
|
2293
|
+
};
|
|
2294
|
+
}
|
|
2295
|
+
|
|
2296
|
+
/**
|
|
2297
|
+
*/
|
|
2298
|
+
async v2CoalShipmentsByMineByPlantFacetGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FacetOptionListContainer>> {
|
|
2299
|
+
const requestOptions = await this.v2CoalShipmentsByMineByPlantFacetGetRequestOpts();
|
|
2300
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2301
|
+
|
|
2302
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FacetOptionListContainerFromJSON(jsonValue));
|
|
2303
|
+
}
|
|
2304
|
+
|
|
2305
|
+
/**
|
|
2306
|
+
*/
|
|
2307
|
+
async v2CoalShipmentsByMineByPlantFacetGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FacetOptionListContainer> {
|
|
2308
|
+
const response = await this.v2CoalShipmentsByMineByPlantFacetGetRaw(initOverrides);
|
|
2309
|
+
return await response.value();
|
|
2310
|
+
}
|
|
2311
|
+
|
|
2312
|
+
/**
|
|
2313
|
+
* Creates request options for v2CoalShipmentsByMineByPlantGet without sending the request
|
|
2314
|
+
*/
|
|
2315
|
+
async v2CoalShipmentsByMineByPlantGetRequestOpts(): Promise<runtime.RequestOpts> {
|
|
2316
|
+
const queryParameters: any = {};
|
|
2317
|
+
|
|
2318
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
2319
|
+
|
|
2320
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2321
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
2322
|
+
}
|
|
2323
|
+
|
|
2324
|
+
|
|
2325
|
+
let urlPath = `/v2/coal/shipments/by-mine-by-plant`;
|
|
2326
|
+
|
|
2327
|
+
return {
|
|
2328
|
+
path: urlPath,
|
|
2329
|
+
method: 'GET',
|
|
2330
|
+
headers: headerParameters,
|
|
2331
|
+
query: queryParameters,
|
|
2332
|
+
};
|
|
2333
|
+
}
|
|
2334
|
+
|
|
2335
|
+
/**
|
|
2336
|
+
*/
|
|
2337
|
+
async v2CoalShipmentsByMineByPlantGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FinalRouteResponseContainer>> {
|
|
2338
|
+
const requestOptions = await this.v2CoalShipmentsByMineByPlantGetRequestOpts();
|
|
2339
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2340
|
+
|
|
2341
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FinalRouteResponseContainerFromJSON(jsonValue));
|
|
2342
|
+
}
|
|
2343
|
+
|
|
2344
|
+
/**
|
|
2345
|
+
*/
|
|
2346
|
+
async v2CoalShipmentsByMineByPlantGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FinalRouteResponseContainer> {
|
|
2347
|
+
const response = await this.v2CoalShipmentsByMineByPlantGetRaw(initOverrides);
|
|
2348
|
+
return await response.value();
|
|
2349
|
+
}
|
|
2350
|
+
|
|
2351
|
+
/**
|
|
2352
|
+
* Creates request options for v2CoalShipmentsGet without sending the request
|
|
2353
|
+
*/
|
|
2354
|
+
async v2CoalShipmentsGetRequestOpts(): Promise<runtime.RequestOpts> {
|
|
2355
|
+
const queryParameters: any = {};
|
|
2356
|
+
|
|
2357
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
2358
|
+
|
|
2359
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2360
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
2361
|
+
}
|
|
2362
|
+
|
|
2363
|
+
|
|
2364
|
+
let urlPath = `/v2/coal/shipments`;
|
|
2365
|
+
|
|
2366
|
+
return {
|
|
2367
|
+
path: urlPath,
|
|
2368
|
+
method: 'GET',
|
|
2369
|
+
headers: headerParameters,
|
|
2370
|
+
query: queryParameters,
|
|
2371
|
+
};
|
|
2372
|
+
}
|
|
2373
|
+
|
|
2374
|
+
/**
|
|
2375
|
+
* Coal data set top-level controller.
|
|
2376
|
+
* Class CoalController
|
|
2377
|
+
*/
|
|
2378
|
+
async v2CoalShipmentsGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RouteResponseContainer>> {
|
|
2379
|
+
const requestOptions = await this.v2CoalShipmentsGetRequestOpts();
|
|
2380
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2381
|
+
|
|
2382
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => RouteResponseContainerFromJSON(jsonValue));
|
|
2383
|
+
}
|
|
2384
|
+
|
|
2385
|
+
/**
|
|
2386
|
+
* Coal data set top-level controller.
|
|
2387
|
+
* Class CoalController
|
|
2388
|
+
*/
|
|
2389
|
+
async v2CoalShipmentsGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RouteResponseContainer> {
|
|
2390
|
+
const response = await this.v2CoalShipmentsGetRaw(initOverrides);
|
|
2391
|
+
return await response.value();
|
|
2392
|
+
}
|
|
2393
|
+
|
|
2394
|
+
/**
|
|
2395
|
+
* Creates request options for v2CoalShipmentsMineAggregatesDataGet without sending the request
|
|
2396
|
+
*/
|
|
2397
|
+
async v2CoalShipmentsMineAggregatesDataGetRequestOpts(requestParameters: V2CoalShipmentsMineAggregatesDataGetRequest): Promise<runtime.RequestOpts> {
|
|
2398
|
+
const queryParameters: any = {};
|
|
2399
|
+
|
|
2400
|
+
if (requestParameters['data'] != null) {
|
|
2401
|
+
queryParameters['data'] = requestParameters['data'];
|
|
2402
|
+
}
|
|
2403
|
+
|
|
2404
|
+
if (requestParameters['facets'] != null) {
|
|
2405
|
+
queryParameters['facets'] = requestParameters['facets'];
|
|
2406
|
+
}
|
|
2407
|
+
|
|
2408
|
+
if (requestParameters['frequency'] != null) {
|
|
2409
|
+
queryParameters['frequency'] = requestParameters['frequency'];
|
|
2410
|
+
}
|
|
2411
|
+
|
|
2412
|
+
if (requestParameters['start'] != null) {
|
|
2413
|
+
queryParameters['start'] = requestParameters['start'];
|
|
2414
|
+
}
|
|
2415
|
+
|
|
2416
|
+
if (requestParameters['end'] != null) {
|
|
2417
|
+
queryParameters['end'] = requestParameters['end'];
|
|
2418
|
+
}
|
|
2419
|
+
|
|
2420
|
+
if (requestParameters['sort'] != null) {
|
|
2421
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
2422
|
+
}
|
|
2423
|
+
|
|
2424
|
+
if (requestParameters['length'] != null) {
|
|
2425
|
+
queryParameters['length'] = requestParameters['length'];
|
|
2426
|
+
}
|
|
2427
|
+
|
|
2428
|
+
if (requestParameters['offset'] != null) {
|
|
2429
|
+
queryParameters['offset'] = requestParameters['offset'];
|
|
2430
|
+
}
|
|
2431
|
+
|
|
2432
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
2433
|
+
|
|
2434
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2435
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
2436
|
+
}
|
|
2437
|
+
|
|
2438
|
+
|
|
2439
|
+
let urlPath = `/v2/coal/shipments/mine-aggregates/data`;
|
|
2440
|
+
|
|
2441
|
+
return {
|
|
2442
|
+
path: urlPath,
|
|
2443
|
+
method: 'GET',
|
|
2444
|
+
headers: headerParameters,
|
|
2445
|
+
query: queryParameters,
|
|
2446
|
+
};
|
|
2447
|
+
}
|
|
2448
|
+
|
|
2449
|
+
/**
|
|
2450
|
+
* API data with query params
|
|
2451
|
+
*/
|
|
2452
|
+
async v2CoalShipmentsMineAggregatesDataGetRaw(requestParameters: V2CoalShipmentsMineAggregatesDataGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataResponseContainer>> {
|
|
2453
|
+
const requestOptions = await this.v2CoalShipmentsMineAggregatesDataGetRequestOpts(requestParameters);
|
|
2454
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2455
|
+
|
|
2456
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DataResponseContainerFromJSON(jsonValue));
|
|
2457
|
+
}
|
|
2458
|
+
|
|
2459
|
+
/**
|
|
2460
|
+
* API data with query params
|
|
2461
|
+
*/
|
|
2462
|
+
async v2CoalShipmentsMineAggregatesDataGet(requestParameters: V2CoalShipmentsMineAggregatesDataGetRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataResponseContainer> {
|
|
2463
|
+
const response = await this.v2CoalShipmentsMineAggregatesDataGetRaw(requestParameters, initOverrides);
|
|
2464
|
+
return await response.value();
|
|
2465
|
+
}
|
|
2466
|
+
|
|
2467
|
+
/**
|
|
2468
|
+
* Creates request options for v2CoalShipmentsMineAggregatesDataPost without sending the request
|
|
2469
|
+
*/
|
|
2470
|
+
async v2CoalShipmentsMineAggregatesDataPostRequestOpts(requestParameters: V2CoalShipmentsMineAggregatesDataPostRequest): Promise<runtime.RequestOpts> {
|
|
2471
|
+
if (requestParameters['dataParams'] == null) {
|
|
2472
|
+
throw new runtime.RequiredError(
|
|
2473
|
+
'dataParams',
|
|
2474
|
+
'Required parameter "dataParams" was null or undefined when calling v2CoalShipmentsMineAggregatesDataPost().'
|
|
2475
|
+
);
|
|
2476
|
+
}
|
|
2477
|
+
|
|
2478
|
+
const queryParameters: any = {};
|
|
2479
|
+
|
|
2480
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
2481
|
+
|
|
2482
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
2483
|
+
|
|
2484
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2485
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
2486
|
+
}
|
|
2487
|
+
|
|
2488
|
+
|
|
2489
|
+
let urlPath = `/v2/coal/shipments/mine-aggregates/data`;
|
|
2490
|
+
|
|
2491
|
+
return {
|
|
2492
|
+
path: urlPath,
|
|
2493
|
+
method: 'POST',
|
|
2494
|
+
headers: headerParameters,
|
|
2495
|
+
query: queryParameters,
|
|
2496
|
+
body: DataParamsToJSON(requestParameters['dataParams']),
|
|
2497
|
+
};
|
|
2498
|
+
}
|
|
2499
|
+
|
|
2500
|
+
/**
|
|
2501
|
+
* Return shipments mine-aggregates data
|
|
2502
|
+
*/
|
|
2503
|
+
async v2CoalShipmentsMineAggregatesDataPostRaw(requestParameters: V2CoalShipmentsMineAggregatesDataPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataResponseContainer>> {
|
|
2504
|
+
const requestOptions = await this.v2CoalShipmentsMineAggregatesDataPostRequestOpts(requestParameters);
|
|
2505
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2506
|
+
|
|
2507
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DataResponseContainerFromJSON(jsonValue));
|
|
2508
|
+
}
|
|
2509
|
+
|
|
2510
|
+
/**
|
|
2511
|
+
* Return shipments mine-aggregates data
|
|
2512
|
+
*/
|
|
2513
|
+
async v2CoalShipmentsMineAggregatesDataPost(requestParameters: V2CoalShipmentsMineAggregatesDataPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataResponseContainer> {
|
|
2514
|
+
const response = await this.v2CoalShipmentsMineAggregatesDataPostRaw(requestParameters, initOverrides);
|
|
2515
|
+
return await response.value();
|
|
2516
|
+
}
|
|
2517
|
+
|
|
2518
|
+
/**
|
|
2519
|
+
* Creates request options for v2CoalShipmentsMineAggregatesFacetFacetIdGet without sending the request
|
|
2520
|
+
*/
|
|
2521
|
+
async v2CoalShipmentsMineAggregatesFacetFacetIdGetRequestOpts(requestParameters: V2CoalShipmentsMineAggregatesFacetFacetIdGetRequest): Promise<runtime.RequestOpts> {
|
|
2522
|
+
if (requestParameters['facetId'] == null) {
|
|
2523
|
+
throw new runtime.RequiredError(
|
|
2524
|
+
'facetId',
|
|
2525
|
+
'Required parameter "facetId" was null or undefined when calling v2CoalShipmentsMineAggregatesFacetFacetIdGet().'
|
|
2526
|
+
);
|
|
2527
|
+
}
|
|
2528
|
+
|
|
2529
|
+
const queryParameters: any = {};
|
|
2530
|
+
|
|
2531
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
2532
|
+
|
|
2533
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2534
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
2535
|
+
}
|
|
2536
|
+
|
|
2537
|
+
|
|
2538
|
+
let urlPath = `/v2/coal/shipments/mine-aggregates/facet/{facet_id}`;
|
|
2539
|
+
urlPath = urlPath.replace('{facet_id}', encodeURIComponent(String(requestParameters['facetId'])));
|
|
2540
|
+
|
|
2541
|
+
return {
|
|
2542
|
+
path: urlPath,
|
|
2543
|
+
method: 'GET',
|
|
2544
|
+
headers: headerParameters,
|
|
2545
|
+
query: queryParameters,
|
|
2546
|
+
};
|
|
2547
|
+
}
|
|
2548
|
+
|
|
2549
|
+
/**
|
|
2550
|
+
*/
|
|
2551
|
+
async v2CoalShipmentsMineAggregatesFacetFacetIdGetRaw(requestParameters: V2CoalShipmentsMineAggregatesFacetFacetIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FacetDetailsContainer>> {
|
|
2552
|
+
const requestOptions = await this.v2CoalShipmentsMineAggregatesFacetFacetIdGetRequestOpts(requestParameters);
|
|
2553
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2554
|
+
|
|
2555
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FacetDetailsContainerFromJSON(jsonValue));
|
|
2556
|
+
}
|
|
2557
|
+
|
|
2558
|
+
/**
|
|
2559
|
+
*/
|
|
2560
|
+
async v2CoalShipmentsMineAggregatesFacetFacetIdGet(requestParameters: V2CoalShipmentsMineAggregatesFacetFacetIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FacetDetailsContainer> {
|
|
2561
|
+
const response = await this.v2CoalShipmentsMineAggregatesFacetFacetIdGetRaw(requestParameters, initOverrides);
|
|
2562
|
+
return await response.value();
|
|
2563
|
+
}
|
|
2564
|
+
|
|
2565
|
+
/**
|
|
2566
|
+
* Creates request options for v2CoalShipmentsMineAggregatesFacetGet without sending the request
|
|
2567
|
+
*/
|
|
2568
|
+
async v2CoalShipmentsMineAggregatesFacetGetRequestOpts(): Promise<runtime.RequestOpts> {
|
|
2569
|
+
const queryParameters: any = {};
|
|
2570
|
+
|
|
2571
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
2572
|
+
|
|
2573
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2574
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
2575
|
+
}
|
|
2576
|
+
|
|
2577
|
+
|
|
2578
|
+
let urlPath = `/v2/coal/shipments/mine-aggregates/facet`;
|
|
2579
|
+
|
|
2580
|
+
return {
|
|
2581
|
+
path: urlPath,
|
|
2582
|
+
method: 'GET',
|
|
2583
|
+
headers: headerParameters,
|
|
2584
|
+
query: queryParameters,
|
|
2585
|
+
};
|
|
2586
|
+
}
|
|
2587
|
+
|
|
2588
|
+
/**
|
|
2589
|
+
*/
|
|
2590
|
+
async v2CoalShipmentsMineAggregatesFacetGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FacetOptionListContainer>> {
|
|
2591
|
+
const requestOptions = await this.v2CoalShipmentsMineAggregatesFacetGetRequestOpts();
|
|
2592
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2593
|
+
|
|
2594
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FacetOptionListContainerFromJSON(jsonValue));
|
|
2595
|
+
}
|
|
2596
|
+
|
|
2597
|
+
/**
|
|
2598
|
+
*/
|
|
2599
|
+
async v2CoalShipmentsMineAggregatesFacetGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FacetOptionListContainer> {
|
|
2600
|
+
const response = await this.v2CoalShipmentsMineAggregatesFacetGetRaw(initOverrides);
|
|
2601
|
+
return await response.value();
|
|
2602
|
+
}
|
|
2603
|
+
|
|
2604
|
+
/**
|
|
2605
|
+
* Creates request options for v2CoalShipmentsMineAggregatesGet without sending the request
|
|
2606
|
+
*/
|
|
2607
|
+
async v2CoalShipmentsMineAggregatesGetRequestOpts(): Promise<runtime.RequestOpts> {
|
|
2608
|
+
const queryParameters: any = {};
|
|
2609
|
+
|
|
2610
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
2611
|
+
|
|
2612
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2613
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
2614
|
+
}
|
|
2615
|
+
|
|
2616
|
+
|
|
2617
|
+
let urlPath = `/v2/coal/shipments/mine-aggregates`;
|
|
2618
|
+
|
|
2619
|
+
return {
|
|
2620
|
+
path: urlPath,
|
|
2621
|
+
method: 'GET',
|
|
2622
|
+
headers: headerParameters,
|
|
2623
|
+
query: queryParameters,
|
|
2624
|
+
};
|
|
2625
|
+
}
|
|
2626
|
+
|
|
2627
|
+
/**
|
|
2628
|
+
*/
|
|
2629
|
+
async v2CoalShipmentsMineAggregatesGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FinalRouteResponseContainer>> {
|
|
2630
|
+
const requestOptions = await this.v2CoalShipmentsMineAggregatesGetRequestOpts();
|
|
2631
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2632
|
+
|
|
2633
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FinalRouteResponseContainerFromJSON(jsonValue));
|
|
2634
|
+
}
|
|
2635
|
+
|
|
2636
|
+
/**
|
|
2637
|
+
*/
|
|
2638
|
+
async v2CoalShipmentsMineAggregatesGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FinalRouteResponseContainer> {
|
|
2639
|
+
const response = await this.v2CoalShipmentsMineAggregatesGetRaw(initOverrides);
|
|
2640
|
+
return await response.value();
|
|
2641
|
+
}
|
|
2642
|
+
|
|
2643
|
+
/**
|
|
2644
|
+
* Creates request options for v2CoalShipmentsMineStateAggregatesDataGet without sending the request
|
|
2645
|
+
*/
|
|
2646
|
+
async v2CoalShipmentsMineStateAggregatesDataGetRequestOpts(requestParameters: V2CoalShipmentsMineStateAggregatesDataGetRequest): Promise<runtime.RequestOpts> {
|
|
2647
|
+
const queryParameters: any = {};
|
|
2648
|
+
|
|
2649
|
+
if (requestParameters['data'] != null) {
|
|
2650
|
+
queryParameters['data'] = requestParameters['data'];
|
|
2651
|
+
}
|
|
2652
|
+
|
|
2653
|
+
if (requestParameters['facets'] != null) {
|
|
2654
|
+
queryParameters['facets'] = requestParameters['facets'];
|
|
2655
|
+
}
|
|
2656
|
+
|
|
2657
|
+
if (requestParameters['frequency'] != null) {
|
|
2658
|
+
queryParameters['frequency'] = requestParameters['frequency'];
|
|
2659
|
+
}
|
|
2660
|
+
|
|
2661
|
+
if (requestParameters['start'] != null) {
|
|
2662
|
+
queryParameters['start'] = requestParameters['start'];
|
|
2663
|
+
}
|
|
2664
|
+
|
|
2665
|
+
if (requestParameters['end'] != null) {
|
|
2666
|
+
queryParameters['end'] = requestParameters['end'];
|
|
2667
|
+
}
|
|
2668
|
+
|
|
2669
|
+
if (requestParameters['sort'] != null) {
|
|
2670
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
2671
|
+
}
|
|
2672
|
+
|
|
2673
|
+
if (requestParameters['length'] != null) {
|
|
2674
|
+
queryParameters['length'] = requestParameters['length'];
|
|
2675
|
+
}
|
|
2676
|
+
|
|
2677
|
+
if (requestParameters['offset'] != null) {
|
|
2678
|
+
queryParameters['offset'] = requestParameters['offset'];
|
|
2679
|
+
}
|
|
2680
|
+
|
|
2681
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
2682
|
+
|
|
2683
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2684
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
2685
|
+
}
|
|
2686
|
+
|
|
2687
|
+
|
|
2688
|
+
let urlPath = `/v2/coal/shipments/mine-state-aggregates/data`;
|
|
2689
|
+
|
|
2690
|
+
return {
|
|
2691
|
+
path: urlPath,
|
|
2692
|
+
method: 'GET',
|
|
2693
|
+
headers: headerParameters,
|
|
2694
|
+
query: queryParameters,
|
|
2695
|
+
};
|
|
2696
|
+
}
|
|
2697
|
+
|
|
2698
|
+
/**
|
|
2699
|
+
* API data with query params
|
|
2700
|
+
*/
|
|
2701
|
+
async v2CoalShipmentsMineStateAggregatesDataGetRaw(requestParameters: V2CoalShipmentsMineStateAggregatesDataGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataResponseContainer>> {
|
|
2702
|
+
const requestOptions = await this.v2CoalShipmentsMineStateAggregatesDataGetRequestOpts(requestParameters);
|
|
2703
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2704
|
+
|
|
2705
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DataResponseContainerFromJSON(jsonValue));
|
|
2706
|
+
}
|
|
2707
|
+
|
|
2708
|
+
/**
|
|
2709
|
+
* API data with query params
|
|
2710
|
+
*/
|
|
2711
|
+
async v2CoalShipmentsMineStateAggregatesDataGet(requestParameters: V2CoalShipmentsMineStateAggregatesDataGetRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataResponseContainer> {
|
|
2712
|
+
const response = await this.v2CoalShipmentsMineStateAggregatesDataGetRaw(requestParameters, initOverrides);
|
|
2713
|
+
return await response.value();
|
|
2714
|
+
}
|
|
2715
|
+
|
|
2716
|
+
/**
|
|
2717
|
+
* Creates request options for v2CoalShipmentsMineStateAggregatesDataPost without sending the request
|
|
2718
|
+
*/
|
|
2719
|
+
async v2CoalShipmentsMineStateAggregatesDataPostRequestOpts(requestParameters: V2CoalShipmentsMineStateAggregatesDataPostRequest): Promise<runtime.RequestOpts> {
|
|
2720
|
+
if (requestParameters['dataParams'] == null) {
|
|
2721
|
+
throw new runtime.RequiredError(
|
|
2722
|
+
'dataParams',
|
|
2723
|
+
'Required parameter "dataParams" was null or undefined when calling v2CoalShipmentsMineStateAggregatesDataPost().'
|
|
2724
|
+
);
|
|
2725
|
+
}
|
|
2726
|
+
|
|
2727
|
+
const queryParameters: any = {};
|
|
2728
|
+
|
|
2729
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
2730
|
+
|
|
2731
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
2732
|
+
|
|
2733
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2734
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
2735
|
+
}
|
|
2736
|
+
|
|
2737
|
+
|
|
2738
|
+
let urlPath = `/v2/coal/shipments/mine-state-aggregates/data`;
|
|
2739
|
+
|
|
2740
|
+
return {
|
|
2741
|
+
path: urlPath,
|
|
2742
|
+
method: 'POST',
|
|
2743
|
+
headers: headerParameters,
|
|
2744
|
+
query: queryParameters,
|
|
2745
|
+
body: DataParamsToJSON(requestParameters['dataParams']),
|
|
2746
|
+
};
|
|
2747
|
+
}
|
|
2748
|
+
|
|
2749
|
+
/**
|
|
2750
|
+
* Return shipments mine-state-aggregates data
|
|
2751
|
+
*/
|
|
2752
|
+
async v2CoalShipmentsMineStateAggregatesDataPostRaw(requestParameters: V2CoalShipmentsMineStateAggregatesDataPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataResponseContainer>> {
|
|
2753
|
+
const requestOptions = await this.v2CoalShipmentsMineStateAggregatesDataPostRequestOpts(requestParameters);
|
|
2754
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2755
|
+
|
|
2756
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DataResponseContainerFromJSON(jsonValue));
|
|
2757
|
+
}
|
|
2758
|
+
|
|
2759
|
+
/**
|
|
2760
|
+
* Return shipments mine-state-aggregates data
|
|
2761
|
+
*/
|
|
2762
|
+
async v2CoalShipmentsMineStateAggregatesDataPost(requestParameters: V2CoalShipmentsMineStateAggregatesDataPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataResponseContainer> {
|
|
2763
|
+
const response = await this.v2CoalShipmentsMineStateAggregatesDataPostRaw(requestParameters, initOverrides);
|
|
2764
|
+
return await response.value();
|
|
2765
|
+
}
|
|
2766
|
+
|
|
2767
|
+
/**
|
|
2768
|
+
* Creates request options for v2CoalShipmentsMineStateAggregatesFacetFacetIdGet without sending the request
|
|
2769
|
+
*/
|
|
2770
|
+
async v2CoalShipmentsMineStateAggregatesFacetFacetIdGetRequestOpts(requestParameters: V2CoalShipmentsMineStateAggregatesFacetFacetIdGetRequest): Promise<runtime.RequestOpts> {
|
|
2771
|
+
if (requestParameters['facetId'] == null) {
|
|
2772
|
+
throw new runtime.RequiredError(
|
|
2773
|
+
'facetId',
|
|
2774
|
+
'Required parameter "facetId" was null or undefined when calling v2CoalShipmentsMineStateAggregatesFacetFacetIdGet().'
|
|
2775
|
+
);
|
|
2776
|
+
}
|
|
2777
|
+
|
|
2778
|
+
const queryParameters: any = {};
|
|
2779
|
+
|
|
2780
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
2781
|
+
|
|
2782
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2783
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
2784
|
+
}
|
|
2785
|
+
|
|
2786
|
+
|
|
2787
|
+
let urlPath = `/v2/coal/shipments/mine-state-aggregates/facet/{facet_id}`;
|
|
2788
|
+
urlPath = urlPath.replace('{facet_id}', encodeURIComponent(String(requestParameters['facetId'])));
|
|
2789
|
+
|
|
2790
|
+
return {
|
|
2791
|
+
path: urlPath,
|
|
2792
|
+
method: 'GET',
|
|
2793
|
+
headers: headerParameters,
|
|
2794
|
+
query: queryParameters,
|
|
2795
|
+
};
|
|
2796
|
+
}
|
|
2797
|
+
|
|
2798
|
+
/**
|
|
2799
|
+
*/
|
|
2800
|
+
async v2CoalShipmentsMineStateAggregatesFacetFacetIdGetRaw(requestParameters: V2CoalShipmentsMineStateAggregatesFacetFacetIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FacetDetailsContainer>> {
|
|
2801
|
+
const requestOptions = await this.v2CoalShipmentsMineStateAggregatesFacetFacetIdGetRequestOpts(requestParameters);
|
|
2802
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2803
|
+
|
|
2804
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FacetDetailsContainerFromJSON(jsonValue));
|
|
2805
|
+
}
|
|
2806
|
+
|
|
2807
|
+
/**
|
|
2808
|
+
*/
|
|
2809
|
+
async v2CoalShipmentsMineStateAggregatesFacetFacetIdGet(requestParameters: V2CoalShipmentsMineStateAggregatesFacetFacetIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FacetDetailsContainer> {
|
|
2810
|
+
const response = await this.v2CoalShipmentsMineStateAggregatesFacetFacetIdGetRaw(requestParameters, initOverrides);
|
|
2811
|
+
return await response.value();
|
|
2812
|
+
}
|
|
2813
|
+
|
|
2814
|
+
/**
|
|
2815
|
+
* Creates request options for v2CoalShipmentsMineStateAggregatesFacetGet without sending the request
|
|
2816
|
+
*/
|
|
2817
|
+
async v2CoalShipmentsMineStateAggregatesFacetGetRequestOpts(): Promise<runtime.RequestOpts> {
|
|
2818
|
+
const queryParameters: any = {};
|
|
2819
|
+
|
|
2820
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
2821
|
+
|
|
2822
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2823
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
2824
|
+
}
|
|
2825
|
+
|
|
2826
|
+
|
|
2827
|
+
let urlPath = `/v2/coal/shipments/mine-state-aggregates/facet`;
|
|
2828
|
+
|
|
2829
|
+
return {
|
|
2830
|
+
path: urlPath,
|
|
2831
|
+
method: 'GET',
|
|
2832
|
+
headers: headerParameters,
|
|
2833
|
+
query: queryParameters,
|
|
2834
|
+
};
|
|
2835
|
+
}
|
|
2836
|
+
|
|
2837
|
+
/**
|
|
2838
|
+
*/
|
|
2839
|
+
async v2CoalShipmentsMineStateAggregatesFacetGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FacetOptionListContainer>> {
|
|
2840
|
+
const requestOptions = await this.v2CoalShipmentsMineStateAggregatesFacetGetRequestOpts();
|
|
2841
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2842
|
+
|
|
2843
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FacetOptionListContainerFromJSON(jsonValue));
|
|
2844
|
+
}
|
|
2845
|
+
|
|
2846
|
+
/**
|
|
2847
|
+
*/
|
|
2848
|
+
async v2CoalShipmentsMineStateAggregatesFacetGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FacetOptionListContainer> {
|
|
2849
|
+
const response = await this.v2CoalShipmentsMineStateAggregatesFacetGetRaw(initOverrides);
|
|
2850
|
+
return await response.value();
|
|
2851
|
+
}
|
|
2852
|
+
|
|
2853
|
+
/**
|
|
2854
|
+
* Creates request options for v2CoalShipmentsMineStateAggregatesGet without sending the request
|
|
2855
|
+
*/
|
|
2856
|
+
async v2CoalShipmentsMineStateAggregatesGetRequestOpts(): Promise<runtime.RequestOpts> {
|
|
2857
|
+
const queryParameters: any = {};
|
|
2858
|
+
|
|
2859
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
2860
|
+
|
|
2861
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2862
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
2863
|
+
}
|
|
2864
|
+
|
|
2865
|
+
|
|
2866
|
+
let urlPath = `/v2/coal/shipments/mine-state-aggregates`;
|
|
2867
|
+
|
|
2868
|
+
return {
|
|
2869
|
+
path: urlPath,
|
|
2870
|
+
method: 'GET',
|
|
2871
|
+
headers: headerParameters,
|
|
2872
|
+
query: queryParameters,
|
|
2873
|
+
};
|
|
2874
|
+
}
|
|
2875
|
+
|
|
2876
|
+
/**
|
|
2877
|
+
*/
|
|
2878
|
+
async v2CoalShipmentsMineStateAggregatesGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FinalRouteResponseContainer>> {
|
|
2879
|
+
const requestOptions = await this.v2CoalShipmentsMineStateAggregatesGetRequestOpts();
|
|
2880
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2881
|
+
|
|
2882
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FinalRouteResponseContainerFromJSON(jsonValue));
|
|
2883
|
+
}
|
|
2884
|
+
|
|
2885
|
+
/**
|
|
2886
|
+
*/
|
|
2887
|
+
async v2CoalShipmentsMineStateAggregatesGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FinalRouteResponseContainer> {
|
|
2888
|
+
const response = await this.v2CoalShipmentsMineStateAggregatesGetRaw(initOverrides);
|
|
2889
|
+
return await response.value();
|
|
2890
|
+
}
|
|
2891
|
+
|
|
2892
|
+
/**
|
|
2893
|
+
* Creates request options for v2CoalShipmentsPlantAggregatesDataGet without sending the request
|
|
2894
|
+
*/
|
|
2895
|
+
async v2CoalShipmentsPlantAggregatesDataGetRequestOpts(requestParameters: V2CoalShipmentsPlantAggregatesDataGetRequest): Promise<runtime.RequestOpts> {
|
|
2896
|
+
const queryParameters: any = {};
|
|
2897
|
+
|
|
2898
|
+
if (requestParameters['data'] != null) {
|
|
2899
|
+
queryParameters['data'] = requestParameters['data'];
|
|
2900
|
+
}
|
|
2901
|
+
|
|
2902
|
+
if (requestParameters['facets'] != null) {
|
|
2903
|
+
queryParameters['facets'] = requestParameters['facets'];
|
|
2904
|
+
}
|
|
2905
|
+
|
|
2906
|
+
if (requestParameters['frequency'] != null) {
|
|
2907
|
+
queryParameters['frequency'] = requestParameters['frequency'];
|
|
2908
|
+
}
|
|
2909
|
+
|
|
2910
|
+
if (requestParameters['start'] != null) {
|
|
2911
|
+
queryParameters['start'] = requestParameters['start'];
|
|
2912
|
+
}
|
|
2913
|
+
|
|
2914
|
+
if (requestParameters['end'] != null) {
|
|
2915
|
+
queryParameters['end'] = requestParameters['end'];
|
|
2916
|
+
}
|
|
2917
|
+
|
|
2918
|
+
if (requestParameters['sort'] != null) {
|
|
2919
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
2920
|
+
}
|
|
2921
|
+
|
|
2922
|
+
if (requestParameters['length'] != null) {
|
|
2923
|
+
queryParameters['length'] = requestParameters['length'];
|
|
2924
|
+
}
|
|
2925
|
+
|
|
2926
|
+
if (requestParameters['offset'] != null) {
|
|
2927
|
+
queryParameters['offset'] = requestParameters['offset'];
|
|
2928
|
+
}
|
|
2929
|
+
|
|
2930
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
2931
|
+
|
|
2932
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2933
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
2934
|
+
}
|
|
2935
|
+
|
|
2936
|
+
|
|
2937
|
+
let urlPath = `/v2/coal/shipments/plant-aggregates/data`;
|
|
2938
|
+
|
|
2939
|
+
return {
|
|
2940
|
+
path: urlPath,
|
|
2941
|
+
method: 'GET',
|
|
2942
|
+
headers: headerParameters,
|
|
2943
|
+
query: queryParameters,
|
|
2944
|
+
};
|
|
2945
|
+
}
|
|
2946
|
+
|
|
2947
|
+
/**
|
|
2948
|
+
* API data with query params
|
|
2949
|
+
*/
|
|
2950
|
+
async v2CoalShipmentsPlantAggregatesDataGetRaw(requestParameters: V2CoalShipmentsPlantAggregatesDataGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataResponseContainer>> {
|
|
2951
|
+
const requestOptions = await this.v2CoalShipmentsPlantAggregatesDataGetRequestOpts(requestParameters);
|
|
2952
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
2953
|
+
|
|
2954
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DataResponseContainerFromJSON(jsonValue));
|
|
2955
|
+
}
|
|
2956
|
+
|
|
2957
|
+
/**
|
|
2958
|
+
* API data with query params
|
|
2959
|
+
*/
|
|
2960
|
+
async v2CoalShipmentsPlantAggregatesDataGet(requestParameters: V2CoalShipmentsPlantAggregatesDataGetRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataResponseContainer> {
|
|
2961
|
+
const response = await this.v2CoalShipmentsPlantAggregatesDataGetRaw(requestParameters, initOverrides);
|
|
2962
|
+
return await response.value();
|
|
2963
|
+
}
|
|
2964
|
+
|
|
2965
|
+
/**
|
|
2966
|
+
* Creates request options for v2CoalShipmentsPlantAggregatesDataPost without sending the request
|
|
2967
|
+
*/
|
|
2968
|
+
async v2CoalShipmentsPlantAggregatesDataPostRequestOpts(requestParameters: V2CoalShipmentsPlantAggregatesDataPostRequest): Promise<runtime.RequestOpts> {
|
|
2969
|
+
if (requestParameters['dataParams'] == null) {
|
|
2970
|
+
throw new runtime.RequiredError(
|
|
2971
|
+
'dataParams',
|
|
2972
|
+
'Required parameter "dataParams" was null or undefined when calling v2CoalShipmentsPlantAggregatesDataPost().'
|
|
2973
|
+
);
|
|
2974
|
+
}
|
|
2975
|
+
|
|
2976
|
+
const queryParameters: any = {};
|
|
2977
|
+
|
|
2978
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
2979
|
+
|
|
2980
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
2981
|
+
|
|
2982
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
2983
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
2984
|
+
}
|
|
2985
|
+
|
|
2986
|
+
|
|
2987
|
+
let urlPath = `/v2/coal/shipments/plant-aggregates/data`;
|
|
2988
|
+
|
|
2989
|
+
return {
|
|
2990
|
+
path: urlPath,
|
|
2991
|
+
method: 'POST',
|
|
2992
|
+
headers: headerParameters,
|
|
2993
|
+
query: queryParameters,
|
|
2994
|
+
body: DataParamsToJSON(requestParameters['dataParams']),
|
|
2995
|
+
};
|
|
2996
|
+
}
|
|
2997
|
+
|
|
2998
|
+
/**
|
|
2999
|
+
* Class PlantAggregateController Coal\\Shipments dataset controller.
|
|
3000
|
+
* Return shipments plant-aggregates data
|
|
3001
|
+
*/
|
|
3002
|
+
async v2CoalShipmentsPlantAggregatesDataPostRaw(requestParameters: V2CoalShipmentsPlantAggregatesDataPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataResponseContainer>> {
|
|
3003
|
+
const requestOptions = await this.v2CoalShipmentsPlantAggregatesDataPostRequestOpts(requestParameters);
|
|
3004
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
3005
|
+
|
|
3006
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DataResponseContainerFromJSON(jsonValue));
|
|
3007
|
+
}
|
|
3008
|
+
|
|
3009
|
+
/**
|
|
3010
|
+
* Class PlantAggregateController Coal\\Shipments dataset controller.
|
|
3011
|
+
* Return shipments plant-aggregates data
|
|
3012
|
+
*/
|
|
3013
|
+
async v2CoalShipmentsPlantAggregatesDataPost(requestParameters: V2CoalShipmentsPlantAggregatesDataPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataResponseContainer> {
|
|
3014
|
+
const response = await this.v2CoalShipmentsPlantAggregatesDataPostRaw(requestParameters, initOverrides);
|
|
3015
|
+
return await response.value();
|
|
3016
|
+
}
|
|
3017
|
+
|
|
3018
|
+
/**
|
|
3019
|
+
* Creates request options for v2CoalShipmentsPlantAggregatesFacetFacetIdGet without sending the request
|
|
3020
|
+
*/
|
|
3021
|
+
async v2CoalShipmentsPlantAggregatesFacetFacetIdGetRequestOpts(requestParameters: V2CoalShipmentsPlantAggregatesFacetFacetIdGetRequest): Promise<runtime.RequestOpts> {
|
|
3022
|
+
if (requestParameters['facetId'] == null) {
|
|
3023
|
+
throw new runtime.RequiredError(
|
|
3024
|
+
'facetId',
|
|
3025
|
+
'Required parameter "facetId" was null or undefined when calling v2CoalShipmentsPlantAggregatesFacetFacetIdGet().'
|
|
3026
|
+
);
|
|
3027
|
+
}
|
|
3028
|
+
|
|
3029
|
+
const queryParameters: any = {};
|
|
3030
|
+
|
|
3031
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
3032
|
+
|
|
3033
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
3034
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
3035
|
+
}
|
|
3036
|
+
|
|
3037
|
+
|
|
3038
|
+
let urlPath = `/v2/coal/shipments/plant-aggregates/facet/{facet_id}`;
|
|
3039
|
+
urlPath = urlPath.replace('{facet_id}', encodeURIComponent(String(requestParameters['facetId'])));
|
|
3040
|
+
|
|
3041
|
+
return {
|
|
3042
|
+
path: urlPath,
|
|
3043
|
+
method: 'GET',
|
|
3044
|
+
headers: headerParameters,
|
|
3045
|
+
query: queryParameters,
|
|
3046
|
+
};
|
|
3047
|
+
}
|
|
3048
|
+
|
|
3049
|
+
/**
|
|
3050
|
+
*/
|
|
3051
|
+
async v2CoalShipmentsPlantAggregatesFacetFacetIdGetRaw(requestParameters: V2CoalShipmentsPlantAggregatesFacetFacetIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FacetDetailsContainer>> {
|
|
3052
|
+
const requestOptions = await this.v2CoalShipmentsPlantAggregatesFacetFacetIdGetRequestOpts(requestParameters);
|
|
3053
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
3054
|
+
|
|
3055
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FacetDetailsContainerFromJSON(jsonValue));
|
|
3056
|
+
}
|
|
3057
|
+
|
|
3058
|
+
/**
|
|
3059
|
+
*/
|
|
3060
|
+
async v2CoalShipmentsPlantAggregatesFacetFacetIdGet(requestParameters: V2CoalShipmentsPlantAggregatesFacetFacetIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FacetDetailsContainer> {
|
|
3061
|
+
const response = await this.v2CoalShipmentsPlantAggregatesFacetFacetIdGetRaw(requestParameters, initOverrides);
|
|
3062
|
+
return await response.value();
|
|
3063
|
+
}
|
|
3064
|
+
|
|
3065
|
+
/**
|
|
3066
|
+
* Creates request options for v2CoalShipmentsPlantAggregatesFacetGet without sending the request
|
|
3067
|
+
*/
|
|
3068
|
+
async v2CoalShipmentsPlantAggregatesFacetGetRequestOpts(): Promise<runtime.RequestOpts> {
|
|
3069
|
+
const queryParameters: any = {};
|
|
3070
|
+
|
|
3071
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
3072
|
+
|
|
3073
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
3074
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
3075
|
+
}
|
|
3076
|
+
|
|
3077
|
+
|
|
3078
|
+
let urlPath = `/v2/coal/shipments/plant-aggregates/facet`;
|
|
3079
|
+
|
|
3080
|
+
return {
|
|
3081
|
+
path: urlPath,
|
|
3082
|
+
method: 'GET',
|
|
3083
|
+
headers: headerParameters,
|
|
3084
|
+
query: queryParameters,
|
|
3085
|
+
};
|
|
3086
|
+
}
|
|
3087
|
+
|
|
3088
|
+
/**
|
|
3089
|
+
*/
|
|
3090
|
+
async v2CoalShipmentsPlantAggregatesFacetGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FacetOptionListContainer>> {
|
|
3091
|
+
const requestOptions = await this.v2CoalShipmentsPlantAggregatesFacetGetRequestOpts();
|
|
3092
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
3093
|
+
|
|
3094
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FacetOptionListContainerFromJSON(jsonValue));
|
|
3095
|
+
}
|
|
3096
|
+
|
|
3097
|
+
/**
|
|
3098
|
+
*/
|
|
3099
|
+
async v2CoalShipmentsPlantAggregatesFacetGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FacetOptionListContainer> {
|
|
3100
|
+
const response = await this.v2CoalShipmentsPlantAggregatesFacetGetRaw(initOverrides);
|
|
3101
|
+
return await response.value();
|
|
3102
|
+
}
|
|
3103
|
+
|
|
3104
|
+
/**
|
|
3105
|
+
* Creates request options for v2CoalShipmentsPlantAggregatesGet without sending the request
|
|
3106
|
+
*/
|
|
3107
|
+
async v2CoalShipmentsPlantAggregatesGetRequestOpts(): Promise<runtime.RequestOpts> {
|
|
3108
|
+
const queryParameters: any = {};
|
|
3109
|
+
|
|
3110
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
3111
|
+
|
|
3112
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
3113
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
3114
|
+
}
|
|
3115
|
+
|
|
3116
|
+
|
|
3117
|
+
let urlPath = `/v2/coal/shipments/plant-aggregates`;
|
|
3118
|
+
|
|
3119
|
+
return {
|
|
3120
|
+
path: urlPath,
|
|
3121
|
+
method: 'GET',
|
|
3122
|
+
headers: headerParameters,
|
|
3123
|
+
query: queryParameters,
|
|
3124
|
+
};
|
|
3125
|
+
}
|
|
3126
|
+
|
|
3127
|
+
/**
|
|
3128
|
+
*/
|
|
3129
|
+
async v2CoalShipmentsPlantAggregatesGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FinalRouteResponseContainer>> {
|
|
3130
|
+
const requestOptions = await this.v2CoalShipmentsPlantAggregatesGetRequestOpts();
|
|
3131
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
3132
|
+
|
|
3133
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FinalRouteResponseContainerFromJSON(jsonValue));
|
|
3134
|
+
}
|
|
3135
|
+
|
|
3136
|
+
/**
|
|
3137
|
+
*/
|
|
3138
|
+
async v2CoalShipmentsPlantAggregatesGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FinalRouteResponseContainer> {
|
|
3139
|
+
const response = await this.v2CoalShipmentsPlantAggregatesGetRaw(initOverrides);
|
|
3140
|
+
return await response.value();
|
|
3141
|
+
}
|
|
3142
|
+
|
|
3143
|
+
/**
|
|
3144
|
+
* Creates request options for v2CoalShipmentsPlantStateAggregatesDataGet without sending the request
|
|
3145
|
+
*/
|
|
3146
|
+
async v2CoalShipmentsPlantStateAggregatesDataGetRequestOpts(requestParameters: V2CoalShipmentsPlantStateAggregatesDataGetRequest): Promise<runtime.RequestOpts> {
|
|
3147
|
+
const queryParameters: any = {};
|
|
3148
|
+
|
|
3149
|
+
if (requestParameters['data'] != null) {
|
|
3150
|
+
queryParameters['data'] = requestParameters['data'];
|
|
3151
|
+
}
|
|
3152
|
+
|
|
3153
|
+
if (requestParameters['facets'] != null) {
|
|
3154
|
+
queryParameters['facets'] = requestParameters['facets'];
|
|
3155
|
+
}
|
|
3156
|
+
|
|
3157
|
+
if (requestParameters['frequency'] != null) {
|
|
3158
|
+
queryParameters['frequency'] = requestParameters['frequency'];
|
|
3159
|
+
}
|
|
3160
|
+
|
|
3161
|
+
if (requestParameters['start'] != null) {
|
|
3162
|
+
queryParameters['start'] = requestParameters['start'];
|
|
3163
|
+
}
|
|
3164
|
+
|
|
3165
|
+
if (requestParameters['end'] != null) {
|
|
3166
|
+
queryParameters['end'] = requestParameters['end'];
|
|
3167
|
+
}
|
|
3168
|
+
|
|
3169
|
+
if (requestParameters['sort'] != null) {
|
|
3170
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
3171
|
+
}
|
|
3172
|
+
|
|
3173
|
+
if (requestParameters['length'] != null) {
|
|
3174
|
+
queryParameters['length'] = requestParameters['length'];
|
|
3175
|
+
}
|
|
3176
|
+
|
|
3177
|
+
if (requestParameters['offset'] != null) {
|
|
3178
|
+
queryParameters['offset'] = requestParameters['offset'];
|
|
3179
|
+
}
|
|
3180
|
+
|
|
3181
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
3182
|
+
|
|
3183
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
3184
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
3185
|
+
}
|
|
3186
|
+
|
|
3187
|
+
|
|
3188
|
+
let urlPath = `/v2/coal/shipments/plant-state-aggregates/data`;
|
|
3189
|
+
|
|
3190
|
+
return {
|
|
3191
|
+
path: urlPath,
|
|
3192
|
+
method: 'GET',
|
|
3193
|
+
headers: headerParameters,
|
|
3194
|
+
query: queryParameters,
|
|
3195
|
+
};
|
|
3196
|
+
}
|
|
3197
|
+
|
|
3198
|
+
/**
|
|
3199
|
+
* API data with query params
|
|
3200
|
+
*/
|
|
3201
|
+
async v2CoalShipmentsPlantStateAggregatesDataGetRaw(requestParameters: V2CoalShipmentsPlantStateAggregatesDataGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataResponseContainer>> {
|
|
3202
|
+
const requestOptions = await this.v2CoalShipmentsPlantStateAggregatesDataGetRequestOpts(requestParameters);
|
|
3203
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
3204
|
+
|
|
3205
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DataResponseContainerFromJSON(jsonValue));
|
|
3206
|
+
}
|
|
3207
|
+
|
|
3208
|
+
/**
|
|
3209
|
+
* API data with query params
|
|
3210
|
+
*/
|
|
3211
|
+
async v2CoalShipmentsPlantStateAggregatesDataGet(requestParameters: V2CoalShipmentsPlantStateAggregatesDataGetRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataResponseContainer> {
|
|
3212
|
+
const response = await this.v2CoalShipmentsPlantStateAggregatesDataGetRaw(requestParameters, initOverrides);
|
|
3213
|
+
return await response.value();
|
|
3214
|
+
}
|
|
3215
|
+
|
|
3216
|
+
/**
|
|
3217
|
+
* Creates request options for v2CoalShipmentsPlantStateAggregatesDataPost without sending the request
|
|
3218
|
+
*/
|
|
3219
|
+
async v2CoalShipmentsPlantStateAggregatesDataPostRequestOpts(requestParameters: V2CoalShipmentsPlantStateAggregatesDataPostRequest): Promise<runtime.RequestOpts> {
|
|
3220
|
+
if (requestParameters['dataParams'] == null) {
|
|
3221
|
+
throw new runtime.RequiredError(
|
|
3222
|
+
'dataParams',
|
|
3223
|
+
'Required parameter "dataParams" was null or undefined when calling v2CoalShipmentsPlantStateAggregatesDataPost().'
|
|
3224
|
+
);
|
|
3225
|
+
}
|
|
3226
|
+
|
|
3227
|
+
const queryParameters: any = {};
|
|
3228
|
+
|
|
3229
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
3230
|
+
|
|
3231
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
3232
|
+
|
|
3233
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
3234
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
3235
|
+
}
|
|
3236
|
+
|
|
3237
|
+
|
|
3238
|
+
let urlPath = `/v2/coal/shipments/plant-state-aggregates/data`;
|
|
3239
|
+
|
|
3240
|
+
return {
|
|
3241
|
+
path: urlPath,
|
|
3242
|
+
method: 'POST',
|
|
3243
|
+
headers: headerParameters,
|
|
3244
|
+
query: queryParameters,
|
|
3245
|
+
body: DataParamsToJSON(requestParameters['dataParams']),
|
|
3246
|
+
};
|
|
3247
|
+
}
|
|
3248
|
+
|
|
3249
|
+
/**
|
|
3250
|
+
* Class PlantStateAggregateController Coal\\Shipments dataset controller.
|
|
3251
|
+
* Return shipments plant-state-aggregates data
|
|
3252
|
+
*/
|
|
3253
|
+
async v2CoalShipmentsPlantStateAggregatesDataPostRaw(requestParameters: V2CoalShipmentsPlantStateAggregatesDataPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataResponseContainer>> {
|
|
3254
|
+
const requestOptions = await this.v2CoalShipmentsPlantStateAggregatesDataPostRequestOpts(requestParameters);
|
|
3255
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
3256
|
+
|
|
3257
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DataResponseContainerFromJSON(jsonValue));
|
|
3258
|
+
}
|
|
3259
|
+
|
|
3260
|
+
/**
|
|
3261
|
+
* Class PlantStateAggregateController Coal\\Shipments dataset controller.
|
|
3262
|
+
* Return shipments plant-state-aggregates data
|
|
3263
|
+
*/
|
|
3264
|
+
async v2CoalShipmentsPlantStateAggregatesDataPost(requestParameters: V2CoalShipmentsPlantStateAggregatesDataPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataResponseContainer> {
|
|
3265
|
+
const response = await this.v2CoalShipmentsPlantStateAggregatesDataPostRaw(requestParameters, initOverrides);
|
|
3266
|
+
return await response.value();
|
|
3267
|
+
}
|
|
3268
|
+
|
|
3269
|
+
/**
|
|
3270
|
+
* Creates request options for v2CoalShipmentsPlantStateAggregatesFacetFacetIdGet without sending the request
|
|
3271
|
+
*/
|
|
3272
|
+
async v2CoalShipmentsPlantStateAggregatesFacetFacetIdGetRequestOpts(requestParameters: V2CoalShipmentsPlantStateAggregatesFacetFacetIdGetRequest): Promise<runtime.RequestOpts> {
|
|
3273
|
+
if (requestParameters['facetId'] == null) {
|
|
3274
|
+
throw new runtime.RequiredError(
|
|
3275
|
+
'facetId',
|
|
3276
|
+
'Required parameter "facetId" was null or undefined when calling v2CoalShipmentsPlantStateAggregatesFacetFacetIdGet().'
|
|
3277
|
+
);
|
|
3278
|
+
}
|
|
3279
|
+
|
|
3280
|
+
const queryParameters: any = {};
|
|
3281
|
+
|
|
3282
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
3283
|
+
|
|
3284
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
3285
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
3286
|
+
}
|
|
3287
|
+
|
|
3288
|
+
|
|
3289
|
+
let urlPath = `/v2/coal/shipments/plant-state-aggregates/facet/{facet_id}`;
|
|
3290
|
+
urlPath = urlPath.replace('{facet_id}', encodeURIComponent(String(requestParameters['facetId'])));
|
|
3291
|
+
|
|
3292
|
+
return {
|
|
3293
|
+
path: urlPath,
|
|
3294
|
+
method: 'GET',
|
|
3295
|
+
headers: headerParameters,
|
|
3296
|
+
query: queryParameters,
|
|
3297
|
+
};
|
|
3298
|
+
}
|
|
3299
|
+
|
|
3300
|
+
/**
|
|
3301
|
+
*/
|
|
3302
|
+
async v2CoalShipmentsPlantStateAggregatesFacetFacetIdGetRaw(requestParameters: V2CoalShipmentsPlantStateAggregatesFacetFacetIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FacetDetailsContainer>> {
|
|
3303
|
+
const requestOptions = await this.v2CoalShipmentsPlantStateAggregatesFacetFacetIdGetRequestOpts(requestParameters);
|
|
3304
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
3305
|
+
|
|
3306
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FacetDetailsContainerFromJSON(jsonValue));
|
|
3307
|
+
}
|
|
3308
|
+
|
|
3309
|
+
/**
|
|
3310
|
+
*/
|
|
3311
|
+
async v2CoalShipmentsPlantStateAggregatesFacetFacetIdGet(requestParameters: V2CoalShipmentsPlantStateAggregatesFacetFacetIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FacetDetailsContainer> {
|
|
3312
|
+
const response = await this.v2CoalShipmentsPlantStateAggregatesFacetFacetIdGetRaw(requestParameters, initOverrides);
|
|
3313
|
+
return await response.value();
|
|
3314
|
+
}
|
|
3315
|
+
|
|
3316
|
+
/**
|
|
3317
|
+
* Creates request options for v2CoalShipmentsPlantStateAggregatesFacetGet without sending the request
|
|
3318
|
+
*/
|
|
3319
|
+
async v2CoalShipmentsPlantStateAggregatesFacetGetRequestOpts(): Promise<runtime.RequestOpts> {
|
|
3320
|
+
const queryParameters: any = {};
|
|
3321
|
+
|
|
3322
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
3323
|
+
|
|
3324
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
3325
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
3326
|
+
}
|
|
3327
|
+
|
|
3328
|
+
|
|
3329
|
+
let urlPath = `/v2/coal/shipments/plant-state-aggregates/facet`;
|
|
3330
|
+
|
|
3331
|
+
return {
|
|
3332
|
+
path: urlPath,
|
|
3333
|
+
method: 'GET',
|
|
3334
|
+
headers: headerParameters,
|
|
3335
|
+
query: queryParameters,
|
|
3336
|
+
};
|
|
3337
|
+
}
|
|
3338
|
+
|
|
3339
|
+
/**
|
|
3340
|
+
*/
|
|
3341
|
+
async v2CoalShipmentsPlantStateAggregatesFacetGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FacetOptionListContainer>> {
|
|
3342
|
+
const requestOptions = await this.v2CoalShipmentsPlantStateAggregatesFacetGetRequestOpts();
|
|
3343
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
3344
|
+
|
|
3345
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FacetOptionListContainerFromJSON(jsonValue));
|
|
3346
|
+
}
|
|
3347
|
+
|
|
3348
|
+
/**
|
|
3349
|
+
*/
|
|
3350
|
+
async v2CoalShipmentsPlantStateAggregatesFacetGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FacetOptionListContainer> {
|
|
3351
|
+
const response = await this.v2CoalShipmentsPlantStateAggregatesFacetGetRaw(initOverrides);
|
|
3352
|
+
return await response.value();
|
|
3353
|
+
}
|
|
3354
|
+
|
|
3355
|
+
/**
|
|
3356
|
+
* Creates request options for v2CoalShipmentsPlantStateAggregatesGet without sending the request
|
|
3357
|
+
*/
|
|
3358
|
+
async v2CoalShipmentsPlantStateAggregatesGetRequestOpts(): Promise<runtime.RequestOpts> {
|
|
3359
|
+
const queryParameters: any = {};
|
|
3360
|
+
|
|
3361
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
3362
|
+
|
|
3363
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
3364
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
3365
|
+
}
|
|
3366
|
+
|
|
3367
|
+
|
|
3368
|
+
let urlPath = `/v2/coal/shipments/plant-state-aggregates`;
|
|
3369
|
+
|
|
3370
|
+
return {
|
|
3371
|
+
path: urlPath,
|
|
3372
|
+
method: 'GET',
|
|
3373
|
+
headers: headerParameters,
|
|
3374
|
+
query: queryParameters,
|
|
3375
|
+
};
|
|
3376
|
+
}
|
|
3377
|
+
|
|
3378
|
+
/**
|
|
3379
|
+
*/
|
|
3380
|
+
async v2CoalShipmentsPlantStateAggregatesGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FinalRouteResponseContainer>> {
|
|
3381
|
+
const requestOptions = await this.v2CoalShipmentsPlantStateAggregatesGetRequestOpts();
|
|
3382
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
3383
|
+
|
|
3384
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FinalRouteResponseContainerFromJSON(jsonValue));
|
|
3385
|
+
}
|
|
3386
|
+
|
|
3387
|
+
/**
|
|
3388
|
+
*/
|
|
3389
|
+
async v2CoalShipmentsPlantStateAggregatesGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FinalRouteResponseContainer> {
|
|
3390
|
+
const response = await this.v2CoalShipmentsPlantStateAggregatesGetRaw(initOverrides);
|
|
3391
|
+
return await response.value();
|
|
3392
|
+
}
|
|
3393
|
+
|
|
3394
|
+
/**
|
|
3395
|
+
* Creates request options for v2CoalShipmentsReceiptsDataGet without sending the request
|
|
3396
|
+
*/
|
|
3397
|
+
async v2CoalShipmentsReceiptsDataGetRequestOpts(requestParameters: V2CoalShipmentsReceiptsDataGetRequest): Promise<runtime.RequestOpts> {
|
|
3398
|
+
const queryParameters: any = {};
|
|
3399
|
+
|
|
3400
|
+
if (requestParameters['data'] != null) {
|
|
3401
|
+
queryParameters['data'] = requestParameters['data'];
|
|
3402
|
+
}
|
|
3403
|
+
|
|
3404
|
+
if (requestParameters['facets'] != null) {
|
|
3405
|
+
queryParameters['facets'] = requestParameters['facets'];
|
|
3406
|
+
}
|
|
3407
|
+
|
|
3408
|
+
if (requestParameters['frequency'] != null) {
|
|
3409
|
+
queryParameters['frequency'] = requestParameters['frequency'];
|
|
3410
|
+
}
|
|
3411
|
+
|
|
3412
|
+
if (requestParameters['start'] != null) {
|
|
3413
|
+
queryParameters['start'] = requestParameters['start'];
|
|
3414
|
+
}
|
|
3415
|
+
|
|
3416
|
+
if (requestParameters['end'] != null) {
|
|
3417
|
+
queryParameters['end'] = requestParameters['end'];
|
|
3418
|
+
}
|
|
3419
|
+
|
|
3420
|
+
if (requestParameters['sort'] != null) {
|
|
3421
|
+
queryParameters['sort'] = requestParameters['sort'];
|
|
3422
|
+
}
|
|
3423
|
+
|
|
3424
|
+
if (requestParameters['length'] != null) {
|
|
3425
|
+
queryParameters['length'] = requestParameters['length'];
|
|
3426
|
+
}
|
|
3427
|
+
|
|
3428
|
+
if (requestParameters['offset'] != null) {
|
|
3429
|
+
queryParameters['offset'] = requestParameters['offset'];
|
|
3430
|
+
}
|
|
3431
|
+
|
|
3432
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
3433
|
+
|
|
3434
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
3435
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
3436
|
+
}
|
|
3437
|
+
|
|
3438
|
+
|
|
3439
|
+
let urlPath = `/v2/coal/shipments/receipts/data`;
|
|
3440
|
+
|
|
3441
|
+
return {
|
|
3442
|
+
path: urlPath,
|
|
3443
|
+
method: 'GET',
|
|
3444
|
+
headers: headerParameters,
|
|
3445
|
+
query: queryParameters,
|
|
3446
|
+
};
|
|
3447
|
+
}
|
|
3448
|
+
|
|
3449
|
+
/**
|
|
3450
|
+
* API data with query params
|
|
3451
|
+
*/
|
|
3452
|
+
async v2CoalShipmentsReceiptsDataGetRaw(requestParameters: V2CoalShipmentsReceiptsDataGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataResponseContainer>> {
|
|
3453
|
+
const requestOptions = await this.v2CoalShipmentsReceiptsDataGetRequestOpts(requestParameters);
|
|
3454
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
3455
|
+
|
|
3456
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DataResponseContainerFromJSON(jsonValue));
|
|
3457
|
+
}
|
|
3458
|
+
|
|
3459
|
+
/**
|
|
3460
|
+
* API data with query params
|
|
3461
|
+
*/
|
|
3462
|
+
async v2CoalShipmentsReceiptsDataGet(requestParameters: V2CoalShipmentsReceiptsDataGetRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataResponseContainer> {
|
|
3463
|
+
const response = await this.v2CoalShipmentsReceiptsDataGetRaw(requestParameters, initOverrides);
|
|
3464
|
+
return await response.value();
|
|
3465
|
+
}
|
|
3466
|
+
|
|
3467
|
+
/**
|
|
3468
|
+
* Creates request options for v2CoalShipmentsReceiptsDataPost without sending the request
|
|
3469
|
+
*/
|
|
3470
|
+
async v2CoalShipmentsReceiptsDataPostRequestOpts(requestParameters: V2CoalShipmentsReceiptsDataPostRequest): Promise<runtime.RequestOpts> {
|
|
3471
|
+
if (requestParameters['dataParams'] == null) {
|
|
3472
|
+
throw new runtime.RequiredError(
|
|
3473
|
+
'dataParams',
|
|
3474
|
+
'Required parameter "dataParams" was null or undefined when calling v2CoalShipmentsReceiptsDataPost().'
|
|
3475
|
+
);
|
|
3476
|
+
}
|
|
3477
|
+
|
|
3478
|
+
const queryParameters: any = {};
|
|
3479
|
+
|
|
3480
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
3481
|
+
|
|
3482
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
3483
|
+
|
|
3484
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
3485
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
3486
|
+
}
|
|
3487
|
+
|
|
3488
|
+
|
|
3489
|
+
let urlPath = `/v2/coal/shipments/receipts/data`;
|
|
3490
|
+
|
|
3491
|
+
return {
|
|
3492
|
+
path: urlPath,
|
|
3493
|
+
method: 'POST',
|
|
3494
|
+
headers: headerParameters,
|
|
3495
|
+
query: queryParameters,
|
|
3496
|
+
body: DataParamsToJSON(requestParameters['dataParams']),
|
|
3497
|
+
};
|
|
3498
|
+
}
|
|
3499
|
+
|
|
3500
|
+
/**
|
|
3501
|
+
* Class ReceiptsController Coal\\Shipments dataset controller.
|
|
3502
|
+
* Return shipments receipts data
|
|
3503
|
+
*/
|
|
3504
|
+
async v2CoalShipmentsReceiptsDataPostRaw(requestParameters: V2CoalShipmentsReceiptsDataPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<DataResponseContainer>> {
|
|
3505
|
+
const requestOptions = await this.v2CoalShipmentsReceiptsDataPostRequestOpts(requestParameters);
|
|
3506
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
3507
|
+
|
|
3508
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => DataResponseContainerFromJSON(jsonValue));
|
|
3509
|
+
}
|
|
3510
|
+
|
|
3511
|
+
/**
|
|
3512
|
+
* Class ReceiptsController Coal\\Shipments dataset controller.
|
|
3513
|
+
* Return shipments receipts data
|
|
3514
|
+
*/
|
|
3515
|
+
async v2CoalShipmentsReceiptsDataPost(requestParameters: V2CoalShipmentsReceiptsDataPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<DataResponseContainer> {
|
|
3516
|
+
const response = await this.v2CoalShipmentsReceiptsDataPostRaw(requestParameters, initOverrides);
|
|
3517
|
+
return await response.value();
|
|
3518
|
+
}
|
|
3519
|
+
|
|
3520
|
+
/**
|
|
3521
|
+
* Creates request options for v2CoalShipmentsReceiptsFacetFacetIdGet without sending the request
|
|
3522
|
+
*/
|
|
3523
|
+
async v2CoalShipmentsReceiptsFacetFacetIdGetRequestOpts(requestParameters: V2CoalShipmentsReceiptsFacetFacetIdGetRequest): Promise<runtime.RequestOpts> {
|
|
3524
|
+
if (requestParameters['facetId'] == null) {
|
|
3525
|
+
throw new runtime.RequiredError(
|
|
3526
|
+
'facetId',
|
|
3527
|
+
'Required parameter "facetId" was null or undefined when calling v2CoalShipmentsReceiptsFacetFacetIdGet().'
|
|
3528
|
+
);
|
|
3529
|
+
}
|
|
3530
|
+
|
|
3531
|
+
const queryParameters: any = {};
|
|
3532
|
+
|
|
3533
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
3534
|
+
|
|
3535
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
3536
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
3537
|
+
}
|
|
3538
|
+
|
|
3539
|
+
|
|
3540
|
+
let urlPath = `/v2/coal/shipments/receipts/facet/{facet_id}`;
|
|
3541
|
+
urlPath = urlPath.replace('{facet_id}', encodeURIComponent(String(requestParameters['facetId'])));
|
|
3542
|
+
|
|
3543
|
+
return {
|
|
3544
|
+
path: urlPath,
|
|
3545
|
+
method: 'GET',
|
|
3546
|
+
headers: headerParameters,
|
|
3547
|
+
query: queryParameters,
|
|
3548
|
+
};
|
|
3549
|
+
}
|
|
3550
|
+
|
|
3551
|
+
/**
|
|
3552
|
+
*/
|
|
3553
|
+
async v2CoalShipmentsReceiptsFacetFacetIdGetRaw(requestParameters: V2CoalShipmentsReceiptsFacetFacetIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FacetDetailsContainer>> {
|
|
3554
|
+
const requestOptions = await this.v2CoalShipmentsReceiptsFacetFacetIdGetRequestOpts(requestParameters);
|
|
3555
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
3556
|
+
|
|
3557
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FacetDetailsContainerFromJSON(jsonValue));
|
|
3558
|
+
}
|
|
3559
|
+
|
|
3560
|
+
/**
|
|
3561
|
+
*/
|
|
3562
|
+
async v2CoalShipmentsReceiptsFacetFacetIdGet(requestParameters: V2CoalShipmentsReceiptsFacetFacetIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FacetDetailsContainer> {
|
|
3563
|
+
const response = await this.v2CoalShipmentsReceiptsFacetFacetIdGetRaw(requestParameters, initOverrides);
|
|
3564
|
+
return await response.value();
|
|
3565
|
+
}
|
|
3566
|
+
|
|
3567
|
+
/**
|
|
3568
|
+
* Creates request options for v2CoalShipmentsReceiptsFacetGet without sending the request
|
|
3569
|
+
*/
|
|
3570
|
+
async v2CoalShipmentsReceiptsFacetGetRequestOpts(): Promise<runtime.RequestOpts> {
|
|
3571
|
+
const queryParameters: any = {};
|
|
3572
|
+
|
|
3573
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
3574
|
+
|
|
3575
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
3576
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
3577
|
+
}
|
|
3578
|
+
|
|
3579
|
+
|
|
3580
|
+
let urlPath = `/v2/coal/shipments/receipts/facet`;
|
|
3581
|
+
|
|
3582
|
+
return {
|
|
3583
|
+
path: urlPath,
|
|
3584
|
+
method: 'GET',
|
|
3585
|
+
headers: headerParameters,
|
|
3586
|
+
query: queryParameters,
|
|
3587
|
+
};
|
|
3588
|
+
}
|
|
3589
|
+
|
|
3590
|
+
/**
|
|
3591
|
+
*/
|
|
3592
|
+
async v2CoalShipmentsReceiptsFacetGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FacetOptionListContainer>> {
|
|
3593
|
+
const requestOptions = await this.v2CoalShipmentsReceiptsFacetGetRequestOpts();
|
|
3594
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
3595
|
+
|
|
3596
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FacetOptionListContainerFromJSON(jsonValue));
|
|
3597
|
+
}
|
|
3598
|
+
|
|
3599
|
+
/**
|
|
3600
|
+
*/
|
|
3601
|
+
async v2CoalShipmentsReceiptsFacetGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FacetOptionListContainer> {
|
|
3602
|
+
const response = await this.v2CoalShipmentsReceiptsFacetGetRaw(initOverrides);
|
|
3603
|
+
return await response.value();
|
|
3604
|
+
}
|
|
3605
|
+
|
|
3606
|
+
/**
|
|
3607
|
+
* Creates request options for v2CoalShipmentsReceiptsGet without sending the request
|
|
3608
|
+
*/
|
|
3609
|
+
async v2CoalShipmentsReceiptsGetRequestOpts(): Promise<runtime.RequestOpts> {
|
|
3610
|
+
const queryParameters: any = {};
|
|
3611
|
+
|
|
3612
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
3613
|
+
|
|
3614
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
3615
|
+
queryParameters["api_key"] = await this.configuration.apiKey("api_key"); // api_key authentication
|
|
3616
|
+
}
|
|
3617
|
+
|
|
3618
|
+
|
|
3619
|
+
let urlPath = `/v2/coal/shipments/receipts`;
|
|
3620
|
+
|
|
3621
|
+
return {
|
|
3622
|
+
path: urlPath,
|
|
3623
|
+
method: 'GET',
|
|
3624
|
+
headers: headerParameters,
|
|
3625
|
+
query: queryParameters,
|
|
3626
|
+
};
|
|
3627
|
+
}
|
|
3628
|
+
|
|
3629
|
+
/**
|
|
3630
|
+
*/
|
|
3631
|
+
async v2CoalShipmentsReceiptsGetRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FinalRouteResponseContainer>> {
|
|
3632
|
+
const requestOptions = await this.v2CoalShipmentsReceiptsGetRequestOpts();
|
|
3633
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
3634
|
+
|
|
3635
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => FinalRouteResponseContainerFromJSON(jsonValue));
|
|
3636
|
+
}
|
|
3637
|
+
|
|
3638
|
+
/**
|
|
3639
|
+
*/
|
|
3640
|
+
async v2CoalShipmentsReceiptsGet(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FinalRouteResponseContainer> {
|
|
3641
|
+
const response = await this.v2CoalShipmentsReceiptsGetRaw(initOverrides);
|
|
3642
|
+
return await response.value();
|
|
3643
|
+
}
|
|
3644
|
+
|
|
3645
|
+
}
|