Skip to content

Commit fcc574c

Browse files
committed
2.0.4
1 parent 7dab412 commit fcc574c

File tree

6 files changed

+16
-16
lines changed

6 files changed

+16
-16
lines changed

KlimApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ klimapi.getMetrics({
362362
[[Back to top]](#) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to Model list]](README.md#documentation-for-models) [[Back to README]](README.md)
363363

364364
# **getOrder**
365-
> Array<Order> getOrder()
365+
> Order getOrder()
366366
367367
Here you can request information about a specific Order.
368368

apis/KlimApi.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1671,13 +1671,13 @@ export class KlimApiResponseProcessor {
16711671
* @params response Response returned by the server for a request to getOrder
16721672
* @throws ApiException if the response code was not in [200, 299]
16731673
*/
1674-
public async getOrderWithHttpInfo(response: ResponseContext): Promise<HttpInfo<Array<Order> >> {
1674+
public async getOrderWithHttpInfo(response: ResponseContext): Promise<HttpInfo<Order >> {
16751675
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
16761676
if (isCodeInRange("200", response.httpStatusCode)) {
1677-
const body: Array<Order> = ObjectSerializer.deserialize(
1677+
const body: Order = ObjectSerializer.deserialize(
16781678
ObjectSerializer.parse(await response.body.text(), contentType),
1679-
"Array<Order>", ""
1680-
) as Array<Order>;
1679+
"Order", ""
1680+
) as Order;
16811681
return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
16821682
}
16831683
if (isCodeInRange("401", response.httpStatusCode)) {
@@ -1689,10 +1689,10 @@ export class KlimApiResponseProcessor {
16891689

16901690
// Work around for missing responses in specification, e.g. for petstore.yaml
16911691
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
1692-
const body: Array<Order> = ObjectSerializer.deserialize(
1692+
const body: Order = ObjectSerializer.deserialize(
16931693
ObjectSerializer.parse(await response.body.text(), contentType),
1694-
"Array<Order>", ""
1695-
) as Array<Order>;
1694+
"Order", ""
1695+
) as Order;
16961696
return new HttpInfo(response.httpStatusCode, response.headers, response.body, body);
16971697
}
16981698

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@klimapi/klimapi-node",
3-
"version": "2.0.3",
3+
"version": "2.0.4",
44
"description": "Node package for the KlimAPI API",
55
"author": "KlimAPI Team",
66
"repository": {

types/ObjectParamAPI.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -586,7 +586,7 @@ export class ObjectKlimApi {
586586
* Get Order
587587
* @param param the request object
588588
*/
589-
public getOrderWithHttpInfo(param: KlimApiGetOrderRequest, options?: Configuration): Promise<HttpInfo<Array<Order>>> {
589+
public getOrderWithHttpInfo(param: KlimApiGetOrderRequest, options?: Configuration): Promise<HttpInfo<Order>> {
590590
return this.api.getOrderWithHttpInfo(param.orderId, param.X_LOCALE, options).toPromise();
591591
}
592592

@@ -595,7 +595,7 @@ export class ObjectKlimApi {
595595
* Get Order
596596
* @param param the request object
597597
*/
598-
public getOrder(param: KlimApiGetOrderRequest, options?: Configuration): Promise<Array<Order>> {
598+
public getOrder(param: KlimApiGetOrderRequest, options?: Configuration): Promise<Order> {
599599
return this.api.getOrder(param.orderId, param.X_LOCALE, options).toPromise();
600600
}
601601

types/ObservableAPI.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ export class ObservableKlimApi {
265265
* @param orderId You can get the order_id from several endpoints, for example when creating an Order.
266266
* @param X_LOCALE
267267
*/
268-
public getOrderWithHttpInfo(orderId: string, X_LOCALE?: 'DE' | 'EN' | 'ES' | 'FR' | 'IT' | 'NL' | 'PL' | 'PT' | 'SV' | 'SL' | 'FI' | 'BG' | 'CS' | 'DA' | 'EL' | 'ET' | 'HU' | 'LT' | 'LV' | 'RO' | 'SK', _options?: Configuration): Observable<HttpInfo<Array<Order>>> {
268+
public getOrderWithHttpInfo(orderId: string, X_LOCALE?: 'DE' | 'EN' | 'ES' | 'FR' | 'IT' | 'NL' | 'PL' | 'PT' | 'SV' | 'SL' | 'FI' | 'BG' | 'CS' | 'DA' | 'EL' | 'ET' | 'HU' | 'LT' | 'LV' | 'RO' | 'SK', _options?: Configuration): Observable<HttpInfo<Order>> {
269269
const requestContextPromise = this.requestFactory.getOrder(orderId, X_LOCALE, _options);
270270

271271
// build promise chain
@@ -290,8 +290,8 @@ export class ObservableKlimApi {
290290
* @param orderId You can get the order_id from several endpoints, for example when creating an Order.
291291
* @param X_LOCALE
292292
*/
293-
public getOrder(orderId: string, X_LOCALE?: 'DE' | 'EN' | 'ES' | 'FR' | 'IT' | 'NL' | 'PL' | 'PT' | 'SV' | 'SL' | 'FI' | 'BG' | 'CS' | 'DA' | 'EL' | 'ET' | 'HU' | 'LT' | 'LV' | 'RO' | 'SK', _options?: Configuration): Observable<Array<Order>> {
294-
return this.getOrderWithHttpInfo(orderId, X_LOCALE, _options).pipe(map((apiResponse: HttpInfo<Array<Order>>) => apiResponse.data));
293+
public getOrder(orderId: string, X_LOCALE?: 'DE' | 'EN' | 'ES' | 'FR' | 'IT' | 'NL' | 'PL' | 'PT' | 'SV' | 'SL' | 'FI' | 'BG' | 'CS' | 'DA' | 'EL' | 'ET' | 'HU' | 'LT' | 'LV' | 'RO' | 'SK', _options?: Configuration): Observable<Order> {
294+
return this.getOrderWithHttpInfo(orderId, X_LOCALE, _options).pipe(map((apiResponse: HttpInfo<Order>) => apiResponse.data));
295295
}
296296

297297
/**

types/PromiseAPI.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ export class PromiseKlimApi {
183183
* @param orderId You can get the order_id from several endpoints, for example when creating an Order.
184184
* @param X_LOCALE
185185
*/
186-
public getOrderWithHttpInfo(orderId: string, X_LOCALE?: 'DE' | 'EN' | 'ES' | 'FR' | 'IT' | 'NL' | 'PL' | 'PT' | 'SV' | 'SL' | 'FI' | 'BG' | 'CS' | 'DA' | 'EL' | 'ET' | 'HU' | 'LT' | 'LV' | 'RO' | 'SK', _options?: Configuration): Promise<HttpInfo<Array<Order>>> {
186+
public getOrderWithHttpInfo(orderId: string, X_LOCALE?: 'DE' | 'EN' | 'ES' | 'FR' | 'IT' | 'NL' | 'PL' | 'PT' | 'SV' | 'SL' | 'FI' | 'BG' | 'CS' | 'DA' | 'EL' | 'ET' | 'HU' | 'LT' | 'LV' | 'RO' | 'SK', _options?: Configuration): Promise<HttpInfo<Order>> {
187187
const result = this.api.getOrderWithHttpInfo(orderId, X_LOCALE, _options);
188188
return result.toPromise();
189189
}
@@ -194,7 +194,7 @@ export class PromiseKlimApi {
194194
* @param orderId You can get the order_id from several endpoints, for example when creating an Order.
195195
* @param X_LOCALE
196196
*/
197-
public getOrder(orderId: string, X_LOCALE?: 'DE' | 'EN' | 'ES' | 'FR' | 'IT' | 'NL' | 'PL' | 'PT' | 'SV' | 'SL' | 'FI' | 'BG' | 'CS' | 'DA' | 'EL' | 'ET' | 'HU' | 'LT' | 'LV' | 'RO' | 'SK', _options?: Configuration): Promise<Array<Order>> {
197+
public getOrder(orderId: string, X_LOCALE?: 'DE' | 'EN' | 'ES' | 'FR' | 'IT' | 'NL' | 'PL' | 'PT' | 'SV' | 'SL' | 'FI' | 'BG' | 'CS' | 'DA' | 'EL' | 'ET' | 'HU' | 'LT' | 'LV' | 'RO' | 'SK', _options?: Configuration): Promise<Order> {
198198
const result = this.api.getOrder(orderId, X_LOCALE, _options);
199199
return result.toPromise();
200200
}

0 commit comments

Comments
 (0)