Skip to content

Commit

Permalink
Update api client
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Apr 1, 2022
1 parent 7d73791 commit 4da0eda
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 11 deletions.
6 changes: 3 additions & 3 deletions src/DefaultApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ No authorization required
[[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)

# **instancesIdMusicGet**
> void instancesIdMusicGet()
> any instancesIdMusicGet()
Get details about the status, current track and playlist

Expand Down Expand Up @@ -327,7 +327,7 @@ Name | Type | Description | Notes

### Return type

**void**
**any**

### Authorization

Expand All @@ -336,7 +336,7 @@ No authorization required
### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: Not defined
- **Accept**: application/json


### HTTP response details
Expand Down
14 changes: 9 additions & 5 deletions src/apis/DefaultApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -549,21 +549,25 @@ export class DefaultApiResponseProcessor {
* @params response Response returned by the server for a request to instancesIdMusicGet
* @throws ApiException if the response code was not in [200, 299]
*/
public async instancesIdMusicGet(response: ResponseContext): Promise<void > {
public async instancesIdMusicGet(response: ResponseContext): Promise<any > {
const contentType = ObjectSerializer.normalizeMediaType(response.headers["content-type"]);
if (isCodeInRange("200", response.httpStatusCode)) {
return;
const body: any = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"any", ""
) as any;
return body;
}
if (isCodeInRange("404", response.httpStatusCode)) {
throw new ApiException<undefined>(response.httpStatusCode, "No instance found under the given id", undefined, response.headers);
}

// Work around for missing responses in specification, e.g. for petstore.yaml
if (response.httpStatusCode >= 200 && response.httpStatusCode <= 299) {
const body: void = ObjectSerializer.deserialize(
const body: any = ObjectSerializer.deserialize(
ObjectSerializer.parse(await response.body.text(), contentType),
"void", ""
) as void;
"any", ""
) as any;
return body;
}

Expand Down
2 changes: 1 addition & 1 deletion src/types/ObjectParamAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ export class ObjectDefaultApi {
* Get details about the status, current track and playlist
* @param param the request object
*/
public instancesIdMusicGet(param: DefaultApiInstancesIdMusicGetRequest, options?: Configuration): Promise<void> {
public instancesIdMusicGet(param: DefaultApiInstancesIdMusicGetRequest, options?: Configuration): Promise<any> {
return this.api.instancesIdMusicGet(param.id, options).toPromise();
}

Expand Down
2 changes: 1 addition & 1 deletion src/types/ObservableAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ export class ObservableDefaultApi {
* Get details about the status, current track and playlist
* @param id UUID of the Jimmi instance
*/
public instancesIdMusicGet(id: string, _options?: Configuration): Observable<void> {
public instancesIdMusicGet(id: string, _options?: Configuration): Observable<any> {
const requestContextPromise = this.requestFactory.instancesIdMusicGet(id, _options);

// build promise chain
Expand Down
2 changes: 1 addition & 1 deletion src/types/PromiseAPI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export class PromiseDefaultApi {
* Get details about the status, current track and playlist
* @param id UUID of the Jimmi instance
*/
public instancesIdMusicGet(id: string, _options?: Configuration): Promise<void> {
public instancesIdMusicGet(id: string, _options?: Configuration): Promise<any> {
const result = this.api.instancesIdMusicGet(id, _options);
return result.toPromise();
}
Expand Down

0 comments on commit 4da0eda

Please sign in to comment.