mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-02 12:49:02 -05:00
working search with flat endpoint
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* Django Recipes
|
||||
*
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* The version of the OpenAPI document:
|
||||
* The version of the OpenAPI document: 0.0.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
@@ -24,13 +24,13 @@ export interface AccessToken {
|
||||
* @type {number}
|
||||
* @memberof AccessToken
|
||||
*/
|
||||
readonly id?: number;
|
||||
readonly id: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof AccessToken
|
||||
*/
|
||||
readonly token?: string;
|
||||
readonly token: string;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
@@ -48,13 +48,13 @@ export interface AccessToken {
|
||||
* @type {Date}
|
||||
* @memberof AccessToken
|
||||
*/
|
||||
readonly created?: Date;
|
||||
readonly created: Date;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof AccessToken
|
||||
*/
|
||||
readonly updated?: Date;
|
||||
readonly updated: Date;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -62,7 +62,11 @@ export interface AccessToken {
|
||||
*/
|
||||
export function instanceOfAccessToken(value: object): boolean {
|
||||
let isInstance = true;
|
||||
isInstance = isInstance && "id" in value;
|
||||
isInstance = isInstance && "token" in value;
|
||||
isInstance = isInstance && "expires" in value;
|
||||
isInstance = isInstance && "created" in value;
|
||||
isInstance = isInstance && "updated" in value;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
@@ -77,12 +81,12 @@ export function AccessTokenFromJSONTyped(json: any, ignoreDiscriminator: boolean
|
||||
}
|
||||
return {
|
||||
|
||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
||||
'token': !exists(json, 'token') ? undefined : json['token'],
|
||||
'id': json['id'],
|
||||
'token': json['token'],
|
||||
'expires': (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'])),
|
||||
'created': (new Date(json['created'])),
|
||||
'updated': (new Date(json['updated'])),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user