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,36 +13,28 @@
*/
import { exists, mapValues } from '../runtime';
import type { Keyword } from './Keyword';
import {
Keyword,
KeywordFromJSON,
KeywordFromJSONTyped,
KeywordToJSON,
} from './Keyword';
import type { NutritionInformation } from './NutritionInformation';
import {
NutritionInformation,
NutritionInformationFromJSON,
NutritionInformationFromJSONTyped,
NutritionInformationToJSON,
} from './NutritionInformation';
import type { Property } from './Property';
import {
Property,
PropertyFromJSON,
PropertyFromJSONTyped,
PropertyToJSON,
} from './Property';
import type { Step } from './Step';
import {
Step,
StepFromJSON,
StepFromJSONTyped,
StepToJSON,
} from './Step';
import type { User } from './User';
import {
User,
UserFromJSON,
UserFromJSONTyped,
UserToJSON,
} from './User';
} from './';
/**
* Adds nested create feature
@@ -196,25 +188,6 @@ export interface Recipe {
shared?: Array<User>;
}
/**
* Check if a given object implements the Recipe interface.
*/
export function instanceOfRecipe(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "id" in value;
isInstance = isInstance && "name" in value;
isInstance = isInstance && "image" in value;
isInstance = isInstance && "steps" in value;
isInstance = isInstance && "createdBy" in value;
isInstance = isInstance && "createdAt" in value;
isInstance = isInstance && "updatedAt" in value;
isInstance = isInstance && "foodProperties" in value;
isInstance = isInstance && "rating" in value;
isInstance = isInstance && "lastCooked" in value;
return isInstance;
}
export function RecipeFromJSON(json: any): Recipe {
return RecipeFromJSONTyped(json, false);
}
@@ -280,3 +253,4 @@ export function RecipeToJSON(value?: Recipe | null): any {
};
}