This commit is contained in:
vabene1111
2024-03-05 17:16:07 +01:00
committed by smilerz
parent 86652a8f1f
commit 40d460b458
138 changed files with 4367 additions and 3934 deletions

View File

@@ -1,8 +1,8 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
* Tandoor
* Tandoor API Docs
*
* The version of the OpenAPI document: 0.0.0
*
@@ -13,18 +13,16 @@
*/
import { exists, mapValues } from '../runtime';
import type { Food } from './Food';
import {
Food,
FoodFromJSON,
FoodFromJSONTyped,
FoodToJSON,
} from './Food';
import type { Unit } from './Unit';
import {
Unit,
UnitFromJSON,
UnitFromJSONTyped,
UnitToJSON,
} from './Unit';
} from './';
/**
* Adds nested create feature
@@ -112,21 +110,6 @@ export interface Ingredient {
alwaysUsePluralFood?: boolean;
}
/**
* Check if a given object implements the Ingredient interface.
*/
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;
}
export function IngredientFromJSON(json: any): Ingredient {
return IngredientFromJSONTyped(json, false);
}
@@ -175,3 +158,4 @@ export function IngredientToJSON(value?: Ingredient | null): any {
};
}