mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-06 14:48: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,7 +24,7 @@ export interface ExportLog {
|
||||
* @type {number}
|
||||
* @memberof ExportLog
|
||||
*/
|
||||
readonly id?: number;
|
||||
readonly id: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
@@ -69,16 +69,16 @@ export interface ExportLog {
|
||||
possiblyNotExpired?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @type {number}
|
||||
* @memberof ExportLog
|
||||
*/
|
||||
readonly createdBy?: string;
|
||||
readonly createdBy: number;
|
||||
/**
|
||||
*
|
||||
* @type {Date}
|
||||
* @memberof ExportLog
|
||||
*/
|
||||
readonly createdAt?: Date;
|
||||
readonly createdAt: Date;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -86,7 +86,10 @@ export interface ExportLog {
|
||||
*/
|
||||
export function instanceOfExportLog(value: object): boolean {
|
||||
let isInstance = true;
|
||||
isInstance = isInstance && "id" in value;
|
||||
isInstance = isInstance && "type" in value;
|
||||
isInstance = isInstance && "createdBy" in value;
|
||||
isInstance = isInstance && "createdAt" in value;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
@@ -101,7 +104,7 @@ export function ExportLogFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
||||
}
|
||||
return {
|
||||
|
||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
||||
'id': json['id'],
|
||||
'type': json['type'],
|
||||
'msg': !exists(json, 'msg') ? undefined : json['msg'],
|
||||
'running': !exists(json, 'running') ? undefined : json['running'],
|
||||
@@ -109,8 +112,8 @@ export function ExportLogFromJSONTyped(json: any, ignoreDiscriminator: boolean):
|
||||
'exportedRecipes': !exists(json, 'exported_recipes') ? undefined : json['exported_recipes'],
|
||||
'cacheDuration': !exists(json, 'cache_duration') ? undefined : json['cache_duration'],
|
||||
'possiblyNotExpired': !exists(json, 'possibly_not_expired') ? undefined : json['possibly_not_expired'],
|
||||
'createdBy': !exists(json, 'created_by') ? undefined : json['created_by'],
|
||||
'createdAt': !exists(json, 'created_at') ? undefined : (new Date(json['created_at'])),
|
||||
'createdBy': json['created_by'],
|
||||
'createdAt': (new Date(json['created_at'])),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user