mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-02 04:39:54 -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 SyncLog {
|
||||
* @type {number}
|
||||
* @memberof SyncLog
|
||||
*/
|
||||
readonly id?: number;
|
||||
readonly id: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
@@ -48,7 +48,7 @@ export interface SyncLog {
|
||||
* @type {Date}
|
||||
* @memberof SyncLog
|
||||
*/
|
||||
readonly createdAt?: Date;
|
||||
readonly createdAt: Date;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -56,8 +56,10 @@ export interface SyncLog {
|
||||
*/
|
||||
export function instanceOfSyncLog(value: object): boolean {
|
||||
let isInstance = true;
|
||||
isInstance = isInstance && "id" in value;
|
||||
isInstance = isInstance && "sync" in value;
|
||||
isInstance = isInstance && "status" in value;
|
||||
isInstance = isInstance && "createdAt" in value;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
@@ -72,11 +74,11 @@ export function SyncLogFromJSONTyped(json: any, ignoreDiscriminator: boolean): S
|
||||
}
|
||||
return {
|
||||
|
||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
||||
'id': json['id'],
|
||||
'sync': json['sync'],
|
||||
'status': json['status'],
|
||||
'msg': !exists(json, 'msg') ? undefined : json['msg'],
|
||||
'createdAt': !exists(json, 'created_at') ? undefined : (new Date(json['created_at'])),
|
||||
'createdAt': (new Date(json['created_at'])),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user