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