fixed api client generation

This commit is contained in:
vabene1111
2024-04-22 19:33:09 +02:00
parent c47e46263c
commit 12cf9da8fc
145 changed files with 914 additions and 175 deletions

View File

@@ -24,7 +24,7 @@ export interface AccessToken {
* @type {number}
* @memberof AccessToken
*/
id?: number;
readonly id: number;
/**
*
* @type {string}
@@ -61,6 +61,7 @@ export interface AccessToken {
* Check if a given object implements the AccessToken interface.
*/
export function instanceOfAccessToken(value: object): boolean {
if (!('id' in value)) return false;
if (!('token' in value)) return false;
if (!('expires' in value)) return false;
if (!('created' in value)) return false;
@@ -78,7 +79,7 @@ export function AccessTokenFromJSONTyped(json: any, ignoreDiscriminator: boolean
}
return {
'id': json['id'] == null ? undefined : json['id'],
'id': json['id'],
'token': json['token'],
'expires': (new Date(json['expires'])),
'scope': json['scope'] == null ? undefined : json['scope'],
@@ -93,7 +94,6 @@ export function AccessTokenToJSON(value?: AccessToken | null): any {
}
return {
'id': value['id'],
'expires': ((value['expires']).toISOString()),
'scope': value['scope'],
};