mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-03 05:11:31 -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).
|
||||
@@ -13,21 +13,21 @@
|
||||
*/
|
||||
|
||||
import { exists, mapValues } from '../runtime';
|
||||
import type { CustomFilterSharedInner } from './CustomFilterSharedInner';
|
||||
import type { CustomFilter } from './CustomFilter';
|
||||
import {
|
||||
CustomFilterSharedInnerFromJSON,
|
||||
CustomFilterSharedInnerFromJSONTyped,
|
||||
CustomFilterSharedInnerToJSON,
|
||||
} from './CustomFilterSharedInner';
|
||||
import type { RecipeBookFilter } from './RecipeBookFilter';
|
||||
CustomFilterFromJSON,
|
||||
CustomFilterFromJSONTyped,
|
||||
CustomFilterToJSON,
|
||||
} from './CustomFilter';
|
||||
import type { User } from './User';
|
||||
import {
|
||||
RecipeBookFilterFromJSON,
|
||||
RecipeBookFilterFromJSONTyped,
|
||||
RecipeBookFilterToJSON,
|
||||
} from './RecipeBookFilter';
|
||||
UserFromJSON,
|
||||
UserFromJSONTyped,
|
||||
UserToJSON,
|
||||
} from './User';
|
||||
|
||||
/**
|
||||
*
|
||||
* Adds nested create feature
|
||||
* @export
|
||||
* @interface RecipeBook
|
||||
*/
|
||||
@@ -37,7 +37,7 @@ export interface RecipeBook {
|
||||
* @type {number}
|
||||
* @memberof RecipeBook
|
||||
*/
|
||||
readonly id?: number;
|
||||
readonly id: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
@@ -52,22 +52,22 @@ export interface RecipeBook {
|
||||
description?: string;
|
||||
/**
|
||||
*
|
||||
* @type {Array<CustomFilterSharedInner>}
|
||||
* @type {Array<User>}
|
||||
* @memberof RecipeBook
|
||||
*/
|
||||
shared: Array<CustomFilterSharedInner>;
|
||||
shared: Array<User>;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @type {number}
|
||||
* @memberof RecipeBook
|
||||
*/
|
||||
readonly createdBy?: string;
|
||||
readonly createdBy: number;
|
||||
/**
|
||||
*
|
||||
* @type {RecipeBookFilter}
|
||||
* @type {CustomFilter}
|
||||
* @memberof RecipeBook
|
||||
*/
|
||||
filter?: RecipeBookFilter | null;
|
||||
filter?: CustomFilter | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
@@ -81,8 +81,10 @@ export interface RecipeBook {
|
||||
*/
|
||||
export function instanceOfRecipeBook(value: object): boolean {
|
||||
let isInstance = true;
|
||||
isInstance = isInstance && "id" in value;
|
||||
isInstance = isInstance && "name" in value;
|
||||
isInstance = isInstance && "shared" in value;
|
||||
isInstance = isInstance && "createdBy" in value;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
@@ -97,12 +99,12 @@ export function RecipeBookFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
||||
}
|
||||
return {
|
||||
|
||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
||||
'id': json['id'],
|
||||
'name': json['name'],
|
||||
'description': !exists(json, 'description') ? undefined : json['description'],
|
||||
'shared': ((json['shared'] as Array<any>).map(CustomFilterSharedInnerFromJSON)),
|
||||
'createdBy': !exists(json, 'created_by') ? undefined : json['created_by'],
|
||||
'filter': !exists(json, 'filter') ? undefined : RecipeBookFilterFromJSON(json['filter']),
|
||||
'shared': ((json['shared'] as Array<any>).map(UserFromJSON)),
|
||||
'createdBy': json['created_by'],
|
||||
'filter': !exists(json, 'filter') ? undefined : CustomFilterFromJSON(json['filter']),
|
||||
'order': !exists(json, 'order') ? undefined : json['order'],
|
||||
};
|
||||
}
|
||||
@@ -118,8 +120,8 @@ export function RecipeBookToJSON(value?: RecipeBook | null): any {
|
||||
|
||||
'name': value.name,
|
||||
'description': value.description,
|
||||
'shared': ((value.shared as Array<any>).map(CustomFilterSharedInnerToJSON)),
|
||||
'filter': RecipeBookFilterToJSON(value.filter),
|
||||
'shared': ((value.shared as Array<any>).map(UserToJSON)),
|
||||
'filter': CustomFilterToJSON(value.filter),
|
||||
'order': value.order,
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user