mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-09 08:08:24 -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,7 +24,7 @@ export interface Sync {
|
||||
* @type {number}
|
||||
* @memberof Sync
|
||||
*/
|
||||
readonly id?: number;
|
||||
readonly id: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
@@ -54,13 +54,13 @@ export interface Sync {
|
||||
* @type {Date}
|
||||
* @memberof Sync
|
||||
*/
|
||||
readonly createdAt?: Date;
|
||||
readonly createdAt: Date;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof Sync
|
||||
*/
|
||||
readonly updatedAt?: Date;
|
||||
readonly updatedAt: Date;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -68,7 +68,10 @@ export interface Sync {
|
||||
*/
|
||||
export function instanceOfSync(value: object): boolean {
|
||||
let isInstance = true;
|
||||
isInstance = isInstance && "id" in value;
|
||||
isInstance = isInstance && "storage" in value;
|
||||
isInstance = isInstance && "createdAt" in value;
|
||||
isInstance = isInstance && "updatedAt" in value;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
@@ -83,13 +86,13 @@ export function SyncFromJSONTyped(json: any, ignoreDiscriminator: boolean): Sync
|
||||
}
|
||||
return {
|
||||
|
||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
||||
'id': json['id'],
|
||||
'storage': json['storage'],
|
||||
'path': !exists(json, 'path') ? undefined : json['path'],
|
||||
'active': !exists(json, 'active') ? undefined : json['active'],
|
||||
'lastChecked': !exists(json, 'last_checked') ? undefined : (json['last_checked'] === null ? null : new Date(json['last_checked'])),
|
||||
'createdAt': !exists(json, 'created_at') ? undefined : (new Date(json['created_at'])),
|
||||
'updatedAt': !exists(json, 'updated_at') ? undefined : (new Date(json['updated_at'])),
|
||||
'createdAt': (new Date(json['created_at'])),
|
||||
'updatedAt': (new Date(json['updated_at'])),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user