mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-01 20:28:46 -05:00
working search with flat endpoint
This commit is contained in:
101
vue3/src/openapi/models/PatchedAccessToken.ts
Normal file
101
vue3/src/openapi/models/PatchedAccessToken.ts
Normal file
@@ -0,0 +1,101 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
*
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* The version of the OpenAPI document: 0.0.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import { exists, mapValues } from '../runtime';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface PatchedAccessToken
|
||||
*/
|
||||
export interface PatchedAccessToken {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof PatchedAccessToken
|
||||
*/
|
||||
readonly id?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PatchedAccessToken
|
||||
*/
|
||||
readonly token?: string;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof PatchedAccessToken
|
||||
*/
|
||||
expires?: Date;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof PatchedAccessToken
|
||||
*/
|
||||
scope?: string;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof PatchedAccessToken
|
||||
*/
|
||||
readonly created?: Date;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof PatchedAccessToken
|
||||
*/
|
||||
readonly updated?: Date;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the PatchedAccessToken interface.
|
||||
*/
|
||||
export function instanceOfPatchedAccessToken(value: object): boolean {
|
||||
let isInstance = true;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function PatchedAccessTokenFromJSON(json: any): PatchedAccessToken {
|
||||
return PatchedAccessTokenFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function PatchedAccessTokenFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedAccessToken {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
||||
'token': !exists(json, 'token') ? undefined : json['token'],
|
||||
'expires': !exists(json, 'expires') ? undefined : (new Date(json['expires'])),
|
||||
'scope': !exists(json, 'scope') ? undefined : json['scope'],
|
||||
'created': !exists(json, 'created') ? undefined : (new Date(json['created'])),
|
||||
'updated': !exists(json, 'updated') ? undefined : (new Date(json['updated'])),
|
||||
};
|
||||
}
|
||||
|
||||
export function PatchedAccessTokenToJSON(value?: PatchedAccessToken | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'expires': value.expires === undefined ? undefined : (value.expires.toISOString()),
|
||||
'scope': value.scope,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user