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,24 +13,20 @@
*/
import { exists, mapValues } from '../runtime';
import type { MealType } from './MealType';
import {
MealType,
MealTypeFromJSON,
MealTypeFromJSONTyped,
MealTypeToJSON,
} from './MealType';
import type { RecipeOverview } from './RecipeOverview';
import {
RecipeOverview,
RecipeOverviewFromJSON,
RecipeOverviewFromJSONTyped,
RecipeOverviewToJSON,
} from './RecipeOverview';
import type { User } from './User';
import {
User,
UserFromJSON,
UserFromJSONTyped,
UserToJSON,
} from './User';
} from './';
/**
* Adds nested create feature
@@ -124,24 +120,6 @@ export interface MealPlan {
readonly shopping: string;
}
/**
* Check if a given object implements the MealPlan interface.
*/
export function instanceOfMealPlan(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "id" in value;
isInstance = isInstance && "servings" in value;
isInstance = isInstance && "noteMarkdown" in value;
isInstance = isInstance && "fromDate" in value;
isInstance = isInstance && "mealType" in value;
isInstance = isInstance && "createdBy" in value;
isInstance = isInstance && "recipeName" in value;
isInstance = isInstance && "mealTypeName" in value;
isInstance = isInstance && "shopping" in value;
return isInstance;
}
export function MealPlanFromJSON(json: any): MealPlan {
return MealPlanFromJSONTyped(json, false);
}
@@ -182,10 +160,11 @@ export function MealPlanToJSON(value?: MealPlan | null): any {
'recipe': RecipeOverviewToJSON(value.recipe),
'servings': value.servings,
'note': value.note,
'from_date': (value.fromDate.toISOString().substring(0,10)),
'to_date': value.toDate === undefined ? undefined : (value.toDate.toISOString().substring(0,10)),
'from_date': (value.fromDate.toISOString().substr(0,10)),
'to_date': value.toDate === undefined ? undefined : (value.toDate.toISOString().substr(0,10)),
'meal_type': MealTypeToJSON(value.mealType),
'shared': value.shared === undefined ? undefined : (value.shared === null ? null : (value.shared as Array<any>).map(UserToJSON)),
};
}