Skip to content

Commit 94ef375

Browse files
committed
fix: revert to openapi-generator 4.3.0
because of OpenAPITools/openapi-generator#6273
1 parent 7d738c7 commit 94ef375

File tree

7 files changed

+16
-48
lines changed

7 files changed

+16
-48
lines changed

.openapi-generator/VERSION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
4.3.1
1+
4.3.0

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ api: $(spec-openapi)
2222
docker run --rm \
2323
-v ${PWD}:/local \
2424
--user "$$(id -u):$$(id -g)" \
25-
openapitools/openapi-generator-cli:v4.3.1 generate \
25+
openapitools/openapi-generator-cli:v4.3.0 generate \
2626
-i /local/$(spec-openapi) \
2727
-g typescript-fetch \
2828
-c /local/$(generator-config) \

src/apis/TimesideApi.ts

+7-10
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,6 @@ import {
2727
AnnotationTrack,
2828
AnnotationTrackFromJSON,
2929
AnnotationTrackToJSON,
30-
AnyType,
31-
AnyTypeFromJSON,
32-
AnyTypeToJSON,
3330
AuthToken,
3431
AuthTokenFromJSON,
3532
AuthTokenToJSON,
@@ -361,7 +358,7 @@ export interface UpdateTaskRequest {
361358
}
362359

363360
/**
364-
*
361+
* no description
365362
*/
366363
export class TimesideApi extends runtime.BaseAPI {
367364

@@ -1117,7 +1114,7 @@ export class TimesideApi extends runtime.BaseAPI {
11171114

11181115
/**
11191116
*/
1120-
async listCsrfTokensRaw(): Promise<runtime.ApiResponse<Array<AnyType>>> {
1117+
async listCsrfTokensRaw(): Promise<runtime.ApiResponse<Array<object>>> {
11211118
const queryParameters: runtime.HTTPQuery = {};
11221119

11231120
const headerParameters: runtime.HTTPHeaders = {};
@@ -1129,12 +1126,12 @@ export class TimesideApi extends runtime.BaseAPI {
11291126
query: queryParameters,
11301127
});
11311128

1132-
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(AnyTypeFromJSON));
1129+
return new runtime.JSONApiResponse<any>(response);
11331130
}
11341131

11351132
/**
11361133
*/
1137-
async listCsrfTokens(): Promise<Array<AnyType>> {
1134+
async listCsrfTokens(): Promise<Array<object>> {
11381135
const response = await this.listCsrfTokensRaw();
11391136
return await response.value();
11401137
}
@@ -2127,7 +2124,7 @@ export class TimesideApi extends runtime.BaseAPI {
21272124
/**
21282125
* PNG rendering of 2D numerical data (example: a spectrogram).
21292126
*/
2130-
async retrieveResultVisualizationRaw(requestParameters: RetrieveResultVisualizationRequest): Promise<runtime.ApiResponse<AnyType>> {
2127+
async retrieveResultVisualizationRaw(requestParameters: RetrieveResultVisualizationRequest): Promise<runtime.ApiResponse<object>> {
21312128
if (requestParameters.uuid === null || requestParameters.uuid === undefined) {
21322129
throw new runtime.RequiredError('uuid','Required parameter requestParameters.uuid was null or undefined when calling retrieveResultVisualization.');
21332130
}
@@ -2143,13 +2140,13 @@ export class TimesideApi extends runtime.BaseAPI {
21432140
query: queryParameters,
21442141
});
21452142

2146-
return new runtime.JSONApiResponse(response, (jsonValue) => AnyTypeFromJSON(jsonValue));
2143+
return new runtime.JSONApiResponse<any>(response);
21472144
}
21482145

21492146
/**
21502147
* PNG rendering of 2D numerical data (example: a spectrogram).
21512148
*/
2152-
async retrieveResultVisualization(requestParameters: RetrieveResultVisualizationRequest): Promise<AnyType> {
2149+
async retrieveResultVisualization(requestParameters: RetrieveResultVisualizationRequest): Promise<object> {
21532150
const response = await this.retrieveResultVisualizationRaw(requestParameters);
21542151
return await response.value();
21552152
}

src/models/Item.ts

+2-10
Original file line numberDiff line numberDiff line change
@@ -87,21 +87,13 @@ export interface Item {
8787
*/
8888
readonly audioDuration?: number;
8989
/**
90-
* Provider's URI of the audio source.
91-
*
92-
* e.g. for Deezer preview: http://www.deezer.com/track/4763165
93-
*
94-
* e.g. for YouTube: https://www.youtube.com/watch?v=oRdxUFDoQe0
90+
* Provider\'s URI of the audio source. e.g. for Deezer preview: http://www.deezer.com/track/4763165 e.g. for YouTube: https://www.youtube.com/watch?v=oRdxUFDoQe0
9591
* @type {string}
9692
* @memberof Item
9793
*/
9894
externalUri?: string;
9995
/**
100-
* Provider's id of the audio source.
101-
*
102-
* e.g. for Deezer preview: 4763165
103-
*
104-
* e.g. for YouTube: oRdxUFDoQe0
96+
* Provider\'s id of the audio source. e.g. for Deezer preview: 4763165 e.g. for YouTube: oRdxUFDoQe0
10597
* @type {string}
10698
* @memberof Item
10799
*/

src/models/Result.ts

+2-13
Original file line numberDiff line numberDiff line change
@@ -44,17 +44,7 @@ export interface Result {
4444
*/
4545
preset?: string | null;
4646
/**
47-
* Status of the task giving the result:
48-
*
49-
* failed: 0
50-
*
51-
* draft: 1
52-
*
53-
* pending: 2
54-
*
55-
* running: 3
56-
*
57-
* done: 4
47+
* Status of the task giving the result: failed: 0 draft: 1 pending: 2 running: 3 done: 4
5848
* @type {number}
5949
* @memberof Result
6050
*/
@@ -72,8 +62,7 @@ export interface Result {
7262
*/
7363
hdf5?: Blob;
7464
/**
75-
* Non numerical result stored in a file
76-
* (image, transcoded audio, etc.)
65+
* Non numerical result stored in a file (image, transcoded audio, etc.)
7766
* @type {Blob}
7867
* @memberof Result
7968
*/

src/models/Task.ts

+1-11
Original file line numberDiff line numberDiff line change
@@ -44,17 +44,7 @@ export interface Task {
4444
*/
4545
selection?: string | null;
4646
/**
47-
* Task's status:
48-
*
49-
* failed: 0
50-
*
51-
* draft: 1
52-
*
53-
* pending: 2
54-
*
55-
* running: 3
56-
*
57-
* done: 4
47+
* Task\'s status: failed: 0 draft: 1 pending: 2 running: 3 done: 4
5848
* @type {number}
5949
* @memberof Task
6050
*/

src/runtime.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ export class BaseAPI {
6161
// do not handle correctly sometimes.
6262
url += '?' + this.configuration.queryParamsStringify(context.query);
6363
}
64-
const body = ((typeof FormData !== "undefined" && context.body instanceof FormData) || context.body instanceof URLSearchParams || isBlob(context.body))
64+
const body = (context.body instanceof FormData || context.body instanceof URLSearchParams || isBlob(context.body))
6565
? context.body
6666
: JSON.stringify(context.body);
6767

@@ -193,7 +193,7 @@ export class Configuration {
193193
}
194194

195195
export type Json = any;
196-
export type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | 'HEAD';
196+
export type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS';
197197
export type HTTPHeaders = { [key: string]: string };
198198
export type HTTPQuery = { [key: string]: string | number | null | boolean | Array<string | number | null | boolean> | HTTPQuery };
199199
export type HTTPBody = Json | FormData | URLSearchParams;

0 commit comments

Comments
 (0)