/* 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: 0.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { Configuration } from './configuration'; import globalAxios, { AxiosPromise, AxiosInstance } from 'axios'; // Some imports not used depending on template conditions // @ts-ignore import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common'; // @ts-ignore import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base'; /** * * @export * @interface BookmarkletImport */ export interface BookmarkletImport { /** * * @type {number} * @memberof BookmarkletImport */ id?: number; /** * * @type {string} * @memberof BookmarkletImport */ url?: string | null; /** * * @type {string} * @memberof BookmarkletImport */ html: string; /** * * @type {string} * @memberof BookmarkletImport */ created_by?: string; /** * * @type {string} * @memberof BookmarkletImport */ created_at?: string; } /** * * @export * @interface CookLog */ export interface CookLog { /** * * @type {number} * @memberof CookLog */ id?: number; /** * * @type {number} * @memberof CookLog */ recipe: number; /** * * @type {number} * @memberof CookLog */ servings?: number; /** * * @type {number} * @memberof CookLog */ rating?: number | null; /** * * @type {string} * @memberof CookLog */ created_by?: string; /** * * @type {string} * @memberof CookLog */ created_at?: string; } /** * * @export * @interface Food */ export interface Food { /** * * @type {number} * @memberof Food */ id?: number; /** * * @type {string} * @memberof Food */ name: string; /** * * @type {string} * @memberof Food */ description?: string; /** * * @type {FoodRecipe} * @memberof Food */ recipe?: FoodRecipe | null; /** * * @type {boolean} * @memberof Food */ ignore_shopping?: boolean; /** * * @type {FoodSupermarketCategory} * @memberof Food */ supermarket_category?: FoodSupermarketCategory | null; /** * * @type {string} * @memberof Food */ image?: string; /** * * @type {string} * @memberof Food */ parent?: string; /** * * @type {number} * @memberof Food */ numchild?: number; /** * * @type {string} * @memberof Food */ numrecipe?: string; } /** * * @export * @interface FoodRecipe */ export interface FoodRecipe { /** * * @type {number} * @memberof FoodRecipe */ id?: number; /** * * @type {string} * @memberof FoodRecipe */ name?: string; /** * * @type {string} * @memberof FoodRecipe */ url?: string; } /** * * @export * @interface FoodSupermarketCategory */ export interface FoodSupermarketCategory { /** * * @type {number} * @memberof FoodSupermarketCategory */ id?: number; /** * * @type {string} * @memberof FoodSupermarketCategory */ name: string; } /** * * @export * @interface ImportLog */ export interface ImportLog { /** * * @type {number} * @memberof ImportLog */ id?: number; /** * * @type {string} * @memberof ImportLog */ type: string; /** * * @type {string} * @memberof ImportLog */ msg?: string; /** * * @type {boolean} * @memberof ImportLog */ running?: boolean; /** * * @type {ImportLogKeyword} * @memberof ImportLog */ keyword?: ImportLogKeyword; /** * * @type {number} * @memberof ImportLog */ total_recipes?: number; /** * * @type {number} * @memberof ImportLog */ imported_recipes?: number; /** * * @type {string} * @memberof ImportLog */ created_by?: string; /** * * @type {string} * @memberof ImportLog */ created_at?: string; } /** * * @export * @interface ImportLogKeyword */ export interface ImportLogKeyword { /** * * @type {number} * @memberof ImportLogKeyword */ id?: number; /** * * @type {string} * @memberof ImportLogKeyword */ name: string; /** * * @type {string} * @memberof ImportLogKeyword */ icon?: string | null; /** * * @type {string} * @memberof ImportLogKeyword */ label?: string; /** * * @type {string} * @memberof ImportLogKeyword */ description?: string; /** * * @type {string} * @memberof ImportLogKeyword */ image?: string; /** * * @type {string} * @memberof ImportLogKeyword */ parent?: string; /** * * @type {number} * @memberof ImportLogKeyword */ numchild?: number; /** * * @type {string} * @memberof ImportLogKeyword */ numrecipe?: string; /** * * @type {string} * @memberof ImportLogKeyword */ created_at?: string; /** * * @type {string} * @memberof ImportLogKeyword */ updated_at?: string; } /** * * @export * @interface Ingredient */ export interface Ingredient { /** * * @type {number} * @memberof Ingredient */ id?: number; /** * * @type {StepFood} * @memberof Ingredient */ food: StepFood | null; /** * * @type {StepUnit} * @memberof Ingredient */ unit: StepUnit | null; /** * * @type {string} * @memberof Ingredient */ amount: string; /** * * @type {string} * @memberof Ingredient */ note?: string | null; /** * * @type {number} * @memberof Ingredient */ order?: number; /** * * @type {boolean} * @memberof Ingredient */ is_header?: boolean; /** * * @type {boolean} * @memberof Ingredient */ no_amount?: boolean; } /** * * @export * @interface InlineResponse200 */ export interface InlineResponse200 { /** * * @type {number} * @memberof InlineResponse200 */ count?: number; /** * * @type {string} * @memberof InlineResponse200 */ next?: string | null; /** * * @type {string} * @memberof InlineResponse200 */ previous?: string | null; /** * * @type {Array} * @memberof InlineResponse200 */ results?: Array; } /** * * @export * @interface InlineResponse2001 */ export interface InlineResponse2001 { /** * * @type {number} * @memberof InlineResponse2001 */ count?: number; /** * * @type {string} * @memberof InlineResponse2001 */ next?: string | null; /** * * @type {string} * @memberof InlineResponse2001 */ previous?: string | null; /** * * @type {Array} * @memberof InlineResponse2001 */ results?: Array; } /** * * @export * @interface InlineResponse2002 */ export interface InlineResponse2002 { /** * * @type {number} * @memberof InlineResponse2002 */ count?: number; /** * * @type {string} * @memberof InlineResponse2002 */ next?: string | null; /** * * @type {string} * @memberof InlineResponse2002 */ previous?: string | null; /** * * @type {Array} * @memberof InlineResponse2002 */ results?: Array; } /** * * @export * @interface InlineResponse2003 */ export interface InlineResponse2003 { /** * * @type {number} * @memberof InlineResponse2003 */ count?: number; /** * * @type {string} * @memberof InlineResponse2003 */ next?: string | null; /** * * @type {string} * @memberof InlineResponse2003 */ previous?: string | null; /** * * @type {Array} * @memberof InlineResponse2003 */ results?: Array; } /** * * @export * @interface InlineResponse2004 */ export interface InlineResponse2004 { /** * * @type {number} * @memberof InlineResponse2004 */ count?: number; /** * * @type {string} * @memberof InlineResponse2004 */ next?: string | null; /** * * @type {string} * @memberof InlineResponse2004 */ previous?: string | null; /** * * @type {Array} * @memberof InlineResponse2004 */ results?: Array; } /** * * @export * @interface InlineResponse2005 */ export interface InlineResponse2005 { /** * * @type {number} * @memberof InlineResponse2005 */ count?: number; /** * * @type {string} * @memberof InlineResponse2005 */ next?: string | null; /** * * @type {string} * @memberof InlineResponse2005 */ previous?: string | null; /** * * @type {Array} * @memberof InlineResponse2005 */ results?: Array; } /** * * @export * @interface InlineResponse2006 */ export interface InlineResponse2006 { /** * * @type {number} * @memberof InlineResponse2006 */ count?: number; /** * * @type {string} * @memberof InlineResponse2006 */ next?: string | null; /** * * @type {string} * @memberof InlineResponse2006 */ previous?: string | null; /** * * @type {Array} * @memberof InlineResponse2006 */ results?: Array; } /** * * @export * @interface InlineResponse2007 */ export interface InlineResponse2007 { /** * * @type {number} * @memberof InlineResponse2007 */ count?: number; /** * * @type {string} * @memberof InlineResponse2007 */ next?: string | null; /** * * @type {string} * @memberof InlineResponse2007 */ previous?: string | null; /** * * @type {Array} * @memberof InlineResponse2007 */ results?: Array; } /** * * @export * @interface InlineResponse2008 */ export interface InlineResponse2008 { /** * * @type {number} * @memberof InlineResponse2008 */ count?: number; /** * * @type {string} * @memberof InlineResponse2008 */ next?: string | null; /** * * @type {string} * @memberof InlineResponse2008 */ previous?: string | null; /** * * @type {Array} * @memberof InlineResponse2008 */ results?: Array; } /** * * @export * @interface Keyword */ export interface Keyword { /** * * @type {number} * @memberof Keyword */ id?: number; /** * * @type {string} * @memberof Keyword */ name: string; /** * * @type {string} * @memberof Keyword */ icon?: string | null; /** * * @type {string} * @memberof Keyword */ label?: string; /** * * @type {string} * @memberof Keyword */ description?: string; /** * * @type {string} * @memberof Keyword */ image?: string; /** * * @type {string} * @memberof Keyword */ parent?: string; /** * * @type {number} * @memberof Keyword */ numchild?: number; /** * * @type {string} * @memberof Keyword */ numrecipe?: string; /** * * @type {string} * @memberof Keyword */ created_at?: string; /** * * @type {string} * @memberof Keyword */ updated_at?: string; } /** * * @export * @interface MealPlan */ export interface MealPlan { /** * * @type {number} * @memberof MealPlan */ id?: number; /** * * @type {string} * @memberof MealPlan */ title?: string; /** * * @type {MealPlanRecipe} * @memberof MealPlan */ recipe?: MealPlanRecipe | null; /** * * @type {string} * @memberof MealPlan */ servings: string; /** * * @type {string} * @memberof MealPlan */ note?: string; /** * * @type {string} * @memberof MealPlan */ note_markdown?: string; /** * * @type {string} * @memberof MealPlan */ date: string; /** * * @type {number} * @memberof MealPlan */ meal_type: number; /** * * @type {string} * @memberof MealPlan */ created_by?: string; /** * * @type {Array} * @memberof MealPlan */ shared?: Array; /** * * @type {string} * @memberof MealPlan */ recipe_name?: string; /** * * @type {string} * @memberof MealPlan */ meal_type_name?: string; } /** * * @export * @interface MealPlanRecipe */ export interface MealPlanRecipe { /** * * @type {number} * @memberof MealPlanRecipe */ id?: number; /** * * @type {string} * @memberof MealPlanRecipe */ name: string; /** * * @type {string} * @memberof MealPlanRecipe */ description?: string | null; /** * * @type {any} * @memberof MealPlanRecipe */ image?: any; /** * * @type {Array} * @memberof MealPlanRecipe */ keywords: Array; /** * * @type {number} * @memberof MealPlanRecipe */ working_time?: number; /** * * @type {number} * @memberof MealPlanRecipe */ waiting_time?: number; /** * * @type {string} * @memberof MealPlanRecipe */ created_by?: string; /** * * @type {string} * @memberof MealPlanRecipe */ created_at?: string; /** * * @type {string} * @memberof MealPlanRecipe */ updated_at?: string; /** * * @type {boolean} * @memberof MealPlanRecipe */ internal?: boolean; /** * * @type {number} * @memberof MealPlanRecipe */ servings?: number; /** * * @type {string} * @memberof MealPlanRecipe */ servings_text?: string; /** * * @type {string} * @memberof MealPlanRecipe */ rating?: string; /** * * @type {string} * @memberof MealPlanRecipe */ last_cooked?: string; /** * * @type {string} * @memberof MealPlanRecipe */ _new?: string; } /** * * @export * @interface MealType */ export interface MealType { /** * * @type {number} * @memberof MealType */ id?: number; /** * * @type {string} * @memberof MealType */ name: string; /** * * @type {number} * @memberof MealType */ order?: number; /** * * @type {string} * @memberof MealType */ created_by?: string; } /** * * @export * @interface Recipe */ export interface Recipe { /** * * @type {number} * @memberof Recipe */ id?: number; /** * * @type {string} * @memberof Recipe */ name: string; /** * * @type {string} * @memberof Recipe */ description?: string | null; /** * * @type {any} * @memberof Recipe */ image?: any; /** * * @type {Array} * @memberof Recipe */ keywords: Array; /** * * @type {Array} * @memberof Recipe */ steps: Array; /** * * @type {number} * @memberof Recipe */ working_time?: number; /** * * @type {number} * @memberof Recipe */ waiting_time?: number; /** * * @type {string} * @memberof Recipe */ created_by?: string; /** * * @type {string} * @memberof Recipe */ created_at?: string; /** * * @type {string} * @memberof Recipe */ updated_at?: string; /** * * @type {boolean} * @memberof Recipe */ internal?: boolean; /** * * @type {RecipeNutrition} * @memberof Recipe */ nutrition?: RecipeNutrition | null; /** * * @type {number} * @memberof Recipe */ servings?: number; /** * * @type {string} * @memberof Recipe */ file_path?: string; /** * * @type {string} * @memberof Recipe */ servings_text?: string; /** * * @type {string} * @memberof Recipe */ rating?: string; /** * * @type {string} * @memberof Recipe */ last_cooked?: string; } /** * * @export * @interface RecipeBook */ export interface RecipeBook { /** * * @type {number} * @memberof RecipeBook */ id?: number; /** * * @type {string} * @memberof RecipeBook */ name: string; /** * * @type {string} * @memberof RecipeBook */ description?: string; /** * * @type {string} * @memberof RecipeBook */ icon?: string | null; /** * * @type {Array} * @memberof RecipeBook */ shared?: Array; /** * * @type {string} * @memberof RecipeBook */ created_by?: string; } /** * * @export * @interface RecipeBookEntry */ export interface RecipeBookEntry { /** * * @type {number} * @memberof RecipeBookEntry */ id?: number; /** * * @type {number} * @memberof RecipeBookEntry */ book: number; /** * * @type {string} * @memberof RecipeBookEntry */ book_content?: string; /** * * @type {number} * @memberof RecipeBookEntry */ recipe: number; /** * * @type {string} * @memberof RecipeBookEntry */ recipe_content?: string; } /** * * @export * @interface RecipeImage */ export interface RecipeImage { /** * * @type {any} * @memberof RecipeImage */ image?: any | null; } /** * * @export * @interface RecipeKeywords */ export interface RecipeKeywords { /** * * @type {number} * @memberof RecipeKeywords */ id?: number; /** * * @type {string} * @memberof RecipeKeywords */ name: string; /** * * @type {string} * @memberof RecipeKeywords */ icon?: string | null; /** * * @type {string} * @memberof RecipeKeywords */ label?: string; /** * * @type {string} * @memberof RecipeKeywords */ description?: string; /** * * @type {string} * @memberof RecipeKeywords */ image?: string; /** * * @type {string} * @memberof RecipeKeywords */ parent?: string; /** * * @type {number} * @memberof RecipeKeywords */ numchild?: number; /** * * @type {string} * @memberof RecipeKeywords */ numrecipe?: string; /** * * @type {string} * @memberof RecipeKeywords */ created_at?: string; /** * * @type {string} * @memberof RecipeKeywords */ updated_at?: string; } /** * * @export * @interface RecipeNutrition */ export interface RecipeNutrition { /** * * @type {number} * @memberof RecipeNutrition */ id?: number; /** * * @type {string} * @memberof RecipeNutrition */ carbohydrates?: string; /** * * @type {string} * @memberof RecipeNutrition */ fats?: string; /** * * @type {string} * @memberof RecipeNutrition */ proteins?: string; /** * * @type {string} * @memberof RecipeNutrition */ calories?: string; /** * * @type {string} * @memberof RecipeNutrition */ source?: string | null; } /** * * @export * @interface RecipeOverview */ export interface RecipeOverview { /** * * @type {number} * @memberof RecipeOverview */ id?: number; /** * * @type {string} * @memberof RecipeOverview */ name: string; /** * * @type {string} * @memberof RecipeOverview */ description?: string | null; /** * * @type {any} * @memberof RecipeOverview */ image?: any; /** * * @type {Array} * @memberof RecipeOverview */ keywords: Array; /** * * @type {number} * @memberof RecipeOverview */ working_time?: number; /** * * @type {number} * @memberof RecipeOverview */ waiting_time?: number; /** * * @type {string} * @memberof RecipeOverview */ created_by?: string; /** * * @type {string} * @memberof RecipeOverview */ created_at?: string; /** * * @type {string} * @memberof RecipeOverview */ updated_at?: string; /** * * @type {boolean} * @memberof RecipeOverview */ internal?: boolean; /** * * @type {number} * @memberof RecipeOverview */ servings?: number; /** * * @type {string} * @memberof RecipeOverview */ servings_text?: string; /** * * @type {string} * @memberof RecipeOverview */ rating?: string; /** * * @type {string} * @memberof RecipeOverview */ last_cooked?: string; /** * * @type {string} * @memberof RecipeOverview */ _new?: string; } /** * * @export * @interface RecipeOverviewKeywords */ export interface RecipeOverviewKeywords { /** * * @type {number} * @memberof RecipeOverviewKeywords */ id?: number; /** * * @type {string} * @memberof RecipeOverviewKeywords */ label?: string; } /** * * @export * @interface RecipeSteps */ export interface RecipeSteps { /** * * @type {number} * @memberof RecipeSteps */ id?: number; /** * * @type {string} * @memberof RecipeSteps */ name?: string; /** * * @type {string} * @memberof RecipeSteps */ type?: RecipeStepsTypeEnum; /** * * @type {string} * @memberof RecipeSteps */ instruction?: string; /** * * @type {Array} * @memberof RecipeSteps */ ingredients: Array; /** * * @type {string} * @memberof RecipeSteps */ ingredients_markdown?: string; /** * * @type {string} * @memberof RecipeSteps */ ingredients_vue?: string; /** * * @type {number} * @memberof RecipeSteps */ time?: number; /** * * @type {number} * @memberof RecipeSteps */ order?: number; /** * * @type {boolean} * @memberof RecipeSteps */ show_as_header?: boolean; /** * * @type {StepFile} * @memberof RecipeSteps */ file?: StepFile | null; /** * * @type {number} * @memberof RecipeSteps */ step_recipe?: number | null; /** * * @type {string} * @memberof RecipeSteps */ step_recipe_data?: string; } /** * @export * @enum {string} */ export enum RecipeStepsTypeEnum { Text = 'TEXT', Time = 'TIME', File = 'FILE', Recipe = 'RECIPE' } /** * * @export * @interface ShoppingList */ export interface ShoppingList { /** * * @type {number} * @memberof ShoppingList */ id?: number; /** * * @type {string} * @memberof ShoppingList */ uuid?: string; /** * * @type {string} * @memberof ShoppingList */ note?: string | null; /** * * @type {Array} * @memberof ShoppingList */ recipes: Array | null; /** * * @type {Array} * @memberof ShoppingList */ entries: Array | null; /** * * @type {Array} * @memberof ShoppingList */ shared: Array; /** * * @type {boolean} * @memberof ShoppingList */ finished?: boolean; /** * * @type {ShoppingListSupermarket} * @memberof ShoppingList */ supermarket: ShoppingListSupermarket | null; /** * * @type {string} * @memberof ShoppingList */ created_by?: string; /** * * @type {string} * @memberof ShoppingList */ created_at?: string; } /** * * @export * @interface ShoppingListEntries */ export interface ShoppingListEntries { /** * * @type {number} * @memberof ShoppingListEntries */ id?: number; /** * * @type {number} * @memberof ShoppingListEntries */ list_recipe?: number | null; /** * * @type {StepFood} * @memberof ShoppingListEntries */ food: StepFood | null; /** * * @type {StepUnit} * @memberof ShoppingListEntries */ unit?: StepUnit | null; /** * * @type {string} * @memberof ShoppingListEntries */ amount: string; /** * * @type {number} * @memberof ShoppingListEntries */ order?: number; /** * * @type {boolean} * @memberof ShoppingListEntries */ checked?: boolean; } /** * * @export * @interface ShoppingListEntry */ export interface ShoppingListEntry { /** * * @type {number} * @memberof ShoppingListEntry */ id?: number; /** * * @type {number} * @memberof ShoppingListEntry */ list_recipe?: number | null; /** * * @type {StepFood} * @memberof ShoppingListEntry */ food: StepFood | null; /** * * @type {StepUnit} * @memberof ShoppingListEntry */ unit?: StepUnit | null; /** * * @type {string} * @memberof ShoppingListEntry */ amount: string; /** * * @type {number} * @memberof ShoppingListEntry */ order?: number; /** * * @type {boolean} * @memberof ShoppingListEntry */ checked?: boolean; } /** * * @export * @interface ShoppingListRecipe */ export interface ShoppingListRecipe { /** * * @type {number} * @memberof ShoppingListRecipe */ id?: number; /** * * @type {number} * @memberof ShoppingListRecipe */ recipe?: number | null; /** * * @type {string} * @memberof ShoppingListRecipe */ recipe_name?: string; /** * * @type {string} * @memberof ShoppingListRecipe */ servings: string; } /** * * @export * @interface ShoppingListRecipes */ export interface ShoppingListRecipes { /** * * @type {number} * @memberof ShoppingListRecipes */ id?: number; /** * * @type {number} * @memberof ShoppingListRecipes */ recipe?: number | null; /** * * @type {string} * @memberof ShoppingListRecipes */ recipe_name?: string; /** * * @type {string} * @memberof ShoppingListRecipes */ servings: string; } /** * * @export * @interface ShoppingListShared */ export interface ShoppingListShared { /** * * @type {number} * @memberof ShoppingListShared */ id?: number; /** * * @type {string} * @memberof ShoppingListShared */ username?: string; } /** * * @export * @interface ShoppingListSupermarket */ export interface ShoppingListSupermarket { /** * * @type {number} * @memberof ShoppingListSupermarket */ id?: number; /** * * @type {string} * @memberof ShoppingListSupermarket */ name: string; /** * * @type {Array} * @memberof ShoppingListSupermarket */ category_to_supermarket?: Array; } /** * * @export * @interface ShoppingListSupermarketCategory */ export interface ShoppingListSupermarketCategory { /** * * @type {number} * @memberof ShoppingListSupermarketCategory */ id?: number; /** * * @type {string} * @memberof ShoppingListSupermarketCategory */ name: string; } /** * * @export * @interface ShoppingListSupermarketCategoryToSupermarket */ export interface ShoppingListSupermarketCategoryToSupermarket { /** * * @type {number} * @memberof ShoppingListSupermarketCategoryToSupermarket */ id?: number; /** * * @type {ShoppingListSupermarketCategory} * @memberof ShoppingListSupermarketCategoryToSupermarket */ category: ShoppingListSupermarketCategory; /** * * @type {number} * @memberof ShoppingListSupermarketCategoryToSupermarket */ supermarket: number; /** * * @type {number} * @memberof ShoppingListSupermarketCategoryToSupermarket */ order?: number; } /** * * @export * @interface Step */ export interface Step { /** * * @type {number} * @memberof Step */ id?: number; /** * * @type {string} * @memberof Step */ name?: string; /** * * @type {string} * @memberof Step */ type?: StepTypeEnum; /** * * @type {string} * @memberof Step */ instruction?: string; /** * * @type {Array} * @memberof Step */ ingredients: Array; /** * * @type {string} * @memberof Step */ ingredients_markdown?: string; /** * * @type {string} * @memberof Step */ ingredients_vue?: string; /** * * @type {number} * @memberof Step */ time?: number; /** * * @type {number} * @memberof Step */ order?: number; /** * * @type {boolean} * @memberof Step */ show_as_header?: boolean; /** * * @type {StepFile} * @memberof Step */ file?: StepFile | null; /** * * @type {number} * @memberof Step */ step_recipe?: number | null; /** * * @type {string} * @memberof Step */ step_recipe_data?: string; } /** * @export * @enum {string} */ export enum StepTypeEnum { Text = 'TEXT', Time = 'TIME', File = 'FILE', Recipe = 'RECIPE' } /** * * @export * @interface StepFile */ export interface StepFile { /** * * @type {string} * @memberof StepFile */ name: string; /** * * @type {any} * @memberof StepFile */ file?: any; /** * * @type {number} * @memberof StepFile */ id?: number; } /** * * @export * @interface StepFood */ export interface StepFood { /** * * @type {number} * @memberof StepFood */ id?: number; /** * * @type {string} * @memberof StepFood */ name: string; /** * * @type {string} * @memberof StepFood */ description?: string; /** * * @type {FoodRecipe} * @memberof StepFood */ recipe?: FoodRecipe | null; /** * * @type {boolean} * @memberof StepFood */ ignore_shopping?: boolean; /** * * @type {FoodSupermarketCategory} * @memberof StepFood */ supermarket_category?: FoodSupermarketCategory | null; /** * * @type {string} * @memberof StepFood */ image?: string; /** * * @type {string} * @memberof StepFood */ parent?: string; /** * * @type {number} * @memberof StepFood */ numchild?: number; /** * * @type {string} * @memberof StepFood */ numrecipe?: string; } /** * * @export * @interface StepIngredients */ export interface StepIngredients { /** * * @type {number} * @memberof StepIngredients */ id?: number; /** * * @type {StepFood} * @memberof StepIngredients */ food: StepFood | null; /** * * @type {StepUnit} * @memberof StepIngredients */ unit: StepUnit | null; /** * * @type {string} * @memberof StepIngredients */ amount: string; /** * * @type {string} * @memberof StepIngredients */ note?: string | null; /** * * @type {number} * @memberof StepIngredients */ order?: number; /** * * @type {boolean} * @memberof StepIngredients */ is_header?: boolean; /** * * @type {boolean} * @memberof StepIngredients */ no_amount?: boolean; } /** * * @export * @interface StepUnit */ export interface StepUnit { /** * * @type {number} * @memberof StepUnit */ id?: number; /** * * @type {string} * @memberof StepUnit */ name: string; /** * * @type {string} * @memberof StepUnit */ description?: string | null; /** * * @type {string} * @memberof StepUnit */ numrecipe?: string; /** * * @type {string} * @memberof StepUnit */ image?: string; } /** * * @export * @interface Storage */ export interface Storage { /** * * @type {number} * @memberof Storage */ id?: number; /** * * @type {string} * @memberof Storage */ name: string; /** * * @type {string} * @memberof Storage */ method?: StorageMethodEnum; /** * * @type {string} * @memberof Storage */ username?: string | null; /** * * @type {string} * @memberof Storage */ password?: string | null; /** * * @type {string} * @memberof Storage */ token?: string | null; /** * * @type {string} * @memberof Storage */ created_by?: string; } /** * @export * @enum {string} */ export enum StorageMethodEnum { Db = 'DB', Nextcloud = 'NEXTCLOUD', Local = 'LOCAL' } /** * * @export * @interface Supermarket */ export interface Supermarket { /** * * @type {number} * @memberof Supermarket */ id?: number; /** * * @type {string} * @memberof Supermarket */ name: string; /** * * @type {Array} * @memberof Supermarket */ category_to_supermarket?: Array; } /** * * @export * @interface SupermarketCategory */ export interface SupermarketCategory { /** * * @type {number} * @memberof SupermarketCategory */ id?: number; /** * * @type {string} * @memberof SupermarketCategory */ name: string; } /** * * @export * @interface SupermarketCategoryRelation */ export interface SupermarketCategoryRelation { /** * * @type {number} * @memberof SupermarketCategoryRelation */ id?: number; /** * * @type {ShoppingListSupermarketCategory} * @memberof SupermarketCategoryRelation */ category: ShoppingListSupermarketCategory; /** * * @type {number} * @memberof SupermarketCategoryRelation */ supermarket: number; /** * * @type {number} * @memberof SupermarketCategoryRelation */ order?: number; } /** * * @export * @interface Sync */ export interface Sync { /** * * @type {number} * @memberof Sync */ id?: number; /** * * @type {number} * @memberof Sync */ storage: number; /** * * @type {string} * @memberof Sync */ path?: string; /** * * @type {boolean} * @memberof Sync */ active?: boolean; /** * * @type {string} * @memberof Sync */ last_checked?: string | null; /** * * @type {string} * @memberof Sync */ created_at?: string; /** * * @type {string} * @memberof Sync */ updated_at?: string; } /** * * @export * @interface SyncLog */ export interface SyncLog { /** * * @type {number} * @memberof SyncLog */ id?: number; /** * * @type {number} * @memberof SyncLog */ sync: number; /** * * @type {string} * @memberof SyncLog */ status: string; /** * * @type {string} * @memberof SyncLog */ msg?: string; /** * * @type {string} * @memberof SyncLog */ created_at?: string; } /** * * @export * @interface Unit */ export interface Unit { /** * * @type {number} * @memberof Unit */ id?: number; /** * * @type {string} * @memberof Unit */ name: string; /** * * @type {string} * @memberof Unit */ description?: string | null; /** * * @type {string} * @memberof Unit */ numrecipe?: string; /** * * @type {string} * @memberof Unit */ image?: string; } /** * * @export * @interface UserFile */ export interface UserFile { /** * * @type {string} * @memberof UserFile */ name: string; /** * * @type {any} * @memberof UserFile */ file?: any; /** * * @type {number} * @memberof UserFile */ file_size_kb?: number; /** * * @type {number} * @memberof UserFile */ id?: number; } /** * * @export * @interface UserName */ export interface UserName { /** * * @type {number} * @memberof UserName */ id?: number; /** * * @type {string} * @memberof UserName */ username?: string; } /** * * @export * @interface UserPreference */ export interface UserPreference { /** * * @type {number} * @memberof UserPreference */ user: number; /** * * @type {string} * @memberof UserPreference */ theme?: UserPreferenceThemeEnum; /** * * @type {string} * @memberof UserPreference */ nav_color?: UserPreferenceNavColorEnum; /** * * @type {string} * @memberof UserPreference */ default_unit?: string; /** * * @type {string} * @memberof UserPreference */ default_page?: UserPreferenceDefaultPageEnum; /** * * @type {string} * @memberof UserPreference */ search_style?: UserPreferenceSearchStyleEnum; /** * * @type {boolean} * @memberof UserPreference */ show_recent?: boolean; /** * * @type {Array} * @memberof UserPreference */ plan_share?: Array; /** * * @type {number} * @memberof UserPreference */ ingredient_decimals?: number; /** * * @type {boolean} * @memberof UserPreference */ comments?: boolean; } /** * @export * @enum {string} */ export enum UserPreferenceThemeEnum { Tandoor = 'TANDOOR', Bootstrap = 'BOOTSTRAP', Darkly = 'DARKLY', Flatly = 'FLATLY', Superhero = 'SUPERHERO' } /** * @export * @enum {string} */ export enum UserPreferenceNavColorEnum { Primary = 'PRIMARY', Secondary = 'SECONDARY', Success = 'SUCCESS', Info = 'INFO', Warning = 'WARNING', Danger = 'DANGER', Light = 'LIGHT', Dark = 'DARK' } /** * @export * @enum {string} */ export enum UserPreferenceDefaultPageEnum { Search = 'SEARCH', Plan = 'PLAN', Books = 'BOOKS' } /** * @export * @enum {string} */ export enum UserPreferenceSearchStyleEnum { Small = 'SMALL', Large = 'LARGE', New = 'NEW' } /** * * @export * @interface ViewLog */ export interface ViewLog { /** * * @type {number} * @memberof ViewLog */ id?: number; /** * * @type {number} * @memberof ViewLog */ recipe: number; /** * * @type {string} * @memberof ViewLog */ created_by?: string; /** * * @type {string} * @memberof ViewLog */ created_at?: string; } /** * ApiApi - axios parameter creator * @export */ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * * @param {BookmarkletImport} [bookmarkletImport] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createBookmarkletImport: async (bookmarkletImport?: BookmarkletImport, options: any = {}): Promise => { const localVarPath = `/api/bookmarklet-import/`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(bookmarkletImport, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {CookLog} [cookLog] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createCookLog: async (cookLog?: CookLog, options: any = {}): Promise => { const localVarPath = `/api/cook-log/`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(cookLog, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {Food} [food] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createFood: async (food?: Food, options: any = {}): Promise => { const localVarPath = `/api/food/`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(food, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {ImportLog} [importLog] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createImportLog: async (importLog?: ImportLog, options: any = {}): Promise => { const localVarPath = `/api/import-log/`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(importLog, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {Ingredient} [ingredient] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createIngredient: async (ingredient?: Ingredient, options: any = {}): Promise => { const localVarPath = `/api/ingredient/`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(ingredient, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {Keyword} [keyword] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createKeyword: async (keyword?: Keyword, options: any = {}): Promise => { const localVarPath = `/api/keyword/`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(keyword, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {MealPlan} [mealPlan] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createMealPlan: async (mealPlan?: MealPlan, options: any = {}): Promise => { const localVarPath = `/api/meal-plan/`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(mealPlan, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * returns list of meal types created by the requesting user ordered by the order field. * @param {MealType} [mealType] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createMealType: async (mealType?: MealType, options: any = {}): Promise => { const localVarPath = `/api/meal-type/`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(mealType, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {Recipe} [recipe] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createRecipe: async (recipe?: Recipe, options: any = {}): Promise => { const localVarPath = `/api/recipe/`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(recipe, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {RecipeBook} [recipeBook] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createRecipeBook: async (recipeBook?: RecipeBook, options: any = {}): Promise => { const localVarPath = `/api/recipe-book/`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(recipeBook, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {RecipeBookEntry} [recipeBookEntry] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createRecipeBookEntry: async (recipeBookEntry?: RecipeBookEntry, options: any = {}): Promise => { const localVarPath = `/api/recipe-book-entry/`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(recipeBookEntry, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {ShoppingList} [shoppingList] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createShoppingList: async (shoppingList?: ShoppingList, options: any = {}): Promise => { const localVarPath = `/api/shopping-list/`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(shoppingList, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {ShoppingListEntry} [shoppingListEntry] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createShoppingListEntry: async (shoppingListEntry?: ShoppingListEntry, options: any = {}): Promise => { const localVarPath = `/api/shopping-list-entry/`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(shoppingListEntry, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {ShoppingListRecipe} [shoppingListRecipe] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createShoppingListRecipe: async (shoppingListRecipe?: ShoppingListRecipe, options: any = {}): Promise => { const localVarPath = `/api/shopping-list-recipe/`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(shoppingListRecipe, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {Step} [step] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createStep: async (step?: Step, options: any = {}): Promise => { const localVarPath = `/api/step/`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(step, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {Storage} [storage] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createStorage: async (storage?: Storage, options: any = {}): Promise => { const localVarPath = `/api/storage/`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(storage, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {Supermarket} [supermarket] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createSupermarket: async (supermarket?: Supermarket, options: any = {}): Promise => { const localVarPath = `/api/supermarket/`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(supermarket, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {SupermarketCategory} [supermarketCategory] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createSupermarketCategory: async (supermarketCategory?: SupermarketCategory, options: any = {}): Promise => { const localVarPath = `/api/supermarket-category/`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(supermarketCategory, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {SupermarketCategoryRelation} [supermarketCategoryRelation] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createSupermarketCategoryRelation: async (supermarketCategoryRelation?: SupermarketCategoryRelation, options: any = {}): Promise => { const localVarPath = `/api/supermarket-category-relation/`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(supermarketCategoryRelation, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {Sync} [sync] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createSync: async (sync?: Sync, options: any = {}): Promise => { const localVarPath = `/api/sync/`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(sync, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {Unit} [unit] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createUnit: async (unit?: Unit, options: any = {}): Promise => { const localVarPath = `/api/unit/`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(unit, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} name * @param {any} [file] * @param {number} [fileSizeKb] * @param {number} [id] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createUserFile: async (name: string, file?: any, fileSizeKb?: number, id?: number, options: any = {}): Promise => { // verify required parameter 'name' is not null or undefined assertParamExists('createUserFile', 'name', name) const localVarPath = `/api/user-file/`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)(); if (name !== undefined) { localVarFormParams.append('name', name as any); } if (file !== undefined) { localVarFormParams.append('file', file as any); } if (fileSizeKb !== undefined) { localVarFormParams.append('file_size_kb', fileSizeKb as any); } if (id !== undefined) { localVarFormParams.append('id', id as any); } localVarHeaderParameter['Content-Type'] = 'multipart/form-data'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = localVarFormParams; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {UserPreference} [userPreference] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createUserPreference: async (userPreference?: UserPreference, options: any = {}): Promise => { const localVarPath = `/api/user-preference/`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(userPreference, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {ViewLog} [viewLog] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createViewLog: async (viewLog?: ViewLog, options: any = {}): Promise => { const localVarPath = `/api/view-log/`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(viewLog, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this bookmarklet import. * @param {*} [options] Override http request option. * @throws {RequiredError} */ destroyBookmarkletImport: async (id: string, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('destroyBookmarkletImport', 'id', id) const localVarPath = `/api/bookmarklet-import/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this cook log. * @param {*} [options] Override http request option. * @throws {RequiredError} */ destroyCookLog: async (id: string, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('destroyCookLog', 'id', id) const localVarPath = `/api/cook-log/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this food. * @param {*} [options] Override http request option. * @throws {RequiredError} */ destroyFood: async (id: string, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('destroyFood', 'id', id) const localVarPath = `/api/food/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this import log. * @param {*} [options] Override http request option. * @throws {RequiredError} */ destroyImportLog: async (id: string, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('destroyImportLog', 'id', id) const localVarPath = `/api/import-log/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this ingredient. * @param {*} [options] Override http request option. * @throws {RequiredError} */ destroyIngredient: async (id: string, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('destroyIngredient', 'id', id) const localVarPath = `/api/ingredient/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this keyword. * @param {*} [options] Override http request option. * @throws {RequiredError} */ destroyKeyword: async (id: string, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('destroyKeyword', 'id', id) const localVarPath = `/api/keyword/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this meal plan. * @param {*} [options] Override http request option. * @throws {RequiredError} */ destroyMealPlan: async (id: string, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('destroyMealPlan', 'id', id) const localVarPath = `/api/meal-plan/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * returns list of meal types created by the requesting user ordered by the order field. * @param {string} id A unique integer value identifying this meal type. * @param {*} [options] Override http request option. * @throws {RequiredError} */ destroyMealType: async (id: string, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('destroyMealType', 'id', id) const localVarPath = `/api/meal-type/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this recipe. * @param {*} [options] Override http request option. * @throws {RequiredError} */ destroyRecipe: async (id: string, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('destroyRecipe', 'id', id) const localVarPath = `/api/recipe/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this recipe book. * @param {*} [options] Override http request option. * @throws {RequiredError} */ destroyRecipeBook: async (id: string, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('destroyRecipeBook', 'id', id) const localVarPath = `/api/recipe-book/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this recipe book entry. * @param {*} [options] Override http request option. * @throws {RequiredError} */ destroyRecipeBookEntry: async (id: string, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('destroyRecipeBookEntry', 'id', id) const localVarPath = `/api/recipe-book-entry/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this shopping list. * @param {*} [options] Override http request option. * @throws {RequiredError} */ destroyShoppingList: async (id: string, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('destroyShoppingList', 'id', id) const localVarPath = `/api/shopping-list/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this shopping list entry. * @param {*} [options] Override http request option. * @throws {RequiredError} */ destroyShoppingListEntry: async (id: string, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('destroyShoppingListEntry', 'id', id) const localVarPath = `/api/shopping-list-entry/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this shopping list recipe. * @param {*} [options] Override http request option. * @throws {RequiredError} */ destroyShoppingListRecipe: async (id: string, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('destroyShoppingListRecipe', 'id', id) const localVarPath = `/api/shopping-list-recipe/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this step. * @param {*} [options] Override http request option. * @throws {RequiredError} */ destroyStep: async (id: string, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('destroyStep', 'id', id) const localVarPath = `/api/step/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this storage. * @param {*} [options] Override http request option. * @throws {RequiredError} */ destroyStorage: async (id: string, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('destroyStorage', 'id', id) const localVarPath = `/api/storage/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this supermarket. * @param {*} [options] Override http request option. * @throws {RequiredError} */ destroySupermarket: async (id: string, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('destroySupermarket', 'id', id) const localVarPath = `/api/supermarket/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this supermarket category. * @param {*} [options] Override http request option. * @throws {RequiredError} */ destroySupermarketCategory: async (id: string, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('destroySupermarketCategory', 'id', id) const localVarPath = `/api/supermarket-category/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this supermarket category relation. * @param {*} [options] Override http request option. * @throws {RequiredError} */ destroySupermarketCategoryRelation: async (id: string, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('destroySupermarketCategoryRelation', 'id', id) const localVarPath = `/api/supermarket-category-relation/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this sync. * @param {*} [options] Override http request option. * @throws {RequiredError} */ destroySync: async (id: string, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('destroySync', 'id', id) const localVarPath = `/api/sync/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this unit. * @param {*} [options] Override http request option. * @throws {RequiredError} */ destroyUnit: async (id: string, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('destroyUnit', 'id', id) const localVarPath = `/api/unit/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this user file. * @param {*} [options] Override http request option. * @throws {RequiredError} */ destroyUserFile: async (id: string, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('destroyUserFile', 'id', id) const localVarPath = `/api/user-file/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} user A unique value identifying this user preference. * @param {*} [options] Override http request option. * @throws {RequiredError} */ destroyUserPreference: async (user: string, options: any = {}): Promise => { // verify required parameter 'user' is not null or undefined assertParamExists('destroyUserPreference', 'user', user) const localVarPath = `/api/user-preference/{user}/` .replace(`{${"user"}}`, encodeURIComponent(String(user))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this view log. * @param {*} [options] Override http request option. * @throws {RequiredError} */ destroyViewLog: async (id: string, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('destroyViewLog', 'id', id) const localVarPath = `/api/view-log/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this recipe. * @param {any} [image] * @param {*} [options] Override http request option. * @throws {RequiredError} */ imageRecipe: async (id: string, image?: any, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('imageRecipe', 'id', id) const localVarPath = `/api/recipe/{id}/image/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)(); if (image !== undefined) { localVarFormParams.append('image', image as any); } localVarHeaderParameter['Content-Type'] = 'multipart/form-data'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = localVarFormParams; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ listBookmarkletImports: async (options: any = {}): Promise => { const localVarPath = `/api/bookmarklet-import/`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {number} [page] A page number within the paginated result set. * @param {number} [pageSize] Number of results to return per page. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listCookLogs: async (page?: number, pageSize?: number, options: any = {}): Promise => { const localVarPath = `/api/cook-log/`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (page !== undefined) { localVarQueryParameter['page'] = page; } if (pageSize !== undefined) { localVarQueryParameter['page_size'] = pageSize; } setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} [query] Query string matched against food name. * @param {number} [root] Return first level children of food with ID [int]. Integer 0 will return root foods. * @param {number} [tree] Return all self and children of food with ID [int]. * @param {number} [page] A page number within the paginated result set. * @param {number} [pageSize] Number of results to return per page. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listFoods: async (query?: string, root?: number, tree?: number, page?: number, pageSize?: number, options: any = {}): Promise => { const localVarPath = `/api/food/`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (query !== undefined) { localVarQueryParameter['query'] = query; } if (root !== undefined) { localVarQueryParameter['root'] = root; } if (tree !== undefined) { localVarQueryParameter['tree'] = tree; } if (page !== undefined) { localVarQueryParameter['page'] = page; } if (pageSize !== undefined) { localVarQueryParameter['page_size'] = pageSize; } setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {number} [page] A page number within the paginated result set. * @param {number} [pageSize] Number of results to return per page. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listImportLogs: async (page?: number, pageSize?: number, options: any = {}): Promise => { const localVarPath = `/api/import-log/`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (page !== undefined) { localVarQueryParameter['page'] = page; } if (pageSize !== undefined) { localVarQueryParameter['page_size'] = pageSize; } setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ listIngredients: async (options: any = {}): Promise => { const localVarPath = `/api/ingredient/`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} [query] Query string matched against keyword name. * @param {number} [root] Return first level children of keyword with ID [int]. Integer 0 will return root keywords. * @param {number} [tree] Return all self and children of keyword with ID [int]. * @param {number} [page] A page number within the paginated result set. * @param {number} [pageSize] Number of results to return per page. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listKeywords: async (query?: string, root?: number, tree?: number, page?: number, pageSize?: number, options: any = {}): Promise => { const localVarPath = `/api/keyword/`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (query !== undefined) { localVarQueryParameter['query'] = query; } if (root !== undefined) { localVarQueryParameter['root'] = root; } if (tree !== undefined) { localVarQueryParameter['tree'] = tree; } if (page !== undefined) { localVarQueryParameter['page'] = page; } if (pageSize !== undefined) { localVarQueryParameter['page_size'] = pageSize; } setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * optional parameters - **from_date**: filter from (inclusive) a certain date onward - **to_date**: filter upward to (inclusive) certain date * @param {*} [options] Override http request option. * @throws {RequiredError} */ listMealPlans: async (options: any = {}): Promise => { const localVarPath = `/api/meal-plan/`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * returns list of meal types created by the requesting user ordered by the order field. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listMealTypes: async (options: any = {}): Promise => { const localVarPath = `/api/meal-type/`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * optional parameters - **recipe**: id of recipe - only return books for that recipe - **book**: id of book - only return recipes in that book * @param {*} [options] Override http request option. * @throws {RequiredError} */ listRecipeBookEntrys: async (options: any = {}): Promise => { const localVarPath = `/api/recipe-book-entry/`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ listRecipeBooks: async (options: any = {}): Promise => { const localVarPath = `/api/recipe-book/`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} [query] Query string matched (fuzzy) against recipe name. In the future also fulltext search. * @param {string} [keywords] Id of keyword a recipe should have. For multiple repeat parameter. * @param {string} [foods] Id of food a recipe should have. For multiple repeat parameter. * @param {number} [units] Id of unit a recipe should have. * @param {number} [rating] Id of unit a recipe should have. * @param {string} [books] Id of book a recipe should have. For multiple repeat parameter. * @param {string} [keywordsOr] If recipe should have all (AND) or any (OR) of the provided keywords. * @param {string} [foodsOr] If recipe should have all (AND) or any (OR) any of the provided foods. * @param {string} [booksOr] If recipe should be in all (AND) or any (OR) any of the provided books. * @param {string} [internal] true or false. If only internal recipes should be returned or not. * @param {string} [random] true or false. returns the results in randomized order. * @param {string} [_new] true or false. returns new results first in search results * @param {number} [page] A page number within the paginated result set. * @param {number} [pageSize] Number of results to return per page. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listRecipes: async (query?: string, keywords?: string, foods?: string, units?: number, rating?: number, books?: string, keywordsOr?: string, foodsOr?: string, booksOr?: string, internal?: string, random?: string, _new?: string, page?: number, pageSize?: number, options: any = {}): Promise => { const localVarPath = `/api/recipe/`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (query !== undefined) { localVarQueryParameter['query'] = query; } if (keywords !== undefined) { localVarQueryParameter['keywords'] = keywords; } if (foods !== undefined) { localVarQueryParameter['foods'] = foods; } if (units !== undefined) { localVarQueryParameter['units'] = units; } if (rating !== undefined) { localVarQueryParameter['rating'] = rating; } if (books !== undefined) { localVarQueryParameter['books'] = books; } if (keywordsOr !== undefined) { localVarQueryParameter['keywords_or'] = keywordsOr; } if (foodsOr !== undefined) { localVarQueryParameter['foods_or'] = foodsOr; } if (booksOr !== undefined) { localVarQueryParameter['books_or'] = booksOr; } if (internal !== undefined) { localVarQueryParameter['internal'] = internal; } if (random !== undefined) { localVarQueryParameter['random'] = random; } if (_new !== undefined) { localVarQueryParameter['new'] = _new; } if (page !== undefined) { localVarQueryParameter['page'] = page; } if (pageSize !== undefined) { localVarQueryParameter['page_size'] = pageSize; } setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ listShoppingListEntrys: async (options: any = {}): Promise => { const localVarPath = `/api/shopping-list-entry/`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ listShoppingListRecipes: async (options: any = {}): Promise => { const localVarPath = `/api/shopping-list-recipe/`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ listShoppingLists: async (options: any = {}): Promise => { const localVarPath = `/api/shopping-list/`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ listSteps: async (options: any = {}): Promise => { const localVarPath = `/api/step/`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ listStorages: async (options: any = {}): Promise => { const localVarPath = `/api/storage/`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {number} [page] A page number within the paginated result set. * @param {number} [pageSize] Number of results to return per page. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listSupermarketCategoryRelations: async (page?: number, pageSize?: number, options: any = {}): Promise => { const localVarPath = `/api/supermarket-category-relation/`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (page !== undefined) { localVarQueryParameter['page'] = page; } if (pageSize !== undefined) { localVarQueryParameter['page_size'] = pageSize; } setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ listSupermarketCategorys: async (options: any = {}): Promise => { const localVarPath = `/api/supermarket-category/`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ listSupermarkets: async (options: any = {}): Promise => { const localVarPath = `/api/supermarket/`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {number} [page] A page number within the paginated result set. * @param {number} [pageSize] Number of results to return per page. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listSyncLogs: async (page?: number, pageSize?: number, options: any = {}): Promise => { const localVarPath = `/api/sync-log/`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (page !== undefined) { localVarQueryParameter['page'] = page; } if (pageSize !== undefined) { localVarQueryParameter['page_size'] = pageSize; } setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ listSyncs: async (options: any = {}): Promise => { const localVarPath = `/api/sync/`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} [query] Query string matched against unit name. * @param {number} [page] A page number within the paginated result set. * @param {number} [pageSize] Number of results to return per page. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listUnits: async (query?: string, page?: number, pageSize?: number, options: any = {}): Promise => { const localVarPath = `/api/unit/`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (query !== undefined) { localVarQueryParameter['query'] = query; } if (page !== undefined) { localVarQueryParameter['page'] = page; } if (pageSize !== undefined) { localVarQueryParameter['page_size'] = pageSize; } setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ listUserFiles: async (options: any = {}): Promise => { const localVarPath = `/api/user-file/`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ listUserPreferences: async (options: any = {}): Promise => { const localVarPath = `/api/user-preference/`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * optional parameters - **filter_list**: array of user id\'s to get names for * @param {*} [options] Override http request option. * @throws {RequiredError} */ listUsers: async (options: any = {}): Promise => { const localVarPath = `/api/user-name/`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {number} [page] A page number within the paginated result set. * @param {number} [pageSize] Number of results to return per page. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listViewLogs: async (page?: number, pageSize?: number, options: any = {}): Promise => { const localVarPath = `/api/view-log/`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; if (page !== undefined) { localVarQueryParameter['page'] = page; } if (pageSize !== undefined) { localVarQueryParameter['page_size'] = pageSize; } setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this food. * @param {string} target * @param {Food} [food] * @param {*} [options] Override http request option. * @throws {RequiredError} */ mergeFood: async (id: string, target: string, food?: Food, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('mergeFood', 'id', id) // verify required parameter 'target' is not null or undefined assertParamExists('mergeFood', 'target', target) const localVarPath = `/api/food/{id}/merge/{target}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))) .replace(`{${"target"}}`, encodeURIComponent(String(target))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(food, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this keyword. * @param {string} target * @param {Keyword} [keyword] * @param {*} [options] Override http request option. * @throws {RequiredError} */ mergeKeyword: async (id: string, target: string, keyword?: Keyword, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('mergeKeyword', 'id', id) // verify required parameter 'target' is not null or undefined assertParamExists('mergeKeyword', 'target', target) const localVarPath = `/api/keyword/{id}/merge/{target}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))) .replace(`{${"target"}}`, encodeURIComponent(String(target))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(keyword, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this unit. * @param {string} target * @param {Unit} [unit] * @param {*} [options] Override http request option. * @throws {RequiredError} */ mergeUnit: async (id: string, target: string, unit?: Unit, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('mergeUnit', 'id', id) // verify required parameter 'target' is not null or undefined assertParamExists('mergeUnit', 'target', target) const localVarPath = `/api/unit/{id}/merge/{target}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))) .replace(`{${"target"}}`, encodeURIComponent(String(target))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(unit, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this food. * @param {string} parent * @param {Food} [food] * @param {*} [options] Override http request option. * @throws {RequiredError} */ moveFood: async (id: string, parent: string, food?: Food, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('moveFood', 'id', id) // verify required parameter 'parent' is not null or undefined assertParamExists('moveFood', 'parent', parent) const localVarPath = `/api/food/{id}/move/{parent}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))) .replace(`{${"parent"}}`, encodeURIComponent(String(parent))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(food, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this keyword. * @param {string} parent * @param {Keyword} [keyword] * @param {*} [options] Override http request option. * @throws {RequiredError} */ moveKeyword: async (id: string, parent: string, keyword?: Keyword, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('moveKeyword', 'id', id) // verify required parameter 'parent' is not null or undefined assertParamExists('moveKeyword', 'parent', parent) const localVarPath = `/api/keyword/{id}/move/{parent}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))) .replace(`{${"parent"}}`, encodeURIComponent(String(parent))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(keyword, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this bookmarklet import. * @param {BookmarkletImport} [bookmarkletImport] * @param {*} [options] Override http request option. * @throws {RequiredError} */ partialUpdateBookmarkletImport: async (id: string, bookmarkletImport?: BookmarkletImport, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('partialUpdateBookmarkletImport', 'id', id) const localVarPath = `/api/bookmarklet-import/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(bookmarkletImport, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this cook log. * @param {CookLog} [cookLog] * @param {*} [options] Override http request option. * @throws {RequiredError} */ partialUpdateCookLog: async (id: string, cookLog?: CookLog, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('partialUpdateCookLog', 'id', id) const localVarPath = `/api/cook-log/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(cookLog, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this food. * @param {Food} [food] * @param {*} [options] Override http request option. * @throws {RequiredError} */ partialUpdateFood: async (id: string, food?: Food, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('partialUpdateFood', 'id', id) const localVarPath = `/api/food/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(food, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this import log. * @param {ImportLog} [importLog] * @param {*} [options] Override http request option. * @throws {RequiredError} */ partialUpdateImportLog: async (id: string, importLog?: ImportLog, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('partialUpdateImportLog', 'id', id) const localVarPath = `/api/import-log/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(importLog, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this ingredient. * @param {Ingredient} [ingredient] * @param {*} [options] Override http request option. * @throws {RequiredError} */ partialUpdateIngredient: async (id: string, ingredient?: Ingredient, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('partialUpdateIngredient', 'id', id) const localVarPath = `/api/ingredient/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(ingredient, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this keyword. * @param {Keyword} [keyword] * @param {*} [options] Override http request option. * @throws {RequiredError} */ partialUpdateKeyword: async (id: string, keyword?: Keyword, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('partialUpdateKeyword', 'id', id) const localVarPath = `/api/keyword/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(keyword, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this meal plan. * @param {MealPlan} [mealPlan] * @param {*} [options] Override http request option. * @throws {RequiredError} */ partialUpdateMealPlan: async (id: string, mealPlan?: MealPlan, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('partialUpdateMealPlan', 'id', id) const localVarPath = `/api/meal-plan/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(mealPlan, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * returns list of meal types created by the requesting user ordered by the order field. * @param {string} id A unique integer value identifying this meal type. * @param {MealType} [mealType] * @param {*} [options] Override http request option. * @throws {RequiredError} */ partialUpdateMealType: async (id: string, mealType?: MealType, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('partialUpdateMealType', 'id', id) const localVarPath = `/api/meal-type/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(mealType, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this recipe. * @param {Recipe} [recipe] * @param {*} [options] Override http request option. * @throws {RequiredError} */ partialUpdateRecipe: async (id: string, recipe?: Recipe, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('partialUpdateRecipe', 'id', id) const localVarPath = `/api/recipe/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(recipe, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this recipe book. * @param {RecipeBook} [recipeBook] * @param {*} [options] Override http request option. * @throws {RequiredError} */ partialUpdateRecipeBook: async (id: string, recipeBook?: RecipeBook, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('partialUpdateRecipeBook', 'id', id) const localVarPath = `/api/recipe-book/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(recipeBook, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this recipe book entry. * @param {RecipeBookEntry} [recipeBookEntry] * @param {*} [options] Override http request option. * @throws {RequiredError} */ partialUpdateRecipeBookEntry: async (id: string, recipeBookEntry?: RecipeBookEntry, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('partialUpdateRecipeBookEntry', 'id', id) const localVarPath = `/api/recipe-book-entry/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(recipeBookEntry, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this shopping list. * @param {ShoppingList} [shoppingList] * @param {*} [options] Override http request option. * @throws {RequiredError} */ partialUpdateShoppingList: async (id: string, shoppingList?: ShoppingList, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('partialUpdateShoppingList', 'id', id) const localVarPath = `/api/shopping-list/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(shoppingList, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this shopping list entry. * @param {ShoppingListEntry} [shoppingListEntry] * @param {*} [options] Override http request option. * @throws {RequiredError} */ partialUpdateShoppingListEntry: async (id: string, shoppingListEntry?: ShoppingListEntry, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('partialUpdateShoppingListEntry', 'id', id) const localVarPath = `/api/shopping-list-entry/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(shoppingListEntry, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this shopping list recipe. * @param {ShoppingListRecipe} [shoppingListRecipe] * @param {*} [options] Override http request option. * @throws {RequiredError} */ partialUpdateShoppingListRecipe: async (id: string, shoppingListRecipe?: ShoppingListRecipe, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('partialUpdateShoppingListRecipe', 'id', id) const localVarPath = `/api/shopping-list-recipe/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(shoppingListRecipe, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this step. * @param {Step} [step] * @param {*} [options] Override http request option. * @throws {RequiredError} */ partialUpdateStep: async (id: string, step?: Step, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('partialUpdateStep', 'id', id) const localVarPath = `/api/step/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(step, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this storage. * @param {Storage} [storage] * @param {*} [options] Override http request option. * @throws {RequiredError} */ partialUpdateStorage: async (id: string, storage?: Storage, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('partialUpdateStorage', 'id', id) const localVarPath = `/api/storage/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(storage, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this supermarket. * @param {Supermarket} [supermarket] * @param {*} [options] Override http request option. * @throws {RequiredError} */ partialUpdateSupermarket: async (id: string, supermarket?: Supermarket, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('partialUpdateSupermarket', 'id', id) const localVarPath = `/api/supermarket/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(supermarket, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this supermarket category. * @param {SupermarketCategory} [supermarketCategory] * @param {*} [options] Override http request option. * @throws {RequiredError} */ partialUpdateSupermarketCategory: async (id: string, supermarketCategory?: SupermarketCategory, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('partialUpdateSupermarketCategory', 'id', id) const localVarPath = `/api/supermarket-category/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(supermarketCategory, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this supermarket category relation. * @param {SupermarketCategoryRelation} [supermarketCategoryRelation] * @param {*} [options] Override http request option. * @throws {RequiredError} */ partialUpdateSupermarketCategoryRelation: async (id: string, supermarketCategoryRelation?: SupermarketCategoryRelation, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('partialUpdateSupermarketCategoryRelation', 'id', id) const localVarPath = `/api/supermarket-category-relation/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(supermarketCategoryRelation, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this sync. * @param {Sync} [sync] * @param {*} [options] Override http request option. * @throws {RequiredError} */ partialUpdateSync: async (id: string, sync?: Sync, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('partialUpdateSync', 'id', id) const localVarPath = `/api/sync/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(sync, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this unit. * @param {Unit} [unit] * @param {*} [options] Override http request option. * @throws {RequiredError} */ partialUpdateUnit: async (id: string, unit?: Unit, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('partialUpdateUnit', 'id', id) const localVarPath = `/api/unit/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(unit, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this user file. * @param {string} name * @param {any} [file] * @param {number} [fileSizeKb] * @param {number} [id2] * @param {*} [options] Override http request option. * @throws {RequiredError} */ partialUpdateUserFile: async (id: string, name: string, file?: any, fileSizeKb?: number, id2?: number, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('partialUpdateUserFile', 'id', id) // verify required parameter 'name' is not null or undefined assertParamExists('partialUpdateUserFile', 'name', name) const localVarPath = `/api/user-file/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)(); if (name !== undefined) { localVarFormParams.append('name', name as any); } if (file !== undefined) { localVarFormParams.append('file', file as any); } if (fileSizeKb !== undefined) { localVarFormParams.append('file_size_kb', fileSizeKb as any); } if (id2 !== undefined) { localVarFormParams.append('id', id2 as any); } localVarHeaderParameter['Content-Type'] = 'multipart/form-data'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = localVarFormParams; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} user A unique value identifying this user preference. * @param {UserPreference} [userPreference] * @param {*} [options] Override http request option. * @throws {RequiredError} */ partialUpdateUserPreference: async (user: string, userPreference?: UserPreference, options: any = {}): Promise => { // verify required parameter 'user' is not null or undefined assertParamExists('partialUpdateUserPreference', 'user', user) const localVarPath = `/api/user-preference/{user}/` .replace(`{${"user"}}`, encodeURIComponent(String(user))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(userPreference, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this view log. * @param {ViewLog} [viewLog] * @param {*} [options] Override http request option. * @throws {RequiredError} */ partialUpdateViewLog: async (id: string, viewLog?: ViewLog, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('partialUpdateViewLog', 'id', id) const localVarPath = `/api/view-log/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(viewLog, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this bookmarklet import. * @param {*} [options] Override http request option. * @throws {RequiredError} */ retrieveBookmarkletImport: async (id: string, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('retrieveBookmarkletImport', 'id', id) const localVarPath = `/api/bookmarklet-import/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this cook log. * @param {*} [options] Override http request option. * @throws {RequiredError} */ retrieveCookLog: async (id: string, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('retrieveCookLog', 'id', id) const localVarPath = `/api/cook-log/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this food. * @param {*} [options] Override http request option. * @throws {RequiredError} */ retrieveFood: async (id: string, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('retrieveFood', 'id', id) const localVarPath = `/api/food/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this import log. * @param {*} [options] Override http request option. * @throws {RequiredError} */ retrieveImportLog: async (id: string, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('retrieveImportLog', 'id', id) const localVarPath = `/api/import-log/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this ingredient. * @param {*} [options] Override http request option. * @throws {RequiredError} */ retrieveIngredient: async (id: string, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('retrieveIngredient', 'id', id) const localVarPath = `/api/ingredient/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this keyword. * @param {*} [options] Override http request option. * @throws {RequiredError} */ retrieveKeyword: async (id: string, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('retrieveKeyword', 'id', id) const localVarPath = `/api/keyword/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this meal plan. * @param {*} [options] Override http request option. * @throws {RequiredError} */ retrieveMealPlan: async (id: string, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('retrieveMealPlan', 'id', id) const localVarPath = `/api/meal-plan/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * returns list of meal types created by the requesting user ordered by the order field. * @param {string} id A unique integer value identifying this meal type. * @param {*} [options] Override http request option. * @throws {RequiredError} */ retrieveMealType: async (id: string, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('retrieveMealType', 'id', id) const localVarPath = `/api/meal-type/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this recipe. * @param {*} [options] Override http request option. * @throws {RequiredError} */ retrieveRecipe: async (id: string, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('retrieveRecipe', 'id', id) const localVarPath = `/api/recipe/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this recipe book. * @param {*} [options] Override http request option. * @throws {RequiredError} */ retrieveRecipeBook: async (id: string, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('retrieveRecipeBook', 'id', id) const localVarPath = `/api/recipe-book/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this recipe book entry. * @param {*} [options] Override http request option. * @throws {RequiredError} */ retrieveRecipeBookEntry: async (id: string, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('retrieveRecipeBookEntry', 'id', id) const localVarPath = `/api/recipe-book-entry/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this shopping list. * @param {*} [options] Override http request option. * @throws {RequiredError} */ retrieveShoppingList: async (id: string, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('retrieveShoppingList', 'id', id) const localVarPath = `/api/shopping-list/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this shopping list entry. * @param {*} [options] Override http request option. * @throws {RequiredError} */ retrieveShoppingListEntry: async (id: string, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('retrieveShoppingListEntry', 'id', id) const localVarPath = `/api/shopping-list-entry/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this shopping list recipe. * @param {*} [options] Override http request option. * @throws {RequiredError} */ retrieveShoppingListRecipe: async (id: string, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('retrieveShoppingListRecipe', 'id', id) const localVarPath = `/api/shopping-list-recipe/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this step. * @param {*} [options] Override http request option. * @throws {RequiredError} */ retrieveStep: async (id: string, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('retrieveStep', 'id', id) const localVarPath = `/api/step/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this storage. * @param {*} [options] Override http request option. * @throws {RequiredError} */ retrieveStorage: async (id: string, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('retrieveStorage', 'id', id) const localVarPath = `/api/storage/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this supermarket. * @param {*} [options] Override http request option. * @throws {RequiredError} */ retrieveSupermarket: async (id: string, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('retrieveSupermarket', 'id', id) const localVarPath = `/api/supermarket/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this supermarket category. * @param {*} [options] Override http request option. * @throws {RequiredError} */ retrieveSupermarketCategory: async (id: string, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('retrieveSupermarketCategory', 'id', id) const localVarPath = `/api/supermarket-category/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this supermarket category relation. * @param {*} [options] Override http request option. * @throws {RequiredError} */ retrieveSupermarketCategoryRelation: async (id: string, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('retrieveSupermarketCategoryRelation', 'id', id) const localVarPath = `/api/supermarket-category-relation/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this sync. * @param {*} [options] Override http request option. * @throws {RequiredError} */ retrieveSync: async (id: string, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('retrieveSync', 'id', id) const localVarPath = `/api/sync/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this sync log. * @param {*} [options] Override http request option. * @throws {RequiredError} */ retrieveSyncLog: async (id: string, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('retrieveSyncLog', 'id', id) const localVarPath = `/api/sync-log/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this unit. * @param {*} [options] Override http request option. * @throws {RequiredError} */ retrieveUnit: async (id: string, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('retrieveUnit', 'id', id) const localVarPath = `/api/unit/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this user. * @param {*} [options] Override http request option. * @throws {RequiredError} */ retrieveUser: async (id: string, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('retrieveUser', 'id', id) const localVarPath = `/api/user-name/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this user file. * @param {*} [options] Override http request option. * @throws {RequiredError} */ retrieveUserFile: async (id: string, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('retrieveUserFile', 'id', id) const localVarPath = `/api/user-file/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} user A unique value identifying this user preference. * @param {*} [options] Override http request option. * @throws {RequiredError} */ retrieveUserPreference: async (user: string, options: any = {}): Promise => { // verify required parameter 'user' is not null or undefined assertParamExists('retrieveUserPreference', 'user', user) const localVarPath = `/api/user-preference/{user}/` .replace(`{${"user"}}`, encodeURIComponent(String(user))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this view log. * @param {*} [options] Override http request option. * @throws {RequiredError} */ retrieveViewLog: async (id: string, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('retrieveViewLog', 'id', id) const localVarPath = `/api/view-log/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this bookmarklet import. * @param {BookmarkletImport} [bookmarkletImport] * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateBookmarkletImport: async (id: string, bookmarkletImport?: BookmarkletImport, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('updateBookmarkletImport', 'id', id) const localVarPath = `/api/bookmarklet-import/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(bookmarkletImport, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this cook log. * @param {CookLog} [cookLog] * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateCookLog: async (id: string, cookLog?: CookLog, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('updateCookLog', 'id', id) const localVarPath = `/api/cook-log/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(cookLog, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this food. * @param {Food} [food] * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateFood: async (id: string, food?: Food, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('updateFood', 'id', id) const localVarPath = `/api/food/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(food, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this import log. * @param {ImportLog} [importLog] * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateImportLog: async (id: string, importLog?: ImportLog, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('updateImportLog', 'id', id) const localVarPath = `/api/import-log/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(importLog, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this ingredient. * @param {Ingredient} [ingredient] * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateIngredient: async (id: string, ingredient?: Ingredient, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('updateIngredient', 'id', id) const localVarPath = `/api/ingredient/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(ingredient, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this keyword. * @param {Keyword} [keyword] * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateKeyword: async (id: string, keyword?: Keyword, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('updateKeyword', 'id', id) const localVarPath = `/api/keyword/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(keyword, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this meal plan. * @param {MealPlan} [mealPlan] * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateMealPlan: async (id: string, mealPlan?: MealPlan, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('updateMealPlan', 'id', id) const localVarPath = `/api/meal-plan/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(mealPlan, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * returns list of meal types created by the requesting user ordered by the order field. * @param {string} id A unique integer value identifying this meal type. * @param {MealType} [mealType] * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateMealType: async (id: string, mealType?: MealType, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('updateMealType', 'id', id) const localVarPath = `/api/meal-type/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(mealType, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this recipe. * @param {Recipe} [recipe] * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateRecipe: async (id: string, recipe?: Recipe, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('updateRecipe', 'id', id) const localVarPath = `/api/recipe/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(recipe, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this recipe book. * @param {RecipeBook} [recipeBook] * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateRecipeBook: async (id: string, recipeBook?: RecipeBook, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('updateRecipeBook', 'id', id) const localVarPath = `/api/recipe-book/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(recipeBook, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this recipe book entry. * @param {RecipeBookEntry} [recipeBookEntry] * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateRecipeBookEntry: async (id: string, recipeBookEntry?: RecipeBookEntry, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('updateRecipeBookEntry', 'id', id) const localVarPath = `/api/recipe-book-entry/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(recipeBookEntry, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this shopping list. * @param {ShoppingList} [shoppingList] * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateShoppingList: async (id: string, shoppingList?: ShoppingList, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('updateShoppingList', 'id', id) const localVarPath = `/api/shopping-list/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(shoppingList, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this shopping list entry. * @param {ShoppingListEntry} [shoppingListEntry] * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateShoppingListEntry: async (id: string, shoppingListEntry?: ShoppingListEntry, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('updateShoppingListEntry', 'id', id) const localVarPath = `/api/shopping-list-entry/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(shoppingListEntry, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this shopping list recipe. * @param {ShoppingListRecipe} [shoppingListRecipe] * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateShoppingListRecipe: async (id: string, shoppingListRecipe?: ShoppingListRecipe, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('updateShoppingListRecipe', 'id', id) const localVarPath = `/api/shopping-list-recipe/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(shoppingListRecipe, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this step. * @param {Step} [step] * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateStep: async (id: string, step?: Step, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('updateStep', 'id', id) const localVarPath = `/api/step/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(step, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this storage. * @param {Storage} [storage] * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateStorage: async (id: string, storage?: Storage, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('updateStorage', 'id', id) const localVarPath = `/api/storage/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(storage, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this supermarket. * @param {Supermarket} [supermarket] * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateSupermarket: async (id: string, supermarket?: Supermarket, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('updateSupermarket', 'id', id) const localVarPath = `/api/supermarket/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(supermarket, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this supermarket category. * @param {SupermarketCategory} [supermarketCategory] * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateSupermarketCategory: async (id: string, supermarketCategory?: SupermarketCategory, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('updateSupermarketCategory', 'id', id) const localVarPath = `/api/supermarket-category/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(supermarketCategory, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this supermarket category relation. * @param {SupermarketCategoryRelation} [supermarketCategoryRelation] * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateSupermarketCategoryRelation: async (id: string, supermarketCategoryRelation?: SupermarketCategoryRelation, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('updateSupermarketCategoryRelation', 'id', id) const localVarPath = `/api/supermarket-category-relation/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(supermarketCategoryRelation, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this sync. * @param {Sync} [sync] * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateSync: async (id: string, sync?: Sync, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('updateSync', 'id', id) const localVarPath = `/api/sync/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(sync, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this unit. * @param {Unit} [unit] * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateUnit: async (id: string, unit?: Unit, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('updateUnit', 'id', id) const localVarPath = `/api/unit/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(unit, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this user file. * @param {string} name * @param {any} [file] * @param {number} [fileSizeKb] * @param {number} [id2] * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateUserFile: async (id: string, name: string, file?: any, fileSizeKb?: number, id2?: number, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('updateUserFile', 'id', id) // verify required parameter 'name' is not null or undefined assertParamExists('updateUserFile', 'name', name) const localVarPath = `/api/user-file/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)(); if (name !== undefined) { localVarFormParams.append('name', name as any); } if (file !== undefined) { localVarFormParams.append('file', file as any); } if (fileSizeKb !== undefined) { localVarFormParams.append('file_size_kb', fileSizeKb as any); } if (id2 !== undefined) { localVarFormParams.append('id', id2 as any); } localVarHeaderParameter['Content-Type'] = 'multipart/form-data'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = localVarFormParams; return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} user A unique value identifying this user preference. * @param {UserPreference} [userPreference] * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateUserPreference: async (user: string, userPreference?: UserPreference, options: any = {}): Promise => { // verify required parameter 'user' is not null or undefined assertParamExists('updateUserPreference', 'user', user) const localVarPath = `/api/user-preference/{user}/` .replace(`{${"user"}}`, encodeURIComponent(String(user))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(userPreference, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this view log. * @param {ViewLog} [viewLog] * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateViewLog: async (id: string, viewLog?: ViewLog, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('updateViewLog', 'id', id) const localVarPath = `/api/view-log/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; if (configuration) { baseOptions = configuration.baseOptions; } const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; localVarRequestOptions.data = serializeDataIfNeeded(viewLog, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, } }; /** * ApiApi - functional programming interface * @export */ export const ApiApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = ApiApiAxiosParamCreator(configuration) return { /** * * @param {BookmarkletImport} [bookmarkletImport] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createBookmarkletImport(bookmarkletImport?: BookmarkletImport, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createBookmarkletImport(bookmarkletImport, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {CookLog} [cookLog] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createCookLog(cookLog?: CookLog, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createCookLog(cookLog, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {Food} [food] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createFood(food?: Food, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createFood(food, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {ImportLog} [importLog] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createImportLog(importLog?: ImportLog, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createImportLog(importLog, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {Ingredient} [ingredient] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createIngredient(ingredient?: Ingredient, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createIngredient(ingredient, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {Keyword} [keyword] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createKeyword(keyword?: Keyword, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createKeyword(keyword, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {MealPlan} [mealPlan] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createMealPlan(mealPlan?: MealPlan, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createMealPlan(mealPlan, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * returns list of meal types created by the requesting user ordered by the order field. * @param {MealType} [mealType] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createMealType(mealType?: MealType, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createMealType(mealType, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {Recipe} [recipe] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createRecipe(recipe?: Recipe, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createRecipe(recipe, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {RecipeBook} [recipeBook] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createRecipeBook(recipeBook?: RecipeBook, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createRecipeBook(recipeBook, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {RecipeBookEntry} [recipeBookEntry] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createRecipeBookEntry(recipeBookEntry?: RecipeBookEntry, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createRecipeBookEntry(recipeBookEntry, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {ShoppingList} [shoppingList] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createShoppingList(shoppingList?: ShoppingList, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createShoppingList(shoppingList, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {ShoppingListEntry} [shoppingListEntry] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createShoppingListEntry(shoppingListEntry?: ShoppingListEntry, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createShoppingListEntry(shoppingListEntry, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {ShoppingListRecipe} [shoppingListRecipe] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createShoppingListRecipe(shoppingListRecipe?: ShoppingListRecipe, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createShoppingListRecipe(shoppingListRecipe, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {Step} [step] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createStep(step?: Step, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createStep(step, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {Storage} [storage] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createStorage(storage?: Storage, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createStorage(storage, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {Supermarket} [supermarket] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createSupermarket(supermarket?: Supermarket, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createSupermarket(supermarket, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {SupermarketCategory} [supermarketCategory] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createSupermarketCategory(supermarketCategory?: SupermarketCategory, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createSupermarketCategory(supermarketCategory, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {SupermarketCategoryRelation} [supermarketCategoryRelation] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createSupermarketCategoryRelation(supermarketCategoryRelation?: SupermarketCategoryRelation, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createSupermarketCategoryRelation(supermarketCategoryRelation, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {Sync} [sync] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createSync(sync?: Sync, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createSync(sync, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {Unit} [unit] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createUnit(unit?: Unit, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createUnit(unit, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} name * @param {any} [file] * @param {number} [fileSizeKb] * @param {number} [id] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createUserFile(name: string, file?: any, fileSizeKb?: number, id?: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createUserFile(name, file, fileSizeKb, id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {UserPreference} [userPreference] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createUserPreference(userPreference?: UserPreference, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createUserPreference(userPreference, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {ViewLog} [viewLog] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createViewLog(viewLog?: ViewLog, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createViewLog(viewLog, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this bookmarklet import. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async destroyBookmarkletImport(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.destroyBookmarkletImport(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this cook log. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async destroyCookLog(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.destroyCookLog(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this food. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async destroyFood(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.destroyFood(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this import log. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async destroyImportLog(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.destroyImportLog(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this ingredient. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async destroyIngredient(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.destroyIngredient(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this keyword. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async destroyKeyword(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.destroyKeyword(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this meal plan. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async destroyMealPlan(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.destroyMealPlan(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * returns list of meal types created by the requesting user ordered by the order field. * @param {string} id A unique integer value identifying this meal type. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async destroyMealType(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.destroyMealType(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this recipe. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async destroyRecipe(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.destroyRecipe(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this recipe book. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async destroyRecipeBook(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.destroyRecipeBook(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this recipe book entry. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async destroyRecipeBookEntry(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.destroyRecipeBookEntry(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this shopping list. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async destroyShoppingList(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.destroyShoppingList(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this shopping list entry. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async destroyShoppingListEntry(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.destroyShoppingListEntry(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this shopping list recipe. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async destroyShoppingListRecipe(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.destroyShoppingListRecipe(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this step. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async destroyStep(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.destroyStep(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this storage. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async destroyStorage(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.destroyStorage(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this supermarket. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async destroySupermarket(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.destroySupermarket(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this supermarket category. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async destroySupermarketCategory(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.destroySupermarketCategory(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this supermarket category relation. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async destroySupermarketCategoryRelation(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.destroySupermarketCategoryRelation(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this sync. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async destroySync(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.destroySync(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this unit. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async destroyUnit(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.destroyUnit(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this user file. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async destroyUserFile(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.destroyUserFile(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} user A unique value identifying this user preference. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async destroyUserPreference(user: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.destroyUserPreference(user, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this view log. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async destroyViewLog(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.destroyViewLog(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this recipe. * @param {any} [image] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async imageRecipe(id: string, image?: any, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.imageRecipe(id, image, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ async listBookmarkletImports(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.listBookmarkletImports(options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {number} [page] A page number within the paginated result set. * @param {number} [pageSize] Number of results to return per page. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async listCookLogs(page?: number, pageSize?: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.listCookLogs(page, pageSize, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} [query] Query string matched against food name. * @param {number} [root] Return first level children of food with ID [int]. Integer 0 will return root foods. * @param {number} [tree] Return all self and children of food with ID [int]. * @param {number} [page] A page number within the paginated result set. * @param {number} [pageSize] Number of results to return per page. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async listFoods(query?: string, root?: number, tree?: number, page?: number, pageSize?: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.listFoods(query, root, tree, page, pageSize, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {number} [page] A page number within the paginated result set. * @param {number} [pageSize] Number of results to return per page. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async listImportLogs(page?: number, pageSize?: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.listImportLogs(page, pageSize, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ async listIngredients(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.listIngredients(options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} [query] Query string matched against keyword name. * @param {number} [root] Return first level children of keyword with ID [int]. Integer 0 will return root keywords. * @param {number} [tree] Return all self and children of keyword with ID [int]. * @param {number} [page] A page number within the paginated result set. * @param {number} [pageSize] Number of results to return per page. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async listKeywords(query?: string, root?: number, tree?: number, page?: number, pageSize?: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.listKeywords(query, root, tree, page, pageSize, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * optional parameters - **from_date**: filter from (inclusive) a certain date onward - **to_date**: filter upward to (inclusive) certain date * @param {*} [options] Override http request option. * @throws {RequiredError} */ async listMealPlans(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.listMealPlans(options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * returns list of meal types created by the requesting user ordered by the order field. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async listMealTypes(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.listMealTypes(options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * optional parameters - **recipe**: id of recipe - only return books for that recipe - **book**: id of book - only return recipes in that book * @param {*} [options] Override http request option. * @throws {RequiredError} */ async listRecipeBookEntrys(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.listRecipeBookEntrys(options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ async listRecipeBooks(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.listRecipeBooks(options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} [query] Query string matched (fuzzy) against recipe name. In the future also fulltext search. * @param {string} [keywords] Id of keyword a recipe should have. For multiple repeat parameter. * @param {string} [foods] Id of food a recipe should have. For multiple repeat parameter. * @param {number} [units] Id of unit a recipe should have. * @param {number} [rating] Id of unit a recipe should have. * @param {string} [books] Id of book a recipe should have. For multiple repeat parameter. * @param {string} [keywordsOr] If recipe should have all (AND) or any (OR) of the provided keywords. * @param {string} [foodsOr] If recipe should have all (AND) or any (OR) any of the provided foods. * @param {string} [booksOr] If recipe should be in all (AND) or any (OR) any of the provided books. * @param {string} [internal] true or false. If only internal recipes should be returned or not. * @param {string} [random] true or false. returns the results in randomized order. * @param {string} [_new] true or false. returns new results first in search results * @param {number} [page] A page number within the paginated result set. * @param {number} [pageSize] Number of results to return per page. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async listRecipes(query?: string, keywords?: string, foods?: string, units?: number, rating?: number, books?: string, keywordsOr?: string, foodsOr?: string, booksOr?: string, internal?: string, random?: string, _new?: string, page?: number, pageSize?: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.listRecipes(query, keywords, foods, units, rating, books, keywordsOr, foodsOr, booksOr, internal, random, _new, page, pageSize, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ async listShoppingListEntrys(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.listShoppingListEntrys(options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ async listShoppingListRecipes(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.listShoppingListRecipes(options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ async listShoppingLists(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.listShoppingLists(options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ async listSteps(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.listSteps(options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ async listStorages(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.listStorages(options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {number} [page] A page number within the paginated result set. * @param {number} [pageSize] Number of results to return per page. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async listSupermarketCategoryRelations(page?: number, pageSize?: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.listSupermarketCategoryRelations(page, pageSize, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ async listSupermarketCategorys(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.listSupermarketCategorys(options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ async listSupermarkets(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.listSupermarkets(options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {number} [page] A page number within the paginated result set. * @param {number} [pageSize] Number of results to return per page. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async listSyncLogs(page?: number, pageSize?: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.listSyncLogs(page, pageSize, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ async listSyncs(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.listSyncs(options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} [query] Query string matched against unit name. * @param {number} [page] A page number within the paginated result set. * @param {number} [pageSize] Number of results to return per page. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async listUnits(query?: string, page?: number, pageSize?: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.listUnits(query, page, pageSize, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ async listUserFiles(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.listUserFiles(options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ async listUserPreferences(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.listUserPreferences(options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * optional parameters - **filter_list**: array of user id\'s to get names for * @param {*} [options] Override http request option. * @throws {RequiredError} */ async listUsers(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.listUsers(options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {number} [page] A page number within the paginated result set. * @param {number} [pageSize] Number of results to return per page. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async listViewLogs(page?: number, pageSize?: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.listViewLogs(page, pageSize, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this food. * @param {string} target * @param {Food} [food] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async mergeFood(id: string, target: string, food?: Food, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.mergeFood(id, target, food, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this keyword. * @param {string} target * @param {Keyword} [keyword] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async mergeKeyword(id: string, target: string, keyword?: Keyword, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.mergeKeyword(id, target, keyword, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this unit. * @param {string} target * @param {Unit} [unit] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async mergeUnit(id: string, target: string, unit?: Unit, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.mergeUnit(id, target, unit, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this food. * @param {string} parent * @param {Food} [food] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async moveFood(id: string, parent: string, food?: Food, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.moveFood(id, parent, food, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this keyword. * @param {string} parent * @param {Keyword} [keyword] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async moveKeyword(id: string, parent: string, keyword?: Keyword, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.moveKeyword(id, parent, keyword, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this bookmarklet import. * @param {BookmarkletImport} [bookmarkletImport] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async partialUpdateBookmarkletImport(id: string, bookmarkletImport?: BookmarkletImport, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateBookmarkletImport(id, bookmarkletImport, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this cook log. * @param {CookLog} [cookLog] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async partialUpdateCookLog(id: string, cookLog?: CookLog, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateCookLog(id, cookLog, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this food. * @param {Food} [food] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async partialUpdateFood(id: string, food?: Food, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateFood(id, food, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this import log. * @param {ImportLog} [importLog] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async partialUpdateImportLog(id: string, importLog?: ImportLog, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateImportLog(id, importLog, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this ingredient. * @param {Ingredient} [ingredient] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async partialUpdateIngredient(id: string, ingredient?: Ingredient, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateIngredient(id, ingredient, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this keyword. * @param {Keyword} [keyword] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async partialUpdateKeyword(id: string, keyword?: Keyword, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateKeyword(id, keyword, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this meal plan. * @param {MealPlan} [mealPlan] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async partialUpdateMealPlan(id: string, mealPlan?: MealPlan, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateMealPlan(id, mealPlan, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * returns list of meal types created by the requesting user ordered by the order field. * @param {string} id A unique integer value identifying this meal type. * @param {MealType} [mealType] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async partialUpdateMealType(id: string, mealType?: MealType, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateMealType(id, mealType, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this recipe. * @param {Recipe} [recipe] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async partialUpdateRecipe(id: string, recipe?: Recipe, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateRecipe(id, recipe, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this recipe book. * @param {RecipeBook} [recipeBook] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async partialUpdateRecipeBook(id: string, recipeBook?: RecipeBook, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateRecipeBook(id, recipeBook, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this recipe book entry. * @param {RecipeBookEntry} [recipeBookEntry] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async partialUpdateRecipeBookEntry(id: string, recipeBookEntry?: RecipeBookEntry, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateRecipeBookEntry(id, recipeBookEntry, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this shopping list. * @param {ShoppingList} [shoppingList] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async partialUpdateShoppingList(id: string, shoppingList?: ShoppingList, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateShoppingList(id, shoppingList, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this shopping list entry. * @param {ShoppingListEntry} [shoppingListEntry] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async partialUpdateShoppingListEntry(id: string, shoppingListEntry?: ShoppingListEntry, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateShoppingListEntry(id, shoppingListEntry, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this shopping list recipe. * @param {ShoppingListRecipe} [shoppingListRecipe] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async partialUpdateShoppingListRecipe(id: string, shoppingListRecipe?: ShoppingListRecipe, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateShoppingListRecipe(id, shoppingListRecipe, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this step. * @param {Step} [step] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async partialUpdateStep(id: string, step?: Step, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateStep(id, step, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this storage. * @param {Storage} [storage] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async partialUpdateStorage(id: string, storage?: Storage, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateStorage(id, storage, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this supermarket. * @param {Supermarket} [supermarket] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async partialUpdateSupermarket(id: string, supermarket?: Supermarket, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateSupermarket(id, supermarket, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this supermarket category. * @param {SupermarketCategory} [supermarketCategory] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async partialUpdateSupermarketCategory(id: string, supermarketCategory?: SupermarketCategory, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateSupermarketCategory(id, supermarketCategory, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this supermarket category relation. * @param {SupermarketCategoryRelation} [supermarketCategoryRelation] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async partialUpdateSupermarketCategoryRelation(id: string, supermarketCategoryRelation?: SupermarketCategoryRelation, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateSupermarketCategoryRelation(id, supermarketCategoryRelation, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this sync. * @param {Sync} [sync] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async partialUpdateSync(id: string, sync?: Sync, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateSync(id, sync, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this unit. * @param {Unit} [unit] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async partialUpdateUnit(id: string, unit?: Unit, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateUnit(id, unit, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this user file. * @param {string} name * @param {any} [file] * @param {number} [fileSizeKb] * @param {number} [id2] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async partialUpdateUserFile(id: string, name: string, file?: any, fileSizeKb?: number, id2?: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateUserFile(id, name, file, fileSizeKb, id2, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} user A unique value identifying this user preference. * @param {UserPreference} [userPreference] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async partialUpdateUserPreference(user: string, userPreference?: UserPreference, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateUserPreference(user, userPreference, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this view log. * @param {ViewLog} [viewLog] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async partialUpdateViewLog(id: string, viewLog?: ViewLog, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateViewLog(id, viewLog, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this bookmarklet import. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async retrieveBookmarkletImport(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveBookmarkletImport(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this cook log. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async retrieveCookLog(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveCookLog(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this food. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async retrieveFood(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveFood(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this import log. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async retrieveImportLog(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveImportLog(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this ingredient. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async retrieveIngredient(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveIngredient(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this keyword. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async retrieveKeyword(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveKeyword(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this meal plan. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async retrieveMealPlan(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveMealPlan(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * returns list of meal types created by the requesting user ordered by the order field. * @param {string} id A unique integer value identifying this meal type. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async retrieveMealType(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveMealType(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this recipe. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async retrieveRecipe(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveRecipe(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this recipe book. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async retrieveRecipeBook(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveRecipeBook(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this recipe book entry. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async retrieveRecipeBookEntry(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveRecipeBookEntry(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this shopping list. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async retrieveShoppingList(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveShoppingList(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this shopping list entry. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async retrieveShoppingListEntry(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveShoppingListEntry(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this shopping list recipe. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async retrieveShoppingListRecipe(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveShoppingListRecipe(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this step. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async retrieveStep(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveStep(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this storage. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async retrieveStorage(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveStorage(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this supermarket. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async retrieveSupermarket(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveSupermarket(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this supermarket category. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async retrieveSupermarketCategory(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveSupermarketCategory(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this supermarket category relation. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async retrieveSupermarketCategoryRelation(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveSupermarketCategoryRelation(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this sync. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async retrieveSync(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveSync(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this sync log. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async retrieveSyncLog(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveSyncLog(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this unit. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async retrieveUnit(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveUnit(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this user. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async retrieveUser(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveUser(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this user file. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async retrieveUserFile(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveUserFile(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} user A unique value identifying this user preference. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async retrieveUserPreference(user: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveUserPreference(user, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this view log. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async retrieveViewLog(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveViewLog(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this bookmarklet import. * @param {BookmarkletImport} [bookmarkletImport] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateBookmarkletImport(id: string, bookmarkletImport?: BookmarkletImport, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateBookmarkletImport(id, bookmarkletImport, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this cook log. * @param {CookLog} [cookLog] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateCookLog(id: string, cookLog?: CookLog, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateCookLog(id, cookLog, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this food. * @param {Food} [food] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateFood(id: string, food?: Food, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateFood(id, food, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this import log. * @param {ImportLog} [importLog] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateImportLog(id: string, importLog?: ImportLog, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateImportLog(id, importLog, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this ingredient. * @param {Ingredient} [ingredient] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateIngredient(id: string, ingredient?: Ingredient, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateIngredient(id, ingredient, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this keyword. * @param {Keyword} [keyword] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateKeyword(id: string, keyword?: Keyword, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateKeyword(id, keyword, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this meal plan. * @param {MealPlan} [mealPlan] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateMealPlan(id: string, mealPlan?: MealPlan, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateMealPlan(id, mealPlan, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * returns list of meal types created by the requesting user ordered by the order field. * @param {string} id A unique integer value identifying this meal type. * @param {MealType} [mealType] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateMealType(id: string, mealType?: MealType, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateMealType(id, mealType, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this recipe. * @param {Recipe} [recipe] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateRecipe(id: string, recipe?: Recipe, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateRecipe(id, recipe, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this recipe book. * @param {RecipeBook} [recipeBook] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateRecipeBook(id: string, recipeBook?: RecipeBook, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateRecipeBook(id, recipeBook, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this recipe book entry. * @param {RecipeBookEntry} [recipeBookEntry] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateRecipeBookEntry(id: string, recipeBookEntry?: RecipeBookEntry, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateRecipeBookEntry(id, recipeBookEntry, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this shopping list. * @param {ShoppingList} [shoppingList] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateShoppingList(id: string, shoppingList?: ShoppingList, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateShoppingList(id, shoppingList, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this shopping list entry. * @param {ShoppingListEntry} [shoppingListEntry] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateShoppingListEntry(id: string, shoppingListEntry?: ShoppingListEntry, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateShoppingListEntry(id, shoppingListEntry, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this shopping list recipe. * @param {ShoppingListRecipe} [shoppingListRecipe] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateShoppingListRecipe(id: string, shoppingListRecipe?: ShoppingListRecipe, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateShoppingListRecipe(id, shoppingListRecipe, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this step. * @param {Step} [step] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateStep(id: string, step?: Step, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateStep(id, step, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this storage. * @param {Storage} [storage] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateStorage(id: string, storage?: Storage, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateStorage(id, storage, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this supermarket. * @param {Supermarket} [supermarket] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateSupermarket(id: string, supermarket?: Supermarket, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateSupermarket(id, supermarket, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this supermarket category. * @param {SupermarketCategory} [supermarketCategory] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateSupermarketCategory(id: string, supermarketCategory?: SupermarketCategory, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateSupermarketCategory(id, supermarketCategory, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this supermarket category relation. * @param {SupermarketCategoryRelation} [supermarketCategoryRelation] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateSupermarketCategoryRelation(id: string, supermarketCategoryRelation?: SupermarketCategoryRelation, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateSupermarketCategoryRelation(id, supermarketCategoryRelation, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this sync. * @param {Sync} [sync] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateSync(id: string, sync?: Sync, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateSync(id, sync, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this unit. * @param {Unit} [unit] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateUnit(id: string, unit?: Unit, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateUnit(id, unit, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this user file. * @param {string} name * @param {any} [file] * @param {number} [fileSizeKb] * @param {number} [id2] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateUserFile(id: string, name: string, file?: any, fileSizeKb?: number, id2?: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateUserFile(id, name, file, fileSizeKb, id2, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} user A unique value identifying this user preference. * @param {UserPreference} [userPreference] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateUserPreference(user: string, userPreference?: UserPreference, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateUserPreference(user, userPreference, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this view log. * @param {ViewLog} [viewLog] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateViewLog(id: string, viewLog?: ViewLog, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateViewLog(id, viewLog, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, } }; /** * ApiApi - factory interface * @export */ export const ApiApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = ApiApiFp(configuration) return { /** * * @param {BookmarkletImport} [bookmarkletImport] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createBookmarkletImport(bookmarkletImport?: BookmarkletImport, options?: any): AxiosPromise { return localVarFp.createBookmarkletImport(bookmarkletImport, options).then((request) => request(axios, basePath)); }, /** * * @param {CookLog} [cookLog] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createCookLog(cookLog?: CookLog, options?: any): AxiosPromise { return localVarFp.createCookLog(cookLog, options).then((request) => request(axios, basePath)); }, /** * * @param {Food} [food] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createFood(food?: Food, options?: any): AxiosPromise { return localVarFp.createFood(food, options).then((request) => request(axios, basePath)); }, /** * * @param {ImportLog} [importLog] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createImportLog(importLog?: ImportLog, options?: any): AxiosPromise { return localVarFp.createImportLog(importLog, options).then((request) => request(axios, basePath)); }, /** * * @param {Ingredient} [ingredient] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createIngredient(ingredient?: Ingredient, options?: any): AxiosPromise { return localVarFp.createIngredient(ingredient, options).then((request) => request(axios, basePath)); }, /** * * @param {Keyword} [keyword] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createKeyword(keyword?: Keyword, options?: any): AxiosPromise { return localVarFp.createKeyword(keyword, options).then((request) => request(axios, basePath)); }, /** * * @param {MealPlan} [mealPlan] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createMealPlan(mealPlan?: MealPlan, options?: any): AxiosPromise { return localVarFp.createMealPlan(mealPlan, options).then((request) => request(axios, basePath)); }, /** * returns list of meal types created by the requesting user ordered by the order field. * @param {MealType} [mealType] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createMealType(mealType?: MealType, options?: any): AxiosPromise { return localVarFp.createMealType(mealType, options).then((request) => request(axios, basePath)); }, /** * * @param {Recipe} [recipe] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createRecipe(recipe?: Recipe, options?: any): AxiosPromise { return localVarFp.createRecipe(recipe, options).then((request) => request(axios, basePath)); }, /** * * @param {RecipeBook} [recipeBook] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createRecipeBook(recipeBook?: RecipeBook, options?: any): AxiosPromise { return localVarFp.createRecipeBook(recipeBook, options).then((request) => request(axios, basePath)); }, /** * * @param {RecipeBookEntry} [recipeBookEntry] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createRecipeBookEntry(recipeBookEntry?: RecipeBookEntry, options?: any): AxiosPromise { return localVarFp.createRecipeBookEntry(recipeBookEntry, options).then((request) => request(axios, basePath)); }, /** * * @param {ShoppingList} [shoppingList] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createShoppingList(shoppingList?: ShoppingList, options?: any): AxiosPromise { return localVarFp.createShoppingList(shoppingList, options).then((request) => request(axios, basePath)); }, /** * * @param {ShoppingListEntry} [shoppingListEntry] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createShoppingListEntry(shoppingListEntry?: ShoppingListEntry, options?: any): AxiosPromise { return localVarFp.createShoppingListEntry(shoppingListEntry, options).then((request) => request(axios, basePath)); }, /** * * @param {ShoppingListRecipe} [shoppingListRecipe] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createShoppingListRecipe(shoppingListRecipe?: ShoppingListRecipe, options?: any): AxiosPromise { return localVarFp.createShoppingListRecipe(shoppingListRecipe, options).then((request) => request(axios, basePath)); }, /** * * @param {Step} [step] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createStep(step?: Step, options?: any): AxiosPromise { return localVarFp.createStep(step, options).then((request) => request(axios, basePath)); }, /** * * @param {Storage} [storage] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createStorage(storage?: Storage, options?: any): AxiosPromise { return localVarFp.createStorage(storage, options).then((request) => request(axios, basePath)); }, /** * * @param {Supermarket} [supermarket] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createSupermarket(supermarket?: Supermarket, options?: any): AxiosPromise { return localVarFp.createSupermarket(supermarket, options).then((request) => request(axios, basePath)); }, /** * * @param {SupermarketCategory} [supermarketCategory] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createSupermarketCategory(supermarketCategory?: SupermarketCategory, options?: any): AxiosPromise { return localVarFp.createSupermarketCategory(supermarketCategory, options).then((request) => request(axios, basePath)); }, /** * * @param {SupermarketCategoryRelation} [supermarketCategoryRelation] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createSupermarketCategoryRelation(supermarketCategoryRelation?: SupermarketCategoryRelation, options?: any): AxiosPromise { return localVarFp.createSupermarketCategoryRelation(supermarketCategoryRelation, options).then((request) => request(axios, basePath)); }, /** * * @param {Sync} [sync] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createSync(sync?: Sync, options?: any): AxiosPromise { return localVarFp.createSync(sync, options).then((request) => request(axios, basePath)); }, /** * * @param {Unit} [unit] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createUnit(unit?: Unit, options?: any): AxiosPromise { return localVarFp.createUnit(unit, options).then((request) => request(axios, basePath)); }, /** * * @param {string} name * @param {any} [file] * @param {number} [fileSizeKb] * @param {number} [id] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createUserFile(name: string, file?: any, fileSizeKb?: number, id?: number, options?: any): AxiosPromise { return localVarFp.createUserFile(name, file, fileSizeKb, id, options).then((request) => request(axios, basePath)); }, /** * * @param {UserPreference} [userPreference] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createUserPreference(userPreference?: UserPreference, options?: any): AxiosPromise { return localVarFp.createUserPreference(userPreference, options).then((request) => request(axios, basePath)); }, /** * * @param {ViewLog} [viewLog] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createViewLog(viewLog?: ViewLog, options?: any): AxiosPromise { return localVarFp.createViewLog(viewLog, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this bookmarklet import. * @param {*} [options] Override http request option. * @throws {RequiredError} */ destroyBookmarkletImport(id: string, options?: any): AxiosPromise { return localVarFp.destroyBookmarkletImport(id, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this cook log. * @param {*} [options] Override http request option. * @throws {RequiredError} */ destroyCookLog(id: string, options?: any): AxiosPromise { return localVarFp.destroyCookLog(id, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this food. * @param {*} [options] Override http request option. * @throws {RequiredError} */ destroyFood(id: string, options?: any): AxiosPromise { return localVarFp.destroyFood(id, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this import log. * @param {*} [options] Override http request option. * @throws {RequiredError} */ destroyImportLog(id: string, options?: any): AxiosPromise { return localVarFp.destroyImportLog(id, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this ingredient. * @param {*} [options] Override http request option. * @throws {RequiredError} */ destroyIngredient(id: string, options?: any): AxiosPromise { return localVarFp.destroyIngredient(id, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this keyword. * @param {*} [options] Override http request option. * @throws {RequiredError} */ destroyKeyword(id: string, options?: any): AxiosPromise { return localVarFp.destroyKeyword(id, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this meal plan. * @param {*} [options] Override http request option. * @throws {RequiredError} */ destroyMealPlan(id: string, options?: any): AxiosPromise { return localVarFp.destroyMealPlan(id, options).then((request) => request(axios, basePath)); }, /** * returns list of meal types created by the requesting user ordered by the order field. * @param {string} id A unique integer value identifying this meal type. * @param {*} [options] Override http request option. * @throws {RequiredError} */ destroyMealType(id: string, options?: any): AxiosPromise { return localVarFp.destroyMealType(id, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this recipe. * @param {*} [options] Override http request option. * @throws {RequiredError} */ destroyRecipe(id: string, options?: any): AxiosPromise { return localVarFp.destroyRecipe(id, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this recipe book. * @param {*} [options] Override http request option. * @throws {RequiredError} */ destroyRecipeBook(id: string, options?: any): AxiosPromise { return localVarFp.destroyRecipeBook(id, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this recipe book entry. * @param {*} [options] Override http request option. * @throws {RequiredError} */ destroyRecipeBookEntry(id: string, options?: any): AxiosPromise { return localVarFp.destroyRecipeBookEntry(id, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this shopping list. * @param {*} [options] Override http request option. * @throws {RequiredError} */ destroyShoppingList(id: string, options?: any): AxiosPromise { return localVarFp.destroyShoppingList(id, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this shopping list entry. * @param {*} [options] Override http request option. * @throws {RequiredError} */ destroyShoppingListEntry(id: string, options?: any): AxiosPromise { return localVarFp.destroyShoppingListEntry(id, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this shopping list recipe. * @param {*} [options] Override http request option. * @throws {RequiredError} */ destroyShoppingListRecipe(id: string, options?: any): AxiosPromise { return localVarFp.destroyShoppingListRecipe(id, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this step. * @param {*} [options] Override http request option. * @throws {RequiredError} */ destroyStep(id: string, options?: any): AxiosPromise { return localVarFp.destroyStep(id, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this storage. * @param {*} [options] Override http request option. * @throws {RequiredError} */ destroyStorage(id: string, options?: any): AxiosPromise { return localVarFp.destroyStorage(id, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this supermarket. * @param {*} [options] Override http request option. * @throws {RequiredError} */ destroySupermarket(id: string, options?: any): AxiosPromise { return localVarFp.destroySupermarket(id, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this supermarket category. * @param {*} [options] Override http request option. * @throws {RequiredError} */ destroySupermarketCategory(id: string, options?: any): AxiosPromise { return localVarFp.destroySupermarketCategory(id, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this supermarket category relation. * @param {*} [options] Override http request option. * @throws {RequiredError} */ destroySupermarketCategoryRelation(id: string, options?: any): AxiosPromise { return localVarFp.destroySupermarketCategoryRelation(id, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this sync. * @param {*} [options] Override http request option. * @throws {RequiredError} */ destroySync(id: string, options?: any): AxiosPromise { return localVarFp.destroySync(id, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this unit. * @param {*} [options] Override http request option. * @throws {RequiredError} */ destroyUnit(id: string, options?: any): AxiosPromise { return localVarFp.destroyUnit(id, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this user file. * @param {*} [options] Override http request option. * @throws {RequiredError} */ destroyUserFile(id: string, options?: any): AxiosPromise { return localVarFp.destroyUserFile(id, options).then((request) => request(axios, basePath)); }, /** * * @param {string} user A unique value identifying this user preference. * @param {*} [options] Override http request option. * @throws {RequiredError} */ destroyUserPreference(user: string, options?: any): AxiosPromise { return localVarFp.destroyUserPreference(user, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this view log. * @param {*} [options] Override http request option. * @throws {RequiredError} */ destroyViewLog(id: string, options?: any): AxiosPromise { return localVarFp.destroyViewLog(id, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this recipe. * @param {any} [image] * @param {*} [options] Override http request option. * @throws {RequiredError} */ imageRecipe(id: string, image?: any, options?: any): AxiosPromise { return localVarFp.imageRecipe(id, image, options).then((request) => request(axios, basePath)); }, /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ listBookmarkletImports(options?: any): AxiosPromise> { return localVarFp.listBookmarkletImports(options).then((request) => request(axios, basePath)); }, /** * * @param {number} [page] A page number within the paginated result set. * @param {number} [pageSize] Number of results to return per page. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listCookLogs(page?: number, pageSize?: number, options?: any): AxiosPromise { return localVarFp.listCookLogs(page, pageSize, options).then((request) => request(axios, basePath)); }, /** * * @param {string} [query] Query string matched against food name. * @param {number} [root] Return first level children of food with ID [int]. Integer 0 will return root foods. * @param {number} [tree] Return all self and children of food with ID [int]. * @param {number} [page] A page number within the paginated result set. * @param {number} [pageSize] Number of results to return per page. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listFoods(query?: string, root?: number, tree?: number, page?: number, pageSize?: number, options?: any): AxiosPromise { return localVarFp.listFoods(query, root, tree, page, pageSize, options).then((request) => request(axios, basePath)); }, /** * * @param {number} [page] A page number within the paginated result set. * @param {number} [pageSize] Number of results to return per page. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listImportLogs(page?: number, pageSize?: number, options?: any): AxiosPromise { return localVarFp.listImportLogs(page, pageSize, options).then((request) => request(axios, basePath)); }, /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ listIngredients(options?: any): AxiosPromise> { return localVarFp.listIngredients(options).then((request) => request(axios, basePath)); }, /** * * @param {string} [query] Query string matched against keyword name. * @param {number} [root] Return first level children of keyword with ID [int]. Integer 0 will return root keywords. * @param {number} [tree] Return all self and children of keyword with ID [int]. * @param {number} [page] A page number within the paginated result set. * @param {number} [pageSize] Number of results to return per page. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listKeywords(query?: string, root?: number, tree?: number, page?: number, pageSize?: number, options?: any): AxiosPromise { return localVarFp.listKeywords(query, root, tree, page, pageSize, options).then((request) => request(axios, basePath)); }, /** * optional parameters - **from_date**: filter from (inclusive) a certain date onward - **to_date**: filter upward to (inclusive) certain date * @param {*} [options] Override http request option. * @throws {RequiredError} */ listMealPlans(options?: any): AxiosPromise> { return localVarFp.listMealPlans(options).then((request) => request(axios, basePath)); }, /** * returns list of meal types created by the requesting user ordered by the order field. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listMealTypes(options?: any): AxiosPromise> { return localVarFp.listMealTypes(options).then((request) => request(axios, basePath)); }, /** * optional parameters - **recipe**: id of recipe - only return books for that recipe - **book**: id of book - only return recipes in that book * @param {*} [options] Override http request option. * @throws {RequiredError} */ listRecipeBookEntrys(options?: any): AxiosPromise> { return localVarFp.listRecipeBookEntrys(options).then((request) => request(axios, basePath)); }, /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ listRecipeBooks(options?: any): AxiosPromise> { return localVarFp.listRecipeBooks(options).then((request) => request(axios, basePath)); }, /** * * @param {string} [query] Query string matched (fuzzy) against recipe name. In the future also fulltext search. * @param {string} [keywords] Id of keyword a recipe should have. For multiple repeat parameter. * @param {string} [foods] Id of food a recipe should have. For multiple repeat parameter. * @param {number} [units] Id of unit a recipe should have. * @param {number} [rating] Id of unit a recipe should have. * @param {string} [books] Id of book a recipe should have. For multiple repeat parameter. * @param {string} [keywordsOr] If recipe should have all (AND) or any (OR) of the provided keywords. * @param {string} [foodsOr] If recipe should have all (AND) or any (OR) any of the provided foods. * @param {string} [booksOr] If recipe should be in all (AND) or any (OR) any of the provided books. * @param {string} [internal] true or false. If only internal recipes should be returned or not. * @param {string} [random] true or false. returns the results in randomized order. * @param {string} [_new] true or false. returns new results first in search results * @param {number} [page] A page number within the paginated result set. * @param {number} [pageSize] Number of results to return per page. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listRecipes(query?: string, keywords?: string, foods?: string, units?: number, rating?: number, books?: string, keywordsOr?: string, foodsOr?: string, booksOr?: string, internal?: string, random?: string, _new?: string, page?: number, pageSize?: number, options?: any): AxiosPromise { return localVarFp.listRecipes(query, keywords, foods, units, rating, books, keywordsOr, foodsOr, booksOr, internal, random, _new, page, pageSize, options).then((request) => request(axios, basePath)); }, /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ listShoppingListEntrys(options?: any): AxiosPromise> { return localVarFp.listShoppingListEntrys(options).then((request) => request(axios, basePath)); }, /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ listShoppingListRecipes(options?: any): AxiosPromise> { return localVarFp.listShoppingListRecipes(options).then((request) => request(axios, basePath)); }, /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ listShoppingLists(options?: any): AxiosPromise> { return localVarFp.listShoppingLists(options).then((request) => request(axios, basePath)); }, /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ listSteps(options?: any): AxiosPromise> { return localVarFp.listSteps(options).then((request) => request(axios, basePath)); }, /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ listStorages(options?: any): AxiosPromise> { return localVarFp.listStorages(options).then((request) => request(axios, basePath)); }, /** * * @param {number} [page] A page number within the paginated result set. * @param {number} [pageSize] Number of results to return per page. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listSupermarketCategoryRelations(page?: number, pageSize?: number, options?: any): AxiosPromise { return localVarFp.listSupermarketCategoryRelations(page, pageSize, options).then((request) => request(axios, basePath)); }, /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ listSupermarketCategorys(options?: any): AxiosPromise> { return localVarFp.listSupermarketCategorys(options).then((request) => request(axios, basePath)); }, /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ listSupermarkets(options?: any): AxiosPromise> { return localVarFp.listSupermarkets(options).then((request) => request(axios, basePath)); }, /** * * @param {number} [page] A page number within the paginated result set. * @param {number} [pageSize] Number of results to return per page. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listSyncLogs(page?: number, pageSize?: number, options?: any): AxiosPromise { return localVarFp.listSyncLogs(page, pageSize, options).then((request) => request(axios, basePath)); }, /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ listSyncs(options?: any): AxiosPromise> { return localVarFp.listSyncs(options).then((request) => request(axios, basePath)); }, /** * * @param {string} [query] Query string matched against unit name. * @param {number} [page] A page number within the paginated result set. * @param {number} [pageSize] Number of results to return per page. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listUnits(query?: string, page?: number, pageSize?: number, options?: any): AxiosPromise { return localVarFp.listUnits(query, page, pageSize, options).then((request) => request(axios, basePath)); }, /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ listUserFiles(options?: any): AxiosPromise> { return localVarFp.listUserFiles(options).then((request) => request(axios, basePath)); }, /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ listUserPreferences(options?: any): AxiosPromise> { return localVarFp.listUserPreferences(options).then((request) => request(axios, basePath)); }, /** * optional parameters - **filter_list**: array of user id\'s to get names for * @param {*} [options] Override http request option. * @throws {RequiredError} */ listUsers(options?: any): AxiosPromise> { return localVarFp.listUsers(options).then((request) => request(axios, basePath)); }, /** * * @param {number} [page] A page number within the paginated result set. * @param {number} [pageSize] Number of results to return per page. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listViewLogs(page?: number, pageSize?: number, options?: any): AxiosPromise { return localVarFp.listViewLogs(page, pageSize, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this food. * @param {string} target * @param {Food} [food] * @param {*} [options] Override http request option. * @throws {RequiredError} */ mergeFood(id: string, target: string, food?: Food, options?: any): AxiosPromise { return localVarFp.mergeFood(id, target, food, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this keyword. * @param {string} target * @param {Keyword} [keyword] * @param {*} [options] Override http request option. * @throws {RequiredError} */ mergeKeyword(id: string, target: string, keyword?: Keyword, options?: any): AxiosPromise { return localVarFp.mergeKeyword(id, target, keyword, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this unit. * @param {string} target * @param {Unit} [unit] * @param {*} [options] Override http request option. * @throws {RequiredError} */ mergeUnit(id: string, target: string, unit?: Unit, options?: any): AxiosPromise { return localVarFp.mergeUnit(id, target, unit, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this food. * @param {string} parent * @param {Food} [food] * @param {*} [options] Override http request option. * @throws {RequiredError} */ moveFood(id: string, parent: string, food?: Food, options?: any): AxiosPromise { return localVarFp.moveFood(id, parent, food, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this keyword. * @param {string} parent * @param {Keyword} [keyword] * @param {*} [options] Override http request option. * @throws {RequiredError} */ moveKeyword(id: string, parent: string, keyword?: Keyword, options?: any): AxiosPromise { return localVarFp.moveKeyword(id, parent, keyword, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this bookmarklet import. * @param {BookmarkletImport} [bookmarkletImport] * @param {*} [options] Override http request option. * @throws {RequiredError} */ partialUpdateBookmarkletImport(id: string, bookmarkletImport?: BookmarkletImport, options?: any): AxiosPromise { return localVarFp.partialUpdateBookmarkletImport(id, bookmarkletImport, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this cook log. * @param {CookLog} [cookLog] * @param {*} [options] Override http request option. * @throws {RequiredError} */ partialUpdateCookLog(id: string, cookLog?: CookLog, options?: any): AxiosPromise { return localVarFp.partialUpdateCookLog(id, cookLog, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this food. * @param {Food} [food] * @param {*} [options] Override http request option. * @throws {RequiredError} */ partialUpdateFood(id: string, food?: Food, options?: any): AxiosPromise { return localVarFp.partialUpdateFood(id, food, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this import log. * @param {ImportLog} [importLog] * @param {*} [options] Override http request option. * @throws {RequiredError} */ partialUpdateImportLog(id: string, importLog?: ImportLog, options?: any): AxiosPromise { return localVarFp.partialUpdateImportLog(id, importLog, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this ingredient. * @param {Ingredient} [ingredient] * @param {*} [options] Override http request option. * @throws {RequiredError} */ partialUpdateIngredient(id: string, ingredient?: Ingredient, options?: any): AxiosPromise { return localVarFp.partialUpdateIngredient(id, ingredient, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this keyword. * @param {Keyword} [keyword] * @param {*} [options] Override http request option. * @throws {RequiredError} */ partialUpdateKeyword(id: string, keyword?: Keyword, options?: any): AxiosPromise { return localVarFp.partialUpdateKeyword(id, keyword, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this meal plan. * @param {MealPlan} [mealPlan] * @param {*} [options] Override http request option. * @throws {RequiredError} */ partialUpdateMealPlan(id: string, mealPlan?: MealPlan, options?: any): AxiosPromise { return localVarFp.partialUpdateMealPlan(id, mealPlan, options).then((request) => request(axios, basePath)); }, /** * returns list of meal types created by the requesting user ordered by the order field. * @param {string} id A unique integer value identifying this meal type. * @param {MealType} [mealType] * @param {*} [options] Override http request option. * @throws {RequiredError} */ partialUpdateMealType(id: string, mealType?: MealType, options?: any): AxiosPromise { return localVarFp.partialUpdateMealType(id, mealType, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this recipe. * @param {Recipe} [recipe] * @param {*} [options] Override http request option. * @throws {RequiredError} */ partialUpdateRecipe(id: string, recipe?: Recipe, options?: any): AxiosPromise { return localVarFp.partialUpdateRecipe(id, recipe, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this recipe book. * @param {RecipeBook} [recipeBook] * @param {*} [options] Override http request option. * @throws {RequiredError} */ partialUpdateRecipeBook(id: string, recipeBook?: RecipeBook, options?: any): AxiosPromise { return localVarFp.partialUpdateRecipeBook(id, recipeBook, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this recipe book entry. * @param {RecipeBookEntry} [recipeBookEntry] * @param {*} [options] Override http request option. * @throws {RequiredError} */ partialUpdateRecipeBookEntry(id: string, recipeBookEntry?: RecipeBookEntry, options?: any): AxiosPromise { return localVarFp.partialUpdateRecipeBookEntry(id, recipeBookEntry, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this shopping list. * @param {ShoppingList} [shoppingList] * @param {*} [options] Override http request option. * @throws {RequiredError} */ partialUpdateShoppingList(id: string, shoppingList?: ShoppingList, options?: any): AxiosPromise { return localVarFp.partialUpdateShoppingList(id, shoppingList, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this shopping list entry. * @param {ShoppingListEntry} [shoppingListEntry] * @param {*} [options] Override http request option. * @throws {RequiredError} */ partialUpdateShoppingListEntry(id: string, shoppingListEntry?: ShoppingListEntry, options?: any): AxiosPromise { return localVarFp.partialUpdateShoppingListEntry(id, shoppingListEntry, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this shopping list recipe. * @param {ShoppingListRecipe} [shoppingListRecipe] * @param {*} [options] Override http request option. * @throws {RequiredError} */ partialUpdateShoppingListRecipe(id: string, shoppingListRecipe?: ShoppingListRecipe, options?: any): AxiosPromise { return localVarFp.partialUpdateShoppingListRecipe(id, shoppingListRecipe, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this step. * @param {Step} [step] * @param {*} [options] Override http request option. * @throws {RequiredError} */ partialUpdateStep(id: string, step?: Step, options?: any): AxiosPromise { return localVarFp.partialUpdateStep(id, step, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this storage. * @param {Storage} [storage] * @param {*} [options] Override http request option. * @throws {RequiredError} */ partialUpdateStorage(id: string, storage?: Storage, options?: any): AxiosPromise { return localVarFp.partialUpdateStorage(id, storage, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this supermarket. * @param {Supermarket} [supermarket] * @param {*} [options] Override http request option. * @throws {RequiredError} */ partialUpdateSupermarket(id: string, supermarket?: Supermarket, options?: any): AxiosPromise { return localVarFp.partialUpdateSupermarket(id, supermarket, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this supermarket category. * @param {SupermarketCategory} [supermarketCategory] * @param {*} [options] Override http request option. * @throws {RequiredError} */ partialUpdateSupermarketCategory(id: string, supermarketCategory?: SupermarketCategory, options?: any): AxiosPromise { return localVarFp.partialUpdateSupermarketCategory(id, supermarketCategory, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this supermarket category relation. * @param {SupermarketCategoryRelation} [supermarketCategoryRelation] * @param {*} [options] Override http request option. * @throws {RequiredError} */ partialUpdateSupermarketCategoryRelation(id: string, supermarketCategoryRelation?: SupermarketCategoryRelation, options?: any): AxiosPromise { return localVarFp.partialUpdateSupermarketCategoryRelation(id, supermarketCategoryRelation, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this sync. * @param {Sync} [sync] * @param {*} [options] Override http request option. * @throws {RequiredError} */ partialUpdateSync(id: string, sync?: Sync, options?: any): AxiosPromise { return localVarFp.partialUpdateSync(id, sync, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this unit. * @param {Unit} [unit] * @param {*} [options] Override http request option. * @throws {RequiredError} */ partialUpdateUnit(id: string, unit?: Unit, options?: any): AxiosPromise { return localVarFp.partialUpdateUnit(id, unit, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this user file. * @param {string} name * @param {any} [file] * @param {number} [fileSizeKb] * @param {number} [id2] * @param {*} [options] Override http request option. * @throws {RequiredError} */ partialUpdateUserFile(id: string, name: string, file?: any, fileSizeKb?: number, id2?: number, options?: any): AxiosPromise { return localVarFp.partialUpdateUserFile(id, name, file, fileSizeKb, id2, options).then((request) => request(axios, basePath)); }, /** * * @param {string} user A unique value identifying this user preference. * @param {UserPreference} [userPreference] * @param {*} [options] Override http request option. * @throws {RequiredError} */ partialUpdateUserPreference(user: string, userPreference?: UserPreference, options?: any): AxiosPromise { return localVarFp.partialUpdateUserPreference(user, userPreference, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this view log. * @param {ViewLog} [viewLog] * @param {*} [options] Override http request option. * @throws {RequiredError} */ partialUpdateViewLog(id: string, viewLog?: ViewLog, options?: any): AxiosPromise { return localVarFp.partialUpdateViewLog(id, viewLog, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this bookmarklet import. * @param {*} [options] Override http request option. * @throws {RequiredError} */ retrieveBookmarkletImport(id: string, options?: any): AxiosPromise { return localVarFp.retrieveBookmarkletImport(id, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this cook log. * @param {*} [options] Override http request option. * @throws {RequiredError} */ retrieveCookLog(id: string, options?: any): AxiosPromise { return localVarFp.retrieveCookLog(id, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this food. * @param {*} [options] Override http request option. * @throws {RequiredError} */ retrieveFood(id: string, options?: any): AxiosPromise { return localVarFp.retrieveFood(id, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this import log. * @param {*} [options] Override http request option. * @throws {RequiredError} */ retrieveImportLog(id: string, options?: any): AxiosPromise { return localVarFp.retrieveImportLog(id, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this ingredient. * @param {*} [options] Override http request option. * @throws {RequiredError} */ retrieveIngredient(id: string, options?: any): AxiosPromise { return localVarFp.retrieveIngredient(id, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this keyword. * @param {*} [options] Override http request option. * @throws {RequiredError} */ retrieveKeyword(id: string, options?: any): AxiosPromise { return localVarFp.retrieveKeyword(id, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this meal plan. * @param {*} [options] Override http request option. * @throws {RequiredError} */ retrieveMealPlan(id: string, options?: any): AxiosPromise { return localVarFp.retrieveMealPlan(id, options).then((request) => request(axios, basePath)); }, /** * returns list of meal types created by the requesting user ordered by the order field. * @param {string} id A unique integer value identifying this meal type. * @param {*} [options] Override http request option. * @throws {RequiredError} */ retrieveMealType(id: string, options?: any): AxiosPromise { return localVarFp.retrieveMealType(id, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this recipe. * @param {*} [options] Override http request option. * @throws {RequiredError} */ retrieveRecipe(id: string, options?: any): AxiosPromise { return localVarFp.retrieveRecipe(id, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this recipe book. * @param {*} [options] Override http request option. * @throws {RequiredError} */ retrieveRecipeBook(id: string, options?: any): AxiosPromise { return localVarFp.retrieveRecipeBook(id, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this recipe book entry. * @param {*} [options] Override http request option. * @throws {RequiredError} */ retrieveRecipeBookEntry(id: string, options?: any): AxiosPromise { return localVarFp.retrieveRecipeBookEntry(id, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this shopping list. * @param {*} [options] Override http request option. * @throws {RequiredError} */ retrieveShoppingList(id: string, options?: any): AxiosPromise { return localVarFp.retrieveShoppingList(id, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this shopping list entry. * @param {*} [options] Override http request option. * @throws {RequiredError} */ retrieveShoppingListEntry(id: string, options?: any): AxiosPromise { return localVarFp.retrieveShoppingListEntry(id, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this shopping list recipe. * @param {*} [options] Override http request option. * @throws {RequiredError} */ retrieveShoppingListRecipe(id: string, options?: any): AxiosPromise { return localVarFp.retrieveShoppingListRecipe(id, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this step. * @param {*} [options] Override http request option. * @throws {RequiredError} */ retrieveStep(id: string, options?: any): AxiosPromise { return localVarFp.retrieveStep(id, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this storage. * @param {*} [options] Override http request option. * @throws {RequiredError} */ retrieveStorage(id: string, options?: any): AxiosPromise { return localVarFp.retrieveStorage(id, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this supermarket. * @param {*} [options] Override http request option. * @throws {RequiredError} */ retrieveSupermarket(id: string, options?: any): AxiosPromise { return localVarFp.retrieveSupermarket(id, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this supermarket category. * @param {*} [options] Override http request option. * @throws {RequiredError} */ retrieveSupermarketCategory(id: string, options?: any): AxiosPromise { return localVarFp.retrieveSupermarketCategory(id, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this supermarket category relation. * @param {*} [options] Override http request option. * @throws {RequiredError} */ retrieveSupermarketCategoryRelation(id: string, options?: any): AxiosPromise { return localVarFp.retrieveSupermarketCategoryRelation(id, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this sync. * @param {*} [options] Override http request option. * @throws {RequiredError} */ retrieveSync(id: string, options?: any): AxiosPromise { return localVarFp.retrieveSync(id, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this sync log. * @param {*} [options] Override http request option. * @throws {RequiredError} */ retrieveSyncLog(id: string, options?: any): AxiosPromise { return localVarFp.retrieveSyncLog(id, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this unit. * @param {*} [options] Override http request option. * @throws {RequiredError} */ retrieveUnit(id: string, options?: any): AxiosPromise { return localVarFp.retrieveUnit(id, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this user. * @param {*} [options] Override http request option. * @throws {RequiredError} */ retrieveUser(id: string, options?: any): AxiosPromise { return localVarFp.retrieveUser(id, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this user file. * @param {*} [options] Override http request option. * @throws {RequiredError} */ retrieveUserFile(id: string, options?: any): AxiosPromise { return localVarFp.retrieveUserFile(id, options).then((request) => request(axios, basePath)); }, /** * * @param {string} user A unique value identifying this user preference. * @param {*} [options] Override http request option. * @throws {RequiredError} */ retrieveUserPreference(user: string, options?: any): AxiosPromise { return localVarFp.retrieveUserPreference(user, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this view log. * @param {*} [options] Override http request option. * @throws {RequiredError} */ retrieveViewLog(id: string, options?: any): AxiosPromise { return localVarFp.retrieveViewLog(id, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this bookmarklet import. * @param {BookmarkletImport} [bookmarkletImport] * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateBookmarkletImport(id: string, bookmarkletImport?: BookmarkletImport, options?: any): AxiosPromise { return localVarFp.updateBookmarkletImport(id, bookmarkletImport, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this cook log. * @param {CookLog} [cookLog] * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateCookLog(id: string, cookLog?: CookLog, options?: any): AxiosPromise { return localVarFp.updateCookLog(id, cookLog, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this food. * @param {Food} [food] * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateFood(id: string, food?: Food, options?: any): AxiosPromise { return localVarFp.updateFood(id, food, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this import log. * @param {ImportLog} [importLog] * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateImportLog(id: string, importLog?: ImportLog, options?: any): AxiosPromise { return localVarFp.updateImportLog(id, importLog, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this ingredient. * @param {Ingredient} [ingredient] * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateIngredient(id: string, ingredient?: Ingredient, options?: any): AxiosPromise { return localVarFp.updateIngredient(id, ingredient, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this keyword. * @param {Keyword} [keyword] * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateKeyword(id: string, keyword?: Keyword, options?: any): AxiosPromise { return localVarFp.updateKeyword(id, keyword, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this meal plan. * @param {MealPlan} [mealPlan] * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateMealPlan(id: string, mealPlan?: MealPlan, options?: any): AxiosPromise { return localVarFp.updateMealPlan(id, mealPlan, options).then((request) => request(axios, basePath)); }, /** * returns list of meal types created by the requesting user ordered by the order field. * @param {string} id A unique integer value identifying this meal type. * @param {MealType} [mealType] * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateMealType(id: string, mealType?: MealType, options?: any): AxiosPromise { return localVarFp.updateMealType(id, mealType, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this recipe. * @param {Recipe} [recipe] * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateRecipe(id: string, recipe?: Recipe, options?: any): AxiosPromise { return localVarFp.updateRecipe(id, recipe, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this recipe book. * @param {RecipeBook} [recipeBook] * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateRecipeBook(id: string, recipeBook?: RecipeBook, options?: any): AxiosPromise { return localVarFp.updateRecipeBook(id, recipeBook, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this recipe book entry. * @param {RecipeBookEntry} [recipeBookEntry] * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateRecipeBookEntry(id: string, recipeBookEntry?: RecipeBookEntry, options?: any): AxiosPromise { return localVarFp.updateRecipeBookEntry(id, recipeBookEntry, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this shopping list. * @param {ShoppingList} [shoppingList] * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateShoppingList(id: string, shoppingList?: ShoppingList, options?: any): AxiosPromise { return localVarFp.updateShoppingList(id, shoppingList, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this shopping list entry. * @param {ShoppingListEntry} [shoppingListEntry] * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateShoppingListEntry(id: string, shoppingListEntry?: ShoppingListEntry, options?: any): AxiosPromise { return localVarFp.updateShoppingListEntry(id, shoppingListEntry, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this shopping list recipe. * @param {ShoppingListRecipe} [shoppingListRecipe] * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateShoppingListRecipe(id: string, shoppingListRecipe?: ShoppingListRecipe, options?: any): AxiosPromise { return localVarFp.updateShoppingListRecipe(id, shoppingListRecipe, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this step. * @param {Step} [step] * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateStep(id: string, step?: Step, options?: any): AxiosPromise { return localVarFp.updateStep(id, step, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this storage. * @param {Storage} [storage] * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateStorage(id: string, storage?: Storage, options?: any): AxiosPromise { return localVarFp.updateStorage(id, storage, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this supermarket. * @param {Supermarket} [supermarket] * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateSupermarket(id: string, supermarket?: Supermarket, options?: any): AxiosPromise { return localVarFp.updateSupermarket(id, supermarket, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this supermarket category. * @param {SupermarketCategory} [supermarketCategory] * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateSupermarketCategory(id: string, supermarketCategory?: SupermarketCategory, options?: any): AxiosPromise { return localVarFp.updateSupermarketCategory(id, supermarketCategory, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this supermarket category relation. * @param {SupermarketCategoryRelation} [supermarketCategoryRelation] * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateSupermarketCategoryRelation(id: string, supermarketCategoryRelation?: SupermarketCategoryRelation, options?: any): AxiosPromise { return localVarFp.updateSupermarketCategoryRelation(id, supermarketCategoryRelation, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this sync. * @param {Sync} [sync] * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateSync(id: string, sync?: Sync, options?: any): AxiosPromise { return localVarFp.updateSync(id, sync, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this unit. * @param {Unit} [unit] * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateUnit(id: string, unit?: Unit, options?: any): AxiosPromise { return localVarFp.updateUnit(id, unit, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this user file. * @param {string} name * @param {any} [file] * @param {number} [fileSizeKb] * @param {number} [id2] * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateUserFile(id: string, name: string, file?: any, fileSizeKb?: number, id2?: number, options?: any): AxiosPromise { return localVarFp.updateUserFile(id, name, file, fileSizeKb, id2, options).then((request) => request(axios, basePath)); }, /** * * @param {string} user A unique value identifying this user preference. * @param {UserPreference} [userPreference] * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateUserPreference(user: string, userPreference?: UserPreference, options?: any): AxiosPromise { return localVarFp.updateUserPreference(user, userPreference, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this view log. * @param {ViewLog} [viewLog] * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateViewLog(id: string, viewLog?: ViewLog, options?: any): AxiosPromise { return localVarFp.updateViewLog(id, viewLog, options).then((request) => request(axios, basePath)); }, }; }; /** * ApiApi - object-oriented interface * @export * @class ApiApi * @extends {BaseAPI} */ export class ApiApi extends BaseAPI { /** * * @param {BookmarkletImport} [bookmarkletImport] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public createBookmarkletImport(bookmarkletImport?: BookmarkletImport, options?: any) { return ApiApiFp(this.configuration).createBookmarkletImport(bookmarkletImport, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {CookLog} [cookLog] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public createCookLog(cookLog?: CookLog, options?: any) { return ApiApiFp(this.configuration).createCookLog(cookLog, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {Food} [food] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public createFood(food?: Food, options?: any) { return ApiApiFp(this.configuration).createFood(food, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {ImportLog} [importLog] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public createImportLog(importLog?: ImportLog, options?: any) { return ApiApiFp(this.configuration).createImportLog(importLog, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {Ingredient} [ingredient] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public createIngredient(ingredient?: Ingredient, options?: any) { return ApiApiFp(this.configuration).createIngredient(ingredient, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {Keyword} [keyword] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public createKeyword(keyword?: Keyword, options?: any) { return ApiApiFp(this.configuration).createKeyword(keyword, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {MealPlan} [mealPlan] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public createMealPlan(mealPlan?: MealPlan, options?: any) { return ApiApiFp(this.configuration).createMealPlan(mealPlan, options).then((request) => request(this.axios, this.basePath)); } /** * returns list of meal types created by the requesting user ordered by the order field. * @param {MealType} [mealType] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public createMealType(mealType?: MealType, options?: any) { return ApiApiFp(this.configuration).createMealType(mealType, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {Recipe} [recipe] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public createRecipe(recipe?: Recipe, options?: any) { return ApiApiFp(this.configuration).createRecipe(recipe, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {RecipeBook} [recipeBook] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public createRecipeBook(recipeBook?: RecipeBook, options?: any) { return ApiApiFp(this.configuration).createRecipeBook(recipeBook, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {RecipeBookEntry} [recipeBookEntry] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public createRecipeBookEntry(recipeBookEntry?: RecipeBookEntry, options?: any) { return ApiApiFp(this.configuration).createRecipeBookEntry(recipeBookEntry, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {ShoppingList} [shoppingList] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public createShoppingList(shoppingList?: ShoppingList, options?: any) { return ApiApiFp(this.configuration).createShoppingList(shoppingList, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {ShoppingListEntry} [shoppingListEntry] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public createShoppingListEntry(shoppingListEntry?: ShoppingListEntry, options?: any) { return ApiApiFp(this.configuration).createShoppingListEntry(shoppingListEntry, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {ShoppingListRecipe} [shoppingListRecipe] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public createShoppingListRecipe(shoppingListRecipe?: ShoppingListRecipe, options?: any) { return ApiApiFp(this.configuration).createShoppingListRecipe(shoppingListRecipe, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {Step} [step] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public createStep(step?: Step, options?: any) { return ApiApiFp(this.configuration).createStep(step, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {Storage} [storage] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public createStorage(storage?: Storage, options?: any) { return ApiApiFp(this.configuration).createStorage(storage, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {Supermarket} [supermarket] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public createSupermarket(supermarket?: Supermarket, options?: any) { return ApiApiFp(this.configuration).createSupermarket(supermarket, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {SupermarketCategory} [supermarketCategory] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public createSupermarketCategory(supermarketCategory?: SupermarketCategory, options?: any) { return ApiApiFp(this.configuration).createSupermarketCategory(supermarketCategory, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {SupermarketCategoryRelation} [supermarketCategoryRelation] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public createSupermarketCategoryRelation(supermarketCategoryRelation?: SupermarketCategoryRelation, options?: any) { return ApiApiFp(this.configuration).createSupermarketCategoryRelation(supermarketCategoryRelation, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {Sync} [sync] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public createSync(sync?: Sync, options?: any) { return ApiApiFp(this.configuration).createSync(sync, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {Unit} [unit] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public createUnit(unit?: Unit, options?: any) { return ApiApiFp(this.configuration).createUnit(unit, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} name * @param {any} [file] * @param {number} [fileSizeKb] * @param {number} [id] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public createUserFile(name: string, file?: any, fileSizeKb?: number, id?: number, options?: any) { return ApiApiFp(this.configuration).createUserFile(name, file, fileSizeKb, id, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {UserPreference} [userPreference] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public createUserPreference(userPreference?: UserPreference, options?: any) { return ApiApiFp(this.configuration).createUserPreference(userPreference, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {ViewLog} [viewLog] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public createViewLog(viewLog?: ViewLog, options?: any) { return ApiApiFp(this.configuration).createViewLog(viewLog, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this bookmarklet import. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public destroyBookmarkletImport(id: string, options?: any) { return ApiApiFp(this.configuration).destroyBookmarkletImport(id, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this cook log. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public destroyCookLog(id: string, options?: any) { return ApiApiFp(this.configuration).destroyCookLog(id, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this food. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public destroyFood(id: string, options?: any) { return ApiApiFp(this.configuration).destroyFood(id, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this import log. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public destroyImportLog(id: string, options?: any) { return ApiApiFp(this.configuration).destroyImportLog(id, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this ingredient. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public destroyIngredient(id: string, options?: any) { return ApiApiFp(this.configuration).destroyIngredient(id, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this keyword. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public destroyKeyword(id: string, options?: any) { return ApiApiFp(this.configuration).destroyKeyword(id, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this meal plan. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public destroyMealPlan(id: string, options?: any) { return ApiApiFp(this.configuration).destroyMealPlan(id, options).then((request) => request(this.axios, this.basePath)); } /** * returns list of meal types created by the requesting user ordered by the order field. * @param {string} id A unique integer value identifying this meal type. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public destroyMealType(id: string, options?: any) { return ApiApiFp(this.configuration).destroyMealType(id, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this recipe. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public destroyRecipe(id: string, options?: any) { return ApiApiFp(this.configuration).destroyRecipe(id, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this recipe book. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public destroyRecipeBook(id: string, options?: any) { return ApiApiFp(this.configuration).destroyRecipeBook(id, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this recipe book entry. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public destroyRecipeBookEntry(id: string, options?: any) { return ApiApiFp(this.configuration).destroyRecipeBookEntry(id, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this shopping list. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public destroyShoppingList(id: string, options?: any) { return ApiApiFp(this.configuration).destroyShoppingList(id, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this shopping list entry. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public destroyShoppingListEntry(id: string, options?: any) { return ApiApiFp(this.configuration).destroyShoppingListEntry(id, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this shopping list recipe. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public destroyShoppingListRecipe(id: string, options?: any) { return ApiApiFp(this.configuration).destroyShoppingListRecipe(id, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this step. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public destroyStep(id: string, options?: any) { return ApiApiFp(this.configuration).destroyStep(id, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this storage. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public destroyStorage(id: string, options?: any) { return ApiApiFp(this.configuration).destroyStorage(id, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this supermarket. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public destroySupermarket(id: string, options?: any) { return ApiApiFp(this.configuration).destroySupermarket(id, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this supermarket category. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public destroySupermarketCategory(id: string, options?: any) { return ApiApiFp(this.configuration).destroySupermarketCategory(id, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this supermarket category relation. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public destroySupermarketCategoryRelation(id: string, options?: any) { return ApiApiFp(this.configuration).destroySupermarketCategoryRelation(id, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this sync. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public destroySync(id: string, options?: any) { return ApiApiFp(this.configuration).destroySync(id, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this unit. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public destroyUnit(id: string, options?: any) { return ApiApiFp(this.configuration).destroyUnit(id, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this user file. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public destroyUserFile(id: string, options?: any) { return ApiApiFp(this.configuration).destroyUserFile(id, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} user A unique value identifying this user preference. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public destroyUserPreference(user: string, options?: any) { return ApiApiFp(this.configuration).destroyUserPreference(user, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this view log. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public destroyViewLog(id: string, options?: any) { return ApiApiFp(this.configuration).destroyViewLog(id, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this recipe. * @param {any} [image] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public imageRecipe(id: string, image?: any, options?: any) { return ApiApiFp(this.configuration).imageRecipe(id, image, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public listBookmarkletImports(options?: any) { return ApiApiFp(this.configuration).listBookmarkletImports(options).then((request) => request(this.axios, this.basePath)); } /** * * @param {number} [page] A page number within the paginated result set. * @param {number} [pageSize] Number of results to return per page. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public listCookLogs(page?: number, pageSize?: number, options?: any) { return ApiApiFp(this.configuration).listCookLogs(page, pageSize, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} [query] Query string matched against food name. * @param {number} [root] Return first level children of food with ID [int]. Integer 0 will return root foods. * @param {number} [tree] Return all self and children of food with ID [int]. * @param {number} [page] A page number within the paginated result set. * @param {number} [pageSize] Number of results to return per page. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public listFoods(query?: string, root?: number, tree?: number, page?: number, pageSize?: number, options?: any) { return ApiApiFp(this.configuration).listFoods(query, root, tree, page, pageSize, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {number} [page] A page number within the paginated result set. * @param {number} [pageSize] Number of results to return per page. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public listImportLogs(page?: number, pageSize?: number, options?: any) { return ApiApiFp(this.configuration).listImportLogs(page, pageSize, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public listIngredients(options?: any) { return ApiApiFp(this.configuration).listIngredients(options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} [query] Query string matched against keyword name. * @param {number} [root] Return first level children of keyword with ID [int]. Integer 0 will return root keywords. * @param {number} [tree] Return all self and children of keyword with ID [int]. * @param {number} [page] A page number within the paginated result set. * @param {number} [pageSize] Number of results to return per page. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public listKeywords(query?: string, root?: number, tree?: number, page?: number, pageSize?: number, options?: any) { return ApiApiFp(this.configuration).listKeywords(query, root, tree, page, pageSize, options).then((request) => request(this.axios, this.basePath)); } /** * optional parameters - **from_date**: filter from (inclusive) a certain date onward - **to_date**: filter upward to (inclusive) certain date * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public listMealPlans(options?: any) { return ApiApiFp(this.configuration).listMealPlans(options).then((request) => request(this.axios, this.basePath)); } /** * returns list of meal types created by the requesting user ordered by the order field. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public listMealTypes(options?: any) { return ApiApiFp(this.configuration).listMealTypes(options).then((request) => request(this.axios, this.basePath)); } /** * optional parameters - **recipe**: id of recipe - only return books for that recipe - **book**: id of book - only return recipes in that book * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public listRecipeBookEntrys(options?: any) { return ApiApiFp(this.configuration).listRecipeBookEntrys(options).then((request) => request(this.axios, this.basePath)); } /** * * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public listRecipeBooks(options?: any) { return ApiApiFp(this.configuration).listRecipeBooks(options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} [query] Query string matched (fuzzy) against recipe name. In the future also fulltext search. * @param {string} [keywords] Id of keyword a recipe should have. For multiple repeat parameter. * @param {string} [foods] Id of food a recipe should have. For multiple repeat parameter. * @param {number} [units] Id of unit a recipe should have. * @param {number} [rating] Id of unit a recipe should have. * @param {string} [books] Id of book a recipe should have. For multiple repeat parameter. * @param {string} [keywordsOr] If recipe should have all (AND) or any (OR) of the provided keywords. * @param {string} [foodsOr] If recipe should have all (AND) or any (OR) any of the provided foods. * @param {string} [booksOr] If recipe should be in all (AND) or any (OR) any of the provided books. * @param {string} [internal] true or false. If only internal recipes should be returned or not. * @param {string} [random] true or false. returns the results in randomized order. * @param {string} [_new] true or false. returns new results first in search results * @param {number} [page] A page number within the paginated result set. * @param {number} [pageSize] Number of results to return per page. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public listRecipes(query?: string, keywords?: string, foods?: string, units?: number, rating?: number, books?: string, keywordsOr?: string, foodsOr?: string, booksOr?: string, internal?: string, random?: string, _new?: string, page?: number, pageSize?: number, options?: any) { return ApiApiFp(this.configuration).listRecipes(query, keywords, foods, units, rating, books, keywordsOr, foodsOr, booksOr, internal, random, _new, page, pageSize, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public listShoppingListEntrys(options?: any) { return ApiApiFp(this.configuration).listShoppingListEntrys(options).then((request) => request(this.axios, this.basePath)); } /** * * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public listShoppingListRecipes(options?: any) { return ApiApiFp(this.configuration).listShoppingListRecipes(options).then((request) => request(this.axios, this.basePath)); } /** * * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public listShoppingLists(options?: any) { return ApiApiFp(this.configuration).listShoppingLists(options).then((request) => request(this.axios, this.basePath)); } /** * * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public listSteps(options?: any) { return ApiApiFp(this.configuration).listSteps(options).then((request) => request(this.axios, this.basePath)); } /** * * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public listStorages(options?: any) { return ApiApiFp(this.configuration).listStorages(options).then((request) => request(this.axios, this.basePath)); } /** * * @param {number} [page] A page number within the paginated result set. * @param {number} [pageSize] Number of results to return per page. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public listSupermarketCategoryRelations(page?: number, pageSize?: number, options?: any) { return ApiApiFp(this.configuration).listSupermarketCategoryRelations(page, pageSize, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public listSupermarketCategorys(options?: any) { return ApiApiFp(this.configuration).listSupermarketCategorys(options).then((request) => request(this.axios, this.basePath)); } /** * * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public listSupermarkets(options?: any) { return ApiApiFp(this.configuration).listSupermarkets(options).then((request) => request(this.axios, this.basePath)); } /** * * @param {number} [page] A page number within the paginated result set. * @param {number} [pageSize] Number of results to return per page. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public listSyncLogs(page?: number, pageSize?: number, options?: any) { return ApiApiFp(this.configuration).listSyncLogs(page, pageSize, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public listSyncs(options?: any) { return ApiApiFp(this.configuration).listSyncs(options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} [query] Query string matched against unit name. * @param {number} [page] A page number within the paginated result set. * @param {number} [pageSize] Number of results to return per page. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public listUnits(query?: string, page?: number, pageSize?: number, options?: any) { return ApiApiFp(this.configuration).listUnits(query, page, pageSize, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public listUserFiles(options?: any) { return ApiApiFp(this.configuration).listUserFiles(options).then((request) => request(this.axios, this.basePath)); } /** * * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public listUserPreferences(options?: any) { return ApiApiFp(this.configuration).listUserPreferences(options).then((request) => request(this.axios, this.basePath)); } /** * optional parameters - **filter_list**: array of user id\'s to get names for * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public listUsers(options?: any) { return ApiApiFp(this.configuration).listUsers(options).then((request) => request(this.axios, this.basePath)); } /** * * @param {number} [page] A page number within the paginated result set. * @param {number} [pageSize] Number of results to return per page. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public listViewLogs(page?: number, pageSize?: number, options?: any) { return ApiApiFp(this.configuration).listViewLogs(page, pageSize, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this food. * @param {string} target * @param {Food} [food] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public mergeFood(id: string, target: string, food?: Food, options?: any) { return ApiApiFp(this.configuration).mergeFood(id, target, food, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this keyword. * @param {string} target * @param {Keyword} [keyword] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public mergeKeyword(id: string, target: string, keyword?: Keyword, options?: any) { return ApiApiFp(this.configuration).mergeKeyword(id, target, keyword, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this unit. * @param {string} target * @param {Unit} [unit] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public mergeUnit(id: string, target: string, unit?: Unit, options?: any) { return ApiApiFp(this.configuration).mergeUnit(id, target, unit, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this food. * @param {string} parent * @param {Food} [food] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public moveFood(id: string, parent: string, food?: Food, options?: any) { return ApiApiFp(this.configuration).moveFood(id, parent, food, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this keyword. * @param {string} parent * @param {Keyword} [keyword] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public moveKeyword(id: string, parent: string, keyword?: Keyword, options?: any) { return ApiApiFp(this.configuration).moveKeyword(id, parent, keyword, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this bookmarklet import. * @param {BookmarkletImport} [bookmarkletImport] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public partialUpdateBookmarkletImport(id: string, bookmarkletImport?: BookmarkletImport, options?: any) { return ApiApiFp(this.configuration).partialUpdateBookmarkletImport(id, bookmarkletImport, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this cook log. * @param {CookLog} [cookLog] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public partialUpdateCookLog(id: string, cookLog?: CookLog, options?: any) { return ApiApiFp(this.configuration).partialUpdateCookLog(id, cookLog, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this food. * @param {Food} [food] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public partialUpdateFood(id: string, food?: Food, options?: any) { return ApiApiFp(this.configuration).partialUpdateFood(id, food, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this import log. * @param {ImportLog} [importLog] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public partialUpdateImportLog(id: string, importLog?: ImportLog, options?: any) { return ApiApiFp(this.configuration).partialUpdateImportLog(id, importLog, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this ingredient. * @param {Ingredient} [ingredient] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public partialUpdateIngredient(id: string, ingredient?: Ingredient, options?: any) { return ApiApiFp(this.configuration).partialUpdateIngredient(id, ingredient, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this keyword. * @param {Keyword} [keyword] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public partialUpdateKeyword(id: string, keyword?: Keyword, options?: any) { return ApiApiFp(this.configuration).partialUpdateKeyword(id, keyword, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this meal plan. * @param {MealPlan} [mealPlan] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public partialUpdateMealPlan(id: string, mealPlan?: MealPlan, options?: any) { return ApiApiFp(this.configuration).partialUpdateMealPlan(id, mealPlan, options).then((request) => request(this.axios, this.basePath)); } /** * returns list of meal types created by the requesting user ordered by the order field. * @param {string} id A unique integer value identifying this meal type. * @param {MealType} [mealType] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public partialUpdateMealType(id: string, mealType?: MealType, options?: any) { return ApiApiFp(this.configuration).partialUpdateMealType(id, mealType, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this recipe. * @param {Recipe} [recipe] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public partialUpdateRecipe(id: string, recipe?: Recipe, options?: any) { return ApiApiFp(this.configuration).partialUpdateRecipe(id, recipe, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this recipe book. * @param {RecipeBook} [recipeBook] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public partialUpdateRecipeBook(id: string, recipeBook?: RecipeBook, options?: any) { return ApiApiFp(this.configuration).partialUpdateRecipeBook(id, recipeBook, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this recipe book entry. * @param {RecipeBookEntry} [recipeBookEntry] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public partialUpdateRecipeBookEntry(id: string, recipeBookEntry?: RecipeBookEntry, options?: any) { return ApiApiFp(this.configuration).partialUpdateRecipeBookEntry(id, recipeBookEntry, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this shopping list. * @param {ShoppingList} [shoppingList] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public partialUpdateShoppingList(id: string, shoppingList?: ShoppingList, options?: any) { return ApiApiFp(this.configuration).partialUpdateShoppingList(id, shoppingList, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this shopping list entry. * @param {ShoppingListEntry} [shoppingListEntry] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public partialUpdateShoppingListEntry(id: string, shoppingListEntry?: ShoppingListEntry, options?: any) { return ApiApiFp(this.configuration).partialUpdateShoppingListEntry(id, shoppingListEntry, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this shopping list recipe. * @param {ShoppingListRecipe} [shoppingListRecipe] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public partialUpdateShoppingListRecipe(id: string, shoppingListRecipe?: ShoppingListRecipe, options?: any) { return ApiApiFp(this.configuration).partialUpdateShoppingListRecipe(id, shoppingListRecipe, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this step. * @param {Step} [step] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public partialUpdateStep(id: string, step?: Step, options?: any) { return ApiApiFp(this.configuration).partialUpdateStep(id, step, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this storage. * @param {Storage} [storage] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public partialUpdateStorage(id: string, storage?: Storage, options?: any) { return ApiApiFp(this.configuration).partialUpdateStorage(id, storage, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this supermarket. * @param {Supermarket} [supermarket] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public partialUpdateSupermarket(id: string, supermarket?: Supermarket, options?: any) { return ApiApiFp(this.configuration).partialUpdateSupermarket(id, supermarket, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this supermarket category. * @param {SupermarketCategory} [supermarketCategory] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public partialUpdateSupermarketCategory(id: string, supermarketCategory?: SupermarketCategory, options?: any) { return ApiApiFp(this.configuration).partialUpdateSupermarketCategory(id, supermarketCategory, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this supermarket category relation. * @param {SupermarketCategoryRelation} [supermarketCategoryRelation] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public partialUpdateSupermarketCategoryRelation(id: string, supermarketCategoryRelation?: SupermarketCategoryRelation, options?: any) { return ApiApiFp(this.configuration).partialUpdateSupermarketCategoryRelation(id, supermarketCategoryRelation, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this sync. * @param {Sync} [sync] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public partialUpdateSync(id: string, sync?: Sync, options?: any) { return ApiApiFp(this.configuration).partialUpdateSync(id, sync, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this unit. * @param {Unit} [unit] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public partialUpdateUnit(id: string, unit?: Unit, options?: any) { return ApiApiFp(this.configuration).partialUpdateUnit(id, unit, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this user file. * @param {string} name * @param {any} [file] * @param {number} [fileSizeKb] * @param {number} [id2] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public partialUpdateUserFile(id: string, name: string, file?: any, fileSizeKb?: number, id2?: number, options?: any) { return ApiApiFp(this.configuration).partialUpdateUserFile(id, name, file, fileSizeKb, id2, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} user A unique value identifying this user preference. * @param {UserPreference} [userPreference] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public partialUpdateUserPreference(user: string, userPreference?: UserPreference, options?: any) { return ApiApiFp(this.configuration).partialUpdateUserPreference(user, userPreference, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this view log. * @param {ViewLog} [viewLog] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public partialUpdateViewLog(id: string, viewLog?: ViewLog, options?: any) { return ApiApiFp(this.configuration).partialUpdateViewLog(id, viewLog, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this bookmarklet import. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public retrieveBookmarkletImport(id: string, options?: any) { return ApiApiFp(this.configuration).retrieveBookmarkletImport(id, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this cook log. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public retrieveCookLog(id: string, options?: any) { return ApiApiFp(this.configuration).retrieveCookLog(id, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this food. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public retrieveFood(id: string, options?: any) { return ApiApiFp(this.configuration).retrieveFood(id, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this import log. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public retrieveImportLog(id: string, options?: any) { return ApiApiFp(this.configuration).retrieveImportLog(id, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this ingredient. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public retrieveIngredient(id: string, options?: any) { return ApiApiFp(this.configuration).retrieveIngredient(id, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this keyword. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public retrieveKeyword(id: string, options?: any) { return ApiApiFp(this.configuration).retrieveKeyword(id, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this meal plan. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public retrieveMealPlan(id: string, options?: any) { return ApiApiFp(this.configuration).retrieveMealPlan(id, options).then((request) => request(this.axios, this.basePath)); } /** * returns list of meal types created by the requesting user ordered by the order field. * @param {string} id A unique integer value identifying this meal type. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public retrieveMealType(id: string, options?: any) { return ApiApiFp(this.configuration).retrieveMealType(id, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this recipe. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public retrieveRecipe(id: string, options?: any) { return ApiApiFp(this.configuration).retrieveRecipe(id, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this recipe book. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public retrieveRecipeBook(id: string, options?: any) { return ApiApiFp(this.configuration).retrieveRecipeBook(id, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this recipe book entry. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public retrieveRecipeBookEntry(id: string, options?: any) { return ApiApiFp(this.configuration).retrieveRecipeBookEntry(id, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this shopping list. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public retrieveShoppingList(id: string, options?: any) { return ApiApiFp(this.configuration).retrieveShoppingList(id, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this shopping list entry. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public retrieveShoppingListEntry(id: string, options?: any) { return ApiApiFp(this.configuration).retrieveShoppingListEntry(id, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this shopping list recipe. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public retrieveShoppingListRecipe(id: string, options?: any) { return ApiApiFp(this.configuration).retrieveShoppingListRecipe(id, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this step. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public retrieveStep(id: string, options?: any) { return ApiApiFp(this.configuration).retrieveStep(id, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this storage. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public retrieveStorage(id: string, options?: any) { return ApiApiFp(this.configuration).retrieveStorage(id, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this supermarket. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public retrieveSupermarket(id: string, options?: any) { return ApiApiFp(this.configuration).retrieveSupermarket(id, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this supermarket category. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public retrieveSupermarketCategory(id: string, options?: any) { return ApiApiFp(this.configuration).retrieveSupermarketCategory(id, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this supermarket category relation. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public retrieveSupermarketCategoryRelation(id: string, options?: any) { return ApiApiFp(this.configuration).retrieveSupermarketCategoryRelation(id, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this sync. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public retrieveSync(id: string, options?: any) { return ApiApiFp(this.configuration).retrieveSync(id, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this sync log. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public retrieveSyncLog(id: string, options?: any) { return ApiApiFp(this.configuration).retrieveSyncLog(id, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this unit. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public retrieveUnit(id: string, options?: any) { return ApiApiFp(this.configuration).retrieveUnit(id, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this user. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public retrieveUser(id: string, options?: any) { return ApiApiFp(this.configuration).retrieveUser(id, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this user file. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public retrieveUserFile(id: string, options?: any) { return ApiApiFp(this.configuration).retrieveUserFile(id, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} user A unique value identifying this user preference. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public retrieveUserPreference(user: string, options?: any) { return ApiApiFp(this.configuration).retrieveUserPreference(user, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this view log. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public retrieveViewLog(id: string, options?: any) { return ApiApiFp(this.configuration).retrieveViewLog(id, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this bookmarklet import. * @param {BookmarkletImport} [bookmarkletImport] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public updateBookmarkletImport(id: string, bookmarkletImport?: BookmarkletImport, options?: any) { return ApiApiFp(this.configuration).updateBookmarkletImport(id, bookmarkletImport, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this cook log. * @param {CookLog} [cookLog] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public updateCookLog(id: string, cookLog?: CookLog, options?: any) { return ApiApiFp(this.configuration).updateCookLog(id, cookLog, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this food. * @param {Food} [food] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public updateFood(id: string, food?: Food, options?: any) { return ApiApiFp(this.configuration).updateFood(id, food, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this import log. * @param {ImportLog} [importLog] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public updateImportLog(id: string, importLog?: ImportLog, options?: any) { return ApiApiFp(this.configuration).updateImportLog(id, importLog, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this ingredient. * @param {Ingredient} [ingredient] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public updateIngredient(id: string, ingredient?: Ingredient, options?: any) { return ApiApiFp(this.configuration).updateIngredient(id, ingredient, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this keyword. * @param {Keyword} [keyword] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public updateKeyword(id: string, keyword?: Keyword, options?: any) { return ApiApiFp(this.configuration).updateKeyword(id, keyword, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this meal plan. * @param {MealPlan} [mealPlan] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public updateMealPlan(id: string, mealPlan?: MealPlan, options?: any) { return ApiApiFp(this.configuration).updateMealPlan(id, mealPlan, options).then((request) => request(this.axios, this.basePath)); } /** * returns list of meal types created by the requesting user ordered by the order field. * @param {string} id A unique integer value identifying this meal type. * @param {MealType} [mealType] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public updateMealType(id: string, mealType?: MealType, options?: any) { return ApiApiFp(this.configuration).updateMealType(id, mealType, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this recipe. * @param {Recipe} [recipe] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public updateRecipe(id: string, recipe?: Recipe, options?: any) { return ApiApiFp(this.configuration).updateRecipe(id, recipe, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this recipe book. * @param {RecipeBook} [recipeBook] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public updateRecipeBook(id: string, recipeBook?: RecipeBook, options?: any) { return ApiApiFp(this.configuration).updateRecipeBook(id, recipeBook, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this recipe book entry. * @param {RecipeBookEntry} [recipeBookEntry] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public updateRecipeBookEntry(id: string, recipeBookEntry?: RecipeBookEntry, options?: any) { return ApiApiFp(this.configuration).updateRecipeBookEntry(id, recipeBookEntry, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this shopping list. * @param {ShoppingList} [shoppingList] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public updateShoppingList(id: string, shoppingList?: ShoppingList, options?: any) { return ApiApiFp(this.configuration).updateShoppingList(id, shoppingList, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this shopping list entry. * @param {ShoppingListEntry} [shoppingListEntry] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public updateShoppingListEntry(id: string, shoppingListEntry?: ShoppingListEntry, options?: any) { return ApiApiFp(this.configuration).updateShoppingListEntry(id, shoppingListEntry, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this shopping list recipe. * @param {ShoppingListRecipe} [shoppingListRecipe] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public updateShoppingListRecipe(id: string, shoppingListRecipe?: ShoppingListRecipe, options?: any) { return ApiApiFp(this.configuration).updateShoppingListRecipe(id, shoppingListRecipe, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this step. * @param {Step} [step] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public updateStep(id: string, step?: Step, options?: any) { return ApiApiFp(this.configuration).updateStep(id, step, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this storage. * @param {Storage} [storage] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public updateStorage(id: string, storage?: Storage, options?: any) { return ApiApiFp(this.configuration).updateStorage(id, storage, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this supermarket. * @param {Supermarket} [supermarket] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public updateSupermarket(id: string, supermarket?: Supermarket, options?: any) { return ApiApiFp(this.configuration).updateSupermarket(id, supermarket, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this supermarket category. * @param {SupermarketCategory} [supermarketCategory] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public updateSupermarketCategory(id: string, supermarketCategory?: SupermarketCategory, options?: any) { return ApiApiFp(this.configuration).updateSupermarketCategory(id, supermarketCategory, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this supermarket category relation. * @param {SupermarketCategoryRelation} [supermarketCategoryRelation] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public updateSupermarketCategoryRelation(id: string, supermarketCategoryRelation?: SupermarketCategoryRelation, options?: any) { return ApiApiFp(this.configuration).updateSupermarketCategoryRelation(id, supermarketCategoryRelation, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this sync. * @param {Sync} [sync] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public updateSync(id: string, sync?: Sync, options?: any) { return ApiApiFp(this.configuration).updateSync(id, sync, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this unit. * @param {Unit} [unit] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public updateUnit(id: string, unit?: Unit, options?: any) { return ApiApiFp(this.configuration).updateUnit(id, unit, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this user file. * @param {string} name * @param {any} [file] * @param {number} [fileSizeKb] * @param {number} [id2] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public updateUserFile(id: string, name: string, file?: any, fileSizeKb?: number, id2?: number, options?: any) { return ApiApiFp(this.configuration).updateUserFile(id, name, file, fileSizeKb, id2, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} user A unique value identifying this user preference. * @param {UserPreference} [userPreference] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public updateUserPreference(user: string, userPreference?: UserPreference, options?: any) { return ApiApiFp(this.configuration).updateUserPreference(user, userPreference, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this view log. * @param {ViewLog} [viewLog] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public updateViewLog(id: string, viewLog?: ViewLog, options?: any) { return ApiApiFp(this.configuration).updateViewLog(id, viewLog, options).then((request) => request(this.axios, this.basePath)); } }