Files
recipes/vue/src/utils/openapi/api.ts
2021-12-15 12:36:33 -06:00

14411 lines
571 KiB
TypeScript

/* 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 globalAxios, { AxiosInstance, AxiosPromise } from "axios"
// @ts-ignore
import { BaseAPI, BASE_PATH, RequestArgs } from "./base"
// Some imports not used depending on template conditions
// @ts-ignore
import { assertParamExists, createRequestFunction, DUMMY_BASE_URL, serializeDataIfNeeded, setSearchParams, toPathString } from "./common"
import { Configuration } from "./configuration"
/**
*
* @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 CookLog
*/
export interface CookLog {
/**
*
* @type {number}
* @memberof CookLog
*/
id?: number
/**
*
* @type {number}
* @memberof CookLog
*/
recipe: number
/**
*
* @type {number}
* @memberof CookLog
*/
servings?: number
/**
*
* @type {number}
* @memberof CookLog
*/
rating?: number | null
/**
*
* @type {string}
* @memberof CookLog
*/
created_by?: string
/**
*
* @type {string}
* @memberof CookLog
*/
created_at?: string
}
/**
*
* @export
* @interface Food
*/
export interface Food {
/**
*
* @type {number}
* @memberof Food
*/
id?: number
/**
*
* @type {string}
* @memberof Food
*/
name: string
/**
*
* @type {string}
* @memberof Food
*/
description?: string
/**
*
* @type {string}
* @memberof Food
*/
shopping?: string
/**
*
* @type {FoodRecipe}
* @memberof Food
*/
recipe?: FoodRecipe | null
/**
*
* @type {boolean}
* @memberof Food
*/
ignore_shopping?: boolean
/**
*
* @type {FoodSupermarketCategory}
* @memberof Food
*/
supermarket_category?: FoodSupermarketCategory | null
/**
*
* @type {string}
* @memberof Food
*/
parent?: string
/**
*
* @type {boolean}
* @memberof Food
*/
numchild?: number
}
/**
*
* @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 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 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
}
/**
*
* @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
}
/**
*
* @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 {boolean}
* @memberof IngredientFood
*/
ignore_shopping?: boolean
/**
*
* @type {FoodSupermarketCategory}
* @memberof IngredientFood
*/
supermarket_category?: FoodSupermarketCategory | null
/**
*
* @type {string}
* @memberof IngredientFood
*/
parent?: string
/**
*
* @type {number}
* @memberof IngredientFood
*/
numchild?: number
/**
*
* @type {boolean}
* @memberof IngredientFood
*/
on_hand?: boolean
/**
*
* @type {boolean}
* @memberof IngredientFood
*/
inherit?: boolean
/**
*
* @type {Array<FoodIgnoreInherit>}
* @memberof IngredientFood
*/
ignore_inherit?: Array<FoodIgnoreInherit> | 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<CookLog>}
* @memberof InlineResponse200
*/
results?: Array<CookLog>
}
/**
*
* @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<Food>}
* @memberof InlineResponse2001
*/
results?: Array<Food>
}
/**
*
* @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<ImportLog>}
* @memberof InlineResponse2002
*/
results?: Array<ImportLog>
}
/**
*
* @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<Keyword>}
* @memberof InlineResponse2003
*/
results?: Array<Keyword>
}
/**
*
* @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<Step>}
* @memberof InlineResponse2004
*/
results?: Array<Step>
}
/**
*
* @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<RecipeOverview>}
* @memberof InlineResponse2005
*/
results?: Array<RecipeOverview>
}
/**
*
* @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<ViewLog>}
* @memberof InlineResponse2006
*/
results?: Array<ViewLog>
}
/**
*
* @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<CookLog>}
* @memberof InlineResponse2007
*/
results?: Array<CookLog>
}
/**
*
* @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<SupermarketCategoryRelation>}
* @memberof InlineResponse2008
*/
results?: Array<SupermarketCategoryRelation>
}
/**
*
* @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<ImportLog>}
* @memberof InlineResponse2009
*/
results?: Array<ImportLog>
}
/**
*
* @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
}
/**
*
* @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<number>}
* @memberof MealPlan
*/
shared?: Array<number>
/**
*
* @type {string}
* @memberof MealPlan
*/
recipe_name?: string
/**
*
* @type {string}
* @memberof MealPlan
*/
meal_type_name?: 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
/**
*
* @type {Array<MealPlanRecipeKeywords>}
* @memberof MealPlanRecipe
*/
keywords: Array<MealPlanRecipeKeywords>
/**
*
* @type {number}
* @memberof MealPlanRecipe
*/
working_time?: number
/**
*
* @type {number}
* @memberof MealPlanRecipe
*/
waiting_time?: number
/**
*
* @type {string}
* @memberof MealPlanRecipe
*/
created_by?: string
/**
*
* @type {string}
* @memberof MealPlanRecipe
*/
created_at?: string
/**
*
* @type {string}
* @memberof MealPlanRecipe
*/
updated_at?: string
/**
*
* @type {boolean}
* @memberof MealPlanRecipe
*/
internal?: boolean
/**
*
* @type {number}
* @memberof MealPlanRecipe
*/
servings?: number
/**
*
* @type {string}
* @memberof MealPlanRecipe
*/
servings_text?: string
/**
*
* @type {string}
* @memberof MealPlanRecipe
*/
rating?: string
/**
*
* @type {string}
* @memberof MealPlanRecipe
*/
last_cooked?: string
/**
*
* @type {string}
* @memberof MealPlanRecipe
*/
_new?: string
}
/**
*
* @export
* @interface 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
*/
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
/**
*
* @type {Array<RecipeKeywords>}
* @memberof Recipe
*/
keywords: Array<RecipeKeywords>
/**
*
* @type {Array<RecipeSteps>}
* @memberof Recipe
*/
steps: Array<RecipeSteps>
/**
*
* @type {number}
* @memberof Recipe
*/
working_time?: number
/**
*
* @type {number}
* @memberof Recipe
*/
waiting_time?: number
/**
*
* @type {string}
* @memberof Recipe
*/
created_by?: string
/**
*
* @type {string}
* @memberof Recipe
*/
created_at?: string
/**
*
* @type {string}
* @memberof Recipe
*/
updated_at?: string
/**
*
* @type {boolean}
* @memberof Recipe
*/
internal?: boolean
/**
*
* @type {RecipeNutrition}
* @memberof Recipe
*/
nutrition?: RecipeNutrition | null
/**
*
* @type {number}
* @memberof Recipe
*/
servings?: number
/**
*
* @type {string}
* @memberof Recipe
*/
file_path?: string
/**
*
* @type {string}
* @memberof Recipe
*/
servings_text?: string
/**
*
* @type {string}
* @memberof Recipe
*/
rating?: string
/**
*
* @type {string}
* @memberof Recipe
*/
last_cooked?: string
}
/**
*
* @export
* @interface RecipeBook
*/
export interface RecipeBook {
/**
*
* @type {number}
* @memberof RecipeBook
*/
id?: number
/**
*
* @type {string}
* @memberof RecipeBook
*/
name: string
/**
*
* @type {string}
* @memberof RecipeBook
*/
description?: string
/**
*
* @type {string}
* @memberof RecipeBook
*/
icon?: string | null
/**
*
* @type {Array<RecipeBookShared>}
* @memberof RecipeBook
*/
shared: Array<RecipeBookShared>
/**
*
* @type {string}
* @memberof RecipeBook
*/
created_by?: string
}
/**
*
* @export
* @interface RecipeBookEntry
*/
export interface RecipeBookEntry {
/**
*
* @type {number}
* @memberof RecipeBookEntry
*/
id?: number
/**
*
* @type {number}
* @memberof RecipeBookEntry
*/
book: number
/**
*
* @type {string}
* @memberof RecipeBookEntry
*/
book_content?: string
/**
*
* @type {number}
* @memberof RecipeBookEntry
*/
recipe: number
/**
*
* @type {string}
* @memberof RecipeBookEntry
*/
recipe_content?: string
}
/**
*
* @export
* @interface RecipeBookShared
*/
export interface RecipeBookShared {
/**
*
* @type {number}
* @memberof RecipeBookShared
*/
id?: number
/**
*
* @type {string}
* @memberof RecipeBookShared
*/
username?: string
}
/**
*
* @export
* @interface RecipeFile
*/
export interface RecipeFile {
/**
*
* @type {string}
* @memberof RecipeFile
*/
name: string
/**
*
* @type {any}
* @memberof RecipeFile
*/
file?: any
/**
*
* @type {number}
* @memberof RecipeFile
*/
id?: number
}
/**
*
* @export
* @interface RecipeImage
*/
export interface RecipeImage {
/**
*
* @type {any}
* @memberof RecipeImage
*/
image?: any | 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
}
/**
*
* @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
}
/**
*
* @export
* @interface RecipeNutrition
*/
export interface RecipeNutrition {
/**
*
* @type {number}
* @memberof RecipeNutrition
*/
id?: number
/**
*
* @type {string}
* @memberof RecipeNutrition
*/
carbohydrates?: string
/**
*
* @type {string}
* @memberof RecipeNutrition
*/
fats?: string
/**
*
* @type {string}
* @memberof RecipeNutrition
*/
proteins?: string
/**
*
* @type {string}
* @memberof RecipeNutrition
*/
calories?: string
/**
*
* @type {string}
* @memberof RecipeNutrition
*/
source?: string | null
}
/**
*
* @export
* @interface RecipeOverview
*/
export interface RecipeOverview {
/**
*
* @type {number}
* @memberof RecipeOverview
*/
id?: number
/**
*
* @type {string}
* @memberof RecipeOverview
*/
name: string
/**
*
* @type {string}
* @memberof RecipeOverview
*/
description?: string | null
/**
*
* @type {any}
* @memberof RecipeOverview
*/
image?: any
/**
*
* @type {Array<MealPlanRecipeKeywords>}
* @memberof RecipeOverview
*/
keywords: Array<MealPlanRecipeKeywords>
/**
*
* @type {number}
* @memberof RecipeOverview
*/
working_time?: number
/**
*
* @type {number}
* @memberof RecipeOverview
*/
waiting_time?: number
/**
*
* @type {string}
* @memberof RecipeOverview
*/
created_by?: string
/**
*
* @type {string}
* @memberof RecipeOverview
*/
created_at?: string
/**
*
* @type {string}
* @memberof RecipeOverview
*/
updated_at?: string
/**
*
* @type {boolean}
* @memberof RecipeOverview
*/
internal?: boolean
/**
*
* @type {number}
* @memberof RecipeOverview
*/
servings?: number
/**
*
* @type {string}
* @memberof RecipeOverview
*/
servings_text?: string
/**
*
* @type {string}
* @memberof RecipeOverview
*/
rating?: string
/**
*
* @type {string}
* @memberof RecipeOverview
*/
last_cooked?: string
/**
*
* @type {string}
* @memberof RecipeOverview
*/
_new?: string
}
/**
*
* @export
* @interface 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
*/
type?: RecipeStepsTypeEnum
/**
*
* @type {string}
* @memberof RecipeSteps
*/
instruction?: string
/**
*
* @type {Array<RecipeIngredients>}
* @memberof RecipeSteps
*/
ingredients: Array<RecipeIngredients>
/**
*
* @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
* @enum {string}
*/
export enum RecipeStepsTypeEnum {
Text = "TEXT",
Time = "TIME",
File = "FILE",
Recipe = "RECIPE",
}
/**
*
* @export
* @interface ShoppingList
*/
export interface ShoppingList {
/**
*
* @type {number}
* @memberof ShoppingList
*/
id?: number
/**
*
* @type {string}
* @memberof ShoppingList
*/
uuid?: string
/**
*
* @type {string}
* @memberof ShoppingList
*/
note?: string | null
/**
*
* @type {Array<ShoppingListRecipes>}
* @memberof ShoppingList
*/
recipes: Array<ShoppingListRecipes> | null
/**
*
* @type {Array<ShoppingListEntries>}
* @memberof ShoppingList
*/
entries: Array<ShoppingListEntries> | null
/**
*
* @type {Array<RecipeBookShared>}
* @memberof ShoppingList
*/
shared: Array<RecipeBookShared>
/**
*
* @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
/**
*
* @type {string}
* @memberof ShoppingListCreatedBy
*/
username?: 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 {FoodSupermarketCategory}
* @memberof ShoppingListEntries
*/
unit?: FoodSupermarketCategory | null
/**
*
* @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 {FoodSupermarketCategory}
* @memberof ShoppingListEntry
*/
unit?: FoodSupermarketCategory | null
/**
*
* @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<ShoppingListSupermarketCategoryToSupermarket>}
* @memberof ShoppingListSupermarket
*/
category_to_supermarket?: Array<ShoppingListSupermarketCategoryToSupermarket>
}
/**
*
* @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 Step
*/
export interface Step {
/**
*
* @type {number}
* @memberof Step
*/
id?: number
/**
*
* @type {string}
* @memberof Step
*/
name?: string
/**
*
* @type {string}
* @memberof Step
*/
type?: StepTypeEnum
/**
*
* @type {string}
* @memberof Step
*/
instruction?: string
/**
*
* @type {Array<RecipeIngredients>}
* @memberof Step
*/
ingredients: Array<RecipeIngredients>
/**
*
* @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
* @enum {string}
*/
export enum StepTypeEnum {
Text = "TEXT",
Time = "TIME",
File = "FILE",
Recipe = "RECIPE",
}
/**
*
* @export
* @interface StepFile
*/
export interface StepFile {
/**
*
* @type {string}
* @memberof StepFile
*/
name: string
/**
*
* @type {any}
* @memberof StepFile
*/
file?: any
/**
*
* @type {number}
* @memberof StepFile
*/
id?: number
}
/**
*
* @export
* @interface StepFood
*/
export interface StepFood {
/**
*
* @type {number}
* @memberof StepFood
*/
id?: number
/**
*
* @type {string}
* @memberof StepFood
*/
name: string
/**
*
* @type {string}
* @memberof StepFood
*/
description?: string
/**
*
* @type {FoodRecipe}
* @memberof StepFood
*/
recipe?: FoodRecipe | null
/**
*
* @type {boolean}
* @memberof StepFood
*/
ignore_shopping?: boolean
/**
*
* @type {FoodSupermarketCategory}
* @memberof StepFood
*/
supermarket_category?: FoodSupermarketCategory | null
/**
*
* @type {string}
* @memberof StepFood
*/
parent?: string
/**
*
* @type {number}
* @memberof StepFood
*/
numchild?: number
}
/**
*
* @export
* @interface StepIngredients
*/
export interface StepIngredients {
/**
*
* @type {number}
* @memberof StepIngredients
*/
id?: number
/**
*
* @type {StepFood}
* @memberof StepIngredients
*/
food: StepFood | null
/**
*
* @type {FoodSupermarketCategory}
* @memberof StepIngredients
*/
unit: FoodSupermarketCategory | null
/**
*
* @type {string}
* @memberof StepIngredients
*/
amount: string
/**
*
* @type {string}
* @memberof StepIngredients
*/
note?: string | null
/**
*
* @type {number}
* @memberof StepIngredients
*/
order?: number
/**
*
* @type {boolean}
* @memberof StepIngredients
*/
is_header?: boolean
/**
*
* @type {boolean}
* @memberof StepIngredients
*/
no_amount?: boolean
}
/**
*
* @export
* @interface 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<ShoppingListSupermarketCategoryToSupermarket>}
* @memberof Supermarket
*/
category_to_supermarket?: Array<ShoppingListSupermarketCategoryToSupermarket>
}
/**
*
* @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 UserFile
*/
export interface UserFile {
/**
*
* @type {string}
* @memberof UserFile
*/
name: string
/**
*
* @type {any}
* @memberof UserFile
*/
file?: any
/**
*
* @type {number}
* @memberof UserFile
*/
file_size_kb?: number
/**
*
* @type {number}
* @memberof UserFile
*/
id?: number
}
/**
*
* @export
* @interface UserName
*/
export interface UserName {
/**
*
* @type {number}
* @memberof UserName
*/
id?: number
/**
*
* @type {string}
* @memberof UserName
*/
username?: string
}
/**
*
* @export
* @interface UserPreference
*/
export interface UserPreference {
/**
*
* @type {number}
* @memberof UserPreference
*/
user: number
/**
*
* @type {string}
* @memberof UserPreference
*/
theme?: UserPreferenceThemeEnum
/**
*
* @type {string}
* @memberof UserPreference
*/
nav_color?: UserPreferenceNavColorEnum
/**
*
* @type {string}
* @memberof UserPreference
*/
default_unit?: string
/**
*
* @type {string}
* @memberof UserPreference
*/
default_page?: UserPreferenceDefaultPageEnum
/**
*
* @type {boolean}
* @memberof UserPreference
*/
use_kj?: boolean
/**
*
* @type {string}
* @memberof UserPreference
*/
search_style?: UserPreferenceSearchStyleEnum
/**
*
* @type {boolean}
* @memberof UserPreference
*/
show_recent?: boolean
/**
*
* @type {Array<number>}
* @memberof UserPreference
*/
plan_share?: Array<number>
/**
*
* @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_ignore_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<number>}
* @memberof UserPreference
*/
shopping_share?: Array<number>
/**
*
* @type {number}
* @memberof UserPreference
*/
shopping_recent_days?: number
}
/**
* @export
* @enum {string}
*/
export enum UserPreferenceThemeEnum {
Tandoor = "TANDOOR",
Bootstrap = "BOOTSTRAP",
Darkly = "DARKLY",
Flatly = "FLATLY",
Superhero = "SUPERHERO",
}
/**
* @export
* @enum {string}
*/
export enum UserPreferenceNavColorEnum {
Primary = "PRIMARY",
Secondary = "SECONDARY",
Success = "SUCCESS",
Info = "INFO",
Warning = "WARNING",
Danger = "DANGER",
Light = "LIGHT",
Dark = "DARK",
}
/**
* @export
* @enum {string}
*/
export enum UserPreferenceDefaultPageEnum {
Search = "SEARCH",
Plan = "PLAN",
Books = "BOOKS",
}
/**
* @export
* @enum {string}
*/
export enum UserPreferenceSearchStyleEnum {
Small = "SMALL",
Large = "LARGE",
New = "NEW",
}
/**
*
* @export
* @interface ViewLog
*/
export interface ViewLog {
/**
*
* @type {number}
* @memberof ViewLog
*/
id?: number
/**
*
* @type {number}
* @memberof ViewLog
*/
recipe: number
/**
*
* @type {string}
* @memberof ViewLog
*/
created_by?: string
/**
*
* @type {string}
* @memberof ViewLog
*/
created_at?: string
}
/**
* ApiApi - axios parameter creator
* @export
*/
export const ApiApiAxiosParamCreator = function (configuration?: Configuration) {
return {
/**
*
* @param {Automation} [automation]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
createAutomation: async (automation?: Automation, options: any = {}): Promise<RequestArgs> => {
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<RequestArgs> => {
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<RequestArgs> => {
const localVarPath = `/api/cook-log/`
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
let baseOptions
if (configuration) {
baseOptions = configuration.baseOptions
}
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options }
const localVarHeaderParameter = {} as any
const localVarQueryParameter = {} as any
localVarHeaderParameter["Content-Type"] = "application/json"
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query)
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
localVarRequestOptions.data = serializeDataIfNeeded(cookLog, localVarRequestOptions, configuration)
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
}
},
/**
*
* @param {Food} [food]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
createFood: async (food?: Food, options: any = {}): Promise<RequestArgs> => {
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<RequestArgs> => {
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<RequestArgs> => {
const localVarPath = `/api/ingredient/`
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
let baseOptions
if (configuration) {
baseOptions = configuration.baseOptions
}
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options }
const localVarHeaderParameter = {} as any
const localVarQueryParameter = {} as any
localVarHeaderParameter["Content-Type"] = "application/json"
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query)
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
localVarRequestOptions.data = serializeDataIfNeeded(ingredient, localVarRequestOptions, configuration)
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
}
},
/**
*
* @param {Keyword} [keyword]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
createKeyword: async (keyword?: Keyword, options: any = {}): Promise<RequestArgs> => {
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<RequestArgs> => {
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<RequestArgs> => {
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<RequestArgs> => {
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<RequestArgs> => {
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<RequestArgs> => {
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<RequestArgs> => {
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<RequestArgs> => {
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<RequestArgs> => {
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<RequestArgs> => {
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<RequestArgs> => {
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<RequestArgs> => {
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<RequestArgs> => {
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<RequestArgs> => {
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<RequestArgs> => {
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<RequestArgs> => {
const localVarPath = `/api/unit/`
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
let baseOptions
if (configuration) {
baseOptions = configuration.baseOptions
}
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options }
const localVarHeaderParameter = {} as any
const localVarQueryParameter = {} as any
localVarHeaderParameter["Content-Type"] = "application/json"
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query)
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
localVarRequestOptions.data = serializeDataIfNeeded(unit, localVarRequestOptions, configuration)
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
}
},
/**
*
* @param {string} name
* @param {any} [file]
* @param {number} [fileSizeKb]
* @param {number} [id]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
createUserFile: async (name: string, file?: any, fileSizeKb?: number, id?: number, options: any = {}): Promise<RequestArgs> => {
// verify required parameter 'name' is not null or undefined
assertParamExists("createUserFile", "name", name)
const localVarPath = `/api/user-file/`
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
let baseOptions
if (configuration) {
baseOptions = configuration.baseOptions
}
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options }
const localVarHeaderParameter = {} as any
const localVarQueryParameter = {} as any
const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)()
if (name !== undefined) {
localVarFormParams.append("name", name as any)
}
if (file !== undefined) {
localVarFormParams.append("file", file as any)
}
if (fileSizeKb !== undefined) {
localVarFormParams.append("file_size_kb", fileSizeKb as any)
}
if (id !== undefined) {
localVarFormParams.append("id", id as any)
}
localVarHeaderParameter["Content-Type"] = "multipart/form-data"
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query)
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
localVarRequestOptions.data = localVarFormParams
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
}
},
/**
*
* @param {UserPreference} [userPreference]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
createUserPreference: async (userPreference?: UserPreference, options: any = {}): Promise<RequestArgs> => {
const localVarPath = `/api/user-preference/`
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
let baseOptions
if (configuration) {
baseOptions = configuration.baseOptions
}
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options }
const localVarHeaderParameter = {} as any
const localVarQueryParameter = {} as any
localVarHeaderParameter["Content-Type"] = "application/json"
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query)
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
localVarRequestOptions.data = serializeDataIfNeeded(userPreference, localVarRequestOptions, configuration)
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
}
},
/**
*
* @param {ViewLog} [viewLog]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
createViewLog: async (viewLog?: ViewLog, options: any = {}): Promise<RequestArgs> => {
const localVarPath = `/api/view-log/`
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
let baseOptions
if (configuration) {
baseOptions = configuration.baseOptions
}
const localVarRequestOptions = { method: "POST", ...baseOptions, ...options }
const localVarHeaderParameter = {} as any
const localVarQueryParameter = {} as any
localVarHeaderParameter["Content-Type"] = "application/json"
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query)
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
localVarRequestOptions.data = serializeDataIfNeeded(viewLog, localVarRequestOptions, configuration)
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
}
},
/**
*
* @param {string} id A unique integer value identifying this automation.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
destroyAutomation: async (id: string, options: any = {}): Promise<RequestArgs> => {
// 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<RequestArgs> => {
// 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<RequestArgs> => {
// verify required parameter 'id' is not null or undefined
assertParamExists("destroyCookLog", "id", id)
const localVarPath = `/api/cook-log/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(id)))
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
let baseOptions
if (configuration) {
baseOptions = configuration.baseOptions
}
const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options }
const localVarHeaderParameter = {} as any
const localVarQueryParameter = {} as any
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query)
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
}
},
/**
*
* @param {string} id A unique integer value identifying this food.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
destroyFood: async (id: string, options: any = {}): Promise<RequestArgs> => {
// 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<RequestArgs> => {
// 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<RequestArgs> => {
// verify required parameter 'id' is not null or undefined
assertParamExists("destroyIngredient", "id", id)
const localVarPath = `/api/ingredient/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(id)))
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
let baseOptions
if (configuration) {
baseOptions = configuration.baseOptions
}
const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options }
const localVarHeaderParameter = {} as any
const localVarQueryParameter = {} as any
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query)
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
}
},
/**
*
* @param {string} id A unique integer value identifying this keyword.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
destroyKeyword: async (id: string, options: any = {}): Promise<RequestArgs> => {
// 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<RequestArgs> => {
// 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<RequestArgs> => {
// 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<RequestArgs> => {
// 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<RequestArgs> => {
// 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<RequestArgs> => {
// 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<RequestArgs> => {
// 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<RequestArgs> => {
// 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<RequestArgs> => {
// 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<RequestArgs> => {
// 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<RequestArgs> => {
// 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<RequestArgs> => {
// 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<RequestArgs> => {
// 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<RequestArgs> => {
// 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<RequestArgs> => {
// 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<RequestArgs> => {
// verify required parameter 'id' is not null or undefined
assertParamExists("destroyUnit", "id", id)
const localVarPath = `/api/unit/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(id)))
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
let baseOptions
if (configuration) {
baseOptions = configuration.baseOptions
}
const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options }
const localVarHeaderParameter = {} as any
const localVarQueryParameter = {} as any
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query)
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
}
},
/**
*
* @param {string} id A unique integer value identifying this user file.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
destroyUserFile: async (id: string, options: any = {}): Promise<RequestArgs> => {
// verify required parameter 'id' is not null or undefined
assertParamExists("destroyUserFile", "id", id)
const localVarPath = `/api/user-file/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(id)))
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
let baseOptions
if (configuration) {
baseOptions = configuration.baseOptions
}
const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options }
const localVarHeaderParameter = {} as any
const localVarQueryParameter = {} as any
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query)
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
}
},
/**
*
* @param {string} user A unique value identifying this user preference.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
destroyUserPreference: async (user: string, options: any = {}): Promise<RequestArgs> => {
// verify required parameter 'user' is not null or undefined
assertParamExists("destroyUserPreference", "user", user)
const localVarPath = `/api/user-preference/{user}/`.replace(`{${"user"}}`, encodeURIComponent(String(user)))
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
let baseOptions
if (configuration) {
baseOptions = configuration.baseOptions
}
const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options }
const localVarHeaderParameter = {} as any
const localVarQueryParameter = {} as any
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query)
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
}
},
/**
*
* @param {string} id A unique integer value identifying this view log.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
destroyViewLog: async (id: string, options: any = {}): Promise<RequestArgs> => {
// verify required parameter 'id' is not null or undefined
assertParamExists("destroyViewLog", "id", id)
const localVarPath = `/api/view-log/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(id)))
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
let baseOptions
if (configuration) {
baseOptions = configuration.baseOptions
}
const localVarRequestOptions = { method: "DELETE", ...baseOptions, ...options }
const localVarHeaderParameter = {} as any
const localVarQueryParameter = {} as any
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query)
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
}
},
/**
*
* @param {string} id A unique integer value identifying this recipe.
* @param {any} [image]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
imageRecipe: async (id: string, image?: any, options: any = {}): Promise<RequestArgs> => {
// verify required parameter 'id' is not null or undefined
assertParamExists("imageRecipe", "id", id)
const localVarPath = `/api/recipe/{id}/image/`.replace(`{${"id"}}`, encodeURIComponent(String(id)))
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
let baseOptions
if (configuration) {
baseOptions = configuration.baseOptions
}
const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options }
const localVarHeaderParameter = {} as any
const localVarQueryParameter = {} as any
const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)()
if (image !== undefined) {
localVarFormParams.append("image", image as any)
}
localVarHeaderParameter["Content-Type"] = "multipart/form-data"
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query)
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
localVarRequestOptions.data = localVarFormParams
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
}
},
/**
*
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
listAutomations: async (options: any = {}): Promise<RequestArgs> => {
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<RequestArgs> => {
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<RequestArgs> => {
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}
*/
listFoodInheritFields: async (options: any = {}): Promise<RequestArgs> => {
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<RequestArgs> => {
const localVarPath = `/api/food/`
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
let baseOptions
if (configuration) {
baseOptions = configuration.baseOptions
}
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options }
const localVarHeaderParameter = {} as any
const localVarQueryParameter = {} as any
if (query !== undefined) {
localVarQueryParameter["query"] = query
}
if (root !== undefined) {
localVarQueryParameter["root"] = root
}
if (tree !== undefined) {
localVarQueryParameter["tree"] = tree
}
if (page !== undefined) {
localVarQueryParameter["page"] = page
}
if (pageSize !== undefined) {
localVarQueryParameter["page_size"] = pageSize
}
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query)
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
}
},
/**
*
* @param {number} [page] A page number within the paginated result set.
* @param {number} [pageSize] Number of results to return per page.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
listImportLogs: async (page?: number, pageSize?: number, options: any = {}): Promise<RequestArgs> => {
const localVarPath = `/api/import-log/`
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
let baseOptions
if (configuration) {
baseOptions = configuration.baseOptions
}
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options }
const localVarHeaderParameter = {} as any
const localVarQueryParameter = {} as any
if (page !== undefined) {
localVarQueryParameter["page"] = page
}
if (pageSize !== undefined) {
localVarQueryParameter["page_size"] = pageSize
}
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query)
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
}
},
/**
*
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
listIngredients: async (options: any = {}): Promise<RequestArgs> => {
const localVarPath = `/api/ingredient/`
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
let baseOptions
if (configuration) {
baseOptions = configuration.baseOptions
}
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options }
const localVarHeaderParameter = {} as any
const localVarQueryParameter = {} as any
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query)
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
}
},
/**
*
* @param {string} [query] Query string matched against keyword name.
* @param {number} [root] Return first level children of keyword with ID [int]. Integer 0 will return root keywords.
* @param {number} [tree] Return all self and children of keyword with ID [int].
* @param {number} [page] A page number within the paginated result set.
* @param {number} [pageSize] Number of results to return per page.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
listKeywords: async (query?: string, root?: number, tree?: number, page?: number, pageSize?: number, options: any = {}): Promise<RequestArgs> => {
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<RequestArgs> => {
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<RequestArgs> => {
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<RequestArgs> => {
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<RequestArgs> => {
const localVarPath = `/api/recipe-book/`
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
let baseOptions
if (configuration) {
baseOptions = configuration.baseOptions
}
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options }
const localVarHeaderParameter = {} as any
const localVarQueryParameter = {} as any
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query)
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
}
},
/**
*
* @param {string} [query] Query string matched (fuzzy) against recipe name. In the future also fulltext search.
* @param {string} [keywords] Id of keyword a recipe should have. For multiple repeat parameter.
* @param {string} [foods] Id of food a recipe should have. For multiple repeat parameter.
* @param {number} [units] Id of unit a recipe should have.
* @param {number} [rating] Id of unit a recipe should have.
* @param {string} [books] Id of book a recipe should have. For multiple repeat parameter.
* @param {string} [steps] Id of a step a recipe should have. For multiple repeat parameter.
* @param {string} [keywordsOr] If recipe should have all (AND) or any (OR) of the provided keywords.
* @param {string} [foodsOr] If recipe should have all (AND) or any (OR) any of the provided foods.
* @param {string} [booksOr] If recipe should be in all (AND) or any (OR) any of the provided books.
* @param {string} [internal] true or false. If only internal recipes should be returned or not.
* @param {string} [random] true or false. returns the results in randomized order.
* @param {string} [_new] true or false. returns new results first in search results
* @param {number} [page] A page number within the paginated result set.
* @param {number} [pageSize] Number of results to return per page.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
listRecipes: async (
query?: string,
keywords?: string,
foods?: string,
units?: number,
rating?: number,
books?: string,
steps?: string,
keywordsOr?: string,
foodsOr?: string,
booksOr?: string,
internal?: string,
random?: string,
_new?: string,
page?: number,
pageSize?: number,
options: any = {}
): Promise<RequestArgs> => {
const localVarPath = `/api/recipe/`
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
let baseOptions
if (configuration) {
baseOptions = configuration.baseOptions
}
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options }
const localVarHeaderParameter = {} as any
const localVarQueryParameter = {} as any
if (query !== undefined) {
localVarQueryParameter["query"] = query
}
if (keywords !== undefined) {
localVarQueryParameter["keywords"] = keywords
}
if (foods !== undefined) {
localVarQueryParameter["foods"] = foods
}
if (units !== undefined) {
localVarQueryParameter["units"] = units
}
if (rating !== undefined) {
localVarQueryParameter["rating"] = rating
}
if (books !== undefined) {
localVarQueryParameter["books"] = books
}
if (steps !== undefined) {
localVarQueryParameter["steps"] = steps
}
if (keywordsOr !== undefined) {
localVarQueryParameter["keywords_or"] = keywordsOr
}
if (foodsOr !== undefined) {
localVarQueryParameter["foods_or"] = foodsOr
}
if (booksOr !== undefined) {
localVarQueryParameter["books_or"] = booksOr
}
if (internal !== undefined) {
localVarQueryParameter["internal"] = internal
}
if (random !== undefined) {
localVarQueryParameter["random"] = random
}
if (_new !== undefined) {
localVarQueryParameter["new"] = _new
}
if (page !== undefined) {
localVarQueryParameter["page"] = page
}
if (pageSize !== undefined) {
localVarQueryParameter["page_size"] = pageSize
}
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query)
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
}
},
/**
*
* @param {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, &lt;b&gt;recent&lt;/b&gt;]&lt;br&gt; - 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<RequestArgs> => {
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<RequestArgs> => {
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<RequestArgs> => {
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 {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 (query?: string, page?: number, pageSize?: number, options: any = {}): Promise<RequestArgs> => {
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 (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<RequestArgs> => {
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<RequestArgs> => {
const localVarPath = `/api/supermarket-category-relation/`
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
let baseOptions
if (configuration) {
baseOptions = configuration.baseOptions
}
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options }
const localVarHeaderParameter = {} as any
const localVarQueryParameter = {} as any
if (page !== undefined) {
localVarQueryParameter["page"] = page
}
if (pageSize !== undefined) {
localVarQueryParameter["page_size"] = pageSize
}
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query)
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
}
},
/**
*
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
listSupermarketCategorys: async (options: any = {}): Promise<RequestArgs> => {
const localVarPath = `/api/supermarket-category/`
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
let baseOptions
if (configuration) {
baseOptions = configuration.baseOptions
}
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options }
const localVarHeaderParameter = {} as any
const localVarQueryParameter = {} as any
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query)
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
}
},
/**
*
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
listSupermarkets: async (options: any = {}): Promise<RequestArgs> => {
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<RequestArgs> => {
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<RequestArgs> => {
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<RequestArgs> => {
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<RequestArgs> => {
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<RequestArgs> => {
const localVarPath = `/api/user-preference/`
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
let baseOptions
if (configuration) {
baseOptions = configuration.baseOptions
}
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options }
const localVarHeaderParameter = {} as any
const localVarQueryParameter = {} as any
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query)
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
}
},
/**
* optional parameters - **filter_list**: array of user id\'s to get names for
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
listUsers: async (options: any = {}): Promise<RequestArgs> => {
const localVarPath = `/api/user-name/`
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
let baseOptions
if (configuration) {
baseOptions = configuration.baseOptions
}
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options }
const localVarHeaderParameter = {} as any
const localVarQueryParameter = {} as any
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query)
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
}
},
/**
*
* @param {number} [page] A page number within the paginated result set.
* @param {number} [pageSize] Number of results to return per page.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
listViewLogs: async (page?: number, pageSize?: number, options: any = {}): Promise<RequestArgs> => {
const localVarPath = `/api/view-log/`
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
let baseOptions
if (configuration) {
baseOptions = configuration.baseOptions
}
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options }
const localVarHeaderParameter = {} as any
const localVarQueryParameter = {} as any
if (page !== undefined) {
localVarQueryParameter["page"] = page
}
if (pageSize !== undefined) {
localVarQueryParameter["page_size"] = pageSize
}
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query)
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
}
},
/**
*
* @param {string} id A unique integer value identifying this food.
* @param {string} target
* @param {Food} [food]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
mergeFood: async (id: string, target: string, food?: Food, options: any = {}): Promise<RequestArgs> => {
// 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<RequestArgs> => {
// 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<RequestArgs> => {
// 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<RequestArgs> => {
// 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<RequestArgs> => {
// 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<RequestArgs> => {
// 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<RequestArgs> => {
// 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<RequestArgs> => {
// verify required parameter 'id' is not null or undefined
assertParamExists("partialUpdateCookLog", "id", id)
const localVarPath = `/api/cook-log/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(id)))
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
let baseOptions
if (configuration) {
baseOptions = configuration.baseOptions
}
const localVarRequestOptions = { method: "PATCH", ...baseOptions, ...options }
const localVarHeaderParameter = {} as any
const localVarQueryParameter = {} as any
localVarHeaderParameter["Content-Type"] = "application/json"
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query)
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
localVarRequestOptions.data = serializeDataIfNeeded(cookLog, localVarRequestOptions, configuration)
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
}
},
/**
*
* @param {string} id A unique integer value identifying this food.
* @param {Food} [food]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
partialUpdateFood: async (id: string, food?: Food, options: any = {}): Promise<RequestArgs> => {
// 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<RequestArgs> => {
// 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<RequestArgs> => {
// verify required parameter 'id' is not null or undefined
assertParamExists("partialUpdateIngredient", "id", id)
const localVarPath = `/api/ingredient/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(id)))
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
let baseOptions
if (configuration) {
baseOptions = configuration.baseOptions
}
const localVarRequestOptions = { method: "PATCH", ...baseOptions, ...options }
const localVarHeaderParameter = {} as any
const localVarQueryParameter = {} as any
localVarHeaderParameter["Content-Type"] = "application/json"
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query)
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
localVarRequestOptions.data = serializeDataIfNeeded(ingredient, localVarRequestOptions, configuration)
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
}
},
/**
*
* @param {string} id A unique integer value identifying this keyword.
* @param {Keyword} [keyword]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
partialUpdateKeyword: async (id: string, keyword?: Keyword, options: any = {}): Promise<RequestArgs> => {
// 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<RequestArgs> => {
// 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<RequestArgs> => {
// 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<RequestArgs> => {
// 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<RequestArgs> => {
// 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<RequestArgs> => {
// 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<RequestArgs> => {
// 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<RequestArgs> => {
// 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<RequestArgs> => {
// verify required parameter 'id' is not null or undefined
assertParamExists("partialUpdateShoppingListRecipe", "id", id)
const localVarPath = `/api/shopping-list-recipe/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(id)))
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
let baseOptions
if (configuration) {
baseOptions = configuration.baseOptions
}
const localVarRequestOptions = { method: "PATCH", ...baseOptions, ...options }
const localVarHeaderParameter = {} as any
const localVarQueryParameter = {} as any
localVarHeaderParameter["Content-Type"] = "application/json"
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query)
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
localVarRequestOptions.data = serializeDataIfNeeded(shoppingListRecipe, localVarRequestOptions, configuration)
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
}
},
/**
*
* @param {string} id A unique integer value identifying this step.
* @param {Step} [step]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
partialUpdateStep: async (id: string, step?: Step, options: any = {}): Promise<RequestArgs> => {
// 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<RequestArgs> => {
// 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<RequestArgs> => {
// 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<RequestArgs> => {
// 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<RequestArgs> => {
// 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<RequestArgs> => {
// 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<RequestArgs> => {
// verify required parameter 'id' is not null or undefined
assertParamExists("partialUpdateUnit", "id", id)
const localVarPath = `/api/unit/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(id)))
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
let baseOptions
if (configuration) {
baseOptions = configuration.baseOptions
}
const localVarRequestOptions = { method: "PATCH", ...baseOptions, ...options }
const localVarHeaderParameter = {} as any
const localVarQueryParameter = {} as any
localVarHeaderParameter["Content-Type"] = "application/json"
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query)
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
localVarRequestOptions.data = serializeDataIfNeeded(unit, localVarRequestOptions, configuration)
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
}
},
/**
*
* @param {string} id A unique integer value identifying this user file.
* @param {string} name
* @param {any} [file]
* @param {number} [fileSizeKb]
* @param {number} [id2]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
partialUpdateUserFile: async (id: string, name: string, file?: any, fileSizeKb?: number, id2?: number, options: any = {}): Promise<RequestArgs> => {
// verify required parameter 'id' is not null or undefined
assertParamExists("partialUpdateUserFile", "id", id)
// verify required parameter 'name' is not null or undefined
assertParamExists("partialUpdateUserFile", "name", name)
const localVarPath = `/api/user-file/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(id)))
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
let baseOptions
if (configuration) {
baseOptions = configuration.baseOptions
}
const localVarRequestOptions = { method: "PATCH", ...baseOptions, ...options }
const localVarHeaderParameter = {} as any
const localVarQueryParameter = {} as any
const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)()
if (name !== undefined) {
localVarFormParams.append("name", name as any)
}
if (file !== undefined) {
localVarFormParams.append("file", file as any)
}
if (fileSizeKb !== undefined) {
localVarFormParams.append("file_size_kb", fileSizeKb as any)
}
if (id2 !== undefined) {
localVarFormParams.append("id", id2 as any)
}
localVarHeaderParameter["Content-Type"] = "multipart/form-data"
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query)
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
localVarRequestOptions.data = localVarFormParams
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
}
},
/**
*
* @param {string} user A unique value identifying this user preference.
* @param {UserPreference} [userPreference]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
partialUpdateUserPreference: async (user: string, userPreference?: UserPreference, options: any = {}): Promise<RequestArgs> => {
// verify required parameter 'user' is not null or undefined
assertParamExists("partialUpdateUserPreference", "user", user)
const localVarPath = `/api/user-preference/{user}/`.replace(`{${"user"}}`, encodeURIComponent(String(user)))
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
let baseOptions
if (configuration) {
baseOptions = configuration.baseOptions
}
const localVarRequestOptions = { method: "PATCH", ...baseOptions, ...options }
const localVarHeaderParameter = {} as any
const localVarQueryParameter = {} as any
localVarHeaderParameter["Content-Type"] = "application/json"
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query)
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
localVarRequestOptions.data = serializeDataIfNeeded(userPreference, localVarRequestOptions, configuration)
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
}
},
/**
*
* @param {string} id A unique integer value identifying this view log.
* @param {ViewLog} [viewLog]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
partialUpdateViewLog: async (id: string, viewLog?: ViewLog, options: any = {}): Promise<RequestArgs> => {
// 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<RequestArgs> => {
// 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<RequestArgs> => {
// 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<RequestArgs> => {
// 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<RequestArgs> => {
// verify required parameter 'id' is not null or undefined
assertParamExists("retrieveCookLog", "id", id)
const localVarPath = `/api/cook-log/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(id)))
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
let baseOptions
if (configuration) {
baseOptions = configuration.baseOptions
}
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options }
const localVarHeaderParameter = {} as any
const localVarQueryParameter = {} as any
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query)
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
}
},
/**
*
* @param {string} id A unique integer value identifying this food.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
retrieveFood: async (id: string, options: any = {}): Promise<RequestArgs> => {
// 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<RequestArgs> => {
// 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 import log.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
retrieveImportLog: async (id: string, options: any = {}): Promise<RequestArgs> => {
// 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<RequestArgs> => {
// verify required parameter 'id' is not null or undefined
assertParamExists("retrieveIngredient", "id", id)
const localVarPath = `/api/ingredient/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(id)))
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
let baseOptions
if (configuration) {
baseOptions = configuration.baseOptions
}
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options }
const localVarHeaderParameter = {} as any
const localVarQueryParameter = {} as any
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query)
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
}
},
/**
*
* @param {string} id A unique integer value identifying this keyword.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
retrieveKeyword: async (id: string, options: any = {}): Promise<RequestArgs> => {
// 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<RequestArgs> => {
// 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<RequestArgs> => {
// 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<RequestArgs> => {
// 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<RequestArgs> => {
// 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<RequestArgs> => {
// 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<RequestArgs> => {
// 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<RequestArgs> => {
// 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<RequestArgs> => {
// verify required parameter 'id' is not null or undefined
assertParamExists("retrieveShoppingListRecipe", "id", id)
const localVarPath = `/api/shopping-list-recipe/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(id)))
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
let baseOptions
if (configuration) {
baseOptions = configuration.baseOptions
}
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options }
const localVarHeaderParameter = {} as any
const localVarQueryParameter = {} as any
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query)
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
}
},
/**
*
* @param {string} id A unique integer value identifying this step.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
retrieveStep: async (id: string, options: any = {}): Promise<RequestArgs> => {
// 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<RequestArgs> => {
// 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<RequestArgs> => {
// 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<RequestArgs> => {
// 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<RequestArgs> => {
// 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<RequestArgs> => {
// 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<RequestArgs> => {
// 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<RequestArgs> => {
// 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<RequestArgs> => {
// verify required parameter 'id' is not null or undefined
assertParamExists("retrieveUser", "id", id)
const localVarPath = `/api/user-name/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(id)))
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
let baseOptions
if (configuration) {
baseOptions = configuration.baseOptions
}
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options }
const localVarHeaderParameter = {} as any
const localVarQueryParameter = {} as any
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query)
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
}
},
/**
*
* @param {string} id A unique integer value identifying this user file.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
retrieveUserFile: async (id: string, options: any = {}): Promise<RequestArgs> => {
// 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<RequestArgs> => {
// verify required parameter 'user' is not null or undefined
assertParamExists("retrieveUserPreference", "user", user)
const localVarPath = `/api/user-preference/{user}/`.replace(`{${"user"}}`, encodeURIComponent(String(user)))
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
let baseOptions
if (configuration) {
baseOptions = configuration.baseOptions
}
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options }
const localVarHeaderParameter = {} as any
const localVarQueryParameter = {} as any
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query)
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
}
},
/**
*
* @param {string} id A unique integer value identifying this view log.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
retrieveViewLog: async (id: string, options: any = {}): Promise<RequestArgs> => {
// verify required parameter 'id' is not null or undefined
assertParamExists("retrieveViewLog", "id", id)
const localVarPath = `/api/view-log/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(id)))
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
let baseOptions
if (configuration) {
baseOptions = configuration.baseOptions
}
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options }
const localVarHeaderParameter = {} as any
const localVarQueryParameter = {} as any
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query)
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
}
},
/**
*
* @param {string} id A unique integer value identifying this food.
* @param {FoodShoppingUpdate} [foodShoppingUpdate]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
shoppingFood: async (id: string, foodShoppingUpdate?: FoodShoppingUpdate, options: any = {}): Promise<RequestArgs> => {
// 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<RequestArgs> => {
// 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<RequestArgs> => {
// 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<RequestArgs> => {
// 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<RequestArgs> => {
// verify required parameter 'id' is not null or undefined
assertParamExists("updateCookLog", "id", id)
const localVarPath = `/api/cook-log/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(id)))
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
let baseOptions
if (configuration) {
baseOptions = configuration.baseOptions
}
const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options }
const localVarHeaderParameter = {} as any
const localVarQueryParameter = {} as any
localVarHeaderParameter["Content-Type"] = "application/json"
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query)
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
localVarRequestOptions.data = serializeDataIfNeeded(cookLog, localVarRequestOptions, configuration)
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
}
},
/**
*
* @param {string} id A unique integer value identifying this food.
* @param {Food} [food]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
updateFood: async (id: string, food?: Food, options: any = {}): Promise<RequestArgs> => {
// 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<RequestArgs> => {
// 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<RequestArgs> => {
// verify required parameter 'id' is not null or undefined
assertParamExists("updateIngredient", "id", id)
const localVarPath = `/api/ingredient/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(id)))
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
let baseOptions
if (configuration) {
baseOptions = configuration.baseOptions
}
const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options }
const localVarHeaderParameter = {} as any
const localVarQueryParameter = {} as any
localVarHeaderParameter["Content-Type"] = "application/json"
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query)
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
localVarRequestOptions.data = serializeDataIfNeeded(ingredient, localVarRequestOptions, configuration)
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
}
},
/**
*
* @param {string} id A unique integer value identifying this keyword.
* @param {Keyword} [keyword]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
updateKeyword: async (id: string, keyword?: Keyword, options: any = {}): Promise<RequestArgs> => {
// 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<RequestArgs> => {
// 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<RequestArgs> => {
// 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<RequestArgs> => {
// 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<RequestArgs> => {
// 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<RequestArgs> => {
// 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<RequestArgs> => {
// 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<RequestArgs> => {
// 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<RequestArgs> => {
// 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<RequestArgs> => {
// 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<RequestArgs> => {
// 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<RequestArgs> => {
// 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<RequestArgs> => {
// 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<RequestArgs> => {
// 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<RequestArgs> => {
// 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<RequestArgs> => {
// verify required parameter 'id' is not null or undefined
assertParamExists("updateUnit", "id", id)
const localVarPath = `/api/unit/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(id)))
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
let baseOptions
if (configuration) {
baseOptions = configuration.baseOptions
}
const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options }
const localVarHeaderParameter = {} as any
const localVarQueryParameter = {} as any
localVarHeaderParameter["Content-Type"] = "application/json"
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query)
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
localVarRequestOptions.data = serializeDataIfNeeded(unit, localVarRequestOptions, configuration)
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
}
},
/**
*
* @param {string} id A unique integer value identifying this user file.
* @param {string} name
* @param {any} [file]
* @param {number} [fileSizeKb]
* @param {number} [id2]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
updateUserFile: async (id: string, name: string, file?: any, fileSizeKb?: number, id2?: number, options: any = {}): Promise<RequestArgs> => {
// verify required parameter 'id' is not null or undefined
assertParamExists("updateUserFile", "id", id)
// verify required parameter 'name' is not null or undefined
assertParamExists("updateUserFile", "name", name)
const localVarPath = `/api/user-file/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(id)))
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
let baseOptions
if (configuration) {
baseOptions = configuration.baseOptions
}
const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options }
const localVarHeaderParameter = {} as any
const localVarQueryParameter = {} as any
const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)()
if (name !== undefined) {
localVarFormParams.append("name", name as any)
}
if (file !== undefined) {
localVarFormParams.append("file", file as any)
}
if (fileSizeKb !== undefined) {
localVarFormParams.append("file_size_kb", fileSizeKb as any)
}
if (id2 !== undefined) {
localVarFormParams.append("id", id2 as any)
}
localVarHeaderParameter["Content-Type"] = "multipart/form-data"
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query)
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
localVarRequestOptions.data = localVarFormParams
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
}
},
/**
*
* @param {string} user A unique value identifying this user preference.
* @param {UserPreference} [userPreference]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
updateUserPreference: async (user: string, userPreference?: UserPreference, options: any = {}): Promise<RequestArgs> => {
// verify required parameter 'user' is not null or undefined
assertParamExists("updateUserPreference", "user", user)
const localVarPath = `/api/user-preference/{user}/`.replace(`{${"user"}}`, encodeURIComponent(String(user)))
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL)
let baseOptions
if (configuration) {
baseOptions = configuration.baseOptions
}
const localVarRequestOptions = { method: "PUT", ...baseOptions, ...options }
const localVarHeaderParameter = {} as any
const localVarQueryParameter = {} as any
localVarHeaderParameter["Content-Type"] = "application/json"
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query)
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers }
localVarRequestOptions.data = serializeDataIfNeeded(userPreference, localVarRequestOptions, configuration)
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
}
},
/**
*
* @param {string} id A unique integer value identifying this view log.
* @param {ViewLog} [viewLog]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
updateViewLog: async (id: string, viewLog?: ViewLog, options: any = {}): Promise<RequestArgs> => {
// 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<Automation>> {
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<BookmarkletImport>> {
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<CookLog>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.createCookLog(cookLog, options)
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
},
/**
*
* @param {Food} [food]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async createFood(food?: Food, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Food>> {
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<ImportLog>> {
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<Ingredient>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.createIngredient(ingredient, options)
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
},
/**
*
* @param {Keyword} [keyword]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async createKeyword(keyword?: Keyword, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Keyword>> {
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<MealPlan>> {
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<MealType>> {
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<Recipe>> {
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<RecipeBook>> {
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<RecipeBookEntry>> {
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<ShoppingList>> {
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<ShoppingListEntry>> {
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<ShoppingListRecipe>> {
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<Step>> {
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<Storage>> {
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<Supermarket>> {
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<SupermarketCategory>> {
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<SupermarketCategoryRelation>> {
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<Sync>> {
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<Unit>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.createUnit(unit, options)
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
},
/**
*
* @param {string} name
* @param {any} [file]
* @param {number} [fileSizeKb]
* @param {number} [id]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async createUserFile(
name: string,
file?: any,
fileSizeKb?: number,
id?: number,
options?: any
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserFile>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.createUserFile(name, file, fileSizeKb, id, options)
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
},
/**
*
* @param {UserPreference} [userPreference]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async createUserPreference(userPreference?: UserPreference, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserPreference>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.createUserPreference(userPreference, options)
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
},
/**
*
* @param {ViewLog} [viewLog]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async createViewLog(viewLog?: ViewLog, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ViewLog>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.createViewLog(viewLog, 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<void>> {
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<void>> {
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<void>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.destroyCookLog(id, options)
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
},
/**
*
* @param {string} id A unique integer value identifying this food.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async destroyFood(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
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<void>> {
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<void>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.destroyIngredient(id, options)
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
},
/**
*
* @param {string} id A unique integer value identifying this keyword.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async destroyKeyword(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
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<void>> {
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<void>> {
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<void>> {
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<void>> {
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<void>> {
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<void>> {
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<void>> {
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<void>> {
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<void>> {
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<void>> {
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<void>> {
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<void>> {
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<void>> {
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<void>> {
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<void>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.destroyUnit(id, options)
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
},
/**
*
* @param {string} id A unique integer value identifying this user file.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async destroyUserFile(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.destroyUserFile(id, options)
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
},
/**
*
* @param {string} user A unique value identifying this user preference.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async destroyUserPreference(user: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.destroyUserPreference(user, options)
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
},
/**
*
* @param {string} id A unique integer value identifying this view log.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async destroyViewLog(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.destroyViewLog(id, options)
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
},
/**
*
* @param {string} id A unique integer value identifying this recipe.
* @param {any} [image]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async imageRecipe(id: string, image?: any, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RecipeImage>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.imageRecipe(id, image, 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<Array<Automation>>> {
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<Array<BookmarkletImport>>> {
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<InlineResponse2007>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.listCookLogs(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<Array<FoodInheritField>>> {
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<InlineResponse2001>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.listFoods(query, root, tree, page, pageSize, options)
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
},
/**
*
* @param {number} [page] A page number within the paginated result set.
* @param {number} [pageSize] Number of results to return per page.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async listImportLogs(page?: number, pageSize?: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse2009>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.listImportLogs(page, pageSize, options)
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
},
/**
*
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async listIngredients(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Ingredient>>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.listIngredients(options)
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
},
/**
*
* @param {string} [query] Query string matched against keyword name.
* @param {number} [root] Return first level children of keyword with ID [int]. Integer 0 will return root keywords.
* @param {number} [tree] Return all self and children of keyword with ID [int].
* @param {number} [page] A page number within the paginated result set.
* @param {number} [pageSize] Number of results to return per page.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async listKeywords(
query?: string,
root?: number,
tree?: number,
page?: number,
pageSize?: number,
options?: any
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse2003>> {
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<Array<MealPlan>>> {
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<Array<MealType>>> {
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<Array<RecipeBookEntry>>> {
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<Array<RecipeBook>>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.listRecipeBooks(options)
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
},
/**
*
* @param {string} [query] Query string matched (fuzzy) against recipe name. In the future also fulltext search.
* @param {string} [keywords] Id of keyword a recipe should have. For multiple repeat parameter.
* @param {string} [foods] Id of food a recipe should have. For multiple repeat parameter.
* @param {number} [units] Id of unit a recipe should have.
* @param {number} [rating] Id of unit a recipe should have.
* @param {string} [books] Id of book a recipe should have. For multiple repeat parameter.
* @param {string} [steps] Id of a step a recipe should have. For multiple repeat parameter.
* @param {string} [keywordsOr] If recipe should have all (AND) or any (OR) of the provided keywords.
* @param {string} [foodsOr] If recipe should have all (AND) or any (OR) any of the provided foods.
* @param {string} [booksOr] If recipe should be in all (AND) or any (OR) any of the provided books.
* @param {string} [internal] true or false. If only internal recipes should be returned or not.
* @param {string} [random] true or false. returns the results in randomized order.
* @param {string} [_new] true or false. returns new results first in search results
* @param {number} [page] A page number within the paginated result set.
* @param {number} [pageSize] Number of results to return per page.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async listRecipes(
query?: string,
keywords?: string,
foods?: string,
units?: number,
rating?: number,
books?: string,
steps?: string,
keywordsOr?: string,
foodsOr?: string,
booksOr?: string,
internal?: string,
random?: string,
_new?: string,
page?: number,
pageSize?: number,
options?: any
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse2005>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.listRecipes(
query,
keywords,
foods,
units,
rating,
books,
steps,
keywordsOr,
foodsOr,
booksOr,
internal,
random,
_new,
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, &lt;b&gt;recent&lt;/b&gt;]&lt;br&gt; - 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<Array<ShoppingListEntry>>> {
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<Array<ShoppingListRecipe>>> {
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<Array<ShoppingList>>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.listShoppingLists(options)
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
},
/**
*
* @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(query?: string, page?: number, pageSize?: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<InlineResponse2004>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.listSteps(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<Array<Storage>>> {
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<InlineResponse2008>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.listSupermarketCategoryRelations(page, pageSize, options)
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
},
/**
*
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async listSupermarketCategorys(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<SupermarketCategory>>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.listSupermarketCategorys(options)
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
},
/**
*
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async listSupermarkets(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Supermarket>>> {
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<InlineResponse2007>> {
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<Array<Sync>>> {
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<InlineResponse2008>> {
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<Array<UserFile>>> {
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<Array<UserPreference>>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.listUserPreferences(options)
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
},
/**
* optional parameters - **filter_list**: array of user id\'s to get names for
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async listUsers(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<UserName>>> {
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<InlineResponse2006>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.listViewLogs(page, pageSize, options)
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
},
/**
*
* @param {string} id A unique integer value identifying this food.
* @param {string} target
* @param {Food} [food]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async mergeFood(id: string, target: string, food?: Food, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Food>> {
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<Keyword>> {
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<Unit>> {
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<Food>> {
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<Keyword>> {
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<Automation>> {
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<BookmarkletImport>> {
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<CookLog>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateCookLog(id, cookLog, options)
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
},
/**
*
* @param {string} id A unique integer value identifying this food.
* @param {Food} [food]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async partialUpdateFood(id: string, food?: Food, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Food>> {
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<ImportLog>> {
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<Ingredient>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateIngredient(id, ingredient, options)
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
},
/**
*
* @param {string} id A unique integer value identifying this keyword.
* @param {Keyword} [keyword]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async partialUpdateKeyword(id: string, keyword?: Keyword, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Keyword>> {
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<MealPlan>> {
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<MealType>> {
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<Recipe>> {
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<RecipeBook>> {
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<RecipeBookEntry>> {
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<ShoppingList>> {
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<ShoppingListEntry>> {
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<ShoppingListRecipe>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateShoppingListRecipe(id, shoppingListRecipe, options)
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
},
/**
*
* @param {string} id A unique integer value identifying this step.
* @param {Step} [step]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async partialUpdateStep(id: string, step?: Step, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Step>> {
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<Storage>> {
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<Supermarket>> {
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<SupermarketCategory>> {
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<SupermarketCategoryRelation>> {
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<Sync>> {
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<Unit>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateUnit(id, unit, options)
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
},
/**
*
* @param {string} id A unique integer value identifying this user file.
* @param {string} name
* @param {any} [file]
* @param {number} [fileSizeKb]
* @param {number} [id2]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async partialUpdateUserFile(
id: string,
name: string,
file?: any,
fileSizeKb?: number,
id2?: number,
options?: any
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserFile>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateUserFile(id, name, file, fileSizeKb, id2, options)
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
},
/**
*
* @param {string} user A unique value identifying this user preference.
* @param {UserPreference} [userPreference]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async partialUpdateUserPreference(
user: string,
userPreference?: UserPreference,
options?: any
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserPreference>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateUserPreference(user, userPreference, options)
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
},
/**
*
* @param {string} id A unique integer value identifying this view log.
* @param {ViewLog} [viewLog]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async partialUpdateViewLog(id: string, viewLog?: ViewLog, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ViewLog>> {
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<RecipeSimple>> {
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<Automation>> {
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<BookmarkletImport>> {
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<CookLog>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveCookLog(id, options)
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
},
/**
*
* @param {string} id A unique integer value identifying this food.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async retrieveFood(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Food>> {
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<FoodInheritField>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveFoodInheritField(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<ImportLog>> {
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<Ingredient>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveIngredient(id, options)
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
},
/**
*
* @param {string} id A unique integer value identifying this keyword.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async retrieveKeyword(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Keyword>> {
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<MealPlan>> {
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<MealType>> {
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<Recipe>> {
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<RecipeBook>> {
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<RecipeBookEntry>> {
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<ShoppingList>> {
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<ShoppingListEntry>> {
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<ShoppingListRecipe>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveShoppingListRecipe(id, options)
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
},
/**
*
* @param {string} id A unique integer value identifying this step.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async retrieveStep(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Step>> {
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<Storage>> {
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<Supermarket>> {
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<SupermarketCategory>> {
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<SupermarketCategoryRelation>> {
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<Sync>> {
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<SyncLog>> {
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<Unit>> {
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<UserName>> {
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<UserFile>> {
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<UserPreference>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveUserPreference(user, options)
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
},
/**
*
* @param {string} id A unique integer value identifying this view log.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async retrieveViewLog(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ViewLog>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveViewLog(id, 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<FoodShoppingUpdate>> {
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<RecipeShoppingUpdate>> {
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<Automation>> {
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<BookmarkletImport>> {
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<CookLog>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.updateCookLog(id, cookLog, options)
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
},
/**
*
* @param {string} id A unique integer value identifying this food.
* @param {Food} [food]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async updateFood(id: string, food?: Food, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Food>> {
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<ImportLog>> {
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<Ingredient>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.updateIngredient(id, ingredient, options)
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
},
/**
*
* @param {string} id A unique integer value identifying this keyword.
* @param {Keyword} [keyword]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async updateKeyword(id: string, keyword?: Keyword, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Keyword>> {
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<MealPlan>> {
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<MealType>> {
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<Recipe>> {
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<RecipeBook>> {
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<RecipeBookEntry>> {
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<ShoppingList>> {
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<ShoppingListEntry>> {
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<ShoppingListRecipe>> {
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<Step>> {
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<Storage>> {
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<Supermarket>> {
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<SupermarketCategory>> {
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<SupermarketCategoryRelation>> {
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<Sync>> {
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<Unit>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.updateUnit(id, unit, options)
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
},
/**
*
* @param {string} id A unique integer value identifying this user file.
* @param {string} name
* @param {any} [file]
* @param {number} [fileSizeKb]
* @param {number} [id2]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async updateUserFile(
id: string,
name: string,
file?: any,
fileSizeKb?: number,
id2?: number,
options?: any
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserFile>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.updateUserFile(id, name, file, fileSizeKb, id2, options)
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
},
/**
*
* @param {string} user A unique value identifying this user preference.
* @param {UserPreference} [userPreference]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async updateUserPreference(
user: string,
userPreference?: UserPreference,
options?: any
): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<UserPreference>> {
const localVarAxiosArgs = await localVarAxiosParamCreator.updateUserPreference(user, userPreference, options)
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)
},
/**
*
* @param {string} id A unique integer value identifying this view log.
* @param {ViewLog} [viewLog]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async updateViewLog(id: string, viewLog?: ViewLog, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ViewLog>> {
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<Automation> {
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<BookmarkletImport> {
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<CookLog> {
return localVarFp.createCookLog(cookLog, options).then((request) => request(axios, basePath))
},
/**
*
* @param {Food} [food]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
createFood(food?: Food, options?: any): AxiosPromise<Food> {
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<ImportLog> {
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<Ingredient> {
return localVarFp.createIngredient(ingredient, options).then((request) => request(axios, basePath))
},
/**
*
* @param {Keyword} [keyword]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
createKeyword(keyword?: Keyword, options?: any): AxiosPromise<Keyword> {
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<MealPlan> {
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<MealType> {
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<Recipe> {
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<RecipeBook> {
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<RecipeBookEntry> {
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<ShoppingList> {
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<ShoppingListEntry> {
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<ShoppingListRecipe> {
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<Step> {
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<Storage> {
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<Supermarket> {
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<SupermarketCategory> {
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<SupermarketCategoryRelation> {
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<Sync> {
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<Unit> {
return localVarFp.createUnit(unit, options).then((request) => request(axios, basePath))
},
/**
*
* @param {string} name
* @param {any} [file]
* @param {number} [fileSizeKb]
* @param {number} [id]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
createUserFile(name: string, file?: any, fileSizeKb?: number, id?: number, options?: any): AxiosPromise<UserFile> {
return localVarFp.createUserFile(name, file, fileSizeKb, id, options).then((request) => request(axios, basePath))
},
/**
*
* @param {UserPreference} [userPreference]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
createUserPreference(userPreference?: UserPreference, options?: any): AxiosPromise<UserPreference> {
return localVarFp.createUserPreference(userPreference, options).then((request) => request(axios, basePath))
},
/**
*
* @param {ViewLog} [viewLog]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
createViewLog(viewLog?: ViewLog, options?: any): AxiosPromise<ViewLog> {
return localVarFp.createViewLog(viewLog, 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<void> {
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<void> {
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<void> {
return localVarFp.destroyCookLog(id, options).then((request) => request(axios, basePath))
},
/**
*
* @param {string} id A unique integer value identifying this food.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
destroyFood(id: string, options?: any): AxiosPromise<void> {
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<void> {
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<void> {
return localVarFp.destroyIngredient(id, options).then((request) => request(axios, basePath))
},
/**
*
* @param {string} id A unique integer value identifying this keyword.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
destroyKeyword(id: string, options?: any): AxiosPromise<void> {
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<void> {
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<void> {
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<void> {
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<void> {
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<void> {
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<void> {
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<void> {
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<void> {
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<void> {
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<void> {
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<void> {
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<void> {
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<void> {
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<void> {
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<void> {
return localVarFp.destroyUnit(id, options).then((request) => request(axios, basePath))
},
/**
*
* @param {string} id A unique integer value identifying this user file.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
destroyUserFile(id: string, options?: any): AxiosPromise<void> {
return localVarFp.destroyUserFile(id, options).then((request) => request(axios, basePath))
},
/**
*
* @param {string} user A unique value identifying this user preference.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
destroyUserPreference(user: string, options?: any): AxiosPromise<void> {
return localVarFp.destroyUserPreference(user, options).then((request) => request(axios, basePath))
},
/**
*
* @param {string} id A unique integer value identifying this view log.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
destroyViewLog(id: string, options?: any): AxiosPromise<void> {
return localVarFp.destroyViewLog(id, options).then((request) => request(axios, basePath))
},
/**
*
* @param {string} id A unique integer value identifying this recipe.
* @param {any} [image]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
imageRecipe(id: string, image?: any, options?: any): AxiosPromise<RecipeImage> {
return localVarFp.imageRecipe(id, image, options).then((request) => request(axios, basePath))
},
/**
*
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
listAutomations(options?: any): AxiosPromise<Array<Automation>> {
return localVarFp.listAutomations(options).then((request) => request(axios, basePath))
},
/**
*
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
listBookmarkletImports(options?: any): AxiosPromise<Array<BookmarkletImport>> {
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<InlineResponse2007> {
return localVarFp.listCookLogs(page, pageSize, options).then((request) => request(axios, basePath))
},
/**
*
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
listFoodInheritFields(options?: any): AxiosPromise<Array<FoodInheritField>> {
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<InlineResponse2001> {
return localVarFp.listFoods(query, root, tree, page, pageSize, options).then((request) => request(axios, basePath))
},
/**
*
* @param {number} [page] A page number within the paginated result set.
* @param {number} [pageSize] Number of results to return per page.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
listImportLogs(page?: number, pageSize?: number, options?: any): AxiosPromise<InlineResponse2009> {
return localVarFp.listImportLogs(page, pageSize, options).then((request) => request(axios, basePath))
},
/**
*
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
listIngredients(options?: any): AxiosPromise<Array<Ingredient>> {
return localVarFp.listIngredients(options).then((request) => request(axios, basePath))
},
/**
*
* @param {string} [query] Query string matched against keyword name.
* @param {number} [root] Return first level children of keyword with ID [int]. Integer 0 will return root keywords.
* @param {number} [tree] Return all self and children of keyword with ID [int].
* @param {number} [page] A page number within the paginated result set.
* @param {number} [pageSize] Number of results to return per page.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
listKeywords(query?: string, root?: number, tree?: number, page?: number, pageSize?: number, options?: any): AxiosPromise<InlineResponse2003> {
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<Array<MealPlan>> {
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<Array<MealType>> {
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<Array<RecipeBookEntry>> {
return localVarFp.listRecipeBookEntrys(options).then((request) => request(axios, basePath))
},
/**
*
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
listRecipeBooks(options?: any): AxiosPromise<Array<RecipeBook>> {
return localVarFp.listRecipeBooks(options).then((request) => request(axios, basePath))
},
/**
*
* @param {string} [query] Query string matched (fuzzy) against recipe name. In the future also fulltext search.
* @param {string} [keywords] Id of keyword a recipe should have. For multiple repeat parameter.
* @param {string} [foods] Id of food a recipe should have. For multiple repeat parameter.
* @param {number} [units] Id of unit a recipe should have.
* @param {number} [rating] Id of unit a recipe should have.
* @param {string} [books] Id of book a recipe should have. For multiple repeat parameter.
* @param {string} [steps] Id of a step a recipe should have. For multiple repeat parameter.
* @param {string} [keywordsOr] If recipe should have all (AND) or any (OR) of the provided keywords.
* @param {string} [foodsOr] If recipe should have all (AND) or any (OR) any of the provided foods.
* @param {string} [booksOr] If recipe should be in all (AND) or any (OR) any of the provided books.
* @param {string} [internal] true or false. If only internal recipes should be returned or not.
* @param {string} [random] true or false. returns the results in randomized order.
* @param {string} [_new] true or false. returns new results first in search results
* @param {number} [page] A page number within the paginated result set.
* @param {number} [pageSize] Number of results to return per page.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
listRecipes(
query?: string,
keywords?: string,
foods?: string,
units?: number,
rating?: number,
books?: string,
steps?: string,
keywordsOr?: string,
foodsOr?: string,
booksOr?: string,
internal?: string,
random?: string,
_new?: string,
page?: number,
pageSize?: number,
options?: any
): AxiosPromise<InlineResponse2005> {
return localVarFp
.listRecipes(query, keywords, foods, units, rating, books, steps, keywordsOr, foodsOr, booksOr, internal, random, _new, 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, &lt;b&gt;recent&lt;/b&gt;]&lt;br&gt; - 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<Array<ShoppingListEntry>> {
return localVarFp.listShoppingListEntrys(id, checked, supermarket, options).then((request) => request(axios, basePath))
},
/**
*
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
listShoppingListRecipes(options?: any): AxiosPromise<Array<ShoppingListRecipe>> {
return localVarFp.listShoppingListRecipes(options).then((request) => request(axios, basePath))
},
/**
*
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
listShoppingLists(options?: any): AxiosPromise<Array<ShoppingList>> {
return localVarFp.listShoppingLists(options).then((request) => request(axios, basePath))
},
/**
*
* @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(query?: string, page?: number, pageSize?: number, options?: any): AxiosPromise<InlineResponse2004> {
return localVarFp.listSteps(query, page, pageSize, options).then((request) => request(axios, basePath))
},
/**
*
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
listStorages(options?: any): AxiosPromise<Array<Storage>> {
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<InlineResponse2008> {
return localVarFp.listSupermarketCategoryRelations(page, pageSize, options).then((request) => request(axios, basePath))
},
/**
*
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
listSupermarketCategorys(options?: any): AxiosPromise<Array<SupermarketCategory>> {
return localVarFp.listSupermarketCategorys(options).then((request) => request(axios, basePath))
},
/**
*
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
listSupermarkets(options?: any): AxiosPromise<Array<Supermarket>> {
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<InlineResponse2007> {
return localVarFp.listSyncLogs(page, pageSize, options).then((request) => request(axios, basePath))
},
/**
*
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
listSyncs(options?: any): AxiosPromise<Array<Sync>> {
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<InlineResponse2008> {
return localVarFp.listUnits(query, page, pageSize, options).then((request) => request(axios, basePath))
},
/**
*
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
listUserFiles(options?: any): AxiosPromise<Array<UserFile>> {
return localVarFp.listUserFiles(options).then((request) => request(axios, basePath))
},
/**
*
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
listUserPreferences(options?: any): AxiosPromise<Array<UserPreference>> {
return localVarFp.listUserPreferences(options).then((request) => request(axios, basePath))
},
/**
* optional parameters - **filter_list**: array of user id\'s to get names for
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
listUsers(options?: any): AxiosPromise<Array<UserName>> {
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<InlineResponse2006> {
return localVarFp.listViewLogs(page, pageSize, options).then((request) => request(axios, basePath))
},
/**
*
* @param {string} id A unique integer value identifying this food.
* @param {string} target
* @param {Food} [food]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
mergeFood(id: string, target: string, food?: Food, options?: any): AxiosPromise<Food> {
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<Keyword> {
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<Unit> {
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<Food> {
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<Keyword> {
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<Automation> {
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<BookmarkletImport> {
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<CookLog> {
return localVarFp.partialUpdateCookLog(id, cookLog, options).then((request) => request(axios, basePath))
},
/**
*
* @param {string} id A unique integer value identifying this food.
* @param {Food} [food]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
partialUpdateFood(id: string, food?: Food, options?: any): AxiosPromise<Food> {
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<ImportLog> {
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<Ingredient> {
return localVarFp.partialUpdateIngredient(id, ingredient, options).then((request) => request(axios, basePath))
},
/**
*
* @param {string} id A unique integer value identifying this keyword.
* @param {Keyword} [keyword]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
partialUpdateKeyword(id: string, keyword?: Keyword, options?: any): AxiosPromise<Keyword> {
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<MealPlan> {
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<MealType> {
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<Recipe> {
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<RecipeBook> {
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<RecipeBookEntry> {
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<ShoppingList> {
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<ShoppingListEntry> {
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<ShoppingListRecipe> {
return localVarFp.partialUpdateShoppingListRecipe(id, shoppingListRecipe, options).then((request) => request(axios, basePath))
},
/**
*
* @param {string} id A unique integer value identifying this step.
* @param {Step} [step]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
partialUpdateStep(id: string, step?: Step, options?: any): AxiosPromise<Step> {
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<Storage> {
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<Supermarket> {
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<SupermarketCategory> {
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<SupermarketCategoryRelation> {
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<Sync> {
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<Unit> {
return localVarFp.partialUpdateUnit(id, unit, options).then((request) => request(axios, basePath))
},
/**
*
* @param {string} id A unique integer value identifying this user file.
* @param {string} name
* @param {any} [file]
* @param {number} [fileSizeKb]
* @param {number} [id2]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
partialUpdateUserFile(id: string, name: string, file?: any, fileSizeKb?: number, id2?: number, options?: any): AxiosPromise<UserFile> {
return localVarFp.partialUpdateUserFile(id, name, file, fileSizeKb, id2, options).then((request) => request(axios, basePath))
},
/**
*
* @param {string} user A unique value identifying this user preference.
* @param {UserPreference} [userPreference]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
partialUpdateUserPreference(user: string, userPreference?: UserPreference, options?: any): AxiosPromise<UserPreference> {
return localVarFp.partialUpdateUserPreference(user, userPreference, options).then((request) => request(axios, basePath))
},
/**
*
* @param {string} id A unique integer value identifying this view log.
* @param {ViewLog} [viewLog]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
partialUpdateViewLog(id: string, viewLog?: ViewLog, options?: any): AxiosPromise<ViewLog> {
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<RecipeSimple> {
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<Automation> {
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<BookmarkletImport> {
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<CookLog> {
return localVarFp.retrieveCookLog(id, options).then((request) => request(axios, basePath))
},
/**
*
* @param {string} id A unique integer value identifying this food.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
retrieveFood(id: string, options?: any): AxiosPromise<Food> {
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<FoodInheritField> {
return localVarFp.retrieveFoodInheritField(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<ImportLog> {
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<Ingredient> {
return localVarFp.retrieveIngredient(id, options).then((request) => request(axios, basePath))
},
/**
*
* @param {string} id A unique integer value identifying this keyword.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
retrieveKeyword(id: string, options?: any): AxiosPromise<Keyword> {
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<MealPlan> {
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<MealType> {
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<Recipe> {
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<RecipeBook> {
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<RecipeBookEntry> {
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<ShoppingList> {
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<ShoppingListEntry> {
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<ShoppingListRecipe> {
return localVarFp.retrieveShoppingListRecipe(id, options).then((request) => request(axios, basePath))
},
/**
*
* @param {string} id A unique integer value identifying this step.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
retrieveStep(id: string, options?: any): AxiosPromise<Step> {
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<Storage> {
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<Supermarket> {
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<SupermarketCategory> {
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<SupermarketCategoryRelation> {
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<Sync> {
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<SyncLog> {
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<Unit> {
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<UserName> {
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<UserFile> {
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<UserPreference> {
return localVarFp.retrieveUserPreference(user, options).then((request) => request(axios, basePath))
},
/**
*
* @param {string} id A unique integer value identifying this view log.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
retrieveViewLog(id: string, options?: any): AxiosPromise<ViewLog> {
return localVarFp.retrieveViewLog(id, 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<FoodShoppingUpdate> {
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<RecipeShoppingUpdate> {
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<Automation> {
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<BookmarkletImport> {
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<CookLog> {
return localVarFp.updateCookLog(id, cookLog, options).then((request) => request(axios, basePath))
},
/**
*
* @param {string} id A unique integer value identifying this food.
* @param {Food} [food]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
updateFood(id: string, food?: Food, options?: any): AxiosPromise<Food> {
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<ImportLog> {
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<Ingredient> {
return localVarFp.updateIngredient(id, ingredient, options).then((request) => request(axios, basePath))
},
/**
*
* @param {string} id A unique integer value identifying this keyword.
* @param {Keyword} [keyword]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
updateKeyword(id: string, keyword?: Keyword, options?: any): AxiosPromise<Keyword> {
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<MealPlan> {
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<MealType> {
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<Recipe> {
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<RecipeBook> {
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<RecipeBookEntry> {
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<ShoppingList> {
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<ShoppingListEntry> {
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<ShoppingListRecipe> {
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<Step> {
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<Storage> {
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<Supermarket> {
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<SupermarketCategory> {
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<SupermarketCategoryRelation> {
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<Sync> {
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<Unit> {
return localVarFp.updateUnit(id, unit, options).then((request) => request(axios, basePath))
},
/**
*
* @param {string} id A unique integer value identifying this user file.
* @param {string} name
* @param {any} [file]
* @param {number} [fileSizeKb]
* @param {number} [id2]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
updateUserFile(id: string, name: string, file?: any, fileSizeKb?: number, id2?: number, options?: any): AxiosPromise<UserFile> {
return localVarFp.updateUserFile(id, name, file, fileSizeKb, id2, options).then((request) => request(axios, basePath))
},
/**
*
* @param {string} user A unique value identifying this user preference.
* @param {UserPreference} [userPreference]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
updateUserPreference(user: string, userPreference?: UserPreference, options?: any): AxiosPromise<UserPreference> {
return localVarFp.updateUserPreference(user, userPreference, options).then((request) => request(axios, basePath))
},
/**
*
* @param {string} id A unique integer value identifying this view log.
* @param {ViewLog} [viewLog]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
updateViewLog(id: string, viewLog?: ViewLog, options?: any): AxiosPromise<ViewLog> {
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 {Food} [food]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public createFood(food?: Food, options?: any) {
return ApiApiFp(this.configuration)
.createFood(food, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {ImportLog} [importLog]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public createImportLog(importLog?: ImportLog, options?: any) {
return ApiApiFp(this.configuration)
.createImportLog(importLog, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {Ingredient} [ingredient]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public createIngredient(ingredient?: Ingredient, options?: any) {
return ApiApiFp(this.configuration)
.createIngredient(ingredient, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {Keyword} [keyword]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public createKeyword(keyword?: Keyword, options?: any) {
return ApiApiFp(this.configuration)
.createKeyword(keyword, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {MealPlan} [mealPlan]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public createMealPlan(mealPlan?: MealPlan, options?: any) {
return ApiApiFp(this.configuration)
.createMealPlan(mealPlan, options)
.then((request) => request(this.axios, this.basePath))
}
/**
* returns list of meal types created by the requesting user ordered by the order field.
* @param {MealType} [mealType]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public createMealType(mealType?: MealType, options?: any) {
return ApiApiFp(this.configuration)
.createMealType(mealType, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {Recipe} [recipe]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public createRecipe(recipe?: Recipe, options?: any) {
return ApiApiFp(this.configuration)
.createRecipe(recipe, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {RecipeBook} [recipeBook]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public createRecipeBook(recipeBook?: RecipeBook, options?: any) {
return ApiApiFp(this.configuration)
.createRecipeBook(recipeBook, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {RecipeBookEntry} [recipeBookEntry]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public createRecipeBookEntry(recipeBookEntry?: RecipeBookEntry, options?: any) {
return ApiApiFp(this.configuration)
.createRecipeBookEntry(recipeBookEntry, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {ShoppingList} [shoppingList]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public createShoppingList(shoppingList?: ShoppingList, options?: any) {
return ApiApiFp(this.configuration)
.createShoppingList(shoppingList, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {ShoppingListEntry} [shoppingListEntry]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public createShoppingListEntry(shoppingListEntry?: ShoppingListEntry, options?: any) {
return ApiApiFp(this.configuration)
.createShoppingListEntry(shoppingListEntry, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {ShoppingListRecipe} [shoppingListRecipe]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public createShoppingListRecipe(shoppingListRecipe?: ShoppingListRecipe, options?: any) {
return ApiApiFp(this.configuration)
.createShoppingListRecipe(shoppingListRecipe, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {Step} [step]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public createStep(step?: Step, options?: any) {
return ApiApiFp(this.configuration)
.createStep(step, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {Storage} [storage]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public createStorage(storage?: Storage, options?: any) {
return ApiApiFp(this.configuration)
.createStorage(storage, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {Supermarket} [supermarket]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public createSupermarket(supermarket?: Supermarket, options?: any) {
return ApiApiFp(this.configuration)
.createSupermarket(supermarket, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {SupermarketCategory} [supermarketCategory]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public createSupermarketCategory(supermarketCategory?: SupermarketCategory, options?: any) {
return ApiApiFp(this.configuration)
.createSupermarketCategory(supermarketCategory, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {SupermarketCategoryRelation} [supermarketCategoryRelation]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public createSupermarketCategoryRelation(supermarketCategoryRelation?: SupermarketCategoryRelation, options?: any) {
return ApiApiFp(this.configuration)
.createSupermarketCategoryRelation(supermarketCategoryRelation, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {Sync} [sync]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public createSync(sync?: Sync, options?: any) {
return ApiApiFp(this.configuration)
.createSync(sync, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {Unit} [unit]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public createUnit(unit?: Unit, options?: any) {
return ApiApiFp(this.configuration)
.createUnit(unit, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} name
* @param {any} [file]
* @param {number} [fileSizeKb]
* @param {number} [id]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public createUserFile(name: string, file?: any, fileSizeKb?: number, id?: number, options?: any) {
return ApiApiFp(this.configuration)
.createUserFile(name, file, fileSizeKb, id, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {UserPreference} [userPreference]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public createUserPreference(userPreference?: UserPreference, options?: any) {
return ApiApiFp(this.configuration)
.createUserPreference(userPreference, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {ViewLog} [viewLog]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public createViewLog(viewLog?: ViewLog, options?: any) {
return ApiApiFp(this.configuration)
.createViewLog(viewLog, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} id A unique integer value identifying this 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 food.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public destroyFood(id: string, options?: any) {
return ApiApiFp(this.configuration)
.destroyFood(id, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} id A unique integer value identifying this import log.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public destroyImportLog(id: string, options?: any) {
return ApiApiFp(this.configuration)
.destroyImportLog(id, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} id A unique integer value identifying this ingredient.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public destroyIngredient(id: string, options?: any) {
return ApiApiFp(this.configuration)
.destroyIngredient(id, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} id A unique integer value identifying this keyword.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public destroyKeyword(id: string, options?: any) {
return ApiApiFp(this.configuration)
.destroyKeyword(id, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} id A unique integer value identifying this meal plan.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public destroyMealPlan(id: string, options?: any) {
return ApiApiFp(this.configuration)
.destroyMealPlan(id, options)
.then((request) => request(this.axios, this.basePath))
}
/**
* returns list of meal types created by the requesting user ordered by the order field.
* @param {string} id A unique integer value identifying this meal type.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public destroyMealType(id: string, options?: any) {
return ApiApiFp(this.configuration)
.destroyMealType(id, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} id A unique integer value identifying this recipe.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public destroyRecipe(id: string, options?: any) {
return ApiApiFp(this.configuration)
.destroyRecipe(id, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} id A unique integer value identifying this recipe book.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public destroyRecipeBook(id: string, options?: any) {
return ApiApiFp(this.configuration)
.destroyRecipeBook(id, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} id A unique integer value identifying this recipe book entry.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public destroyRecipeBookEntry(id: string, options?: any) {
return ApiApiFp(this.configuration)
.destroyRecipeBookEntry(id, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} id A unique integer value identifying this shopping list.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public destroyShoppingList(id: string, options?: any) {
return ApiApiFp(this.configuration)
.destroyShoppingList(id, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} id A unique integer value identifying this shopping list entry.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public destroyShoppingListEntry(id: string, options?: any) {
return ApiApiFp(this.configuration)
.destroyShoppingListEntry(id, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} id A unique integer value identifying this shopping list recipe.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public destroyShoppingListRecipe(id: string, options?: any) {
return ApiApiFp(this.configuration)
.destroyShoppingListRecipe(id, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} id A unique integer value identifying this step.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public destroyStep(id: string, options?: any) {
return ApiApiFp(this.configuration)
.destroyStep(id, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} id A unique integer value identifying this storage.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public destroyStorage(id: string, options?: any) {
return ApiApiFp(this.configuration)
.destroyStorage(id, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} id A unique integer value identifying this supermarket.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public destroySupermarket(id: string, options?: any) {
return ApiApiFp(this.configuration)
.destroySupermarket(id, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} id A unique integer value identifying this supermarket category.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public destroySupermarketCategory(id: string, options?: any) {
return ApiApiFp(this.configuration)
.destroySupermarketCategory(id, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} id A unique integer value identifying this supermarket category relation.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public destroySupermarketCategoryRelation(id: string, options?: any) {
return ApiApiFp(this.configuration)
.destroySupermarketCategoryRelation(id, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} id A unique integer value identifying this sync.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public destroySync(id: string, options?: any) {
return ApiApiFp(this.configuration)
.destroySync(id, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} id A unique integer value identifying this unit.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public destroyUnit(id: string, options?: any) {
return ApiApiFp(this.configuration)
.destroyUnit(id, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} id A unique integer value identifying this user file.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public destroyUserFile(id: string, options?: any) {
return ApiApiFp(this.configuration)
.destroyUserFile(id, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} user A unique value identifying this user preference.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public destroyUserPreference(user: string, options?: any) {
return ApiApiFp(this.configuration)
.destroyUserPreference(user, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} id A unique integer value identifying this view log.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public destroyViewLog(id: string, options?: any) {
return ApiApiFp(this.configuration)
.destroyViewLog(id, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} id A unique integer value identifying this recipe.
* @param {any} [image]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public imageRecipe(id: string, image?: any, options?: any) {
return ApiApiFp(this.configuration)
.imageRecipe(id, image, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public 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 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 {number} [page] A page number within the paginated result set.
* @param {number} [pageSize] Number of results to return per page.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public listImportLogs(page?: number, pageSize?: number, options?: any) {
return ApiApiFp(this.configuration)
.listImportLogs(page, pageSize, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public listIngredients(options?: any) {
return ApiApiFp(this.configuration)
.listIngredients(options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} [query] Query string matched against keyword name.
* @param {number} [root] Return first level children of keyword with ID [int]. Integer 0 will return root keywords.
* @param {number} [tree] Return all self and children of keyword with ID [int].
* @param {number} [page] A page number within the paginated result set.
* @param {number} [pageSize] Number of results to return per page.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public listKeywords(query?: string, root?: number, tree?: number, page?: number, pageSize?: number, options?: any) {
return ApiApiFp(this.configuration)
.listKeywords(query, root, tree, page, pageSize, options)
.then((request) => request(this.axios, this.basePath))
}
/**
* optional parameters - **from_date**: filter from (inclusive) a certain date onward - **to_date**: filter upward to (inclusive) certain date
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public listMealPlans(options?: any) {
return ApiApiFp(this.configuration)
.listMealPlans(options)
.then((request) => request(this.axios, this.basePath))
}
/**
* returns list of meal types created by the requesting user ordered by the order field.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public listMealTypes(options?: any) {
return ApiApiFp(this.configuration)
.listMealTypes(options)
.then((request) => request(this.axios, this.basePath))
}
/**
* optional parameters - **recipe**: id of recipe - only return books for that recipe - **book**: id of book - only return recipes in that book
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public listRecipeBookEntrys(options?: any) {
return ApiApiFp(this.configuration)
.listRecipeBookEntrys(options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public listRecipeBooks(options?: any) {
return ApiApiFp(this.configuration)
.listRecipeBooks(options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} [query] Query string matched (fuzzy) against recipe name. In the future also fulltext search.
* @param {string} [keywords] Id of keyword a recipe should have. For multiple repeat parameter.
* @param {string} [foods] Id of food a recipe should have. For multiple repeat parameter.
* @param {number} [units] Id of unit a recipe should have.
* @param {number} [rating] Id of unit a recipe should have.
* @param {string} [books] Id of book a recipe should have. For multiple repeat parameter.
* @param {string} [steps] Id of a step a recipe should have. For multiple repeat parameter.
* @param {string} [keywordsOr] If recipe should have all (AND) or any (OR) of the provided keywords.
* @param {string} [foodsOr] If recipe should have all (AND) or any (OR) any of the provided foods.
* @param {string} [booksOr] If recipe should be in all (AND) or any (OR) any of the provided books.
* @param {string} [internal] true or false. If only internal recipes should be returned or not.
* @param {string} [random] true or false. returns the results in randomized order.
* @param {string} [_new] true or false. returns new results first in search results
* @param {number} [page] A page number within the paginated result set.
* @param {number} [pageSize] Number of results to return per page.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public listRecipes(
query?: string,
keywords?: string,
foods?: string,
units?: number,
rating?: number,
books?: string,
steps?: string,
keywordsOr?: string,
foodsOr?: string,
booksOr?: string,
internal?: string,
random?: string,
_new?: string,
page?: number,
pageSize?: number,
options?: any
) {
return ApiApiFp(this.configuration)
.listRecipes(query, keywords, foods, units, rating, books, steps, keywordsOr, foodsOr, booksOr, internal, random, _new, 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, &lt;b&gt;recent&lt;/b&gt;]&lt;br&gt; - 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 {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(query?: string, page?: number, pageSize?: number, options?: any) {
return ApiApiFp(this.configuration)
.listSteps(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 {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public listSupermarketCategorys(options?: any) {
return ApiApiFp(this.configuration)
.listSupermarketCategorys(options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public listSupermarkets(options?: any) {
return ApiApiFp(this.configuration)
.listSupermarkets(options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {number} [page] A page number within the paginated result set.
* @param {number} [pageSize] Number of results to return per page.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public listSyncLogs(page?: number, pageSize?: number, options?: any) {
return ApiApiFp(this.configuration)
.listSyncLogs(page, pageSize, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public listSyncs(options?: any) {
return ApiApiFp(this.configuration)
.listSyncs(options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} [query] Query string matched against unit name.
* @param {number} [page] A page number within the paginated result set.
* @param {number} [pageSize] Number of results to return per page.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public listUnits(query?: string, page?: number, pageSize?: number, options?: any) {
return ApiApiFp(this.configuration)
.listUnits(query, page, pageSize, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public listUserFiles(options?: any) {
return ApiApiFp(this.configuration)
.listUserFiles(options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public listUserPreferences(options?: any) {
return ApiApiFp(this.configuration)
.listUserPreferences(options)
.then((request) => request(this.axios, this.basePath))
}
/**
* optional parameters - **filter_list**: array of user id\'s to get names for
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public listUsers(options?: any) {
return ApiApiFp(this.configuration)
.listUsers(options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {number} [page] A page number within the paginated result set.
* @param {number} [pageSize] Number of results to return per page.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public listViewLogs(page?: number, pageSize?: number, options?: any) {
return ApiApiFp(this.configuration)
.listViewLogs(page, pageSize, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} id A unique integer value identifying this food.
* @param {string} target
* @param {Food} [food]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public mergeFood(id: string, target: string, food?: Food, options?: any) {
return ApiApiFp(this.configuration)
.mergeFood(id, target, food, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} id A unique integer value identifying this keyword.
* @param {string} target
* @param {Keyword} [keyword]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public mergeKeyword(id: string, target: string, keyword?: Keyword, options?: any) {
return ApiApiFp(this.configuration)
.mergeKeyword(id, target, keyword, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} id A unique integer value identifying this unit.
* @param {string} target
* @param {Unit} [unit]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public mergeUnit(id: string, target: string, unit?: Unit, options?: any) {
return ApiApiFp(this.configuration)
.mergeUnit(id, target, unit, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} id A unique integer value identifying this food.
* @param {string} parent
* @param {Food} [food]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public moveFood(id: string, parent: string, food?: Food, options?: any) {
return ApiApiFp(this.configuration)
.moveFood(id, parent, food, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} id A unique integer value identifying this keyword.
* @param {string} parent
* @param {Keyword} [keyword]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public moveKeyword(id: string, parent: string, keyword?: Keyword, options?: any) {
return ApiApiFp(this.configuration)
.moveKeyword(id, parent, keyword, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} id A unique integer value identifying this 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 food.
* @param {Food} [food]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public partialUpdateFood(id: string, food?: Food, options?: any) {
return ApiApiFp(this.configuration)
.partialUpdateFood(id, food, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} id A unique integer value identifying this import log.
* @param {ImportLog} [importLog]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public partialUpdateImportLog(id: string, importLog?: ImportLog, options?: any) {
return ApiApiFp(this.configuration)
.partialUpdateImportLog(id, importLog, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} id A unique integer value identifying this ingredient.
* @param {Ingredient} [ingredient]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public partialUpdateIngredient(id: string, ingredient?: Ingredient, options?: any) {
return ApiApiFp(this.configuration)
.partialUpdateIngredient(id, ingredient, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} id A unique integer value identifying this keyword.
* @param {Keyword} [keyword]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public partialUpdateKeyword(id: string, keyword?: Keyword, options?: any) {
return ApiApiFp(this.configuration)
.partialUpdateKeyword(id, keyword, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} id A unique integer value identifying this meal plan.
* @param {MealPlan} [mealPlan]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public partialUpdateMealPlan(id: string, mealPlan?: MealPlan, options?: any) {
return ApiApiFp(this.configuration)
.partialUpdateMealPlan(id, mealPlan, options)
.then((request) => request(this.axios, this.basePath))
}
/**
* returns list of meal types created by the requesting user ordered by the order field.
* @param {string} id A unique integer value identifying this meal type.
* @param {MealType} [mealType]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public partialUpdateMealType(id: string, mealType?: MealType, options?: any) {
return ApiApiFp(this.configuration)
.partialUpdateMealType(id, mealType, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} id A unique integer value identifying this recipe.
* @param {Recipe} [recipe]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public partialUpdateRecipe(id: string, recipe?: Recipe, options?: any) {
return ApiApiFp(this.configuration)
.partialUpdateRecipe(id, recipe, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} id A unique integer value identifying this recipe book.
* @param {RecipeBook} [recipeBook]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public partialUpdateRecipeBook(id: string, recipeBook?: RecipeBook, options?: any) {
return ApiApiFp(this.configuration)
.partialUpdateRecipeBook(id, recipeBook, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} id A unique integer value identifying this recipe book entry.
* @param {RecipeBookEntry} [recipeBookEntry]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public partialUpdateRecipeBookEntry(id: string, recipeBookEntry?: RecipeBookEntry, options?: any) {
return ApiApiFp(this.configuration)
.partialUpdateRecipeBookEntry(id, recipeBookEntry, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} id A unique integer value identifying this shopping list.
* @param {ShoppingList} [shoppingList]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public partialUpdateShoppingList(id: string, shoppingList?: ShoppingList, options?: any) {
return ApiApiFp(this.configuration)
.partialUpdateShoppingList(id, shoppingList, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} id A unique integer value identifying this shopping list entry.
* @param {ShoppingListEntry} [shoppingListEntry]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public partialUpdateShoppingListEntry(id: string, shoppingListEntry?: ShoppingListEntry, options?: any) {
return ApiApiFp(this.configuration)
.partialUpdateShoppingListEntry(id, shoppingListEntry, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} id A unique integer value identifying this shopping list recipe.
* @param {ShoppingListRecipe} [shoppingListRecipe]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public partialUpdateShoppingListRecipe(id: string, shoppingListRecipe?: ShoppingListRecipe, options?: any) {
return ApiApiFp(this.configuration)
.partialUpdateShoppingListRecipe(id, shoppingListRecipe, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} id A unique integer value identifying this step.
* @param {Step} [step]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public partialUpdateStep(id: string, step?: Step, options?: any) {
return ApiApiFp(this.configuration)
.partialUpdateStep(id, step, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} id A unique integer value identifying this storage.
* @param {Storage} [storage]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public partialUpdateStorage(id: string, storage?: Storage, options?: any) {
return ApiApiFp(this.configuration)
.partialUpdateStorage(id, storage, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} id A unique integer value identifying this supermarket.
* @param {Supermarket} [supermarket]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public partialUpdateSupermarket(id: string, supermarket?: Supermarket, options?: any) {
return ApiApiFp(this.configuration)
.partialUpdateSupermarket(id, supermarket, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} id A unique integer value identifying this supermarket category.
* @param {SupermarketCategory} [supermarketCategory]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public partialUpdateSupermarketCategory(id: string, supermarketCategory?: SupermarketCategory, options?: any) {
return ApiApiFp(this.configuration)
.partialUpdateSupermarketCategory(id, supermarketCategory, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} id A unique integer value identifying this supermarket category relation.
* @param {SupermarketCategoryRelation} [supermarketCategoryRelation]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public partialUpdateSupermarketCategoryRelation(id: string, supermarketCategoryRelation?: SupermarketCategoryRelation, options?: any) {
return ApiApiFp(this.configuration)
.partialUpdateSupermarketCategoryRelation(id, supermarketCategoryRelation, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} id A unique integer value identifying this sync.
* @param {Sync} [sync]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public partialUpdateSync(id: string, sync?: Sync, options?: any) {
return ApiApiFp(this.configuration)
.partialUpdateSync(id, sync, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} id A unique integer value identifying this unit.
* @param {Unit} [unit]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public partialUpdateUnit(id: string, unit?: Unit, options?: any) {
return ApiApiFp(this.configuration)
.partialUpdateUnit(id, unit, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} id A unique integer value identifying this user file.
* @param {string} name
* @param {any} [file]
* @param {number} [fileSizeKb]
* @param {number} [id2]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public partialUpdateUserFile(id: string, name: string, file?: any, fileSizeKb?: number, id2?: number, options?: any) {
return ApiApiFp(this.configuration)
.partialUpdateUserFile(id, name, file, fileSizeKb, id2, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} user A unique value identifying this user preference.
* @param {UserPreference} [userPreference]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public partialUpdateUserPreference(user: string, userPreference?: UserPreference, options?: any) {
return ApiApiFp(this.configuration)
.partialUpdateUserPreference(user, userPreference, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} id A unique integer value identifying this view log.
* @param {ViewLog} [viewLog]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public partialUpdateViewLog(id: string, viewLog?: ViewLog, options?: any) {
return ApiApiFp(this.configuration)
.partialUpdateViewLog(id, viewLog, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} id A unique integer value identifying this 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 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 import log.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public retrieveImportLog(id: string, options?: any) {
return ApiApiFp(this.configuration)
.retrieveImportLog(id, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} id A unique integer value identifying this ingredient.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public retrieveIngredient(id: string, options?: any) {
return ApiApiFp(this.configuration)
.retrieveIngredient(id, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} id A unique integer value identifying this keyword.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public retrieveKeyword(id: string, options?: any) {
return ApiApiFp(this.configuration)
.retrieveKeyword(id, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} id A unique integer value identifying this meal plan.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public retrieveMealPlan(id: string, options?: any) {
return ApiApiFp(this.configuration)
.retrieveMealPlan(id, options)
.then((request) => request(this.axios, this.basePath))
}
/**
* returns list of meal types created by the requesting user ordered by the order field.
* @param {string} id A unique integer value identifying this meal type.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public retrieveMealType(id: string, options?: any) {
return ApiApiFp(this.configuration)
.retrieveMealType(id, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} id A unique integer value identifying this recipe.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public retrieveRecipe(id: string, options?: any) {
return ApiApiFp(this.configuration)
.retrieveRecipe(id, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} id A unique integer value identifying this recipe book.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public retrieveRecipeBook(id: string, options?: any) {
return ApiApiFp(this.configuration)
.retrieveRecipeBook(id, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} id A unique integer value identifying this recipe book entry.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public retrieveRecipeBookEntry(id: string, options?: any) {
return ApiApiFp(this.configuration)
.retrieveRecipeBookEntry(id, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} id A unique integer value identifying this shopping list.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public retrieveShoppingList(id: string, options?: any) {
return ApiApiFp(this.configuration)
.retrieveShoppingList(id, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} id A unique integer value identifying this shopping list entry.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public retrieveShoppingListEntry(id: string, options?: any) {
return ApiApiFp(this.configuration)
.retrieveShoppingListEntry(id, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} id A unique integer value identifying this shopping list recipe.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public retrieveShoppingListRecipe(id: string, options?: any) {
return ApiApiFp(this.configuration)
.retrieveShoppingListRecipe(id, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} id A unique integer value identifying this step.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public retrieveStep(id: string, options?: any) {
return ApiApiFp(this.configuration)
.retrieveStep(id, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} id A unique integer value identifying this storage.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public retrieveStorage(id: string, options?: any) {
return ApiApiFp(this.configuration)
.retrieveStorage(id, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} id A unique integer value identifying this supermarket.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public retrieveSupermarket(id: string, options?: any) {
return ApiApiFp(this.configuration)
.retrieveSupermarket(id, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} id A unique integer value identifying this supermarket category.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public retrieveSupermarketCategory(id: string, options?: any) {
return ApiApiFp(this.configuration)
.retrieveSupermarketCategory(id, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} id A unique integer value identifying this supermarket category relation.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public retrieveSupermarketCategoryRelation(id: string, options?: any) {
return ApiApiFp(this.configuration)
.retrieveSupermarketCategoryRelation(id, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} id A unique integer value identifying this sync.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public retrieveSync(id: string, options?: any) {
return ApiApiFp(this.configuration)
.retrieveSync(id, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} id A unique integer value identifying this sync log.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public retrieveSyncLog(id: string, options?: any) {
return ApiApiFp(this.configuration)
.retrieveSyncLog(id, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} id A unique integer value identifying this unit.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public retrieveUnit(id: string, options?: any) {
return ApiApiFp(this.configuration)
.retrieveUnit(id, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} id A unique integer value identifying this user.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public retrieveUser(id: string, options?: any) {
return ApiApiFp(this.configuration)
.retrieveUser(id, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} id A unique integer value identifying this user file.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public retrieveUserFile(id: string, options?: any) {
return ApiApiFp(this.configuration)
.retrieveUserFile(id, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} user A unique value identifying this user preference.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public retrieveUserPreference(user: string, options?: any) {
return ApiApiFp(this.configuration)
.retrieveUserPreference(user, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} id A unique integer value identifying this view log.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public retrieveViewLog(id: string, options?: any) {
return ApiApiFp(this.configuration)
.retrieveViewLog(id, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} id A unique integer value identifying this 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 food.
* @param {Food} [food]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public updateFood(id: string, food?: Food, options?: any) {
return ApiApiFp(this.configuration)
.updateFood(id, food, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} id A unique integer value identifying this import log.
* @param {ImportLog} [importLog]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public updateImportLog(id: string, importLog?: ImportLog, options?: any) {
return ApiApiFp(this.configuration)
.updateImportLog(id, importLog, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} id A unique integer value identifying this ingredient.
* @param {Ingredient} [ingredient]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public updateIngredient(id: string, ingredient?: Ingredient, options?: any) {
return ApiApiFp(this.configuration)
.updateIngredient(id, ingredient, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} id A unique integer value identifying this keyword.
* @param {Keyword} [keyword]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public updateKeyword(id: string, keyword?: Keyword, options?: any) {
return ApiApiFp(this.configuration)
.updateKeyword(id, keyword, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} id A unique integer value identifying this meal plan.
* @param {MealPlan} [mealPlan]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public updateMealPlan(id: string, mealPlan?: MealPlan, options?: any) {
return ApiApiFp(this.configuration)
.updateMealPlan(id, mealPlan, options)
.then((request) => request(this.axios, this.basePath))
}
/**
* returns list of meal types created by the requesting user ordered by the order field.
* @param {string} id A unique integer value identifying this meal type.
* @param {MealType} [mealType]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public updateMealType(id: string, mealType?: MealType, options?: any) {
return ApiApiFp(this.configuration)
.updateMealType(id, mealType, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} id A unique integer value identifying this recipe.
* @param {Recipe} [recipe]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public updateRecipe(id: string, recipe?: Recipe, options?: any) {
return ApiApiFp(this.configuration)
.updateRecipe(id, recipe, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} id A unique integer value identifying this recipe book.
* @param {RecipeBook} [recipeBook]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public updateRecipeBook(id: string, recipeBook?: RecipeBook, options?: any) {
return ApiApiFp(this.configuration)
.updateRecipeBook(id, recipeBook, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} id A unique integer value identifying this recipe book entry.
* @param {RecipeBookEntry} [recipeBookEntry]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public updateRecipeBookEntry(id: string, recipeBookEntry?: RecipeBookEntry, options?: any) {
return ApiApiFp(this.configuration)
.updateRecipeBookEntry(id, recipeBookEntry, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} id A unique integer value identifying this shopping list.
* @param {ShoppingList} [shoppingList]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public updateShoppingList(id: string, shoppingList?: ShoppingList, options?: any) {
return ApiApiFp(this.configuration)
.updateShoppingList(id, shoppingList, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} id A unique integer value identifying this shopping list entry.
* @param {ShoppingListEntry} [shoppingListEntry]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public updateShoppingListEntry(id: string, shoppingListEntry?: ShoppingListEntry, options?: any) {
return ApiApiFp(this.configuration)
.updateShoppingListEntry(id, shoppingListEntry, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} id A unique integer value identifying this shopping list recipe.
* @param {ShoppingListRecipe} [shoppingListRecipe]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public updateShoppingListRecipe(id: string, shoppingListRecipe?: ShoppingListRecipe, options?: any) {
return ApiApiFp(this.configuration)
.updateShoppingListRecipe(id, shoppingListRecipe, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} id A unique integer value identifying this step.
* @param {Step} [step]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public updateStep(id: string, step?: Step, options?: any) {
return ApiApiFp(this.configuration)
.updateStep(id, step, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} id A unique integer value identifying this storage.
* @param {Storage} [storage]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public updateStorage(id: string, storage?: Storage, options?: any) {
return ApiApiFp(this.configuration)
.updateStorage(id, storage, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} id A unique integer value identifying this supermarket.
* @param {Supermarket} [supermarket]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public updateSupermarket(id: string, supermarket?: Supermarket, options?: any) {
return ApiApiFp(this.configuration)
.updateSupermarket(id, supermarket, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} id A unique integer value identifying this supermarket category.
* @param {SupermarketCategory} [supermarketCategory]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public updateSupermarketCategory(id: string, supermarketCategory?: SupermarketCategory, options?: any) {
return ApiApiFp(this.configuration)
.updateSupermarketCategory(id, supermarketCategory, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} id A unique integer value identifying this supermarket category relation.
* @param {SupermarketCategoryRelation} [supermarketCategoryRelation]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public updateSupermarketCategoryRelation(id: string, supermarketCategoryRelation?: SupermarketCategoryRelation, options?: any) {
return ApiApiFp(this.configuration)
.updateSupermarketCategoryRelation(id, supermarketCategoryRelation, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} id A unique integer value identifying this sync.
* @param {Sync} [sync]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public updateSync(id: string, sync?: Sync, options?: any) {
return ApiApiFp(this.configuration)
.updateSync(id, sync, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} id A unique integer value identifying this unit.
* @param {Unit} [unit]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public updateUnit(id: string, unit?: Unit, options?: any) {
return ApiApiFp(this.configuration)
.updateUnit(id, unit, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} id A unique integer value identifying this user file.
* @param {string} name
* @param {any} [file]
* @param {number} [fileSizeKb]
* @param {number} [id2]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public updateUserFile(id: string, name: string, file?: any, fileSizeKb?: number, id2?: number, options?: any) {
return ApiApiFp(this.configuration)
.updateUserFile(id, name, file, fileSizeKb, id2, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} user A unique value identifying this user preference.
* @param {UserPreference} [userPreference]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public updateUserPreference(user: string, userPreference?: UserPreference, options?: any) {
return ApiApiFp(this.configuration)
.updateUserPreference(user, userPreference, options)
.then((request) => request(this.axios, this.basePath))
}
/**
*
* @param {string} id A unique integer value identifying this view log.
* @param {ViewLog} [viewLog]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiApi
*/
public updateViewLog(id: string, viewLog?: ViewLog, options?: any) {
return ApiApiFp(this.configuration)
.updateViewLog(id, viewLog, options)
.then((request) => request(this.axios, this.basePath))
}
}