posprocessing hook for DRF

This commit is contained in:
vabene1111
2024-03-30 11:01:37 +01:00
parent cb98b6723f
commit dfd9f7b066
156 changed files with 11621 additions and 1118 deletions

View File

@@ -24,7 +24,7 @@ export interface AccessToken {
* @type {number}
* @memberof AccessToken
*/
readonly id: number;
id?: number;
/**
*
* @type {string}
@@ -61,7 +61,6 @@ 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;
@@ -79,7 +78,7 @@ export function AccessTokenFromJSONTyped(json: any, ignoreDiscriminator: boolean
}
return {
'id': json['id'],
'id': json['id'] == null ? undefined : json['id'],
'token': json['token'],
'expires': (new Date(json['expires'])),
'scope': json['scope'] == null ? undefined : json['scope'],
@@ -94,6 +93,7 @@ export function AccessTokenToJSON(value?: AccessToken | null): any {
}
return {
'id': value['id'],
'expires': ((value['expires']).toISOString()),
'scope': value['scope'],
};