mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-01 20:28:46 -05:00
servings
This commit is contained in:
@@ -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 {
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user