mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-04 21:58: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).
|
||||
@@ -13,21 +13,21 @@
|
||||
*/
|
||||
|
||||
import { exists, mapValues } from '../runtime';
|
||||
import type { FoodPropertiesFoodUnit } from './FoodPropertiesFoodUnit';
|
||||
import type { Food } from './Food';
|
||||
import {
|
||||
FoodPropertiesFoodUnitFromJSON,
|
||||
FoodPropertiesFoodUnitFromJSONTyped,
|
||||
FoodPropertiesFoodUnitToJSON,
|
||||
} from './FoodPropertiesFoodUnit';
|
||||
import type { IngredientFood } from './IngredientFood';
|
||||
FoodFromJSON,
|
||||
FoodFromJSONTyped,
|
||||
FoodToJSON,
|
||||
} from './Food';
|
||||
import type { Unit } from './Unit';
|
||||
import {
|
||||
IngredientFoodFromJSON,
|
||||
IngredientFoodFromJSONTyped,
|
||||
IngredientFoodToJSON,
|
||||
} from './IngredientFood';
|
||||
UnitFromJSON,
|
||||
UnitFromJSONTyped,
|
||||
UnitToJSON,
|
||||
} from './Unit';
|
||||
|
||||
/**
|
||||
*
|
||||
* Adds nested create feature
|
||||
* @export
|
||||
* @interface Ingredient
|
||||
*/
|
||||
@@ -37,19 +37,19 @@ export interface Ingredient {
|
||||
* @type {number}
|
||||
* @memberof Ingredient
|
||||
*/
|
||||
readonly id?: number;
|
||||
readonly id: number;
|
||||
/**
|
||||
*
|
||||
* @type {IngredientFood}
|
||||
* @type {Food}
|
||||
* @memberof Ingredient
|
||||
*/
|
||||
food: IngredientFood | null;
|
||||
food: Food | null;
|
||||
/**
|
||||
*
|
||||
* @type {FoodPropertiesFoodUnit}
|
||||
* @type {Unit}
|
||||
* @memberof Ingredient
|
||||
*/
|
||||
unit: FoodPropertiesFoodUnit | null;
|
||||
unit: Unit | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
@@ -61,7 +61,7 @@ export interface Ingredient {
|
||||
* @type {string}
|
||||
* @memberof Ingredient
|
||||
*/
|
||||
readonly conversions?: string;
|
||||
readonly conversions: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
@@ -97,7 +97,7 @@ export interface Ingredient {
|
||||
* @type {string}
|
||||
* @memberof Ingredient
|
||||
*/
|
||||
readonly usedInRecipes?: string;
|
||||
readonly usedInRecipes: string;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
@@ -117,9 +117,12 @@ export interface Ingredient {
|
||||
*/
|
||||
export function instanceOfIngredient(value: object): boolean {
|
||||
let isInstance = true;
|
||||
isInstance = isInstance && "id" in value;
|
||||
isInstance = isInstance && "food" in value;
|
||||
isInstance = isInstance && "unit" in value;
|
||||
isInstance = isInstance && "amount" in value;
|
||||
isInstance = isInstance && "conversions" in value;
|
||||
isInstance = isInstance && "usedInRecipes" in value;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
@@ -134,17 +137,17 @@ export function IngredientFromJSONTyped(json: any, ignoreDiscriminator: boolean)
|
||||
}
|
||||
return {
|
||||
|
||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
||||
'food': IngredientFoodFromJSON(json['food']),
|
||||
'unit': FoodPropertiesFoodUnitFromJSON(json['unit']),
|
||||
'id': json['id'],
|
||||
'food': FoodFromJSON(json['food']),
|
||||
'unit': UnitFromJSON(json['unit']),
|
||||
'amount': json['amount'],
|
||||
'conversions': !exists(json, 'conversions') ? undefined : json['conversions'],
|
||||
'conversions': json['conversions'],
|
||||
'note': !exists(json, 'note') ? undefined : json['note'],
|
||||
'order': !exists(json, 'order') ? undefined : json['order'],
|
||||
'isHeader': !exists(json, 'is_header') ? undefined : json['is_header'],
|
||||
'noAmount': !exists(json, 'no_amount') ? undefined : json['no_amount'],
|
||||
'originalText': !exists(json, 'original_text') ? undefined : json['original_text'],
|
||||
'usedInRecipes': !exists(json, 'used_in_recipes') ? undefined : json['used_in_recipes'],
|
||||
'usedInRecipes': json['used_in_recipes'],
|
||||
'alwaysUsePluralUnit': !exists(json, 'always_use_plural_unit') ? undefined : json['always_use_plural_unit'],
|
||||
'alwaysUsePluralFood': !exists(json, 'always_use_plural_food') ? undefined : json['always_use_plural_food'],
|
||||
};
|
||||
@@ -159,8 +162,8 @@ export function IngredientToJSON(value?: Ingredient | null): any {
|
||||
}
|
||||
return {
|
||||
|
||||
'food': IngredientFoodToJSON(value.food),
|
||||
'unit': FoodPropertiesFoodUnitToJSON(value.unit),
|
||||
'food': FoodToJSON(value.food),
|
||||
'unit': UnitToJSON(value.unit),
|
||||
'amount': value.amount,
|
||||
'note': value.note,
|
||||
'order': value.order,
|
||||
|
||||
Reference in New Issue
Block a user