/* 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 AuthToken */ export interface AuthToken { /** * * @type {string} * @memberof AuthToken */ username: string; /** * * @type {string} * @memberof AuthToken */ password: string; /** * * @type {string} * @memberof AuthToken */ token?: string; } /** * * @export * @interface Automation */ export interface Automation { /** * * @type {number} * @memberof Automation */ id?: number; /** * * @type {string} * @memberof Automation */ type: AutomationTypeEnum; /** * * @type {string} * @memberof Automation */ name?: string; /** * * @type {string} * @memberof Automation */ description?: string | null; /** * * @type {string} * @memberof Automation */ param_1?: string | null; /** * * @type {string} * @memberof Automation */ param_2?: string | null; /** * * @type {string} * @memberof Automation */ param_3?: string | null; /** * * @type {boolean} * @memberof Automation */ disabled?: boolean; /** * * @type {string} * @memberof Automation */ created_by?: string; } /** * @export * @enum {string} */ export enum AutomationTypeEnum { FoodAlias = 'FOOD_ALIAS', UnitAlias = 'UNIT_ALIAS', KeywordAlias = 'KEYWORD_ALIAS' } /** * * @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 BookmarkletImportList */ export interface BookmarkletImportList { /** * * @type {number} * @memberof BookmarkletImportList */ id?: number; /** * * @type {string} * @memberof BookmarkletImportList */ url?: string | null; /** * * @type {string} * @memberof BookmarkletImportList */ created_by?: string; /** * * @type {string} * @memberof BookmarkletImportList */ 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 CustomFilter */ export interface CustomFilter { /** * * @type {number} * @memberof CustomFilter */ id?: number; /** * * @type {string} * @memberof CustomFilter */ name: string; /** * * @type {string} * @memberof CustomFilter */ search: string; /** * * @type {Array} * @memberof CustomFilter */ shared?: Array; /** * * @type {string} * @memberof CustomFilter */ created_by?: string; } /** * * @export * @interface CustomFilterShared */ export interface CustomFilterShared { /** * * @type {number} * @memberof CustomFilterShared */ id?: number; /** * Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. * @type {string} * @memberof CustomFilterShared */ username?: string; /** * * @type {string} * @memberof CustomFilterShared */ first_name?: string; /** * * @type {string} * @memberof CustomFilterShared */ last_name?: string; /** * * @type {string} * @memberof CustomFilterShared */ display_name?: string; } /** * * @export * @interface ExportLog */ export interface ExportLog { /** * * @type {number} * @memberof ExportLog */ id?: number; /** * * @type {string} * @memberof ExportLog */ type: string; /** * * @type {string} * @memberof ExportLog */ msg?: string; /** * * @type {boolean} * @memberof ExportLog */ running?: boolean; /** * * @type {number} * @memberof ExportLog */ total_recipes?: number; /** * * @type {number} * @memberof ExportLog */ exported_recipes?: number; /** * * @type {number} * @memberof ExportLog */ cache_duration?: number; /** * * @type {boolean} * @memberof ExportLog */ possibly_not_expired?: boolean; /** * * @type {string} * @memberof ExportLog */ created_by?: string; /** * * @type {string} * @memberof ExportLog */ 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 {string} * @memberof Food */ shopping?: string; /** * * @type {FoodRecipe} * @memberof Food */ recipe?: FoodRecipe | null; /** * * @type {string} * @memberof Food */ food_onhand?: string | null; /** * * @type {FoodSupermarketCategory} * @memberof Food */ supermarket_category?: FoodSupermarketCategory | null; /** * * @type {string} * @memberof Food */ parent?: string; /** * * @type {number} * @memberof Food */ numchild?: number; /** * * @type {Array} * @memberof Food */ inherit_fields?: Array | null; /** * * @type {string} * @memberof Food */ full_name?: string; /** * * @type {boolean} * @memberof Food */ ignore_shopping?: boolean; /** * * @type {Array} * @memberof Food */ substitute?: Array | null; /** * * @type {boolean} * @memberof Food */ substitute_siblings?: boolean; /** * * @type {boolean} * @memberof Food */ substitute_children?: boolean; /** * * @type {string} * @memberof Food */ substitute_onhand?: string; /** * * @type {Array} * @memberof Food */ child_inherit_fields?: Array | null; } /** * * @export * @interface FoodInheritField */ export interface FoodInheritField { /** * * @type {number} * @memberof FoodInheritField */ id?: number; /** * * @type {string} * @memberof FoodInheritField */ name?: string | null; /** * * @type {string} * @memberof FoodInheritField */ field?: string | null; } /** * * @export * @interface FoodInheritFields */ export interface FoodInheritFields { /** * * @type {number} * @memberof FoodInheritFields */ id?: number; /** * * @type {string} * @memberof FoodInheritFields */ name?: string | null; /** * * @type {string} * @memberof FoodInheritFields */ field?: string | null; } /** * * @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 FoodShoppingUpdate */ export interface FoodShoppingUpdate { /** * * @type {number} * @memberof FoodShoppingUpdate */ id?: number; /** * Amount of food to add to the shopping list * @type {number} * @memberof FoodShoppingUpdate */ amount?: number | null; /** * ID of unit to use for the shopping list * @type {number} * @memberof FoodShoppingUpdate */ unit?: number | null; /** * When set to true will delete all food from active shopping lists. * @type {string} * @memberof FoodShoppingUpdate */ _delete: FoodShoppingUpdateDeleteEnum; } /** * @export * @enum {string} */ export enum FoodShoppingUpdateDeleteEnum { True = 'true' } /** * * @export * @interface FoodSubstitute */ export interface FoodSubstitute { /** * * @type {number} * @memberof FoodSubstitute */ id?: number; /** * * @type {string} * @memberof FoodSubstitute */ name: string; } /** * * @export * @interface FoodSupermarketCategory */ export interface FoodSupermarketCategory { /** * * @type {number} * @memberof FoodSupermarketCategory */ id?: number; /** * * @type {string} * @memberof FoodSupermarketCategory */ name: string; /** * * @type {string} * @memberof FoodSupermarketCategory */ description?: string | null; } /** * * @export * @interface Group */ export interface Group { /** * * @type {number} * @memberof Group */ id?: number; /** * * @type {string} * @memberof Group */ 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 */ parent?: string; /** * * @type {number} * @memberof ImportLogKeyword */ numchild?: number; /** * * @type {string} * @memberof ImportLogKeyword */ created_at?: string; /** * * @type {string} * @memberof ImportLogKeyword */ updated_at?: string; /** * * @type {string} * @memberof ImportLogKeyword */ full_name?: string; } /** * * @export * @interface Ingredient */ export interface Ingredient { /** * * @type {number} * @memberof Ingredient */ id?: number; /** * * @type {IngredientFood} * @memberof Ingredient */ food: IngredientFood | null; /** * * @type {FoodSupermarketCategory} * @memberof Ingredient */ unit: FoodSupermarketCategory | 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; /** * * @type {string} * @memberof Ingredient */ original_text?: string | null; /** * * @type {string} * @memberof Ingredient */ used_in_recipes?: string; } /** * * @export * @interface IngredientFood */ export interface IngredientFood { /** * * @type {number} * @memberof IngredientFood */ id?: number; /** * * @type {string} * @memberof IngredientFood */ name: string; /** * * @type {string} * @memberof IngredientFood */ description?: string; /** * * @type {string} * @memberof IngredientFood */ shopping?: string; /** * * @type {FoodRecipe} * @memberof IngredientFood */ recipe?: FoodRecipe | null; /** * * @type {string} * @memberof IngredientFood */ food_onhand?: string | null; /** * * @type {FoodSupermarketCategory} * @memberof IngredientFood */ supermarket_category?: FoodSupermarketCategory | null; /** * * @type {string} * @memberof IngredientFood */ parent?: string; /** * * @type {number} * @memberof IngredientFood */ numchild?: number; /** * * @type {Array} * @memberof IngredientFood */ inherit_fields?: Array | null; /** * * @type {string} * @memberof IngredientFood */ full_name?: string; /** * * @type {boolean} * @memberof IngredientFood */ ignore_shopping?: boolean; /** * * @type {Array} * @memberof IngredientFood */ substitute?: Array | null; /** * * @type {boolean} * @memberof IngredientFood */ substitute_siblings?: boolean; /** * * @type {boolean} * @memberof IngredientFood */ substitute_children?: boolean; /** * * @type {string} * @memberof IngredientFood */ substitute_onhand?: string; /** * * @type {Array} * @memberof IngredientFood */ child_inherit_fields?: Array | null; } /** * * @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 InlineResponse20010 */ export interface InlineResponse20010 { /** * * @type {number} * @memberof InlineResponse20010 */ count?: number; /** * * @type {string} * @memberof InlineResponse20010 */ next?: string | null; /** * * @type {string} * @memberof InlineResponse20010 */ previous?: string | null; /** * * @type {Array} * @memberof InlineResponse20010 */ results?: Array; } /** * * @export * @interface InlineResponse20011 */ export interface InlineResponse20011 { /** * * @type {number} * @memberof InlineResponse20011 */ count?: number; /** * * @type {string} * @memberof InlineResponse20011 */ next?: string | null; /** * * @type {string} * @memberof InlineResponse20011 */ previous?: string | null; /** * * @type {Array} * @memberof InlineResponse20011 */ 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 InlineResponse2009 */ export interface InlineResponse2009 { /** * * @type {number} * @memberof InlineResponse2009 */ count?: number; /** * * @type {string} * @memberof InlineResponse2009 */ next?: string | null; /** * * @type {string} * @memberof InlineResponse2009 */ previous?: string | null; /** * * @type {Array} * @memberof InlineResponse2009 */ results?: Array; } /** * * @export * @interface InviteLink */ export interface InviteLink { /** * * @type {number} * @memberof InviteLink */ id?: number; /** * * @type {string} * @memberof InviteLink */ uuid?: string; /** * * @type {string} * @memberof InviteLink */ email?: string; /** * * @type {InviteLinkGroup} * @memberof InviteLink */ group: InviteLinkGroup; /** * * @type {string} * @memberof InviteLink */ valid_until?: string; /** * * @type {number} * @memberof InviteLink */ used_by?: number | null; /** * * @type {boolean} * @memberof InviteLink */ reusable?: boolean; /** * * @type {string} * @memberof InviteLink */ created_by?: string; /** * * @type {string} * @memberof InviteLink */ created_at?: string; } /** * * @export * @interface InviteLinkGroup */ export interface InviteLinkGroup { /** * * @type {number} * @memberof InviteLinkGroup */ id?: number; /** * * @type {string} * @memberof InviteLinkGroup */ name: string; } /** * * @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 */ parent?: string; /** * * @type {number} * @memberof Keyword */ numchild?: number; /** * * @type {string} * @memberof Keyword */ created_at?: string; /** * * @type {string} * @memberof Keyword */ updated_at?: string; /** * * @type {string} * @memberof Keyword */ full_name?: 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 {MealPlanMealType} * @memberof MealPlan */ meal_type: MealPlanMealType; /** * * @type {string} * @memberof MealPlan */ created_by?: string; /** * * @type {Array} * @memberof MealPlan */ shared?: Array | null; /** * * @type {string} * @memberof MealPlan */ recipe_name?: string; /** * * @type {string} * @memberof MealPlan */ meal_type_name?: string; /** * * @type {string} * @memberof MealPlan */ shopping?: string; } /** * * @export * @interface MealPlanMealType */ export interface MealPlanMealType { /** * * @type {number} * @memberof MealPlanMealType */ id?: number; /** * * @type {string} * @memberof MealPlanMealType */ name: string; /** * * @type {number} * @memberof MealPlanMealType */ order?: number; /** * * @type {string} * @memberof MealPlanMealType */ icon?: string | null; /** * * @type {string} * @memberof MealPlanMealType */ color?: string | null; /** * * @type {boolean} * @memberof MealPlanMealType */ _default?: boolean; /** * * @type {string} * @memberof MealPlanMealType */ created_by?: 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 | null; /** * * @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; /** * * @type {string} * @memberof MealPlanRecipe */ recent?: string; } /** * * @export * @interface MealPlanRecipeKeywords */ export interface MealPlanRecipeKeywords { /** * * @type {number} * @memberof MealPlanRecipeKeywords */ id?: number; /** * * @type {string} * @memberof MealPlanRecipeKeywords */ label?: 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 */ icon?: string | null; /** * * @type {string} * @memberof MealType */ color?: string | null; /** * * @type {boolean} * @memberof MealType */ _default?: boolean; /** * * @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 | null; /** * * @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 {string} * @memberof Recipe */ source_url?: string | null; /** * * @type {boolean} * @memberof Recipe */ internal?: boolean; /** * * @type {boolean} * @memberof Recipe */ show_ingredient_overview?: 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; /** * * @type {boolean} * @memberof Recipe */ _private?: boolean; /** * * @type {Array} * @memberof Recipe */ shared?: Array; } /** * * @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; /** * * @type {RecipeBookFilter} * @memberof RecipeBook */ filter?: RecipeBookFilter | null; } /** * * @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 RecipeBookFilter */ export interface RecipeBookFilter { /** * * @type {number} * @memberof RecipeBookFilter */ id?: number; /** * * @type {string} * @memberof RecipeBookFilter */ name: string; /** * * @type {string} * @memberof RecipeBookFilter */ search: string; /** * * @type {Array} * @memberof RecipeBookFilter */ shared?: Array; /** * * @type {string} * @memberof RecipeBookFilter */ created_by?: string; } /** * * @export * @interface RecipeFile */ export interface RecipeFile { /** * * @type {number} * @memberof RecipeFile */ id?: number; /** * * @type {string} * @memberof RecipeFile */ name: string; /** * * @type {string} * @memberof RecipeFile */ file_download?: string; /** * * @type {string} * @memberof RecipeFile */ preview?: string; } /** * * @export * @interface RecipeImage */ export interface RecipeImage { /** * * @type {any} * @memberof RecipeImage */ image?: any | null; /** * * @type {string} * @memberof RecipeImage */ image_url?: string | null; } /** * * @export * @interface RecipeIngredients */ export interface RecipeIngredients { /** * * @type {number} * @memberof RecipeIngredients */ id?: number; /** * * @type {IngredientFood} * @memberof RecipeIngredients */ food: IngredientFood | null; /** * * @type {FoodSupermarketCategory} * @memberof RecipeIngredients */ unit: FoodSupermarketCategory | null; /** * * @type {string} * @memberof RecipeIngredients */ amount: string; /** * * @type {string} * @memberof RecipeIngredients */ note?: string | null; /** * * @type {number} * @memberof RecipeIngredients */ order?: number; /** * * @type {boolean} * @memberof RecipeIngredients */ is_header?: boolean; /** * * @type {boolean} * @memberof RecipeIngredients */ no_amount?: boolean; /** * * @type {string} * @memberof RecipeIngredients */ original_text?: string | null; /** * * @type {string} * @memberof RecipeIngredients */ used_in_recipes?: string; } /** * * @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 */ parent?: string; /** * * @type {number} * @memberof RecipeKeywords */ numchild?: number; /** * * @type {string} * @memberof RecipeKeywords */ created_at?: string; /** * * @type {string} * @memberof RecipeKeywords */ updated_at?: string; /** * * @type {string} * @memberof RecipeKeywords */ full_name?: 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 | null; /** * * @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; /** * * @type {string} * @memberof RecipeOverview */ recent?: string; } /** * * @export * @interface RecipeShoppingUpdate */ export interface RecipeShoppingUpdate { /** * * @type {number} * @memberof RecipeShoppingUpdate */ id?: number; /** * Existing shopping list to update * @type {number} * @memberof RecipeShoppingUpdate */ list_recipe?: number | null; /** * List of ingredient IDs from the recipe to add, if not provided all ingredients will be added. * @type {number} * @memberof RecipeShoppingUpdate */ ingredients?: number | null; /** * Providing a list_recipe ID and servings of 0 will delete that shopping list. * @type {number} * @memberof RecipeShoppingUpdate */ servings?: number | null; } /** * * @export * @interface RecipeSimple */ export interface RecipeSimple { /** * * @type {number} * @memberof RecipeSimple */ id?: number; /** * * @type {string} * @memberof RecipeSimple */ name: string; /** * * @type {string} * @memberof RecipeSimple */ url?: string; } /** * * @export * @interface RecipeSteps */ export interface RecipeSteps { /** * * @type {number} * @memberof RecipeSteps */ id?: number; /** * * @type {string} * @memberof RecipeSteps */ name?: string; /** * * @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 {RecipeFile} * @memberof RecipeSteps */ file?: RecipeFile | null; /** * * @type {number} * @memberof RecipeSteps */ step_recipe?: number | null; /** * * @type {string} * @memberof RecipeSteps */ step_recipe_data?: string; /** * * @type {string} * @memberof RecipeSteps */ numrecipe?: string; } /** * * @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 ShoppingListCreatedBy */ export interface ShoppingListCreatedBy { /** * * @type {number} * @memberof ShoppingListCreatedBy */ id?: number; /** * Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. * @type {string} * @memberof ShoppingListCreatedBy */ username?: string; /** * * @type {string} * @memberof ShoppingListCreatedBy */ first_name?: string; /** * * @type {string} * @memberof ShoppingListCreatedBy */ last_name?: string; /** * * @type {string} * @memberof ShoppingListCreatedBy */ display_name?: string; } /** * * @export * @interface ShoppingListEntries */ export interface ShoppingListEntries { /** * * @type {number} * @memberof ShoppingListEntries */ id?: number; /** * * @type {number} * @memberof ShoppingListEntries */ list_recipe?: number | null; /** * * @type {IngredientFood} * @memberof ShoppingListEntries */ food: IngredientFood | null; /** * * @type {FoodSupermarketCategory} * @memberof ShoppingListEntries */ unit?: FoodSupermarketCategory | null; /** * * @type {number} * @memberof ShoppingListEntries */ ingredient?: number | null; /** * * @type {string} * @memberof ShoppingListEntries */ ingredient_note?: string; /** * * @type {string} * @memberof ShoppingListEntries */ amount: string; /** * * @type {number} * @memberof ShoppingListEntries */ order?: number; /** * * @type {boolean} * @memberof ShoppingListEntries */ checked?: boolean; /** * * @type {ShoppingListRecipeMealplan} * @memberof ShoppingListEntries */ recipe_mealplan?: ShoppingListRecipeMealplan; /** * * @type {ShoppingListCreatedBy} * @memberof ShoppingListEntries */ created_by?: ShoppingListCreatedBy; /** * * @type {string} * @memberof ShoppingListEntries */ created_at?: string; /** * * @type {string} * @memberof ShoppingListEntries */ completed_at?: string | null; /** * * @type {string} * @memberof ShoppingListEntries */ delay_until?: string | null; } /** * * @export * @interface ShoppingListEntry */ export interface ShoppingListEntry { /** * * @type {number} * @memberof ShoppingListEntry */ id?: number; /** * * @type {number} * @memberof ShoppingListEntry */ list_recipe?: number | null; /** * * @type {IngredientFood} * @memberof ShoppingListEntry */ food: IngredientFood | null; /** * * @type {FoodSupermarketCategory} * @memberof ShoppingListEntry */ unit?: FoodSupermarketCategory | null; /** * * @type {number} * @memberof ShoppingListEntry */ ingredient?: number | null; /** * * @type {string} * @memberof ShoppingListEntry */ ingredient_note?: string; /** * * @type {string} * @memberof ShoppingListEntry */ amount: string; /** * * @type {number} * @memberof ShoppingListEntry */ order?: number; /** * * @type {boolean} * @memberof ShoppingListEntry */ checked?: boolean; /** * * @type {ShoppingListRecipeMealplan} * @memberof ShoppingListEntry */ recipe_mealplan?: ShoppingListRecipeMealplan; /** * * @type {ShoppingListCreatedBy} * @memberof ShoppingListEntry */ created_by?: ShoppingListCreatedBy; /** * * @type {string} * @memberof ShoppingListEntry */ created_at?: string; /** * * @type {string} * @memberof ShoppingListEntry */ completed_at?: string | null; /** * * @type {string} * @memberof ShoppingListEntry */ delay_until?: string | null; } /** * * @export * @interface ShoppingListRecipe */ export interface ShoppingListRecipe { /** * * @type {number} * @memberof ShoppingListRecipe */ id?: number; /** * * @type {string} * @memberof ShoppingListRecipe */ recipe_name?: string; /** * * @type {string} * @memberof ShoppingListRecipe */ name?: string; /** * * @type {number} * @memberof ShoppingListRecipe */ recipe?: number | null; /** * * @type {number} * @memberof ShoppingListRecipe */ mealplan?: number | null; /** * * @type {string} * @memberof ShoppingListRecipe */ servings: string; /** * * @type {string} * @memberof ShoppingListRecipe */ mealplan_note?: string; } /** * * @export * @interface ShoppingListRecipeMealplan */ export interface ShoppingListRecipeMealplan { /** * * @type {number} * @memberof ShoppingListRecipeMealplan */ id?: number; /** * * @type {string} * @memberof ShoppingListRecipeMealplan */ recipe_name?: string; /** * * @type {string} * @memberof ShoppingListRecipeMealplan */ name?: string; /** * * @type {number} * @memberof ShoppingListRecipeMealplan */ recipe?: number | null; /** * * @type {number} * @memberof ShoppingListRecipeMealplan */ mealplan?: number | null; /** * * @type {string} * @memberof ShoppingListRecipeMealplan */ servings: string; /** * * @type {string} * @memberof ShoppingListRecipeMealplan */ mealplan_note?: string; } /** * * @export * @interface ShoppingListRecipes */ export interface ShoppingListRecipes { /** * * @type {number} * @memberof ShoppingListRecipes */ id?: number; /** * * @type {string} * @memberof ShoppingListRecipes */ recipe_name?: string; /** * * @type {string} * @memberof ShoppingListRecipes */ name?: string; /** * * @type {number} * @memberof ShoppingListRecipes */ recipe?: number | null; /** * * @type {number} * @memberof ShoppingListRecipes */ mealplan?: number | null; /** * * @type {string} * @memberof ShoppingListRecipes */ servings: string; /** * * @type {string} * @memberof ShoppingListRecipes */ mealplan_note?: string; } /** * * @export * @interface ShoppingListSupermarket */ export interface ShoppingListSupermarket { /** * * @type {number} * @memberof ShoppingListSupermarket */ id?: number; /** * * @type {string} * @memberof ShoppingListSupermarket */ name: string; /** * * @type {string} * @memberof ShoppingListSupermarket */ description?: string | null; /** * * @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; /** * * @type {string} * @memberof ShoppingListSupermarketCategory */ description?: string | null; } /** * * @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 Space */ export interface Space { /** * * @type {number} * @memberof Space */ id?: number; /** * * @type {string} * @memberof Space */ name?: string; /** * * @type {string} * @memberof Space */ created_by?: string | null; /** * * @type {string} * @memberof Space */ created_at?: string; /** * * @type {string} * @memberof Space */ message?: string; /** * * @type {number} * @memberof Space */ max_recipes?: number; /** * Maximum file storage for space in MB. 0 for unlimited, -1 to disable file upload. * @type {number} * @memberof Space */ max_file_storage_mb?: number; /** * * @type {number} * @memberof Space */ max_users?: number; /** * * @type {boolean} * @memberof Space */ allow_sharing?: boolean; /** * * @type {boolean} * @memberof Space */ demo?: boolean; /** * * @type {Array} * @memberof Space */ food_inherit: Array; /** * * @type {boolean} * @memberof Space */ show_facet_count?: boolean; /** * * @type {string} * @memberof Space */ user_count?: string; /** * * @type {string} * @memberof Space */ recipe_count?: string; /** * * @type {string} * @memberof Space */ file_size_mb?: string; /** * * @type {SpaceImage} * @memberof Space */ image?: SpaceImage; } /** * * @export * @interface SpaceImage */ export interface SpaceImage { /** * * @type {number} * @memberof SpaceImage */ id?: number; /** * * @type {string} * @memberof SpaceImage */ name: string; /** * * @type {string} * @memberof SpaceImage */ file_download?: string; /** * * @type {string} * @memberof SpaceImage */ preview?: string; } /** * * @export * @interface Step */ export interface Step { /** * * @type {number} * @memberof Step */ id?: number; /** * * @type {string} * @memberof Step */ name?: string; /** * * @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 {RecipeFile} * @memberof Step */ file?: RecipeFile | null; /** * * @type {number} * @memberof Step */ step_recipe?: number | null; /** * * @type {string} * @memberof Step */ step_recipe_data?: string; /** * * @type {string} * @memberof Step */ numrecipe?: 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 {string} * @memberof Supermarket */ description?: string | null; /** * * @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; /** * * @type {string} * @memberof SupermarketCategory */ description?: string | null; } /** * * @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; } /** * * @export * @interface User */ export interface User { /** * * @type {number} * @memberof User */ id?: number; /** * Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. * @type {string} * @memberof User */ username?: string; /** * * @type {string} * @memberof User */ first_name?: string; /** * * @type {string} * @memberof User */ last_name?: string; /** * * @type {string} * @memberof User */ display_name?: string; } /** * * @export * @interface UserFile */ export interface UserFile { /** * * @type {number} * @memberof UserFile */ id?: number; /** * * @type {string} * @memberof UserFile */ name: string; /** * * @type {any} * @memberof UserFile */ file: any; /** * * @type {string} * @memberof UserFile */ file_download?: string; /** * * @type {string} * @memberof UserFile */ preview?: string; /** * * @type {number} * @memberof UserFile */ file_size_kb?: number; } /** * * @export * @interface UserPreference */ export interface UserPreference { /** * * @type {number} * @memberof UserPreference */ user: number; /** * * @type {RecipeFile} * @memberof UserPreference */ image?: RecipeFile | null; /** * * @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 {boolean} * @memberof UserPreference */ use_fractions?: boolean; /** * * @type {boolean} * @memberof UserPreference */ use_kj?: boolean; /** * * @type {Array} * @memberof UserPreference */ plan_share?: Array | null; /** * * @type {boolean} * @memberof UserPreference */ sticky_navbar?: boolean; /** * * @type {number} * @memberof UserPreference */ ingredient_decimals?: number; /** * * @type {boolean} * @memberof UserPreference */ comments?: boolean; /** * * @type {number} * @memberof UserPreference */ shopping_auto_sync?: number; /** * * @type {boolean} * @memberof UserPreference */ mealplan_autoadd_shopping?: boolean; /** * * @type {string} * @memberof UserPreference */ food_inherit_default?: string; /** * * @type {string} * @memberof UserPreference */ default_delay?: string; /** * * @type {boolean} * @memberof UserPreference */ mealplan_autoinclude_related?: boolean; /** * * @type {boolean} * @memberof UserPreference */ mealplan_autoexclude_onhand?: boolean; /** * * @type {Array} * @memberof UserPreference */ shopping_share?: Array | null; /** * * @type {number} * @memberof UserPreference */ shopping_recent_days?: number; /** * * @type {string} * @memberof UserPreference */ csv_delim?: string; /** * * @type {string} * @memberof UserPreference */ csv_prefix?: string; /** * * @type {boolean} * @memberof UserPreference */ filter_to_supermarket?: boolean; /** * * @type {boolean} * @memberof UserPreference */ shopping_add_onhand?: boolean; /** * * @type {boolean} * @memberof UserPreference */ left_handed?: boolean; /** * * @type {string} * @memberof UserPreference */ food_children_exist?: string; } /** * @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 * @interface UserSpace */ export interface UserSpace { /** * * @type {number} * @memberof UserSpace */ id?: number; /** * * @type {ShoppingListCreatedBy} * @memberof UserSpace */ user?: ShoppingListCreatedBy; /** * * @type {string} * @memberof UserSpace */ space?: string; /** * * @type {Array} * @memberof UserSpace */ groups: Array; /** * * @type {boolean} * @memberof UserSpace */ active?: boolean; /** * * @type {string} * @memberof UserSpace */ created_at?: string; /** * * @type {string} * @memberof UserSpace */ updated_at?: string; } /** * * @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 {Automation} [automation] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createAutomation: async (automation?: Automation, options: any = {}): Promise => { const localVarPath = `/api/automation/`; // 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(automation, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @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 {CustomFilter} [customFilter] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createCustomFilter: async (customFilter?: CustomFilter, options: any = {}): Promise => { const localVarPath = `/api/custom-filter/`; // 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(customFilter, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {ExportLog} [exportLog] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createExportLog: async (exportLog?: ExportLog, options: any = {}): Promise => { const localVarPath = `/api/export-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(exportLog, 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 {InviteLink} [inviteLink] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createInviteLink: async (inviteLink?: InviteLink, options: any = {}): Promise => { const localVarPath = `/api/invite-link/`; // 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(inviteLink, 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 {User} [user] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createUser: async (user?: User, options: any = {}): Promise => { const localVarPath = `/api/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: '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(user, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} name * @param {any} file * @param {number} [id] * @param {string} [fileDownload] * @param {string} [preview] * @param {number} [fileSizeKb] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createUserFile: async (name: string, file: any, id?: number, fileDownload?: string, preview?: string, fileSizeKb?: number, options: any = {}): Promise => { // verify required parameter 'name' is not null or undefined assertParamExists('createUserFile', 'name', name) // verify required parameter 'file' is not null or undefined assertParamExists('createUserFile', 'file', file) 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 (id !== undefined) { localVarFormParams.append('id', id as any); } if (name !== undefined) { localVarFormParams.append('name', name as any); } if (file !== undefined) { localVarFormParams.append('file', file as any); } if (fileDownload !== undefined) { localVarFormParams.append('file_download', fileDownload as any); } if (preview !== undefined) { localVarFormParams.append('preview', preview as any); } if (fileSizeKb !== undefined) { localVarFormParams.append('file_size_kb', fileSizeKb 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 {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, }; }, /** * function to handle files passed by application importer * @param {any} [body] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createimportFiles: async (body?: any, options: any = {}): Promise => { const localVarPath = `/api/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(body, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * function to retrieve a recipe from a given url or source string :param request: standard request with additional post parameters - url: url to use for importing recipe - data: if no url is given recipe is imported from provided source data - (optional) bookmarklet: id of bookmarklet import to use, overrides URL and data attributes :return: JsonResponse containing the parsed json and images * @param {any} [body] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createrecipeFromSource: async (body?: any, options: any = {}): Promise => { const localVarPath = `/api/recipe-from-source/`; // 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(body, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this automation. * @param {*} [options] Override http request option. * @throws {RequiredError} */ destroyAutomation: async (id: string, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('destroyAutomation', 'id', id) const localVarPath = `/api/automation/{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 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 custom filter. * @param {*} [options] Override http request option. * @throws {RequiredError} */ destroyCustomFilter: async (id: string, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('destroyCustomFilter', 'id', id) const localVarPath = `/api/custom-filter/{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 export log. * @param {*} [options] Override http request option. * @throws {RequiredError} */ destroyExportLog: async (id: string, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('destroyExportLog', 'id', id) const localVarPath = `/api/export-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 invite link. * @param {*} [options] Override http request option. * @throws {RequiredError} */ destroyInviteLink: async (id: string, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('destroyInviteLink', 'id', id) const localVarPath = `/api/invite-link/{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. * @param {*} [options] Override http request option. * @throws {RequiredError} */ destroyUser: async (id: string, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('destroyUser', 'id', id) const localVarPath = `/api/user/{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} id A unique integer value identifying this user space. * @param {*} [options] Override http request option. * @throws {RequiredError} */ destroyUserSpace: async (id: string, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('destroyUserSpace', 'id', id) const localVarPath = `/api/user-space/{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 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 {string} [imageUrl] * @param {*} [options] Override http request option. * @throws {RequiredError} */ imageRecipe: async (id: string, image?: any, imageUrl?: string, 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); } if (imageUrl !== undefined) { localVarFormParams.append('image_url', imageUrl 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} */ listAutomations: async (options: any = {}): Promise => { const localVarPath = `/api/automation/`; // 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} */ 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 {*} [options] Override http request option. * @throws {RequiredError} */ listCustomFilters: async (options: any = {}): Promise => { const localVarPath = `/api/custom-filter/`; // 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} */ listExportLogs: async (page?: number, pageSize?: number, options: any = {}): Promise => { const localVarPath = `/api/export-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} */ listFoodInheritFields: async (options: any = {}): Promise => { const localVarPath = `/api/food-inherit-field/`; // 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 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 {*} [options] Override http request option. * @throws {RequiredError} */ listGroups: async (options: any = {}): Promise => { const localVarPath = `/api/group/`; // 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} */ 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 {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} */ listIngredients: async (page?: number, pageSize?: number, 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; 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} */ listInviteLinks: async (options: any = {}): Promise => { const localVarPath = `/api/invite-link/`; // 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 {number} [keywords] ID of keyword a recipe should have. For multiple repeat parameter. Equivalent to keywords_or * @param {number} [keywordsOr] Keyword IDs, repeat for multiple. Return recipes with any of the keywords * @param {number} [keywordsAnd] Keyword IDs, repeat for multiple. Return recipes with all of the keywords. * @param {number} [keywordsOrNot] Keyword IDs, repeat for multiple. Exclude recipes with any of the keywords. * @param {number} [keywordsAndNot] Keyword IDs, repeat for multiple. Exclude recipes with all of the keywords. * @param {number} [foods] ID of food a recipe should have. For multiple repeat parameter. * @param {number} [foodsOr] Food IDs, repeat for multiple. Return recipes with any of the foods * @param {number} [foodsAnd] Food IDs, repeat for multiple. Return recipes with all of the foods. * @param {number} [foodsOrNot] Food IDs, repeat for multiple. Exclude recipes with any of the foods. * @param {number} [foodsAndNot] Food IDs, repeat for multiple. Exclude recipes with all of the foods. * @param {number} [units] ID of unit a recipe should have. * @param {number} [rating] Rating a recipe should have or greater. [0 - 5] Negative value filters rating less than. * @param {string} [books] ID of book a recipe should be in. For multiple repeat parameter. * @param {number} [booksOr] Book IDs, repeat for multiple. Return recipes with any of the books * @param {number} [booksAnd] Book IDs, repeat for multiple. Return recipes with all of the books. * @param {number} [booksOrNot] Book IDs, repeat for multiple. Exclude recipes with any of the books. * @param {number} [booksAndNot] Book IDs, repeat for multiple. Exclude recipes with all of the books. * @param {string} [internal] If only internal recipes should be returned. [true/<b>false</b>] * @param {string} [random] Returns the results in randomized order. [true/<b>false</b>] * @param {string} [_new] Returns new results first in search results. [true/<b>false</b>] * @param {number} [timescooked] Filter recipes cooked X times or more. Negative values returns cooked less than X times * @param {string} [cookedon] Filter recipes last cooked on or after YYYY-MM-DD. Prepending - filters on or before date. * @param {string} [createdon] Filter recipes created on or after YYYY-MM-DD. Prepending - filters on or before date. * @param {string} [updatedon] Filter recipes updated on or after YYYY-MM-DD. Prepending - filters on or before date. * @param {string} [viewedon] Filter recipes lasts viewed on or after YYYY-MM-DD. Prepending - filters on or before date. * @param {string} [makenow] Filter recipes that can be made with OnHand food. [true/<b>false</b>] * @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?: number, keywordsOr?: number, keywordsAnd?: number, keywordsOrNot?: number, keywordsAndNot?: number, foods?: number, foodsOr?: number, foodsAnd?: number, foodsOrNot?: number, foodsAndNot?: number, units?: number, rating?: number, books?: string, booksOr?: number, booksAnd?: number, booksOrNot?: number, booksAndNot?: number, internal?: string, random?: string, _new?: string, timescooked?: number, cookedon?: string, createdon?: string, updatedon?: string, viewedon?: string, makenow?: 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 (keywordsOr !== undefined) { localVarQueryParameter['keywords_or'] = keywordsOr; } if (keywordsAnd !== undefined) { localVarQueryParameter['keywords_and'] = keywordsAnd; } if (keywordsOrNot !== undefined) { localVarQueryParameter['keywords_or_not'] = keywordsOrNot; } if (keywordsAndNot !== undefined) { localVarQueryParameter['keywords_and_not'] = keywordsAndNot; } if (foods !== undefined) { localVarQueryParameter['foods'] = foods; } if (foodsOr !== undefined) { localVarQueryParameter['foods_or'] = foodsOr; } if (foodsAnd !== undefined) { localVarQueryParameter['foods_and'] = foodsAnd; } if (foodsOrNot !== undefined) { localVarQueryParameter['foods_or_not'] = foodsOrNot; } if (foodsAndNot !== undefined) { localVarQueryParameter['foods_and_not'] = foodsAndNot; } if (units !== undefined) { localVarQueryParameter['units'] = units; } if (rating !== undefined) { localVarQueryParameter['rating'] = rating; } if (books !== undefined) { localVarQueryParameter['books'] = books; } if (booksOr !== undefined) { localVarQueryParameter['books_or'] = booksOr; } if (booksAnd !== undefined) { localVarQueryParameter['books_and'] = booksAnd; } if (booksOrNot !== undefined) { localVarQueryParameter['books_or_not'] = booksOrNot; } if (booksAndNot !== undefined) { localVarQueryParameter['books_and_not'] = booksAndNot; } if (internal !== undefined) { localVarQueryParameter['internal'] = internal; } if (random !== undefined) { localVarQueryParameter['random'] = random; } if (_new !== undefined) { localVarQueryParameter['new'] = _new; } if (timescooked !== undefined) { localVarQueryParameter['timescooked'] = timescooked; } if (cookedon !== undefined) { localVarQueryParameter['cookedon'] = cookedon; } if (createdon !== undefined) { localVarQueryParameter['createdon'] = createdon; } if (updatedon !== undefined) { localVarQueryParameter['updatedon'] = updatedon; } if (viewedon !== undefined) { localVarQueryParameter['viewedon'] = viewedon; } if (makenow !== undefined) { localVarQueryParameter['makenow'] = makenow; } 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} [id] Returns the shopping list entry with a primary key of id. Multiple values allowed. * @param {string} [checked] Filter shopping list entries on checked. [true, false, both, <b>recent</b>]<br> - recent includes unchecked items and recently completed items. * @param {number} [supermarket] Returns the shopping list entries sorted by supermarket category order. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listShoppingListEntrys: async (id?: number, checked?: string, supermarket?: number, 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; if (id !== undefined) { localVarQueryParameter['id'] = id; } if (checked !== undefined) { localVarQueryParameter['checked'] = checked; } if (supermarket !== undefined) { localVarQueryParameter['supermarket'] = supermarket; } 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} */ listSpaces: async (options: any = {}): Promise => { const localVarPath = `/api/space/`; // 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} [recipe] ID of recipe a step is part of. For multiple repeat parameter. * @param {string} [query] Query string matched (fuzzy) against object 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} */ listSteps: async (recipe?: number, query?: string, page?: number, pageSize?: number, 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; if (recipe !== undefined) { localVarQueryParameter['recipe'] = recipe; } 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} */ 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 {string} [query] Query string matched against supermarket-category name. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listSupermarketCategorys: async (query?: string, 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; if (query !== undefined) { localVarQueryParameter['query'] = query; } 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, }; }, /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ listUserSpaces: async (options: any = {}): Promise => { const localVarPath = `/api/user-space/`; // 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/`; // 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, }; }, /** * function to reset inheritance from api, see food method for docs * @param {*} [options] Override http request option. * @throws {RequiredError} */ listresetFoodInheritances: async (options: any = {}): Promise => { const localVarPath = `/api/reset-food-inheritance/`; // 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 {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 automation. * @param {Automation} [automation] * @param {*} [options] Override http request option. * @throws {RequiredError} */ partialUpdateAutomation: async (id: string, automation?: Automation, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('partialUpdateAutomation', 'id', id) const localVarPath = `/api/automation/{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(automation, 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 custom filter. * @param {CustomFilter} [customFilter] * @param {*} [options] Override http request option. * @throws {RequiredError} */ partialUpdateCustomFilter: async (id: string, customFilter?: CustomFilter, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('partialUpdateCustomFilter', 'id', id) const localVarPath = `/api/custom-filter/{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(customFilter, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this export log. * @param {ExportLog} [exportLog] * @param {*} [options] Override http request option. * @throws {RequiredError} */ partialUpdateExportLog: async (id: string, exportLog?: ExportLog, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('partialUpdateExportLog', 'id', id) const localVarPath = `/api/export-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(exportLog, 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 invite link. * @param {InviteLink} [inviteLink] * @param {*} [options] Override http request option. * @throws {RequiredError} */ partialUpdateInviteLink: async (id: string, inviteLink?: InviteLink, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('partialUpdateInviteLink', 'id', id) const localVarPath = `/api/invite-link/{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(inviteLink, 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 space. * @param {Space} [space] * @param {*} [options] Override http request option. * @throws {RequiredError} */ partialUpdateSpace: async (id: string, space?: Space, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('partialUpdateSpace', 'id', id) const localVarPath = `/api/space/{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(space, 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. * @param {User} [user] * @param {*} [options] Override http request option. * @throws {RequiredError} */ partialUpdateUser: async (id: string, user?: User, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('partialUpdateUser', 'id', id) const localVarPath = `/api/user/{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(user, 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} [id2] * @param {string} [fileDownload] * @param {string} [preview] * @param {number} [fileSizeKb] * @param {*} [options] Override http request option. * @throws {RequiredError} */ partialUpdateUserFile: async (id: string, name: string, file: any, id2?: number, fileDownload?: string, preview?: string, fileSizeKb?: 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) // verify required parameter 'file' is not null or undefined assertParamExists('partialUpdateUserFile', 'file', file) 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 (id2 !== undefined) { localVarFormParams.append('id', id2 as any); } if (name !== undefined) { localVarFormParams.append('name', name as any); } if (file !== undefined) { localVarFormParams.append('file', file as any); } if (fileDownload !== undefined) { localVarFormParams.append('file_download', fileDownload as any); } if (preview !== undefined) { localVarFormParams.append('preview', preview as any); } if (fileSizeKb !== undefined) { localVarFormParams.append('file_size_kb', fileSizeKb 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 user space. * @param {UserSpace} [userSpace] * @param {*} [options] Override http request option. * @throws {RequiredError} */ partialUpdateUserSpace: async (id: string, userSpace?: UserSpace, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('partialUpdateUserSpace', 'id', id) const localVarPath = `/api/user-space/{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(userSpace, 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 recipe. * @param {*} [options] Override http request option. * @throws {RequiredError} */ relatedRecipe: async (id: string, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('relatedRecipe', 'id', id) const localVarPath = `/api/recipe/{id}/related/` .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 automation. * @param {*} [options] Override http request option. * @throws {RequiredError} */ retrieveAutomation: async (id: string, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('retrieveAutomation', 'id', id) const localVarPath = `/api/automation/{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 {*} [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 custom filter. * @param {*} [options] Override http request option. * @throws {RequiredError} */ retrieveCustomFilter: async (id: string, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('retrieveCustomFilter', 'id', id) const localVarPath = `/api/custom-filter/{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 export log. * @param {*} [options] Override http request option. * @throws {RequiredError} */ retrieveExportLog: async (id: string, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('retrieveExportLog', 'id', id) const localVarPath = `/api/export-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 food inherit field. * @param {*} [options] Override http request option. * @throws {RequiredError} */ retrieveFoodInheritField: async (id: string, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('retrieveFoodInheritField', 'id', id) const localVarPath = `/api/food-inherit-field/{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 group. * @param {*} [options] Override http request option. * @throws {RequiredError} */ retrieveGroup: async (id: string, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('retrieveGroup', 'id', id) const localVarPath = `/api/group/{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 invite link. * @param {*} [options] Override http request option. * @throws {RequiredError} */ retrieveInviteLink: async (id: string, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('retrieveInviteLink', 'id', id) const localVarPath = `/api/invite-link/{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 space. * @param {*} [options] Override http request option. * @throws {RequiredError} */ retrieveSpace: async (id: string, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('retrieveSpace', 'id', id) const localVarPath = `/api/space/{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/{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 user space. * @param {*} [options] Override http request option. * @throws {RequiredError} */ retrieveUserSpace: async (id: string, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('retrieveUserSpace', 'id', id) const localVarPath = `/api/user-space/{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 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, }; }, /** * function to download a user file securely (wrapping as zip to prevent any context based XSS problems) temporary solution until a real file manager is implemented * @param {string} fileId * @param {*} [options] Override http request option. * @throws {RequiredError} */ retrievedownloadFile: async (fileId: string, options: any = {}): Promise => { // verify required parameter 'fileId' is not null or undefined assertParamExists('retrievedownloadFile', 'fileId', fileId) const localVarPath = `/api/download-file/{file_id}/` .replace(`{${"file_id"}}`, encodeURIComponent(String(fileId))); // 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, }; }, /** * api endpoint to switch space function * @param {string} spaceId * @param {*} [options] Override http request option. * @throws {RequiredError} */ retrieveswitchActiveSpace: async (spaceId: string, options: any = {}): Promise => { // verify required parameter 'spaceId' is not null or undefined assertParamExists('retrieveswitchActiveSpace', 'spaceId', spaceId) const localVarPath = `/api/switch-active-space/{space_id}/` .replace(`{${"space_id"}}`, encodeURIComponent(String(spaceId))); // 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 {FoodShoppingUpdate} [foodShoppingUpdate] * @param {*} [options] Override http request option. * @throws {RequiredError} */ shoppingFood: async (id: string, foodShoppingUpdate?: FoodShoppingUpdate, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('shoppingFood', 'id', id) const localVarPath = `/api/food/{id}/shopping/` .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(foodShoppingUpdate, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this recipe. * @param {RecipeShoppingUpdate} [recipeShoppingUpdate] * @param {*} [options] Override http request option. * @throws {RequiredError} */ shoppingRecipe: async (id: string, recipeShoppingUpdate?: RecipeShoppingUpdate, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('shoppingRecipe', 'id', id) const localVarPath = `/api/recipe/{id}/shopping/` .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(recipeShoppingUpdate, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this automation. * @param {Automation} [automation] * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateAutomation: async (id: string, automation?: Automation, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('updateAutomation', 'id', id) const localVarPath = `/api/automation/{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(automation, 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} */ 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 custom filter. * @param {CustomFilter} [customFilter] * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateCustomFilter: async (id: string, customFilter?: CustomFilter, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('updateCustomFilter', 'id', id) const localVarPath = `/api/custom-filter/{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(customFilter, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), options: localVarRequestOptions, }; }, /** * * @param {string} id A unique integer value identifying this export log. * @param {ExportLog} [exportLog] * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateExportLog: async (id: string, exportLog?: ExportLog, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('updateExportLog', 'id', id) const localVarPath = `/api/export-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(exportLog, 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 invite link. * @param {InviteLink} [inviteLink] * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateInviteLink: async (id: string, inviteLink?: InviteLink, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('updateInviteLink', 'id', id) const localVarPath = `/api/invite-link/{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(inviteLink, 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. * @param {User} [user] * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateUser: async (id: string, user?: User, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('updateUser', 'id', id) const localVarPath = `/api/user/{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(user, 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} [id2] * @param {string} [fileDownload] * @param {string} [preview] * @param {number} [fileSizeKb] * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateUserFile: async (id: string, name: string, file: any, id2?: number, fileDownload?: string, preview?: string, fileSizeKb?: 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) // verify required parameter 'file' is not null or undefined assertParamExists('updateUserFile', 'file', file) 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 (id2 !== undefined) { localVarFormParams.append('id', id2 as any); } if (name !== undefined) { localVarFormParams.append('name', name as any); } if (file !== undefined) { localVarFormParams.append('file', file as any); } if (fileDownload !== undefined) { localVarFormParams.append('file_download', fileDownload as any); } if (preview !== undefined) { localVarFormParams.append('preview', preview as any); } if (fileSizeKb !== undefined) { localVarFormParams.append('file_size_kb', fileSizeKb 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} 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 {Automation} [automation] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createAutomation(automation?: Automation, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createAutomation(automation, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @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 {CustomFilter} [customFilter] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createCustomFilter(customFilter?: CustomFilter, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createCustomFilter(customFilter, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {ExportLog} [exportLog] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createExportLog(exportLog?: ExportLog, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createExportLog(exportLog, 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 {InviteLink} [inviteLink] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createInviteLink(inviteLink?: InviteLink, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createInviteLink(inviteLink, 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 {User} [user] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createUser(user?: User, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createUser(user, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} name * @param {any} file * @param {number} [id] * @param {string} [fileDownload] * @param {string} [preview] * @param {number} [fileSizeKb] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createUserFile(name: string, file: any, id?: number, fileDownload?: string, preview?: string, fileSizeKb?: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createUserFile(name, file, id, fileDownload, preview, fileSizeKb, 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); }, /** * function to handle files passed by application importer * @param {any} [body] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createimportFiles(body?: any, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createimportFiles(body, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * function to retrieve a recipe from a given url or source string :param request: standard request with additional post parameters - url: url to use for importing recipe - data: if no url is given recipe is imported from provided source data - (optional) bookmarklet: id of bookmarklet import to use, overrides URL and data attributes :return: JsonResponse containing the parsed json and images * @param {any} [body] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createrecipeFromSource(body?: any, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createrecipeFromSource(body, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this automation. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async destroyAutomation(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.destroyAutomation(id, 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 custom filter. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async destroyCustomFilter(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.destroyCustomFilter(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this export log. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async destroyExportLog(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.destroyExportLog(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 invite link. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async destroyInviteLink(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.destroyInviteLink(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. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async destroyUser(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.destroyUser(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} id A unique integer value identifying this user space. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async destroyUserSpace(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.destroyUserSpace(id, 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 {string} [imageUrl] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async imageRecipe(id: string, image?: any, imageUrl?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.imageRecipe(id, image, imageUrl, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ async listAutomations(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.listAutomations(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 {*} [options] Override http request option. * @throws {RequiredError} */ async listCustomFilters(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.listCustomFilters(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 listExportLogs(page?: number, pageSize?: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.listExportLogs(page, pageSize, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ async listFoodInheritFields(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.listFoodInheritFields(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 {*} [options] Override http request option. * @throws {RequiredError} */ async listGroups(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.listGroups(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 {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 listIngredients(page?: number, pageSize?: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.listIngredients(page, pageSize, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ async listInviteLinks(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.listInviteLinks(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 {number} [keywords] ID of keyword a recipe should have. For multiple repeat parameter. Equivalent to keywords_or * @param {number} [keywordsOr] Keyword IDs, repeat for multiple. Return recipes with any of the keywords * @param {number} [keywordsAnd] Keyword IDs, repeat for multiple. Return recipes with all of the keywords. * @param {number} [keywordsOrNot] Keyword IDs, repeat for multiple. Exclude recipes with any of the keywords. * @param {number} [keywordsAndNot] Keyword IDs, repeat for multiple. Exclude recipes with all of the keywords. * @param {number} [foods] ID of food a recipe should have. For multiple repeat parameter. * @param {number} [foodsOr] Food IDs, repeat for multiple. Return recipes with any of the foods * @param {number} [foodsAnd] Food IDs, repeat for multiple. Return recipes with all of the foods. * @param {number} [foodsOrNot] Food IDs, repeat for multiple. Exclude recipes with any of the foods. * @param {number} [foodsAndNot] Food IDs, repeat for multiple. Exclude recipes with all of the foods. * @param {number} [units] ID of unit a recipe should have. * @param {number} [rating] Rating a recipe should have or greater. [0 - 5] Negative value filters rating less than. * @param {string} [books] ID of book a recipe should be in. For multiple repeat parameter. * @param {number} [booksOr] Book IDs, repeat for multiple. Return recipes with any of the books * @param {number} [booksAnd] Book IDs, repeat for multiple. Return recipes with all of the books. * @param {number} [booksOrNot] Book IDs, repeat for multiple. Exclude recipes with any of the books. * @param {number} [booksAndNot] Book IDs, repeat for multiple. Exclude recipes with all of the books. * @param {string} [internal] If only internal recipes should be returned. [true/<b>false</b>] * @param {string} [random] Returns the results in randomized order. [true/<b>false</b>] * @param {string} [_new] Returns new results first in search results. [true/<b>false</b>] * @param {number} [timescooked] Filter recipes cooked X times or more. Negative values returns cooked less than X times * @param {string} [cookedon] Filter recipes last cooked on or after YYYY-MM-DD. Prepending - filters on or before date. * @param {string} [createdon] Filter recipes created on or after YYYY-MM-DD. Prepending - filters on or before date. * @param {string} [updatedon] Filter recipes updated on or after YYYY-MM-DD. Prepending - filters on or before date. * @param {string} [viewedon] Filter recipes lasts viewed on or after YYYY-MM-DD. Prepending - filters on or before date. * @param {string} [makenow] Filter recipes that can be made with OnHand food. [true/<b>false</b>] * @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?: number, keywordsOr?: number, keywordsAnd?: number, keywordsOrNot?: number, keywordsAndNot?: number, foods?: number, foodsOr?: number, foodsAnd?: number, foodsOrNot?: number, foodsAndNot?: number, units?: number, rating?: number, books?: string, booksOr?: number, booksAnd?: number, booksOrNot?: number, booksAndNot?: number, internal?: string, random?: string, _new?: string, timescooked?: number, cookedon?: string, createdon?: string, updatedon?: string, viewedon?: string, makenow?: string, page?: number, pageSize?: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.listRecipes(query, keywords, keywordsOr, keywordsAnd, keywordsOrNot, keywordsAndNot, foods, foodsOr, foodsAnd, foodsOrNot, foodsAndNot, units, rating, books, booksOr, booksAnd, booksOrNot, booksAndNot, internal, random, _new, timescooked, cookedon, createdon, updatedon, viewedon, makenow, page, pageSize, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {number} [id] Returns the shopping list entry with a primary key of id. Multiple values allowed. * @param {string} [checked] Filter shopping list entries on checked. [true, false, both, <b>recent</b>]<br> - recent includes unchecked items and recently completed items. * @param {number} [supermarket] Returns the shopping list entries sorted by supermarket category order. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async listShoppingListEntrys(id?: number, checked?: string, supermarket?: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.listShoppingListEntrys(id, checked, supermarket, 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 listSpaces(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.listSpaces(options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {number} [recipe] ID of recipe a step is part of. For multiple repeat parameter. * @param {string} [query] Query string matched (fuzzy) against object 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 listSteps(recipe?: number, query?: string, page?: number, pageSize?: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.listSteps(recipe, query, page, pageSize, 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 {string} [query] Query string matched against supermarket-category name. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async listSupermarketCategorys(query?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.listSupermarketCategorys(query, 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); }, /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ async listUserSpaces(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.listUserSpaces(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); }, /** * function to reset inheritance from api, see food method for docs * @param {*} [options] Override http request option. * @throws {RequiredError} */ async listresetFoodInheritances(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.listresetFoodInheritances(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 automation. * @param {Automation} [automation] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async partialUpdateAutomation(id: string, automation?: Automation, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateAutomation(id, automation, 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 custom filter. * @param {CustomFilter} [customFilter] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async partialUpdateCustomFilter(id: string, customFilter?: CustomFilter, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateCustomFilter(id, customFilter, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this export log. * @param {ExportLog} [exportLog] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async partialUpdateExportLog(id: string, exportLog?: ExportLog, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateExportLog(id, exportLog, 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 invite link. * @param {InviteLink} [inviteLink] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async partialUpdateInviteLink(id: string, inviteLink?: InviteLink, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateInviteLink(id, inviteLink, 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 space. * @param {Space} [space] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async partialUpdateSpace(id: string, space?: Space, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateSpace(id, space, 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. * @param {User} [user] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async partialUpdateUser(id: string, user?: User, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateUser(id, user, 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} [id2] * @param {string} [fileDownload] * @param {string} [preview] * @param {number} [fileSizeKb] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async partialUpdateUserFile(id: string, name: string, file: any, id2?: number, fileDownload?: string, preview?: string, fileSizeKb?: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateUserFile(id, name, file, id2, fileDownload, preview, fileSizeKb, 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 user space. * @param {UserSpace} [userSpace] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async partialUpdateUserSpace(id: string, userSpace?: UserSpace, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateUserSpace(id, userSpace, 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 recipe. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async relatedRecipe(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.relatedRecipe(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this automation. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async retrieveAutomation(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveAutomation(id, 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 custom filter. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async retrieveCustomFilter(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveCustomFilter(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this export log. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async retrieveExportLog(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveExportLog(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 food inherit field. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async retrieveFoodInheritField(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveFoodInheritField(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this group. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async retrieveGroup(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveGroup(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 invite link. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async retrieveInviteLink(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveInviteLink(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 space. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async retrieveSpace(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveSpace(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 user space. * @param {*} [options] Override http request option. * @throws {RequiredError} */ async retrieveUserSpace(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveUserSpace(id, 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); }, /** * function to download a user file securely (wrapping as zip to prevent any context based XSS problems) temporary solution until a real file manager is implemented * @param {string} fileId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async retrievedownloadFile(fileId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.retrievedownloadFile(fileId, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * api endpoint to switch space function * @param {string} spaceId * @param {*} [options] Override http request option. * @throws {RequiredError} */ async retrieveswitchActiveSpace(spaceId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveswitchActiveSpace(spaceId, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this food. * @param {FoodShoppingUpdate} [foodShoppingUpdate] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async shoppingFood(id: string, foodShoppingUpdate?: FoodShoppingUpdate, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.shoppingFood(id, foodShoppingUpdate, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this recipe. * @param {RecipeShoppingUpdate} [recipeShoppingUpdate] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async shoppingRecipe(id: string, recipeShoppingUpdate?: RecipeShoppingUpdate, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.shoppingRecipe(id, recipeShoppingUpdate, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this automation. * @param {Automation} [automation] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateAutomation(id: string, automation?: Automation, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateAutomation(id, automation, 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 custom filter. * @param {CustomFilter} [customFilter] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateCustomFilter(id: string, customFilter?: CustomFilter, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateCustomFilter(id, customFilter, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {string} id A unique integer value identifying this export log. * @param {ExportLog} [exportLog] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateExportLog(id: string, exportLog?: ExportLog, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateExportLog(id, exportLog, 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 invite link. * @param {InviteLink} [inviteLink] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateInviteLink(id: string, inviteLink?: InviteLink, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateInviteLink(id, inviteLink, 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. * @param {User} [user] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateUser(id: string, user?: User, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateUser(id, user, 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} [id2] * @param {string} [fileDownload] * @param {string} [preview] * @param {number} [fileSizeKb] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async updateUserFile(id: string, name: string, file: any, id2?: number, fileDownload?: string, preview?: string, fileSizeKb?: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateUserFile(id, name, file, id2, fileDownload, preview, fileSizeKb, 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 {Automation} [automation] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createAutomation(automation?: Automation, options?: any): AxiosPromise { return localVarFp.createAutomation(automation, options).then((request) => request(axios, basePath)); }, /** * * @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 {CustomFilter} [customFilter] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createCustomFilter(customFilter?: CustomFilter, options?: any): AxiosPromise { return localVarFp.createCustomFilter(customFilter, options).then((request) => request(axios, basePath)); }, /** * * @param {ExportLog} [exportLog] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createExportLog(exportLog?: ExportLog, options?: any): AxiosPromise { return localVarFp.createExportLog(exportLog, 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 {InviteLink} [inviteLink] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createInviteLink(inviteLink?: InviteLink, options?: any): AxiosPromise { return localVarFp.createInviteLink(inviteLink, 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 {User} [user] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createUser(user?: User, options?: any): AxiosPromise { return localVarFp.createUser(user, options).then((request) => request(axios, basePath)); }, /** * * @param {string} name * @param {any} file * @param {number} [id] * @param {string} [fileDownload] * @param {string} [preview] * @param {number} [fileSizeKb] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createUserFile(name: string, file: any, id?: number, fileDownload?: string, preview?: string, fileSizeKb?: number, options?: any): AxiosPromise { return localVarFp.createUserFile(name, file, id, fileDownload, preview, fileSizeKb, 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)); }, /** * function to handle files passed by application importer * @param {any} [body] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createimportFiles(body?: any, options?: any): AxiosPromise { return localVarFp.createimportFiles(body, options).then((request) => request(axios, basePath)); }, /** * function to retrieve a recipe from a given url or source string :param request: standard request with additional post parameters - url: url to use for importing recipe - data: if no url is given recipe is imported from provided source data - (optional) bookmarklet: id of bookmarklet import to use, overrides URL and data attributes :return: JsonResponse containing the parsed json and images * @param {any} [body] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createrecipeFromSource(body?: any, options?: any): AxiosPromise { return localVarFp.createrecipeFromSource(body, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this automation. * @param {*} [options] Override http request option. * @throws {RequiredError} */ destroyAutomation(id: string, options?: any): AxiosPromise { return localVarFp.destroyAutomation(id, 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 custom filter. * @param {*} [options] Override http request option. * @throws {RequiredError} */ destroyCustomFilter(id: string, options?: any): AxiosPromise { return localVarFp.destroyCustomFilter(id, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this export log. * @param {*} [options] Override http request option. * @throws {RequiredError} */ destroyExportLog(id: string, options?: any): AxiosPromise { return localVarFp.destroyExportLog(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 invite link. * @param {*} [options] Override http request option. * @throws {RequiredError} */ destroyInviteLink(id: string, options?: any): AxiosPromise { return localVarFp.destroyInviteLink(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. * @param {*} [options] Override http request option. * @throws {RequiredError} */ destroyUser(id: string, options?: any): AxiosPromise { return localVarFp.destroyUser(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} id A unique integer value identifying this user space. * @param {*} [options] Override http request option. * @throws {RequiredError} */ destroyUserSpace(id: string, options?: any): AxiosPromise { return localVarFp.destroyUserSpace(id, 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 {string} [imageUrl] * @param {*} [options] Override http request option. * @throws {RequiredError} */ imageRecipe(id: string, image?: any, imageUrl?: string, options?: any): AxiosPromise { return localVarFp.imageRecipe(id, image, imageUrl, options).then((request) => request(axios, basePath)); }, /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ listAutomations(options?: any): AxiosPromise> { return localVarFp.listAutomations(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 {*} [options] Override http request option. * @throws {RequiredError} */ listCustomFilters(options?: any): AxiosPromise> { return localVarFp.listCustomFilters(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} */ listExportLogs(page?: number, pageSize?: number, options?: any): AxiosPromise { return localVarFp.listExportLogs(page, pageSize, options).then((request) => request(axios, basePath)); }, /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ listFoodInheritFields(options?: any): AxiosPromise> { return localVarFp.listFoodInheritFields(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 {*} [options] Override http request option. * @throws {RequiredError} */ listGroups(options?: any): AxiosPromise> { return localVarFp.listGroups(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 {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} */ listIngredients(page?: number, pageSize?: number, options?: any): AxiosPromise { return localVarFp.listIngredients(page, pageSize, options).then((request) => request(axios, basePath)); }, /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ listInviteLinks(options?: any): AxiosPromise> { return localVarFp.listInviteLinks(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 {number} [keywords] ID of keyword a recipe should have. For multiple repeat parameter. Equivalent to keywords_or * @param {number} [keywordsOr] Keyword IDs, repeat for multiple. Return recipes with any of the keywords * @param {number} [keywordsAnd] Keyword IDs, repeat for multiple. Return recipes with all of the keywords. * @param {number} [keywordsOrNot] Keyword IDs, repeat for multiple. Exclude recipes with any of the keywords. * @param {number} [keywordsAndNot] Keyword IDs, repeat for multiple. Exclude recipes with all of the keywords. * @param {number} [foods] ID of food a recipe should have. For multiple repeat parameter. * @param {number} [foodsOr] Food IDs, repeat for multiple. Return recipes with any of the foods * @param {number} [foodsAnd] Food IDs, repeat for multiple. Return recipes with all of the foods. * @param {number} [foodsOrNot] Food IDs, repeat for multiple. Exclude recipes with any of the foods. * @param {number} [foodsAndNot] Food IDs, repeat for multiple. Exclude recipes with all of the foods. * @param {number} [units] ID of unit a recipe should have. * @param {number} [rating] Rating a recipe should have or greater. [0 - 5] Negative value filters rating less than. * @param {string} [books] ID of book a recipe should be in. For multiple repeat parameter. * @param {number} [booksOr] Book IDs, repeat for multiple. Return recipes with any of the books * @param {number} [booksAnd] Book IDs, repeat for multiple. Return recipes with all of the books. * @param {number} [booksOrNot] Book IDs, repeat for multiple. Exclude recipes with any of the books. * @param {number} [booksAndNot] Book IDs, repeat for multiple. Exclude recipes with all of the books. * @param {string} [internal] If only internal recipes should be returned. [true/<b>false</b>] * @param {string} [random] Returns the results in randomized order. [true/<b>false</b>] * @param {string} [_new] Returns new results first in search results. [true/<b>false</b>] * @param {number} [timescooked] Filter recipes cooked X times or more. Negative values returns cooked less than X times * @param {string} [cookedon] Filter recipes last cooked on or after YYYY-MM-DD. Prepending - filters on or before date. * @param {string} [createdon] Filter recipes created on or after YYYY-MM-DD. Prepending - filters on or before date. * @param {string} [updatedon] Filter recipes updated on or after YYYY-MM-DD. Prepending - filters on or before date. * @param {string} [viewedon] Filter recipes lasts viewed on or after YYYY-MM-DD. Prepending - filters on or before date. * @param {string} [makenow] Filter recipes that can be made with OnHand food. [true/<b>false</b>] * @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?: number, keywordsOr?: number, keywordsAnd?: number, keywordsOrNot?: number, keywordsAndNot?: number, foods?: number, foodsOr?: number, foodsAnd?: number, foodsOrNot?: number, foodsAndNot?: number, units?: number, rating?: number, books?: string, booksOr?: number, booksAnd?: number, booksOrNot?: number, booksAndNot?: number, internal?: string, random?: string, _new?: string, timescooked?: number, cookedon?: string, createdon?: string, updatedon?: string, viewedon?: string, makenow?: string, page?: number, pageSize?: number, options?: any): AxiosPromise { return localVarFp.listRecipes(query, keywords, keywordsOr, keywordsAnd, keywordsOrNot, keywordsAndNot, foods, foodsOr, foodsAnd, foodsOrNot, foodsAndNot, units, rating, books, booksOr, booksAnd, booksOrNot, booksAndNot, internal, random, _new, timescooked, cookedon, createdon, updatedon, viewedon, makenow, page, pageSize, options).then((request) => request(axios, basePath)); }, /** * * @param {number} [id] Returns the shopping list entry with a primary key of id. Multiple values allowed. * @param {string} [checked] Filter shopping list entries on checked. [true, false, both, <b>recent</b>]<br> - recent includes unchecked items and recently completed items. * @param {number} [supermarket] Returns the shopping list entries sorted by supermarket category order. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listShoppingListEntrys(id?: number, checked?: string, supermarket?: number, options?: any): AxiosPromise> { return localVarFp.listShoppingListEntrys(id, checked, supermarket, 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} */ listSpaces(options?: any): AxiosPromise> { return localVarFp.listSpaces(options).then((request) => request(axios, basePath)); }, /** * * @param {number} [recipe] ID of recipe a step is part of. For multiple repeat parameter. * @param {string} [query] Query string matched (fuzzy) against object 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} */ listSteps(recipe?: number, query?: string, page?: number, pageSize?: number, options?: any): AxiosPromise { return localVarFp.listSteps(recipe, query, page, pageSize, 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 {string} [query] Query string matched against supermarket-category name. * @param {*} [options] Override http request option. * @throws {RequiredError} */ listSupermarketCategorys(query?: string, options?: any): AxiosPromise> { return localVarFp.listSupermarketCategorys(query, 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)); }, /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ listUserSpaces(options?: any): AxiosPromise> { return localVarFp.listUserSpaces(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)); }, /** * function to reset inheritance from api, see food method for docs * @param {*} [options] Override http request option. * @throws {RequiredError} */ listresetFoodInheritances(options?: any): AxiosPromise> { return localVarFp.listresetFoodInheritances(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 automation. * @param {Automation} [automation] * @param {*} [options] Override http request option. * @throws {RequiredError} */ partialUpdateAutomation(id: string, automation?: Automation, options?: any): AxiosPromise { return localVarFp.partialUpdateAutomation(id, automation, 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 custom filter. * @param {CustomFilter} [customFilter] * @param {*} [options] Override http request option. * @throws {RequiredError} */ partialUpdateCustomFilter(id: string, customFilter?: CustomFilter, options?: any): AxiosPromise { return localVarFp.partialUpdateCustomFilter(id, customFilter, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this export log. * @param {ExportLog} [exportLog] * @param {*} [options] Override http request option. * @throws {RequiredError} */ partialUpdateExportLog(id: string, exportLog?: ExportLog, options?: any): AxiosPromise { return localVarFp.partialUpdateExportLog(id, exportLog, 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 invite link. * @param {InviteLink} [inviteLink] * @param {*} [options] Override http request option. * @throws {RequiredError} */ partialUpdateInviteLink(id: string, inviteLink?: InviteLink, options?: any): AxiosPromise { return localVarFp.partialUpdateInviteLink(id, inviteLink, 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 space. * @param {Space} [space] * @param {*} [options] Override http request option. * @throws {RequiredError} */ partialUpdateSpace(id: string, space?: Space, options?: any): AxiosPromise { return localVarFp.partialUpdateSpace(id, space, 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. * @param {User} [user] * @param {*} [options] Override http request option. * @throws {RequiredError} */ partialUpdateUser(id: string, user?: User, options?: any): AxiosPromise { return localVarFp.partialUpdateUser(id, user, 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} [id2] * @param {string} [fileDownload] * @param {string} [preview] * @param {number} [fileSizeKb] * @param {*} [options] Override http request option. * @throws {RequiredError} */ partialUpdateUserFile(id: string, name: string, file: any, id2?: number, fileDownload?: string, preview?: string, fileSizeKb?: number, options?: any): AxiosPromise { return localVarFp.partialUpdateUserFile(id, name, file, id2, fileDownload, preview, fileSizeKb, 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 user space. * @param {UserSpace} [userSpace] * @param {*} [options] Override http request option. * @throws {RequiredError} */ partialUpdateUserSpace(id: string, userSpace?: UserSpace, options?: any): AxiosPromise { return localVarFp.partialUpdateUserSpace(id, userSpace, 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 recipe. * @param {*} [options] Override http request option. * @throws {RequiredError} */ relatedRecipe(id: string, options?: any): AxiosPromise { return localVarFp.relatedRecipe(id, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this automation. * @param {*} [options] Override http request option. * @throws {RequiredError} */ retrieveAutomation(id: string, options?: any): AxiosPromise { return localVarFp.retrieveAutomation(id, 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 custom filter. * @param {*} [options] Override http request option. * @throws {RequiredError} */ retrieveCustomFilter(id: string, options?: any): AxiosPromise { return localVarFp.retrieveCustomFilter(id, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this export log. * @param {*} [options] Override http request option. * @throws {RequiredError} */ retrieveExportLog(id: string, options?: any): AxiosPromise { return localVarFp.retrieveExportLog(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 food inherit field. * @param {*} [options] Override http request option. * @throws {RequiredError} */ retrieveFoodInheritField(id: string, options?: any): AxiosPromise { return localVarFp.retrieveFoodInheritField(id, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this group. * @param {*} [options] Override http request option. * @throws {RequiredError} */ retrieveGroup(id: string, options?: any): AxiosPromise { return localVarFp.retrieveGroup(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 invite link. * @param {*} [options] Override http request option. * @throws {RequiredError} */ retrieveInviteLink(id: string, options?: any): AxiosPromise { return localVarFp.retrieveInviteLink(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 space. * @param {*} [options] Override http request option. * @throws {RequiredError} */ retrieveSpace(id: string, options?: any): AxiosPromise { return localVarFp.retrieveSpace(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 user space. * @param {*} [options] Override http request option. * @throws {RequiredError} */ retrieveUserSpace(id: string, options?: any): AxiosPromise { return localVarFp.retrieveUserSpace(id, 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)); }, /** * function to download a user file securely (wrapping as zip to prevent any context based XSS problems) temporary solution until a real file manager is implemented * @param {string} fileId * @param {*} [options] Override http request option. * @throws {RequiredError} */ retrievedownloadFile(fileId: string, options?: any): AxiosPromise { return localVarFp.retrievedownloadFile(fileId, options).then((request) => request(axios, basePath)); }, /** * api endpoint to switch space function * @param {string} spaceId * @param {*} [options] Override http request option. * @throws {RequiredError} */ retrieveswitchActiveSpace(spaceId: string, options?: any): AxiosPromise { return localVarFp.retrieveswitchActiveSpace(spaceId, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this food. * @param {FoodShoppingUpdate} [foodShoppingUpdate] * @param {*} [options] Override http request option. * @throws {RequiredError} */ shoppingFood(id: string, foodShoppingUpdate?: FoodShoppingUpdate, options?: any): AxiosPromise { return localVarFp.shoppingFood(id, foodShoppingUpdate, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this recipe. * @param {RecipeShoppingUpdate} [recipeShoppingUpdate] * @param {*} [options] Override http request option. * @throws {RequiredError} */ shoppingRecipe(id: string, recipeShoppingUpdate?: RecipeShoppingUpdate, options?: any): AxiosPromise { return localVarFp.shoppingRecipe(id, recipeShoppingUpdate, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this automation. * @param {Automation} [automation] * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateAutomation(id: string, automation?: Automation, options?: any): AxiosPromise { return localVarFp.updateAutomation(id, automation, 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 custom filter. * @param {CustomFilter} [customFilter] * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateCustomFilter(id: string, customFilter?: CustomFilter, options?: any): AxiosPromise { return localVarFp.updateCustomFilter(id, customFilter, options).then((request) => request(axios, basePath)); }, /** * * @param {string} id A unique integer value identifying this export log. * @param {ExportLog} [exportLog] * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateExportLog(id: string, exportLog?: ExportLog, options?: any): AxiosPromise { return localVarFp.updateExportLog(id, exportLog, 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 invite link. * @param {InviteLink} [inviteLink] * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateInviteLink(id: string, inviteLink?: InviteLink, options?: any): AxiosPromise { return localVarFp.updateInviteLink(id, inviteLink, 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. * @param {User} [user] * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateUser(id: string, user?: User, options?: any): AxiosPromise { return localVarFp.updateUser(id, user, 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} [id2] * @param {string} [fileDownload] * @param {string} [preview] * @param {number} [fileSizeKb] * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateUserFile(id: string, name: string, file: any, id2?: number, fileDownload?: string, preview?: string, fileSizeKb?: number, options?: any): AxiosPromise { return localVarFp.updateUserFile(id, name, file, id2, fileDownload, preview, fileSizeKb, 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 {Automation} [automation] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public createAutomation(automation?: Automation, options?: any) { return ApiApiFp(this.configuration).createAutomation(automation, options).then((request) => request(this.axios, this.basePath)); } /** * * @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 {CustomFilter} [customFilter] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public createCustomFilter(customFilter?: CustomFilter, options?: any) { return ApiApiFp(this.configuration).createCustomFilter(customFilter, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {ExportLog} [exportLog] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public createExportLog(exportLog?: ExportLog, options?: any) { return ApiApiFp(this.configuration).createExportLog(exportLog, 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 {InviteLink} [inviteLink] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public createInviteLink(inviteLink?: InviteLink, options?: any) { return ApiApiFp(this.configuration).createInviteLink(inviteLink, 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 {User} [user] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public createUser(user?: User, options?: any) { return ApiApiFp(this.configuration).createUser(user, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} name * @param {any} file * @param {number} [id] * @param {string} [fileDownload] * @param {string} [preview] * @param {number} [fileSizeKb] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public createUserFile(name: string, file: any, id?: number, fileDownload?: string, preview?: string, fileSizeKb?: number, options?: any) { return ApiApiFp(this.configuration).createUserFile(name, file, id, fileDownload, preview, fileSizeKb, 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)); } /** * function to handle files passed by application importer * @param {any} [body] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public createimportFiles(body?: any, options?: any) { return ApiApiFp(this.configuration).createimportFiles(body, options).then((request) => request(this.axios, this.basePath)); } /** * function to retrieve a recipe from a given url or source string :param request: standard request with additional post parameters - url: url to use for importing recipe - data: if no url is given recipe is imported from provided source data - (optional) bookmarklet: id of bookmarklet import to use, overrides URL and data attributes :return: JsonResponse containing the parsed json and images * @param {any} [body] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public createrecipeFromSource(body?: any, options?: any) { return ApiApiFp(this.configuration).createrecipeFromSource(body, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this automation. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public destroyAutomation(id: string, options?: any) { return ApiApiFp(this.configuration).destroyAutomation(id, 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 custom filter. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public destroyCustomFilter(id: string, options?: any) { return ApiApiFp(this.configuration).destroyCustomFilter(id, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this export log. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public destroyExportLog(id: string, options?: any) { return ApiApiFp(this.configuration).destroyExportLog(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 invite link. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public destroyInviteLink(id: string, options?: any) { return ApiApiFp(this.configuration).destroyInviteLink(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. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public destroyUser(id: string, options?: any) { return ApiApiFp(this.configuration).destroyUser(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} id A unique integer value identifying this user space. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public destroyUserSpace(id: string, options?: any) { return ApiApiFp(this.configuration).destroyUserSpace(id, 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 {string} [imageUrl] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public imageRecipe(id: string, image?: any, imageUrl?: string, options?: any) { return ApiApiFp(this.configuration).imageRecipe(id, image, imageUrl, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public listAutomations(options?: any) { return ApiApiFp(this.configuration).listAutomations(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 {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public listCustomFilters(options?: any) { return ApiApiFp(this.configuration).listCustomFilters(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 listExportLogs(page?: number, pageSize?: number, options?: any) { return ApiApiFp(this.configuration).listExportLogs(page, pageSize, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public listFoodInheritFields(options?: any) { return ApiApiFp(this.configuration).listFoodInheritFields(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 {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public listGroups(options?: any) { return ApiApiFp(this.configuration).listGroups(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 {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 listIngredients(page?: number, pageSize?: number, options?: any) { return ApiApiFp(this.configuration).listIngredients(page, pageSize, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public listInviteLinks(options?: any) { return ApiApiFp(this.configuration).listInviteLinks(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 {number} [keywords] ID of keyword a recipe should have. For multiple repeat parameter. Equivalent to keywords_or * @param {number} [keywordsOr] Keyword IDs, repeat for multiple. Return recipes with any of the keywords * @param {number} [keywordsAnd] Keyword IDs, repeat for multiple. Return recipes with all of the keywords. * @param {number} [keywordsOrNot] Keyword IDs, repeat for multiple. Exclude recipes with any of the keywords. * @param {number} [keywordsAndNot] Keyword IDs, repeat for multiple. Exclude recipes with all of the keywords. * @param {number} [foods] ID of food a recipe should have. For multiple repeat parameter. * @param {number} [foodsOr] Food IDs, repeat for multiple. Return recipes with any of the foods * @param {number} [foodsAnd] Food IDs, repeat for multiple. Return recipes with all of the foods. * @param {number} [foodsOrNot] Food IDs, repeat for multiple. Exclude recipes with any of the foods. * @param {number} [foodsAndNot] Food IDs, repeat for multiple. Exclude recipes with all of the foods. * @param {number} [units] ID of unit a recipe should have. * @param {number} [rating] Rating a recipe should have or greater. [0 - 5] Negative value filters rating less than. * @param {string} [books] ID of book a recipe should be in. For multiple repeat parameter. * @param {number} [booksOr] Book IDs, repeat for multiple. Return recipes with any of the books * @param {number} [booksAnd] Book IDs, repeat for multiple. Return recipes with all of the books. * @param {number} [booksOrNot] Book IDs, repeat for multiple. Exclude recipes with any of the books. * @param {number} [booksAndNot] Book IDs, repeat for multiple. Exclude recipes with all of the books. * @param {string} [internal] If only internal recipes should be returned. [true/<b>false</b>] * @param {string} [random] Returns the results in randomized order. [true/<b>false</b>] * @param {string} [_new] Returns new results first in search results. [true/<b>false</b>] * @param {number} [timescooked] Filter recipes cooked X times or more. Negative values returns cooked less than X times * @param {string} [cookedon] Filter recipes last cooked on or after YYYY-MM-DD. Prepending - filters on or before date. * @param {string} [createdon] Filter recipes created on or after YYYY-MM-DD. Prepending - filters on or before date. * @param {string} [updatedon] Filter recipes updated on or after YYYY-MM-DD. Prepending - filters on or before date. * @param {string} [viewedon] Filter recipes lasts viewed on or after YYYY-MM-DD. Prepending - filters on or before date. * @param {string} [makenow] Filter recipes that can be made with OnHand food. [true/<b>false</b>] * @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?: number, keywordsOr?: number, keywordsAnd?: number, keywordsOrNot?: number, keywordsAndNot?: number, foods?: number, foodsOr?: number, foodsAnd?: number, foodsOrNot?: number, foodsAndNot?: number, units?: number, rating?: number, books?: string, booksOr?: number, booksAnd?: number, booksOrNot?: number, booksAndNot?: number, internal?: string, random?: string, _new?: string, timescooked?: number, cookedon?: string, createdon?: string, updatedon?: string, viewedon?: string, makenow?: string, page?: number, pageSize?: number, options?: any) { return ApiApiFp(this.configuration).listRecipes(query, keywords, keywordsOr, keywordsAnd, keywordsOrNot, keywordsAndNot, foods, foodsOr, foodsAnd, foodsOrNot, foodsAndNot, units, rating, books, booksOr, booksAnd, booksOrNot, booksAndNot, internal, random, _new, timescooked, cookedon, createdon, updatedon, viewedon, makenow, page, pageSize, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {number} [id] Returns the shopping list entry with a primary key of id. Multiple values allowed. * @param {string} [checked] Filter shopping list entries on checked. [true, false, both, <b>recent</b>]<br> - recent includes unchecked items and recently completed items. * @param {number} [supermarket] Returns the shopping list entries sorted by supermarket category order. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public listShoppingListEntrys(id?: number, checked?: string, supermarket?: number, options?: any) { return ApiApiFp(this.configuration).listShoppingListEntrys(id, checked, supermarket, 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 listSpaces(options?: any) { return ApiApiFp(this.configuration).listSpaces(options).then((request) => request(this.axios, this.basePath)); } /** * * @param {number} [recipe] ID of recipe a step is part of. For multiple repeat parameter. * @param {string} [query] Query string matched (fuzzy) against object 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 listSteps(recipe?: number, query?: string, page?: number, pageSize?: number, options?: any) { return ApiApiFp(this.configuration).listSteps(recipe, query, page, pageSize, 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 {string} [query] Query string matched against supermarket-category name. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public listSupermarketCategorys(query?: string, options?: any) { return ApiApiFp(this.configuration).listSupermarketCategorys(query, 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)); } /** * * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public listUserSpaces(options?: any) { return ApiApiFp(this.configuration).listUserSpaces(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)); } /** * function to reset inheritance from api, see food method for docs * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public listresetFoodInheritances(options?: any) { return ApiApiFp(this.configuration).listresetFoodInheritances(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 automation. * @param {Automation} [automation] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public partialUpdateAutomation(id: string, automation?: Automation, options?: any) { return ApiApiFp(this.configuration).partialUpdateAutomation(id, automation, 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 custom filter. * @param {CustomFilter} [customFilter] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public partialUpdateCustomFilter(id: string, customFilter?: CustomFilter, options?: any) { return ApiApiFp(this.configuration).partialUpdateCustomFilter(id, customFilter, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this export log. * @param {ExportLog} [exportLog] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public partialUpdateExportLog(id: string, exportLog?: ExportLog, options?: any) { return ApiApiFp(this.configuration).partialUpdateExportLog(id, exportLog, 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 invite link. * @param {InviteLink} [inviteLink] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public partialUpdateInviteLink(id: string, inviteLink?: InviteLink, options?: any) { return ApiApiFp(this.configuration).partialUpdateInviteLink(id, inviteLink, 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 space. * @param {Space} [space] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public partialUpdateSpace(id: string, space?: Space, options?: any) { return ApiApiFp(this.configuration).partialUpdateSpace(id, space, 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. * @param {User} [user] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public partialUpdateUser(id: string, user?: User, options?: any) { return ApiApiFp(this.configuration).partialUpdateUser(id, user, 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} [id2] * @param {string} [fileDownload] * @param {string} [preview] * @param {number} [fileSizeKb] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public partialUpdateUserFile(id: string, name: string, file: any, id2?: number, fileDownload?: string, preview?: string, fileSizeKb?: number, options?: any) { return ApiApiFp(this.configuration).partialUpdateUserFile(id, name, file, id2, fileDownload, preview, fileSizeKb, 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 user space. * @param {UserSpace} [userSpace] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public partialUpdateUserSpace(id: string, userSpace?: UserSpace, options?: any) { return ApiApiFp(this.configuration).partialUpdateUserSpace(id, userSpace, 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 recipe. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public relatedRecipe(id: string, options?: any) { return ApiApiFp(this.configuration).relatedRecipe(id, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this automation. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public retrieveAutomation(id: string, options?: any) { return ApiApiFp(this.configuration).retrieveAutomation(id, 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 custom filter. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public retrieveCustomFilter(id: string, options?: any) { return ApiApiFp(this.configuration).retrieveCustomFilter(id, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this export log. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public retrieveExportLog(id: string, options?: any) { return ApiApiFp(this.configuration).retrieveExportLog(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 food inherit field. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public retrieveFoodInheritField(id: string, options?: any) { return ApiApiFp(this.configuration).retrieveFoodInheritField(id, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this group. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public retrieveGroup(id: string, options?: any) { return ApiApiFp(this.configuration).retrieveGroup(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 invite link. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public retrieveInviteLink(id: string, options?: any) { return ApiApiFp(this.configuration).retrieveInviteLink(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 space. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public retrieveSpace(id: string, options?: any) { return ApiApiFp(this.configuration).retrieveSpace(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 user space. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public retrieveUserSpace(id: string, options?: any) { return ApiApiFp(this.configuration).retrieveUserSpace(id, 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)); } /** * function to download a user file securely (wrapping as zip to prevent any context based XSS problems) temporary solution until a real file manager is implemented * @param {string} fileId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public retrievedownloadFile(fileId: string, options?: any) { return ApiApiFp(this.configuration).retrievedownloadFile(fileId, options).then((request) => request(this.axios, this.basePath)); } /** * api endpoint to switch space function * @param {string} spaceId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public retrieveswitchActiveSpace(spaceId: string, options?: any) { return ApiApiFp(this.configuration).retrieveswitchActiveSpace(spaceId, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this food. * @param {FoodShoppingUpdate} [foodShoppingUpdate] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public shoppingFood(id: string, foodShoppingUpdate?: FoodShoppingUpdate, options?: any) { return ApiApiFp(this.configuration).shoppingFood(id, foodShoppingUpdate, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this recipe. * @param {RecipeShoppingUpdate} [recipeShoppingUpdate] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public shoppingRecipe(id: string, recipeShoppingUpdate?: RecipeShoppingUpdate, options?: any) { return ApiApiFp(this.configuration).shoppingRecipe(id, recipeShoppingUpdate, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this automation. * @param {Automation} [automation] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public updateAutomation(id: string, automation?: Automation, options?: any) { return ApiApiFp(this.configuration).updateAutomation(id, automation, 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 custom filter. * @param {CustomFilter} [customFilter] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public updateCustomFilter(id: string, customFilter?: CustomFilter, options?: any) { return ApiApiFp(this.configuration).updateCustomFilter(id, customFilter, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} id A unique integer value identifying this export log. * @param {ExportLog} [exportLog] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public updateExportLog(id: string, exportLog?: ExportLog, options?: any) { return ApiApiFp(this.configuration).updateExportLog(id, exportLog, 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 invite link. * @param {InviteLink} [inviteLink] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public updateInviteLink(id: string, inviteLink?: InviteLink, options?: any) { return ApiApiFp(this.configuration).updateInviteLink(id, inviteLink, 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. * @param {User} [user] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public updateUser(id: string, user?: User, options?: any) { return ApiApiFp(this.configuration).updateUser(id, user, 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} [id2] * @param {string} [fileDownload] * @param {string} [preview] * @param {number} [fileSizeKb] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ public updateUserFile(id: string, name: string, file: any, id2?: number, fileDownload?: string, preview?: string, fileSizeKb?: number, options?: any) { return ApiApiFp(this.configuration).updateUserFile(id, name, file, id2, fileDownload, preview, fileSizeKb, 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)); } } /** * ApiTokenAuthApi - axios parameter creator * @export */ export const ApiTokenAuthApiAxiosParamCreator = function (configuration?: Configuration) { return { /** * * @param {string} username * @param {string} password * @param {string} [token] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createAuthToken: async (username: string, password: string, token?: string, options: any = {}): Promise => { // verify required parameter 'username' is not null or undefined assertParamExists('createAuthToken', 'username', username) // verify required parameter 'password' is not null or undefined assertParamExists('createAuthToken', 'password', password) const localVarPath = `/api-token-auth/`; // 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 (username !== undefined) { localVarFormParams.append('username', username as any); } if (password !== undefined) { localVarFormParams.append('password', password as any); } if (token !== undefined) { localVarFormParams.append('token', token 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, }; }, } }; /** * ApiTokenAuthApi - functional programming interface * @export */ export const ApiTokenAuthApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = ApiTokenAuthApiAxiosParamCreator(configuration) return { /** * * @param {string} username * @param {string} password * @param {string} [token] * @param {*} [options] Override http request option. * @throws {RequiredError} */ async createAuthToken(username: string, password: string, token?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createAuthToken(username, password, token, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, } }; /** * ApiTokenAuthApi - factory interface * @export */ export const ApiTokenAuthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) { const localVarFp = ApiTokenAuthApiFp(configuration) return { /** * * @param {string} username * @param {string} password * @param {string} [token] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createAuthToken(username: string, password: string, token?: string, options?: any): AxiosPromise { return localVarFp.createAuthToken(username, password, token, options).then((request) => request(axios, basePath)); }, }; }; /** * ApiTokenAuthApi - object-oriented interface * @export * @class ApiTokenAuthApi * @extends {BaseAPI} */ export class ApiTokenAuthApi extends BaseAPI { /** * * @param {string} username * @param {string} password * @param {string} [token] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiTokenAuthApi */ public createAuthToken(username: string, password: string, token?: string, options?: any) { return ApiTokenAuthApiFp(this.configuration).createAuthToken(username, password, token, options).then((request) => request(this.axios, this.basePath)); } }