From 97cf2e63728c4725855715661aba5146a3997d1b Mon Sep 17 00:00:00 2001 From: smilerz Date: Thu, 28 Mar 2024 07:47:50 -0500 Subject: [PATCH] regen axios api --- vue/src/utils/openapi/api.ts | 35143 +++++++++++------------ vue/src/utils/openapi/common.ts | 6 +- vue/src/utils/openapi/configuration.ts | 6 +- 3 files changed, 16579 insertions(+), 18576 deletions(-) diff --git a/vue/src/utils/openapi/api.ts b/vue/src/utils/openapi/api.ts index 6f27eef7b..41bbfd5a9 100644 --- a/vue/src/utils/openapi/api.ts +++ b/vue/src/utils/openapi/api.ts @@ -1,11 +1,11 @@ /* 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: 1.0.0 + * Tandoor + * Tandoor API Docs * + * 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 @@ -13,267 +13,249 @@ */ -import globalAxios, { AxiosInstance, AxiosPromise } from 'axios'; import { Configuration } from './configuration'; +import globalAxios, { AxiosPromise, AxiosInstance } from 'axios'; // Some imports not used depending on template conditions // @ts-ignore -import { DUMMY_BASE_URL, assertParamExists, createRequestFunction, serializeDataIfNeeded, setSearchParams, toPathString } from './common'; +import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common'; // @ts-ignore -import { BASE_PATH, BaseAPI, RequestArgs, RequiredError } from './base'; +import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base'; /** - * + * * @export * @interface AccessToken */ export interface AccessToken { /** - * + * * @type {number} * @memberof AccessToken */ - id?: number; + id: number; /** - * + * * @type {string} * @memberof AccessToken */ - token?: string; + token: string; /** - * + * * @type {string} * @memberof AccessToken */ expires: string; /** - * + * * @type {string} * @memberof AccessToken */ scope?: string; /** - * + * * @type {string} * @memberof AccessToken */ - created?: string; + created: string; /** - * + * * @type {string} * @memberof AccessToken */ - updated?: string; + updated: string; } /** - * + * * @export * @interface AuthToken */ export interface AuthToken { /** - * + * * @type {string} * @memberof AuthToken */ username: string; /** - * + * * @type {string} * @memberof AuthToken */ password: string; /** - * + * * @type {string} * @memberof AuthToken */ - token?: string; + token: string; } /** - * + * * @export * @interface Automation */ export interface Automation { /** - * + * * @type {number} * @memberof Automation */ - id?: number; + id: number; /** - * - * @type {string} + * + * @type {TypeEnum} * @memberof Automation */ - type: AutomationTypeEnum; + type: TypeEnum; /** - * + * * @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 {number} * @memberof Automation */ order?: number; /** - * + * * @type {boolean} * @memberof Automation */ disabled?: boolean; /** - * - * @type {string} + * + * @type {number} * @memberof Automation */ - created_by?: string; + created_by: number; } - /** - * @export - * @enum {string} - */ -export enum AutomationTypeEnum { - FoodAlias = 'FOOD_ALIAS', - UnitAlias = 'UNIT_ALIAS', - KeywordAlias = 'KEYWORD_ALIAS', - DescriptionReplace = 'DESCRIPTION_REPLACE', - InstructionReplace = 'INSTRUCTION_REPLACE', - NeverUnit = 'NEVER_UNIT', - TransposeWords = 'TRANSPOSE_WORDS', - FoodReplace = 'FOOD_REPLACE', - UnitReplace = 'UNIT_REPLACE', - NameReplace = 'NAME_REPLACE' -} - -/** - * + * * @export * @interface BookmarkletImport */ export interface BookmarkletImport { /** - * + * * @type {number} * @memberof BookmarkletImport */ - id?: number; + id: number; /** - * + * * @type {string} * @memberof BookmarkletImport */ url?: string | null; /** - * + * * @type {string} * @memberof BookmarkletImport */ html: string; /** - * - * @type {string} + * + * @type {number} * @memberof BookmarkletImport */ - created_by?: string; + created_by: number; /** - * + * * @type {string} * @memberof BookmarkletImport */ - created_at?: string; + created_at: string; } /** - * + * * @export * @interface BookmarkletImportList */ export interface BookmarkletImportList { /** - * + * * @type {number} * @memberof BookmarkletImportList */ - id?: number; + id: number; /** - * + * * @type {string} * @memberof BookmarkletImportList */ url?: string | null; /** - * - * @type {string} + * + * @type {number} * @memberof BookmarkletImportList */ - created_by?: string; + created_by: number; /** - * + * * @type {string} * @memberof BookmarkletImportList */ - created_at?: string; + created_at: string; } /** - * + * * @export * @interface ConnectorConfigConfig */ export interface ConnectorConfigConfig { /** - * + * * @type {number} * @memberof ConnectorConfigConfig */ - id?: number; + id: number; /** - * + * * @type {string} * @memberof ConnectorConfigConfig */ name: string; /** - * + * * @type {string} * @memberof ConnectorConfigConfig */ url?: string | null; /** - * + * * @type {string} * @memberof ConnectorConfigConfig */ token?: string | null; /** - * + * * @type {string} * @memberof ConnectorConfigConfig */ @@ -285,618 +267,398 @@ export interface ConnectorConfigConfig { */ enabled?: boolean; /** - * + * * @type {boolean} * @memberof ConnectorConfigConfig */ on_shopping_list_entry_created_enabled?: boolean; /** - * + * * @type {boolean} * @memberof ConnectorConfigConfig */ on_shopping_list_entry_updated_enabled?: boolean; /** - * + * * @type {boolean} * @memberof ConnectorConfigConfig */ on_shopping_list_entry_deleted_enabled?: boolean; /** - * - * @type {string} + * + * @type {number} * @memberof ConnectorConfigConfig */ - created_by?: string; + created_by: number; } /** - * + * * @export * @interface CookLog */ export interface CookLog { /** - * + * * @type {number} * @memberof CookLog */ - id?: number; + id: number; /** - * + * * @type {number} * @memberof CookLog */ recipe: number; /** - * + * * @type {number} * @memberof CookLog */ servings?: number | null; /** - * + * * @type {number} * @memberof CookLog */ rating?: number | null; /** - * + * * @type {string} * @memberof CookLog */ comment?: string | null; /** - * - * @type {CookLogCreatedBy} + * + * @type {User} * @memberof CookLog */ - created_by?: CookLogCreatedBy; + created_by: User; /** - * + * * @type {string} * @memberof CookLog */ created_at?: string; /** - * + * * @type {string} * @memberof CookLog */ - updated_at?: string; + updated_at: string; } /** - * - * @export - * @interface CookLogCreatedBy - */ -export interface CookLogCreatedBy { - /** - * - * @type {number} - * @memberof CookLogCreatedBy - */ - id?: number; - /** - * Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. - * @type {string} - * @memberof CookLogCreatedBy - */ - username?: string; - /** - * - * @type {string} - * @memberof CookLogCreatedBy - */ - first_name?: string; - /** - * - * @type {string} - * @memberof CookLogCreatedBy - */ - last_name?: string; - /** - * - * @type {string} - * @memberof CookLogCreatedBy - */ - display_name?: string; -} -/** - * + * Adds nested create feature * @export * @interface CustomFilter */ export interface CustomFilter { /** - * + * * @type {number} * @memberof CustomFilter */ - id?: number; + id: number; /** - * + * * @type {string} * @memberof CustomFilter */ name: string; /** - * + * * @type {string} * @memberof CustomFilter */ search: string; /** - * - * @type {Array} + * + * @type {Array} * @memberof CustomFilter */ - shared?: Array; + shared?: Array; /** - * - * @type {string} - * @memberof CustomFilter - */ - created_by?: string; -} -/** - * - * @export - * @interface CustomFilterShared - */ -export interface CustomFilterShared { - /** - * + * * @type {number} - * @memberof CustomFilterShared + * @memberof CustomFilter */ - id?: number; - /** - * Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. - * @type {string} - * @memberof CustomFilterShared - */ - username?: string; - /** - * - * @type {string} - * @memberof CustomFilterShared - */ - first_name?: string; - /** - * - * @type {string} - * @memberof CustomFilterShared - */ - last_name?: string; - /** - * - * @type {string} - * @memberof CustomFilterShared - */ - display_name?: string; + created_by: number; } /** - * + * * `SEARCH` - Search * `PLAN` - Meal-Plan * `BOOKS` - Books * `SHOPPING` - Shopping + * @export + * @enum {string} + */ +export enum DefaultPageEnum { + Search = 'SEARCH', + Plan = 'PLAN', + Books = 'BOOKS', + Shopping = 'SHOPPING' +} + +/** + * * `true` - true + * @export + * @enum {string} + */ +export enum DeleteEnum { + True = 'true' +} + +/** + * * @export * @interface ExportLog */ export interface ExportLog { /** - * + * * @type {number} * @memberof ExportLog */ - id?: number; + id: number; /** - * + * * @type {string} * @memberof ExportLog */ type: string; /** - * + * * @type {string} * @memberof ExportLog */ msg?: string; /** - * + * * @type {boolean} * @memberof ExportLog */ running?: boolean; /** - * + * * @type {number} * @memberof ExportLog */ total_recipes?: number; /** - * + * * @type {number} * @memberof ExportLog */ exported_recipes?: number; /** - * + * * @type {number} * @memberof ExportLog */ cache_duration?: number; /** - * + * * @type {boolean} * @memberof ExportLog */ possibly_not_expired?: boolean; /** - * - * @type {string} + * + * @type {number} * @memberof ExportLog */ - created_by?: string; + created_by: number; /** - * + * * @type {string} * @memberof ExportLog */ - created_at?: string; + created_at: string; } /** - * + * Moves `UniqueValidator`\'s from the validation stage to the save stage. It solves the problem with nested validation for unique fields on update. If you want more details, you can read related issues and articles: https://github.com/beda-software/drf-writable-nested/issues/1 http://www.django-rest-framework.org/api-guide/validators/#updating-nested-serializers Example of usage: ``` class Child(models.Model): field = models.CharField(unique=True) class Parent(models.Model): child = models.ForeignKey(\'Child\') class ChildSerializer(UniqueFieldsMixin, serializers.ModelSerializer): class Meta: model = Child class ParentSerializer(NestedUpdateMixin, serializers.ModelSerializer): child = ChildSerializer() class Meta: model = Parent ``` Note: `UniqueFieldsMixin` must be applied only on the serializer which has unique fields. Note: When you are using both mixins (`UniqueFieldsMixin` and `NestedCreateMixin` or `NestedUpdateMixin`) you should put `UniqueFieldsMixin` ahead. * @export * @interface Food */ export interface Food { /** - * + * * @type {number} * @memberof Food */ - id?: number; + id: number; /** - * + * * @type {string} * @memberof Food */ name: string; /** - * + * * @type {string} * @memberof Food */ plural_name?: string | null; /** - * + * * @type {string} * @memberof Food */ description?: string; /** - * + * * @type {string} * @memberof Food */ - shopping?: string; + shopping: string; /** - * - * @type {FoodRecipe} + * + * @type {RecipeSimple} * @memberof Food */ - recipe?: FoodRecipe | null; + recipe?: RecipeSimple | null; /** - * + * * @type {string} * @memberof Food */ url?: string | null; /** - * - * @type {Array} + * + * @type {Array} * @memberof Food */ - properties?: Array | null; + properties?: Array | null; /** - * + * * @type {string} * @memberof Food */ properties_food_amount?: string; /** - * - * @type {FoodPropertiesFoodUnit} + * + * @type {Unit} * @memberof Food */ - properties_food_unit?: FoodPropertiesFoodUnit | null; + properties_food_unit?: Unit | null; /** - * + * * @type {number} * @memberof Food */ fdc_id?: number | null; /** - * + * * @type {string} * @memberof Food */ food_onhand?: string | null; /** - * - * @type {FoodSupermarketCategory} + * + * @type {SupermarketCategory} * @memberof Food */ - supermarket_category?: FoodSupermarketCategory | null; + supermarket_category?: SupermarketCategory | null; /** - * + * * @type {string} * @memberof Food */ - parent?: string; + parent: string; /** - * + * * @type {number} * @memberof Food */ - numchild?: number; + numchild: number; /** - * - * @type {Array} + * + * @type {Array} * @memberof Food */ - inherit_fields?: Array | null; + inherit_fields?: Array | null; /** - * + * * @type {string} * @memberof Food */ - full_name?: string; + full_name: string; /** - * + * * @type {boolean} * @memberof Food */ ignore_shopping?: boolean; /** - * - * @type {Array} + * + * @type {Array} * @memberof Food */ - substitute?: Array | null; + substitute?: Array | null; /** - * + * * @type {boolean} * @memberof Food */ substitute_siblings?: boolean; /** - * + * * @type {boolean} * @memberof Food */ substitute_children?: boolean; /** - * + * * @type {string} * @memberof Food */ - substitute_onhand?: string; + substitute_onhand: string; /** - * - * @type {Array} + * + * @type {Array} * @memberof Food */ - child_inherit_fields?: Array | null; + child_inherit_fields?: Array | null; /** - * + * * @type {string} * @memberof Food */ open_data_slug?: string | null; } /** - * + * Moves `UniqueValidator`\'s from the validation stage to the save stage. It solves the problem with nested validation for unique fields on update. If you want more details, you can read related issues and articles: https://github.com/beda-software/drf-writable-nested/issues/1 http://www.django-rest-framework.org/api-guide/validators/#updating-nested-serializers Example of usage: ``` class Child(models.Model): field = models.CharField(unique=True) class Parent(models.Model): child = models.ForeignKey(\'Child\') class ChildSerializer(UniqueFieldsMixin, serializers.ModelSerializer): class Meta: model = Child class ParentSerializer(NestedUpdateMixin, serializers.ModelSerializer): child = ChildSerializer() class Meta: model = Parent ``` Note: `UniqueFieldsMixin` must be applied only on the serializer which has unique fields. Note: When you are using both mixins (`UniqueFieldsMixin` and `NestedCreateMixin` or `NestedUpdateMixin`) you should put `UniqueFieldsMixin` ahead. * @export * @interface FoodInheritField */ export interface FoodInheritField { /** - * + * * @type {number} * @memberof FoodInheritField */ - id?: number; + id: number; /** - * + * * @type {string} * @memberof FoodInheritField */ name?: string | null; /** - * + * * @type {string} * @memberof FoodInheritField */ field?: string | null; } /** - * - * @export - * @interface FoodInheritFields - */ -export interface FoodInheritFields { - /** - * - * @type {number} - * @memberof FoodInheritFields - */ - id?: number; - /** - * - * @type {string} - * @memberof FoodInheritFields - */ - name?: string | null; - /** - * - * @type {string} - * @memberof FoodInheritFields - */ - field?: string | null; -} -/** - * - * @export - * @interface FoodProperties - */ -export interface FoodProperties { - /** - * - * @type {number} - * @memberof FoodProperties - */ - id?: number; - /** - * - * @type {string} - * @memberof FoodProperties - */ - property_amount: string | null; - /** - * - * @type {FoodPropertyType} - * @memberof FoodProperties - */ - property_type: FoodPropertyType; -} -/** - * - * @export - * @interface FoodPropertiesFoodUnit - */ -export interface FoodPropertiesFoodUnit { - /** - * - * @type {number} - * @memberof FoodPropertiesFoodUnit - */ - id?: number; - /** - * - * @type {string} - * @memberof FoodPropertiesFoodUnit - */ - name: string; - /** - * - * @type {string} - * @memberof FoodPropertiesFoodUnit - */ - plural_name?: string | null; - /** - * - * @type {string} - * @memberof FoodPropertiesFoodUnit - */ - description?: string | null; - /** - * - * @type {string} - * @memberof FoodPropertiesFoodUnit - */ - base_unit?: string | null; - /** - * - * @type {string} - * @memberof FoodPropertiesFoodUnit - */ - open_data_slug?: string | null; -} -/** - * - * @export - * @interface FoodPropertyType - */ -export interface FoodPropertyType { - /** - * - * @type {number} - * @memberof FoodPropertyType - */ - id?: number; - /** - * - * @type {string} - * @memberof FoodPropertyType - */ - name: string; - /** - * - * @type {string} - * @memberof FoodPropertyType - */ - unit?: string | null; - /** - * - * @type {string} - * @memberof FoodPropertyType - */ - description?: string | null; - /** - * - * @type {number} - * @memberof FoodPropertyType - */ - order?: number; - /** - * - * @type {string} - * @memberof FoodPropertyType - */ - open_data_slug?: string | null; - /** - * - * @type {number} - * @memberof FoodPropertyType - */ - fdc_id?: number | null; -} -/** - * - * @export - * @interface FoodRecipe - */ -export interface FoodRecipe { - /** - * - * @type {number} - * @memberof FoodRecipe - */ - id?: number; - /** - * - * @type {string} - * @memberof FoodRecipe - */ - name: string; - /** - * - * @type {string} - * @memberof FoodRecipe - */ - url?: string; -} -/** - * + * * @export * @interface FoodShoppingUpdate */ export interface FoodShoppingUpdate { /** - * + * * @type {number} * @memberof FoodShoppingUpdate */ - id?: number; + id: number; /** * Amount of food to add to the shopping list * @type {number} @@ -910,3049 +672,3720 @@ export interface FoodShoppingUpdate { */ unit?: number | null; /** - * When set to true will delete all food from active shopping lists. - * @type {string} + * When set to true will delete all food from active shopping lists. * `true` - true + * @type {DeleteEnum} * @memberof FoodShoppingUpdate */ - _delete: FoodShoppingUpdateDeleteEnum; + _delete: DeleteEnum | null; } - /** - * @export - * @enum {string} - */ -export enum FoodShoppingUpdateDeleteEnum { - True = 'true' -} - -/** - * + * * @export - * @interface FoodSubstitute + * @interface FoodSimple */ -export interface FoodSubstitute { +export interface FoodSimple { /** - * + * * @type {number} - * @memberof FoodSubstitute + * @memberof FoodSimple */ - id?: number; + id: number; /** - * + * * @type {string} - * @memberof FoodSubstitute + * @memberof FoodSimple */ name: string; /** - * + * * @type {string} - * @memberof FoodSubstitute + * @memberof FoodSimple */ plural_name?: string | null; } /** - * - * @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; -} -/** - * + * Moves `UniqueValidator`\'s from the validation stage to the save stage. It solves the problem with nested validation for unique fields on update. If you want more details, you can read related issues and articles: https://github.com/beda-software/drf-writable-nested/issues/1 http://www.django-rest-framework.org/api-guide/validators/#updating-nested-serializers Example of usage: ``` class Child(models.Model): field = models.CharField(unique=True) class Parent(models.Model): child = models.ForeignKey(\'Child\') class ChildSerializer(UniqueFieldsMixin, serializers.ModelSerializer): class Meta: model = Child class ParentSerializer(NestedUpdateMixin, serializers.ModelSerializer): child = ChildSerializer() class Meta: model = Parent ``` Note: `UniqueFieldsMixin` must be applied only on the serializer which has unique fields. Note: When you are using both mixins (`UniqueFieldsMixin` and `NestedCreateMixin` or `NestedUpdateMixin`) you should put `UniqueFieldsMixin` ahead. * @export * @interface Group */ export interface Group { /** - * + * * @type {number} * @memberof Group */ - id?: number; + id: number; /** - * + * * @type {string} * @memberof Group */ name: string; } /** - * + * * @export * @interface ImportLog */ export interface ImportLog { /** - * + * * @type {number} * @memberof ImportLog */ - id?: number; + id: number; /** - * + * * @type {string} * @memberof ImportLog */ type: string; /** - * + * * @type {string} * @memberof ImportLog */ msg?: string; /** - * + * * @type {boolean} * @memberof ImportLog */ running?: boolean; /** - * - * @type {ImportLogKeyword} + * + * @type {Keyword} * @memberof ImportLog */ - keyword?: ImportLogKeyword; + keyword: Keyword; /** - * + * * @type {number} * @memberof ImportLog */ total_recipes?: number; /** - * + * * @type {number} * @memberof ImportLog */ imported_recipes?: number; /** - * + * + * @type {number} + * @memberof ImportLog + */ + created_by: number; + /** + * * @type {string} * @memberof ImportLog */ - created_by?: string; - /** - * - * @type {string} - * @memberof ImportLog - */ - created_at?: string; + 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 - */ - label?: string; - /** - * - * @type {string} - * @memberof ImportLogKeyword - */ - description?: string; - /** - * - * @type {string} - * @memberof ImportLogKeyword - */ - parent?: string; - /** - * - * @type {number} - * @memberof ImportLogKeyword - */ - numchild?: number; - /** - * - * @type {string} - * @memberof ImportLogKeyword - */ - created_at?: string; - /** - * - * @type {string} - * @memberof ImportLogKeyword - */ - updated_at?: string; - /** - * - * @type {string} - * @memberof ImportLogKeyword - */ - full_name?: string; -} -/** - * + * Adds nested create feature * @export * @interface Ingredient */ export interface Ingredient { /** - * + * * @type {number} * @memberof Ingredient */ - id?: number; + id: number; /** - * - * @type {IngredientFood} + * + * @type {Food} * @memberof Ingredient */ - food: IngredientFood | null; + food: Food | null; /** - * - * @type {FoodPropertiesFoodUnit} + * + * @type {Unit} * @memberof Ingredient */ - unit: FoodPropertiesFoodUnit | null; + unit: Unit | null; /** - * + * * @type {string} * @memberof Ingredient */ amount: string; /** - * + * * @type {string} * @memberof Ingredient */ - conversions?: string; + conversions: string; /** - * + * * @type {string} * @memberof Ingredient */ note?: string | null; /** - * + * * @type {number} * @memberof Ingredient */ order?: number; /** - * + * * @type {boolean} * @memberof Ingredient */ is_header?: boolean; /** - * + * * @type {boolean} * @memberof Ingredient */ no_amount?: boolean; /** - * + * * @type {string} * @memberof Ingredient */ original_text?: string | null; /** - * + * * @type {string} * @memberof Ingredient */ - used_in_recipes?: string; + used_in_recipes: string; /** - * + * * @type {boolean} * @memberof Ingredient */ always_use_plural_unit?: boolean; /** - * + * * @type {boolean} * @memberof Ingredient */ always_use_plural_food?: boolean; } /** - * - * @export - * @interface IngredientFood - */ -export interface IngredientFood { - /** - * - * @type {number} - * @memberof IngredientFood - */ - id?: number; - /** - * - * @type {string} - * @memberof IngredientFood - */ - name: string; - /** - * - * @type {string} - * @memberof IngredientFood - */ - plural_name?: string | null; - /** - * - * @type {string} - * @memberof IngredientFood - */ - description?: string; - /** - * - * @type {string} - * @memberof IngredientFood - */ - shopping?: string; - /** - * - * @type {FoodRecipe} - * @memberof IngredientFood - */ - recipe?: FoodRecipe | null; - /** - * - * @type {string} - * @memberof IngredientFood - */ - url?: string | null; - /** - * - * @type {Array} - * @memberof IngredientFood - */ - properties?: Array | null; - /** - * - * @type {string} - * @memberof IngredientFood - */ - properties_food_amount?: string; - /** - * - * @type {FoodPropertiesFoodUnit} - * @memberof IngredientFood - */ - properties_food_unit?: FoodPropertiesFoodUnit | null; - /** - * - * @type {number} - * @memberof IngredientFood - */ - fdc_id?: number | null; - /** - * - * @type {string} - * @memberof IngredientFood - */ - food_onhand?: string | null; - /** - * - * @type {FoodSupermarketCategory} - * @memberof IngredientFood - */ - supermarket_category?: FoodSupermarketCategory | null; - /** - * - * @type {string} - * @memberof IngredientFood - */ - parent?: string; - /** - * - * @type {number} - * @memberof IngredientFood - */ - numchild?: number; - /** - * - * @type {Array} - * @memberof IngredientFood - */ - inherit_fields?: Array | null; - /** - * - * @type {string} - * @memberof IngredientFood - */ - full_name?: string; - /** - * - * @type {boolean} - * @memberof IngredientFood - */ - ignore_shopping?: boolean; - /** - * - * @type {Array} - * @memberof IngredientFood - */ - substitute?: Array | null; - /** - * - * @type {boolean} - * @memberof IngredientFood - */ - substitute_siblings?: boolean; - /** - * - * @type {boolean} - * @memberof IngredientFood - */ - substitute_children?: boolean; - /** - * - * @type {string} - * @memberof IngredientFood - */ - substitute_onhand?: string; - /** - * - * @type {Array} - * @memberof IngredientFood - */ - child_inherit_fields?: Array | null; - /** - * - * @type {string} - * @memberof IngredientFood - */ - open_data_slug?: string | null; -} -/** - * - * @export - * @interface InlineResponse200 - */ -export interface InlineResponse200 { - /** - * - * @type {number} - * @memberof InlineResponse200 - */ - count?: number; - /** - * - * @type {string} - * @memberof InlineResponse200 - */ - next?: string | null; - /** - * - * @type {string} - * @memberof InlineResponse200 - */ - previous?: string | null; - /** - * - * @type {Array} - * @memberof InlineResponse200 - */ - results?: Array; -} -/** - * - * @export - * @interface InlineResponse2001 - */ -export interface InlineResponse2001 { - /** - * - * @type {number} - * @memberof InlineResponse2001 - */ - count?: number; - /** - * - * @type {string} - * @memberof InlineResponse2001 - */ - next?: string | null; - /** - * - * @type {string} - * @memberof InlineResponse2001 - */ - previous?: string | null; - /** - * - * @type {Array} - * @memberof InlineResponse2001 - */ - results?: Array; -} -/** - * - * @export - * @interface InlineResponse20010 - */ -export interface InlineResponse20010 { - /** - * - * @type {number} - * @memberof InlineResponse20010 - */ - count?: number; - /** - * - * @type {string} - * @memberof InlineResponse20010 - */ - next?: string | null; - /** - * - * @type {string} - * @memberof InlineResponse20010 - */ - previous?: string | null; - /** - * - * @type {Array} - * @memberof InlineResponse20010 - */ - results?: Array; -} -/** - * - * @export - * @interface InlineResponse20011 - */ -export interface InlineResponse20011 { - /** - * - * @type {number} - * @memberof InlineResponse20011 - */ - count?: number; - /** - * - * @type {string} - * @memberof InlineResponse20011 - */ - next?: string | null; - /** - * - * @type {string} - * @memberof InlineResponse20011 - */ - previous?: string | null; - /** - * - * @type {Array} - * @memberof InlineResponse20011 - */ - results?: Array; -} -/** - * - * @export - * @interface InlineResponse20012 - */ -export interface InlineResponse20012 { - /** - * - * @type {number} - * @memberof InlineResponse20012 - */ - count?: number; - /** - * - * @type {string} - * @memberof InlineResponse20012 - */ - next?: string | null; - /** - * - * @type {string} - * @memberof InlineResponse20012 - */ - previous?: string | null; - /** - * - * @type {Array} - * @memberof InlineResponse20012 - */ - results?: Array; -} -/** - * - * @export - * @interface InlineResponse20013 - */ -export interface InlineResponse20013 { - /** - * - * @type {number} - * @memberof InlineResponse20013 - */ - count?: number; - /** - * - * @type {string} - * @memberof InlineResponse20013 - */ - next?: string | null; - /** - * - * @type {string} - * @memberof InlineResponse20013 - */ - previous?: string | null; - /** - * - * @type {Array} - * @memberof InlineResponse20013 - */ - results?: Array; -} -/** - * - * @export - * @interface InlineResponse20014 - */ -export interface InlineResponse20014 { - /** - * - * @type {number} - * @memberof InlineResponse20014 - */ - count?: number; - /** - * - * @type {string} - * @memberof InlineResponse20014 - */ - next?: string | null; - /** - * - * @type {string} - * @memberof InlineResponse20014 - */ - previous?: string | null; - /** - * - * @type {Array} - * @memberof InlineResponse20014 - */ - results?: Array; -} -/** - * - * @export - * @interface InlineResponse2002 - */ -export interface InlineResponse2002 { - /** - * - * @type {number} - * @memberof InlineResponse2002 - */ - count?: number; - /** - * - * @type {string} - * @memberof InlineResponse2002 - */ - next?: string | null; - /** - * - * @type {string} - * @memberof InlineResponse2002 - */ - previous?: string | null; - /** - * - * @type {Array} - * @memberof InlineResponse2002 - */ - results?: Array; -} -/** - * - * @export - * @interface InlineResponse2003 - */ -export interface InlineResponse2003 { - /** - * - * @type {number} - * @memberof InlineResponse2003 - */ - count?: number; - /** - * - * @type {string} - * @memberof InlineResponse2003 - */ - next?: string | null; - /** - * - * @type {string} - * @memberof InlineResponse2003 - */ - previous?: string | null; - /** - * - * @type {Array} - * @memberof InlineResponse2003 - */ - results?: Array; -} -/** - * - * @export - * @interface InlineResponse2004 - */ -export interface InlineResponse2004 { - /** - * - * @type {number} - * @memberof InlineResponse2004 - */ - count?: number; - /** - * - * @type {string} - * @memberof InlineResponse2004 - */ - next?: string | null; - /** - * - * @type {string} - * @memberof InlineResponse2004 - */ - previous?: string | null; - /** - * - * @type {Array} - * @memberof InlineResponse2004 - */ - results?: Array; -} -/** - * - * @export - * @interface InlineResponse2005 - */ -export interface InlineResponse2005 { - /** - * - * @type {number} - * @memberof InlineResponse2005 - */ - count?: number; - /** - * - * @type {string} - * @memberof InlineResponse2005 - */ - next?: string | null; - /** - * - * @type {string} - * @memberof InlineResponse2005 - */ - previous?: string | null; - /** - * - * @type {Array} - * @memberof InlineResponse2005 - */ - results?: Array; -} -/** - * - * @export - * @interface InlineResponse2006 - */ -export interface InlineResponse2006 { - /** - * - * @type {number} - * @memberof InlineResponse2006 - */ - count?: number; - /** - * - * @type {string} - * @memberof InlineResponse2006 - */ - next?: string | null; - /** - * - * @type {string} - * @memberof InlineResponse2006 - */ - previous?: string | null; - /** - * - * @type {Array} - * @memberof InlineResponse2006 - */ - results?: Array; -} -/** - * - * @export - * @interface InlineResponse2007 - */ -export interface InlineResponse2007 { - /** - * - * @type {number} - * @memberof InlineResponse2007 - */ - count?: number; - /** - * - * @type {string} - * @memberof InlineResponse2007 - */ - next?: string | null; - /** - * - * @type {string} - * @memberof InlineResponse2007 - */ - previous?: string | null; - /** - * - * @type {Array} - * @memberof InlineResponse2007 - */ - results?: Array; -} -/** - * - * @export - * @interface InlineResponse2008 - */ -export interface InlineResponse2008 { - /** - * - * @type {number} - * @memberof InlineResponse2008 - */ - count?: number; - /** - * - * @type {string} - * @memberof InlineResponse2008 - */ - next?: string | null; - /** - * - * @type {string} - * @memberof InlineResponse2008 - */ - previous?: string | null; - /** - * - * @type {Array} - * @memberof InlineResponse2008 - */ - results?: Array; -} -/** - * - * @export - * @interface InlineResponse2009 - */ -export interface InlineResponse2009 { - /** - * - * @type {number} - * @memberof InlineResponse2009 - */ - count?: number; - /** - * - * @type {string} - * @memberof InlineResponse2009 - */ - next?: string | null; - /** - * - * @type {string} - * @memberof InlineResponse2009 - */ - previous?: string | null; - /** - * - * @type {Array} - * @memberof InlineResponse2009 - */ - results?: Array; -} -/** - * + * Adds nested create feature * @export * @interface InviteLink */ export interface InviteLink { /** - * + * * @type {number} * @memberof InviteLink */ - id?: number; + id: number; /** - * + * * @type {string} * @memberof InviteLink */ - uuid?: string; + uuid: string; /** - * + * * @type {string} * @memberof InviteLink */ email?: string; /** - * - * @type {InviteLinkGroup} + * + * @type {Group} * @memberof InviteLink */ - group: InviteLinkGroup; + group: Group; /** - * + * * @type {string} * @memberof InviteLink */ valid_until?: string; /** - * + * * @type {number} * @memberof InviteLink */ used_by?: number | null; /** - * + * * @type {boolean} * @memberof InviteLink */ reusable?: boolean; /** - * + * * @type {string} * @memberof InviteLink */ internal_note?: string | null; /** - * - * @type {string} - * @memberof InviteLink - */ - created_by?: string; - /** - * - * @type {string} - * @memberof InviteLink - */ - created_at?: string; -} -/** - * - * @export - * @interface InviteLinkGroup - */ -export interface InviteLinkGroup { - /** - * + * * @type {number} - * @memberof InviteLinkGroup + * @memberof InviteLink */ - id?: number; + created_by: number; /** - * + * * @type {string} - * @memberof InviteLinkGroup + * @memberof InviteLink */ - name: string; + created_at: string; } /** - * + * Moves `UniqueValidator`\'s from the validation stage to the save stage. It solves the problem with nested validation for unique fields on update. If you want more details, you can read related issues and articles: https://github.com/beda-software/drf-writable-nested/issues/1 http://www.django-rest-framework.org/api-guide/validators/#updating-nested-serializers Example of usage: ``` class Child(models.Model): field = models.CharField(unique=True) class Parent(models.Model): child = models.ForeignKey(\'Child\') class ChildSerializer(UniqueFieldsMixin, serializers.ModelSerializer): class Meta: model = Child class ParentSerializer(NestedUpdateMixin, serializers.ModelSerializer): child = ChildSerializer() class Meta: model = Parent ``` Note: `UniqueFieldsMixin` must be applied only on the serializer which has unique fields. Note: When you are using both mixins (`UniqueFieldsMixin` and `NestedCreateMixin` or `NestedUpdateMixin`) you should put `UniqueFieldsMixin` ahead. * @export * @interface Keyword */ export interface Keyword { /** - * + * * @type {number} * @memberof Keyword */ - id?: number; + id: number; /** - * + * * @type {string} * @memberof Keyword */ name: string; /** - * + * * @type {string} * @memberof Keyword */ - label?: string; + label: string; /** - * + * * @type {string} * @memberof Keyword */ description?: string; /** - * + * * @type {string} * @memberof Keyword */ - parent?: string; + parent: string; /** - * + * * @type {number} * @memberof Keyword */ - numchild?: number; + numchild: number; /** - * + * * @type {string} * @memberof Keyword */ - created_at?: string; + created_at: string; /** - * + * * @type {string} * @memberof Keyword */ - updated_at?: string; + updated_at: string; /** - * + * * @type {string} * @memberof Keyword */ - full_name?: string; + full_name: string; } /** - * + * + * @export + * @interface KeywordLabel + */ +export interface KeywordLabel { + /** + * + * @type {number} + * @memberof KeywordLabel + */ + id: number; + /** + * + * @type {string} + * @memberof KeywordLabel + */ + label: string; +} +/** + * Adds nested create feature * @export * @interface MealPlan */ export interface MealPlan { /** - * + * * @type {number} * @memberof MealPlan */ - id?: number; + id: number; /** - * + * * @type {string} * @memberof MealPlan */ title?: string; /** - * - * @type {MealPlanRecipe} + * + * @type {RecipeOverview} * @memberof MealPlan */ - recipe?: MealPlanRecipe | null; + recipe?: RecipeOverview | null; /** - * + * * @type {string} * @memberof MealPlan */ servings: string; /** - * + * * @type {string} * @memberof MealPlan */ note?: string; /** - * + * * @type {string} * @memberof MealPlan */ - note_markdown?: string; + note_markdown: string; /** - * + * * @type {string} * @memberof MealPlan */ from_date: string; /** - * + * * @type {string} * @memberof MealPlan */ to_date?: string; /** - * - * @type {MealPlanMealType} + * + * @type {MealType} * @memberof MealPlan */ - meal_type: MealPlanMealType; + meal_type: MealType; /** - * + * + * @type {number} + * @memberof MealPlan + */ + created_by: number; + /** + * + * @type {Array} + * @memberof MealPlan + */ + shared?: Array | null; + /** + * * @type {string} * @memberof MealPlan */ - created_by?: string; + recipe_name: string; /** - * - * @type {Array} - * @memberof MealPlan - */ - shared?: Array | null; - /** - * + * * @type {string} * @memberof MealPlan */ - recipe_name?: string; + meal_type_name: string; /** - * + * * @type {string} * @memberof MealPlan */ - meal_type_name?: string; - /** - * - * @type {string} - * @memberof MealPlan - */ - shopping?: string; + shopping: string; } /** - * - * @export - * @interface MealPlanMealType - */ -export interface MealPlanMealType { - /** - * - * @type {number} - * @memberof MealPlanMealType - */ - id?: number; - /** - * - * @type {string} - * @memberof MealPlanMealType - */ - name: string; - /** - * - * @type {number} - * @memberof MealPlanMealType - */ - order?: number; - /** - * - * @type {string} - * @memberof MealPlanMealType - */ - color?: string | null; - /** - * - * @type {boolean} - * @memberof MealPlanMealType - */ - _default?: boolean; - /** - * - * @type {string} - * @memberof MealPlanMealType - */ - created_by?: string; -} -/** - * - * @export - * @interface MealPlanRecipe - */ -export interface MealPlanRecipe { - /** - * - * @type {number} - * @memberof MealPlanRecipe - */ - id?: number; - /** - * - * @type {string} - * @memberof MealPlanRecipe - */ - name: string; - /** - * - * @type {string} - * @memberof MealPlanRecipe - */ - description?: string | null; - /** - * - * @type {any} - * @memberof MealPlanRecipe - */ - image?: any | null; - /** - * - * @type {Array} - * @memberof MealPlanRecipe - */ - keywords: Array; - /** - * - * @type {number} - * @memberof MealPlanRecipe - */ - working_time?: number; - /** - * - * @type {number} - * @memberof MealPlanRecipe - */ - waiting_time?: number; - /** - * - * @type {string} - * @memberof MealPlanRecipe - */ - created_by?: string; - /** - * - * @type {string} - * @memberof MealPlanRecipe - */ - created_at?: string; - /** - * - * @type {string} - * @memberof MealPlanRecipe - */ - updated_at?: string; - /** - * - * @type {boolean} - * @memberof MealPlanRecipe - */ - internal?: boolean; - /** - * - * @type {number} - * @memberof MealPlanRecipe - */ - servings?: number; - /** - * - * @type {string} - * @memberof MealPlanRecipe - */ - servings_text?: string; - /** - * - * @type {string} - * @memberof MealPlanRecipe - */ - rating?: string | null; - /** - * - * @type {string} - * @memberof MealPlanRecipe - */ - last_cooked?: string | null; - /** - * - * @type {string} - * @memberof MealPlanRecipe - */ - _new?: string; - /** - * - * @type {string} - * @memberof MealPlanRecipe - */ - recent?: string; -} -/** - * - * @export - * @interface MealPlanRecipeKeywords - */ -export interface MealPlanRecipeKeywords { - /** - * - * @type {number} - * @memberof MealPlanRecipeKeywords - */ - id?: number; - /** - * - * @type {string} - * @memberof MealPlanRecipeKeywords - */ - label?: string; -} -/** - * + * Adds nested create feature * @export * @interface MealType */ export interface MealType { /** - * + * * @type {number} * @memberof MealType */ - id?: number; + id: number; /** - * + * * @type {string} * @memberof MealType */ name: string; /** - * + * * @type {number} * @memberof MealType */ order?: number; /** - * + * * @type {string} * @memberof MealType */ color?: string | null; /** - * + * * @type {boolean} * @memberof MealType */ _default?: boolean; /** - * - * @type {string} + * + * @type {number} * @memberof MealType */ - created_by?: string; + created_by: number; } /** - * + * * `DB` - Dropbox * `NEXTCLOUD` - Nextcloud * `LOCAL` - Local * @export - * @interface OpenDataCategory + * @enum {string} */ -export interface OpenDataCategory { +export enum MethodEnum { + Db = 'DB', + Nextcloud = 'NEXTCLOUD', + Local = 'LOCAL' +} + +/** + * + * @export + * @interface NutritionInformation + */ +export interface NutritionInformation { /** - * + * * @type {number} - * @memberof OpenDataCategory + * @memberof NutritionInformation + */ + id: number; + /** + * + * @type {string} + * @memberof NutritionInformation + */ + carbohydrates: string; + /** + * + * @type {string} + * @memberof NutritionInformation + */ + fats: string; + /** + * + * @type {string} + * @memberof NutritionInformation + */ + proteins: string; + /** + * + * @type {string} + * @memberof NutritionInformation + */ + calories: string; + /** + * + * @type {string} + * @memberof NutritionInformation + */ + source?: string | null; +} +/** + * + * @export + * @interface PaginatedAutomationList + */ +export interface PaginatedAutomationList { + /** + * + * @type {number} + * @memberof PaginatedAutomationList + */ + count?: number; + /** + * + * @type {string} + * @memberof PaginatedAutomationList + */ + next?: string | null; + /** + * + * @type {string} + * @memberof PaginatedAutomationList + */ + previous?: string | null; + /** + * + * @type {Array} + * @memberof PaginatedAutomationList + */ + results?: Array; +} +/** + * + * @export + * @interface PaginatedCookLogList + */ +export interface PaginatedCookLogList { + /** + * + * @type {number} + * @memberof PaginatedCookLogList + */ + count?: number; + /** + * + * @type {string} + * @memberof PaginatedCookLogList + */ + next?: string | null; + /** + * + * @type {string} + * @memberof PaginatedCookLogList + */ + previous?: string | null; + /** + * + * @type {Array} + * @memberof PaginatedCookLogList + */ + results?: Array; +} +/** + * + * @export + * @interface PaginatedCustomFilterList + */ +export interface PaginatedCustomFilterList { + /** + * + * @type {number} + * @memberof PaginatedCustomFilterList + */ + count?: number; + /** + * + * @type {string} + * @memberof PaginatedCustomFilterList + */ + next?: string | null; + /** + * + * @type {string} + * @memberof PaginatedCustomFilterList + */ + previous?: string | null; + /** + * + * @type {Array} + * @memberof PaginatedCustomFilterList + */ + results?: Array; +} +/** + * + * @export + * @interface PaginatedExportLogList + */ +export interface PaginatedExportLogList { + /** + * + * @type {number} + * @memberof PaginatedExportLogList + */ + count?: number; + /** + * + * @type {string} + * @memberof PaginatedExportLogList + */ + next?: string | null; + /** + * + * @type {string} + * @memberof PaginatedExportLogList + */ + previous?: string | null; + /** + * + * @type {Array} + * @memberof PaginatedExportLogList + */ + results?: Array; +} +/** + * + * @export + * @interface PaginatedFoodList + */ +export interface PaginatedFoodList { + /** + * + * @type {number} + * @memberof PaginatedFoodList + */ + count?: number; + /** + * + * @type {string} + * @memberof PaginatedFoodList + */ + next?: string | null; + /** + * + * @type {string} + * @memberof PaginatedFoodList + */ + previous?: string | null; + /** + * + * @type {Array} + * @memberof PaginatedFoodList + */ + results?: Array; +} +/** + * + * @export + * @interface PaginatedImportLogList + */ +export interface PaginatedImportLogList { + /** + * + * @type {number} + * @memberof PaginatedImportLogList + */ + count?: number; + /** + * + * @type {string} + * @memberof PaginatedImportLogList + */ + next?: string | null; + /** + * + * @type {string} + * @memberof PaginatedImportLogList + */ + previous?: string | null; + /** + * + * @type {Array} + * @memberof PaginatedImportLogList + */ + results?: Array; +} +/** + * + * @export + * @interface PaginatedIngredientList + */ +export interface PaginatedIngredientList { + /** + * + * @type {number} + * @memberof PaginatedIngredientList + */ + count?: number; + /** + * + * @type {string} + * @memberof PaginatedIngredientList + */ + next?: string | null; + /** + * + * @type {string} + * @memberof PaginatedIngredientList + */ + previous?: string | null; + /** + * + * @type {Array} + * @memberof PaginatedIngredientList + */ + results?: Array; +} +/** + * + * @export + * @interface PaginatedKeywordList + */ +export interface PaginatedKeywordList { + /** + * + * @type {number} + * @memberof PaginatedKeywordList + */ + count?: number; + /** + * + * @type {string} + * @memberof PaginatedKeywordList + */ + next?: string | null; + /** + * + * @type {string} + * @memberof PaginatedKeywordList + */ + previous?: string | null; + /** + * + * @type {Array} + * @memberof PaginatedKeywordList + */ + results?: Array; +} +/** + * + * @export + * @interface PaginatedRecipeOverviewList + */ +export interface PaginatedRecipeOverviewList { + /** + * + * @type {number} + * @memberof PaginatedRecipeOverviewList + */ + count?: number; + /** + * + * @type {string} + * @memberof PaginatedRecipeOverviewList + */ + next?: string | null; + /** + * + * @type {string} + * @memberof PaginatedRecipeOverviewList + */ + previous?: string | null; + /** + * + * @type {Array} + * @memberof PaginatedRecipeOverviewList + */ + results?: Array; +} +/** + * + * @export + * @interface PaginatedStepList + */ +export interface PaginatedStepList { + /** + * + * @type {number} + * @memberof PaginatedStepList + */ + count?: number; + /** + * + * @type {string} + * @memberof PaginatedStepList + */ + next?: string | null; + /** + * + * @type {string} + * @memberof PaginatedStepList + */ + previous?: string | null; + /** + * + * @type {Array} + * @memberof PaginatedStepList + */ + results?: Array; +} +/** + * + * @export + * @interface PaginatedSupermarketCategoryRelationList + */ +export interface PaginatedSupermarketCategoryRelationList { + /** + * + * @type {number} + * @memberof PaginatedSupermarketCategoryRelationList + */ + count?: number; + /** + * + * @type {string} + * @memberof PaginatedSupermarketCategoryRelationList + */ + next?: string | null; + /** + * + * @type {string} + * @memberof PaginatedSupermarketCategoryRelationList + */ + previous?: string | null; + /** + * + * @type {Array} + * @memberof PaginatedSupermarketCategoryRelationList + */ + results?: Array; +} +/** + * + * @export + * @interface PaginatedSyncLogList + */ +export interface PaginatedSyncLogList { + /** + * + * @type {number} + * @memberof PaginatedSyncLogList + */ + count?: number; + /** + * + * @type {string} + * @memberof PaginatedSyncLogList + */ + next?: string | null; + /** + * + * @type {string} + * @memberof PaginatedSyncLogList + */ + previous?: string | null; + /** + * + * @type {Array} + * @memberof PaginatedSyncLogList + */ + results?: Array; +} +/** + * + * @export + * @interface PaginatedUnitList + */ +export interface PaginatedUnitList { + /** + * + * @type {number} + * @memberof PaginatedUnitList + */ + count?: number; + /** + * + * @type {string} + * @memberof PaginatedUnitList + */ + next?: string | null; + /** + * + * @type {string} + * @memberof PaginatedUnitList + */ + previous?: string | null; + /** + * + * @type {Array} + * @memberof PaginatedUnitList + */ + results?: Array; +} +/** + * + * @export + * @interface PaginatedUserSpaceList + */ +export interface PaginatedUserSpaceList { + /** + * + * @type {number} + * @memberof PaginatedUserSpaceList + */ + count?: number; + /** + * + * @type {string} + * @memberof PaginatedUserSpaceList + */ + next?: string | null; + /** + * + * @type {string} + * @memberof PaginatedUserSpaceList + */ + previous?: string | null; + /** + * + * @type {Array} + * @memberof PaginatedUserSpaceList + */ + results?: Array; +} +/** + * + * @export + * @interface PaginatedViewLogList + */ +export interface PaginatedViewLogList { + /** + * + * @type {number} + * @memberof PaginatedViewLogList + */ + count?: number; + /** + * + * @type {string} + * @memberof PaginatedViewLogList + */ + next?: string | null; + /** + * + * @type {string} + * @memberof PaginatedViewLogList + */ + previous?: string | null; + /** + * + * @type {Array} + * @memberof PaginatedViewLogList + */ + results?: Array; +} +/** + * + * @export + * @interface PatchedAccessToken + */ +export interface PatchedAccessToken { + /** + * + * @type {number} + * @memberof PatchedAccessToken */ id?: number; /** - * - * @type {OpenDataUnitVersion} - * @memberof OpenDataCategory - */ - version: OpenDataUnitVersion; - /** - * + * * @type {string} - * @memberof OpenDataCategory + * @memberof PatchedAccessToken */ - slug: string; + token?: string; /** - * + * * @type {string} - * @memberof OpenDataCategory + * @memberof PatchedAccessToken */ - name: string; + expires?: string; /** - * + * * @type {string} - * @memberof OpenDataCategory + * @memberof PatchedAccessToken + */ + scope?: string; + /** + * + * @type {string} + * @memberof PatchedAccessToken + */ + created?: string; + /** + * + * @type {string} + * @memberof PatchedAccessToken + */ + updated?: string; +} +/** + * + * @export + * @interface PatchedAutomation + */ +export interface PatchedAutomation { + /** + * + * @type {number} + * @memberof PatchedAutomation + */ + id?: number; + /** + * + * @type {TypeEnum} + * @memberof PatchedAutomation + */ + type?: TypeEnum; + /** + * + * @type {string} + * @memberof PatchedAutomation + */ + name?: string; + /** + * + * @type {string} + * @memberof PatchedAutomation + */ + description?: string | null; + /** + * + * @type {string} + * @memberof PatchedAutomation + */ + param_1?: string | null; + /** + * + * @type {string} + * @memberof PatchedAutomation + */ + param_2?: string | null; + /** + * + * @type {string} + * @memberof PatchedAutomation + */ + param_3?: string | null; + /** + * + * @type {number} + * @memberof PatchedAutomation + */ + order?: number; + /** + * + * @type {boolean} + * @memberof PatchedAutomation + */ + disabled?: boolean; + /** + * + * @type {number} + * @memberof PatchedAutomation + */ + created_by?: number; +} +/** + * + * @export + * @interface PatchedBookmarkletImport + */ +export interface PatchedBookmarkletImport { + /** + * + * @type {number} + * @memberof PatchedBookmarkletImport + */ + id?: number; + /** + * + * @type {string} + * @memberof PatchedBookmarkletImport + */ + url?: string | null; + /** + * + * @type {string} + * @memberof PatchedBookmarkletImport + */ + html?: string; + /** + * + * @type {number} + * @memberof PatchedBookmarkletImport + */ + created_by?: number; + /** + * + * @type {string} + * @memberof PatchedBookmarkletImport + */ + created_at?: string; +} +/** + * + * @export + * @interface PatchedConnectorConfigConfig + */ +export interface PatchedConnectorConfigConfig { + /** + * + * @type {number} + * @memberof PatchedConnectorConfigConfig + */ + id?: number; + /** + * + * @type {string} + * @memberof PatchedConnectorConfigConfig + */ + name?: string; + /** + * + * @type {string} + * @memberof PatchedConnectorConfigConfig + */ + url?: string | null; + /** + * + * @type {string} + * @memberof PatchedConnectorConfigConfig + */ + token?: string | null; + /** + * + * @type {string} + * @memberof PatchedConnectorConfigConfig + */ + todo_entity?: string | null; + /** + * Is Connector Enabled + * @type {boolean} + * @memberof PatchedConnectorConfigConfig + */ + enabled?: boolean; + /** + * + * @type {boolean} + * @memberof PatchedConnectorConfigConfig + */ + on_shopping_list_entry_created_enabled?: boolean; + /** + * + * @type {boolean} + * @memberof PatchedConnectorConfigConfig + */ + on_shopping_list_entry_updated_enabled?: boolean; + /** + * + * @type {boolean} + * @memberof PatchedConnectorConfigConfig + */ + on_shopping_list_entry_deleted_enabled?: boolean; + /** + * + * @type {number} + * @memberof PatchedConnectorConfigConfig + */ + created_by?: number; +} +/** + * + * @export + * @interface PatchedCookLog + */ +export interface PatchedCookLog { + /** + * + * @type {number} + * @memberof PatchedCookLog + */ + id?: number; + /** + * + * @type {number} + * @memberof PatchedCookLog + */ + recipe?: number; + /** + * + * @type {number} + * @memberof PatchedCookLog + */ + servings?: number | null; + /** + * + * @type {number} + * @memberof PatchedCookLog + */ + rating?: number | null; + /** + * + * @type {string} + * @memberof PatchedCookLog + */ + comment?: string | null; + /** + * + * @type {User} + * @memberof PatchedCookLog + */ + created_by?: User; + /** + * + * @type {string} + * @memberof PatchedCookLog + */ + created_at?: string; + /** + * + * @type {string} + * @memberof PatchedCookLog + */ + updated_at?: string; +} +/** + * Adds nested create feature + * @export + * @interface PatchedCustomFilter + */ +export interface PatchedCustomFilter { + /** + * + * @type {number} + * @memberof PatchedCustomFilter + */ + id?: number; + /** + * + * @type {string} + * @memberof PatchedCustomFilter + */ + name?: string; + /** + * + * @type {string} + * @memberof PatchedCustomFilter + */ + search?: string; + /** + * + * @type {Array} + * @memberof PatchedCustomFilter + */ + shared?: Array; + /** + * + * @type {number} + * @memberof PatchedCustomFilter + */ + created_by?: number; +} +/** + * + * @export + * @interface PatchedExportLog + */ +export interface PatchedExportLog { + /** + * + * @type {number} + * @memberof PatchedExportLog + */ + id?: number; + /** + * + * @type {string} + * @memberof PatchedExportLog + */ + type?: string; + /** + * + * @type {string} + * @memberof PatchedExportLog + */ + msg?: string; + /** + * + * @type {boolean} + * @memberof PatchedExportLog + */ + running?: boolean; + /** + * + * @type {number} + * @memberof PatchedExportLog + */ + total_recipes?: number; + /** + * + * @type {number} + * @memberof PatchedExportLog + */ + exported_recipes?: number; + /** + * + * @type {number} + * @memberof PatchedExportLog + */ + cache_duration?: number; + /** + * + * @type {boolean} + * @memberof PatchedExportLog + */ + possibly_not_expired?: boolean; + /** + * + * @type {number} + * @memberof PatchedExportLog + */ + created_by?: number; + /** + * + * @type {string} + * @memberof PatchedExportLog + */ + created_at?: string; +} +/** + * Moves `UniqueValidator`\'s from the validation stage to the save stage. It solves the problem with nested validation for unique fields on update. If you want more details, you can read related issues and articles: https://github.com/beda-software/drf-writable-nested/issues/1 http://www.django-rest-framework.org/api-guide/validators/#updating-nested-serializers Example of usage: ``` class Child(models.Model): field = models.CharField(unique=True) class Parent(models.Model): child = models.ForeignKey(\'Child\') class ChildSerializer(UniqueFieldsMixin, serializers.ModelSerializer): class Meta: model = Child class ParentSerializer(NestedUpdateMixin, serializers.ModelSerializer): child = ChildSerializer() class Meta: model = Parent ``` Note: `UniqueFieldsMixin` must be applied only on the serializer which has unique fields. Note: When you are using both mixins (`UniqueFieldsMixin` and `NestedCreateMixin` or `NestedUpdateMixin`) you should put `UniqueFieldsMixin` ahead. + * @export + * @interface PatchedFood + */ +export interface PatchedFood { + /** + * + * @type {number} + * @memberof PatchedFood + */ + id?: number; + /** + * + * @type {string} + * @memberof PatchedFood + */ + name?: string; + /** + * + * @type {string} + * @memberof PatchedFood + */ + plural_name?: string | null; + /** + * + * @type {string} + * @memberof PatchedFood */ description?: string; /** - * + * * @type {string} - * @memberof OpenDataCategory + * @memberof PatchedFood */ - comment?: string; + shopping?: string; /** - * + * + * @type {RecipeSimple} + * @memberof PatchedFood + */ + recipe?: RecipeSimple | null; + /** + * * @type {string} - * @memberof OpenDataCategory + * @memberof PatchedFood */ - created_by?: string; -} -/** - * - * @export - * @interface OpenDataConversion - */ -export interface OpenDataConversion { + url?: string | null; /** - * + * + * @type {Array} + * @memberof PatchedFood + */ + properties?: Array | null; + /** + * + * @type {string} + * @memberof PatchedFood + */ + properties_food_amount?: string; + /** + * + * @type {Unit} + * @memberof PatchedFood + */ + properties_food_unit?: Unit | null; + /** + * * @type {number} - * @memberof OpenDataConversion - */ - id?: number; - /** - * - * @type {OpenDataUnitVersion} - * @memberof OpenDataConversion - */ - version: OpenDataUnitVersion; - /** - * - * @type {string} - * @memberof OpenDataConversion - */ - slug: string; - /** - * - * @type {OpenDataConversionFood} - * @memberof OpenDataConversion - */ - food: OpenDataConversionFood; - /** - * - * @type {string} - * @memberof OpenDataConversion - */ - base_amount: string; - /** - * - * @type {OpenDataConversionFoodPropertiesFoodUnit} - * @memberof OpenDataConversion - */ - base_unit: OpenDataConversionFoodPropertiesFoodUnit; - /** - * - * @type {string} - * @memberof OpenDataConversion - */ - converted_amount: string; - /** - * - * @type {OpenDataConversionFoodPropertiesFoodUnit} - * @memberof OpenDataConversion - */ - converted_unit: OpenDataConversionFoodPropertiesFoodUnit; - /** - * - * @type {string} - * @memberof OpenDataConversion - */ - source: string; - /** - * - * @type {string} - * @memberof OpenDataConversion - */ - comment?: string; - /** - * - * @type {string} - * @memberof OpenDataConversion - */ - created_by?: string; -} -/** - * - * @export - * @interface OpenDataConversionFood - */ -export interface OpenDataConversionFood { - /** - * - * @type {number} - * @memberof OpenDataConversionFood - */ - id?: number; - /** - * - * @type {OpenDataUnitVersion} - * @memberof OpenDataConversionFood - */ - version: OpenDataUnitVersion; - /** - * - * @type {string} - * @memberof OpenDataConversionFood - */ - slug: string; - /** - * - * @type {string} - * @memberof OpenDataConversionFood - */ - name: string; - /** - * - * @type {string} - * @memberof OpenDataConversionFood - */ - plural_name: string; - /** - * - * @type {OpenDataStoreCategory} - * @memberof OpenDataConversionFood - */ - store_category: OpenDataStoreCategory; - /** - * - * @type {OpenDataConversionFoodPreferredUnitMetric} - * @memberof OpenDataConversionFood - */ - preferred_unit_metric?: OpenDataConversionFoodPreferredUnitMetric | null; - /** - * - * @type {OpenDataConversionFoodPreferredUnitMetric} - * @memberof OpenDataConversionFood - */ - preferred_shopping_unit_metric?: OpenDataConversionFoodPreferredUnitMetric | null; - /** - * - * @type {OpenDataConversionFoodPreferredUnitMetric} - * @memberof OpenDataConversionFood - */ - preferred_unit_imperial?: OpenDataConversionFoodPreferredUnitMetric | null; - /** - * - * @type {OpenDataConversionFoodPreferredUnitMetric} - * @memberof OpenDataConversionFood - */ - preferred_shopping_unit_imperial?: OpenDataConversionFoodPreferredUnitMetric | null; - /** - * - * @type {Array} - * @memberof OpenDataConversionFood - */ - properties: Array | null; - /** - * - * @type {number} - * @memberof OpenDataConversionFood - */ - properties_food_amount?: number; - /** - * - * @type {OpenDataConversionFoodPropertiesFoodUnit} - * @memberof OpenDataConversionFood - */ - properties_food_unit: OpenDataConversionFoodPropertiesFoodUnit; - /** - * - * @type {string} - * @memberof OpenDataConversionFood - */ - properties_source?: string; - /** - * - * @type {string} - * @memberof OpenDataConversionFood - */ - fdc_id: string; - /** - * - * @type {string} - * @memberof OpenDataConversionFood - */ - comment?: string; - /** - * - * @type {string} - * @memberof OpenDataConversionFood - */ - created_by?: string; -} -/** - * - * @export - * @interface OpenDataConversionFoodPreferredUnitMetric - */ -export interface OpenDataConversionFoodPreferredUnitMetric { - /** - * - * @type {number} - * @memberof OpenDataConversionFoodPreferredUnitMetric - */ - id?: number; - /** - * - * @type {OpenDataUnitVersion} - * @memberof OpenDataConversionFoodPreferredUnitMetric - */ - version: OpenDataUnitVersion; - /** - * - * @type {string} - * @memberof OpenDataConversionFoodPreferredUnitMetric - */ - slug: string; - /** - * - * @type {string} - * @memberof OpenDataConversionFoodPreferredUnitMetric - */ - name: string; - /** - * - * @type {string} - * @memberof OpenDataConversionFoodPreferredUnitMetric - */ - plural_name?: string; - /** - * - * @type {string} - * @memberof OpenDataConversionFoodPreferredUnitMetric - */ - base_unit?: OpenDataConversionFoodPreferredUnitMetricBaseUnitEnum; - /** - * - * @type {string} - * @memberof OpenDataConversionFoodPreferredUnitMetric - */ - type: OpenDataConversionFoodPreferredUnitMetricTypeEnum; - /** - * - * @type {string} - * @memberof OpenDataConversionFoodPreferredUnitMetric - */ - comment?: string; - /** - * - * @type {string} - * @memberof OpenDataConversionFoodPreferredUnitMetric - */ - created_by?: string; -} - -/** - * @export - * @enum {string} - */ -export enum OpenDataConversionFoodPreferredUnitMetricBaseUnitEnum { - G = 'G', - Kg = 'KG', - Ml = 'ML', - L = 'L', - Ounce = 'OUNCE', - Pound = 'POUND', - FluidOunce = 'FLUID_OUNCE', - Tsp = 'TSP', - Tbsp = 'TBSP', - Cup = 'CUP', - Pint = 'PINT', - Quart = 'QUART', - Gallon = 'GALLON', - ImperialFluidOunce = 'IMPERIAL_FLUID_OUNCE', - ImperialPint = 'IMPERIAL_PINT', - ImperialQuart = 'IMPERIAL_QUART', - ImperialGallon = 'IMPERIAL_GALLON' -} -/** - * @export - * @enum {string} - */ -export enum OpenDataConversionFoodPreferredUnitMetricTypeEnum { - Weight = 'WEIGHT', - Volume = 'VOLUME', - Other = 'OTHER' -} - -/** - * - * @export - * @interface OpenDataConversionFoodProperties - */ -export interface OpenDataConversionFoodProperties { - /** - * - * @type {number} - * @memberof OpenDataConversionFoodProperties - */ - id?: number; - /** - * - * @type {OpenDataConversionFoodProperty} - * @memberof OpenDataConversionFoodProperties - */ - property: OpenDataConversionFoodProperty; - /** - * - * @type {string} - * @memberof OpenDataConversionFoodProperties - */ - property_amount: string; -} -/** - * - * @export - * @interface OpenDataConversionFoodPropertiesFoodUnit - */ -export interface OpenDataConversionFoodPropertiesFoodUnit { - /** - * - * @type {number} - * @memberof OpenDataConversionFoodPropertiesFoodUnit - */ - id?: number; - /** - * - * @type {OpenDataUnitVersion} - * @memberof OpenDataConversionFoodPropertiesFoodUnit - */ - version: OpenDataUnitVersion; - /** - * - * @type {string} - * @memberof OpenDataConversionFoodPropertiesFoodUnit - */ - slug: string; - /** - * - * @type {string} - * @memberof OpenDataConversionFoodPropertiesFoodUnit - */ - name: string; - /** - * - * @type {string} - * @memberof OpenDataConversionFoodPropertiesFoodUnit - */ - plural_name?: string; - /** - * - * @type {string} - * @memberof OpenDataConversionFoodPropertiesFoodUnit - */ - base_unit?: OpenDataConversionFoodPropertiesFoodUnitBaseUnitEnum; - /** - * - * @type {string} - * @memberof OpenDataConversionFoodPropertiesFoodUnit - */ - type: OpenDataConversionFoodPropertiesFoodUnitTypeEnum; - /** - * - * @type {string} - * @memberof OpenDataConversionFoodPropertiesFoodUnit - */ - comment?: string; - /** - * - * @type {string} - * @memberof OpenDataConversionFoodPropertiesFoodUnit - */ - created_by?: string; -} - -/** - * @export - * @enum {string} - */ -export enum OpenDataConversionFoodPropertiesFoodUnitBaseUnitEnum { - G = 'G', - Kg = 'KG', - Ml = 'ML', - L = 'L', - Ounce = 'OUNCE', - Pound = 'POUND', - FluidOunce = 'FLUID_OUNCE', - Tsp = 'TSP', - Tbsp = 'TBSP', - Cup = 'CUP', - Pint = 'PINT', - Quart = 'QUART', - Gallon = 'GALLON', - ImperialFluidOunce = 'IMPERIAL_FLUID_OUNCE', - ImperialPint = 'IMPERIAL_PINT', - ImperialQuart = 'IMPERIAL_QUART', - ImperialGallon = 'IMPERIAL_GALLON' -} -/** - * @export - * @enum {string} - */ -export enum OpenDataConversionFoodPropertiesFoodUnitTypeEnum { - Weight = 'WEIGHT', - Volume = 'VOLUME', - Other = 'OTHER' -} - -/** - * - * @export - * @interface OpenDataConversionFoodProperty - */ -export interface OpenDataConversionFoodProperty { - /** - * - * @type {number} - * @memberof OpenDataConversionFoodProperty - */ - id?: number; - /** - * - * @type {OpenDataUnitVersion} - * @memberof OpenDataConversionFoodProperty - */ - version: OpenDataUnitVersion; - /** - * - * @type {string} - * @memberof OpenDataConversionFoodProperty - */ - slug: string; - /** - * - * @type {string} - * @memberof OpenDataConversionFoodProperty - */ - name: string; - /** - * - * @type {string} - * @memberof OpenDataConversionFoodProperty - */ - unit?: string; - /** - * - * @type {number} - * @memberof OpenDataConversionFoodProperty + * @memberof PatchedFood */ fdc_id?: number | null; /** - * + * * @type {string} - * @memberof OpenDataConversionFoodProperty + * @memberof PatchedFood */ - comment?: string; + food_onhand?: string | null; /** - * - * @type {string} - * @memberof OpenDataConversionFoodProperty + * + * @type {SupermarketCategory} + * @memberof PatchedFood */ - created_by?: string; + supermarket_category?: SupermarketCategory | null; + /** + * + * @type {string} + * @memberof PatchedFood + */ + parent?: string; + /** + * + * @type {number} + * @memberof PatchedFood + */ + numchild?: number; + /** + * + * @type {Array} + * @memberof PatchedFood + */ + inherit_fields?: Array | null; + /** + * + * @type {string} + * @memberof PatchedFood + */ + full_name?: string; + /** + * + * @type {boolean} + * @memberof PatchedFood + */ + ignore_shopping?: boolean; + /** + * + * @type {Array} + * @memberof PatchedFood + */ + substitute?: Array | null; + /** + * + * @type {boolean} + * @memberof PatchedFood + */ + substitute_siblings?: boolean; + /** + * + * @type {boolean} + * @memberof PatchedFood + */ + substitute_children?: boolean; + /** + * + * @type {string} + * @memberof PatchedFood + */ + substitute_onhand?: string; + /** + * + * @type {Array} + * @memberof PatchedFood + */ + child_inherit_fields?: Array | null; + /** + * + * @type {string} + * @memberof PatchedFood + */ + open_data_slug?: string | null; } /** - * + * * @export - * @interface OpenDataFood + * @interface PatchedImportLog */ -export interface OpenDataFood { +export interface PatchedImportLog { /** - * + * * @type {number} - * @memberof OpenDataFood + * @memberof PatchedImportLog */ id?: number; /** - * - * @type {OpenDataUnitVersion} - * @memberof OpenDataFood - */ - version: OpenDataUnitVersion; - /** - * + * * @type {string} - * @memberof OpenDataFood + * @memberof PatchedImportLog */ - slug: string; + type?: string; /** - * + * * @type {string} - * @memberof OpenDataFood + * @memberof PatchedImportLog */ - name: string; + msg?: string; /** - * - * @type {string} - * @memberof OpenDataFood + * + * @type {boolean} + * @memberof PatchedImportLog */ - plural_name: string; + running?: boolean; /** - * - * @type {OpenDataStoreCategory} - * @memberof OpenDataFood + * + * @type {Keyword} + * @memberof PatchedImportLog */ - store_category: OpenDataStoreCategory; + keyword?: Keyword; /** - * - * @type {OpenDataConversionFoodPreferredUnitMetric} - * @memberof OpenDataFood - */ - preferred_unit_metric?: OpenDataConversionFoodPreferredUnitMetric | null; - /** - * - * @type {OpenDataConversionFoodPreferredUnitMetric} - * @memberof OpenDataFood - */ - preferred_shopping_unit_metric?: OpenDataConversionFoodPreferredUnitMetric | null; - /** - * - * @type {OpenDataConversionFoodPreferredUnitMetric} - * @memberof OpenDataFood - */ - preferred_unit_imperial?: OpenDataConversionFoodPreferredUnitMetric | null; - /** - * - * @type {OpenDataConversionFoodPreferredUnitMetric} - * @memberof OpenDataFood - */ - preferred_shopping_unit_imperial?: OpenDataConversionFoodPreferredUnitMetric | null; - /** - * - * @type {Array} - * @memberof OpenDataFood - */ - properties: Array | null; - /** - * + * * @type {number} - * @memberof OpenDataFood + * @memberof PatchedImportLog */ - properties_food_amount?: number; + total_recipes?: number; /** - * - * @type {OpenDataConversionFoodPropertiesFoodUnit} - * @memberof OpenDataFood + * + * @type {number} + * @memberof PatchedImportLog */ - properties_food_unit: OpenDataConversionFoodPropertiesFoodUnit; + imported_recipes?: number; /** - * + * + * @type {number} + * @memberof PatchedImportLog + */ + created_by?: number; + /** + * * @type {string} - * @memberof OpenDataFood + * @memberof PatchedImportLog */ - properties_source?: string; - /** - * - * @type {string} - * @memberof OpenDataFood - */ - fdc_id: string; - /** - * - * @type {string} - * @memberof OpenDataFood - */ - comment?: string; - /** - * - * @type {string} - * @memberof OpenDataFood - */ - created_by?: string; + created_at?: string; } /** - * + * Adds nested create feature * @export - * @interface OpenDataProperty + * @interface PatchedIngredient */ -export interface OpenDataProperty { +export interface PatchedIngredient { /** - * + * * @type {number} - * @memberof OpenDataProperty + * @memberof PatchedIngredient */ id?: number; /** - * - * @type {OpenDataUnitVersion} - * @memberof OpenDataProperty + * + * @type {Food} + * @memberof PatchedIngredient */ - version: OpenDataUnitVersion; + food?: Food | null; /** - * + * + * @type {Unit} + * @memberof PatchedIngredient + */ + unit?: Unit | null; + /** + * * @type {string} - * @memberof OpenDataProperty + * @memberof PatchedIngredient */ - slug: string; + amount?: string; /** - * + * * @type {string} - * @memberof OpenDataProperty + * @memberof PatchedIngredient */ - name: string; + conversions?: string; /** - * + * * @type {string} - * @memberof OpenDataProperty + * @memberof PatchedIngredient */ - unit?: string; + note?: string | null; /** - * + * * @type {number} - * @memberof OpenDataProperty + * @memberof PatchedIngredient */ - fdc_id?: number | null; + order?: number; /** - * - * @type {string} - * @memberof OpenDataProperty + * + * @type {boolean} + * @memberof PatchedIngredient */ - comment?: string; + is_header?: boolean; /** - * - * @type {string} - * @memberof OpenDataProperty + * + * @type {boolean} + * @memberof PatchedIngredient */ - created_by?: string; + no_amount?: boolean; + /** + * + * @type {string} + * @memberof PatchedIngredient + */ + original_text?: string | null; + /** + * + * @type {string} + * @memberof PatchedIngredient + */ + used_in_recipes?: string; + /** + * + * @type {boolean} + * @memberof PatchedIngredient + */ + always_use_plural_unit?: boolean; + /** + * + * @type {boolean} + * @memberof PatchedIngredient + */ + always_use_plural_food?: boolean; } /** - * + * Adds nested create feature * @export - * @interface OpenDataStore + * @interface PatchedInviteLink */ -export interface OpenDataStore { +export interface PatchedInviteLink { /** - * + * * @type {number} - * @memberof OpenDataStore + * @memberof PatchedInviteLink */ id?: number; /** - * - * @type {OpenDataUnitVersion} - * @memberof OpenDataStore - */ - version: OpenDataUnitVersion; - /** - * + * * @type {string} - * @memberof OpenDataStore + * @memberof PatchedInviteLink */ - slug: string; + uuid?: string; /** - * + * * @type {string} - * @memberof OpenDataStore + * @memberof PatchedInviteLink */ - name: string; + email?: string; /** - * - * @type {Array} - * @memberof OpenDataStore + * + * @type {Group} + * @memberof PatchedInviteLink */ - category_to_store: Array | null; + group?: Group; /** - * + * * @type {string} - * @memberof OpenDataStore + * @memberof PatchedInviteLink */ - comment?: string; + valid_until?: string; /** - * - * @type {string} - * @memberof OpenDataStore + * + * @type {number} + * @memberof PatchedInviteLink */ - created_by?: string; + used_by?: number | null; + /** + * + * @type {boolean} + * @memberof PatchedInviteLink + */ + reusable?: boolean; + /** + * + * @type {string} + * @memberof PatchedInviteLink + */ + internal_note?: string | null; + /** + * + * @type {number} + * @memberof PatchedInviteLink + */ + created_by?: number; + /** + * + * @type {string} + * @memberof PatchedInviteLink + */ + created_at?: string; } /** - * + * Moves `UniqueValidator`\'s from the validation stage to the save stage. It solves the problem with nested validation for unique fields on update. If you want more details, you can read related issues and articles: https://github.com/beda-software/drf-writable-nested/issues/1 http://www.django-rest-framework.org/api-guide/validators/#updating-nested-serializers Example of usage: ``` class Child(models.Model): field = models.CharField(unique=True) class Parent(models.Model): child = models.ForeignKey(\'Child\') class ChildSerializer(UniqueFieldsMixin, serializers.ModelSerializer): class Meta: model = Child class ParentSerializer(NestedUpdateMixin, serializers.ModelSerializer): child = ChildSerializer() class Meta: model = Parent ``` Note: `UniqueFieldsMixin` must be applied only on the serializer which has unique fields. Note: When you are using both mixins (`UniqueFieldsMixin` and `NestedCreateMixin` or `NestedUpdateMixin`) you should put `UniqueFieldsMixin` ahead. * @export - * @interface OpenDataStoreCategory + * @interface PatchedKeyword */ -export interface OpenDataStoreCategory { +export interface PatchedKeyword { /** - * + * * @type {number} - * @memberof OpenDataStoreCategory + * @memberof PatchedKeyword */ id?: number; /** - * - * @type {OpenDataUnitVersion} - * @memberof OpenDataStoreCategory - */ - version: OpenDataUnitVersion; - /** - * + * * @type {string} - * @memberof OpenDataStoreCategory + * @memberof PatchedKeyword */ - slug: string; + name?: string; /** - * + * * @type {string} - * @memberof OpenDataStoreCategory + * @memberof PatchedKeyword */ - name: string; + label?: string; /** - * + * * @type {string} - * @memberof OpenDataStoreCategory + * @memberof PatchedKeyword */ description?: string; /** - * + * * @type {string} - * @memberof OpenDataStoreCategory + * @memberof PatchedKeyword */ - comment?: string; + parent?: string; /** - * - * @type {string} - * @memberof OpenDataStoreCategory + * + * @type {number} + * @memberof PatchedKeyword */ - created_by?: string; + numchild?: number; + /** + * + * @type {string} + * @memberof PatchedKeyword + */ + created_at?: string; + /** + * + * @type {string} + * @memberof PatchedKeyword + */ + updated_at?: string; + /** + * + * @type {string} + * @memberof PatchedKeyword + */ + full_name?: string; } /** - * + * Adds nested create feature * @export - * @interface OpenDataStoreCategoryToStore + * @interface PatchedMealPlan */ -export interface OpenDataStoreCategoryToStore { +export interface PatchedMealPlan { /** - * + * * @type {number} - * @memberof OpenDataStoreCategoryToStore + * @memberof PatchedMealPlan */ id?: number; /** - * - * @type {OpenDataStoreCategory} - * @memberof OpenDataStoreCategoryToStore + * + * @type {string} + * @memberof PatchedMealPlan */ - category: OpenDataStoreCategory; + title?: string; /** - * - * @type {number} - * @memberof OpenDataStoreCategoryToStore + * + * @type {RecipeOverview} + * @memberof PatchedMealPlan */ - store: number; + recipe?: RecipeOverview | null; /** - * + * + * @type {string} + * @memberof PatchedMealPlan + */ + servings?: string; + /** + * + * @type {string} + * @memberof PatchedMealPlan + */ + note?: string; + /** + * + * @type {string} + * @memberof PatchedMealPlan + */ + note_markdown?: string; + /** + * + * @type {string} + * @memberof PatchedMealPlan + */ + from_date?: string; + /** + * + * @type {string} + * @memberof PatchedMealPlan + */ + to_date?: string; + /** + * + * @type {MealType} + * @memberof PatchedMealPlan + */ + meal_type?: MealType; + /** + * * @type {number} - * @memberof OpenDataStoreCategoryToStore + * @memberof PatchedMealPlan + */ + created_by?: number; + /** + * + * @type {Array} + * @memberof PatchedMealPlan + */ + shared?: Array | null; + /** + * + * @type {string} + * @memberof PatchedMealPlan + */ + recipe_name?: string; + /** + * + * @type {string} + * @memberof PatchedMealPlan + */ + meal_type_name?: string; + /** + * + * @type {string} + * @memberof PatchedMealPlan + */ + shopping?: string; +} +/** + * Adds nested create feature + * @export + * @interface PatchedMealType + */ +export interface PatchedMealType { + /** + * + * @type {number} + * @memberof PatchedMealType + */ + id?: number; + /** + * + * @type {string} + * @memberof PatchedMealType + */ + name?: string; + /** + * + * @type {number} + * @memberof PatchedMealType + */ + order?: number; + /** + * + * @type {string} + * @memberof PatchedMealType + */ + color?: string | null; + /** + * + * @type {boolean} + * @memberof PatchedMealType + */ + _default?: boolean; + /** + * + * @type {number} + * @memberof PatchedMealType + */ + created_by?: number; +} +/** + * Moves `UniqueValidator`\'s from the validation stage to the save stage. It solves the problem with nested validation for unique fields on update. If you want more details, you can read related issues and articles: https://github.com/beda-software/drf-writable-nested/issues/1 http://www.django-rest-framework.org/api-guide/validators/#updating-nested-serializers Example of usage: ``` class Child(models.Model): field = models.CharField(unique=True) class Parent(models.Model): child = models.ForeignKey(\'Child\') class ChildSerializer(UniqueFieldsMixin, serializers.ModelSerializer): class Meta: model = Child class ParentSerializer(NestedUpdateMixin, serializers.ModelSerializer): child = ChildSerializer() class Meta: model = Parent ``` Note: `UniqueFieldsMixin` must be applied only on the serializer which has unique fields. Note: When you are using both mixins (`UniqueFieldsMixin` and `NestedCreateMixin` or `NestedUpdateMixin`) you should put `UniqueFieldsMixin` ahead. + * @export + * @interface PatchedProperty + */ +export interface PatchedProperty { + /** + * + * @type {number} + * @memberof PatchedProperty + */ + id?: number; + /** + * + * @type {string} + * @memberof PatchedProperty + */ + property_amount?: string | null; + /** + * + * @type {PropertyType} + * @memberof PatchedProperty + */ + property_type?: PropertyType; +} +/** + * Adds nested create feature + * @export + * @interface PatchedPropertyType + */ +export interface PatchedPropertyType { + /** + * + * @type {number} + * @memberof PatchedPropertyType + */ + id?: number; + /** + * + * @type {string} + * @memberof PatchedPropertyType + */ + name?: string; + /** + * + * @type {string} + * @memberof PatchedPropertyType + */ + unit?: string | null; + /** + * + * @type {string} + * @memberof PatchedPropertyType + */ + description?: string | null; + /** + * + * @type {number} + * @memberof PatchedPropertyType + */ + order?: number; + /** + * + * @type {string} + * @memberof PatchedPropertyType + */ + open_data_slug?: string | null; + /** + * + * @type {number} + * @memberof PatchedPropertyType + */ + fdc_id?: number | null; +} +/** + * Adds nested create feature + * @export + * @interface PatchedRecipe + */ +export interface PatchedRecipe { + /** + * + * @type {number} + * @memberof PatchedRecipe + */ + id?: number; + /** + * + * @type {string} + * @memberof PatchedRecipe + */ + name?: string; + /** + * + * @type {string} + * @memberof PatchedRecipe + */ + description?: string | null; + /** + * + * @type {string} + * @memberof PatchedRecipe + */ + image?: string | null; + /** + * + * @type {Array} + * @memberof PatchedRecipe + */ + keywords?: Array; + /** + * + * @type {Array} + * @memberof PatchedRecipe + */ + steps?: Array; + /** + * + * @type {number} + * @memberof PatchedRecipe + */ + working_time?: number; + /** + * + * @type {number} + * @memberof PatchedRecipe + */ + waiting_time?: number; + /** + * + * @type {number} + * @memberof PatchedRecipe + */ + created_by?: number; + /** + * + * @type {string} + * @memberof PatchedRecipe + */ + created_at?: string; + /** + * + * @type {string} + * @memberof PatchedRecipe + */ + updated_at?: string; + /** + * + * @type {string} + * @memberof PatchedRecipe + */ + source_url?: string | null; + /** + * + * @type {boolean} + * @memberof PatchedRecipe + */ + internal?: boolean; + /** + * + * @type {boolean} + * @memberof PatchedRecipe + */ + show_ingredient_overview?: boolean; + /** + * + * @type {NutritionInformation} + * @memberof PatchedRecipe + */ + nutrition?: NutritionInformation | null; + /** + * + * @type {Array} + * @memberof PatchedRecipe + */ + properties?: Array; + /** + * + * @type {string} + * @memberof PatchedRecipe + */ + food_properties?: string; + /** + * + * @type {number} + * @memberof PatchedRecipe + */ + servings?: number; + /** + * + * @type {string} + * @memberof PatchedRecipe + */ + file_path?: string; + /** + * + * @type {string} + * @memberof PatchedRecipe + */ + servings_text?: string; + /** + * + * @type {string} + * @memberof PatchedRecipe + */ + rating?: string | null; + /** + * + * @type {string} + * @memberof PatchedRecipe + */ + last_cooked?: string | null; + /** + * + * @type {boolean} + * @memberof PatchedRecipe + */ + _private?: boolean; + /** + * + * @type {Array} + * @memberof PatchedRecipe + */ + shared?: Array; +} +/** + * Adds nested create feature + * @export + * @interface PatchedRecipeBook + */ +export interface PatchedRecipeBook { + /** + * + * @type {number} + * @memberof PatchedRecipeBook + */ + id?: number; + /** + * + * @type {string} + * @memberof PatchedRecipeBook + */ + name?: string; + /** + * + * @type {string} + * @memberof PatchedRecipeBook + */ + description?: string; + /** + * + * @type {Array} + * @memberof PatchedRecipeBook + */ + shared?: Array; + /** + * + * @type {number} + * @memberof PatchedRecipeBook + */ + created_by?: number; + /** + * + * @type {CustomFilter} + * @memberof PatchedRecipeBook + */ + filter?: CustomFilter | null; + /** + * + * @type {number} + * @memberof PatchedRecipeBook */ order?: number; } /** - * + * * @export - * @interface OpenDataUnit + * @interface PatchedRecipeBookEntry */ -export interface OpenDataUnit { +export interface PatchedRecipeBookEntry { /** - * + * * @type {number} - * @memberof OpenDataUnit + * @memberof PatchedRecipeBookEntry */ id?: number; /** - * - * @type {OpenDataUnitVersion} - * @memberof OpenDataUnit - */ - version: OpenDataUnitVersion; - /** - * - * @type {string} - * @memberof OpenDataUnit - */ - slug: string; - /** - * - * @type {string} - * @memberof OpenDataUnit - */ - name: string; - /** - * - * @type {string} - * @memberof OpenDataUnit - */ - plural_name?: string; - /** - * - * @type {string} - * @memberof OpenDataUnit - */ - base_unit?: OpenDataUnitBaseUnitEnum; - /** - * - * @type {string} - * @memberof OpenDataUnit - */ - type: OpenDataUnitTypeEnum; - /** - * - * @type {string} - * @memberof OpenDataUnit - */ - comment?: string; - /** - * - * @type {string} - * @memberof OpenDataUnit - */ - created_by?: string; -} - -/** - * @export - * @enum {string} - */ -export enum OpenDataUnitBaseUnitEnum { - G = 'G', - Kg = 'KG', - Ml = 'ML', - L = 'L', - Ounce = 'OUNCE', - Pound = 'POUND', - FluidOunce = 'FLUID_OUNCE', - Tsp = 'TSP', - Tbsp = 'TBSP', - Cup = 'CUP', - Pint = 'PINT', - Quart = 'QUART', - Gallon = 'GALLON', - ImperialFluidOunce = 'IMPERIAL_FLUID_OUNCE', - ImperialPint = 'IMPERIAL_PINT', - ImperialQuart = 'IMPERIAL_QUART', - ImperialGallon = 'IMPERIAL_GALLON' -} -/** - * @export - * @enum {string} - */ -export enum OpenDataUnitTypeEnum { - Weight = 'WEIGHT', - Volume = 'VOLUME', - Other = 'OTHER' -} - -/** - * - * @export - * @interface OpenDataUnitVersion - */ -export interface OpenDataUnitVersion { - /** - * + * * @type {number} - * @memberof OpenDataUnitVersion + * @memberof PatchedRecipeBookEntry + */ + book?: number; + /** + * + * @type {string} + * @memberof PatchedRecipeBookEntry + */ + book_content?: string; + /** + * + * @type {number} + * @memberof PatchedRecipeBookEntry + */ + recipe?: number; + /** + * + * @type {string} + * @memberof PatchedRecipeBookEntry + */ + recipe_content?: string; +} +/** + * Adds nested create feature + * @export + * @interface PatchedShoppingListEntry + */ +export interface PatchedShoppingListEntry { + /** + * + * @type {number} + * @memberof PatchedShoppingListEntry */ id?: number; /** - * - * @type {string} - * @memberof OpenDataUnitVersion + * + * @type {number} + * @memberof PatchedShoppingListEntry */ - name: string; + list_recipe?: number | null; /** - * - * @type {string} - * @memberof OpenDataUnitVersion + * + * @type {Food} + * @memberof PatchedShoppingListEntry */ - code: string; + food?: Food | null; /** - * - * @type {string} - * @memberof OpenDataUnitVersion + * + * @type {Unit} + * @memberof PatchedShoppingListEntry */ - comment?: string; + unit?: Unit | null; + /** + * + * @type {string} + * @memberof PatchedShoppingListEntry + */ + amount?: string; + /** + * + * @type {number} + * @memberof PatchedShoppingListEntry + */ + order?: number; + /** + * + * @type {boolean} + * @memberof PatchedShoppingListEntry + */ + checked?: boolean; + /** + * + * @type {ShoppingListRecipe} + * @memberof PatchedShoppingListEntry + */ + recipe_mealplan?: ShoppingListRecipe; + /** + * + * @type {User} + * @memberof PatchedShoppingListEntry + */ + created_by?: User; + /** + * + * @type {string} + * @memberof PatchedShoppingListEntry + */ + created_at?: string; + /** + * + * @type {string} + * @memberof PatchedShoppingListEntry + */ + updated_at?: string; + /** + * + * @type {string} + * @memberof PatchedShoppingListEntry + */ + completed_at?: string | null; + /** + * + * @type {string} + * @memberof PatchedShoppingListEntry + */ + delay_until?: string | null; } /** - * + * * @export - * @interface OpenDataVersion + * @interface PatchedShoppingListRecipe */ -export interface OpenDataVersion { +export interface PatchedShoppingListRecipe { /** - * + * * @type {number} - * @memberof OpenDataVersion + * @memberof PatchedShoppingListRecipe */ id?: number; /** - * + * * @type {string} - * @memberof OpenDataVersion + * @memberof PatchedShoppingListRecipe */ - name: string; + recipe_name?: string; /** - * + * * @type {string} - * @memberof OpenDataVersion + * @memberof PatchedShoppingListRecipe */ - code: string; + name?: string; /** - * - * @type {string} - * @memberof OpenDataVersion + * + * @type {number} + * @memberof PatchedShoppingListRecipe */ - comment?: string; + recipe?: number | null; + /** + * + * @type {number} + * @memberof PatchedShoppingListRecipe + */ + mealplan?: number | null; + /** + * + * @type {string} + * @memberof PatchedShoppingListRecipe + */ + servings?: string; + /** + * + * @type {string} + * @memberof PatchedShoppingListRecipe + */ + mealplan_note?: string; + /** + * + * @type {string} + * @memberof PatchedShoppingListRecipe + */ + mealplan_from_date?: string; + /** + * + * @type {string} + * @memberof PatchedShoppingListRecipe + */ + mealplan_type?: string; } /** - * + * Adds nested create feature + * @export + * @interface PatchedSpace + */ +export interface PatchedSpace { + /** + * + * @type {number} + * @memberof PatchedSpace + */ + id?: number; + /** + * + * @type {string} + * @memberof PatchedSpace + */ + name?: string; + /** + * + * @type {number} + * @memberof PatchedSpace + */ + created_by?: number | null; + /** + * + * @type {string} + * @memberof PatchedSpace + */ + created_at?: string; + /** + * + * @type {string} + * @memberof PatchedSpace + */ + message?: string; + /** + * + * @type {number} + * @memberof PatchedSpace + */ + max_recipes?: number; + /** + * Maximum file storage for space in MB. 0 for unlimited, -1 to disable file upload. + * @type {number} + * @memberof PatchedSpace + */ + max_file_storage_mb?: number; + /** + * + * @type {number} + * @memberof PatchedSpace + */ + max_users?: number; + /** + * + * @type {boolean} + * @memberof PatchedSpace + */ + allow_sharing?: boolean; + /** + * + * @type {boolean} + * @memberof PatchedSpace + */ + demo?: boolean; + /** + * + * @type {Array} + * @memberof PatchedSpace + */ + food_inherit?: Array; + /** + * + * @type {string} + * @memberof PatchedSpace + */ + user_count?: string; + /** + * + * @type {string} + * @memberof PatchedSpace + */ + recipe_count?: string; + /** + * + * @type {string} + * @memberof PatchedSpace + */ + file_size_mb?: string; + /** + * + * @type {UserFileView} + * @memberof PatchedSpace + */ + image?: UserFileView | null; + /** + * + * @type {UserFileView} + * @memberof PatchedSpace + */ + nav_logo?: UserFileView | null; + /** + * + * @type {SpaceThemeEnum} + * @memberof PatchedSpace + */ + space_theme?: SpaceThemeEnum; + /** + * + * @type {UserFileView} + * @memberof PatchedSpace + */ + custom_space_theme?: UserFileView | null; + /** + * + * @type {string} + * @memberof PatchedSpace + */ + nav_bg_color?: string; + /** + * + * @type {SpaceNavTextColorEnum} + * @memberof PatchedSpace + */ + nav_text_color?: SpaceNavTextColorEnum; + /** + * + * @type {UserFileView} + * @memberof PatchedSpace + */ + logo_color_32?: UserFileView | null; + /** + * + * @type {UserFileView} + * @memberof PatchedSpace + */ + logo_color_128?: UserFileView | null; + /** + * + * @type {UserFileView} + * @memberof PatchedSpace + */ + logo_color_144?: UserFileView | null; + /** + * + * @type {UserFileView} + * @memberof PatchedSpace + */ + logo_color_180?: UserFileView | null; + /** + * + * @type {UserFileView} + * @memberof PatchedSpace + */ + logo_color_192?: UserFileView | null; + /** + * + * @type {UserFileView} + * @memberof PatchedSpace + */ + logo_color_512?: UserFileView | null; + /** + * + * @type {UserFileView} + * @memberof PatchedSpace + */ + logo_color_svg?: UserFileView | null; +} +/** + * Adds nested create feature + * @export + * @interface PatchedStep + */ +export interface PatchedStep { + /** + * + * @type {number} + * @memberof PatchedStep + */ + id?: number; + /** + * + * @type {string} + * @memberof PatchedStep + */ + name?: string; + /** + * + * @type {string} + * @memberof PatchedStep + */ + instruction?: string; + /** + * + * @type {Array} + * @memberof PatchedStep + */ + ingredients?: Array; + /** + * + * @type {string} + * @memberof PatchedStep + */ + instructions_markdown?: string; + /** + * + * @type {number} + * @memberof PatchedStep + */ + time?: number; + /** + * + * @type {number} + * @memberof PatchedStep + */ + order?: number; + /** + * + * @type {boolean} + * @memberof PatchedStep + */ + show_as_header?: boolean; + /** + * + * @type {UserFileView} + * @memberof PatchedStep + */ + file?: UserFileView | null; + /** + * + * @type {number} + * @memberof PatchedStep + */ + step_recipe?: number | null; + /** + * + * @type {string} + * @memberof PatchedStep + */ + step_recipe_data?: string; + /** + * + * @type {string} + * @memberof PatchedStep + */ + numrecipe?: string; + /** + * + * @type {boolean} + * @memberof PatchedStep + */ + show_ingredients_table?: boolean; +} +/** + * + * @export + * @interface PatchedStorage + */ +export interface PatchedStorage { + /** + * + * @type {number} + * @memberof PatchedStorage + */ + id?: number; + /** + * + * @type {string} + * @memberof PatchedStorage + */ + name?: string; + /** + * + * @type {MethodEnum} + * @memberof PatchedStorage + */ + method?: MethodEnum; + /** + * + * @type {string} + * @memberof PatchedStorage + */ + username?: string | null; + /** + * + * @type {string} + * @memberof PatchedStorage + */ + password?: string | null; + /** + * + * @type {string} + * @memberof PatchedStorage + */ + token?: string | null; + /** + * + * @type {number} + * @memberof PatchedStorage + */ + created_by?: number; +} +/** + * Moves `UniqueValidator`\'s from the validation stage to the save stage. It solves the problem with nested validation for unique fields on update. If you want more details, you can read related issues and articles: https://github.com/beda-software/drf-writable-nested/issues/1 http://www.django-rest-framework.org/api-guide/validators/#updating-nested-serializers Example of usage: ``` class Child(models.Model): field = models.CharField(unique=True) class Parent(models.Model): child = models.ForeignKey(\'Child\') class ChildSerializer(UniqueFieldsMixin, serializers.ModelSerializer): class Meta: model = Child class ParentSerializer(NestedUpdateMixin, serializers.ModelSerializer): child = ChildSerializer() class Meta: model = Parent ``` Note: `UniqueFieldsMixin` must be applied only on the serializer which has unique fields. Note: When you are using both mixins (`UniqueFieldsMixin` and `NestedCreateMixin` or `NestedUpdateMixin`) you should put `UniqueFieldsMixin` ahead. + * @export + * @interface PatchedSupermarket + */ +export interface PatchedSupermarket { + /** + * + * @type {number} + * @memberof PatchedSupermarket + */ + id?: number; + /** + * + * @type {string} + * @memberof PatchedSupermarket + */ + name?: string; + /** + * + * @type {string} + * @memberof PatchedSupermarket + */ + description?: string | null; + /** + * + * @type {Array} + * @memberof PatchedSupermarket + */ + category_to_supermarket?: Array; + /** + * + * @type {string} + * @memberof PatchedSupermarket + */ + open_data_slug?: string | null; +} +/** + * Moves `UniqueValidator`\'s from the validation stage to the save stage. It solves the problem with nested validation for unique fields on update. If you want more details, you can read related issues and articles: https://github.com/beda-software/drf-writable-nested/issues/1 http://www.django-rest-framework.org/api-guide/validators/#updating-nested-serializers Example of usage: ``` class Child(models.Model): field = models.CharField(unique=True) class Parent(models.Model): child = models.ForeignKey(\'Child\') class ChildSerializer(UniqueFieldsMixin, serializers.ModelSerializer): class Meta: model = Child class ParentSerializer(NestedUpdateMixin, serializers.ModelSerializer): child = ChildSerializer() class Meta: model = Parent ``` Note: `UniqueFieldsMixin` must be applied only on the serializer which has unique fields. Note: When you are using both mixins (`UniqueFieldsMixin` and `NestedCreateMixin` or `NestedUpdateMixin`) you should put `UniqueFieldsMixin` ahead. + * @export + * @interface PatchedSupermarketCategory + */ +export interface PatchedSupermarketCategory { + /** + * + * @type {number} + * @memberof PatchedSupermarketCategory + */ + id?: number; + /** + * + * @type {string} + * @memberof PatchedSupermarketCategory + */ + name?: string; + /** + * + * @type {string} + * @memberof PatchedSupermarketCategory + */ + description?: string | null; +} +/** + * Adds nested create feature + * @export + * @interface PatchedSupermarketCategoryRelation + */ +export interface PatchedSupermarketCategoryRelation { + /** + * + * @type {number} + * @memberof PatchedSupermarketCategoryRelation + */ + id?: number; + /** + * + * @type {SupermarketCategory} + * @memberof PatchedSupermarketCategoryRelation + */ + category?: SupermarketCategory; + /** + * + * @type {number} + * @memberof PatchedSupermarketCategoryRelation + */ + supermarket?: number; + /** + * + * @type {number} + * @memberof PatchedSupermarketCategoryRelation + */ + order?: number; +} +/** + * + * @export + * @interface PatchedSync + */ +export interface PatchedSync { + /** + * + * @type {number} + * @memberof PatchedSync + */ + id?: number; + /** + * + * @type {number} + * @memberof PatchedSync + */ + storage?: number; + /** + * + * @type {string} + * @memberof PatchedSync + */ + path?: string; + /** + * + * @type {boolean} + * @memberof PatchedSync + */ + active?: boolean; + /** + * + * @type {string} + * @memberof PatchedSync + */ + last_checked?: string | null; + /** + * + * @type {string} + * @memberof PatchedSync + */ + created_at?: string; + /** + * + * @type {string} + * @memberof PatchedSync + */ + updated_at?: string; +} +/** + * Moves `UniqueValidator`\'s from the validation stage to the save stage. It solves the problem with nested validation for unique fields on update. If you want more details, you can read related issues and articles: https://github.com/beda-software/drf-writable-nested/issues/1 http://www.django-rest-framework.org/api-guide/validators/#updating-nested-serializers Example of usage: ``` class Child(models.Model): field = models.CharField(unique=True) class Parent(models.Model): child = models.ForeignKey(\'Child\') class ChildSerializer(UniqueFieldsMixin, serializers.ModelSerializer): class Meta: model = Child class ParentSerializer(NestedUpdateMixin, serializers.ModelSerializer): child = ChildSerializer() class Meta: model = Parent ``` Note: `UniqueFieldsMixin` must be applied only on the serializer which has unique fields. Note: When you are using both mixins (`UniqueFieldsMixin` and `NestedCreateMixin` or `NestedUpdateMixin`) you should put `UniqueFieldsMixin` ahead. + * @export + * @interface PatchedUnit + */ +export interface PatchedUnit { + /** + * + * @type {number} + * @memberof PatchedUnit + */ + id?: number; + /** + * + * @type {string} + * @memberof PatchedUnit + */ + name?: string; + /** + * + * @type {string} + * @memberof PatchedUnit + */ + plural_name?: string | null; + /** + * + * @type {string} + * @memberof PatchedUnit + */ + description?: string | null; + /** + * + * @type {string} + * @memberof PatchedUnit + */ + base_unit?: string | null; + /** + * + * @type {string} + * @memberof PatchedUnit + */ + open_data_slug?: string | null; +} +/** + * Adds nested create feature + * @export + * @interface PatchedUnitConversion + */ +export interface PatchedUnitConversion { + /** + * + * @type {number} + * @memberof PatchedUnitConversion + */ + id?: number; + /** + * + * @type {string} + * @memberof PatchedUnitConversion + */ + name?: string; + /** + * + * @type {string} + * @memberof PatchedUnitConversion + */ + base_amount?: string; + /** + * + * @type {Unit} + * @memberof PatchedUnitConversion + */ + base_unit?: Unit; + /** + * + * @type {string} + * @memberof PatchedUnitConversion + */ + converted_amount?: string; + /** + * + * @type {Unit} + * @memberof PatchedUnitConversion + */ + converted_unit?: Unit; + /** + * + * @type {Food} + * @memberof PatchedUnitConversion + */ + food?: Food | null; + /** + * + * @type {string} + * @memberof PatchedUnitConversion + */ + open_data_slug?: string | null; +} +/** + * Adds nested create feature + * @export + * @interface PatchedUser + */ +export interface PatchedUser { + /** + * + * @type {number} + * @memberof PatchedUser + */ + id?: number; + /** + * Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. + * @type {string} + * @memberof PatchedUser + */ + username?: string; + /** + * + * @type {string} + * @memberof PatchedUser + */ + first_name?: string; + /** + * + * @type {string} + * @memberof PatchedUser + */ + last_name?: string; + /** + * + * @type {string} + * @memberof PatchedUser + */ + display_name?: string; +} +/** + * Adds nested create feature + * @export + * @interface PatchedUserPreference + */ +export interface PatchedUserPreference { + /** + * + * @type {number} + * @memberof PatchedUserPreference + */ + user?: number; + /** + * + * @type {UserFileView} + * @memberof PatchedUserPreference + */ + image?: UserFileView | null; + /** + * + * @type {ThemeEnum} + * @memberof PatchedUserPreference + */ + theme?: ThemeEnum; + /** + * + * @type {string} + * @memberof PatchedUserPreference + */ + nav_bg_color?: string; + /** + * + * @type {UserPreferenceNavTextColorEnum} + * @memberof PatchedUserPreference + */ + nav_text_color?: UserPreferenceNavTextColorEnum; + /** + * + * @type {boolean} + * @memberof PatchedUserPreference + */ + nav_show_logo?: boolean; + /** + * + * @type {string} + * @memberof PatchedUserPreference + */ + default_unit?: string; + /** + * + * @type {DefaultPageEnum} + * @memberof PatchedUserPreference + */ + default_page?: DefaultPageEnum; + /** + * + * @type {boolean} + * @memberof PatchedUserPreference + */ + use_fractions?: boolean; + /** + * + * @type {boolean} + * @memberof PatchedUserPreference + */ + use_kj?: boolean; + /** + * + * @type {Array} + * @memberof PatchedUserPreference + */ + plan_share?: Array | null; + /** + * + * @type {boolean} + * @memberof PatchedUserPreference + */ + nav_sticky?: boolean; + /** + * + * @type {number} + * @memberof PatchedUserPreference + */ + ingredient_decimals?: number; + /** + * + * @type {boolean} + * @memberof PatchedUserPreference + */ + comments?: boolean; + /** + * + * @type {number} + * @memberof PatchedUserPreference + */ + shopping_auto_sync?: number; + /** + * + * @type {boolean} + * @memberof PatchedUserPreference + */ + mealplan_autoadd_shopping?: boolean; + /** + * + * @type {string} + * @memberof PatchedUserPreference + */ + food_inherit_default?: string; + /** + * + * @type {number} + * @memberof PatchedUserPreference + */ + default_delay?: number; + /** + * + * @type {boolean} + * @memberof PatchedUserPreference + */ + mealplan_autoinclude_related?: boolean; + /** + * + * @type {boolean} + * @memberof PatchedUserPreference + */ + mealplan_autoexclude_onhand?: boolean; + /** + * + * @type {Array} + * @memberof PatchedUserPreference + */ + shopping_share?: Array | null; + /** + * + * @type {number} + * @memberof PatchedUserPreference + */ + shopping_recent_days?: number; + /** + * + * @type {string} + * @memberof PatchedUserPreference + */ + csv_delim?: string; + /** + * + * @type {string} + * @memberof PatchedUserPreference + */ + csv_prefix?: string; + /** + * + * @type {boolean} + * @memberof PatchedUserPreference + */ + filter_to_supermarket?: boolean; + /** + * + * @type {boolean} + * @memberof PatchedUserPreference + */ + shopping_add_onhand?: boolean; + /** + * + * @type {boolean} + * @memberof PatchedUserPreference + */ + left_handed?: boolean; + /** + * + * @type {boolean} + * @memberof PatchedUserPreference + */ + show_step_ingredients?: boolean; + /** + * + * @type {string} + * @memberof PatchedUserPreference + */ + food_children_exist?: string; +} +/** + * Adds nested create feature + * @export + * @interface PatchedUserSpace + */ +export interface PatchedUserSpace { + /** + * + * @type {number} + * @memberof PatchedUserSpace + */ + id?: number; + /** + * + * @type {User} + * @memberof PatchedUserSpace + */ + user?: User; + /** + * + * @type {number} + * @memberof PatchedUserSpace + */ + space?: number; + /** + * + * @type {Array} + * @memberof PatchedUserSpace + */ + groups?: Array; + /** + * + * @type {boolean} + * @memberof PatchedUserSpace + */ + active?: boolean; + /** + * + * @type {string} + * @memberof PatchedUserSpace + */ + internal_note?: string | null; + /** + * + * @type {number} + * @memberof PatchedUserSpace + */ + invite_link?: number | null; + /** + * + * @type {string} + * @memberof PatchedUserSpace + */ + created_at?: string; + /** + * + * @type {string} + * @memberof PatchedUserSpace + */ + updated_at?: string; +} +/** + * + * @export + * @interface PatchedViewLog + */ +export interface PatchedViewLog { + /** + * + * @type {number} + * @memberof PatchedViewLog + */ + id?: number; + /** + * + * @type {number} + * @memberof PatchedViewLog + */ + recipe?: number; + /** + * + * @type {number} + * @memberof PatchedViewLog + */ + created_by?: number; + /** + * + * @type {string} + * @memberof PatchedViewLog + */ + created_at?: string; +} +/** + * Moves `UniqueValidator`\'s from the validation stage to the save stage. It solves the problem with nested validation for unique fields on update. If you want more details, you can read related issues and articles: https://github.com/beda-software/drf-writable-nested/issues/1 http://www.django-rest-framework.org/api-guide/validators/#updating-nested-serializers Example of usage: ``` class Child(models.Model): field = models.CharField(unique=True) class Parent(models.Model): child = models.ForeignKey(\'Child\') class ChildSerializer(UniqueFieldsMixin, serializers.ModelSerializer): class Meta: model = Child class ParentSerializer(NestedUpdateMixin, serializers.ModelSerializer): child = ChildSerializer() class Meta: model = Parent ``` Note: `UniqueFieldsMixin` must be applied only on the serializer which has unique fields. Note: When you are using both mixins (`UniqueFieldsMixin` and `NestedCreateMixin` or `NestedUpdateMixin`) you should put `UniqueFieldsMixin` ahead. * @export * @interface Property */ export interface Property { /** - * + * * @type {number} * @memberof Property */ - id?: number; + id: number; /** - * + * * @type {string} * @memberof Property */ property_amount: string | null; /** - * - * @type {FoodPropertyType} + * + * @type {PropertyType} * @memberof Property */ - property_type: FoodPropertyType; + property_type: PropertyType; } /** - * + * Adds nested create feature * @export * @interface PropertyType */ export interface PropertyType { /** - * + * * @type {number} * @memberof PropertyType */ id?: number; /** - * + * * @type {string} * @memberof PropertyType */ name: string; /** - * + * * @type {string} * @memberof PropertyType */ unit?: string | null; /** - * + * * @type {string} * @memberof PropertyType */ description?: string | null; /** - * + * * @type {number} * @memberof PropertyType */ order?: number; /** - * + * * @type {string} * @memberof PropertyType */ open_data_slug?: string | null; /** - * + * * @type {number} * @memberof PropertyType */ fdc_id?: number | null; } /** - * + * Adds nested create feature * @export * @interface Recipe */ export interface Recipe { /** - * + * * @type {number} * @memberof Recipe */ - id?: number; + id: number; /** - * + * * @type {string} * @memberof Recipe */ name: string; /** - * + * * @type {string} * @memberof Recipe */ description?: string | null; /** - * - * @type {any} + * + * @type {string} * @memberof Recipe */ - image?: any | null; + image: string | null; /** - * - * @type {Array} + * + * @type {Array} * @memberof Recipe */ - keywords?: Array; + keywords?: Array; /** - * - * @type {Array} + * + * @type {Array} * @memberof Recipe */ - steps: Array; + steps: Array; /** - * + * * @type {number} * @memberof Recipe */ working_time?: number; /** - * + * * @type {number} * @memberof Recipe */ waiting_time?: number; /** - * + * + * @type {number} + * @memberof Recipe + */ + created_by: number; + /** + * * @type {string} * @memberof Recipe */ - created_by?: string; + created_at: string; /** - * + * * @type {string} * @memberof Recipe */ - created_at?: string; + updated_at: string; /** - * - * @type {string} - * @memberof Recipe - */ - updated_at?: string; - /** - * + * * @type {string} * @memberof Recipe */ source_url?: string | null; /** - * + * * @type {boolean} * @memberof Recipe */ internal?: boolean; /** - * + * * @type {boolean} * @memberof Recipe */ show_ingredient_overview?: boolean; /** - * - * @type {RecipeNutrition} + * + * @type {NutritionInformation} * @memberof Recipe */ - nutrition?: RecipeNutrition | null; + nutrition?: NutritionInformation | null; /** - * - * @type {Array} + * + * @type {Array} * @memberof Recipe */ - properties?: Array; + properties?: Array; /** - * + * * @type {string} * @memberof Recipe */ - food_properties?: string; + food_properties: string; /** - * + * * @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 | null; + rating: string | null; /** - * + * * @type {string} * @memberof Recipe */ - last_cooked?: string | null; + last_cooked: string | null; /** - * + * * @type {boolean} * @memberof Recipe */ _private?: boolean; /** - * - * @type {Array} + * + * @type {Array} * @memberof Recipe */ - shared?: Array; + shared?: Array; } /** - * + * Adds nested create feature * @export * @interface RecipeBook */ export interface RecipeBook { /** - * + * * @type {number} * @memberof RecipeBook */ - id?: number; + id: number; /** - * + * * @type {string} * @memberof RecipeBook */ name: string; /** - * + * * @type {string} * @memberof RecipeBook */ description?: string; /** - * - * @type {Array} + * + * @type {Array} * @memberof RecipeBook */ - shared: Array; + shared: Array; /** - * - * @type {string} + * + * @type {number} * @memberof RecipeBook */ - created_by?: string; + created_by: number; /** - * - * @type {RecipeBookFilter} + * + * @type {CustomFilter} * @memberof RecipeBook */ - filter?: RecipeBookFilter | null; + filter?: CustomFilter | null; /** - * + * * @type {number} * @memberof RecipeBook */ order?: number; } /** - * + * * @export * @interface RecipeBookEntry */ export interface RecipeBookEntry { /** - * + * * @type {number} * @memberof RecipeBookEntry */ - id?: number; + id: number; /** - * + * * @type {number} * @memberof RecipeBookEntry */ book: number; /** - * + * * @type {string} * @memberof RecipeBookEntry */ - book_content?: string; + book_content: string; /** - * + * * @type {number} * @memberof RecipeBookEntry */ recipe: number; /** - * + * * @type {string} * @memberof RecipeBookEntry */ - recipe_content?: string; + recipe_content: string; } /** - * - * @export - * @interface RecipeBookFilter - */ -export interface RecipeBookFilter { - /** - * - * @type {number} - * @memberof RecipeBookFilter - */ - id?: number; - /** - * - * @type {string} - * @memberof RecipeBookFilter - */ - name: string; - /** - * - * @type {string} - * @memberof RecipeBookFilter - */ - search: string; - /** - * - * @type {Array} - * @memberof RecipeBookFilter - */ - shared?: Array; - /** - * - * @type {string} - * @memberof RecipeBookFilter - */ - created_by?: string; -} -/** - * - * @export - * @interface RecipeFile - */ -export interface RecipeFile { - /** - * - * @type {number} - * @memberof RecipeFile - */ - id?: number; - /** - * - * @type {string} - * @memberof RecipeFile - */ - name: string; - /** - * - * @type {string} - * @memberof RecipeFile - */ - file_download?: string; - /** - * - * @type {string} - * @memberof RecipeFile - */ - preview?: string; -} -/** - * + * Adds nested create feature * @export * @interface RecipeFlat */ export interface RecipeFlat { /** - * + * * @type {number} * @memberof RecipeFlat */ - id?: number; + id: number; /** - * + * * @type {string} * @memberof RecipeFlat */ name: string; /** - * - * @type {any} + * + * @type {string} * @memberof RecipeFlat */ - image?: any | null; + image?: string | null; } /** - * + * Adds nested create feature * @export * @interface RecipeImage */ export interface RecipeImage { /** - * - * @type {any} + * + * @type {string} * @memberof RecipeImage */ - image?: any | null; + image?: string | null; /** - * + * * @type {string} * @memberof RecipeImage */ image_url?: string | null; } /** - * - * @export - * @interface RecipeIngredients - */ -export interface RecipeIngredients { - /** - * - * @type {number} - * @memberof RecipeIngredients - */ - id?: number; - /** - * - * @type {IngredientFood} - * @memberof RecipeIngredients - */ - food: IngredientFood | null; - /** - * - * @type {FoodPropertiesFoodUnit} - * @memberof RecipeIngredients - */ - unit: FoodPropertiesFoodUnit | null; - /** - * - * @type {string} - * @memberof RecipeIngredients - */ - amount: string; - /** - * - * @type {string} - * @memberof RecipeIngredients - */ - conversions?: string; - /** - * - * @type {string} - * @memberof RecipeIngredients - */ - note?: string | null; - /** - * - * @type {number} - * @memberof RecipeIngredients - */ - order?: number; - /** - * - * @type {boolean} - * @memberof RecipeIngredients - */ - is_header?: boolean; - /** - * - * @type {boolean} - * @memberof RecipeIngredients - */ - no_amount?: boolean; - /** - * - * @type {string} - * @memberof RecipeIngredients - */ - original_text?: string | null; - /** - * - * @type {string} - * @memberof RecipeIngredients - */ - used_in_recipes?: string; - /** - * - * @type {boolean} - * @memberof RecipeIngredients - */ - always_use_plural_unit?: boolean; - /** - * - * @type {boolean} - * @memberof RecipeIngredients - */ - always_use_plural_food?: boolean; -} -/** - * - * @export - * @interface RecipeKeywords - */ -export interface RecipeKeywords { - /** - * - * @type {number} - * @memberof RecipeKeywords - */ - id?: number; - /** - * - * @type {string} - * @memberof RecipeKeywords - */ - name: string; - /** - * - * @type {string} - * @memberof RecipeKeywords - */ - label?: string; - /** - * - * @type {string} - * @memberof RecipeKeywords - */ - description?: string; - /** - * - * @type {string} - * @memberof RecipeKeywords - */ - parent?: string; - /** - * - * @type {number} - * @memberof RecipeKeywords - */ - numchild?: number; - /** - * - * @type {string} - * @memberof RecipeKeywords - */ - created_at?: string; - /** - * - * @type {string} - * @memberof RecipeKeywords - */ - updated_at?: string; - /** - * - * @type {string} - * @memberof RecipeKeywords - */ - full_name?: string; -} -/** - * - * @export - * @interface RecipeNutrition - */ -export interface RecipeNutrition { - /** - * - * @type {number} - * @memberof RecipeNutrition - */ - id?: number; - /** - * - * @type {string} - * @memberof RecipeNutrition - */ - carbohydrates: string; - /** - * - * @type {string} - * @memberof RecipeNutrition - */ - fats: string; - /** - * - * @type {string} - * @memberof RecipeNutrition - */ - proteins: string; - /** - * - * @type {string} - * @memberof RecipeNutrition - */ - calories: string; - /** - * - * @type {string} - * @memberof RecipeNutrition - */ - source?: string | null; -} -/** - * + * Adds nested create feature * @export * @interface RecipeOverview */ export interface RecipeOverview { /** - * + * * @type {number} * @memberof RecipeOverview */ - id?: number; + id: number; /** - * + * * @type {string} * @memberof RecipeOverview */ name: string; /** - * + * * @type {string} * @memberof RecipeOverview */ - description?: string | null; + description: string | null; /** - * - * @type {any} + * + * @type {string} * @memberof RecipeOverview */ - image?: any | null; + image: string | null; /** - * - * @type {Array} + * + * @type {Array} * @memberof RecipeOverview */ - keywords: Array; + keywords: Array; /** - * + * * @type {number} * @memberof RecipeOverview */ - working_time?: number; + working_time: number; /** - * + * * @type {number} * @memberof RecipeOverview */ - waiting_time?: number; + waiting_time: number; /** - * + * + * @type {number} + * @memberof RecipeOverview + */ + created_by: number; + /** + * * @type {string} * @memberof RecipeOverview */ - created_by?: string; + created_at: string; /** - * + * * @type {string} * @memberof RecipeOverview */ - created_at?: string; + updated_at: string; /** - * - * @type {string} - * @memberof RecipeOverview - */ - updated_at?: string; - /** - * + * * @type {boolean} * @memberof RecipeOverview */ - internal?: boolean; + internal: boolean; /** - * + * * @type {number} * @memberof RecipeOverview */ - servings?: number; + servings: number; /** - * + * * @type {string} * @memberof RecipeOverview */ - servings_text?: string; + servings_text: string; /** - * + * * @type {string} * @memberof RecipeOverview */ - rating?: string | null; + rating: string | null; /** - * + * * @type {string} * @memberof RecipeOverview */ - last_cooked?: string | null; + last_cooked: string | null; /** - * + * * @type {string} * @memberof RecipeOverview */ - _new?: string; + _new: string; /** - * + * * @type {string} * @memberof RecipeOverview */ - recent?: string; + recent: string; } /** - * + * * @export * @interface RecipeShoppingUpdate */ export interface RecipeShoppingUpdate { /** - * + * * @type {number} * @memberof RecipeShoppingUpdate */ - id?: number; + id: number; /** * Existing shopping list to update * @type {number} @@ -3973,834 +4406,369 @@ export interface RecipeShoppingUpdate { servings?: number | null; } /** - * + * Adds nested create feature * @export * @interface RecipeSimple */ export interface RecipeSimple { /** - * + * * @type {number} * @memberof RecipeSimple */ - id?: number; + id: number; /** - * + * * @type {string} * @memberof RecipeSimple */ name: string; /** - * + * * @type {string} * @memberof RecipeSimple */ - url?: string; + url: string; } /** - * - * @export - * @interface RecipeSteps - */ -export interface RecipeSteps { - /** - * - * @type {number} - * @memberof RecipeSteps - */ - id?: number; - /** - * - * @type {string} - * @memberof RecipeSteps - */ - name?: string; - /** - * - * @type {string} - * @memberof RecipeSteps - */ - instruction?: string; - /** - * - * @type {Array} - * @memberof RecipeSteps - */ - ingredients: Array; - /** - * - * @type {string} - * @memberof RecipeSteps - */ - instructions_markdown?: 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; - /** - * - * @type {boolean} - * @memberof RecipeSteps - */ - show_ingredients_table?: boolean; -} -/** - * - * @export - * @interface ShoppingList - */ -export interface ShoppingList { - /** - * - * @type {number} - * @memberof ShoppingList - */ - id?: number; - /** - * - * @type {string} - * @memberof ShoppingList - */ - uuid?: string; - /** - * - * @type {string} - * @memberof ShoppingList - */ - note?: string | null; - /** - * - * @type {Array} - * @memberof ShoppingList - */ - recipes: Array | null; - /** - * - * @type {Array} - * @memberof ShoppingList - */ - entries: Array | null; - /** - * - * @type {Array} - * @memberof ShoppingList - */ - shared: Array; - /** - * - * @type {boolean} - * @memberof ShoppingList - */ - finished?: boolean; - /** - * - * @type {ShoppingListSupermarket} - * @memberof ShoppingList - */ - supermarket: ShoppingListSupermarket | null; - /** - * - * @type {string} - * @memberof ShoppingList - */ - created_by?: string; - /** - * - * @type {string} - * @memberof ShoppingList - */ - created_at?: string; -} -/** - * - * @export - * @interface ShoppingListEntries - */ -export interface ShoppingListEntries { - /** - * - * @type {number} - * @memberof ShoppingListEntries - */ - id?: number; - /** - * - * @type {number} - * @memberof ShoppingListEntries - */ - list_recipe?: number | null; - /** - * - * @type {IngredientFood} - * @memberof ShoppingListEntries - */ - food: IngredientFood | null; - /** - * - * @type {FoodPropertiesFoodUnit} - * @memberof ShoppingListEntries - */ - unit?: FoodPropertiesFoodUnit | 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 {CookLogCreatedBy} - * @memberof ShoppingListEntries - */ - created_by?: CookLogCreatedBy; - /** - * - * @type {string} - * @memberof ShoppingListEntries - */ - created_at?: string; - /** - * - * @type {string} - * @memberof ShoppingListEntries - */ - updated_at?: string; - /** - * - * @type {string} - * @memberof ShoppingListEntries - */ - completed_at?: string | null; - /** - * - * @type {string} - * @memberof ShoppingListEntries - */ - delay_until?: string | null; -} -/** - * + * Adds nested create feature * @export * @interface ShoppingListEntry */ export interface ShoppingListEntry { /** - * + * * @type {number} * @memberof ShoppingListEntry */ - id?: number; + id: number; /** - * + * * @type {number} * @memberof ShoppingListEntry */ list_recipe?: number | null; /** - * - * @type {IngredientFood} + * + * @type {Food} * @memberof ShoppingListEntry */ - food: IngredientFood | null; + food: Food | null; /** - * - * @type {FoodPropertiesFoodUnit} + * + * @type {Unit} * @memberof ShoppingListEntry */ - unit?: FoodPropertiesFoodUnit | null; + unit?: Unit | null; /** - * + * * @type {string} * @memberof ShoppingListEntry */ amount: string; /** - * + * * @type {number} * @memberof ShoppingListEntry */ order?: number; /** - * + * * @type {boolean} * @memberof ShoppingListEntry */ checked?: boolean; /** - * - * @type {ShoppingListRecipeMealplan} + * + * @type {ShoppingListRecipe} * @memberof ShoppingListEntry */ - recipe_mealplan?: ShoppingListRecipeMealplan; + recipe_mealplan: ShoppingListRecipe; /** - * - * @type {CookLogCreatedBy} + * + * @type {User} * @memberof ShoppingListEntry */ - created_by?: CookLogCreatedBy; + created_by: User; /** - * + * * @type {string} * @memberof ShoppingListEntry */ - created_at?: string; + created_at: string; /** - * + * * @type {string} * @memberof ShoppingListEntry */ - updated_at?: string; + updated_at: string; /** - * + * * @type {string} * @memberof ShoppingListEntry */ completed_at?: string | null; /** - * + * * @type {string} * @memberof ShoppingListEntry */ delay_until?: string | null; } /** - * + * * @export * @interface ShoppingListEntryBulk */ export interface ShoppingListEntryBulk { /** - * + * * @type {Array} * @memberof ShoppingListEntryBulk */ ids: Array; /** - * + * * @type {boolean} * @memberof ShoppingListEntryBulk */ checked: boolean; } /** - * + * * @export * @interface ShoppingListRecipe */ export interface ShoppingListRecipe { /** - * + * * @type {number} * @memberof ShoppingListRecipe */ - id?: number; + id: number; /** - * + * * @type {string} * @memberof ShoppingListRecipe */ - recipe_name?: string; + 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; - /** - * - * @type {string} - * @memberof ShoppingListRecipe - */ - mealplan_from_date?: string; - /** - * - * @type {string} - * @memberof ShoppingListRecipe - */ - mealplan_type?: 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; - /** - * - * @type {string} - * @memberof ShoppingListRecipeMealplan - */ - mealplan_from_date?: string; - /** - * - * @type {string} - * @memberof ShoppingListRecipeMealplan - */ - mealplan_type?: 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; - /** - * - * @type {string} - * @memberof ShoppingListRecipes - */ - mealplan_from_date?: string; - /** - * - * @type {string} - * @memberof ShoppingListRecipes - */ - mealplan_type?: string; -} -/** - * - * @export - * @interface ShoppingListSupermarket - */ -export interface ShoppingListSupermarket { - /** - * - * @type {number} - * @memberof ShoppingListSupermarket - */ - id?: number; - /** - * - * @type {string} - * @memberof ShoppingListSupermarket - */ name: string; /** - * - * @type {string} - * @memberof ShoppingListSupermarket + * + * @type {number} + * @memberof ShoppingListRecipe */ - description?: string | null; + recipe?: number | null; /** - * - * @type {Array} - * @memberof ShoppingListSupermarket + * + * @type {number} + * @memberof ShoppingListRecipe */ - category_to_supermarket?: Array; + mealplan?: number | null; /** - * + * * @type {string} - * @memberof ShoppingListSupermarket + * @memberof ShoppingListRecipe */ - open_data_slug?: string | null; + servings: string; + /** + * + * @type {string} + * @memberof ShoppingListRecipe + */ + mealplan_note: string; + /** + * + * @type {string} + * @memberof ShoppingListRecipe + */ + mealplan_from_date: string; + /** + * + * @type {string} + * @memberof ShoppingListRecipe + */ + mealplan_type: string; } /** - * - * @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; -} -/** - * + * Adds nested create feature * @export * @interface Space */ export interface Space { /** - * + * * @type {number} * @memberof Space */ - id?: number; + id: number; /** - * + * * @type {string} * @memberof Space */ name?: string; /** - * + * + * @type {number} + * @memberof Space + */ + created_by: number | null; + /** + * * @type {string} * @memberof Space */ - created_by?: string | null; + created_at: string; /** - * - * @type {string} - * @memberof Space - */ - created_at?: string; - /** - * + * * @type {string} * @memberof Space */ message?: string; /** - * + * * @type {number} * @memberof Space */ - max_recipes?: number; + max_recipes: number; /** * Maximum file storage for space in MB. 0 for unlimited, -1 to disable file upload. * @type {number} * @memberof Space */ - max_file_storage_mb?: number; + max_file_storage_mb: number; /** - * + * * @type {number} * @memberof Space */ - max_users?: number; + max_users: number; /** - * + * * @type {boolean} * @memberof Space */ - allow_sharing?: boolean; + allow_sharing: boolean; /** - * + * * @type {boolean} * @memberof Space */ - demo?: boolean; + demo: boolean; /** - * - * @type {Array} + * + * @type {Array} * @memberof Space */ - food_inherit: Array; + food_inherit: Array; /** - * + * * @type {string} * @memberof Space */ - user_count?: string; + user_count: string; /** - * + * * @type {string} * @memberof Space */ - recipe_count?: string; + recipe_count: string; /** - * + * * @type {string} * @memberof Space */ - file_size_mb?: string; + file_size_mb: string; /** - * - * @type {RecipeFile} + * + * @type {UserFileView} * @memberof Space */ - image?: RecipeFile | null; + image?: UserFileView | null; /** - * - * @type {RecipeFile} + * + * @type {UserFileView} * @memberof Space */ - nav_logo?: RecipeFile | null; + nav_logo?: UserFileView | null; /** - * - * @type {string} + * + * @type {SpaceThemeEnum} * @memberof Space */ - space_theme?: SpaceSpaceThemeEnum; + space_theme?: SpaceThemeEnum; /** - * - * @type {RecipeFile} + * + * @type {UserFileView} * @memberof Space */ - custom_space_theme?: RecipeFile | null; + custom_space_theme?: UserFileView | null; /** - * + * * @type {string} * @memberof Space */ nav_bg_color?: string; /** - * - * @type {string} + * + * @type {SpaceNavTextColorEnum} * @memberof Space */ nav_text_color?: SpaceNavTextColorEnum; /** - * - * @type {RecipeFile} + * + * @type {UserFileView} * @memberof Space */ - logo_color_32?: RecipeFile | null; + logo_color_32?: UserFileView | null; /** - * - * @type {RecipeFile} + * + * @type {UserFileView} * @memberof Space */ - logo_color_128?: RecipeFile | null; + logo_color_128?: UserFileView | null; /** - * - * @type {RecipeFile} + * + * @type {UserFileView} * @memberof Space */ - logo_color_144?: RecipeFile | null; + logo_color_144?: UserFileView | null; /** - * - * @type {RecipeFile} + * + * @type {UserFileView} * @memberof Space */ - logo_color_180?: RecipeFile | null; + logo_color_180?: UserFileView | null; /** - * - * @type {RecipeFile} + * + * @type {UserFileView} * @memberof Space */ - logo_color_192?: RecipeFile | null; + logo_color_192?: UserFileView | null; /** - * - * @type {RecipeFile} + * + * @type {UserFileView} * @memberof Space */ - logo_color_512?: RecipeFile | null; + logo_color_512?: UserFileView | null; /** - * - * @type {RecipeFile} + * + * @type {UserFileView} * @memberof Space */ - logo_color_svg?: RecipeFile | null; -} - -/** - * @export - * @enum {string} - */ -export enum SpaceSpaceThemeEnum { - Blank = 'BLANK', - Tandoor = 'TANDOOR', - Bootstrap = 'BOOTSTRAP', - Darkly = 'DARKLY', - Flatly = 'FLATLY', - Superhero = 'SUPERHERO', - TandoorDark = 'TANDOOR_DARK' + logo_color_svg?: UserFileView | null; } /** - * @export - * @enum {string} - */ + * * `BLANK` - ------- * `LIGHT` - Light * `DARK` - Dark + * @export + * @enum {string} + */ export enum SpaceNavTextColorEnum { Blank = 'BLANK', Light = 'LIGHT', @@ -4808,737 +4776,12 @@ export enum SpaceNavTextColorEnum { } /** - * + * * `BLANK` - ------- * `TANDOOR` - Tandoor * `BOOTSTRAP` - Bootstrap * `DARKLY` - Darkly * `FLATLY` - Flatly * `SUPERHERO` - Superhero * `TANDOOR_DARK` - Tandoor Dark (INCOMPLETE) * @export - * @interface Step + * @enum {string} */ -export interface Step { - /** - * - * @type {number} - * @memberof Step - */ - id?: number; - /** - * - * @type {string} - * @memberof Step - */ - name?: string; - /** - * - * @type {string} - * @memberof Step - */ - instruction?: string; - /** - * - * @type {Array} - * @memberof Step - */ - ingredients: Array; - /** - * - * @type {string} - * @memberof Step - */ - instructions_markdown?: 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; - /** - * - * @type {boolean} - * @memberof Step - */ - show_ingredients_table?: 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} - * @memberof Supermarket - */ - category_to_supermarket?: Array; - /** - * - * @type {string} - * @memberof Supermarket - */ - open_data_slug?: string | null; -} -/** - * - * @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 - */ - plural_name?: string | null; - /** - * - * @type {string} - * @memberof Unit - */ - description?: string | null; - /** - * - * @type {string} - * @memberof Unit - */ - base_unit?: string | null; - /** - * - * @type {string} - * @memberof Unit - */ - open_data_slug?: string | null; -} -/** - * - * @export - * @interface UnitConversion - */ -export interface UnitConversion { - /** - * - * @type {number} - * @memberof UnitConversion - */ - id?: number; - /** - * - * @type {string} - * @memberof UnitConversion - */ - name?: string; - /** - * - * @type {string} - * @memberof UnitConversion - */ - base_amount: string; - /** - * - * @type {UnitConversionBaseUnit} - * @memberof UnitConversion - */ - base_unit: UnitConversionBaseUnit; - /** - * - * @type {string} - * @memberof UnitConversion - */ - converted_amount: string; - /** - * - * @type {UnitConversionBaseUnit} - * @memberof UnitConversion - */ - converted_unit: UnitConversionBaseUnit; - /** - * - * @type {IngredientFood} - * @memberof UnitConversion - */ - food?: IngredientFood | null; - /** - * - * @type {string} - * @memberof UnitConversion - */ - open_data_slug?: string | null; -} -/** - * - * @export - * @interface UnitConversionBaseUnit - */ -export interface UnitConversionBaseUnit { - /** - * - * @type {number} - * @memberof UnitConversionBaseUnit - */ - id?: number; - /** - * - * @type {string} - * @memberof UnitConversionBaseUnit - */ - name: string; - /** - * - * @type {string} - * @memberof UnitConversionBaseUnit - */ - plural_name?: string | null; - /** - * - * @type {string} - * @memberof UnitConversionBaseUnit - */ - description?: string | null; - /** - * - * @type {string} - * @memberof UnitConversionBaseUnit - */ - base_unit?: string | null; - /** - * - * @type {string} - * @memberof UnitConversionBaseUnit - */ - open_data_slug?: string | null; -} -/** - * - * @export - * @interface User - */ -export interface User { - /** - * - * @type {number} - * @memberof User - */ - id?: number; - /** - * Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. - * @type {string} - * @memberof User - */ - username?: string; - /** - * - * @type {string} - * @memberof User - */ - first_name?: string; - /** - * - * @type {string} - * @memberof User - */ - last_name?: string; - /** - * - * @type {string} - * @memberof User - */ - display_name?: string; -} -/** - * - * @export - * @interface UserFile - */ -export interface UserFile { - /** - * - * @type {number} - * @memberof UserFile - */ - id?: number; - /** - * - * @type {string} - * @memberof UserFile - */ - name: string; - /** - * - * @type {any} - * @memberof UserFile - */ - file: any; - /** - * - * @type {string} - * @memberof UserFile - */ - file_download?: string; - /** - * - * @type {string} - * @memberof UserFile - */ - preview?: string; - /** - * - * @type {number} - * @memberof UserFile - */ - file_size_kb?: number; -} -/** - * - * @export - * @interface UserPreference - */ -export interface UserPreference { - /** - * - * @type {number} - * @memberof UserPreference - */ - user: number; - /** - * - * @type {RecipeFile} - * @memberof UserPreference - */ - image?: RecipeFile | null; - /** - * - * @type {string} - * @memberof UserPreference - */ - theme?: UserPreferenceThemeEnum; - /** - * - * @type {string} - * @memberof UserPreference - */ - nav_bg_color?: string; - /** - * - * @type {string} - * @memberof UserPreference - */ - nav_text_color?: UserPreferenceNavTextColorEnum; - /** - * - * @type {boolean} - * @memberof UserPreference - */ - nav_show_logo?: boolean; - /** - * - * @type {string} - * @memberof UserPreference - */ - default_unit?: string; - /** - * - * @type {string} - * @memberof UserPreference - */ - default_page?: UserPreferenceDefaultPageEnum; - /** - * - * @type {boolean} - * @memberof UserPreference - */ - use_fractions?: boolean; - /** - * - * @type {boolean} - * @memberof UserPreference - */ - use_kj?: boolean; - /** - * - * @type {Array} - * @memberof UserPreference - */ - plan_share?: Array | null; - /** - * - * @type {boolean} - * @memberof UserPreference - */ - nav_sticky?: boolean; - /** - * - * @type {number} - * @memberof UserPreference - */ - ingredient_decimals?: number; - /** - * - * @type {boolean} - * @memberof UserPreference - */ - comments?: boolean; - /** - * - * @type {number} - * @memberof UserPreference - */ - shopping_auto_sync?: number; - /** - * - * @type {boolean} - * @memberof UserPreference - */ - mealplan_autoadd_shopping?: boolean; - /** - * - * @type {string} - * @memberof UserPreference - */ - food_inherit_default?: string; - /** - * - * @type {string} - * @memberof UserPreference - */ - default_delay?: string; - /** - * - * @type {boolean} - * @memberof UserPreference - */ - mealplan_autoinclude_related?: boolean; - /** - * - * @type {boolean} - * @memberof UserPreference - */ - mealplan_autoexclude_onhand?: boolean; - /** - * - * @type {Array} - * @memberof UserPreference - */ - shopping_share?: Array | null; - /** - * - * @type {number} - * @memberof UserPreference - */ - shopping_recent_days?: number; - /** - * - * @type {string} - * @memberof UserPreference - */ - csv_delim?: string; - /** - * - * @type {string} - * @memberof UserPreference - */ - csv_prefix?: string; - /** - * - * @type {boolean} - * @memberof UserPreference - */ - filter_to_supermarket?: boolean; - /** - * - * @type {boolean} - * @memberof UserPreference - */ - shopping_add_onhand?: boolean; - /** - * - * @type {boolean} - * @memberof UserPreference - */ - left_handed?: boolean; - /** - * - * @type {boolean} - * @memberof UserPreference - */ - show_step_ingredients?: boolean; - /** - * - * @type {string} - * @memberof UserPreference - */ - food_children_exist?: string; -} - -/** - * @export - * @enum {string} - */ -export enum UserPreferenceThemeEnum { +export enum SpaceThemeEnum { + Blank = 'BLANK', Tandoor = 'TANDOOR', Bootstrap = 'BOOTSTRAP', Darkly = 'DARKLY', @@ -5546,115 +4789,843 @@ export enum UserPreferenceThemeEnum { Superhero = 'SUPERHERO', TandoorDark = 'TANDOOR_DARK' } + /** - * @export - * @enum {string} - */ + * Adds nested create feature + * @export + * @interface Step + */ +export interface Step { + /** + * + * @type {number} + * @memberof Step + */ + id: number; + /** + * + * @type {string} + * @memberof Step + */ + name?: string; + /** + * + * @type {string} + * @memberof Step + */ + instruction?: string; + /** + * + * @type {Array} + * @memberof Step + */ + ingredients: Array; + /** + * + * @type {string} + * @memberof Step + */ + instructions_markdown: string; + /** + * + * @type {number} + * @memberof Step + */ + time?: number; + /** + * + * @type {number} + * @memberof Step + */ + order?: number; + /** + * + * @type {boolean} + * @memberof Step + */ + show_as_header?: boolean; + /** + * + * @type {UserFileView} + * @memberof Step + */ + file?: UserFileView | null; + /** + * + * @type {number} + * @memberof Step + */ + step_recipe?: number | null; + /** + * + * @type {string} + * @memberof Step + */ + step_recipe_data: string; + /** + * + * @type {string} + * @memberof Step + */ + numrecipe: string; + /** + * + * @type {boolean} + * @memberof Step + */ + show_ingredients_table?: boolean; +} +/** + * + * @export + * @interface Storage + */ +export interface Storage { + /** + * + * @type {number} + * @memberof Storage + */ + id: number; + /** + * + * @type {string} + * @memberof Storage + */ + name: string; + /** + * + * @type {MethodEnum} + * @memberof Storage + */ + method?: MethodEnum; + /** + * + * @type {string} + * @memberof Storage + */ + username?: string | null; + /** + * + * @type {string} + * @memberof Storage + */ + password?: string | null; + /** + * + * @type {string} + * @memberof Storage + */ + token?: string | null; + /** + * + * @type {number} + * @memberof Storage + */ + created_by: number; +} +/** + * Moves `UniqueValidator`\'s from the validation stage to the save stage. It solves the problem with nested validation for unique fields on update. If you want more details, you can read related issues and articles: https://github.com/beda-software/drf-writable-nested/issues/1 http://www.django-rest-framework.org/api-guide/validators/#updating-nested-serializers Example of usage: ``` class Child(models.Model): field = models.CharField(unique=True) class Parent(models.Model): child = models.ForeignKey(\'Child\') class ChildSerializer(UniqueFieldsMixin, serializers.ModelSerializer): class Meta: model = Child class ParentSerializer(NestedUpdateMixin, serializers.ModelSerializer): child = ChildSerializer() class Meta: model = Parent ``` Note: `UniqueFieldsMixin` must be applied only on the serializer which has unique fields. Note: When you are using both mixins (`UniqueFieldsMixin` and `NestedCreateMixin` or `NestedUpdateMixin`) you should put `UniqueFieldsMixin` ahead. + * @export + * @interface Supermarket + */ +export interface Supermarket { + /** + * + * @type {number} + * @memberof Supermarket + */ + id: number; + /** + * + * @type {string} + * @memberof Supermarket + */ + name: string; + /** + * + * @type {string} + * @memberof Supermarket + */ + description?: string | null; + /** + * + * @type {Array} + * @memberof Supermarket + */ + category_to_supermarket: Array; + /** + * + * @type {string} + * @memberof Supermarket + */ + open_data_slug?: string | null; +} +/** + * Moves `UniqueValidator`\'s from the validation stage to the save stage. It solves the problem with nested validation for unique fields on update. If you want more details, you can read related issues and articles: https://github.com/beda-software/drf-writable-nested/issues/1 http://www.django-rest-framework.org/api-guide/validators/#updating-nested-serializers Example of usage: ``` class Child(models.Model): field = models.CharField(unique=True) class Parent(models.Model): child = models.ForeignKey(\'Child\') class ChildSerializer(UniqueFieldsMixin, serializers.ModelSerializer): class Meta: model = Child class ParentSerializer(NestedUpdateMixin, serializers.ModelSerializer): child = ChildSerializer() class Meta: model = Parent ``` Note: `UniqueFieldsMixin` must be applied only on the serializer which has unique fields. Note: When you are using both mixins (`UniqueFieldsMixin` and `NestedCreateMixin` or `NestedUpdateMixin`) you should put `UniqueFieldsMixin` ahead. + * @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; +} +/** + * Adds nested create feature + * @export + * @interface SupermarketCategoryRelation + */ +export interface SupermarketCategoryRelation { + /** + * + * @type {number} + * @memberof SupermarketCategoryRelation + */ + id: number; + /** + * + * @type {SupermarketCategory} + * @memberof SupermarketCategoryRelation + */ + category: SupermarketCategory; + /** + * + * @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; +} +/** + * * `TANDOOR` - Tandoor * `BOOTSTRAP` - Bootstrap * `DARKLY` - Darkly * `FLATLY` - Flatly * `SUPERHERO` - Superhero * `TANDOOR_DARK` - Tandoor Dark (INCOMPLETE) + * @export + * @enum {string} + */ +export enum ThemeEnum { + Tandoor = 'TANDOOR', + Bootstrap = 'BOOTSTRAP', + Darkly = 'DARKLY', + Flatly = 'FLATLY', + Superhero = 'SUPERHERO', + TandoorDark = 'TANDOOR_DARK' +} + +/** + * * `FOOD_ALIAS` - Food Alias * `UNIT_ALIAS` - Unit Alias * `KEYWORD_ALIAS` - Keyword Alias * `DESCRIPTION_REPLACE` - Description Replace * `INSTRUCTION_REPLACE` - Instruction Replace * `NEVER_UNIT` - Never Unit * `TRANSPOSE_WORDS` - Transpose Words * `FOOD_REPLACE` - Food Replace * `UNIT_REPLACE` - Unit Replace * `NAME_REPLACE` - Name Replace + * @export + * @enum {string} + */ +export enum TypeEnum { + FoodAlias = 'FOOD_ALIAS', + UnitAlias = 'UNIT_ALIAS', + KeywordAlias = 'KEYWORD_ALIAS', + DescriptionReplace = 'DESCRIPTION_REPLACE', + InstructionReplace = 'INSTRUCTION_REPLACE', + NeverUnit = 'NEVER_UNIT', + TransposeWords = 'TRANSPOSE_WORDS', + FoodReplace = 'FOOD_REPLACE', + UnitReplace = 'UNIT_REPLACE', + NameReplace = 'NAME_REPLACE' +} + +/** + * Moves `UniqueValidator`\'s from the validation stage to the save stage. It solves the problem with nested validation for unique fields on update. If you want more details, you can read related issues and articles: https://github.com/beda-software/drf-writable-nested/issues/1 http://www.django-rest-framework.org/api-guide/validators/#updating-nested-serializers Example of usage: ``` class Child(models.Model): field = models.CharField(unique=True) class Parent(models.Model): child = models.ForeignKey(\'Child\') class ChildSerializer(UniqueFieldsMixin, serializers.ModelSerializer): class Meta: model = Child class ParentSerializer(NestedUpdateMixin, serializers.ModelSerializer): child = ChildSerializer() class Meta: model = Parent ``` Note: `UniqueFieldsMixin` must be applied only on the serializer which has unique fields. Note: When you are using both mixins (`UniqueFieldsMixin` and `NestedCreateMixin` or `NestedUpdateMixin`) you should put `UniqueFieldsMixin` ahead. + * @export + * @interface Unit + */ +export interface Unit { + /** + * + * @type {number} + * @memberof Unit + */ + id: number; + /** + * + * @type {string} + * @memberof Unit + */ + name: string; + /** + * + * @type {string} + * @memberof Unit + */ + plural_name?: string | null; + /** + * + * @type {string} + * @memberof Unit + */ + description?: string | null; + /** + * + * @type {string} + * @memberof Unit + */ + base_unit?: string | null; + /** + * + * @type {string} + * @memberof Unit + */ + open_data_slug?: string | null; +} +/** + * Adds nested create feature + * @export + * @interface UnitConversion + */ +export interface UnitConversion { + /** + * + * @type {number} + * @memberof UnitConversion + */ + id: number; + /** + * + * @type {string} + * @memberof UnitConversion + */ + name: string; + /** + * + * @type {string} + * @memberof UnitConversion + */ + base_amount: string; + /** + * + * @type {Unit} + * @memberof UnitConversion + */ + base_unit: Unit; + /** + * + * @type {string} + * @memberof UnitConversion + */ + converted_amount: string; + /** + * + * @type {Unit} + * @memberof UnitConversion + */ + converted_unit: Unit; + /** + * + * @type {Food} + * @memberof UnitConversion + */ + food?: Food | null; + /** + * + * @type {string} + * @memberof UnitConversion + */ + open_data_slug?: string | null; +} +/** + * Adds nested create feature + * @export + * @interface User + */ +export interface User { + /** + * + * @type {number} + * @memberof User + */ + id: number; + /** + * Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. + * @type {string} + * @memberof User + */ + username: string; + /** + * + * @type {string} + * @memberof User + */ + first_name?: string; + /** + * + * @type {string} + * @memberof User + */ + last_name?: string; + /** + * + * @type {string} + * @memberof User + */ + display_name: string; +} +/** + * + * @export + * @interface UserFile + */ +export interface UserFile { + /** + * + * @type {number} + * @memberof UserFile + */ + id: number; + /** + * + * @type {string} + * @memberof UserFile + */ + name: string; + /** + * + * @type {string} + * @memberof UserFile + */ + file: string; + /** + * + * @type {string} + * @memberof UserFile + */ + file_download: string; + /** + * + * @type {string} + * @memberof UserFile + */ + preview: string; + /** + * + * @type {number} + * @memberof UserFile + */ + file_size_kb: number; +} +/** + * + * @export + * @interface UserFileView + */ +export interface UserFileView { + /** + * + * @type {number} + * @memberof UserFileView + */ + id: number; + /** + * + * @type {string} + * @memberof UserFileView + */ + name: string; + /** + * + * @type {string} + * @memberof UserFileView + */ + file_download: string; + /** + * + * @type {string} + * @memberof UserFileView + */ + preview: string; +} +/** + * Adds nested create feature + * @export + * @interface UserPreference + */ +export interface UserPreference { + /** + * + * @type {number} + * @memberof UserPreference + */ + user: number; + /** + * + * @type {UserFileView} + * @memberof UserPreference + */ + image?: UserFileView | null; + /** + * + * @type {ThemeEnum} + * @memberof UserPreference + */ + theme?: ThemeEnum; + /** + * + * @type {string} + * @memberof UserPreference + */ + nav_bg_color?: string; + /** + * + * @type {UserPreferenceNavTextColorEnum} + * @memberof UserPreference + */ + nav_text_color?: UserPreferenceNavTextColorEnum; + /** + * + * @type {boolean} + * @memberof UserPreference + */ + nav_show_logo?: boolean; + /** + * + * @type {string} + * @memberof UserPreference + */ + default_unit?: string; + /** + * + * @type {DefaultPageEnum} + * @memberof UserPreference + */ + default_page?: DefaultPageEnum; + /** + * + * @type {boolean} + * @memberof UserPreference + */ + use_fractions?: boolean; + /** + * + * @type {boolean} + * @memberof UserPreference + */ + use_kj?: boolean; + /** + * + * @type {Array} + * @memberof UserPreference + */ + plan_share?: Array | null; + /** + * + * @type {boolean} + * @memberof UserPreference + */ + nav_sticky?: boolean; + /** + * + * @type {number} + * @memberof UserPreference + */ + ingredient_decimals?: number; + /** + * + * @type {boolean} + * @memberof UserPreference + */ + comments?: boolean; + /** + * + * @type {number} + * @memberof UserPreference + */ + shopping_auto_sync?: number; + /** + * + * @type {boolean} + * @memberof UserPreference + */ + mealplan_autoadd_shopping?: boolean; + /** + * + * @type {string} + * @memberof UserPreference + */ + food_inherit_default: string; + /** + * + * @type {number} + * @memberof UserPreference + */ + default_delay?: number; + /** + * + * @type {boolean} + * @memberof UserPreference + */ + mealplan_autoinclude_related?: boolean; + /** + * + * @type {boolean} + * @memberof UserPreference + */ + mealplan_autoexclude_onhand?: boolean; + /** + * + * @type {Array} + * @memberof UserPreference + */ + shopping_share?: Array | null; + /** + * + * @type {number} + * @memberof UserPreference + */ + shopping_recent_days?: number; + /** + * + * @type {string} + * @memberof UserPreference + */ + csv_delim?: string; + /** + * + * @type {string} + * @memberof UserPreference + */ + csv_prefix?: string; + /** + * + * @type {boolean} + * @memberof UserPreference + */ + filter_to_supermarket?: boolean; + /** + * + * @type {boolean} + * @memberof UserPreference + */ + shopping_add_onhand?: boolean; + /** + * + * @type {boolean} + * @memberof UserPreference + */ + left_handed?: boolean; + /** + * + * @type {boolean} + * @memberof UserPreference + */ + show_step_ingredients?: boolean; + /** + * + * @type {string} + * @memberof UserPreference + */ + food_children_exist: string; +} +/** + * * `LIGHT` - Light * `DARK` - Dark + * @export + * @enum {string} + */ export enum UserPreferenceNavTextColorEnum { Light = 'LIGHT', Dark = 'DARK' } -/** - * @export - * @enum {string} - */ -export enum UserPreferenceDefaultPageEnum { - Search = 'SEARCH', - Plan = 'PLAN', - Books = 'BOOKS' -} /** - * + * Adds nested create feature * @export * @interface UserSpace */ export interface UserSpace { /** - * + * * @type {number} * @memberof UserSpace */ - id?: number; + id: number; /** - * - * @type {CookLogCreatedBy} + * + * @type {User} * @memberof UserSpace */ - user?: CookLogCreatedBy; + user: User; /** - * - * @type {string} + * + * @type {number} * @memberof UserSpace */ - space?: string; + space: number; /** - * - * @type {Array} + * + * @type {Array} * @memberof UserSpace */ - groups: Array; + groups: Array; /** - * + * * @type {boolean} * @memberof UserSpace */ active?: boolean; /** - * + * * @type {string} * @memberof UserSpace */ internal_note?: string | null; /** - * - * @type {string} + * + * @type {number} * @memberof UserSpace */ - invite_link?: string | null; + invite_link: number | null; /** - * + * * @type {string} * @memberof UserSpace */ - created_at?: string; + created_at: string; /** - * + * * @type {string} * @memberof UserSpace */ - updated_at?: string; + updated_at: string; } /** - * + * * @export * @interface ViewLog */ export interface ViewLog { /** - * + * * @type {number} * @memberof ViewLog */ - id?: number; + id: number; /** - * + * * @type {number} * @memberof ViewLog */ recipe: number; /** - * - * @type {string} + * + * @type {number} * @memberof ViewLog */ - created_by?: string; + created_by: number; /** - * + * * @type {string} * @memberof ViewLog */ - created_at?: string; + created_at: string; } /** @@ -5664,45 +5635,14 @@ export interface ViewLog { export const ApiApiAxiosParamCreator = function (configuration?: Configuration) { return { /** - * - * @param {ShoppingListEntryBulk} [shoppingListEntryBulk] + * + * @param {AccessToken} accessToken * @param {*} [options] Override http request option. * @throws {RequiredError} */ - bulkShoppingListEntry: async (shoppingListEntryBulk?: ShoppingListEntryBulk, options: any = {}): Promise => { - const localVarPath = `/api/shopping-list-entry/bulk/`; - // use dummy base URL string because the 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(shoppingListEntryBulk, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {AccessToken} [accessToken] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createAccessToken: async (accessToken?: AccessToken, options: any = {}): Promise => { + apiAccessTokenCreate: async (accessToken: AccessToken, options: any = {}): Promise => { + // verify required parameter 'accessToken' is not null or undefined + assertParamExists('apiAccessTokenCreate', 'accessToken', accessToken) const localVarPath = `/api/access-token/`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -5715,8 +5655,11 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); @@ -5730,1401 +5673,14 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }; }, /** - * - * @param {any} [body] + * + * @param {number} id A unique integer value identifying this access token. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createAutoPlanViewSet: async (body?: any, options: any = {}): Promise => { - const localVarPath = `/api/auto-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(body, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {Automation} [automation] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createAutomation: async (automation?: Automation, options: any = {}): Promise => { - const localVarPath = `/api/automation/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(automation, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {BookmarkletImport} [bookmarkletImport] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createBookmarkletImport: async (bookmarkletImport?: BookmarkletImport, options: any = {}): Promise => { - const localVarPath = `/api/bookmarklet-import/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(bookmarkletImport, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {ConnectorConfigConfig} [connectorConfigConfig] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createConnectorConfig: async (connectorConfigConfig?: ConnectorConfigConfig, options: any = {}): Promise => { - const localVarPath = `/api/connector-config/`; - // use dummy base URL string because the 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(connectorConfigConfig, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {CookLog} [cookLog] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createCookLog: async (cookLog?: CookLog, options: any = {}): Promise => { - const localVarPath = `/api/cook-log/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(cookLog, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {CustomFilter} [customFilter] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createCustomFilter: async (customFilter?: CustomFilter, options: any = {}): Promise => { - const localVarPath = `/api/custom-filter/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(customFilter, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {ExportLog} [exportLog] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createExportLog: async (exportLog?: ExportLog, options: any = {}): Promise => { - const localVarPath = `/api/export-log/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(exportLog, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {Food} [food] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createFood: async (food?: Food, options: any = {}): Promise => { - const localVarPath = `/api/food/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(food, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {ImportLog} [importLog] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createImportLog: async (importLog?: ImportLog, options: any = {}): Promise => { - const localVarPath = `/api/import-log/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(importLog, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {Ingredient} [ingredient] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createIngredient: async (ingredient?: Ingredient, options: any = {}): Promise => { - const localVarPath = `/api/ingredient/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(ingredient, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {InviteLink} [inviteLink] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createInviteLink: async (inviteLink?: InviteLink, options: any = {}): Promise => { - const localVarPath = `/api/invite-link/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(inviteLink, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {Keyword} [keyword] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createKeyword: async (keyword?: Keyword, options: any = {}): Promise => { - const localVarPath = `/api/keyword/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(keyword, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {MealPlan} [mealPlan] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createMealPlan: async (mealPlan?: MealPlan, options: any = {}): Promise => { - const localVarPath = `/api/meal-plan/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(mealPlan, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * returns list of meal types created by the requesting user ordered by the order field. - * @param {MealType} [mealType] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createMealType: async (mealType?: MealType, options: any = {}): Promise => { - const localVarPath = `/api/meal-type/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(mealType, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {OpenDataCategory} [openDataCategory] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createOpenDataCategory: async (openDataCategory?: OpenDataCategory, options: any = {}): Promise => { - const localVarPath = `/api/open-data-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(openDataCategory, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {OpenDataConversion} [openDataConversion] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createOpenDataConversion: async (openDataConversion?: OpenDataConversion, options: any = {}): Promise => { - const localVarPath = `/api/open-data-conversion/`; - // use dummy base URL string because the 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(openDataConversion, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {OpenDataFood} [openDataFood] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createOpenDataFood: async (openDataFood?: OpenDataFood, options: any = {}): Promise => { - const localVarPath = `/api/open-data-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(openDataFood, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {OpenDataProperty} [openDataProperty] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createOpenDataProperty: async (openDataProperty?: OpenDataProperty, options: any = {}): Promise => { - const localVarPath = `/api/open-data-property/`; - // use dummy base URL string because the 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(openDataProperty, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {OpenDataStore} [openDataStore] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createOpenDataStore: async (openDataStore?: OpenDataStore, options: any = {}): Promise => { - const localVarPath = `/api/open-data-store/`; - // use dummy base URL string because the 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(openDataStore, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {OpenDataUnit} [openDataUnit] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createOpenDataUnit: async (openDataUnit?: OpenDataUnit, options: any = {}): Promise => { - const localVarPath = `/api/open-data-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(openDataUnit, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {OpenDataVersion} [openDataVersion] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createOpenDataVersion: async (openDataVersion?: OpenDataVersion, options: any = {}): Promise => { - const localVarPath = `/api/open-data-version/`; - // use dummy base URL string because the 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(openDataVersion, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {Property} [property] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createProperty: async (property?: Property, options: any = {}): Promise => { - const localVarPath = `/api/food-property/`; - // use dummy base URL string because the 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(property, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {PropertyType} [propertyType] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createPropertyType: async (propertyType?: PropertyType, options: any = {}): Promise => { - const localVarPath = `/api/food-property-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(propertyType, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {Recipe} [recipe] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createRecipe: async (recipe?: Recipe, options: any = {}): Promise => { - const localVarPath = `/api/recipe/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(recipe, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {RecipeBook} [recipeBook] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createRecipeBook: async (recipeBook?: RecipeBook, options: any = {}): Promise => { - const localVarPath = `/api/recipe-book/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(recipeBook, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {RecipeBookEntry} [recipeBookEntry] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createRecipeBookEntry: async (recipeBookEntry?: RecipeBookEntry, options: any = {}): Promise => { - const localVarPath = `/api/recipe-book-entry/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(recipeBookEntry, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * function to retrieve a recipe from a given url or source string :param request: standard request with additional post parameters - url: url to use for importing recipe - data: if no url is given recipe is imported from provided source data - (optional) bookmarklet: id of bookmarklet import to use, overrides URL and data attributes :return: JsonResponse containing the parsed json and images - * @param {any} [body] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createRecipeUrlImport: async (body?: any, options: any = {}): Promise => { - const localVarPath = `/api/recipe-from-source/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {ShoppingList} [shoppingList] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createShoppingList: async (shoppingList?: ShoppingList, options: any = {}): Promise => { - const localVarPath = `/api/shopping-list/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(shoppingList, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {ShoppingListEntry} [shoppingListEntry] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createShoppingListEntry: async (shoppingListEntry?: ShoppingListEntry, options: any = {}): Promise => { - const localVarPath = `/api/shopping-list-entry/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(shoppingListEntry, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {ShoppingListRecipe} [shoppingListRecipe] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createShoppingListRecipe: async (shoppingListRecipe?: ShoppingListRecipe, options: any = {}): Promise => { - const localVarPath = `/api/shopping-list-recipe/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(shoppingListRecipe, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {Step} [step] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createStep: async (step?: Step, options: any = {}): Promise => { - const localVarPath = `/api/step/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(step, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {Storage} [storage] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createStorage: async (storage?: Storage, options: any = {}): Promise => { - const localVarPath = `/api/storage/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(storage, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {Supermarket} [supermarket] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createSupermarket: async (supermarket?: Supermarket, options: any = {}): Promise => { - const localVarPath = `/api/supermarket/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(supermarket, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {SupermarketCategory} [supermarketCategory] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createSupermarketCategory: async (supermarketCategory?: SupermarketCategory, options: any = {}): Promise => { - const localVarPath = `/api/supermarket-category/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(supermarketCategory, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {SupermarketCategoryRelation} [supermarketCategoryRelation] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createSupermarketCategoryRelation: async (supermarketCategoryRelation?: SupermarketCategoryRelation, options: any = {}): Promise => { - const localVarPath = `/api/supermarket-category-relation/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(supermarketCategoryRelation, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {Sync} [sync] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createSync: async (sync?: Sync, options: any = {}): Promise => { - const localVarPath = `/api/sync/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(sync, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {Unit} [unit] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createUnit: async (unit?: Unit, options: any = {}): Promise => { - const localVarPath = `/api/unit/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(unit, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {UnitConversion} [unitConversion] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createUnitConversion: async (unitConversion?: UnitConversion, options: any = {}): Promise => { - const localVarPath = `/api/unit-conversion/`; - // use dummy base URL string because the 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(unitConversion, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} name - * @param {any} file - * @param {number} [id] - * @param {string} [fileDownload] - * @param {string} [preview] - * @param {number} [fileSizeKb] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createUserFile: async (name: string, file: any, id?: number, fileDownload?: string, preview?: string, fileSizeKb?: number, options: any = {}): Promise => { - // verify required parameter 'name' is not null or undefined - assertParamExists('createUserFile', 'name', name) - // verify required parameter 'file' is not null or undefined - assertParamExists('createUserFile', 'file', file) - const localVarPath = `/api/user-file/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)(); - - - if (id !== undefined) { - localVarFormParams.append('id', id as any); - } - - if (name !== undefined) { - localVarFormParams.append('name', name as any); - } - - if (file !== undefined) { - localVarFormParams.append('file', file as any); - } - - if (fileDownload !== undefined) { - localVarFormParams.append('file_download', fileDownload as any); - } - - if (preview !== undefined) { - localVarFormParams.append('preview', preview as any); - } - - if (fileSizeKb !== undefined) { - localVarFormParams.append('file_size_kb', fileSizeKb as any); - } - - - localVarHeaderParameter['Content-Type'] = 'multipart/form-data'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = localVarFormParams; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {ViewLog} [viewLog] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createViewLog: async (viewLog?: ViewLog, options: any = {}): Promise => { - const localVarPath = `/api/view-log/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(viewLog, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * function to handle files passed by application importer - * @param {any} [body] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createimportFiles: async (body?: any, options: any = {}): Promise => { - const localVarPath = `/api/import/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this access token. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyAccessToken: async (id: string, options: any = {}): Promise => { + apiAccessTokenDestroy: async (id: number, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined - assertParamExists('destroyAccessToken', 'id', id) + assertParamExists('apiAccessTokenDestroy', 'id', id) const localVarPath = `/api/access-token/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. @@ -7138,8 +5694,11 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -7150,14 +5709,234 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }; }, /** - * - * @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 => { + apiAccessTokenList: async (options: any = {}): Promise => { + const localVarPath = `/api/access-token/`; + // use dummy base URL string because the 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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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 A unique integer value identifying this access token. + * @param {PatchedAccessToken} [patchedAccessToken] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccessTokenPartialUpdate: async (id: number, patchedAccessToken?: PatchedAccessToken, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined - assertParamExists('destroyAutomation', 'id', id) + assertParamExists('apiAccessTokenPartialUpdate', 'id', id) + const localVarPath = `/api/access-token/{id}/` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the 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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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(patchedAccessToken, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {number} id A unique integer value identifying this access token. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccessTokenRetrieve: async (id: number, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiAccessTokenRetrieve', 'id', id) + const localVarPath = `/api/access-token/{id}/` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the 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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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 A unique integer value identifying this access token. + * @param {AccessToken} accessToken + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAccessTokenUpdate: async (id: number, accessToken: AccessToken, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiAccessTokenUpdate', 'id', id) + // verify required parameter 'accessToken' is not null or undefined + assertParamExists('apiAccessTokenUpdate', 'accessToken', accessToken) + const localVarPath = `/api/access-token/{id}/` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the 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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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(accessToken, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAutoPlanCreate: async (options: any = {}): Promise => { + const localVarPath = `/api/auto-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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * list: optional parameters - **automation_type**: Return the Automations matching the automation type. Multiple values allowed. *Automation Types:* - FS: Food Alias - UA: Unit Alias - KA: Keyword Alias - DR: Description Replace - IR: Instruction Replace - NU: Never Unit - TW: Transpose Words - FR: Food Replace - UR: Unit Replace - NR: Name Replace + * @param {Automation} automation + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAutomationCreate: async (automation: Automation, options: any = {}): Promise => { + // verify required parameter 'automation' is not null or undefined + assertParamExists('apiAutomationCreate', 'automation', automation) + 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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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, + }; + }, + /** + * list: optional parameters - **automation_type**: Return the Automations matching the automation type. Multiple values allowed. *Automation Types:* - FS: Food Alias - UA: Unit Alias - KA: Keyword Alias - DR: Description Replace - IR: Instruction Replace - NU: Never Unit - TW: Transpose Words - FR: Food Replace - UR: Unit Replace - NR: Name Replace + * @param {number} id A unique integer value identifying this automation. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAutomationDestroy: async (id: number, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiAutomationDestroy', '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. @@ -7171,8 +5950,11 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -7183,2442 +5965,14 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }; }, /** - * - * @param {string} id A unique integer value identifying this bookmarklet import. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyBookmarkletImport: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('destroyBookmarkletImport', 'id', id) - const localVarPath = `/api/bookmarklet-import/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this connector config. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyConnectorConfig: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('destroyConnectorConfig', 'id', id) - const localVarPath = `/api/connector-config/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this cook log. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyCookLog: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('destroyCookLog', 'id', id) - const localVarPath = `/api/cook-log/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this custom filter. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyCustomFilter: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('destroyCustomFilter', 'id', id) - const localVarPath = `/api/custom-filter/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this export log. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyExportLog: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('destroyExportLog', 'id', id) - const localVarPath = `/api/export-log/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this food. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyFood: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('destroyFood', 'id', id) - const localVarPath = `/api/food/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this import log. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyImportLog: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('destroyImportLog', 'id', id) - const localVarPath = `/api/import-log/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this ingredient. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyIngredient: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('destroyIngredient', 'id', id) - const localVarPath = `/api/ingredient/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this invite link. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyInviteLink: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('destroyInviteLink', 'id', id) - const localVarPath = `/api/invite-link/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this keyword. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyKeyword: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('destroyKeyword', 'id', id) - const localVarPath = `/api/keyword/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this meal plan. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyMealPlan: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('destroyMealPlan', 'id', id) - const localVarPath = `/api/meal-plan/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * returns list of meal types created by the requesting user ordered by the order field. - * @param {string} id A unique integer value identifying this meal type. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyMealType: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('destroyMealType', 'id', id) - const localVarPath = `/api/meal-type/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this open data category. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyOpenDataCategory: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('destroyOpenDataCategory', 'id', id) - const localVarPath = `/api/open-data-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 open data conversion. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyOpenDataConversion: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('destroyOpenDataConversion', 'id', id) - const localVarPath = `/api/open-data-conversion/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the 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 open data food. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyOpenDataFood: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('destroyOpenDataFood', 'id', id) - const localVarPath = `/api/open-data-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 open data property. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyOpenDataProperty: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('destroyOpenDataProperty', 'id', id) - const localVarPath = `/api/open-data-property/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the 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 open data store. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyOpenDataStore: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('destroyOpenDataStore', 'id', id) - const localVarPath = `/api/open-data-store/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the 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 open data unit. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyOpenDataUnit: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('destroyOpenDataUnit', 'id', id) - const localVarPath = `/api/open-data-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 open data version. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyOpenDataVersion: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('destroyOpenDataVersion', 'id', id) - const localVarPath = `/api/open-data-version/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the 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 property. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyProperty: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('destroyProperty', 'id', id) - const localVarPath = `/api/food-property/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the 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 property type. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyPropertyType: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('destroyPropertyType', 'id', id) - const localVarPath = `/api/food-property-type/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this recipe. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyRecipe: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('destroyRecipe', 'id', id) - const localVarPath = `/api/recipe/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this recipe book. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyRecipeBook: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('destroyRecipeBook', 'id', id) - const localVarPath = `/api/recipe-book/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this recipe book entry. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyRecipeBookEntry: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('destroyRecipeBookEntry', 'id', id) - const localVarPath = `/api/recipe-book-entry/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this shopping list. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyShoppingList: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('destroyShoppingList', 'id', id) - const localVarPath = `/api/shopping-list/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this shopping list entry. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyShoppingListEntry: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('destroyShoppingListEntry', 'id', id) - const localVarPath = `/api/shopping-list-entry/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this shopping list recipe. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyShoppingListRecipe: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('destroyShoppingListRecipe', 'id', id) - const localVarPath = `/api/shopping-list-recipe/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this step. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyStep: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('destroyStep', 'id', id) - const localVarPath = `/api/step/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this storage. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyStorage: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('destroyStorage', 'id', id) - const localVarPath = `/api/storage/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this supermarket. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroySupermarket: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('destroySupermarket', 'id', id) - const localVarPath = `/api/supermarket/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this supermarket category. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroySupermarketCategory: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('destroySupermarketCategory', 'id', id) - const localVarPath = `/api/supermarket-category/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this supermarket category relation. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroySupermarketCategoryRelation: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('destroySupermarketCategoryRelation', 'id', id) - const localVarPath = `/api/supermarket-category-relation/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this sync. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroySync: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('destroySync', 'id', id) - const localVarPath = `/api/sync/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this unit. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyUnit: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('destroyUnit', 'id', id) - const localVarPath = `/api/unit/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this unit conversion. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyUnitConversion: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('destroyUnitConversion', 'id', id) - const localVarPath = `/api/unit-conversion/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this user file. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyUserFile: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('destroyUserFile', 'id', id) - const localVarPath = `/api/user-file/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this user space. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyUserSpace: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('destroyUserSpace', 'id', id) - const localVarPath = `/api/user-space/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this view log. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyViewLog: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('destroyViewLog', 'id', id) - const localVarPath = `/api/view-log/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * updates the food with all possible data from the FDC Api if properties with a fdc_id already exist they will be overridden, if existing properties don\'t have a fdc_id they won\'t be changed - * @param {string} id A unique integer value identifying this food. - * @param {Food} [food] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - fdcFood: async (id: string, food?: Food, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('fdcFood', 'id', id) - const localVarPath = `/api/food/{id}/fdc/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the 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 {*} [options] Override http request option. - * @throws {RequiredError} - */ - flatRecipe: async (options: any = {}): Promise => { - const localVarPath = `/api/recipe/flat/`; - // use dummy base URL string because the 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 {any} [image] - * @param {string} [imageUrl] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - imageRecipe: async (id: string, image?: any, imageUrl?: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('imageRecipe', 'id', id) - const localVarPath = `/api/recipe/{id}/image/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)(); - - - if (image !== undefined) { - localVarFormParams.append('image', image as any); - } - - if (imageUrl !== undefined) { - localVarFormParams.append('image_url', imageUrl as any); - } - - - localVarHeaderParameter['Content-Type'] = 'multipart/form-data'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = localVarFormParams; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listAccessTokens: async (options: any = {}): Promise => { - const localVarPath = `/api/access-token/`; - // use dummy base URL string because the 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} - */ - listAutomations: async (options: any = {}): Promise => { - const localVarPath = `/api/automation/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listBookmarkletImports: async (options: any = {}): Promise => { - const localVarPath = `/api/bookmarklet-import/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listConnectorConfigs: async (options: any = {}): Promise => { - const localVarPath = `/api/connector-config/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {number} [page] A page number within the paginated result set. - * @param {number} [pageSize] Number of results to return per page. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listCookLogs: async (page?: number, pageSize?: number, options: any = {}): Promise => { - const localVarPath = `/api/cook-log/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - if (page !== undefined) { - localVarQueryParameter['page'] = page; - } - - if (pageSize !== undefined) { - localVarQueryParameter['page_size'] = pageSize; - } - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listCustomFilters: async (options: any = {}): Promise => { - const localVarPath = `/api/custom-filter/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {number} [page] A page number within the paginated result set. - * @param {number} [pageSize] Number of results to return per page. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listExportLogs: async (page?: number, pageSize?: number, options: any = {}): Promise => { - const localVarPath = `/api/export-log/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - if (page !== undefined) { - localVarQueryParameter['page'] = page; - } - - if (pageSize !== undefined) { - localVarQueryParameter['page_size'] = pageSize; - } - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listFoodInheritFields: async (options: any = {}): Promise => { - const localVarPath = `/api/food-inherit-field/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} [query] Query string matched against food name. - * @param {number} [root] Return first level children of food with ID [int]. Integer 0 will return root foods. - * @param {number} [tree] Return all self and children of food with ID [int]. - * @param {number} [page] A page number within the paginated result set. - * @param {number} [pageSize] Number of results to return per page. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listFoods: async (query?: string, root?: number, tree?: number, page?: number, pageSize?: number, options: any = {}): Promise => { - const localVarPath = `/api/food/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - if (query !== undefined) { - localVarQueryParameter['query'] = query; - } - - if (root !== undefined) { - localVarQueryParameter['root'] = root; - } - - if (tree !== undefined) { - localVarQueryParameter['tree'] = tree; - } - - if (page !== undefined) { - localVarQueryParameter['page'] = page; - } - - if (pageSize !== undefined) { - localVarQueryParameter['page_size'] = pageSize; - } - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listGroups: async (options: any = {}): Promise => { - const localVarPath = `/api/group/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {number} [page] A page number within the paginated result set. - * @param {number} [pageSize] Number of results to return per page. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listImportLogs: async (page?: number, pageSize?: number, options: any = {}): Promise => { - const localVarPath = `/api/import-log/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - if (page !== undefined) { - localVarQueryParameter['page'] = page; - } - - if (pageSize !== undefined) { - localVarQueryParameter['page_size'] = pageSize; - } - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {number} [page] A page number within the paginated result set. - * @param {number} [pageSize] Number of results to return per page. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listIngredients: async (page?: number, pageSize?: number, options: any = {}): Promise => { - const localVarPath = `/api/ingredient/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - if (page !== undefined) { - localVarQueryParameter['page'] = page; - } - - if (pageSize !== undefined) { - localVarQueryParameter['page_size'] = pageSize; - } - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listInviteLinks: async (options: any = {}): Promise => { - const localVarPath = `/api/invite-link/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} [query] Query string matched against keyword name. - * @param {number} [root] Return first level children of keyword with ID [int]. Integer 0 will return root keywords. - * @param {number} [tree] Return all self and children of keyword with ID [int]. - * @param {number} [page] A page number within the paginated result set. - * @param {number} [pageSize] Number of results to return per page. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listKeywords: async (query?: string, root?: number, tree?: number, page?: number, pageSize?: number, options: any = {}): Promise => { - const localVarPath = `/api/keyword/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - if (query !== undefined) { - localVarQueryParameter['query'] = query; - } - - if (root !== undefined) { - localVarQueryParameter['root'] = root; - } - - if (tree !== undefined) { - localVarQueryParameter['tree'] = tree; - } - - if (page !== undefined) { - localVarQueryParameter['page'] = page; - } - - if (pageSize !== undefined) { - localVarQueryParameter['page_size'] = pageSize; - } - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * optional parameters - **from_date**: filter from (inclusive) a certain date onward - **to_date**: filter upward to (inclusive) certain date - **meal_type**: filter meal plans based on meal_type ID - * @param {string} [fromDate] Filter meal plans from date (inclusive) in the format of YYYY-MM-DD. - * @param {string} [toDate] Filter meal plans to date (inclusive) in the format of YYYY-MM-DD. - * @param {number} [mealType] Filter meal plans with MealType ID. For multiple repeat parameter. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listMealPlans: async (fromDate?: string, toDate?: string, mealType?: number, options: any = {}): Promise => { - const localVarPath = `/api/meal-plan/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - if (fromDate !== undefined) { - localVarQueryParameter['from_date'] = fromDate; - } - - if (toDate !== undefined) { - localVarQueryParameter['to_date'] = toDate; - } - - if (mealType !== undefined) { - localVarQueryParameter['meal_type'] = mealType; - } - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * returns list of meal types created by the requesting user ordered by the order field. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listMealTypes: async (options: any = {}): Promise => { - const localVarPath = `/api/meal-type/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listOpenDataCategorys: async (options: any = {}): Promise => { - const localVarPath = `/api/open-data-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} - */ - listOpenDataConversions: async (options: any = {}): Promise => { - const localVarPath = `/api/open-data-conversion/`; - // use dummy base URL string because the 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} - */ - listOpenDataFoods: async (options: any = {}): Promise => { - const localVarPath = `/api/open-data-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; - - - - 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} - */ - listOpenDataPropertys: async (options: any = {}): Promise => { - const localVarPath = `/api/open-data-property/`; - // use dummy base URL string because the 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} - */ - listOpenDataStatisticsViewSets: async (options: any = {}): Promise => { - const localVarPath = `/api/open-data-stats/`; - // use dummy base URL string because the 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} - */ - listOpenDataStores: async (options: any = {}): Promise => { - const localVarPath = `/api/open-data-store/`; - // use dummy base URL string because the 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} - */ - listOpenDataUnits: async (options: any = {}): Promise => { - const localVarPath = `/api/open-data-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; - - - - 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} - */ - listOpenDataVersions: async (options: any = {}): Promise => { - const localVarPath = `/api/open-data-version/`; - // use dummy base URL string because the 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} - */ - listPropertyTypes: async (options: any = {}): Promise => { - const localVarPath = `/api/food-property-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, - }; - }, - /** - * - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listPropertys: async (options: any = {}): Promise => { - const localVarPath = `/api/food-property/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * optional parameters - **recipe**: id of recipe - only return books for that recipe - **book**: id of book - only return recipes in that book - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listRecipeBookEntrys: async (options: any = {}): Promise => { - const localVarPath = `/api/recipe-book-entry/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listRecipeBooks: async (options: any = {}): Promise => { - const localVarPath = `/api/recipe-book/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} [query] Query string matched (fuzzy) against recipe name. In the future also fulltext search. - * @param {number} [keywords] ID of keyword a recipe should have. For multiple repeat parameter. Equivalent to keywords_or - * @param {number} [keywordsOr] Keyword IDs, repeat for multiple. Return recipes with any of the keywords - * @param {number} [keywordsAnd] Keyword IDs, repeat for multiple. Return recipes with all of the keywords. - * @param {number} [keywordsOrNot] Keyword IDs, repeat for multiple. Exclude recipes with any of the keywords. - * @param {number} [keywordsAndNot] Keyword IDs, repeat for multiple. Exclude recipes with all of the keywords. - * @param {number} [foods] ID of food a recipe should have. For multiple repeat parameter. - * @param {number} [foodsOr] Food IDs, repeat for multiple. Return recipes with any of the foods - * @param {number} [foodsAnd] Food IDs, repeat for multiple. Return recipes with all of the foods. - * @param {number} [foodsOrNot] Food IDs, repeat for multiple. Exclude recipes with any of the foods. - * @param {number} [foodsAndNot] Food IDs, repeat for multiple. Exclude recipes with all of the foods. - * @param {number} [units] ID of unit a recipe should have. - * @param {number} [rating] Rating a recipe should have or greater. [0 - 5] Negative value filters rating less than. - * @param {string} [books] ID of book a recipe should be in. For multiple repeat parameter. - * @param {number} [booksOr] Book IDs, repeat for multiple. Return recipes with any of the books - * @param {number} [booksAnd] Book IDs, repeat for multiple. Return recipes with all of the books. - * @param {number} [booksOrNot] Book IDs, repeat for multiple. Exclude recipes with any of the books. - * @param {number} [booksAndNot] Book IDs, repeat for multiple. Exclude recipes with all of the books. - * @param {string} [internal] If only internal recipes should be returned. [true/<b>false</b>] - * @param {string} [random] Returns the results in randomized order. [true/<b>false</b>] - * @param {string} [_new] Returns new results first in search results. [true/<b>false</b>] - * @param {number} [timescooked] Filter recipes cooked X times or more. Negative values returns cooked less than X times - * @param {string} [cookedon] Filter recipes last cooked on or after YYYY-MM-DD. Prepending - filters on or before date. - * @param {string} [createdon] Filter recipes created on or after YYYY-MM-DD. Prepending - filters on or before date. - * @param {string} [updatedon] Filter recipes updated on or after YYYY-MM-DD. Prepending - filters on or before date. - * @param {string} [viewedon] Filter recipes lasts viewed on or after YYYY-MM-DD. Prepending - filters on or before date. - * @param {string} [makenow] Filter recipes that can be made with OnHand food. [true/<b>false</b>] - * @param {number} [page] A page number within the paginated result set. - * @param {number} [pageSize] Number of results to return per page. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listRecipes: async (query?: string, keywords?: number, keywordsOr?: number, keywordsAnd?: number, keywordsOrNot?: number, keywordsAndNot?: number, foods?: number, foodsOr?: number, foodsAnd?: number, foodsOrNot?: number, foodsAndNot?: number, units?: number, rating?: number, books?: string, booksOr?: number, booksAnd?: number, booksOrNot?: number, booksAndNot?: number, internal?: string, random?: string, _new?: string, timescooked?: number, cookedon?: string, createdon?: string, updatedon?: string, viewedon?: string, makenow?: string, page?: number, pageSize?: number, options: any = {}): Promise => { - const localVarPath = `/api/recipe/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - if (query !== undefined) { - localVarQueryParameter['query'] = query; - } - - if (keywords !== undefined) { - localVarQueryParameter['keywords'] = keywords; - } - - if (keywordsOr !== undefined) { - localVarQueryParameter['keywords_or'] = keywordsOr; - } - - if (keywordsAnd !== undefined) { - localVarQueryParameter['keywords_and'] = keywordsAnd; - } - - if (keywordsOrNot !== undefined) { - localVarQueryParameter['keywords_or_not'] = keywordsOrNot; - } - - if (keywordsAndNot !== undefined) { - localVarQueryParameter['keywords_and_not'] = keywordsAndNot; - } - - if (foods !== undefined) { - localVarQueryParameter['foods'] = foods; - } - - if (foodsOr !== undefined) { - localVarQueryParameter['foods_or'] = foodsOr; - } - - if (foodsAnd !== undefined) { - localVarQueryParameter['foods_and'] = foodsAnd; - } - - if (foodsOrNot !== undefined) { - localVarQueryParameter['foods_or_not'] = foodsOrNot; - } - - if (foodsAndNot !== undefined) { - localVarQueryParameter['foods_and_not'] = foodsAndNot; - } - - if (units !== undefined) { - localVarQueryParameter['units'] = units; - } - - if (rating !== undefined) { - localVarQueryParameter['rating'] = rating; - } - - if (books !== undefined) { - localVarQueryParameter['books'] = books; - } - - if (booksOr !== undefined) { - localVarQueryParameter['books_or'] = booksOr; - } - - if (booksAnd !== undefined) { - localVarQueryParameter['books_and'] = booksAnd; - } - - if (booksOrNot !== undefined) { - localVarQueryParameter['books_or_not'] = booksOrNot; - } - - if (booksAndNot !== undefined) { - localVarQueryParameter['books_and_not'] = booksAndNot; - } - - if (internal !== undefined) { - localVarQueryParameter['internal'] = internal; - } - - if (random !== undefined) { - localVarQueryParameter['random'] = random; - } - - if (_new !== undefined) { - localVarQueryParameter['new'] = _new; - } - - if (timescooked !== undefined) { - localVarQueryParameter['timescooked'] = timescooked; - } - - if (cookedon !== undefined) { - localVarQueryParameter['cookedon'] = cookedon; - } - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * optional parameters - **automation_type**: Return the Automations matching the automation type. Multiple values allowed. *Automation Types:* - FS: Food Alias - UA: Unit Alias - KA: Keyword Alias - DR: Description Replace - IR: Instruction Replace - NU: Never Unit - TW: Transpose Words - FR: Food Replace - UR: Unit Replace - NR: Name Replace + * list: optional parameters - **automation_type**: Return the Automations matching the automation type. Multiple values allowed. *Automation Types:* - FS: Food Alias - UA: Unit Alias - KA: Keyword Alias - DR: Description Replace - IR: Instruction Replace - NU: Never Unit - TW: Transpose Words - FR: Food Replace - UR: Unit Replace - NR: Name Replace * @param {string} [automationType] Return the Automations matching the automation type. Multiple values allowed. * @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} */ - listAutomations: async (automationType?: string, page?: number, pageSize?: number, options: any = {}): Promise => { + apiAutomationList: async (automationType?: string, page?: number, pageSize?: number, options: any = {}): Promise => { const localVarPath = `/api/automation/`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -9627,9 +5981,12 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) baseOptions = configuration.baseOptions; } - if (updatedon !== undefined) { - localVarQueryParameter['updatedon'] = updatedon; - } + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) if (automationType !== undefined) { localVarQueryParameter['automation_type'] = automationType; @@ -9644,20 +6001,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) } - if (makenow !== undefined) { - localVarQueryParameter['makenow'] = makenow; - } - - if (page !== undefined) { - localVarQueryParameter['page'] = page; - } - - if (pageSize !== undefined) { - localVarQueryParameter['page_size'] = pageSize; - } - - - + setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -9668,15 +6012,56 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }; }, /** - * - * @param {number} [id] Returns the shopping list entry with a primary key of id. Multiple values allowed. - * @param {string} [checked] Filter shopping list entries on checked. [true, false, both, <b>recent</b>]<br> - recent includes unchecked items and recently completed items. - * @param {number} [supermarket] Returns the shopping list entries sorted by supermarket category order. + * list: optional parameters - **automation_type**: Return the Automations matching the automation type. Multiple values allowed. *Automation Types:* - FS: Food Alias - UA: Unit Alias - KA: Keyword Alias - DR: Description Replace - IR: Instruction Replace - NU: Never Unit - TW: Transpose Words - FR: Food Replace - UR: Unit Replace - NR: Name Replace + * @param {number} id A unique integer value identifying this automation. + * @param {PatchedAutomation} [patchedAutomation] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listShoppingListEntrys: async (id?: number, checked?: string, supermarket?: number, options: any = {}): Promise => { - const localVarPath = `/api/shopping-list-entry/`; + apiAutomationPartialUpdate: async (id: number, patchedAutomation?: PatchedAutomation, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiAutomationPartialUpdate', '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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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(patchedAutomation, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * list: optional parameters - **automation_type**: Return the Automations matching the automation type. Multiple values allowed. *Automation Types:* - FS: Food Alias - UA: Unit Alias - KA: Keyword Alias - DR: Description Replace - IR: Instruction Replace - NU: Never Unit - TW: Transpose Words - FR: Food Replace - UR: Unit Replace - NR: Name Replace + * @param {number} id A unique integer value identifying this automation. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAutomationRetrieve: async (id: number, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiAutomationRetrieve', '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; @@ -9688,20 +6073,11 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) 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; - } - + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -9712,13 +6088,820 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }; }, /** - * - * @param {number} [page] A page number within the paginated result set. - * @param {number} [pageSize] Number of results to return per page. + * list: optional parameters - **automation_type**: Return the Automations matching the automation type. Multiple values allowed. *Automation Types:* - FS: Food Alias - UA: Unit Alias - KA: Keyword Alias - DR: Description Replace - IR: Instruction Replace - NU: Never Unit - TW: Transpose Words - FR: Food Replace - UR: Unit Replace - NR: Name Replace + * @param {number} id A unique integer value identifying this automation. + * @param {Automation} automation * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listCustomFilters: async (page?: number, pageSize?: number, options: any = {}): Promise => { + apiAutomationUpdate: async (id: number, automation: Automation, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiAutomationUpdate', 'id', id) + // verify required parameter 'automation' is not null or undefined + assertParamExists('apiAutomationUpdate', 'automation', automation) + 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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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} + */ + apiBookmarkletImportCreate: async (bookmarkletImport: BookmarkletImport, options: any = {}): Promise => { + // verify required parameter 'bookmarkletImport' is not null or undefined + assertParamExists('apiBookmarkletImportCreate', 'bookmarkletImport', bookmarkletImport) + 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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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 {number} id A unique integer value identifying this bookmarklet import. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiBookmarkletImportDestroy: async (id: number, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiBookmarkletImportDestroy', '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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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} + */ + apiBookmarkletImportList: async (options: any = {}): Promise => { + const localVarPath = `/api/bookmarklet-import/`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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 A unique integer value identifying this bookmarklet import. + * @param {PatchedBookmarkletImport} [patchedBookmarkletImport] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiBookmarkletImportPartialUpdate: async (id: number, patchedBookmarkletImport?: PatchedBookmarkletImport, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiBookmarkletImportPartialUpdate', '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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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(patchedBookmarkletImport, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {number} id A unique integer value identifying this bookmarklet import. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiBookmarkletImportRetrieve: async (id: number, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiBookmarkletImportRetrieve', '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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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 A unique integer value identifying this bookmarklet import. + * @param {BookmarkletImport} bookmarkletImport + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiBookmarkletImportUpdate: async (id: number, bookmarkletImport: BookmarkletImport, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiBookmarkletImportUpdate', 'id', id) + // verify required parameter 'bookmarkletImport' is not null or undefined + assertParamExists('apiBookmarkletImportUpdate', 'bookmarkletImport', bookmarkletImport) + 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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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 {ConnectorConfigConfig} connectorConfigConfig + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiConnectorConfigCreate: async (connectorConfigConfig: ConnectorConfigConfig, options: any = {}): Promise => { + // verify required parameter 'connectorConfigConfig' is not null or undefined + assertParamExists('apiConnectorConfigCreate', 'connectorConfigConfig', connectorConfigConfig) + const localVarPath = `/api/connector-config/`; + // use dummy base URL string because the 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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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(connectorConfigConfig, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {number} id A unique integer value identifying this connector config. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiConnectorConfigDestroy: async (id: number, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiConnectorConfigDestroy', 'id', id) + const localVarPath = `/api/connector-config/{id}/` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the 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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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} + */ + apiConnectorConfigList: async (options: any = {}): Promise => { + const localVarPath = `/api/connector-config/`; + // use dummy base URL string because the 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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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 A unique integer value identifying this connector config. + * @param {PatchedConnectorConfigConfig} [patchedConnectorConfigConfig] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiConnectorConfigPartialUpdate: async (id: number, patchedConnectorConfigConfig?: PatchedConnectorConfigConfig, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiConnectorConfigPartialUpdate', 'id', id) + const localVarPath = `/api/connector-config/{id}/` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the 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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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(patchedConnectorConfigConfig, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {number} id A unique integer value identifying this connector config. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiConnectorConfigRetrieve: async (id: number, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiConnectorConfigRetrieve', 'id', id) + const localVarPath = `/api/connector-config/{id}/` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the 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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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 A unique integer value identifying this connector config. + * @param {ConnectorConfigConfig} connectorConfigConfig + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiConnectorConfigUpdate: async (id: number, connectorConfigConfig: ConnectorConfigConfig, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiConnectorConfigUpdate', 'id', id) + // verify required parameter 'connectorConfigConfig' is not null or undefined + assertParamExists('apiConnectorConfigUpdate', 'connectorConfigConfig', connectorConfigConfig) + const localVarPath = `/api/connector-config/{id}/` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the 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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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(connectorConfigConfig, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {CookLog} cookLog + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiCookLogCreate: async (cookLog: CookLog, options: any = {}): Promise => { + // verify required parameter 'cookLog' is not null or undefined + assertParamExists('apiCookLogCreate', 'cookLog', cookLog) + 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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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 {number} id A unique integer value identifying this cook log. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiCookLogDestroy: async (id: number, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiCookLogDestroy', '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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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 {number} [recipe] Filter for entries with the given recipe + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiCookLogList: async (page?: number, pageSize?: number, recipe?: number, options: any = {}): Promise => { + const localVarPath = `/api/cook-log/`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } + + if (pageSize !== undefined) { + localVarQueryParameter['page_size'] = pageSize; + } + + if (recipe !== undefined) { + localVarQueryParameter['recipe'] = recipe; + } + + + + 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 A unique integer value identifying this cook log. + * @param {PatchedCookLog} [patchedCookLog] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiCookLogPartialUpdate: async (id: number, patchedCookLog?: PatchedCookLog, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiCookLogPartialUpdate', '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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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(patchedCookLog, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {number} id A unique integer value identifying this cook log. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiCookLogRetrieve: async (id: number, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiCookLogRetrieve', '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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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 A unique integer value identifying this cook log. + * @param {CookLog} cookLog + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiCookLogUpdate: async (id: number, cookLog: CookLog, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiCookLogUpdate', 'id', id) + // verify required parameter 'cookLog' is not null or undefined + assertParamExists('apiCookLogUpdate', 'cookLog', cookLog) + 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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(cookLog, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {CustomFilter} customFilter + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiCustomFilterCreate: async (customFilter: CustomFilter, options: any = {}): Promise => { + // verify required parameter 'customFilter' is not null or undefined + assertParamExists('apiCustomFilterCreate', 'customFilter', customFilter) + const localVarPath = `/api/custom-filter/`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(customFilter, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {number} id A unique integer value identifying this custom filter. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiCustomFilterDestroy: async (id: number, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiCustomFilterDestroy', 'id', id) + const localVarPath = `/api/custom-filter/{id}/` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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} [limit] limit number of entries to return + * @param {number} [page] A page number within the paginated result set. + * @param {number} [pageSize] Number of results to return per page. + * @param {string} [query] lookup if query string is contained within the name, case insensitive + * @param {string} [random] randomly orders entries (only works together with limit) + * @param {string} [updatedAt] if model has an updated_at timestamp, filter only models updated at or after datetime + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiCustomFilterList: async (limit?: string, page?: number, pageSize?: number, query?: string, random?: string, updatedAt?: string, options: any = {}): Promise => { const localVarPath = `/api/custom-filter/`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -9731,6 +6914,13 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + if (page !== undefined) { localVarQueryParameter['page'] = page; } @@ -9739,115 +6929,20 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) 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} - */ - listShoppingLists: async (options: any = {}): Promise => { - const localVarPath = `/api/shopping-list/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listSpaces: async (options: any = {}): Promise => { - const localVarPath = `/api/space/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {number} [recipe] ID of recipe a step is part of. For multiple repeat parameter. - * @param {string} [query] Query string matched (fuzzy) against object name. - * @param {number} [page] A page number within the paginated result set. - * @param {number} [pageSize] Number of results to return per page. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listSteps: async (recipe?: number, query?: string, page?: number, pageSize?: number, options: any = {}): Promise => { - const localVarPath = `/api/step/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - if (recipe !== undefined) { - localVarQueryParameter['recipe'] = recipe; - } - if (query !== undefined) { localVarQueryParameter['query'] = query; } - if (page !== undefined) { - localVarQueryParameter['page'] = page; + if (random !== undefined) { + localVarQueryParameter['random'] = random; } - if (pageSize !== undefined) { - localVarQueryParameter['page_size'] = pageSize; + if (updatedAt !== undefined) { + localVarQueryParameter['updated_at'] = updatedAt; } - + setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -9858,500 +6953,664 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }; }, /** - * + * + * @param {number} id A unique integer value identifying this custom filter. + * @param {PatchedCustomFilter} [patchedCustomFilter] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listStorages: async (options: any = {}): Promise => { - const localVarPath = `/api/storage/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {number} [page] A page number within the paginated result set. - * @param {number} [pageSize] Number of results to return per page. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listSupermarketCategoryRelations: async (page?: number, pageSize?: number, options: any = {}): Promise => { - const localVarPath = `/api/supermarket-category-relation/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - if (page !== undefined) { - localVarQueryParameter['page'] = page; - } - - if (pageSize !== undefined) { - localVarQueryParameter['page_size'] = pageSize; - } - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} [query] Query string matched against supermarket-category name. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listSupermarketCategorys: async (query?: string, options: any = {}): Promise => { - const localVarPath = `/api/supermarket-category/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - if (query !== undefined) { - localVarQueryParameter['query'] = query; - } - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} [query] Query string matched against supermarket name. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listSupermarkets: async (query?: string, options: any = {}): Promise => { - const localVarPath = `/api/supermarket/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - if (query !== undefined) { - localVarQueryParameter['query'] = query; - } - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {number} [page] A page number within the paginated result set. - * @param {number} [pageSize] Number of results to return per page. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listSyncLogs: async (page?: number, pageSize?: number, options: any = {}): Promise => { - const localVarPath = `/api/sync-log/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - if (page !== undefined) { - localVarQueryParameter['page'] = page; - } - - if (pageSize !== undefined) { - localVarQueryParameter['page_size'] = pageSize; - } - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listSyncs: async (options: any = {}): Promise => { - const localVarPath = `/api/sync/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {number} [foodId] ID of food to filter for - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listUnitConversions: async (foodId?: number, options: any = {}): Promise => { - const localVarPath = `/api/unit-conversion/`; - // use dummy base URL string because the 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 (foodId !== undefined) { - localVarQueryParameter['food_id'] = foodId; - } - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} [query] Query string matched against unit name. - * @param {number} [page] A page number within the paginated result set. - * @param {number} [pageSize] Number of results to return per page. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listUnits: async (query?: string, page?: number, pageSize?: number, options: any = {}): Promise => { - const localVarPath = `/api/unit/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - if (query !== undefined) { - localVarQueryParameter['query'] = query; - } - - if (page !== undefined) { - localVarQueryParameter['page'] = page; - } - - if (pageSize !== undefined) { - localVarQueryParameter['page_size'] = pageSize; - } - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} [query] Query string matched against user-file name. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listUserFiles: async (query?: string, options: any = {}): Promise => { - const localVarPath = `/api/user-file/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - if (query !== undefined) { - localVarQueryParameter['query'] = query; - } - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listUserPreferences: async (options: any = {}): Promise => { - const localVarPath = `/api/user-preference/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {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} - */ - listUserSpaces: async (page?: number, pageSize?: number, options: any = {}): Promise => { - const localVarPath = `/api/user-space/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - 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 - **filter_list**: array of user id\'s to get names for - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listUsers: async (options: any = {}): Promise => { - const localVarPath = `/api/user/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {number} [id] Returns the shopping list entry with a primary key of id. Multiple values allowed. - * @param {string} [checked] Filter shopping list entries on checked. [true, false, both, <b>recent</b>]<br> - recent includes unchecked items and recently completed items. - * @param {number} [supermarket] Returns the shopping list entries sorted by supermarket category order. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listViewLogs: async (page?: number, pageSize?: number, options: any = {}): Promise => { - const localVarPath = `/api/view-log/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - if (page !== undefined) { - localVarQueryParameter['page'] = page; - } - - if (pageSize !== undefined) { - localVarQueryParameter['page_size'] = pageSize; - } - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * function to reset inheritance from api, see food method for docs - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listresetFoodInheritances: async (options: any = {}): Promise => { - const localVarPath = `/api/reset-food-inheritance/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this food. - * @param {string} target - * @param {Food} [food] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - mergeFood: async (id: string, target: string, food?: Food, options: any = {}): Promise => { + apiCustomFilterPartialUpdate: async (id: number, patchedCustomFilter?: PatchedCustomFilter, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined - assertParamExists('mergeFood', 'id', id) + assertParamExists('apiCustomFilterPartialUpdate', 'id', id) + const localVarPath = `/api/custom-filter/{id}/` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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(patchedCustomFilter, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {number} id A unique integer value identifying this custom filter. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiCustomFilterRetrieve: async (id: number, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiCustomFilterRetrieve', 'id', id) + const localVarPath = `/api/custom-filter/{id}/` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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 A unique integer value identifying this custom filter. + * @param {CustomFilter} customFilter + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiCustomFilterUpdate: async (id: number, customFilter: CustomFilter, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiCustomFilterUpdate', 'id', id) + // verify required parameter 'customFilter' is not null or undefined + assertParamExists('apiCustomFilterUpdate', 'customFilter', customFilter) + const localVarPath = `/api/custom-filter/{id}/` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(customFilter, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * function to download a user file securely (wrapping as zip to prevent any context based XSS problems) temporary solution until a real file manager is implemented + * @param {number} fileId + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiDownloadFileRetrieve: async (fileId: number, options: any = {}): Promise => { + // verify required parameter 'fileId' is not null or undefined + assertParamExists('apiDownloadFileRetrieve', 'fileId', fileId) + const localVarPath = `/api/download-file/{fileId}/` + .replace(`{${"fileId"}}`, encodeURIComponent(String(fileId))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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 {ExportLog} exportLog + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiExportLogCreate: async (exportLog: ExportLog, options: any = {}): Promise => { + // verify required parameter 'exportLog' is not null or undefined + assertParamExists('apiExportLogCreate', 'exportLog', exportLog) + const localVarPath = `/api/export-log/`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(exportLog, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {number} id A unique integer value identifying this export log. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiExportLogDestroy: async (id: number, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiExportLogDestroy', 'id', id) + const localVarPath = `/api/export-log/{id}/` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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} + */ + apiExportLogList: async (page?: number, pageSize?: number, options: any = {}): Promise => { + const localVarPath = `/api/export-log/`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + 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 A unique integer value identifying this export log. + * @param {PatchedExportLog} [patchedExportLog] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiExportLogPartialUpdate: async (id: number, patchedExportLog?: PatchedExportLog, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiExportLogPartialUpdate', 'id', id) + const localVarPath = `/api/export-log/{id}/` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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(patchedExportLog, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {number} id A unique integer value identifying this export log. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiExportLogRetrieve: async (id: number, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiExportLogRetrieve', 'id', id) + const localVarPath = `/api/export-log/{id}/` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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 A unique integer value identifying this export log. + * @param {ExportLog} exportLog + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiExportLogUpdate: async (id: number, exportLog: ExportLog, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiExportLogUpdate', 'id', id) + // verify required parameter 'exportLog' is not null or undefined + assertParamExists('apiExportLogUpdate', 'exportLog', exportLog) + const localVarPath = `/api/export-log/{id}/` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(exportLog, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {Food} food + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiFoodCreate: async (food: Food, options: any = {}): Promise => { + // verify required parameter 'food' is not null or undefined + assertParamExists('apiFoodCreate', 'food', food) + 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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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 {number} id A unique integer value identifying this food. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiFoodDestroy: async (id: number, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiFoodDestroy', '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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * updates the food with all possible data from the FDC Api if properties with a fdc_id already exist they will be overridden, if existing properties don\'t have a fdc_id they won\'t be changed + * @param {number} id A unique integer value identifying this food. + * @param {Food} food + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiFoodFdcCreate: async (id: number, food: Food, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiFoodFdcCreate', 'id', id) + // verify required parameter 'food' is not null or undefined + assertParamExists('apiFoodFdcCreate', 'food', food) + const localVarPath = `/api/food/{id}/fdc/` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the 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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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 {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiFoodInheritFieldList: async (options: any = {}): Promise => { + const localVarPath = `/api/food-inherit-field/`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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 A unique integer value identifying this food inherit field. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiFoodInheritFieldRetrieve: async (id: number, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiFoodInheritFieldRetrieve', '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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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} [limit] limit number of entries to return + * @param {number} [page] A page number within the paginated result set. + * @param {number} [pageSize] Number of results to return per page. + * @param {string} [query] lookup if query string is contained within the name, case insensitive + * @param {string} [random] randomly orders entries (only works together with limit) + * @param {number} [root] Return first level children of {obj} with ID [int]. Integer 0 will return root {obj}s. + * @param {number} [tree] Return all self and children of {} with ID [int]. + * @param {string} [updatedAt] if model has an updated_at timestamp, filter only models updated at or after datetime + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiFoodList: async (limit?: string, page?: number, pageSize?: number, query?: string, random?: string, root?: number, tree?: number, updatedAt?: string, options: any = {}): Promise => { + const localVarPath = `/api/food/`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } + + if (pageSize !== undefined) { + localVarQueryParameter['page_size'] = pageSize; + } + + if (query !== undefined) { + localVarQueryParameter['query'] = query; + } + + if (random !== undefined) { + localVarQueryParameter['random'] = random; + } + + if (root !== undefined) { + localVarQueryParameter['root'] = root; + } + + if (tree !== undefined) { + localVarQueryParameter['tree'] = tree; + } + + if (updatedAt !== undefined) { + localVarQueryParameter['updated_at'] = updatedAt; + } + + + + 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 A unique integer value identifying this food. + * @param {string} target + * @param {Food} food + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiFoodMergeUpdate: async (id: number, target: string, food: Food, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiFoodMergeUpdate', 'id', id) // verify required parameter 'target' is not null or undefined - assertParamExists('mergeFood', 'target', target) + assertParamExists('apiFoodMergeUpdate', 'target', target) + // verify required parameter 'food' is not null or undefined + assertParamExists('apiFoodMergeUpdate', 'food', food) const localVarPath = `/api/food/{id}/merge/{target}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))) .replace(`{${"target"}}`, encodeURIComponent(String(target))); @@ -10366,8 +7625,11 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); @@ -10381,141 +7643,20 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }; }, /** - * - * @param {string} id A unique integer value identifying this keyword. - * @param {string} target - * @param {Keyword} [keyword] + * + * @param {number} id A unique integer value identifying this food. + * @param {string} parent + * @param {Food} food * @param {*} [options] Override http request option. * @throws {RequiredError} */ - mergeKeyword: async (id: string, target: string, keyword?: Keyword, options: any = {}): Promise => { + apiFoodMoveUpdate: async (id: number, parent: string, food: Food, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined - assertParamExists('mergeKeyword', 'id', id) - // verify required parameter 'target' is not null or undefined - assertParamExists('mergeKeyword', 'target', target) - const localVarPath = `/api/keyword/{id}/merge/{target}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))) - .replace(`{${"target"}}`, encodeURIComponent(String(target))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(keyword, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this supermarket category. - * @param {string} target - * @param {SupermarketCategory} [supermarketCategory] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - mergeSupermarketCategory: async (id: string, target: string, supermarketCategory?: SupermarketCategory, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('mergeSupermarketCategory', 'id', id) - // verify required parameter 'target' is not null or undefined - assertParamExists('mergeSupermarketCategory', 'target', target) - const localVarPath = `/api/supermarket-category/{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(supermarketCategory, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this unit. - * @param {string} target - * @param {Unit} [unit] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - mergeUnit: async (id: string, target: string, unit?: Unit, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('mergeUnit', 'id', id) - // verify required parameter 'target' is not null or undefined - assertParamExists('mergeUnit', 'target', target) - const localVarPath = `/api/unit/{id}/merge/{target}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))) - .replace(`{${"target"}}`, encodeURIComponent(String(target))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(unit, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this food. - * @param {string} parent - * @param {Food} [food] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - moveFood: async (id: string, parent: string, food?: Food, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('moveFood', 'id', id) + assertParamExists('apiFoodMoveUpdate', 'id', id) // verify required parameter 'parent' is not null or undefined - assertParamExists('moveFood', 'parent', parent) + assertParamExists('apiFoodMoveUpdate', 'parent', parent) + // verify required parameter 'food' is not null or undefined + assertParamExists('apiFoodMoveUpdate', 'food', food) const localVarPath = `/api/food/{id}/move/{parent}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))) .replace(`{${"parent"}}`, encodeURIComponent(String(parent))); @@ -10530,8 +7671,11 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); @@ -10545,18 +7689,1632 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }; }, /** - * - * @param {string} id A unique integer value identifying this keyword. - * @param {string} parent - * @param {Keyword} [keyword] + * + * @param {number} id A unique integer value identifying this food. + * @param {PatchedFood} [patchedFood] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - moveKeyword: async (id: string, parent: string, keyword?: Keyword, options: any = {}): Promise => { + apiFoodPartialUpdate: async (id: number, patchedFood?: PatchedFood, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined - assertParamExists('moveKeyword', 'id', id) + assertParamExists('apiFoodPartialUpdate', '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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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(patchedFood, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {Property} property + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiFoodPropertyCreate: async (property: Property, options: any = {}): Promise => { + // verify required parameter 'property' is not null or undefined + assertParamExists('apiFoodPropertyCreate', 'property', property) + const localVarPath = `/api/food-property/`; + // use dummy base URL string because the 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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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(property, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {number} id A unique integer value identifying this property. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiFoodPropertyDestroy: async (id: number, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiFoodPropertyDestroy', 'id', id) + const localVarPath = `/api/food-property/{id}/` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the 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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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} + */ + apiFoodPropertyList: async (options: any = {}): Promise => { + const localVarPath = `/api/food-property/`; + // use dummy base URL string because the 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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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 A unique integer value identifying this property. + * @param {PatchedProperty} [patchedProperty] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiFoodPropertyPartialUpdate: async (id: number, patchedProperty?: PatchedProperty, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiFoodPropertyPartialUpdate', 'id', id) + const localVarPath = `/api/food-property/{id}/` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the 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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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(patchedProperty, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {number} id A unique integer value identifying this property. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiFoodPropertyRetrieve: async (id: number, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiFoodPropertyRetrieve', 'id', id) + const localVarPath = `/api/food-property/{id}/` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the 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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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 {PropertyType} propertyType + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiFoodPropertyTypeCreate: async (propertyType: PropertyType, options: any = {}): Promise => { + // verify required parameter 'propertyType' is not null or undefined + assertParamExists('apiFoodPropertyTypeCreate', 'propertyType', propertyType) + const localVarPath = `/api/food-property-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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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(propertyType, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {number} id A unique integer value identifying this property type. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiFoodPropertyTypeDestroy: async (id: number, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiFoodPropertyTypeDestroy', 'id', id) + const localVarPath = `/api/food-property-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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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} + */ + apiFoodPropertyTypeList: async (options: any = {}): Promise => { + const localVarPath = `/api/food-property-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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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 A unique integer value identifying this property type. + * @param {PatchedPropertyType} [patchedPropertyType] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiFoodPropertyTypePartialUpdate: async (id: number, patchedPropertyType?: PatchedPropertyType, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiFoodPropertyTypePartialUpdate', 'id', id) + const localVarPath = `/api/food-property-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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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(patchedPropertyType, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {number} id A unique integer value identifying this property type. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiFoodPropertyTypeRetrieve: async (id: number, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiFoodPropertyTypeRetrieve', 'id', id) + const localVarPath = `/api/food-property-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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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 A unique integer value identifying this property type. + * @param {PropertyType} propertyType + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiFoodPropertyTypeUpdate: async (id: number, propertyType: PropertyType, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiFoodPropertyTypeUpdate', 'id', id) + // verify required parameter 'propertyType' is not null or undefined + assertParamExists('apiFoodPropertyTypeUpdate', 'propertyType', propertyType) + const localVarPath = `/api/food-property-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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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(propertyType, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {number} id A unique integer value identifying this property. + * @param {Property} property + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiFoodPropertyUpdate: async (id: number, property: Property, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiFoodPropertyUpdate', 'id', id) + // verify required parameter 'property' is not null or undefined + assertParamExists('apiFoodPropertyUpdate', 'property', property) + const localVarPath = `/api/food-property/{id}/` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the 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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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(property, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {number} id A unique integer value identifying this food. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiFoodRetrieve: async (id: number, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiFoodRetrieve', '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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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 A unique integer value identifying this food. + * @param {FoodShoppingUpdate} foodShoppingUpdate + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiFoodShoppingUpdate: async (id: number, foodShoppingUpdate: FoodShoppingUpdate, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiFoodShoppingUpdate', 'id', id) + // verify required parameter 'foodShoppingUpdate' is not null or undefined + assertParamExists('apiFoodShoppingUpdate', 'foodShoppingUpdate', foodShoppingUpdate) + 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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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 {number} id A unique integer value identifying this food. + * @param {Food} food + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiFoodUpdate: async (id: number, food: Food, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiFoodUpdate', 'id', id) + // verify required parameter 'food' is not null or undefined + assertParamExists('apiFoodUpdate', 'food', food) + 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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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 {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiGroupList: async (options: any = {}): Promise => { + const localVarPath = `/api/group/`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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 A unique integer value identifying this group. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiGroupRetrieve: async (id: number, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiGroupRetrieve', 'id', id) + const localVarPath = `/api/group/{id}/` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * function to handle files passed by application importer + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiImportCreate: async (options: any = {}): Promise => { + const localVarPath = `/api/import/`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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 {ImportLog} importLog + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiImportLogCreate: async (importLog: ImportLog, options: any = {}): Promise => { + // verify required parameter 'importLog' is not null or undefined + assertParamExists('apiImportLogCreate', 'importLog', importLog) + 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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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 {number} id A unique integer value identifying this import log. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiImportLogDestroy: async (id: number, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiImportLogDestroy', '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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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} + */ + apiImportLogList: async (page?: number, pageSize?: number, options: any = {}): Promise => { + const localVarPath = `/api/import-log/`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + 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 A unique integer value identifying this import log. + * @param {PatchedImportLog} [patchedImportLog] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiImportLogPartialUpdate: async (id: number, patchedImportLog?: PatchedImportLog, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiImportLogPartialUpdate', '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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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(patchedImportLog, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {number} id A unique integer value identifying this import log. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiImportLogRetrieve: async (id: number, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiImportLogRetrieve', '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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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 A unique integer value identifying this import log. + * @param {ImportLog} importLog + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiImportLogUpdate: async (id: number, importLog: ImportLog, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiImportLogUpdate', 'id', id) + // verify required parameter 'importLog' is not null or undefined + assertParamExists('apiImportLogUpdate', 'importLog', importLog) + 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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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} + */ + apiIngredientCreate: async (ingredient: Ingredient, options: any = {}): Promise => { + // verify required parameter 'ingredient' is not null or undefined + assertParamExists('apiIngredientCreate', 'ingredient', ingredient) + 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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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 {number} id A unique integer value identifying this ingredient. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiIngredientDestroy: async (id: number, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiIngredientDestroy', '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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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} + */ + apiIngredientList: async (page?: number, pageSize?: number, options: any = {}): Promise => { + const localVarPath = `/api/ingredient/`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + 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 A unique integer value identifying this ingredient. + * @param {PatchedIngredient} [patchedIngredient] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiIngredientPartialUpdate: async (id: number, patchedIngredient?: PatchedIngredient, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiIngredientPartialUpdate', '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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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(patchedIngredient, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {number} id A unique integer value identifying this ingredient. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiIngredientRetrieve: async (id: number, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiIngredientRetrieve', '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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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 A unique integer value identifying this ingredient. + * @param {Ingredient} ingredient + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiIngredientUpdate: async (id: number, ingredient: Ingredient, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiIngredientUpdate', 'id', id) + // verify required parameter 'ingredient' is not null or undefined + assertParamExists('apiIngredientUpdate', 'ingredient', ingredient) + 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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(ingredient, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {InviteLink} inviteLink + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiInviteLinkCreate: async (inviteLink: InviteLink, options: any = {}): Promise => { + // verify required parameter 'inviteLink' is not null or undefined + assertParamExists('apiInviteLinkCreate', 'inviteLink', inviteLink) + const localVarPath = `/api/invite-link/`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(inviteLink, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {number} id A unique integer value identifying this invite link. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiInviteLinkDestroy: async (id: number, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiInviteLinkDestroy', 'id', id) + const localVarPath = `/api/invite-link/{id}/` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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} [limit] limit number of entries to return + * @param {string} [query] lookup if query string is contained within the name, case insensitive + * @param {string} [random] randomly orders entries (only works together with limit) + * @param {string} [updatedAt] if model has an updated_at timestamp, filter only models updated at or after datetime + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiInviteLinkList: async (limit?: string, query?: string, random?: string, updatedAt?: string, options: any = {}): Promise => { + const localVarPath = `/api/invite-link/`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + if (query !== undefined) { + localVarQueryParameter['query'] = query; + } + + if (random !== undefined) { + localVarQueryParameter['random'] = random; + } + + if (updatedAt !== undefined) { + localVarQueryParameter['updated_at'] = updatedAt; + } + + + + 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 A unique integer value identifying this invite link. + * @param {PatchedInviteLink} [patchedInviteLink] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiInviteLinkPartialUpdate: async (id: number, patchedInviteLink?: PatchedInviteLink, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiInviteLinkPartialUpdate', 'id', id) + const localVarPath = `/api/invite-link/{id}/` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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(patchedInviteLink, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {number} id A unique integer value identifying this invite link. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiInviteLinkRetrieve: async (id: number, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiInviteLinkRetrieve', 'id', id) + const localVarPath = `/api/invite-link/{id}/` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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 A unique integer value identifying this invite link. + * @param {InviteLink} inviteLink + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiInviteLinkUpdate: async (id: number, inviteLink: InviteLink, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiInviteLinkUpdate', 'id', id) + // verify required parameter 'inviteLink' is not null or undefined + assertParamExists('apiInviteLinkUpdate', 'inviteLink', inviteLink) + const localVarPath = `/api/invite-link/{id}/` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(inviteLink, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {Keyword} keyword + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiKeywordCreate: async (keyword: Keyword, options: any = {}): Promise => { + // verify required parameter 'keyword' is not null or undefined + assertParamExists('apiKeywordCreate', 'keyword', keyword) + 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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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 {number} id A unique integer value identifying this keyword. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiKeywordDestroy: async (id: number, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiKeywordDestroy', '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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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} [limit] limit number of entries to return + * @param {number} [page] A page number within the paginated result set. + * @param {number} [pageSize] Number of results to return per page. + * @param {string} [query] lookup if query string is contained within the name, case insensitive + * @param {string} [random] randomly orders entries (only works together with limit) + * @param {number} [root] Return first level children of {obj} with ID [int]. Integer 0 will return root {obj}s. + * @param {number} [tree] Return all self and children of {} with ID [int]. + * @param {string} [updatedAt] if model has an updated_at timestamp, filter only models updated at or after datetime + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiKeywordList: async (limit?: string, page?: number, pageSize?: number, query?: string, random?: string, root?: number, tree?: number, updatedAt?: string, options: any = {}): Promise => { + const localVarPath = `/api/keyword/`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } + + if (pageSize !== undefined) { + localVarQueryParameter['page_size'] = pageSize; + } + + if (query !== undefined) { + localVarQueryParameter['query'] = query; + } + + if (random !== undefined) { + localVarQueryParameter['random'] = random; + } + + if (root !== undefined) { + localVarQueryParameter['root'] = root; + } + + if (tree !== undefined) { + localVarQueryParameter['tree'] = tree; + } + + if (updatedAt !== undefined) { + localVarQueryParameter['updated_at'] = updatedAt; + } + + + + 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 A unique integer value identifying this keyword. + * @param {string} target + * @param {Keyword} keyword + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiKeywordMergeUpdate: async (id: number, target: string, keyword: Keyword, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiKeywordMergeUpdate', 'id', id) + // verify required parameter 'target' is not null or undefined + assertParamExists('apiKeywordMergeUpdate', 'target', target) + // verify required parameter 'keyword' is not null or undefined + assertParamExists('apiKeywordMergeUpdate', 'keyword', keyword) + 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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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 {number} id A unique integer value identifying this keyword. + * @param {string} parent + * @param {Keyword} keyword + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiKeywordMoveUpdate: async (id: number, parent: string, keyword: Keyword, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiKeywordMoveUpdate', 'id', id) // verify required parameter 'parent' is not null or undefined - assertParamExists('moveKeyword', 'parent', parent) + assertParamExists('apiKeywordMoveUpdate', 'parent', parent) + // verify required parameter 'keyword' is not null or undefined + assertParamExists('apiKeywordMoveUpdate', 'keyword', keyword) const localVarPath = `/api/keyword/{id}/move/{parent}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))) .replace(`{${"parent"}}`, encodeURIComponent(String(parent))); @@ -10571,8 +9329,11 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); @@ -10586,422 +9347,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }; }, /** - * - * @param {string} id A unique integer value identifying this access token. - * @param {AccessToken} [accessToken] + * + * @param {number} id A unique integer value identifying this keyword. + * @param {PatchedKeyword} [patchedKeyword] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - partialUpdateAccessToken: async (id: string, accessToken?: AccessToken, options: any = {}): Promise => { + apiKeywordPartialUpdate: async (id: number, patchedKeyword?: PatchedKeyword, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined - assertParamExists('partialUpdateAccessToken', 'id', id) - const localVarPath = `/api/access-token/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the 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(accessToken, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this automation. - * @param {Automation} [automation] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - partialUpdateAutomation: async (id: string, automation?: Automation, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('partialUpdateAutomation', 'id', id) - const localVarPath = `/api/automation/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(automation, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this bookmarklet import. - * @param {BookmarkletImport} [bookmarkletImport] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - partialUpdateBookmarkletImport: async (id: string, bookmarkletImport?: BookmarkletImport, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('partialUpdateBookmarkletImport', 'id', id) - const localVarPath = `/api/bookmarklet-import/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(bookmarkletImport, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this connector config. - * @param {ConnectorConfigConfig} [connectorConfigConfig] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - partialUpdateConnectorConfig: async (id: string, connectorConfigConfig?: ConnectorConfigConfig, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('partialUpdateConnectorConfig', 'id', id) - const localVarPath = `/api/connector-config/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the 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(connectorConfigConfig, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this cook log. - * @param {CookLog} [cookLog] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - partialUpdateCookLog: async (id: string, cookLog?: CookLog, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('partialUpdateCookLog', 'id', id) - const localVarPath = `/api/cook-log/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(cookLog, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this custom filter. - * @param {CustomFilter} [customFilter] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - partialUpdateCustomFilter: async (id: string, customFilter?: CustomFilter, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('partialUpdateCustomFilter', 'id', id) - const localVarPath = `/api/custom-filter/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(customFilter, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this export log. - * @param {ExportLog} [exportLog] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - partialUpdateExportLog: async (id: string, exportLog?: ExportLog, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('partialUpdateExportLog', 'id', id) - const localVarPath = `/api/export-log/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(exportLog, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this food. - * @param {Food} [food] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - partialUpdateFood: async (id: string, food?: Food, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('partialUpdateFood', 'id', id) - const localVarPath = `/api/food/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(food, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this import log. - * @param {ImportLog} [importLog] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - partialUpdateImportLog: async (id: string, importLog?: ImportLog, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('partialUpdateImportLog', 'id', id) - const localVarPath = `/api/import-log/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(importLog, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this ingredient. - * @param {Ingredient} [ingredient] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - partialUpdateIngredient: async (id: string, ingredient?: Ingredient, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('partialUpdateIngredient', 'id', id) - const localVarPath = `/api/ingredient/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(ingredient, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this invite link. - * @param {InviteLink} [inviteLink] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - partialUpdateInviteLink: async (id: string, inviteLink?: InviteLink, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('partialUpdateInviteLink', 'id', id) - const localVarPath = `/api/invite-link/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(inviteLink, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this keyword. - * @param {Keyword} [keyword] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - partialUpdateKeyword: async (id: string, keyword?: Keyword, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('partialUpdateKeyword', 'id', id) + assertParamExists('apiKeywordPartialUpdate', '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. @@ -11015,8 +9369,89 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + 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(patchedKeyword, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {number} id A unique integer value identifying this keyword. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiKeywordRetrieve: async (id: number, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiKeywordRetrieve', '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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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 A unique integer value identifying this keyword. + * @param {Keyword} keyword + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiKeywordUpdate: async (id: number, keyword: Keyword, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiKeywordUpdate', 'id', id) + // verify required parameter 'keyword' is not null or undefined + assertParamExists('apiKeywordUpdate', 'keyword', keyword) + 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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); @@ -11030,15 +9465,183 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }; }, /** - * - * @param {string} id A unique integer value identifying this meal plan. - * @param {MealPlan} [mealPlan] + * list: optional parameters - **from_date**: filter from (inclusive) a certain date onward - **to_date**: filter upward to (inclusive) certain date - **meal_type**: filter meal plans based on meal_type ID + * @param {MealPlan} mealPlan * @param {*} [options] Override http request option. * @throws {RequiredError} */ - partialUpdateMealPlan: async (id: string, mealPlan?: MealPlan, options: any = {}): Promise => { + apiMealPlanCreate: async (mealPlan: MealPlan, options: any = {}): Promise => { + // verify required parameter 'mealPlan' is not null or undefined + assertParamExists('apiMealPlanCreate', 'mealPlan', mealPlan) + 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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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, + }; + }, + /** + * list: optional parameters - **from_date**: filter from (inclusive) a certain date onward - **to_date**: filter upward to (inclusive) certain date - **meal_type**: filter meal plans based on meal_type ID + * @param {number} id A unique integer value identifying this meal plan. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiMealPlanDestroy: async (id: number, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined - assertParamExists('partialUpdateMealPlan', 'id', id) + assertParamExists('apiMealPlanDestroy', '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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * list: optional parameters - **from_date**: filter from (inclusive) a certain date onward - **to_date**: filter upward to (inclusive) certain date - **meal_type**: filter meal plans based on meal_type ID + * @param {string} [fromDate] Filter meal plans from date (inclusive) in the format of YYYY-MM-DD. + * @param {string} [mealType] Filter meal plans with MealType ID. For multiple repeat parameter. + * @param {string} [toDate] Filter meal plans to date (inclusive) in the format of YYYY-MM-DD. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiMealPlanIcalRetrieve: async (fromDate?: string, mealType?: string, toDate?: string, options: any = {}): Promise => { + const localVarPath = `/api/meal-plan/ical/`; + // use dummy base URL string because the 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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + if (fromDate !== undefined) { + localVarQueryParameter['from_date'] = fromDate; + } + + if (mealType !== undefined) { + localVarQueryParameter['meal_type'] = mealType; + } + + if (toDate !== undefined) { + localVarQueryParameter['to_date'] = toDate; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * list: optional parameters - **from_date**: filter from (inclusive) a certain date onward - **to_date**: filter upward to (inclusive) certain date - **meal_type**: filter meal plans based on meal_type ID + * @param {string} [fromDate] Filter meal plans from date (inclusive) in the format of YYYY-MM-DD. + * @param {string} [mealType] Filter meal plans with MealType ID. For multiple repeat parameter. + * @param {string} [toDate] Filter meal plans to date (inclusive) in the format of YYYY-MM-DD. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiMealPlanList: async (fromDate?: string, mealType?: string, toDate?: string, options: any = {}): Promise => { + const localVarPath = `/api/meal-plan/`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + if (fromDate !== undefined) { + localVarQueryParameter['from_date'] = fromDate; + } + + if (mealType !== undefined) { + localVarQueryParameter['meal_type'] = mealType; + } + + if (toDate !== undefined) { + localVarQueryParameter['to_date'] = toDate; + } + + + + setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * list: optional parameters - **from_date**: filter from (inclusive) a certain date onward - **to_date**: filter upward to (inclusive) certain date - **meal_type**: filter meal plans based on meal_type ID + * @param {number} id A unique integer value identifying this meal plan. + * @param {PatchedMealPlan} [patchedMealPlan] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiMealPlanPartialUpdate: async (id: number, patchedMealPlan?: PatchedMealPlan, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiMealPlanPartialUpdate', '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. @@ -11052,8 +9655,89 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + 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(patchedMealPlan, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * list: optional parameters - **from_date**: filter from (inclusive) a certain date onward - **to_date**: filter upward to (inclusive) certain date - **meal_type**: filter meal plans based on meal_type ID + * @param {number} id A unique integer value identifying this meal plan. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiMealPlanRetrieve: async (id: number, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiMealPlanRetrieve', '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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * list: optional parameters - **from_date**: filter from (inclusive) a certain date onward - **to_date**: filter upward to (inclusive) certain date - **meal_type**: filter meal plans based on meal_type ID + * @param {number} id A unique integer value identifying this meal plan. + * @param {MealPlan} mealPlan + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiMealPlanUpdate: async (id: number, mealPlan: MealPlan, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiMealPlanUpdate', 'id', id) + // verify required parameter 'mealPlan' is not null or undefined + assertParamExists('apiMealPlanUpdate', 'mealPlan', mealPlan) + 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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); @@ -11068,16 +9752,14 @@ export const ApiApiAxiosParamCreator = function (configuration?: 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 {MealType} mealType * @param {*} [options] Override http request option. * @throws {RequiredError} */ - partialUpdateMealType: async (id: string, mealType?: MealType, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('partialUpdateMealType', 'id', id) - const localVarPath = `/api/meal-type/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); + apiMealTypeCreate: async (mealType: MealType, options: any = {}): Promise => { + // verify required parameter 'mealType' is not null or undefined + assertParamExists('apiMealTypeCreate', 'mealType', mealType) + 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; @@ -11085,12 +9767,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) baseOptions = configuration.baseOptions; } - const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); @@ -11104,16 +9789,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }; }, /** - * - * @param {string} id A unique integer value identifying this open data category. - * @param {OpenDataCategory} [openDataCategory] + * returns list of meal types created by the requesting user ordered by the order field. + * @param {number} id A unique integer value identifying this meal type. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - partialUpdateOpenDataCategory: async (id: string, openDataCategory?: OpenDataCategory, options: any = {}): Promise => { + apiMealTypeDestroy: async (id: number, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined - assertParamExists('partialUpdateOpenDataCategory', 'id', id) - const localVarPath = `/api/open-data-category/{id}/` + assertParamExists('apiMealTypeDestroy', '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); @@ -11122,18 +9806,18 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) baseOptions = configuration.baseOptions; } - const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - 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(openDataCategory, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -11141,17 +9825,12 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }; }, /** - * - * @param {string} id A unique integer value identifying this open data conversion. - * @param {OpenDataConversion} [openDataConversion] + * returns list of meal types created by the requesting user ordered by the order field. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - partialUpdateOpenDataConversion: async (id: string, openDataConversion?: OpenDataConversion, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('partialUpdateOpenDataConversion', 'id', id) - const localVarPath = `/api/open-data-conversion/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); + apiMealTypeList: async (options: any = {}): Promise => { + const localVarPath = `/api/meal-type/`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -11159,18 +9838,18 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) baseOptions = configuration.baseOptions; } - const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - 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(openDataConversion, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -11178,16 +9857,16 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }; }, /** - * - * @param {string} id A unique integer value identifying this open data food. - * @param {OpenDataFood} [openDataFood] + * returns list of meal types created by the requesting user ordered by the order field. + * @param {number} id A unique integer value identifying this meal type. + * @param {PatchedMealType} [patchedMealType] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - partialUpdateOpenDataFood: async (id: string, openDataFood?: OpenDataFood, options: any = {}): Promise => { + apiMealTypePartialUpdate: async (id: number, patchedMealType?: PatchedMealType, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined - assertParamExists('partialUpdateOpenDataFood', 'id', id) - const localVarPath = `/api/open-data-food/{id}/` + assertParamExists('apiMealTypePartialUpdate', '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); @@ -11200,14 +9879,17 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + 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(openDataFood, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(patchedMealType, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -11215,16 +9897,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }; }, /** - * - * @param {string} id A unique integer value identifying this open data property. - * @param {OpenDataProperty} [openDataProperty] + * returns list of meal types created by the requesting user ordered by the order field. + * @param {number} id A unique integer value identifying this meal type. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - partialUpdateOpenDataProperty: async (id: string, openDataProperty?: OpenDataProperty, options: any = {}): Promise => { + apiMealTypeRetrieve: async (id: number, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined - assertParamExists('partialUpdateOpenDataProperty', 'id', id) - const localVarPath = `/api/open-data-property/{id}/` + assertParamExists('apiMealTypeRetrieve', '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); @@ -11233,18 +9914,18 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) baseOptions = configuration.baseOptions; } - const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - 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(openDataProperty, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -11252,16 +9933,18 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }; }, /** - * - * @param {string} id A unique integer value identifying this open data store. - * @param {OpenDataStore} [openDataStore] + * returns list of meal types created by the requesting user ordered by the order field. + * @param {number} id A unique integer value identifying this meal type. + * @param {MealType} mealType * @param {*} [options] Override http request option. * @throws {RequiredError} */ - partialUpdateOpenDataStore: async (id: string, openDataStore?: OpenDataStore, options: any = {}): Promise => { + apiMealTypeUpdate: async (id: number, mealType: MealType, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined - assertParamExists('partialUpdateOpenDataStore', 'id', id) - const localVarPath = `/api/open-data-store/{id}/` + assertParamExists('apiMealTypeUpdate', 'id', id) + // verify required parameter 'mealType' is not null or undefined + assertParamExists('apiMealTypeUpdate', 'mealType', mealType) + 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); @@ -11270,18 +9953,21 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) baseOptions = configuration.baseOptions; } - const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + 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(openDataStore, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(mealType, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -11289,17 +9975,20 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }; }, /** - * - * @param {string} id A unique integer value identifying this open data unit. - * @param {OpenDataUnit} [openDataUnit] + * + * @param {string} fromDate + * @param {string} toDate * @param {*} [options] Override http request option. * @throws {RequiredError} */ - partialUpdateOpenDataUnit: async (id: string, openDataUnit?: OpenDataUnit, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('partialUpdateOpenDataUnit', 'id', id) - const localVarPath = `/api/open-data-unit/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); + apiPlanIcalRetrieve: async (fromDate: string, toDate: string, options: any = {}): Promise => { + // verify required parameter 'fromDate' is not null or undefined + assertParamExists('apiPlanIcalRetrieve', 'fromDate', fromDate) + // verify required parameter 'toDate' is not null or undefined + assertParamExists('apiPlanIcalRetrieve', 'toDate', toDate) + const localVarPath = `/api/plan-ical/{fromDate}/{toDate}/` + .replace(`{${"fromDate"}}`, encodeURIComponent(String(fromDate))) + .replace(`{${"toDate"}}`, encodeURIComponent(String(toDate))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -11307,18 +9996,18 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) baseOptions = configuration.baseOptions; } - const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - 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(openDataUnit, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -11326,17 +10015,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }; }, /** - * - * @param {string} id A unique integer value identifying this open data version. - * @param {OpenDataVersion} [openDataVersion] + * + * @param {RecipeBook} recipeBook * @param {*} [options] Override http request option. * @throws {RequiredError} */ - partialUpdateOpenDataVersion: async (id: string, openDataVersion?: OpenDataVersion, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('partialUpdateOpenDataVersion', 'id', id) - const localVarPath = `/api/open-data-version/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); + apiRecipeBookCreate: async (recipeBook: RecipeBook, options: any = {}): Promise => { + // verify required parameter 'recipeBook' is not null or undefined + assertParamExists('apiRecipeBookCreate', 'recipeBook', recipeBook) + 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; @@ -11344,160 +10031,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: 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(openDataVersion, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this property. - * @param {Property} [property] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - partialUpdateProperty: async (id: string, property?: Property, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('partialUpdateProperty', 'id', id) - const localVarPath = `/api/food-property/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the 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(property, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this property type. - * @param {PropertyType} [propertyType] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - partialUpdatePropertyType: async (id: string, propertyType?: PropertyType, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('partialUpdatePropertyType', 'id', id) - const localVarPath = `/api/food-property-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(propertyType, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this recipe. - * @param {Recipe} [recipe] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - partialUpdateRecipe: async (id: string, recipe?: Recipe, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('partialUpdateRecipe', 'id', id) - const localVarPath = `/api/recipe/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(recipe, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this recipe book. - * @param {RecipeBook} [recipeBook] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - partialUpdateRecipeBook: async (id: string, recipeBook?: RecipeBook, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('partialUpdateRecipeBook', 'id', id) - const localVarPath = `/api/recipe-book/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); @@ -11511,16 +10053,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }; }, /** - * - * @param {string} id A unique integer value identifying this recipe book entry. - * @param {RecipeBookEntry} [recipeBookEntry] + * + * @param {number} id A unique integer value identifying this recipe book. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - partialUpdateRecipeBookEntry: async (id: string, recipeBookEntry?: RecipeBookEntry, options: any = {}): Promise => { + apiRecipeBookDestroy: async (id: number, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined - assertParamExists('partialUpdateRecipeBookEntry', 'id', id) - const localVarPath = `/api/recipe-book-entry/{id}/` + assertParamExists('apiRecipeBookDestroy', '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); @@ -11529,12 +10070,50 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) baseOptions = configuration.baseOptions; } - const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * list: optional parameters - **recipe**: id of recipe - only return books for that recipe - **book**: id of book - only return recipes in that book + * @param {RecipeBookEntry} recipeBookEntry + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiRecipeBookEntryCreate: async (recipeBookEntry: RecipeBookEntry, options: any = {}): Promise => { + // verify required parameter 'recipeBookEntry' is not null or undefined + assertParamExists('apiRecipeBookEntryCreate', 'recipeBookEntry', recipeBookEntry) + 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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); @@ -11548,16 +10127,84 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }; }, /** - * - * @param {string} id A unique integer value identifying this shopping list. - * @param {ShoppingList} [shoppingList] + * list: optional parameters - **recipe**: id of recipe - only return books for that recipe - **book**: id of book - only return recipes in that book + * @param {number} id A unique integer value identifying this recipe book entry. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - partialUpdateShoppingList: async (id: string, shoppingList?: ShoppingList, options: any = {}): Promise => { + apiRecipeBookEntryDestroy: async (id: number, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined - assertParamExists('partialUpdateShoppingList', 'id', id) - const localVarPath = `/api/shopping-list/{id}/` + assertParamExists('apiRecipeBookEntryDestroy', '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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * list: 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} + */ + apiRecipeBookEntryList: async (options: any = {}): Promise => { + const localVarPath = `/api/recipe-book-entry/`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * list: optional parameters - **recipe**: id of recipe - only return books for that recipe - **book**: id of book - only return recipes in that book + * @param {number} id A unique integer value identifying this recipe book entry. + * @param {PatchedRecipeBookEntry} [patchedRecipeBookEntry] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiRecipeBookEntryPartialUpdate: async (id: number, patchedRecipeBookEntry?: PatchedRecipeBookEntry, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiRecipeBookEntryPartialUpdate', '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); @@ -11570,14 +10217,17 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + 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) + localVarRequestOptions.data = serializeDataIfNeeded(patchedRecipeBookEntry, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -11585,16 +10235,146 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }; }, /** - * - * @param {string} id A unique integer value identifying this shopping list entry. - * @param {ShoppingListEntry} [shoppingListEntry] + * list: optional parameters - **recipe**: id of recipe - only return books for that recipe - **book**: id of book - only return recipes in that book + * @param {number} id A unique integer value identifying this recipe book entry. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - partialUpdateShoppingListEntry: async (id: string, shoppingListEntry?: ShoppingListEntry, options: any = {}): Promise => { + apiRecipeBookEntryRetrieve: async (id: number, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined - assertParamExists('partialUpdateShoppingListEntry', 'id', id) - const localVarPath = `/api/shopping-list-entry/{id}/` + assertParamExists('apiRecipeBookEntryRetrieve', '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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * list: optional parameters - **recipe**: id of recipe - only return books for that recipe - **book**: id of book - only return recipes in that book + * @param {number} id A unique integer value identifying this recipe book entry. + * @param {RecipeBookEntry} recipeBookEntry + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiRecipeBookEntryUpdate: async (id: number, recipeBookEntry: RecipeBookEntry, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiRecipeBookEntryUpdate', 'id', id) + // verify required parameter 'recipeBookEntry' is not null or undefined + assertParamExists('apiRecipeBookEntryUpdate', 'recipeBookEntry', recipeBookEntry) + 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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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} [limit] limit number of entries to return + * @param {string} [query] lookup if query string is contained within the name, case insensitive + * @param {string} [random] randomly orders entries (only works together with limit) + * @param {string} [updatedAt] if model has an updated_at timestamp, filter only models updated at or after datetime + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiRecipeBookList: async (limit?: string, query?: string, random?: string, updatedAt?: string, options: any = {}): Promise => { + const localVarPath = `/api/recipe-book/`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + if (query !== undefined) { + localVarQueryParameter['query'] = query; + } + + if (random !== undefined) { + localVarQueryParameter['random'] = random; + } + + if (updatedAt !== undefined) { + localVarQueryParameter['updated_at'] = updatedAt; + } + + + + 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 A unique integer value identifying this recipe book. + * @param {PatchedRecipeBook} [patchedRecipeBook] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiRecipeBookPartialUpdate: async (id: number, patchedRecipeBook?: PatchedRecipeBook, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiRecipeBookPartialUpdate', '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); @@ -11607,14 +10387,17 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + 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) + localVarRequestOptions.data = serializeDataIfNeeded(patchedRecipeBook, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -11622,16 +10405,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }; }, /** - * - * @param {string} id A unique integer value identifying this shopping list recipe. - * @param {ShoppingListRecipe} [shoppingListRecipe] + * + * @param {number} id A unique integer value identifying this recipe book. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - partialUpdateShoppingListRecipe: async (id: string, shoppingListRecipe?: ShoppingListRecipe, options: any = {}): Promise => { + apiRecipeBookRetrieve: async (id: number, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined - assertParamExists('partialUpdateShoppingListRecipe', 'id', id) - const localVarPath = `/api/shopping-list-recipe/{id}/` + assertParamExists('apiRecipeBookRetrieve', '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); @@ -11640,18 +10422,18 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) baseOptions = configuration.baseOptions; } - const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - 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), @@ -11659,16 +10441,18 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }; }, /** - * - * @param {string} id A unique integer value identifying this space. - * @param {Space} [space] + * + * @param {number} id A unique integer value identifying this recipe book. + * @param {RecipeBook} recipeBook * @param {*} [options] Override http request option. * @throws {RequiredError} */ - partialUpdateSpace: async (id: string, space?: Space, options: any = {}): Promise => { + apiRecipeBookUpdate: async (id: number, recipeBook: RecipeBook, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined - assertParamExists('partialUpdateSpace', 'id', id) - const localVarPath = `/api/space/{id}/` + assertParamExists('apiRecipeBookUpdate', 'id', id) + // verify required parameter 'recipeBook' is not null or undefined + assertParamExists('apiRecipeBookUpdate', 'recipeBook', recipeBook) + 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); @@ -11677,18 +10461,21 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) baseOptions = configuration.baseOptions; } - const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(space, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(recipeBook, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -11696,17 +10483,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }; }, /** - * - * @param {string} id A unique integer value identifying this step. - * @param {Step} [step] + * + * @param {Recipe} recipe * @param {*} [options] Override http request option. * @throws {RequiredError} */ - partialUpdateStep: async (id: string, step?: Step, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('partialUpdateStep', 'id', id) - const localVarPath = `/api/step/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); + apiRecipeCreate: async (recipe: Recipe, options: any = {}): Promise => { + // verify required parameter 'recipe' is not null or undefined + assertParamExists('apiRecipeCreate', 'recipe', recipe) + 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; @@ -11714,18 +10499,21 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) baseOptions = configuration.baseOptions; } - const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + 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) + localVarRequestOptions.data = serializeDataIfNeeded(recipe, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -11733,16 +10521,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }; }, /** - * - * @param {string} id A unique integer value identifying this storage. - * @param {Storage} [storage] + * + * @param {number} id A unique integer value identifying this recipe. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - partialUpdateStorage: async (id: string, storage?: Storage, options: any = {}): Promise => { + apiRecipeDestroy: async (id: number, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined - assertParamExists('partialUpdateStorage', 'id', id) - const localVarPath = `/api/storage/{id}/` + assertParamExists('apiRecipeDestroy', '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); @@ -11751,18 +10538,18 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) baseOptions = configuration.baseOptions; } - const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - 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), @@ -11770,17 +10557,12 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }; }, /** - * - * @param {string} id A unique integer value identifying this supermarket. - * @param {Supermarket} [supermarket] + * * @param {*} [options] Override http request option. * @throws {RequiredError} */ - partialUpdateSupermarket: async (id: string, supermarket?: Supermarket, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('partialUpdateSupermarket', 'id', id) - const localVarPath = `/api/supermarket/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); + apiRecipeFlatList: async (options: any = {}): Promise => { + const localVarPath = `/api/recipe/flat/`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -11788,18 +10570,18 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) baseOptions = configuration.baseOptions; } - const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - 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), @@ -11807,17 +10589,12 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }; }, /** - * - * @param {string} id A unique integer value identifying this supermarket category. - * @param {SupermarketCategory} [supermarketCategory] + * function to retrieve a recipe from a given url or source string :param request: standard request with additional post parameters - url: url to use for importing recipe - data: if no url is given recipe is imported from provided source data - (optional) bookmarklet: id of bookmarklet import to use, overrides URL and data attributes :return: JsonResponse containing the parsed json and images * @param {*} [options] Override http request option. * @throws {RequiredError} */ - partialUpdateSupermarketCategory: async (id: string, supermarketCategory?: SupermarketCategory, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('partialUpdateSupermarketCategory', 'id', id) - const localVarPath = `/api/supermarket-category/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); + apiRecipeFromSourceCreate: async (options: any = {}): Promise => { + const localVarPath = `/api/recipe-from-source/`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -11825,18 +10602,18 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) baseOptions = configuration.baseOptions; } - const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - 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), @@ -11844,16 +10621,17 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }; }, /** - * - * @param {string} id A unique integer value identifying this supermarket category relation. - * @param {SupermarketCategoryRelation} [supermarketCategoryRelation] + * + * @param {number} id A unique integer value identifying this recipe. + * @param {string} [image] + * @param {string} [imageUrl] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - partialUpdateSupermarketCategoryRelation: async (id: string, supermarketCategoryRelation?: SupermarketCategoryRelation, options: any = {}): Promise => { + apiRecipeImageUpdate: async (id: number, image?: string, imageUrl?: string, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined - assertParamExists('partialUpdateSupermarketCategoryRelation', 'id', id) - const localVarPath = `/api/supermarket-category-relation/{id}/` + assertParamExists('apiRecipeImageUpdate', '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); @@ -11862,233 +10640,26 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) baseOptions = configuration.baseOptions; } - const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(supermarketCategoryRelation, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this sync. - * @param {Sync} [sync] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - partialUpdateSync: async (id: string, sync?: Sync, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('partialUpdateSync', 'id', id) - const localVarPath = `/api/sync/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(sync, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this unit. - * @param {Unit} [unit] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - partialUpdateUnit: async (id: string, unit?: Unit, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('partialUpdateUnit', 'id', id) - const localVarPath = `/api/unit/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(unit, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this unit conversion. - * @param {UnitConversion} [unitConversion] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - partialUpdateUnitConversion: async (id: string, unitConversion?: UnitConversion, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('partialUpdateUnitConversion', 'id', id) - const localVarPath = `/api/unit-conversion/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the 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(unitConversion, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this user. - * @param {User} [user] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - partialUpdateUser: async (id: string, user?: User, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('partialUpdateUser', 'id', id) - const localVarPath = `/api/user/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(user, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this user file. - * @param {string} name - * @param {any} file - * @param {number} [id2] - * @param {string} [fileDownload] - * @param {string} [preview] - * @param {number} [fileSizeKb] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - partialUpdateUserFile: async (id: string, name: string, file: any, id2?: number, fileDownload?: string, preview?: string, fileSizeKb?: number, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('partialUpdateUserFile', 'id', id) - // verify required parameter 'name' is not null or undefined - assertParamExists('partialUpdateUserFile', 'name', name) - // verify required parameter 'file' is not null or undefined - assertParamExists('partialUpdateUserFile', 'file', file) - const localVarPath = `/api/user-file/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; + const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)(); + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - if (id2 !== undefined) { - localVarFormParams.append('id', id2 as any); + + if (image !== undefined) { + localVarFormParams.append('image', image as any); } - - if (name !== undefined) { - localVarFormParams.append('name', name as any); + + if (imageUrl !== undefined) { + localVarFormParams.append('image_url', imageUrl as any); } - - if (file !== undefined) { - localVarFormParams.append('file', file as any); - } - - if (fileDownload !== undefined) { - localVarFormParams.append('file_download', fileDownload as any); - } - - if (preview !== undefined) { - localVarFormParams.append('preview', preview as any); - } - - if (fileSizeKb !== undefined) { - localVarFormParams.append('file_size_kb', fileSizeKb as any); - } - - + + localVarHeaderParameter['Content-Type'] = 'multipart/form-data'; - + setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -12100,17 +10671,41 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }; }, /** - * - * @param {string} user A unique value identifying this user preference. - * @param {UserPreference} [userPreference] + * + * @param {string} [books] ID of book a recipe should be in. For multiple repeat parameter. + * @param {number} [booksAnd] Book IDs, repeat for multiple. Return recipes with all of the books. + * @param {number} [booksAndNot] Book IDs, repeat for multiple. Exclude recipes with all of the books. + * @param {number} [booksOr] Book IDs, repeat for multiple. Return recipes with any of the books + * @param {number} [booksOrNot] Book IDs, repeat for multiple. Exclude recipes with any of the books. + * @param {string} [cookedon] Filter recipes last cooked on or after YYYY-MM-DD. Prepending - filters on or before date. + * @param {string} [createdon] Filter recipes created on or after YYYY-MM-DD. Prepending - filters on or before date. + * @param {number} [foods] ID of food a recipe should have. For multiple repeat parameter. + * @param {number} [foodsAnd] Food IDs, repeat for multiple. Return recipes with all of the foods. + * @param {number} [foodsAndNot] Food IDs, repeat for multiple. Exclude recipes with all of the foods. + * @param {number} [foodsOr] Food IDs, repeat for multiple. Return recipes with any of the foods + * @param {number} [foodsOrNot] Food IDs, repeat for multiple. Exclude recipes with any of the foods. + * @param {string} [internal] If only internal recipes should be returned. [true/<b>false</b>] + * @param {number} [keywords] ID of keyword a recipe should have. For multiple repeat parameter. Equivalent to keywords_or + * @param {number} [keywordsAnd] Keyword IDs, repeat for multiple. Return recipes with all of the keywords. + * @param {number} [keywordsAndNot] Keyword IDs, repeat for multiple. Exclude recipes with all of the keywords. + * @param {number} [keywordsOr] Keyword IDs, repeat for multiple. Return recipes with any of the keywords + * @param {number} [keywordsOrNot] Keyword IDs, repeat for multiple. Exclude recipes with any of the keywords. + * @param {string} [makenow] Filter recipes that can be made with OnHand food. [true/<b>false</b>] + * @param {string} [_new] Returns new results first in search results. [true/<b>false</b>] + * @param {number} [page] A page number within the paginated result set. + * @param {number} [pageSize] Number of results to return per page. + * @param {string} [query] Query string matched (fuzzy) against recipe name. In the future also fulltext search. + * @param {string} [random] Returns the results in randomized order. [true/<b>false</b>] + * @param {number} [rating] Rating a recipe should have or greater. [0 - 5] Negative value filters rating less than. + * @param {number} [timescooked] Filter recipes cooked X times or more. Negative values returns cooked less than X times + * @param {number} [units] ID of unit a recipe should have. + * @param {string} [updatedon] Filter recipes updated on or after YYYY-MM-DD. Prepending - filters on or before date. + * @param {string} [viewedon] Filter recipes lasts viewed on or after YYYY-MM-DD. Prepending - filters on or before date. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - partialUpdateUserPreference: async (user: string, userPreference?: UserPreference, options: any = {}): Promise => { - // verify required parameter 'user' is not null or undefined - assertParamExists('partialUpdateUserPreference', 'user', user) - const localVarPath = `/api/user-preference/{user}/` - .replace(`{${"user"}}`, encodeURIComponent(String(user))); + apiRecipeList: async (books?: string, booksAnd?: number, booksAndNot?: number, booksOr?: number, booksOrNot?: number, cookedon?: string, createdon?: string, foods?: number, foodsAnd?: number, foodsAndNot?: number, foodsOr?: number, foodsOrNot?: number, internal?: string, keywords?: number, keywordsAnd?: number, keywordsAndNot?: number, keywordsOr?: number, keywordsOrNot?: number, makenow?: string, _new?: string, page?: number, pageSize?: number, query?: string, random?: string, rating?: number, timescooked?: number, units?: number, updatedon?: string, viewedon?: string, options: any = {}): Promise => { + const localVarPath = `/api/recipe/`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -12118,18 +10713,134 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) baseOptions = configuration.baseOptions; } - const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + if (books !== undefined) { + localVarQueryParameter['books'] = books; + } + + if (booksAnd !== undefined) { + localVarQueryParameter['books_and'] = booksAnd; + } + + if (booksAndNot !== undefined) { + localVarQueryParameter['books_and_not'] = booksAndNot; + } + + if (booksOr !== undefined) { + localVarQueryParameter['books_or'] = booksOr; + } + + if (booksOrNot !== undefined) { + localVarQueryParameter['books_or_not'] = booksOrNot; + } + + if (cookedon !== undefined) { + localVarQueryParameter['cookedon'] = cookedon; + } + + if (createdon !== undefined) { + localVarQueryParameter['createdon'] = createdon; + } + + if (foods !== undefined) { + localVarQueryParameter['foods'] = foods; + } + + if (foodsAnd !== undefined) { + localVarQueryParameter['foods_and'] = foodsAnd; + } + + if (foodsAndNot !== undefined) { + localVarQueryParameter['foods_and_not'] = foodsAndNot; + } + + if (foodsOr !== undefined) { + localVarQueryParameter['foods_or'] = foodsOr; + } + + if (foodsOrNot !== undefined) { + localVarQueryParameter['foods_or_not'] = foodsOrNot; + } + + if (internal !== undefined) { + localVarQueryParameter['internal'] = internal; + } + + if (keywords !== undefined) { + localVarQueryParameter['keywords'] = keywords; + } + + if (keywordsAnd !== undefined) { + localVarQueryParameter['keywords_and'] = keywordsAnd; + } + + if (keywordsAndNot !== undefined) { + localVarQueryParameter['keywords_and_not'] = keywordsAndNot; + } + + if (keywordsOr !== undefined) { + localVarQueryParameter['keywords_or'] = keywordsOr; + } + + if (keywordsOrNot !== undefined) { + localVarQueryParameter['keywords_or_not'] = keywordsOrNot; + } + + if (makenow !== undefined) { + localVarQueryParameter['makenow'] = makenow; + } + + if (_new !== undefined) { + localVarQueryParameter['new'] = _new; + } + + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } + + if (pageSize !== undefined) { + localVarQueryParameter['page_size'] = pageSize; + } + + if (query !== undefined) { + localVarQueryParameter['query'] = query; + } + + if (random !== undefined) { + localVarQueryParameter['random'] = random; + } + + if (rating !== undefined) { + localVarQueryParameter['rating'] = rating; + } + + if (timescooked !== undefined) { + localVarQueryParameter['timescooked'] = timescooked; + } + + if (units !== undefined) { + localVarQueryParameter['units'] = units; + } + + if (updatedon !== undefined) { + localVarQueryParameter['updatedon'] = updatedon; + } + + if (viewedon !== undefined) { + localVarQueryParameter['viewedon'] = viewedon; + } - 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), @@ -12137,16 +10848,16 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }; }, /** - * - * @param {string} id A unique integer value identifying this user space. - * @param {UserSpace} [userSpace] + * + * @param {number} id A unique integer value identifying this recipe. + * @param {PatchedRecipe} [patchedRecipe] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - partialUpdateUserSpace: async (id: string, userSpace?: UserSpace, options: any = {}): Promise => { + apiRecipePartialUpdate: async (id: number, patchedRecipe?: PatchedRecipe, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined - assertParamExists('partialUpdateUserSpace', 'id', id) - const localVarPath = `/api/user-space/{id}/` + assertParamExists('apiRecipePartialUpdate', '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); @@ -12159,14 +10870,17 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(userSpace, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(patchedRecipe, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -12174,51 +10888,14 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }; }, /** - * - * @param {string} id A unique integer value identifying this view log. - * @param {ViewLog} [viewLog] + * + * @param {number} id A unique integer value identifying this recipe. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - partialUpdateViewLog: async (id: string, viewLog?: ViewLog, options: any = {}): Promise => { + apiRecipeRelatedRetrieve: async (id: number, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined - assertParamExists('partialUpdateViewLog', 'id', id) - const localVarPath = `/api/view-log/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(viewLog, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this recipe. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - relatedRecipe: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('relatedRecipe', 'id', id) + assertParamExists('apiRecipeRelatedRetrieve', '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. @@ -12232,8 +10909,11 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -12244,872 +10924,14 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }; }, /** - * - * @param {string} id A unique integer value identifying this access token. + * + * @param {number} id A unique integer value identifying this recipe. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - retrieveAccessToken: async (id: string, options: any = {}): Promise => { + apiRecipeRetrieve: async (id: number, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined - assertParamExists('retrieveAccessToken', 'id', id) - const localVarPath = `/api/access-token/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this automation. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveAutomation: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('retrieveAutomation', 'id', id) - const localVarPath = `/api/automation/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this bookmarklet import. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveBookmarkletImport: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('retrieveBookmarkletImport', 'id', id) - const localVarPath = `/api/bookmarklet-import/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this connector config. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveConnectorConfig: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('retrieveConnectorConfig', 'id', id) - const localVarPath = `/api/connector-config/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this cook log. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveCookLog: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('retrieveCookLog', 'id', id) - const localVarPath = `/api/cook-log/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this custom filter. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveCustomFilter: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('retrieveCustomFilter', 'id', id) - const localVarPath = `/api/custom-filter/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this export log. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveExportLog: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('retrieveExportLog', 'id', id) - const localVarPath = `/api/export-log/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveFDCViewSet: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('retrieveFDCViewSet', 'id', id) - const localVarPath = `/api/open-data-FDC/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this food. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveFood: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('retrieveFood', 'id', id) - const localVarPath = `/api/food/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this food inherit field. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveFoodInheritField: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('retrieveFoodInheritField', 'id', id) - const localVarPath = `/api/food-inherit-field/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this group. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveGroup: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('retrieveGroup', 'id', id) - const localVarPath = `/api/group/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this import log. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveImportLog: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('retrieveImportLog', 'id', id) - const localVarPath = `/api/import-log/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this ingredient. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveIngredient: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('retrieveIngredient', 'id', id) - const localVarPath = `/api/ingredient/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this invite link. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveInviteLink: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('retrieveInviteLink', 'id', id) - const localVarPath = `/api/invite-link/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this keyword. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveKeyword: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('retrieveKeyword', 'id', id) - const localVarPath = `/api/keyword/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this meal plan. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveMealPlan: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('retrieveMealPlan', 'id', id) - const localVarPath = `/api/meal-plan/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * returns list of meal types created by the requesting user ordered by the order field. - * @param {string} id A unique integer value identifying this meal type. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveMealType: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('retrieveMealType', 'id', id) - const localVarPath = `/api/meal-type/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this open data category. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveOpenDataCategory: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('retrieveOpenDataCategory', 'id', id) - const localVarPath = `/api/open-data-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 open data conversion. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveOpenDataConversion: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('retrieveOpenDataConversion', 'id', id) - const localVarPath = `/api/open-data-conversion/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the 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 open data food. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveOpenDataFood: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('retrieveOpenDataFood', 'id', id) - const localVarPath = `/api/open-data-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 open data property. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveOpenDataProperty: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('retrieveOpenDataProperty', 'id', id) - const localVarPath = `/api/open-data-property/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the 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 open data store. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveOpenDataStore: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('retrieveOpenDataStore', 'id', id) - const localVarPath = `/api/open-data-store/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the 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 open data unit. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveOpenDataUnit: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('retrieveOpenDataUnit', 'id', id) - const localVarPath = `/api/open-data-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 open data version. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveOpenDataVersion: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('retrieveOpenDataVersion', 'id', id) - const localVarPath = `/api/open-data-version/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the 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 property. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveProperty: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('retrieveProperty', 'id', id) - const localVarPath = `/api/food-property/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the 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 property type. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrievePropertyType: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('retrievePropertyType', 'id', id) - const localVarPath = `/api/food-property-type/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this recipe. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveRecipe: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('retrieveRecipe', 'id', id) + assertParamExists('apiRecipeRetrieve', '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. @@ -13123,8 +10945,11 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -13135,811 +10960,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }; }, /** - * - * @param {string} id A unique integer value identifying this recipe book. + * + * @param {number} id A unique integer value identifying this recipe. + * @param {RecipeShoppingUpdate} [recipeShoppingUpdate] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - retrieveRecipeBook: async (id: string, options: any = {}): Promise => { + apiRecipeShoppingUpdate: async (id: number, recipeShoppingUpdate?: RecipeShoppingUpdate, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined - assertParamExists('retrieveRecipeBook', 'id', id) - const localVarPath = `/api/recipe-book/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this recipe book entry. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveRecipeBookEntry: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('retrieveRecipeBookEntry', 'id', id) - const localVarPath = `/api/recipe-book-entry/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this shopping list. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveShoppingList: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('retrieveShoppingList', 'id', id) - const localVarPath = `/api/shopping-list/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this shopping list entry. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveShoppingListEntry: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('retrieveShoppingListEntry', 'id', id) - const localVarPath = `/api/shopping-list-entry/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this shopping list recipe. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveShoppingListRecipe: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('retrieveShoppingListRecipe', 'id', id) - const localVarPath = `/api/shopping-list-recipe/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this space. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveSpace: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('retrieveSpace', 'id', id) - const localVarPath = `/api/space/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this step. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveStep: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('retrieveStep', 'id', id) - const localVarPath = `/api/step/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this storage. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveStorage: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('retrieveStorage', 'id', id) - const localVarPath = `/api/storage/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this supermarket. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveSupermarket: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('retrieveSupermarket', 'id', id) - const localVarPath = `/api/supermarket/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this supermarket category. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveSupermarketCategory: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('retrieveSupermarketCategory', 'id', id) - const localVarPath = `/api/supermarket-category/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this supermarket category relation. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveSupermarketCategoryRelation: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('retrieveSupermarketCategoryRelation', 'id', id) - const localVarPath = `/api/supermarket-category-relation/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this sync. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveSync: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('retrieveSync', 'id', id) - const localVarPath = `/api/sync/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this sync log. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveSyncLog: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('retrieveSyncLog', 'id', id) - const localVarPath = `/api/sync-log/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this unit. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveUnit: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('retrieveUnit', 'id', id) - const localVarPath = `/api/unit/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this unit conversion. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveUnitConversion: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('retrieveUnitConversion', 'id', id) - const localVarPath = `/api/unit-conversion/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this user. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveUser: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('retrieveUser', 'id', id) - const localVarPath = `/api/user/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this user file. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveUserFile: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('retrieveUserFile', 'id', id) - const localVarPath = `/api/user-file/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} user A unique value identifying this user preference. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveUserPreference: async (user: string, options: any = {}): Promise => { - // verify required parameter 'user' is not null or undefined - assertParamExists('retrieveUserPreference', 'user', user) - const localVarPath = `/api/user-preference/{user}/` - .replace(`{${"user"}}`, encodeURIComponent(String(user))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this user space. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveUserSpace: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('retrieveUserSpace', 'id', id) - const localVarPath = `/api/user-space/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this view log. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveViewLog: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('retrieveViewLog', 'id', id) - const localVarPath = `/api/view-log/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * function to download a user file securely (wrapping as zip to prevent any context based XSS problems) temporary solution until a real file manager is implemented - * @param {string} fileId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrievedownloadFile: async (fileId: string, options: any = {}): Promise => { - // verify required parameter 'fileId' is not null or undefined - assertParamExists('retrievedownloadFile', 'fileId', fileId) - const localVarPath = `/api/download-file/{file_id}/` - .replace(`{${"file_id"}}`, encodeURIComponent(String(fileId))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveshareLink: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('retrieveshareLink', 'id', id) - const localVarPath = `/api/share-link/{id}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * api endpoint to switch space function - * @param {string} spaceId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveswitchActiveSpace: async (spaceId: string, options: any = {}): Promise => { - // verify required parameter 'spaceId' is not null or undefined - assertParamExists('retrieveswitchActiveSpace', 'spaceId', spaceId) - const localVarPath = `/api/switch-active-space/{space_id}/` - .replace(`{${"space_id"}}`, encodeURIComponent(String(spaceId))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this food. - * @param {FoodShoppingUpdate} [foodShoppingUpdate] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - shoppingFood: async (id: string, foodShoppingUpdate?: FoodShoppingUpdate, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('shoppingFood', 'id', id) - const localVarPath = `/api/food/{id}/shopping/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(foodShoppingUpdate, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this recipe. - * @param {RecipeShoppingUpdate} [recipeShoppingUpdate] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - shoppingRecipe: async (id: string, recipeShoppingUpdate?: RecipeShoppingUpdate, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('shoppingRecipe', 'id', id) + assertParamExists('apiRecipeShoppingUpdate', '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. @@ -13953,8 +10982,11 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); @@ -13968,866 +11000,17 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }; }, /** - * - * @param {string} id A unique integer value identifying this access token. - * @param {AccessToken} [accessToken] + * + * @param {number} id A unique integer value identifying this recipe. + * @param {Recipe} recipe * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateAccessToken: async (id: string, accessToken?: AccessToken, options: any = {}): Promise => { + apiRecipeUpdate: async (id: number, recipe: Recipe, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined - assertParamExists('updateAccessToken', 'id', id) - const localVarPath = `/api/access-token/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the 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(accessToken, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this automation. - * @param {Automation} [automation] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updateAutomation: async (id: string, automation?: Automation, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('updateAutomation', 'id', id) - const localVarPath = `/api/automation/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(automation, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this bookmarklet import. - * @param {BookmarkletImport} [bookmarkletImport] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updateBookmarkletImport: async (id: string, bookmarkletImport?: BookmarkletImport, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('updateBookmarkletImport', 'id', id) - const localVarPath = `/api/bookmarklet-import/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(bookmarkletImport, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this connector config. - * @param {ConnectorConfigConfig} [connectorConfigConfig] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updateConnectorConfig: async (id: string, connectorConfigConfig?: ConnectorConfigConfig, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('updateConnectorConfig', 'id', id) - const localVarPath = `/api/connector-config/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the 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(connectorConfigConfig, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this cook log. - * @param {CookLog} [cookLog] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updateCookLog: async (id: string, cookLog?: CookLog, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('updateCookLog', 'id', id) - const localVarPath = `/api/cook-log/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(cookLog, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this custom filter. - * @param {CustomFilter} [customFilter] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updateCustomFilter: async (id: string, customFilter?: CustomFilter, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('updateCustomFilter', 'id', id) - const localVarPath = `/api/custom-filter/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(customFilter, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this export log. - * @param {ExportLog} [exportLog] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updateExportLog: async (id: string, exportLog?: ExportLog, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('updateExportLog', 'id', id) - const localVarPath = `/api/export-log/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(exportLog, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this food. - * @param {Food} [food] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updateFood: async (id: string, food?: Food, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('updateFood', 'id', id) - const localVarPath = `/api/food/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(food, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this import log. - * @param {ImportLog} [importLog] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updateImportLog: async (id: string, importLog?: ImportLog, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('updateImportLog', 'id', id) - const localVarPath = `/api/import-log/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(importLog, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this ingredient. - * @param {Ingredient} [ingredient] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updateIngredient: async (id: string, ingredient?: Ingredient, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('updateIngredient', 'id', id) - const localVarPath = `/api/ingredient/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(ingredient, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this invite link. - * @param {InviteLink} [inviteLink] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updateInviteLink: async (id: string, inviteLink?: InviteLink, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('updateInviteLink', 'id', id) - const localVarPath = `/api/invite-link/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(inviteLink, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this keyword. - * @param {Keyword} [keyword] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updateKeyword: async (id: string, keyword?: Keyword, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('updateKeyword', 'id', id) - const localVarPath = `/api/keyword/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(keyword, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this meal plan. - * @param {MealPlan} [mealPlan] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updateMealPlan: async (id: string, mealPlan?: MealPlan, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('updateMealPlan', 'id', id) - const localVarPath = `/api/meal-plan/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(mealPlan, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * returns list of meal types created by the requesting user ordered by the order field. - * @param {string} id A unique integer value identifying this meal type. - * @param {MealType} [mealType] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updateMealType: async (id: string, mealType?: MealType, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('updateMealType', 'id', id) - const localVarPath = `/api/meal-type/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(mealType, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this open data category. - * @param {OpenDataCategory} [openDataCategory] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updateOpenDataCategory: async (id: string, openDataCategory?: OpenDataCategory, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('updateOpenDataCategory', 'id', id) - const localVarPath = `/api/open-data-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(openDataCategory, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this open data conversion. - * @param {OpenDataConversion} [openDataConversion] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updateOpenDataConversion: async (id: string, openDataConversion?: OpenDataConversion, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('updateOpenDataConversion', 'id', id) - const localVarPath = `/api/open-data-conversion/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the 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(openDataConversion, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this open data food. - * @param {OpenDataFood} [openDataFood] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updateOpenDataFood: async (id: string, openDataFood?: OpenDataFood, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('updateOpenDataFood', 'id', id) - const localVarPath = `/api/open-data-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(openDataFood, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this open data property. - * @param {OpenDataProperty} [openDataProperty] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updateOpenDataProperty: async (id: string, openDataProperty?: OpenDataProperty, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('updateOpenDataProperty', 'id', id) - const localVarPath = `/api/open-data-property/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the 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(openDataProperty, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this open data store. - * @param {OpenDataStore} [openDataStore] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updateOpenDataStore: async (id: string, openDataStore?: OpenDataStore, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('updateOpenDataStore', 'id', id) - const localVarPath = `/api/open-data-store/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the 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(openDataStore, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this open data unit. - * @param {OpenDataUnit} [openDataUnit] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updateOpenDataUnit: async (id: string, openDataUnit?: OpenDataUnit, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('updateOpenDataUnit', 'id', id) - const localVarPath = `/api/open-data-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(openDataUnit, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this open data version. - * @param {OpenDataVersion} [openDataVersion] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updateOpenDataVersion: async (id: string, openDataVersion?: OpenDataVersion, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('updateOpenDataVersion', 'id', id) - const localVarPath = `/api/open-data-version/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the 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(openDataVersion, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this property. - * @param {Property} [property] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updateProperty: async (id: string, property?: Property, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('updateProperty', 'id', id) - const localVarPath = `/api/food-property/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the 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(property, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this property type. - * @param {PropertyType} [propertyType] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updatePropertyType: async (id: string, propertyType?: PropertyType, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('updatePropertyType', 'id', id) - const localVarPath = `/api/food-property-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(propertyType, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this recipe. - * @param {Recipe} [recipe] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updateRecipe: async (id: string, recipe?: Recipe, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('updateRecipe', 'id', id) + assertParamExists('apiRecipeUpdate', 'id', id) + // verify required parameter 'recipe' is not null or undefined + assertParamExists('apiRecipeUpdate', 'recipe', recipe) const localVarPath = `/api/recipe/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. @@ -14841,8 +11024,11 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); @@ -14856,17 +11042,12 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }; }, /** - * - * @param {string} id A unique integer value identifying this recipe book. - * @param {RecipeBook} [recipeBook] + * function to reset inheritance from api, see food method for docs * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateRecipeBook: async (id: string, recipeBook?: RecipeBook, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('updateRecipeBook', 'id', id) - const localVarPath = `/api/recipe-book/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); + apiResetFoodInheritanceRetrieve: async (options: any = {}): Promise => { + const localVarPath = `/api/reset-food-inheritance/`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -14874,18 +11055,18 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) baseOptions = configuration.baseOptions; } - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - 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), @@ -14893,16 +11074,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }; }, /** - * - * @param {string} id A unique integer value identifying this recipe book entry. - * @param {RecipeBookEntry} [recipeBookEntry] + * + * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateRecipeBookEntry: async (id: string, recipeBookEntry?: RecipeBookEntry, options: any = {}): Promise => { + apiShareLinkRetrieve: async (id: number, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined - assertParamExists('updateRecipeBookEntry', 'id', id) - const localVarPath = `/api/recipe-book-entry/{id}/` + assertParamExists('apiShareLinkRetrieve', 'id', id) + const localVarPath = `/api/share-link/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -14911,18 +11091,18 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) baseOptions = configuration.baseOptions; } - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - 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), @@ -14930,17 +11110,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }; }, /** - * - * @param {string} id A unique integer value identifying this shopping list. - * @param {ShoppingList} [shoppingList] + * + * @param {ShoppingListEntryBulk} shoppingListEntryBulk * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateShoppingList: async (id: string, shoppingList?: ShoppingList, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('updateShoppingList', 'id', id) - const localVarPath = `/api/shopping-list/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); + apiShoppingListEntryBulkCreate: async (shoppingListEntryBulk: ShoppingListEntryBulk, options: any = {}): Promise => { + // verify required parameter 'shoppingListEntryBulk' is not null or undefined + assertParamExists('apiShoppingListEntryBulkCreate', 'shoppingListEntryBulk', shoppingListEntryBulk) + const localVarPath = `/api/shopping-list-entry/bulk/`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -14948,18 +11126,21 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) baseOptions = configuration.baseOptions; } - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + 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) + localVarRequestOptions.data = serializeDataIfNeeded(shoppingListEntryBulk, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -14967,17 +11148,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }; }, /** - * - * @param {string} id A unique integer value identifying this shopping list entry. - * @param {ShoppingListEntry} [shoppingListEntry] + * + * @param {ShoppingListEntry} shoppingListEntry * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateShoppingListEntry: async (id: string, shoppingListEntry?: ShoppingListEntry, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('updateShoppingListEntry', 'id', id) - const localVarPath = `/api/shopping-list-entry/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); + apiShoppingListEntryCreate: async (shoppingListEntry: ShoppingListEntry, options: any = {}): Promise => { + // verify required parameter 'shoppingListEntry' is not null or undefined + assertParamExists('apiShoppingListEntryCreate', 'shoppingListEntry', shoppingListEntry) + 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; @@ -14985,12 +11164,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) baseOptions = configuration.baseOptions; } - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); @@ -15004,16 +11186,177 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }; }, /** - * - * @param {string} id A unique integer value identifying this shopping list recipe. - * @param {ShoppingListRecipe} [shoppingListRecipe] + * + * @param {number} id A unique integer value identifying this shopping list entry. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateShoppingListRecipe: async (id: string, shoppingListRecipe?: ShoppingListRecipe, options: any = {}): Promise => { + apiShoppingListEntryDestroy: async (id: number, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined - assertParamExists('updateShoppingListRecipe', 'id', id) - const localVarPath = `/api/shopping-list-recipe/{id}/` + assertParamExists('apiShoppingListEntryDestroy', '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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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} [checked] Filter shopping list entries on checked. [true, false, both, <b>recent</b>]<br> - recent includes unchecked items and recently completed items. + * @param {number} [id] Returns the shopping list entry with a primary key of id. Multiple values allowed. + * @param {number} [supermarket] Returns the shopping list entries sorted by supermarket category order. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiShoppingListEntryList: async (checked?: string, id?: number, supermarket?: number, options: any = {}): Promise => { + const localVarPath = `/api/shopping-list-entry/`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + if (checked !== undefined) { + localVarQueryParameter['checked'] = checked; + } + + if (id !== undefined) { + localVarQueryParameter['id'] = id; + } + + 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 {number} id A unique integer value identifying this shopping list entry. + * @param {PatchedShoppingListEntry} [patchedShoppingListEntry] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiShoppingListEntryPartialUpdate: async (id: number, patchedShoppingListEntry?: PatchedShoppingListEntry, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiShoppingListEntryPartialUpdate', '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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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(patchedShoppingListEntry, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {number} id A unique integer value identifying this shopping list entry. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiShoppingListEntryRetrieve: async (id: number, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiShoppingListEntryRetrieve', '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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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 A unique integer value identifying this shopping list entry. + * @param {ShoppingListEntry} shoppingListEntry + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiShoppingListEntryUpdate: async (id: number, shoppingListEntry: ShoppingListEntry, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiShoppingListEntryUpdate', 'id', id) + // verify required parameter 'shoppingListEntry' is not null or undefined + assertParamExists('apiShoppingListEntryUpdate', 'shoppingListEntry', shoppingListEntry) + 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); @@ -15026,8 +11369,49 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + 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} + */ + apiShoppingListRecipeCreate: async (shoppingListRecipe: ShoppingListRecipe, options: any = {}): Promise => { + // verify required parameter 'shoppingListRecipe' is not null or undefined + assertParamExists('apiShoppingListRecipeCreate', 'shoppingListRecipe', shoppingListRecipe) + 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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); @@ -15041,16 +11425,162 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }; }, /** - * - * @param {string} id A unique integer value identifying this step. - * @param {Step} [step] + * + * @param {number} id A unique integer value identifying this shopping list recipe. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateStep: async (id: string, step?: Step, options: any = {}): Promise => { + apiShoppingListRecipeDestroy: async (id: number, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined - assertParamExists('updateStep', 'id', id) - const localVarPath = `/api/step/{id}/` + assertParamExists('apiShoppingListRecipeDestroy', '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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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} + */ + apiShoppingListRecipeList: async (options: any = {}): Promise => { + const localVarPath = `/api/shopping-list-recipe/`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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 A unique integer value identifying this shopping list recipe. + * @param {PatchedShoppingListRecipe} [patchedShoppingListRecipe] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiShoppingListRecipePartialUpdate: async (id: number, patchedShoppingListRecipe?: PatchedShoppingListRecipe, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiShoppingListRecipePartialUpdate', '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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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(patchedShoppingListRecipe, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {number} id A unique integer value identifying this shopping list recipe. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiShoppingListRecipeRetrieve: async (id: number, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiShoppingListRecipeRetrieve', '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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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 A unique integer value identifying this shopping list recipe. + * @param {ShoppingListRecipe} shoppingListRecipe + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiShoppingListRecipeUpdate: async (id: number, shoppingListRecipe: ShoppingListRecipe, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiShoppingListRecipeUpdate', 'id', id) + // verify required parameter 'shoppingListRecipe' is not null or undefined + assertParamExists('apiShoppingListRecipeUpdate', 'shoppingListRecipe', shoppingListRecipe) + 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); @@ -15063,8 +11593,157 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + 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 {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiSpaceList: async (options: any = {}): Promise => { + const localVarPath = `/api/space/`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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 A unique integer value identifying this space. + * @param {PatchedSpace} [patchedSpace] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiSpacePartialUpdate: async (id: number, patchedSpace?: PatchedSpace, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiSpacePartialUpdate', 'id', id) + const localVarPath = `/api/space/{id}/` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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(patchedSpace, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {number} id A unique integer value identifying this space. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiSpaceRetrieve: async (id: number, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiSpaceRetrieve', 'id', id) + const localVarPath = `/api/space/{id}/` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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 {Step} step + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiStepCreate: async (step: Step, options: any = {}): Promise => { + // verify required parameter 'step' is not null or undefined + assertParamExists('apiStepCreate', 'step', step) + 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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); @@ -15078,16 +11757,182 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }; }, /** - * - * @param {string} id A unique integer value identifying this storage. - * @param {Storage} [storage] + * + * @param {number} id A unique integer value identifying this step. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateStorage: async (id: string, storage?: Storage, options: any = {}): Promise => { + apiStepDestroy: async (id: number, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined - assertParamExists('updateStorage', 'id', id) - const localVarPath = `/api/storage/{id}/` + assertParamExists('apiStepDestroy', '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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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 {string} [query] Query string matched (fuzzy) against object name. + * @param {number} [recipe] ID of recipe a step is part of. For multiple repeat parameter. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiStepList: async (page?: number, pageSize?: number, query?: string, recipe?: number, options: any = {}): Promise => { + const localVarPath = `/api/step/`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } + + if (pageSize !== undefined) { + localVarQueryParameter['page_size'] = pageSize; + } + + if (query !== undefined) { + localVarQueryParameter['query'] = query; + } + + if (recipe !== undefined) { + localVarQueryParameter['recipe'] = recipe; + } + + + + 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 A unique integer value identifying this step. + * @param {PatchedStep} [patchedStep] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiStepPartialUpdate: async (id: number, patchedStep?: PatchedStep, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiStepPartialUpdate', '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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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(patchedStep, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {number} id A unique integer value identifying this step. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiStepRetrieve: async (id: number, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiStepRetrieve', '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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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 A unique integer value identifying this step. + * @param {Step} step + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiStepUpdate: async (id: number, step: Step, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiStepUpdate', 'id', id) + // verify required parameter 'step' is not null or undefined + assertParamExists('apiStepUpdate', 'step', step) + 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); @@ -15100,8 +11945,49 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + 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} + */ + apiStorageCreate: async (storage: Storage, options: any = {}): Promise => { + // verify required parameter 'storage' is not null or undefined + assertParamExists('apiStorageCreate', 'storage', storage) + 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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); @@ -15115,16 +12001,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }; }, /** - * - * @param {string} id A unique integer value identifying this supermarket. - * @param {Supermarket} [supermarket] + * + * @param {number} id A unique integer value identifying this storage. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateSupermarket: async (id: string, supermarket?: Supermarket, options: any = {}): Promise => { + apiStorageDestroy: async (id: number, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined - assertParamExists('updateSupermarket', 'id', id) - const localVarPath = `/api/supermarket/{id}/` + assertParamExists('apiStorageDestroy', '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); @@ -15133,18 +12018,18 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) baseOptions = configuration.baseOptions; } - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - 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), @@ -15152,16 +12037,126 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }; }, /** - * - * @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 => { + apiStorageList: async (options: any = {}): Promise => { + const localVarPath = `/api/storage/`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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 A unique integer value identifying this storage. + * @param {PatchedStorage} [patchedStorage] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiStoragePartialUpdate: async (id: number, patchedStorage?: PatchedStorage, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined - assertParamExists('updateSupermarketCategory', 'id', id) - const localVarPath = `/api/supermarket-category/{id}/` + assertParamExists('apiStoragePartialUpdate', '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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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(patchedStorage, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {number} id A unique integer value identifying this storage. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiStorageRetrieve: async (id: number, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiStorageRetrieve', '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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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 A unique integer value identifying this storage. + * @param {Storage} storage + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiStorageUpdate: async (id: number, storage: Storage, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiStorageUpdate', 'id', id) + // verify required parameter 'storage' is not null or undefined + assertParamExists('apiStorageUpdate', 'storage', storage) + 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); @@ -15174,8 +12169,49 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + 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 {SupermarketCategory} supermarketCategory + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiSupermarketCategoryCreate: async (supermarketCategory: SupermarketCategory, options: any = {}): Promise => { + // verify required parameter 'supermarketCategory' is not null or undefined + assertParamExists('apiSupermarketCategoryCreate', 'supermarketCategory', supermarketCategory) + 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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); @@ -15189,16 +12225,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }; }, /** - * - * @param {string} id A unique integer value identifying this supermarket category relation. - * @param {SupermarketCategoryRelation} [supermarketCategoryRelation] + * + * @param {number} id A unique integer value identifying this supermarket category. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateSupermarketCategoryRelation: async (id: string, supermarketCategoryRelation?: SupermarketCategoryRelation, options: any = {}): Promise => { + apiSupermarketCategoryDestroy: async (id: number, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined - assertParamExists('updateSupermarketCategoryRelation', 'id', id) - const localVarPath = `/api/supermarket-category-relation/{id}/` + assertParamExists('apiSupermarketCategoryDestroy', '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); @@ -15207,12 +12242,188 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) baseOptions = configuration.baseOptions; } + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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} [limit] limit number of entries to return + * @param {string} [query] lookup if query string is contained within the name, case insensitive + * @param {string} [random] randomly orders entries (only works together with limit) + * @param {string} [updatedAt] if model has an updated_at timestamp, filter only models updated at or after datetime + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiSupermarketCategoryList: async (limit?: string, query?: string, random?: string, updatedAt?: string, options: any = {}): Promise => { + const localVarPath = `/api/supermarket-category/`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + if (query !== undefined) { + localVarQueryParameter['query'] = query; + } + + if (random !== undefined) { + localVarQueryParameter['random'] = random; + } + + if (updatedAt !== undefined) { + localVarQueryParameter['updated_at'] = updatedAt; + } + + + + 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 A unique integer value identifying this supermarket category. + * @param {string} target + * @param {SupermarketCategory} supermarketCategory + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiSupermarketCategoryMergeUpdate: async (id: number, target: string, supermarketCategory: SupermarketCategory, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiSupermarketCategoryMergeUpdate', 'id', id) + // verify required parameter 'target' is not null or undefined + assertParamExists('apiSupermarketCategoryMergeUpdate', 'target', target) + // verify required parameter 'supermarketCategory' is not null or undefined + assertParamExists('apiSupermarketCategoryMergeUpdate', 'supermarketCategory', supermarketCategory) + const localVarPath = `/api/supermarket-category/{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; + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + 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 {number} id A unique integer value identifying this supermarket category. + * @param {PatchedSupermarketCategory} [patchedSupermarketCategory] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiSupermarketCategoryPartialUpdate: async (id: number, patchedSupermarketCategory?: PatchedSupermarketCategory, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiSupermarketCategoryPartialUpdate', '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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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(patchedSupermarketCategory, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {SupermarketCategoryRelation} supermarketCategoryRelation + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiSupermarketCategoryRelationCreate: async (supermarketCategoryRelation: SupermarketCategoryRelation, options: any = {}): Promise => { + // verify required parameter 'supermarketCategoryRelation' is not null or undefined + assertParamExists('apiSupermarketCategoryRelationCreate', 'supermarketCategoryRelation', supermarketCategoryRelation) + 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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); @@ -15226,16 +12437,192 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }; }, /** - * - * @param {string} id A unique integer value identifying this sync. - * @param {Sync} [sync] + * + * @param {number} id A unique integer value identifying this supermarket category relation. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateSync: async (id: string, sync?: Sync, options: any = {}): Promise => { + apiSupermarketCategoryRelationDestroy: async (id: number, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined - assertParamExists('updateSync', 'id', id) - const localVarPath = `/api/sync/{id}/` + assertParamExists('apiSupermarketCategoryRelationDestroy', '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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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} [limit] limit number of entries to return + * @param {number} [page] A page number within the paginated result set. + * @param {number} [pageSize] Number of results to return per page. + * @param {string} [query] lookup if query string is contained within the name, case insensitive + * @param {string} [random] randomly orders entries (only works together with limit) + * @param {string} [updatedAt] if model has an updated_at timestamp, filter only models updated at or after datetime + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiSupermarketCategoryRelationList: async (limit?: string, page?: number, pageSize?: number, query?: string, random?: string, updatedAt?: string, options: any = {}): Promise => { + const localVarPath = `/api/supermarket-category-relation/`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } + + if (pageSize !== undefined) { + localVarQueryParameter['page_size'] = pageSize; + } + + if (query !== undefined) { + localVarQueryParameter['query'] = query; + } + + if (random !== undefined) { + localVarQueryParameter['random'] = random; + } + + if (updatedAt !== undefined) { + localVarQueryParameter['updated_at'] = updatedAt; + } + + + + 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 A unique integer value identifying this supermarket category relation. + * @param {PatchedSupermarketCategoryRelation} [patchedSupermarketCategoryRelation] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiSupermarketCategoryRelationPartialUpdate: async (id: number, patchedSupermarketCategoryRelation?: PatchedSupermarketCategoryRelation, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiSupermarketCategoryRelationPartialUpdate', '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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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(patchedSupermarketCategoryRelation, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {number} id A unique integer value identifying this supermarket category relation. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiSupermarketCategoryRelationRetrieve: async (id: number, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiSupermarketCategoryRelationRetrieve', '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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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 A unique integer value identifying this supermarket category relation. + * @param {SupermarketCategoryRelation} supermarketCategoryRelation + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiSupermarketCategoryRelationUpdate: async (id: number, supermarketCategoryRelation: SupermarketCategoryRelation, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiSupermarketCategoryRelationUpdate', 'id', id) + // verify required parameter 'supermarketCategoryRelation' is not null or undefined + assertParamExists('apiSupermarketCategoryRelationUpdate', 'supermarketCategoryRelation', supermarketCategoryRelation) + 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); @@ -15248,8 +12635,407 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + 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 {number} id A unique integer value identifying this supermarket category. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiSupermarketCategoryRetrieve: async (id: number, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiSupermarketCategoryRetrieve', '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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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 A unique integer value identifying this supermarket category. + * @param {SupermarketCategory} supermarketCategory + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiSupermarketCategoryUpdate: async (id: number, supermarketCategory: SupermarketCategory, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiSupermarketCategoryUpdate', 'id', id) + // verify required parameter 'supermarketCategory' is not null or undefined + assertParamExists('apiSupermarketCategoryUpdate', 'supermarketCategory', supermarketCategory) + 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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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 {Supermarket} supermarket + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiSupermarketCreate: async (supermarket: Supermarket, options: any = {}): Promise => { + // verify required parameter 'supermarket' is not null or undefined + assertParamExists('apiSupermarketCreate', 'supermarket', supermarket) + 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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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 {number} id A unique integer value identifying this supermarket. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiSupermarketDestroy: async (id: number, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiSupermarketDestroy', '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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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} [limit] limit number of entries to return + * @param {string} [query] lookup if query string is contained within the name, case insensitive + * @param {string} [random] randomly orders entries (only works together with limit) + * @param {string} [updatedAt] if model has an updated_at timestamp, filter only models updated at or after datetime + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiSupermarketList: async (limit?: string, query?: string, random?: string, updatedAt?: string, options: any = {}): Promise => { + const localVarPath = `/api/supermarket/`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + if (query !== undefined) { + localVarQueryParameter['query'] = query; + } + + if (random !== undefined) { + localVarQueryParameter['random'] = random; + } + + if (updatedAt !== undefined) { + localVarQueryParameter['updated_at'] = updatedAt; + } + + + + 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 A unique integer value identifying this supermarket. + * @param {PatchedSupermarket} [patchedSupermarket] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiSupermarketPartialUpdate: async (id: number, patchedSupermarket?: PatchedSupermarket, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiSupermarketPartialUpdate', '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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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(patchedSupermarket, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {number} id A unique integer value identifying this supermarket. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiSupermarketRetrieve: async (id: number, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiSupermarketRetrieve', '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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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 A unique integer value identifying this supermarket. + * @param {Supermarket} supermarket + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiSupermarketUpdate: async (id: number, supermarket: Supermarket, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiSupermarketUpdate', 'id', id) + // verify required parameter 'supermarket' is not null or undefined + assertParamExists('apiSupermarketUpdate', 'supermarket', supermarket) + 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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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, + }; + }, + /** + * api endpoint to switch space function + * @param {number} spaceId + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiSwitchActiveSpaceRetrieve: async (spaceId: number, options: any = {}): Promise => { + // verify required parameter 'spaceId' is not null or undefined + assertParamExists('apiSwitchActiveSpaceRetrieve', 'spaceId', spaceId) + const localVarPath = `/api/switch-active-space/{spaceId}/` + .replace(`{${"spaceId"}}`, encodeURIComponent(String(spaceId))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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 {Sync} sync + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiSyncCreate: async (sync: Sync, options: any = {}): Promise => { + // verify required parameter 'sync' is not null or undefined + assertParamExists('apiSyncCreate', 'sync', sync) + 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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); @@ -15263,16 +13049,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }; }, /** - * - * @param {string} id A unique integer value identifying this unit. - * @param {Unit} [unit] + * + * @param {number} id A unique integer value identifying this sync. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateUnit: async (id: string, unit?: Unit, options: any = {}): Promise => { + apiSyncDestroy: async (id: number, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined - assertParamExists('updateUnit', 'id', id) - const localVarPath = `/api/unit/{id}/` + assertParamExists('apiSyncDestroy', '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); @@ -15281,18 +13066,18 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) baseOptions = configuration.baseOptions; } - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - 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), @@ -15300,16 +13085,204 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }; }, /** - * - * @param {string} id A unique integer value identifying this unit conversion. - * @param {UnitConversion} [unitConversion] + * * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateUnitConversion: async (id: string, unitConversion?: UnitConversion, options: any = {}): Promise => { + apiSyncList: async (options: any = {}): Promise => { + const localVarPath = `/api/sync/`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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} + */ + apiSyncLogList: async (page?: number, pageSize?: number, options: any = {}): Promise => { + const localVarPath = `/api/sync-log/`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + 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 A unique integer value identifying this sync log. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiSyncLogRetrieve: async (id: number, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined - assertParamExists('updateUnitConversion', 'id', id) - const localVarPath = `/api/unit-conversion/{id}/` + assertParamExists('apiSyncLogRetrieve', '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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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 A unique integer value identifying this sync. + * @param {PatchedSync} [patchedSync] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiSyncPartialUpdate: async (id: number, patchedSync?: PatchedSync, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiSyncPartialUpdate', '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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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(patchedSync, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {number} id A unique integer value identifying this sync. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiSyncRetrieve: async (id: number, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiSyncRetrieve', '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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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 A unique integer value identifying this sync. + * @param {Sync} sync + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiSyncUpdate: async (id: number, sync: Sync, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiSyncUpdate', 'id', id) + // verify required parameter 'sync' is not null or undefined + assertParamExists('apiSyncUpdate', 'sync', sync) + 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); @@ -15322,8 +13295,49 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + 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 {UnitConversion} unitConversion + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiUnitConversionCreate: async (unitConversion: UnitConversion, options: any = {}): Promise => { + // verify required parameter 'unitConversion' is not null or undefined + assertParamExists('apiUnitConversionCreate', 'unitConversion', unitConversion) + const localVarPath = `/api/unit-conversion/`; + // use dummy base URL string because the 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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); @@ -15337,24 +13351,795 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }; }, /** - * - * @param {string} id A unique integer value identifying this user file. - * @param {string} name - * @param {any} file - * @param {number} [id2] - * @param {string} [fileDownload] - * @param {string} [preview] - * @param {number} [fileSizeKb] + * + * @param {number} id A unique integer value identifying this unit conversion. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateUserFile: async (id: string, name: string, file: any, id2?: number, fileDownload?: string, preview?: string, fileSizeKb?: number, options: any = {}): Promise => { + apiUnitConversionDestroy: async (id: number, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined - assertParamExists('updateUserFile', 'id', id) + assertParamExists('apiUnitConversionDestroy', 'id', id) + const localVarPath = `/api/unit-conversion/{id}/` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the 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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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} [foodId] ID of food to filter for + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiUnitConversionList: async (foodId?: number, options: any = {}): Promise => { + const localVarPath = `/api/unit-conversion/`; + // use dummy base URL string because the 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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + if (foodId !== undefined) { + localVarQueryParameter['food_id'] = foodId; + } + + + + 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 A unique integer value identifying this unit conversion. + * @param {PatchedUnitConversion} [patchedUnitConversion] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiUnitConversionPartialUpdate: async (id: number, patchedUnitConversion?: PatchedUnitConversion, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiUnitConversionPartialUpdate', 'id', id) + const localVarPath = `/api/unit-conversion/{id}/` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the 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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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(patchedUnitConversion, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {number} id A unique integer value identifying this unit conversion. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiUnitConversionRetrieve: async (id: number, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiUnitConversionRetrieve', 'id', id) + const localVarPath = `/api/unit-conversion/{id}/` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the 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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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 A unique integer value identifying this unit conversion. + * @param {UnitConversion} unitConversion + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiUnitConversionUpdate: async (id: number, unitConversion: UnitConversion, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiUnitConversionUpdate', 'id', id) + // verify required parameter 'unitConversion' is not null or undefined + assertParamExists('apiUnitConversionUpdate', 'unitConversion', unitConversion) + const localVarPath = `/api/unit-conversion/{id}/` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the 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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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(unitConversion, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {Unit} unit + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiUnitCreate: async (unit: Unit, options: any = {}): Promise => { + // verify required parameter 'unit' is not null or undefined + assertParamExists('apiUnitCreate', 'unit', unit) + 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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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 {number} id A unique integer value identifying this unit. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiUnitDestroy: async (id: number, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiUnitDestroy', '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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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} [limit] limit number of entries to return + * @param {number} [page] A page number within the paginated result set. + * @param {number} [pageSize] Number of results to return per page. + * @param {string} [query] lookup if query string is contained within the name, case insensitive + * @param {string} [random] randomly orders entries (only works together with limit) + * @param {string} [updatedAt] if model has an updated_at timestamp, filter only models updated at or after datetime + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiUnitList: async (limit?: string, page?: number, pageSize?: number, query?: string, random?: string, updatedAt?: string, options: any = {}): Promise => { + const localVarPath = `/api/unit/`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } + + if (pageSize !== undefined) { + localVarQueryParameter['page_size'] = pageSize; + } + + if (query !== undefined) { + localVarQueryParameter['query'] = query; + } + + if (random !== undefined) { + localVarQueryParameter['random'] = random; + } + + if (updatedAt !== undefined) { + localVarQueryParameter['updated_at'] = updatedAt; + } + + + + 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 A unique integer value identifying this unit. + * @param {string} target + * @param {Unit} unit + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiUnitMergeUpdate: async (id: number, target: string, unit: Unit, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiUnitMergeUpdate', 'id', id) + // verify required parameter 'target' is not null or undefined + assertParamExists('apiUnitMergeUpdate', 'target', target) + // verify required parameter 'unit' is not null or undefined + assertParamExists('apiUnitMergeUpdate', 'unit', unit) + 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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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 {number} id A unique integer value identifying this unit. + * @param {PatchedUnit} [patchedUnit] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiUnitPartialUpdate: async (id: number, patchedUnit?: PatchedUnit, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiUnitPartialUpdate', '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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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(patchedUnit, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {number} id A unique integer value identifying this unit. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiUnitRetrieve: async (id: number, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiUnitRetrieve', '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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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 A unique integer value identifying this unit. + * @param {Unit} unit + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiUnitUpdate: async (id: number, unit: Unit, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiUnitUpdate', 'id', id) + // verify required parameter 'unit' is not null or undefined + assertParamExists('apiUnitUpdate', 'unit', unit) + 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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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 {number} id + * @param {string} name + * @param {string} file + * @param {string} fileDownload + * @param {string} preview + * @param {number} fileSizeKb + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiUserFileCreate: async (id: number, name: string, file: string, fileDownload: string, preview: string, fileSizeKb: number, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiUserFileCreate', 'id', id) // verify required parameter 'name' is not null or undefined - assertParamExists('updateUserFile', 'name', name) + assertParamExists('apiUserFileCreate', 'name', name) // verify required parameter 'file' is not null or undefined - assertParamExists('updateUserFile', 'file', file) + assertParamExists('apiUserFileCreate', 'file', file) + // verify required parameter 'fileDownload' is not null or undefined + assertParamExists('apiUserFileCreate', 'fileDownload', fileDownload) + // verify required parameter 'preview' is not null or undefined + assertParamExists('apiUserFileCreate', 'preview', preview) + // verify required parameter 'fileSizeKb' is not null or undefined + assertParamExists('apiUserFileCreate', 'fileSizeKb', fileSizeKb) + 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)(); + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + if (id !== undefined) { + localVarFormParams.append('id', id as any); + } + + if (name !== undefined) { + localVarFormParams.append('name', name as any); + } + + if (file !== undefined) { + localVarFormParams.append('file', file as any); + } + + if (fileDownload !== undefined) { + localVarFormParams.append('file_download', fileDownload as any); + } + + if (preview !== undefined) { + localVarFormParams.append('preview', preview as any); + } + + if (fileSizeKb !== undefined) { + localVarFormParams.append('file_size_kb', fileSizeKb as any); + } + + + localVarHeaderParameter['Content-Type'] = 'multipart/form-data'; + + setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = localVarFormParams; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {number} id A unique integer value identifying this user file. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiUserFileDestroy: async (id: number, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiUserFileDestroy', '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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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} [limit] limit number of entries to return + * @param {string} [query] lookup if query string is contained within the name, case insensitive + * @param {string} [random] randomly orders entries (only works together with limit) + * @param {string} [updatedAt] if model has an updated_at timestamp, filter only models updated at or after datetime + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiUserFileList: async (limit?: string, query?: string, random?: string, updatedAt?: string, options: any = {}): Promise => { + const localVarPath = `/api/user-file/`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + if (limit !== undefined) { + localVarQueryParameter['limit'] = limit; + } + + if (query !== undefined) { + localVarQueryParameter['query'] = query; + } + + if (random !== undefined) { + localVarQueryParameter['random'] = random; + } + + if (updatedAt !== undefined) { + localVarQueryParameter['updated_at'] = updatedAt; + } + + + + 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 A unique integer value identifying this user file. + * @param {number} [id2] + * @param {string} [name] + * @param {string} [file] + * @param {string} [fileDownload] + * @param {string} [preview] + * @param {number} [fileSizeKb] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiUserFilePartialUpdate: async (id: number, id2?: number, name?: string, file?: string, fileDownload?: string, preview?: string, fileSizeKb?: number, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiUserFilePartialUpdate', '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: 'PATCH', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)(); + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + if (id2 !== undefined) { + localVarFormParams.append('id', id2 as any); + } + + if (name !== undefined) { + localVarFormParams.append('name', name as any); + } + + if (file !== undefined) { + localVarFormParams.append('file', file as any); + } + + if (fileDownload !== undefined) { + localVarFormParams.append('file_download', fileDownload as any); + } + + if (preview !== undefined) { + localVarFormParams.append('preview', preview as any); + } + + if (fileSizeKb !== undefined) { + localVarFormParams.append('file_size_kb', fileSizeKb as any); + } + + + localVarHeaderParameter['Content-Type'] = 'multipart/form-data'; + + setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = localVarFormParams; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {number} id A unique integer value identifying this user file. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiUserFileRetrieve: async (id: number, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiUserFileRetrieve', '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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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 A unique integer value identifying this user file. + * @param {number} id2 + * @param {string} name + * @param {string} file + * @param {string} fileDownload + * @param {string} preview + * @param {number} fileSizeKb + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiUserFileUpdate: async (id: number, id2: number, name: string, file: string, fileDownload: string, preview: string, fileSizeKb: number, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiUserFileUpdate', 'id', id) + // verify required parameter 'id2' is not null or undefined + assertParamExists('apiUserFileUpdate', 'id2', id2) + // verify required parameter 'name' is not null or undefined + assertParamExists('apiUserFileUpdate', 'name', name) + // verify required parameter 'file' is not null or undefined + assertParamExists('apiUserFileUpdate', 'file', file) + // verify required parameter 'fileDownload' is not null or undefined + assertParamExists('apiUserFileUpdate', 'fileDownload', fileDownload) + // verify required parameter 'preview' is not null or undefined + assertParamExists('apiUserFileUpdate', 'preview', preview) + // verify required parameter 'fileSizeKb' is not null or undefined + assertParamExists('apiUserFileUpdate', 'fileSizeKb', fileSizeKb) const localVarPath = `/api/user-file/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. @@ -15369,34 +14154,37 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) const localVarQueryParameter = {} as any; const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)(); + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - if (id2 !== undefined) { + + if (id2 !== undefined) { localVarFormParams.append('id', id2 as any); } - - if (name !== undefined) { + + if (name !== undefined) { localVarFormParams.append('name', name as any); } - - if (file !== undefined) { + + if (file !== undefined) { localVarFormParams.append('file', file as any); } - - if (fileDownload !== undefined) { + + if (fileDownload !== undefined) { localVarFormParams.append('file_download', fileDownload as any); } - - if (preview !== undefined) { + + if (preview !== undefined) { localVarFormParams.append('preview', preview as any); } - - if (fileSizeKb !== undefined) { + + if (fileSizeKb !== undefined) { localVarFormParams.append('file_size_kb', fileSizeKb as any); } - - + + localVarHeaderParameter['Content-Type'] = 'multipart/form-data'; - + setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -15408,15 +14196,579 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }; }, /** - * - * @param {string} id A unique integer value identifying this view log. - * @param {ViewLog} [viewLog] + * list: optional parameters - **filter_list**: array of user id\'s to get names for * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateViewLog: async (id: string, viewLog?: ViewLog, options: any = {}): Promise => { + apiUserList: async (options: any = {}): Promise => { + const localVarPath = `/api/user/`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * list: optional parameters - **filter_list**: array of user id\'s to get names for + * @param {number} id A unique integer value identifying this user. + * @param {PatchedUser} [patchedUser] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiUserPartialUpdate: async (id: number, patchedUser?: PatchedUser, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined - assertParamExists('updateViewLog', 'id', id) + assertParamExists('apiUserPartialUpdate', 'id', id) + const localVarPath = `/api/user/{id}/` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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(patchedUser, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiUserPreferenceList: async (options: any = {}): Promise => { + const localVarPath = `/api/user-preference/`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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} user A unique value identifying this user preference. + * @param {PatchedUserPreference} [patchedUserPreference] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiUserPreferencePartialUpdate: async (user: number, patchedUserPreference?: PatchedUserPreference, options: any = {}): Promise => { + // verify required parameter 'user' is not null or undefined + assertParamExists('apiUserPreferencePartialUpdate', '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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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(patchedUserPreference, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {number} user A unique value identifying this user preference. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiUserPreferenceRetrieve: async (user: number, options: any = {}): Promise => { + // verify required parameter 'user' is not null or undefined + assertParamExists('apiUserPreferenceRetrieve', '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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * list: optional parameters - **filter_list**: array of user id\'s to get names for + * @param {number} id A unique integer value identifying this user. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiUserRetrieve: async (id: number, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiUserRetrieve', 'id', id) + const localVarPath = `/api/user/{id}/` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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 A unique integer value identifying this user space. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiUserSpaceDestroy: async (id: number, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiUserSpaceDestroy', 'id', id) + const localVarPath = `/api/user-space/{id}/` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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} + */ + apiUserSpaceList: async (page?: number, pageSize?: number, options: any = {}): Promise => { + const localVarPath = `/api/user-space/`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + 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 A unique integer value identifying this user space. + * @param {PatchedUserSpace} [patchedUserSpace] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiUserSpacePartialUpdate: async (id: number, patchedUserSpace?: PatchedUserSpace, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiUserSpacePartialUpdate', 'id', id) + const localVarPath = `/api/user-space/{id}/` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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(patchedUserSpace, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {number} id A unique integer value identifying this user space. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiUserSpaceRetrieve: async (id: number, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiUserSpaceRetrieve', 'id', id) + const localVarPath = `/api/user-space/{id}/` + .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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 {ViewLog} viewLog + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiViewLogCreate: async (viewLog: ViewLog, options: any = {}): Promise => { + // verify required parameter 'viewLog' is not null or undefined + assertParamExists('apiViewLogCreate', 'viewLog', viewLog) + 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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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 {number} id A unique integer value identifying this view log. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiViewLogDestroy: async (id: number, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiViewLogDestroy', '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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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} + */ + apiViewLogList: async (page?: number, pageSize?: number, options: any = {}): Promise => { + const localVarPath = `/api/view-log/`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + 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 A unique integer value identifying this view log. + * @param {PatchedViewLog} [patchedViewLog] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiViewLogPartialUpdate: async (id: number, patchedViewLog?: PatchedViewLog, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiViewLogPartialUpdate', '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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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(patchedViewLog, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {number} id A unique integer value identifying this view log. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiViewLogRetrieve: async (id: number, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiViewLogRetrieve', '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; + + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + 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 A unique integer value identifying this view log. + * @param {ViewLog} viewLog + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiViewLogUpdate: async (id: number, viewLog: ViewLog, options: any = {}): Promise => { + // verify required parameter 'id' is not null or undefined + assertParamExists('apiViewLogUpdate', 'id', id) + // verify required parameter 'viewLog' is not null or undefined + assertParamExists('apiViewLogUpdate', 'viewLog', viewLog) const localVarPath = `/api/view-log/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. @@ -15430,8 +14782,11 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + localVarHeaderParameter['Content-Type'] = 'application/json'; setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); @@ -15455,1031 +14810,1127 @@ export const ApiApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = ApiApiAxiosParamCreator(configuration) return { /** - * - * @param {ShoppingListEntryBulk} [shoppingListEntryBulk] + * + * @param {AccessToken} accessToken * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async bulkShoppingListEntry(shoppingListEntryBulk?: ShoppingListEntryBulk, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.bulkShoppingListEntry(shoppingListEntryBulk, options); + async apiAccessTokenCreate(accessToken: AccessToken, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiAccessTokenCreate(accessToken, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {AccessToken} [accessToken] + * + * @param {number} id A unique integer value identifying this access token. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async createAccessToken(accessToken?: AccessToken, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createAccessToken(accessToken, options); + async apiAccessTokenDestroy(id: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiAccessTokenDestroy(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {any} [body] + * * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async createAutoPlanViewSet(body?: any, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createAutoPlanViewSet(body, options); + async apiAccessTokenList(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiAccessTokenList(options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {Automation} [automation] + * + * @param {number} id A unique integer value identifying this access token. + * @param {PatchedAccessToken} [patchedAccessToken] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async createAutomation(automation?: Automation, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createAutomation(automation, options); + async apiAccessTokenPartialUpdate(id: number, patchedAccessToken?: PatchedAccessToken, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiAccessTokenPartialUpdate(id, patchedAccessToken, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {BookmarkletImport} [bookmarkletImport] + * + * @param {number} id A unique integer value identifying this access token. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async createBookmarkletImport(bookmarkletImport?: BookmarkletImport, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createBookmarkletImport(bookmarkletImport, options); + async apiAccessTokenRetrieve(id: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiAccessTokenRetrieve(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {ConnectorConfigConfig} [connectorConfigConfig] + * + * @param {number} id A unique integer value identifying this access token. + * @param {AccessToken} accessToken * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async createConnectorConfig(connectorConfigConfig?: ConnectorConfigConfig, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createConnectorConfig(connectorConfigConfig, options); + async apiAccessTokenUpdate(id: number, accessToken: AccessToken, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiAccessTokenUpdate(id, accessToken, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {CookLog} [cookLog] + * * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async createCookLog(cookLog?: CookLog, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createCookLog(cookLog, options); + async apiAutoPlanCreate(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiAutoPlanCreate(options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {CustomFilter} [customFilter] + * list: optional parameters - **automation_type**: Return the Automations matching the automation type. Multiple values allowed. *Automation Types:* - FS: Food Alias - UA: Unit Alias - KA: Keyword Alias - DR: Description Replace - IR: Instruction Replace - NU: Never Unit - TW: Transpose Words - FR: Food Replace - UR: Unit Replace - NR: Name Replace + * @param {Automation} automation * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async createCustomFilter(customFilter?: CustomFilter, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createCustomFilter(customFilter, options); + async apiAutomationCreate(automation: Automation, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiAutomationCreate(automation, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {ExportLog} [exportLog] + * list: optional parameters - **automation_type**: Return the Automations matching the automation type. Multiple values allowed. *Automation Types:* - FS: Food Alias - UA: Unit Alias - KA: Keyword Alias - DR: Description Replace - IR: Instruction Replace - NU: Never Unit - TW: Transpose Words - FR: Food Replace - UR: Unit Replace - NR: Name Replace + * @param {number} id A unique integer value identifying this automation. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async createExportLog(exportLog?: ExportLog, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createExportLog(exportLog, options); + async apiAutomationDestroy(id: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiAutomationDestroy(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {Food} [food] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createFood(food?: Food, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createFood(food, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {ImportLog} [importLog] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createImportLog(importLog?: ImportLog, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createImportLog(importLog, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {Ingredient} [ingredient] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createIngredient(ingredient?: Ingredient, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createIngredient(ingredient, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {InviteLink} [inviteLink] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createInviteLink(inviteLink?: InviteLink, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createInviteLink(inviteLink, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {Keyword} [keyword] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createKeyword(keyword?: Keyword, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createKeyword(keyword, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {MealPlan} [mealPlan] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createMealPlan(mealPlan?: MealPlan, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createMealPlan(mealPlan, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * returns list of meal types created by the requesting user ordered by the order field. - * @param {MealType} [mealType] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createMealType(mealType?: MealType, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createMealType(mealType, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {OpenDataCategory} [openDataCategory] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createOpenDataCategory(openDataCategory?: OpenDataCategory, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createOpenDataCategory(openDataCategory, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {OpenDataConversion} [openDataConversion] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createOpenDataConversion(openDataConversion?: OpenDataConversion, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createOpenDataConversion(openDataConversion, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {OpenDataFood} [openDataFood] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createOpenDataFood(openDataFood?: OpenDataFood, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createOpenDataFood(openDataFood, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {OpenDataProperty} [openDataProperty] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createOpenDataProperty(openDataProperty?: OpenDataProperty, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createOpenDataProperty(openDataProperty, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {OpenDataStore} [openDataStore] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createOpenDataStore(openDataStore?: OpenDataStore, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createOpenDataStore(openDataStore, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {OpenDataUnit} [openDataUnit] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createOpenDataUnit(openDataUnit?: OpenDataUnit, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createOpenDataUnit(openDataUnit, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {OpenDataVersion} [openDataVersion] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createOpenDataVersion(openDataVersion?: OpenDataVersion, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createOpenDataVersion(openDataVersion, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {Property} [property] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createProperty(property?: Property, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createProperty(property, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {PropertyType} [propertyType] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createPropertyType(propertyType?: PropertyType, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createPropertyType(propertyType, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {Recipe} [recipe] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createRecipe(recipe?: Recipe, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createRecipe(recipe, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {RecipeBook} [recipeBook] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createRecipeBook(recipeBook?: RecipeBook, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createRecipeBook(recipeBook, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {RecipeBookEntry} [recipeBookEntry] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createRecipeBookEntry(recipeBookEntry?: RecipeBookEntry, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createRecipeBookEntry(recipeBookEntry, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * function to retrieve a recipe from a given url or source string :param request: standard request with additional post parameters - url: url to use for importing recipe - data: if no url is given recipe is imported from provided source data - (optional) bookmarklet: id of bookmarklet import to use, overrides URL and data attributes :return: JsonResponse containing the parsed json and images - * @param {any} [body] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createRecipeUrlImport(body?: any, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createRecipeUrlImport(body, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {ShoppingList} [shoppingList] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createShoppingList(shoppingList?: ShoppingList, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createShoppingList(shoppingList, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {ShoppingListEntry} [shoppingListEntry] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createShoppingListEntry(shoppingListEntry?: ShoppingListEntry, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createShoppingListEntry(shoppingListEntry, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {ShoppingListRecipe} [shoppingListRecipe] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createShoppingListRecipe(shoppingListRecipe?: ShoppingListRecipe, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createShoppingListRecipe(shoppingListRecipe, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {Step} [step] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createStep(step?: Step, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createStep(step, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {Storage} [storage] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createStorage(storage?: Storage, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createStorage(storage, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {Supermarket} [supermarket] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createSupermarket(supermarket?: Supermarket, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createSupermarket(supermarket, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {SupermarketCategory} [supermarketCategory] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createSupermarketCategory(supermarketCategory?: SupermarketCategory, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createSupermarketCategory(supermarketCategory, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {SupermarketCategoryRelation} [supermarketCategoryRelation] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createSupermarketCategoryRelation(supermarketCategoryRelation?: SupermarketCategoryRelation, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createSupermarketCategoryRelation(supermarketCategoryRelation, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {Sync} [sync] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createSync(sync?: Sync, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createSync(sync, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {Unit} [unit] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createUnit(unit?: Unit, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createUnit(unit, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {UnitConversion} [unitConversion] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createUnitConversion(unitConversion?: UnitConversion, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createUnitConversion(unitConversion, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} name - * @param {any} file - * @param {number} [id] - * @param {string} [fileDownload] - * @param {string} [preview] - * @param {number} [fileSizeKb] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createUserFile(name: string, file: any, id?: number, fileDownload?: string, preview?: string, fileSizeKb?: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createUserFile(name, file, id, fileDownload, preview, fileSizeKb, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {ViewLog} [viewLog] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createViewLog(viewLog?: ViewLog, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createViewLog(viewLog, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * function to handle files passed by application importer - * @param {any} [body] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createimportFiles(body?: any, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createimportFiles(body, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this access token. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async destroyAccessToken(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.destroyAccessToken(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 destroyAutomation(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.destroyAutomation(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this bookmarklet import. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async destroyBookmarkletImport(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.destroyBookmarkletImport(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this connector config. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async destroyConnectorConfig(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.destroyConnectorConfig(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this cook log. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async destroyCookLog(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.destroyCookLog(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this custom filter. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async destroyCustomFilter(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.destroyCustomFilter(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this export log. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async destroyExportLog(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.destroyExportLog(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this food. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async destroyFood(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.destroyFood(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this import log. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async destroyImportLog(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.destroyImportLog(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this ingredient. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async destroyIngredient(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.destroyIngredient(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this invite link. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async destroyInviteLink(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.destroyInviteLink(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this keyword. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async destroyKeyword(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.destroyKeyword(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this meal plan. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async destroyMealPlan(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.destroyMealPlan(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * returns list of meal types created by the requesting user ordered by the order field. - * @param {string} id A unique integer value identifying this meal type. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async destroyMealType(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.destroyMealType(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this open data category. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async destroyOpenDataCategory(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.destroyOpenDataCategory(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this open data conversion. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async destroyOpenDataConversion(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.destroyOpenDataConversion(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this open data food. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async destroyOpenDataFood(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.destroyOpenDataFood(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this open data property. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async destroyOpenDataProperty(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.destroyOpenDataProperty(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this open data store. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async destroyOpenDataStore(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.destroyOpenDataStore(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this open data unit. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async destroyOpenDataUnit(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.destroyOpenDataUnit(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this open data version. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async destroyOpenDataVersion(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.destroyOpenDataVersion(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this property. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async destroyProperty(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.destroyProperty(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this property type. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async destroyPropertyType(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.destroyPropertyType(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this recipe. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async destroyRecipe(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.destroyRecipe(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this recipe book. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async destroyRecipeBook(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.destroyRecipeBook(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this recipe book entry. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async destroyRecipeBookEntry(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.destroyRecipeBookEntry(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this shopping list. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async destroyShoppingList(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.destroyShoppingList(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this shopping list entry. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async destroyShoppingListEntry(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.destroyShoppingListEntry(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this shopping list recipe. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async destroyShoppingListRecipe(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.destroyShoppingListRecipe(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this step. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async destroyStep(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.destroyStep(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this storage. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async destroyStorage(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.destroyStorage(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this supermarket. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async destroySupermarket(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.destroySupermarket(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this supermarket category. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async destroySupermarketCategory(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.destroySupermarketCategory(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this supermarket category relation. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async destroySupermarketCategoryRelation(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.destroySupermarketCategoryRelation(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this sync. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async destroySync(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.destroySync(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this unit. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async destroyUnit(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.destroyUnit(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this unit conversion. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async destroyUnitConversion(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.destroyUnitConversion(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this user file. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async destroyUserFile(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.destroyUserFile(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this user space. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async destroyUserSpace(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.destroyUserSpace(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this view log. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async destroyViewLog(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.destroyViewLog(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * updates the food with all possible data from the FDC Api if properties with a fdc_id already exist they will be overridden, if existing properties don\'t have a fdc_id they won\'t be changed - * @param {string} id A unique integer value identifying this food. - * @param {Food} [food] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async fdcFood(id: string, food?: Food, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.fdcFood(id, food, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async flatRecipe(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.flatRecipe(options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this recipe. - * @param {any} [image] - * @param {string} [imageUrl] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async imageRecipe(id: string, image?: any, imageUrl?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.imageRecipe(id, image, imageUrl, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async listAccessTokens(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await localVarAxiosParamCreator.listAccessTokens(options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * optional parameters - **automation_type**: Return the Automations matching the automation type. Multiple values allowed. *Automation Types:* - FS: Food Alias - UA: Unit Alias - KA: Keyword Alias - DR: Description Replace - IR: Instruction Replace - NU: Never Unit - TW: Transpose Words - FR: Food Replace - UR: Unit Replace - NR: Name Replace + * list: optional parameters - **automation_type**: Return the Automations matching the automation type. Multiple values allowed. *Automation Types:* - FS: Food Alias - UA: Unit Alias - KA: Keyword Alias - DR: Description Replace - IR: Instruction Replace - NU: Never Unit - TW: Transpose Words - FR: Food Replace - UR: Unit Replace - NR: Name Replace * @param {string} [automationType] Return the Automations matching the automation type. Multiple values allowed. * @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 listAutomations(automationType?: string, page?: number, pageSize?: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.listAutomations(automationType, page, pageSize, options); + async apiAutomationList(automationType?: string, page?: number, pageSize?: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiAutomationList(automationType, page, pageSize, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * list: optional parameters - **automation_type**: Return the Automations matching the automation type. Multiple values allowed. *Automation Types:* - FS: Food Alias - UA: Unit Alias - KA: Keyword Alias - DR: Description Replace - IR: Instruction Replace - NU: Never Unit - TW: Transpose Words - FR: Food Replace - UR: Unit Replace - NR: Name Replace + * @param {number} id A unique integer value identifying this automation. + * @param {PatchedAutomation} [patchedAutomation] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async listBookmarkletImports(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await localVarAxiosParamCreator.listBookmarkletImports(options); + async apiAutomationPartialUpdate(id: number, patchedAutomation?: PatchedAutomation, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiAutomationPartialUpdate(id, patchedAutomation, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * list: optional parameters - **automation_type**: Return the Automations matching the automation type. Multiple values allowed. *Automation Types:* - FS: Food Alias - UA: Unit Alias - KA: Keyword Alias - DR: Description Replace - IR: Instruction Replace - NU: Never Unit - TW: Transpose Words - FR: Food Replace - UR: Unit Replace - NR: Name Replace + * @param {number} id A unique integer value identifying this automation. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async listConnectorConfigs(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await localVarAxiosParamCreator.listConnectorConfigs(options); + async apiAutomationRetrieve(id: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiAutomationRetrieve(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * list: optional parameters - **automation_type**: Return the Automations matching the automation type. Multiple values allowed. *Automation Types:* - FS: Food Alias - UA: Unit Alias - KA: Keyword Alias - DR: Description Replace - IR: Instruction Replace - NU: Never Unit - TW: Transpose Words - FR: Food Replace - UR: Unit Replace - NR: Name Replace + * @param {number} id A unique integer value identifying this automation. + * @param {Automation} automation + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiAutomationUpdate(id: number, automation: Automation, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiAutomationUpdate(id, automation, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {BookmarkletImport} bookmarkletImport + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiBookmarkletImportCreate(bookmarkletImport: BookmarkletImport, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiBookmarkletImportCreate(bookmarkletImport, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {number} id A unique integer value identifying this bookmarklet import. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiBookmarkletImportDestroy(id: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiBookmarkletImportDestroy(id, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiBookmarkletImportList(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiBookmarkletImportList(options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {number} id A unique integer value identifying this bookmarklet import. + * @param {PatchedBookmarkletImport} [patchedBookmarkletImport] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiBookmarkletImportPartialUpdate(id: number, patchedBookmarkletImport?: PatchedBookmarkletImport, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiBookmarkletImportPartialUpdate(id, patchedBookmarkletImport, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {number} id A unique integer value identifying this bookmarklet import. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiBookmarkletImportRetrieve(id: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiBookmarkletImportRetrieve(id, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {number} id A unique integer value identifying this bookmarklet import. + * @param {BookmarkletImport} bookmarkletImport + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiBookmarkletImportUpdate(id: number, bookmarkletImport: BookmarkletImport, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiBookmarkletImportUpdate(id, bookmarkletImport, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {ConnectorConfigConfig} connectorConfigConfig + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiConnectorConfigCreate(connectorConfigConfig: ConnectorConfigConfig, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiConnectorConfigCreate(connectorConfigConfig, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {number} id A unique integer value identifying this connector config. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiConnectorConfigDestroy(id: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiConnectorConfigDestroy(id, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiConnectorConfigList(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiConnectorConfigList(options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {number} id A unique integer value identifying this connector config. + * @param {PatchedConnectorConfigConfig} [patchedConnectorConfigConfig] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiConnectorConfigPartialUpdate(id: number, patchedConnectorConfigConfig?: PatchedConnectorConfigConfig, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiConnectorConfigPartialUpdate(id, patchedConnectorConfigConfig, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {number} id A unique integer value identifying this connector config. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiConnectorConfigRetrieve(id: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiConnectorConfigRetrieve(id, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {number} id A unique integer value identifying this connector config. + * @param {ConnectorConfigConfig} connectorConfigConfig + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiConnectorConfigUpdate(id: number, connectorConfigConfig: ConnectorConfigConfig, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiConnectorConfigUpdate(id, connectorConfigConfig, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {CookLog} cookLog + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiCookLogCreate(cookLog: CookLog, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiCookLogCreate(cookLog, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {number} id A unique integer value identifying this cook log. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiCookLogDestroy(id: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiCookLogDestroy(id, 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 {number} [recipe] Filter for entries with the given recipe + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiCookLogList(page?: number, pageSize?: number, recipe?: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiCookLogList(page, pageSize, recipe, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {number} id A unique integer value identifying this cook log. + * @param {PatchedCookLog} [patchedCookLog] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiCookLogPartialUpdate(id: number, patchedCookLog?: PatchedCookLog, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiCookLogPartialUpdate(id, patchedCookLog, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {number} id A unique integer value identifying this cook log. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiCookLogRetrieve(id: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiCookLogRetrieve(id, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {number} id A unique integer value identifying this cook log. + * @param {CookLog} cookLog + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiCookLogUpdate(id: number, cookLog: CookLog, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiCookLogUpdate(id, cookLog, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {CustomFilter} customFilter + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiCustomFilterCreate(customFilter: CustomFilter, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiCustomFilterCreate(customFilter, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {number} id A unique integer value identifying this custom filter. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiCustomFilterDestroy(id: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiCustomFilterDestroy(id, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {string} [limit] limit number of entries to return + * @param {number} [page] A page number within the paginated result set. + * @param {number} [pageSize] Number of results to return per page. + * @param {string} [query] lookup if query string is contained within the name, case insensitive + * @param {string} [random] randomly orders entries (only works together with limit) + * @param {string} [updatedAt] if model has an updated_at timestamp, filter only models updated at or after datetime + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiCustomFilterList(limit?: string, page?: number, pageSize?: number, query?: string, random?: string, updatedAt?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiCustomFilterList(limit, page, pageSize, query, random, updatedAt, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {number} id A unique integer value identifying this custom filter. + * @param {PatchedCustomFilter} [patchedCustomFilter] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiCustomFilterPartialUpdate(id: number, patchedCustomFilter?: PatchedCustomFilter, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiCustomFilterPartialUpdate(id, patchedCustomFilter, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {number} id A unique integer value identifying this custom filter. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiCustomFilterRetrieve(id: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiCustomFilterRetrieve(id, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {number} id A unique integer value identifying this custom filter. + * @param {CustomFilter} customFilter + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiCustomFilterUpdate(id: number, customFilter: CustomFilter, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiCustomFilterUpdate(id, customFilter, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * function to download a user file securely (wrapping as zip to prevent any context based XSS problems) temporary solution until a real file manager is implemented + * @param {number} fileId + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiDownloadFileRetrieve(fileId: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiDownloadFileRetrieve(fileId, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {ExportLog} exportLog + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiExportLogCreate(exportLog: ExportLog, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiExportLogCreate(exportLog, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {number} id A unique integer value identifying this export log. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiExportLogDestroy(id: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiExportLogDestroy(id, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * * @param {number} [page] A page number within the paginated result set. * @param {number} [pageSize] Number of results to return per page. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async listCookLogs(page?: number, pageSize?: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.listCookLogs(page, pageSize, options); + async apiExportLogList(page?: number, pageSize?: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiExportLogList(page, pageSize, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * + * @param {number} id A unique integer value identifying this export log. + * @param {PatchedExportLog} [patchedExportLog] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiExportLogPartialUpdate(id: number, patchedExportLog?: PatchedExportLog, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiExportLogPartialUpdate(id, patchedExportLog, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {number} id A unique integer value identifying this export log. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiExportLogRetrieve(id: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiExportLogRetrieve(id, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {number} id A unique integer value identifying this export log. + * @param {ExportLog} exportLog + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiExportLogUpdate(id: number, exportLog: ExportLog, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiExportLogUpdate(id, exportLog, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {Food} food + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiFoodCreate(food: Food, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiFoodCreate(food, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {number} id A unique integer value identifying this food. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiFoodDestroy(id: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiFoodDestroy(id, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * updates the food with all possible data from the FDC Api if properties with a fdc_id already exist they will be overridden, if existing properties don\'t have a fdc_id they won\'t be changed + * @param {number} id A unique integer value identifying this food. + * @param {Food} food + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiFoodFdcCreate(id: number, food: Food, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiFoodFdcCreate(id, food, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiFoodInheritFieldList(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiFoodInheritFieldList(options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {number} id A unique integer value identifying this food inherit field. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiFoodInheritFieldRetrieve(id: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiFoodInheritFieldRetrieve(id, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {string} [limit] limit number of entries to return + * @param {number} [page] A page number within the paginated result set. + * @param {number} [pageSize] Number of results to return per page. + * @param {string} [query] lookup if query string is contained within the name, case insensitive + * @param {string} [random] randomly orders entries (only works together with limit) + * @param {number} [root] Return first level children of {obj} with ID [int]. Integer 0 will return root {obj}s. + * @param {number} [tree] Return all self and children of {} with ID [int]. + * @param {string} [updatedAt] if model has an updated_at timestamp, filter only models updated at or after datetime + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiFoodList(limit?: string, page?: number, pageSize?: number, query?: string, random?: string, root?: number, tree?: number, updatedAt?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiFoodList(limit, page, pageSize, query, random, root, tree, updatedAt, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {number} id A unique integer value identifying this food. + * @param {string} target + * @param {Food} food + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiFoodMergeUpdate(id: number, target: string, food: Food, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiFoodMergeUpdate(id, target, food, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {number} id A unique integer value identifying this food. + * @param {string} parent + * @param {Food} food + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiFoodMoveUpdate(id: number, parent: string, food: Food, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiFoodMoveUpdate(id, parent, food, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {number} id A unique integer value identifying this food. + * @param {PatchedFood} [patchedFood] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiFoodPartialUpdate(id: number, patchedFood?: PatchedFood, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiFoodPartialUpdate(id, patchedFood, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {Property} property + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiFoodPropertyCreate(property: Property, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiFoodPropertyCreate(property, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {number} id A unique integer value identifying this property. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiFoodPropertyDestroy(id: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiFoodPropertyDestroy(id, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiFoodPropertyList(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiFoodPropertyList(options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {number} id A unique integer value identifying this property. + * @param {PatchedProperty} [patchedProperty] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiFoodPropertyPartialUpdate(id: number, patchedProperty?: PatchedProperty, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiFoodPropertyPartialUpdate(id, patchedProperty, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {number} id A unique integer value identifying this property. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiFoodPropertyRetrieve(id: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiFoodPropertyRetrieve(id, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {PropertyType} propertyType + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiFoodPropertyTypeCreate(propertyType: PropertyType, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiFoodPropertyTypeCreate(propertyType, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {number} id A unique integer value identifying this property type. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiFoodPropertyTypeDestroy(id: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiFoodPropertyTypeDestroy(id, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiFoodPropertyTypeList(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiFoodPropertyTypeList(options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {number} id A unique integer value identifying this property type. + * @param {PatchedPropertyType} [patchedPropertyType] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiFoodPropertyTypePartialUpdate(id: number, patchedPropertyType?: PatchedPropertyType, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiFoodPropertyTypePartialUpdate(id, patchedPropertyType, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {number} id A unique integer value identifying this property type. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiFoodPropertyTypeRetrieve(id: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiFoodPropertyTypeRetrieve(id, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {number} id A unique integer value identifying this property type. + * @param {PropertyType} propertyType + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiFoodPropertyTypeUpdate(id: number, propertyType: PropertyType, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiFoodPropertyTypeUpdate(id, propertyType, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {number} id A unique integer value identifying this property. + * @param {Property} property + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiFoodPropertyUpdate(id: number, property: Property, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiFoodPropertyUpdate(id, property, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {number} id A unique integer value identifying this food. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiFoodRetrieve(id: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiFoodRetrieve(id, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {number} id A unique integer value identifying this food. + * @param {FoodShoppingUpdate} foodShoppingUpdate + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiFoodShoppingUpdate(id: number, foodShoppingUpdate: FoodShoppingUpdate, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiFoodShoppingUpdate(id, foodShoppingUpdate, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {number} id A unique integer value identifying this food. + * @param {Food} food + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiFoodUpdate(id: number, food: Food, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiFoodUpdate(id, food, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiGroupList(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiGroupList(options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {number} id A unique integer value identifying this group. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiGroupRetrieve(id: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiGroupRetrieve(id, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * function to handle files passed by application importer + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiImportCreate(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiImportCreate(options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {ImportLog} importLog + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiImportLogCreate(importLog: ImportLog, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiImportLogCreate(importLog, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {number} id A unique integer value identifying this import log. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiImportLogDestroy(id: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiImportLogDestroy(id, 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 listCustomFilters(page?: number, pageSize?: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.listCustomFilters(page, pageSize, options); + async apiImportLogList(page?: number, pageSize?: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiImportLogList(page, pageSize, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * + * @param {number} id A unique integer value identifying this import log. + * @param {PatchedImportLog} [patchedImportLog] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiImportLogPartialUpdate(id: number, patchedImportLog?: PatchedImportLog, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiImportLogPartialUpdate(id, patchedImportLog, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {number} id A unique integer value identifying this import log. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiImportLogRetrieve(id: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiImportLogRetrieve(id, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {number} id A unique integer value identifying this import log. + * @param {ImportLog} importLog + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiImportLogUpdate(id: number, importLog: ImportLog, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiImportLogUpdate(id, importLog, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {Ingredient} ingredient + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiIngredientCreate(ingredient: Ingredient, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiIngredientCreate(ingredient, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {number} id A unique integer value identifying this ingredient. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiIngredientDestroy(id: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiIngredientDestroy(id, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * * @param {number} [page] A page number within the paginated result set. * @param {number} [pageSize] Number of results to return per page. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async listExportLogs(page?: number, pageSize?: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.listExportLogs(page, pageSize, options); + async apiIngredientList(page?: number, pageSize?: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiIngredientList(page, pageSize, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * + * @param {number} id A unique integer value identifying this ingredient. + * @param {PatchedIngredient} [patchedIngredient] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async listFoodInheritFields(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await localVarAxiosParamCreator.listFoodInheritFields(options); + async apiIngredientPartialUpdate(id: number, patchedIngredient?: PatchedIngredient, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiIngredientPartialUpdate(id, patchedIngredient, 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} id A unique integer value identifying this ingredient. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiIngredientRetrieve(id: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiIngredientRetrieve(id, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {number} id A unique integer value identifying this ingredient. + * @param {Ingredient} ingredient + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiIngredientUpdate(id: number, ingredient: Ingredient, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiIngredientUpdate(id, ingredient, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {InviteLink} inviteLink + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiInviteLinkCreate(inviteLink: InviteLink, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiInviteLinkCreate(inviteLink, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {number} id A unique integer value identifying this invite link. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiInviteLinkDestroy(id: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiInviteLinkDestroy(id, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {string} [limit] limit number of entries to return + * @param {string} [query] lookup if query string is contained within the name, case insensitive + * @param {string} [random] randomly orders entries (only works together with limit) + * @param {string} [updatedAt] if model has an updated_at timestamp, filter only models updated at or after datetime + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiInviteLinkList(limit?: string, query?: string, random?: string, updatedAt?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiInviteLinkList(limit, query, random, updatedAt, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {number} id A unique integer value identifying this invite link. + * @param {PatchedInviteLink} [patchedInviteLink] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiInviteLinkPartialUpdate(id: number, patchedInviteLink?: PatchedInviteLink, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiInviteLinkPartialUpdate(id, patchedInviteLink, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {number} id A unique integer value identifying this invite link. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiInviteLinkRetrieve(id: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiInviteLinkRetrieve(id, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {number} id A unique integer value identifying this invite link. + * @param {InviteLink} inviteLink + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiInviteLinkUpdate(id: number, inviteLink: InviteLink, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiInviteLinkUpdate(id, inviteLink, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {Keyword} keyword + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiKeywordCreate(keyword: Keyword, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiKeywordCreate(keyword, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {number} id A unique integer value identifying this keyword. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiKeywordDestroy(id: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiKeywordDestroy(id, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {string} [limit] limit number of entries to return * @param {number} [page] A page number within the paginated result set. * @param {number} [pageSize] Number of results to return per page. + * @param {string} [query] lookup if query string is contained within the name, case insensitive + * @param {string} [random] randomly orders entries (only works together with limit) + * @param {number} [root] Return first level children of {obj} with ID [int]. Integer 0 will return root {obj}s. + * @param {number} [tree] Return all self and children of {} with ID [int]. + * @param {string} [updatedAt] if model has an updated_at timestamp, filter only models updated at or after datetime * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async listFoods(query?: string, root?: number, tree?: number, page?: number, pageSize?: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.listFoods(query, root, tree, page, pageSize, options); + async apiKeywordList(limit?: string, page?: number, pageSize?: number, query?: string, random?: string, root?: number, tree?: number, updatedAt?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiKeywordList(limit, page, pageSize, query, random, root, tree, updatedAt, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * + * @param {number} id A unique integer value identifying this keyword. + * @param {string} target + * @param {Keyword} keyword * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async listGroups(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await localVarAxiosParamCreator.listGroups(options); + async apiKeywordMergeUpdate(id: number, target: string, keyword: Keyword, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiKeywordMergeUpdate(id, target, keyword, 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 {number} id A unique integer value identifying this keyword. + * @param {string} parent + * @param {Keyword} keyword * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async listImportLogs(page?: number, pageSize?: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.listImportLogs(page, pageSize, options); + async apiKeywordMoveUpdate(id: number, parent: string, keyword: Keyword, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiKeywordMoveUpdate(id, parent, keyword, 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 {number} id A unique integer value identifying this keyword. + * @param {PatchedKeyword} [patchedKeyword] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async listIngredients(page?: number, pageSize?: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.listIngredients(page, pageSize, options); + async apiKeywordPartialUpdate(id: number, patchedKeyword?: PatchedKeyword, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiKeywordPartialUpdate(id, patchedKeyword, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * + * @param {number} id A unique integer value identifying this keyword. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async listInviteLinks(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await localVarAxiosParamCreator.listInviteLinks(options); + async apiKeywordRetrieve(id: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiKeywordRetrieve(id, 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 {number} id A unique integer value identifying this keyword. + * @param {Keyword} keyword * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async listKeywords(query?: string, root?: number, tree?: number, page?: number, pageSize?: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.listKeywords(query, root, tree, page, pageSize, options); + async apiKeywordUpdate(id: number, keyword: Keyword, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiKeywordUpdate(id, keyword, 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 - **meal_type**: filter meal plans based on meal_type ID + * list: optional parameters - **from_date**: filter from (inclusive) a certain date onward - **to_date**: filter upward to (inclusive) certain date - **meal_type**: filter meal plans based on meal_type ID + * @param {MealPlan} mealPlan + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiMealPlanCreate(mealPlan: MealPlan, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiMealPlanCreate(mealPlan, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * list: optional parameters - **from_date**: filter from (inclusive) a certain date onward - **to_date**: filter upward to (inclusive) certain date - **meal_type**: filter meal plans based on meal_type ID + * @param {number} id A unique integer value identifying this meal plan. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiMealPlanDestroy(id: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiMealPlanDestroy(id, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * list: optional parameters - **from_date**: filter from (inclusive) a certain date onward - **to_date**: filter upward to (inclusive) certain date - **meal_type**: filter meal plans based on meal_type ID * @param {string} [fromDate] Filter meal plans from date (inclusive) in the format of YYYY-MM-DD. + * @param {string} [mealType] Filter meal plans with MealType ID. For multiple repeat parameter. * @param {string} [toDate] Filter meal plans to date (inclusive) in the format of YYYY-MM-DD. - * @param {number} [mealType] Filter meal plans with MealType ID. For multiple repeat parameter. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async listMealPlans(fromDate?: string, toDate?: string, mealType?: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await localVarAxiosParamCreator.listMealPlans(fromDate, toDate, mealType, options); + async apiMealPlanIcalRetrieve(fromDate?: string, mealType?: string, toDate?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiMealPlanIcalRetrieve(fromDate, mealType, toDate, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * list: optional parameters - **from_date**: filter from (inclusive) a certain date onward - **to_date**: filter upward to (inclusive) certain date - **meal_type**: filter meal plans based on meal_type ID + * @param {string} [fromDate] Filter meal plans from date (inclusive) in the format of YYYY-MM-DD. + * @param {string} [mealType] Filter meal plans with MealType ID. For multiple repeat parameter. + * @param {string} [toDate] Filter meal plans to date (inclusive) in the format of YYYY-MM-DD. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiMealPlanList(fromDate?: string, mealType?: string, toDate?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiMealPlanList(fromDate, mealType, toDate, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * list: optional parameters - **from_date**: filter from (inclusive) a certain date onward - **to_date**: filter upward to (inclusive) certain date - **meal_type**: filter meal plans based on meal_type ID + * @param {number} id A unique integer value identifying this meal plan. + * @param {PatchedMealPlan} [patchedMealPlan] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiMealPlanPartialUpdate(id: number, patchedMealPlan?: PatchedMealPlan, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiMealPlanPartialUpdate(id, patchedMealPlan, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * list: optional parameters - **from_date**: filter from (inclusive) a certain date onward - **to_date**: filter upward to (inclusive) certain date - **meal_type**: filter meal plans based on meal_type ID + * @param {number} id A unique integer value identifying this meal plan. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiMealPlanRetrieve(id: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiMealPlanRetrieve(id, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * list: optional parameters - **from_date**: filter from (inclusive) a certain date onward - **to_date**: filter upward to (inclusive) certain date - **meal_type**: filter meal plans based on meal_type ID + * @param {number} id A unique integer value identifying this meal plan. + * @param {MealPlan} mealPlan + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiMealPlanUpdate(id: number, mealPlan: MealPlan, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiMealPlanUpdate(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 {MealType} mealType + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiMealTypeCreate(mealType: MealType, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiMealTypeCreate(mealType, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * returns list of meal types created by the requesting user ordered by the order field. + * @param {number} id A unique integer value identifying this meal type. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiMealTypeDestroy(id: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiMealTypeDestroy(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** @@ -16487,338 +15938,318 @@ export const ApiApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async listMealTypes(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await localVarAxiosParamCreator.listMealTypes(options); + async apiMealTypeList(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiMealTypeList(options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * returns list of meal types created by the requesting user ordered by the order field. + * @param {number} id A unique integer value identifying this meal type. + * @param {PatchedMealType} [patchedMealType] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async listOpenDataCategorys(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await localVarAxiosParamCreator.listOpenDataCategorys(options); + async apiMealTypePartialUpdate(id: number, patchedMealType?: PatchedMealType, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiMealTypePartialUpdate(id, patchedMealType, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * returns list of meal types created by the requesting user ordered by the order field. + * @param {number} id A unique integer value identifying this meal type. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async listOpenDataConversions(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await localVarAxiosParamCreator.listOpenDataConversions(options); + async apiMealTypeRetrieve(id: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiMealTypeRetrieve(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 {number} id A unique integer value identifying this meal type. + * @param {MealType} mealType * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async listOpenDataFoods(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await localVarAxiosParamCreator.listOpenDataFoods(options); + async apiMealTypeUpdate(id: number, mealType: MealType, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiMealTypeUpdate(id, mealType, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * + * @param {string} fromDate + * @param {string} toDate * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async listOpenDataPropertys(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await localVarAxiosParamCreator.listOpenDataPropertys(options); + async apiPlanIcalRetrieve(fromDate: string, toDate: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiPlanIcalRetrieve(fromDate, toDate, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * + * @param {RecipeBook} recipeBook * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async listOpenDataStatisticsViewSets(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await localVarAxiosParamCreator.listOpenDataStatisticsViewSets(options); + async apiRecipeBookCreate(recipeBook: RecipeBook, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiRecipeBookCreate(recipeBook, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * + * @param {number} id A unique integer value identifying this recipe book. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async listOpenDataStores(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await localVarAxiosParamCreator.listOpenDataStores(options); + async apiRecipeBookDestroy(id: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiRecipeBookDestroy(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * list: optional parameters - **recipe**: id of recipe - only return books for that recipe - **book**: id of book - only return recipes in that book + * @param {RecipeBookEntry} recipeBookEntry * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async listOpenDataUnits(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await localVarAxiosParamCreator.listOpenDataUnits(options); + async apiRecipeBookEntryCreate(recipeBookEntry: RecipeBookEntry, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiRecipeBookEntryCreate(recipeBookEntry, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * list: optional parameters - **recipe**: id of recipe - only return books for that recipe - **book**: id of book - only return recipes in that book + * @param {number} id A unique integer value identifying this recipe book entry. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async listOpenDataVersions(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await localVarAxiosParamCreator.listOpenDataVersions(options); + async apiRecipeBookEntryDestroy(id: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiRecipeBookEntryDestroy(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * list: 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 listPropertyTypes(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await localVarAxiosParamCreator.listPropertyTypes(options); + async apiRecipeBookEntryList(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiRecipeBookEntryList(options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * list: optional parameters - **recipe**: id of recipe - only return books for that recipe - **book**: id of book - only return recipes in that book + * @param {number} id A unique integer value identifying this recipe book entry. + * @param {PatchedRecipeBookEntry} [patchedRecipeBookEntry] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async listPropertys(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await localVarAxiosParamCreator.listPropertys(options); + async apiRecipeBookEntryPartialUpdate(id: number, patchedRecipeBookEntry?: PatchedRecipeBookEntry, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiRecipeBookEntryPartialUpdate(id, patchedRecipeBookEntry, 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 + * list: optional parameters - **recipe**: id of recipe - only return books for that recipe - **book**: id of book - only return recipes in that book + * @param {number} id A unique integer value identifying this recipe book entry. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async listRecipeBookEntrys(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await localVarAxiosParamCreator.listRecipeBookEntrys(options); + async apiRecipeBookEntryRetrieve(id: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiRecipeBookEntryRetrieve(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * list: optional parameters - **recipe**: id of recipe - only return books for that recipe - **book**: id of book - only return recipes in that book + * @param {number} id A unique integer value identifying this recipe book entry. + * @param {RecipeBookEntry} recipeBookEntry * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async listRecipeBooks(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await localVarAxiosParamCreator.listRecipeBooks(options); + async apiRecipeBookEntryUpdate(id: number, recipeBookEntry: RecipeBookEntry, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiRecipeBookEntryUpdate(id, recipeBookEntry, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {string} [query] Query string matched (fuzzy) against recipe name. In the future also fulltext search. - * @param {number} [keywords] ID of keyword a recipe should have. For multiple repeat parameter. Equivalent to keywords_or - * @param {number} [keywordsOr] Keyword IDs, repeat for multiple. Return recipes with any of the keywords - * @param {number} [keywordsAnd] Keyword IDs, repeat for multiple. Return recipes with all of the keywords. - * @param {number} [keywordsOrNot] Keyword IDs, repeat for multiple. Exclude recipes with any of the keywords. - * @param {number} [keywordsAndNot] Keyword IDs, repeat for multiple. Exclude recipes with all of the keywords. - * @param {number} [foods] ID of food a recipe should have. For multiple repeat parameter. - * @param {number} [foodsOr] Food IDs, repeat for multiple. Return recipes with any of the foods - * @param {number} [foodsAnd] Food IDs, repeat for multiple. Return recipes with all of the foods. - * @param {number} [foodsOrNot] Food IDs, repeat for multiple. Exclude recipes with any of the foods. - * @param {number} [foodsAndNot] Food IDs, repeat for multiple. Exclude recipes with all of the foods. - * @param {number} [units] ID of unit a recipe should have. - * @param {number} [rating] Rating a recipe should have or greater. [0 - 5] Negative value filters rating less than. + * + * @param {string} [limit] limit number of entries to return + * @param {string} [query] lookup if query string is contained within the name, case insensitive + * @param {string} [random] randomly orders entries (only works together with limit) + * @param {string} [updatedAt] if model has an updated_at timestamp, filter only models updated at or after datetime + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiRecipeBookList(limit?: string, query?: string, random?: string, updatedAt?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiRecipeBookList(limit, query, random, updatedAt, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {number} id A unique integer value identifying this recipe book. + * @param {PatchedRecipeBook} [patchedRecipeBook] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiRecipeBookPartialUpdate(id: number, patchedRecipeBook?: PatchedRecipeBook, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiRecipeBookPartialUpdate(id, patchedRecipeBook, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {number} id A unique integer value identifying this recipe book. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiRecipeBookRetrieve(id: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiRecipeBookRetrieve(id, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {number} id A unique integer value identifying this recipe book. + * @param {RecipeBook} recipeBook + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiRecipeBookUpdate(id: number, recipeBook: RecipeBook, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiRecipeBookUpdate(id, recipeBook, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {Recipe} recipe + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiRecipeCreate(recipe: Recipe, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiRecipeCreate(recipe, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {number} id A unique integer value identifying this recipe. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiRecipeDestroy(id: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiRecipeDestroy(id, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiRecipeFlatList(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiRecipeFlatList(options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * function to retrieve a recipe from a given url or source string :param request: standard request with additional post parameters - url: url to use for importing recipe - data: if no url is given recipe is imported from provided source data - (optional) bookmarklet: id of bookmarklet import to use, overrides URL and data attributes :return: JsonResponse containing the parsed json and images + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiRecipeFromSourceCreate(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiRecipeFromSourceCreate(options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {number} id A unique integer value identifying this recipe. + * @param {string} [image] + * @param {string} [imageUrl] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiRecipeImageUpdate(id: number, image?: string, imageUrl?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiRecipeImageUpdate(id, image, imageUrl, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * * @param {string} [books] ID of book a recipe should be in. For multiple repeat parameter. - * @param {number} [booksOr] Book IDs, repeat for multiple. Return recipes with any of the books * @param {number} [booksAnd] Book IDs, repeat for multiple. Return recipes with all of the books. - * @param {number} [booksOrNot] Book IDs, repeat for multiple. Exclude recipes with any of the books. * @param {number} [booksAndNot] Book IDs, repeat for multiple. Exclude recipes with all of the books. - * @param {string} [internal] If only internal recipes should be returned. [true/<b>false</b>] - * @param {string} [random] Returns the results in randomized order. [true/<b>false</b>] - * @param {string} [_new] Returns new results first in search results. [true/<b>false</b>] - * @param {number} [timescooked] Filter recipes cooked X times or more. Negative values returns cooked less than X times + * @param {number} [booksOr] Book IDs, repeat for multiple. Return recipes with any of the books + * @param {number} [booksOrNot] Book IDs, repeat for multiple. Exclude recipes with any of the books. * @param {string} [cookedon] Filter recipes last cooked on or after YYYY-MM-DD. Prepending - filters on or before date. * @param {string} [createdon] Filter recipes created on or after YYYY-MM-DD. Prepending - filters on or before date. + * @param {number} [foods] ID of food a recipe should have. For multiple repeat parameter. + * @param {number} [foodsAnd] Food IDs, repeat for multiple. Return recipes with all of the foods. + * @param {number} [foodsAndNot] Food IDs, repeat for multiple. Exclude recipes with all of the foods. + * @param {number} [foodsOr] Food IDs, repeat for multiple. Return recipes with any of the foods + * @param {number} [foodsOrNot] Food IDs, repeat for multiple. Exclude recipes with any of the foods. + * @param {string} [internal] If only internal recipes should be returned. [true/<b>false</b>] + * @param {number} [keywords] ID of keyword a recipe should have. For multiple repeat parameter. Equivalent to keywords_or + * @param {number} [keywordsAnd] Keyword IDs, repeat for multiple. Return recipes with all of the keywords. + * @param {number} [keywordsAndNot] Keyword IDs, repeat for multiple. Exclude recipes with all of the keywords. + * @param {number} [keywordsOr] Keyword IDs, repeat for multiple. Return recipes with any of the keywords + * @param {number} [keywordsOrNot] Keyword IDs, repeat for multiple. Exclude recipes with any of the keywords. + * @param {string} [makenow] Filter recipes that can be made with OnHand food. [true/<b>false</b>] + * @param {string} [_new] Returns new results first in search results. [true/<b>false</b>] + * @param {number} [page] A page number within the paginated result set. + * @param {number} [pageSize] Number of results to return per page. + * @param {string} [query] Query string matched (fuzzy) against recipe name. In the future also fulltext search. + * @param {string} [random] Returns the results in randomized order. [true/<b>false</b>] + * @param {number} [rating] Rating a recipe should have or greater. [0 - 5] Negative value filters rating less than. + * @param {number} [timescooked] Filter recipes cooked X times or more. Negative values returns cooked less than X times + * @param {number} [units] ID of unit a recipe should have. * @param {string} [updatedon] Filter recipes updated on or after YYYY-MM-DD. Prepending - filters on or before date. * @param {string} [viewedon] Filter recipes lasts viewed on or after YYYY-MM-DD. Prepending - filters on or before date. - * @param {string} [makenow] Filter recipes that can be made with OnHand food. [true/<b>false</b>] - * @param {number} [page] A page number within the paginated result set. - * @param {number} [pageSize] Number of results to return per page. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async listRecipes(query?: string, keywords?: number, keywordsOr?: number, keywordsAnd?: number, keywordsOrNot?: number, keywordsAndNot?: number, foods?: number, foodsOr?: number, foodsAnd?: number, foodsOrNot?: number, foodsAndNot?: number, units?: number, rating?: number, books?: string, booksOr?: number, booksAnd?: number, booksOrNot?: number, booksAndNot?: number, internal?: string, random?: string, _new?: string, timescooked?: number, cookedon?: string, createdon?: string, updatedon?: string, viewedon?: string, makenow?: string, page?: number, pageSize?: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.listRecipes(query, keywords, keywordsOr, keywordsAnd, keywordsOrNot, keywordsAndNot, foods, foodsOr, foodsAnd, foodsOrNot, foodsAndNot, units, rating, books, booksOr, booksAnd, booksOrNot, booksAndNot, internal, random, _new, timescooked, cookedon, createdon, updatedon, viewedon, makenow, page, pageSize, options); + async apiRecipeList(books?: string, booksAnd?: number, booksAndNot?: number, booksOr?: number, booksOrNot?: number, cookedon?: string, createdon?: string, foods?: number, foodsAnd?: number, foodsAndNot?: number, foodsOr?: number, foodsOrNot?: number, internal?: string, keywords?: number, keywordsAnd?: number, keywordsAndNot?: number, keywordsOr?: number, keywordsOrNot?: number, makenow?: string, _new?: string, page?: number, pageSize?: number, query?: string, random?: string, rating?: number, timescooked?: number, units?: number, updatedon?: string, viewedon?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiRecipeList(books, booksAnd, booksAndNot, booksOr, booksOrNot, cookedon, createdon, foods, foodsAnd, foodsAndNot, foodsOr, foodsOrNot, internal, keywords, keywordsAnd, keywordsAndNot, keywordsOr, keywordsOrNot, makenow, _new, page, pageSize, query, random, rating, timescooked, units, updatedon, viewedon, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {number} [id] Returns the shopping list entry with a primary key of id. Multiple values allowed. - * @param {string} [checked] Filter shopping list entries on checked. [true, false, both, <b>recent</b>]<br> - recent includes unchecked items and recently completed items. - * @param {number} [supermarket] Returns the shopping list entries sorted by supermarket category order. + * + * @param {number} id A unique integer value identifying this recipe. + * @param {PatchedRecipe} [patchedRecipe] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async listShoppingListEntrys(id?: number, checked?: string, supermarket?: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await localVarAxiosParamCreator.listShoppingListEntrys(id, checked, supermarket, options); + async apiRecipePartialUpdate(id: number, patchedRecipe?: PatchedRecipe, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiRecipePartialUpdate(id, patchedRecipe, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * + * @param {number} id A unique integer value identifying this recipe. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async listShoppingListRecipes(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await localVarAxiosParamCreator.listShoppingListRecipes(options); + async apiRecipeRelatedRetrieve(id: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiRecipeRelatedRetrieve(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * + * @param {number} id A unique integer value identifying this recipe. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async listShoppingLists(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await localVarAxiosParamCreator.listShoppingLists(options); + async apiRecipeRetrieve(id: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiRecipeRetrieve(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * + * @param {number} id A unique integer value identifying this recipe. + * @param {RecipeShoppingUpdate} [recipeShoppingUpdate] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async listSpaces(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await localVarAxiosParamCreator.listSpaces(options); + async apiRecipeShoppingUpdate(id: number, recipeShoppingUpdate?: RecipeShoppingUpdate, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiRecipeShoppingUpdate(id, recipeShoppingUpdate, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {number} [recipe] ID of recipe a step is part of. For multiple repeat parameter. - * @param {string} [query] Query string matched (fuzzy) against object name. - * @param {number} [page] A page number within the paginated result set. - * @param {number} [pageSize] Number of results to return per page. + * + * @param {number} id A unique integer value identifying this recipe. + * @param {Recipe} recipe * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async listSteps(recipe?: number, query?: string, page?: number, pageSize?: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.listSteps(recipe, query, page, pageSize, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async listStorages(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await localVarAxiosParamCreator.listStorages(options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {number} [page] A page number within the paginated result set. - * @param {number} [pageSize] Number of results to return per page. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async listSupermarketCategoryRelations(page?: number, pageSize?: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.listSupermarketCategoryRelations(page, pageSize, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} [query] Query string matched against supermarket-category name. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async listSupermarketCategorys(query?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await localVarAxiosParamCreator.listSupermarketCategorys(query, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} [query] Query string matched against supermarket name. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async listSupermarkets(query?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await localVarAxiosParamCreator.listSupermarkets(query, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {number} [page] A page number within the paginated result set. - * @param {number} [pageSize] Number of results to return per page. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async listSyncLogs(page?: number, pageSize?: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.listSyncLogs(page, pageSize, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async listSyncs(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await localVarAxiosParamCreator.listSyncs(options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {number} [foodId] ID of food to filter for - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async listUnitConversions(foodId?: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await localVarAxiosParamCreator.listUnitConversions(foodId, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} [query] Query string matched against unit name. - * @param {number} [page] A page number within the paginated result set. - * @param {number} [pageSize] Number of results to return per page. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async listUnits(query?: string, page?: number, pageSize?: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.listUnits(query, page, pageSize, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} [query] Query string matched against user-file name. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async listUserFiles(query?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await localVarAxiosParamCreator.listUserFiles(query, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async listUserPreferences(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await localVarAxiosParamCreator.listUserPreferences(options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {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 listUserSpaces(page?: number, pageSize?: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.listUserSpaces(page, pageSize, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * optional parameters - **filter_list**: array of user id\'s to get names for - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async listUsers(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await localVarAxiosParamCreator.listUsers(options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {number} [page] A page number within the paginated result set. - * @param {number} [pageSize] Number of results to return per page. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async listViewLogs(page?: number, pageSize?: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.listViewLogs(page, pageSize, options); + async apiRecipeUpdate(id: number, recipe: Recipe, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiRecipeUpdate(id, recipe, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** @@ -16826,1524 +16257,996 @@ export const ApiApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async listresetFoodInheritances(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await localVarAxiosParamCreator.listresetFoodInheritances(options); + async apiResetFoodInheritanceRetrieve(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiResetFoodInheritanceRetrieve(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 {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async mergeFood(id: string, target: string, food?: Food, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.mergeFood(id, target, food, options); + async apiShareLinkRetrieve(id: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiShareLinkRetrieve(id, 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 {ShoppingListEntryBulk} shoppingListEntryBulk * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async mergeKeyword(id: string, target: string, keyword?: Keyword, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.mergeKeyword(id, target, keyword, options); + async apiShoppingListEntryBulkCreate(shoppingListEntryBulk: ShoppingListEntryBulk, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiShoppingListEntryBulkCreate(shoppingListEntryBulk, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {string} id A unique integer value identifying this supermarket category. - * @param {string} target - * @param {SupermarketCategory} [supermarketCategory] + * + * @param {ShoppingListEntry} shoppingListEntry * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async mergeSupermarketCategory(id: string, target: string, supermarketCategory?: SupermarketCategory, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.mergeSupermarketCategory(id, target, supermarketCategory, options); + async apiShoppingListEntryCreate(shoppingListEntry: ShoppingListEntry, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiShoppingListEntryCreate(shoppingListEntry, 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 {number} id A unique integer value identifying this shopping list entry. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async mergeUnit(id: string, target: string, unit?: Unit, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.mergeUnit(id, target, unit, options); + async apiShoppingListEntryDestroy(id: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiShoppingListEntryDestroy(id, 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 {string} [checked] Filter shopping list entries on checked. [true, false, both, <b>recent</b>]<br> - recent includes unchecked items and recently completed items. + * @param {number} [id] Returns the shopping list entry with a primary key of id. Multiple values allowed. + * @param {number} [supermarket] Returns the shopping list entries sorted by supermarket category order. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async moveFood(id: string, parent: string, food?: Food, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.moveFood(id, parent, food, options); + async apiShoppingListEntryList(checked?: string, id?: number, supermarket?: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiShoppingListEntryList(checked, id, supermarket, 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 {number} id A unique integer value identifying this shopping list entry. + * @param {PatchedShoppingListEntry} [patchedShoppingListEntry] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async moveKeyword(id: string, parent: string, keyword?: Keyword, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.moveKeyword(id, parent, keyword, options); + async apiShoppingListEntryPartialUpdate(id: number, patchedShoppingListEntry?: PatchedShoppingListEntry, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiShoppingListEntryPartialUpdate(id, patchedShoppingListEntry, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {string} id A unique integer value identifying this access token. - * @param {AccessToken} [accessToken] + * + * @param {number} id A unique integer value identifying this shopping list entry. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async partialUpdateAccessToken(id: string, accessToken?: AccessToken, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateAccessToken(id, accessToken, options); + async apiShoppingListEntryRetrieve(id: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiShoppingListEntryRetrieve(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {string} id A unique integer value identifying this automation. - * @param {Automation} [automation] + * + * @param {number} id A unique integer value identifying this shopping list entry. + * @param {ShoppingListEntry} shoppingListEntry * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async partialUpdateAutomation(id: string, automation?: Automation, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateAutomation(id, automation, options); + async apiShoppingListEntryUpdate(id: number, shoppingListEntry: ShoppingListEntry, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiShoppingListEntryUpdate(id, shoppingListEntry, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {string} id A unique integer value identifying this bookmarklet import. - * @param {BookmarkletImport} [bookmarkletImport] + * + * @param {ShoppingListRecipe} shoppingListRecipe * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async partialUpdateBookmarkletImport(id: string, bookmarkletImport?: BookmarkletImport, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateBookmarkletImport(id, bookmarkletImport, options); + async apiShoppingListRecipeCreate(shoppingListRecipe: ShoppingListRecipe, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiShoppingListRecipeCreate(shoppingListRecipe, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {string} id A unique integer value identifying this connector config. - * @param {ConnectorConfigConfig} [connectorConfigConfig] + * + * @param {number} id A unique integer value identifying this shopping list recipe. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async partialUpdateConnectorConfig(id: string, connectorConfigConfig?: ConnectorConfigConfig, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateConnectorConfig(id, connectorConfigConfig, options); + async apiShoppingListRecipeDestroy(id: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiShoppingListRecipeDestroy(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {string} id A unique integer value identifying this cook log. - * @param {CookLog} [cookLog] + * * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async partialUpdateCookLog(id: string, cookLog?: CookLog, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateCookLog(id, cookLog, options); + async apiShoppingListRecipeList(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiShoppingListRecipeList(options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {string} id A unique integer value identifying this custom filter. - * @param {CustomFilter} [customFilter] + * + * @param {number} id A unique integer value identifying this shopping list recipe. + * @param {PatchedShoppingListRecipe} [patchedShoppingListRecipe] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async partialUpdateCustomFilter(id: string, customFilter?: CustomFilter, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateCustomFilter(id, customFilter, options); + async apiShoppingListRecipePartialUpdate(id: number, patchedShoppingListRecipe?: PatchedShoppingListRecipe, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiShoppingListRecipePartialUpdate(id, patchedShoppingListRecipe, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {string} id A unique integer value identifying this export log. - * @param {ExportLog} [exportLog] + * + * @param {number} id A unique integer value identifying this shopping list recipe. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async partialUpdateExportLog(id: string, exportLog?: ExportLog, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateExportLog(id, exportLog, options); + async apiShoppingListRecipeRetrieve(id: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiShoppingListRecipeRetrieve(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {string} id A unique integer value identifying this food. - * @param {Food} [food] + * + * @param {number} id A unique integer value identifying this shopping list recipe. + * @param {ShoppingListRecipe} shoppingListRecipe * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async partialUpdateFood(id: string, food?: Food, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateFood(id, food, options); + async apiShoppingListRecipeUpdate(id: number, shoppingListRecipe: ShoppingListRecipe, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiShoppingListRecipeUpdate(id, shoppingListRecipe, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {string} id A unique integer value identifying this import log. - * @param {ImportLog} [importLog] + * * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async partialUpdateImportLog(id: string, importLog?: ImportLog, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateImportLog(id, importLog, options); + async apiSpaceList(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiSpaceList(options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {string} id A unique integer value identifying this ingredient. - * @param {Ingredient} [ingredient] + * + * @param {number} id A unique integer value identifying this space. + * @param {PatchedSpace} [patchedSpace] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async partialUpdateIngredient(id: string, ingredient?: Ingredient, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateIngredient(id, ingredient, options); + async apiSpacePartialUpdate(id: number, patchedSpace?: PatchedSpace, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiSpacePartialUpdate(id, patchedSpace, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {string} id A unique integer value identifying this invite link. - * @param {InviteLink} [inviteLink] + * + * @param {number} id A unique integer value identifying this space. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async partialUpdateInviteLink(id: string, inviteLink?: InviteLink, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateInviteLink(id, inviteLink, options); + async apiSpaceRetrieve(id: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiSpaceRetrieve(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {string} id A unique integer value identifying this keyword. - * @param {Keyword} [keyword] + * + * @param {Step} step * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async partialUpdateKeyword(id: string, keyword?: Keyword, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateKeyword(id, keyword, options); + async apiStepCreate(step: Step, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiStepCreate(step, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {string} id A unique integer value identifying this meal plan. - * @param {MealPlan} [mealPlan] + * + * @param {number} id A unique integer value identifying this step. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async partialUpdateMealPlan(id: string, mealPlan?: MealPlan, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateMealPlan(id, mealPlan, options); + async apiStepDestroy(id: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiStepDestroy(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 {MealType} [mealType] + * + * @param {number} [page] A page number within the paginated result set. + * @param {number} [pageSize] Number of results to return per page. + * @param {string} [query] Query string matched (fuzzy) against object name. + * @param {number} [recipe] ID of recipe a step is part of. For multiple repeat parameter. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async partialUpdateMealType(id: string, mealType?: MealType, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateMealType(id, mealType, options); + async apiStepList(page?: number, pageSize?: number, query?: string, recipe?: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiStepList(page, pageSize, query, recipe, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {string} id A unique integer value identifying this open data category. - * @param {OpenDataCategory} [openDataCategory] + * + * @param {number} id A unique integer value identifying this step. + * @param {PatchedStep} [patchedStep] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async partialUpdateOpenDataCategory(id: string, openDataCategory?: OpenDataCategory, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateOpenDataCategory(id, openDataCategory, options); + async apiStepPartialUpdate(id: number, patchedStep?: PatchedStep, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiStepPartialUpdate(id, patchedStep, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {string} id A unique integer value identifying this open data conversion. - * @param {OpenDataConversion} [openDataConversion] + * + * @param {number} id A unique integer value identifying this step. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async partialUpdateOpenDataConversion(id: string, openDataConversion?: OpenDataConversion, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateOpenDataConversion(id, openDataConversion, options); + async apiStepRetrieve(id: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiStepRetrieve(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {string} id A unique integer value identifying this open data food. - * @param {OpenDataFood} [openDataFood] + * + * @param {number} id A unique integer value identifying this step. + * @param {Step} step * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async partialUpdateOpenDataFood(id: string, openDataFood?: OpenDataFood, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateOpenDataFood(id, openDataFood, options); + async apiStepUpdate(id: number, step: Step, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiStepUpdate(id, step, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {string} id A unique integer value identifying this open data property. - * @param {OpenDataProperty} [openDataProperty] + * + * @param {Storage} storage * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async partialUpdateOpenDataProperty(id: string, openDataProperty?: OpenDataProperty, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateOpenDataProperty(id, openDataProperty, options); + async apiStorageCreate(storage: Storage, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiStorageCreate(storage, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {string} id A unique integer value identifying this open data store. - * @param {OpenDataStore} [openDataStore] + * + * @param {number} id A unique integer value identifying this storage. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async partialUpdateOpenDataStore(id: string, openDataStore?: OpenDataStore, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateOpenDataStore(id, openDataStore, options); + async apiStorageDestroy(id: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiStorageDestroy(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {string} id A unique integer value identifying this open data unit. - * @param {OpenDataUnit} [openDataUnit] + * * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async partialUpdateOpenDataUnit(id: string, openDataUnit?: OpenDataUnit, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateOpenDataUnit(id, openDataUnit, options); + async apiStorageList(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiStorageList(options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {string} id A unique integer value identifying this open data version. - * @param {OpenDataVersion} [openDataVersion] + * + * @param {number} id A unique integer value identifying this storage. + * @param {PatchedStorage} [patchedStorage] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async partialUpdateOpenDataVersion(id: string, openDataVersion?: OpenDataVersion, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateOpenDataVersion(id, openDataVersion, options); + async apiStoragePartialUpdate(id: number, patchedStorage?: PatchedStorage, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiStoragePartialUpdate(id, patchedStorage, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {string} id A unique integer value identifying this property. - * @param {Property} [property] + * + * @param {number} id A unique integer value identifying this storage. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async partialUpdateProperty(id: string, property?: Property, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateProperty(id, property, options); + async apiStorageRetrieve(id: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiStorageRetrieve(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {string} id A unique integer value identifying this property type. - * @param {PropertyType} [propertyType] + * + * @param {number} id A unique integer value identifying this storage. + * @param {Storage} storage * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async partialUpdatePropertyType(id: string, propertyType?: PropertyType, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdatePropertyType(id, propertyType, options); + async apiStorageUpdate(id: number, storage: Storage, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiStorageUpdate(id, storage, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {string} id A unique integer value identifying this recipe. - * @param {Recipe} [recipe] + * + * @param {SupermarketCategory} supermarketCategory * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async partialUpdateRecipe(id: string, recipe?: Recipe, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateRecipe(id, recipe, options); + async apiSupermarketCategoryCreate(supermarketCategory: SupermarketCategory, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiSupermarketCategoryCreate(supermarketCategory, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {string} id A unique integer value identifying this recipe book. - * @param {RecipeBook} [recipeBook] + * + * @param {number} id A unique integer value identifying this supermarket category. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async partialUpdateRecipeBook(id: string, recipeBook?: RecipeBook, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateRecipeBook(id, recipeBook, options); + async apiSupermarketCategoryDestroy(id: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiSupermarketCategoryDestroy(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {string} id A unique integer value identifying this recipe book entry. - * @param {RecipeBookEntry} [recipeBookEntry] + * + * @param {string} [limit] limit number of entries to return + * @param {string} [query] lookup if query string is contained within the name, case insensitive + * @param {string} [random] randomly orders entries (only works together with limit) + * @param {string} [updatedAt] if model has an updated_at timestamp, filter only models updated at or after datetime * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async partialUpdateRecipeBookEntry(id: string, recipeBookEntry?: RecipeBookEntry, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateRecipeBookEntry(id, recipeBookEntry, options); + async apiSupermarketCategoryList(limit?: string, query?: string, random?: string, updatedAt?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiSupermarketCategoryList(limit, query, random, updatedAt, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {string} id A unique integer value identifying this shopping list. - * @param {ShoppingList} [shoppingList] + * + * @param {number} id A unique integer value identifying this supermarket category. + * @param {string} target + * @param {SupermarketCategory} supermarketCategory * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async partialUpdateShoppingList(id: string, shoppingList?: ShoppingList, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateShoppingList(id, shoppingList, options); + async apiSupermarketCategoryMergeUpdate(id: number, target: string, supermarketCategory: SupermarketCategory, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiSupermarketCategoryMergeUpdate(id, target, supermarketCategory, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {string} id A unique integer value identifying this shopping list entry. - * @param {ShoppingListEntry} [shoppingListEntry] + * + * @param {number} id A unique integer value identifying this supermarket category. + * @param {PatchedSupermarketCategory} [patchedSupermarketCategory] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async partialUpdateShoppingListEntry(id: string, shoppingListEntry?: ShoppingListEntry, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateShoppingListEntry(id, shoppingListEntry, options); + async apiSupermarketCategoryPartialUpdate(id: number, patchedSupermarketCategory?: PatchedSupermarketCategory, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiSupermarketCategoryPartialUpdate(id, patchedSupermarketCategory, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {string} id A unique integer value identifying this shopping list recipe. - * @param {ShoppingListRecipe} [shoppingListRecipe] + * + * @param {SupermarketCategoryRelation} supermarketCategoryRelation * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async partialUpdateShoppingListRecipe(id: string, shoppingListRecipe?: ShoppingListRecipe, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateShoppingListRecipe(id, shoppingListRecipe, options); + async apiSupermarketCategoryRelationCreate(supermarketCategoryRelation: SupermarketCategoryRelation, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiSupermarketCategoryRelationCreate(supermarketCategoryRelation, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {string} id A unique integer value identifying this space. - * @param {Space} [space] + * + * @param {number} id A unique integer value identifying this supermarket category relation. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async partialUpdateSpace(id: string, space?: Space, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateSpace(id, space, options); + async apiSupermarketCategoryRelationDestroy(id: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiSupermarketCategoryRelationDestroy(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {string} id A unique integer value identifying this step. - * @param {Step} [step] + * + * @param {string} [limit] limit number of entries to return + * @param {number} [page] A page number within the paginated result set. + * @param {number} [pageSize] Number of results to return per page. + * @param {string} [query] lookup if query string is contained within the name, case insensitive + * @param {string} [random] randomly orders entries (only works together with limit) + * @param {string} [updatedAt] if model has an updated_at timestamp, filter only models updated at or after datetime * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async partialUpdateStep(id: string, step?: Step, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateStep(id, step, options); + async apiSupermarketCategoryRelationList(limit?: string, page?: number, pageSize?: number, query?: string, random?: string, updatedAt?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiSupermarketCategoryRelationList(limit, page, pageSize, query, random, updatedAt, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {string} id A unique integer value identifying this storage. - * @param {Storage} [storage] + * + * @param {number} id A unique integer value identifying this supermarket category relation. + * @param {PatchedSupermarketCategoryRelation} [patchedSupermarketCategoryRelation] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async partialUpdateStorage(id: string, storage?: Storage, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateStorage(id, storage, options); + async apiSupermarketCategoryRelationPartialUpdate(id: number, patchedSupermarketCategoryRelation?: PatchedSupermarketCategoryRelation, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiSupermarketCategoryRelationPartialUpdate(id, patchedSupermarketCategoryRelation, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {string} id A unique integer value identifying this supermarket. - * @param {Supermarket} [supermarket] + * + * @param {number} id A unique integer value identifying this supermarket category relation. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async partialUpdateSupermarket(id: string, supermarket?: Supermarket, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateSupermarket(id, supermarket, options); + async apiSupermarketCategoryRelationRetrieve(id: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiSupermarketCategoryRelationRetrieve(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {string} id A unique integer value identifying this supermarket category. - * @param {SupermarketCategory} [supermarketCategory] + * + * @param {number} id A unique integer value identifying this supermarket category relation. + * @param {SupermarketCategoryRelation} supermarketCategoryRelation * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async partialUpdateSupermarketCategory(id: string, supermarketCategory?: SupermarketCategory, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateSupermarketCategory(id, supermarketCategory, options); + async apiSupermarketCategoryRelationUpdate(id: number, supermarketCategoryRelation: SupermarketCategoryRelation, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiSupermarketCategoryRelationUpdate(id, supermarketCategoryRelation, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {string} id A unique integer value identifying this supermarket category relation. - * @param {SupermarketCategoryRelation} [supermarketCategoryRelation] + * + * @param {number} id A unique integer value identifying this supermarket category. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async partialUpdateSupermarketCategoryRelation(id: string, supermarketCategoryRelation?: SupermarketCategoryRelation, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateSupermarketCategoryRelation(id, supermarketCategoryRelation, options); + async apiSupermarketCategoryRetrieve(id: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiSupermarketCategoryRetrieve(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {string} id A unique integer value identifying this sync. - * @param {Sync} [sync] + * + * @param {number} id A unique integer value identifying this supermarket category. + * @param {SupermarketCategory} supermarketCategory * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async partialUpdateSync(id: string, sync?: Sync, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateSync(id, sync, options); + async apiSupermarketCategoryUpdate(id: number, supermarketCategory: SupermarketCategory, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiSupermarketCategoryUpdate(id, supermarketCategory, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {string} id A unique integer value identifying this unit. - * @param {Unit} [unit] + * + * @param {Supermarket} supermarket * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async partialUpdateUnit(id: string, unit?: Unit, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateUnit(id, unit, options); + async apiSupermarketCreate(supermarket: Supermarket, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiSupermarketCreate(supermarket, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {string} id A unique integer value identifying this unit conversion. - * @param {UnitConversion} [unitConversion] + * + * @param {number} id A unique integer value identifying this supermarket. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async partialUpdateUnitConversion(id: string, unitConversion?: UnitConversion, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateUnitConversion(id, unitConversion, options); + async apiSupermarketDestroy(id: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiSupermarketDestroy(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {string} id A unique integer value identifying this user. - * @param {User} [user] + * + * @param {string} [limit] limit number of entries to return + * @param {string} [query] lookup if query string is contained within the name, case insensitive + * @param {string} [random] randomly orders entries (only works together with limit) + * @param {string} [updatedAt] if model has an updated_at timestamp, filter only models updated at or after datetime * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async partialUpdateUser(id: string, user?: User, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateUser(id, user, options); + async apiSupermarketList(limit?: string, query?: string, random?: string, updatedAt?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiSupermarketList(limit, query, random, updatedAt, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {string} id A unique integer value identifying this user file. - * @param {string} name - * @param {any} file - * @param {number} [id2] - * @param {string} [fileDownload] - * @param {string} [preview] - * @param {number} [fileSizeKb] + * + * @param {number} id A unique integer value identifying this supermarket. + * @param {PatchedSupermarket} [patchedSupermarket] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async partialUpdateUserFile(id: string, name: string, file: any, id2?: number, fileDownload?: string, preview?: string, fileSizeKb?: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateUserFile(id, name, file, id2, fileDownload, preview, fileSizeKb, options); + async apiSupermarketPartialUpdate(id: number, patchedSupermarket?: PatchedSupermarket, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiSupermarketPartialUpdate(id, patchedSupermarket, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {string} user A unique value identifying this user preference. - * @param {UserPreference} [userPreference] + * + * @param {number} id A unique integer value identifying this supermarket. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async partialUpdateUserPreference(user: string, userPreference?: UserPreference, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateUserPreference(user, userPreference, options); + async apiSupermarketRetrieve(id: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiSupermarketRetrieve(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {string} id A unique integer value identifying this user space. - * @param {UserSpace} [userSpace] + * + * @param {number} id A unique integer value identifying this supermarket. + * @param {Supermarket} supermarket * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async partialUpdateUserSpace(id: string, userSpace?: UserSpace, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateUserSpace(id, userSpace, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this view log. - * @param {ViewLog} [viewLog] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async partialUpdateViewLog(id: string, viewLog?: ViewLog, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateViewLog(id, viewLog, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this recipe. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async relatedRecipe(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.relatedRecipe(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this access token. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async retrieveAccessToken(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveAccessToken(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this automation. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async retrieveAutomation(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveAutomation(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this bookmarklet import. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async retrieveBookmarkletImport(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveBookmarkletImport(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this connector config. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async retrieveConnectorConfig(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveConnectorConfig(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this cook log. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async retrieveCookLog(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveCookLog(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this custom filter. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async retrieveCustomFilter(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveCustomFilter(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this export log. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async retrieveExportLog(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveExportLog(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async retrieveFDCViewSet(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveFDCViewSet(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this food. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async retrieveFood(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveFood(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this food inherit field. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async retrieveFoodInheritField(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveFoodInheritField(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this group. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async retrieveGroup(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveGroup(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this import log. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async retrieveImportLog(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveImportLog(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this ingredient. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async retrieveIngredient(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveIngredient(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this invite link. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async retrieveInviteLink(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveInviteLink(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this keyword. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async retrieveKeyword(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveKeyword(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this meal plan. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async retrieveMealPlan(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveMealPlan(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * returns list of meal types created by the requesting user ordered by the order field. - * @param {string} id A unique integer value identifying this meal type. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async retrieveMealType(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveMealType(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this open data category. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async retrieveOpenDataCategory(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveOpenDataCategory(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this open data conversion. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async retrieveOpenDataConversion(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveOpenDataConversion(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this open data food. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async retrieveOpenDataFood(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveOpenDataFood(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this open data property. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async retrieveOpenDataProperty(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveOpenDataProperty(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this open data store. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async retrieveOpenDataStore(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveOpenDataStore(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this open data unit. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async retrieveOpenDataUnit(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveOpenDataUnit(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this open data version. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async retrieveOpenDataVersion(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveOpenDataVersion(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this property. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async retrieveProperty(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveProperty(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this property type. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async retrievePropertyType(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.retrievePropertyType(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this recipe. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async retrieveRecipe(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveRecipe(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this recipe book. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async retrieveRecipeBook(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveRecipeBook(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this recipe book entry. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async retrieveRecipeBookEntry(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveRecipeBookEntry(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this shopping list. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async retrieveShoppingList(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveShoppingList(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this shopping list entry. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async retrieveShoppingListEntry(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveShoppingListEntry(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this shopping list recipe. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async retrieveShoppingListRecipe(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveShoppingListRecipe(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this space. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async retrieveSpace(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveSpace(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this step. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async retrieveStep(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveStep(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this storage. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async retrieveStorage(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveStorage(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this supermarket. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async retrieveSupermarket(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveSupermarket(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this supermarket category. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async retrieveSupermarketCategory(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveSupermarketCategory(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this supermarket category relation. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async retrieveSupermarketCategoryRelation(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveSupermarketCategoryRelation(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this sync. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async retrieveSync(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveSync(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this sync log. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async retrieveSyncLog(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveSyncLog(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this unit. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async retrieveUnit(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveUnit(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this unit conversion. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async retrieveUnitConversion(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveUnitConversion(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this user. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async retrieveUser(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveUser(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this user file. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async retrieveUserFile(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveUserFile(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} user A unique value identifying this user preference. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async retrieveUserPreference(user: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveUserPreference(user, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this user space. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async retrieveUserSpace(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveUserSpace(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this view log. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async retrieveViewLog(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveViewLog(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * function to download a user file securely (wrapping as zip to prevent any context based XSS problems) temporary solution until a real file manager is implemented - * @param {string} fileId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async retrievedownloadFile(fileId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.retrievedownloadFile(fileId, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async retrieveshareLink(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveshareLink(id, options); + async apiSupermarketUpdate(id: number, supermarket: Supermarket, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiSupermarketUpdate(id, supermarket, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * api endpoint to switch space function - * @param {string} spaceId + * @param {number} spaceId * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async retrieveswitchActiveSpace(spaceId: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveswitchActiveSpace(spaceId, options); + async apiSwitchActiveSpaceRetrieve(spaceId: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiSwitchActiveSpaceRetrieve(spaceId, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {string} id A unique integer value identifying this food. - * @param {FoodShoppingUpdate} [foodShoppingUpdate] + * + * @param {Sync} sync * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async shoppingFood(id: string, foodShoppingUpdate?: FoodShoppingUpdate, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.shoppingFood(id, foodShoppingUpdate, options); + async apiSyncCreate(sync: Sync, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiSyncCreate(sync, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {string} id A unique integer value identifying this recipe. - * @param {RecipeShoppingUpdate} [recipeShoppingUpdate] + * + * @param {number} id A unique integer value identifying this sync. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async shoppingRecipe(id: string, recipeShoppingUpdate?: RecipeShoppingUpdate, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.shoppingRecipe(id, recipeShoppingUpdate, options); + async apiSyncDestroy(id: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiSyncDestroy(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {string} id A unique integer value identifying this access token. - * @param {AccessToken} [accessToken] + * * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async updateAccessToken(id: string, accessToken?: AccessToken, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.updateAccessToken(id, accessToken, options); + async apiSyncList(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiSyncList(options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {string} id A unique integer value identifying this automation. - * @param {Automation} [automation] + * + * @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 updateAutomation(id: string, automation?: Automation, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.updateAutomation(id, automation, options); + async apiSyncLogList(page?: number, pageSize?: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiSyncLogList(page, pageSize, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {string} id A unique integer value identifying this bookmarklet import. - * @param {BookmarkletImport} [bookmarkletImport] + * + * @param {number} id A unique integer value identifying this sync log. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async updateBookmarkletImport(id: string, bookmarkletImport?: BookmarkletImport, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.updateBookmarkletImport(id, bookmarkletImport, options); + async apiSyncLogRetrieve(id: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiSyncLogRetrieve(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {string} id A unique integer value identifying this connector config. - * @param {ConnectorConfigConfig} [connectorConfigConfig] + * + * @param {number} id A unique integer value identifying this sync. + * @param {PatchedSync} [patchedSync] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async updateConnectorConfig(id: string, connectorConfigConfig?: ConnectorConfigConfig, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.updateConnectorConfig(id, connectorConfigConfig, options); + async apiSyncPartialUpdate(id: number, patchedSync?: PatchedSync, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiSyncPartialUpdate(id, patchedSync, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {string} id A unique integer value identifying this cook log. - * @param {CookLog} [cookLog] + * + * @param {number} id A unique integer value identifying this sync. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async updateCookLog(id: string, cookLog?: CookLog, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.updateCookLog(id, cookLog, options); + async apiSyncRetrieve(id: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiSyncRetrieve(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {string} id A unique integer value identifying this custom filter. - * @param {CustomFilter} [customFilter] + * + * @param {number} id A unique integer value identifying this sync. + * @param {Sync} sync * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async updateCustomFilter(id: string, customFilter?: CustomFilter, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.updateCustomFilter(id, customFilter, options); + async apiSyncUpdate(id: number, sync: Sync, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiSyncUpdate(id, sync, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {string} id A unique integer value identifying this export log. - * @param {ExportLog} [exportLog] + * + * @param {UnitConversion} unitConversion * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async updateExportLog(id: string, exportLog?: ExportLog, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.updateExportLog(id, exportLog, options); + async apiUnitConversionCreate(unitConversion: UnitConversion, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiUnitConversionCreate(unitConversion, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {string} id A unique integer value identifying this food. - * @param {Food} [food] + * + * @param {number} id A unique integer value identifying this unit conversion. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async updateFood(id: string, food?: Food, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.updateFood(id, food, options); + async apiUnitConversionDestroy(id: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiUnitConversionDestroy(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {string} id A unique integer value identifying this import log. - * @param {ImportLog} [importLog] + * + * @param {number} [foodId] ID of food to filter for * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async updateImportLog(id: string, importLog?: ImportLog, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.updateImportLog(id, importLog, options); + async apiUnitConversionList(foodId?: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiUnitConversionList(foodId, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {string} id A unique integer value identifying this ingredient. - * @param {Ingredient} [ingredient] + * + * @param {number} id A unique integer value identifying this unit conversion. + * @param {PatchedUnitConversion} [patchedUnitConversion] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async updateIngredient(id: string, ingredient?: Ingredient, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.updateIngredient(id, ingredient, options); + async apiUnitConversionPartialUpdate(id: number, patchedUnitConversion?: PatchedUnitConversion, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiUnitConversionPartialUpdate(id, patchedUnitConversion, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {string} id A unique integer value identifying this invite link. - * @param {InviteLink} [inviteLink] + * + * @param {number} id A unique integer value identifying this unit conversion. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async updateInviteLink(id: string, inviteLink?: InviteLink, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.updateInviteLink(id, inviteLink, options); + async apiUnitConversionRetrieve(id: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiUnitConversionRetrieve(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {string} id A unique integer value identifying this keyword. - * @param {Keyword} [keyword] + * + * @param {number} id A unique integer value identifying this unit conversion. + * @param {UnitConversion} unitConversion * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async updateKeyword(id: string, keyword?: Keyword, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.updateKeyword(id, keyword, options); + async apiUnitConversionUpdate(id: number, unitConversion: UnitConversion, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiUnitConversionUpdate(id, unitConversion, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {string} id A unique integer value identifying this meal plan. - * @param {MealPlan} [mealPlan] + * + * @param {Unit} unit * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async updateMealPlan(id: string, mealPlan?: MealPlan, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.updateMealPlan(id, mealPlan, options); + async apiUnitCreate(unit: Unit, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiUnitCreate(unit, 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 {number} id A unique integer value identifying this unit. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async updateMealType(id: string, mealType?: MealType, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.updateMealType(id, mealType, options); + async apiUnitDestroy(id: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiUnitDestroy(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {string} id A unique integer value identifying this open data category. - * @param {OpenDataCategory} [openDataCategory] + * + * @param {string} [limit] limit number of entries to return + * @param {number} [page] A page number within the paginated result set. + * @param {number} [pageSize] Number of results to return per page. + * @param {string} [query] lookup if query string is contained within the name, case insensitive + * @param {string} [random] randomly orders entries (only works together with limit) + * @param {string} [updatedAt] if model has an updated_at timestamp, filter only models updated at or after datetime * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async updateOpenDataCategory(id: string, openDataCategory?: OpenDataCategory, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.updateOpenDataCategory(id, openDataCategory, options); + async apiUnitList(limit?: string, page?: number, pageSize?: number, query?: string, random?: string, updatedAt?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiUnitList(limit, page, pageSize, query, random, updatedAt, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {string} id A unique integer value identifying this open data conversion. - * @param {OpenDataConversion} [openDataConversion] + * + * @param {number} id A unique integer value identifying this unit. + * @param {string} target + * @param {Unit} unit * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async updateOpenDataConversion(id: string, openDataConversion?: OpenDataConversion, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.updateOpenDataConversion(id, openDataConversion, options); + async apiUnitMergeUpdate(id: number, target: string, unit: Unit, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiUnitMergeUpdate(id, target, unit, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {string} id A unique integer value identifying this open data food. - * @param {OpenDataFood} [openDataFood] + * + * @param {number} id A unique integer value identifying this unit. + * @param {PatchedUnit} [patchedUnit] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async updateOpenDataFood(id: string, openDataFood?: OpenDataFood, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.updateOpenDataFood(id, openDataFood, options); + async apiUnitPartialUpdate(id: number, patchedUnit?: PatchedUnit, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiUnitPartialUpdate(id, patchedUnit, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {string} id A unique integer value identifying this open data property. - * @param {OpenDataProperty} [openDataProperty] + * + * @param {number} id A unique integer value identifying this unit. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async updateOpenDataProperty(id: string, openDataProperty?: OpenDataProperty, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.updateOpenDataProperty(id, openDataProperty, options); + async apiUnitRetrieve(id: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiUnitRetrieve(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {string} id A unique integer value identifying this open data store. - * @param {OpenDataStore} [openDataStore] + * + * @param {number} id A unique integer value identifying this unit. + * @param {Unit} unit * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async updateOpenDataStore(id: string, openDataStore?: OpenDataStore, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.updateOpenDataStore(id, openDataStore, options); + async apiUnitUpdate(id: number, unit: Unit, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiUnitUpdate(id, unit, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {string} id A unique integer value identifying this open data unit. - * @param {OpenDataUnit} [openDataUnit] + * + * @param {number} id + * @param {string} name + * @param {string} file + * @param {string} fileDownload + * @param {string} preview + * @param {number} fileSizeKb * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async updateOpenDataUnit(id: string, openDataUnit?: OpenDataUnit, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.updateOpenDataUnit(id, openDataUnit, options); + async apiUserFileCreate(id: number, name: string, file: string, fileDownload: string, preview: string, fileSizeKb: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiUserFileCreate(id, name, file, fileDownload, preview, fileSizeKb, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {string} id A unique integer value identifying this open data version. - * @param {OpenDataVersion} [openDataVersion] + * + * @param {number} id A unique integer value identifying this user file. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async updateOpenDataVersion(id: string, openDataVersion?: OpenDataVersion, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.updateOpenDataVersion(id, openDataVersion, options); + async apiUserFileDestroy(id: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiUserFileDestroy(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {string} id A unique integer value identifying this property. - * @param {Property} [property] + * + * @param {string} [limit] limit number of entries to return + * @param {string} [query] lookup if query string is contained within the name, case insensitive + * @param {string} [random] randomly orders entries (only works together with limit) + * @param {string} [updatedAt] if model has an updated_at timestamp, filter only models updated at or after datetime * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async updateProperty(id: string, property?: Property, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.updateProperty(id, property, options); + async apiUserFileList(limit?: string, query?: string, random?: string, updatedAt?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiUserFileList(limit, query, random, updatedAt, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {string} id A unique integer value identifying this property type. - * @param {PropertyType} [propertyType] + * + * @param {number} id A unique integer value identifying this user file. + * @param {number} [id2] + * @param {string} [name] + * @param {string} [file] + * @param {string} [fileDownload] + * @param {string} [preview] + * @param {number} [fileSizeKb] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async updatePropertyType(id: string, propertyType?: PropertyType, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.updatePropertyType(id, propertyType, options); + async apiUserFilePartialUpdate(id: number, id2?: number, name?: string, file?: string, fileDownload?: string, preview?: string, fileSizeKb?: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiUserFilePartialUpdate(id, id2, name, file, fileDownload, preview, fileSizeKb, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {string} id A unique integer value identifying this recipe. - * @param {Recipe} [recipe] + * + * @param {number} id A unique integer value identifying this user file. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async updateRecipe(id: string, recipe?: Recipe, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.updateRecipe(id, recipe, options); + async apiUserFileRetrieve(id: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiUserFileRetrieve(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {string} id A unique integer value identifying this recipe book. - * @param {RecipeBook} [recipeBook] + * + * @param {number} id A unique integer value identifying this user file. + * @param {number} id2 + * @param {string} name + * @param {string} file + * @param {string} fileDownload + * @param {string} preview + * @param {number} fileSizeKb * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async updateRecipeBook(id: string, recipeBook?: RecipeBook, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.updateRecipeBook(id, recipeBook, options); + async apiUserFileUpdate(id: number, id2: number, name: string, file: string, fileDownload: string, preview: string, fileSizeKb: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiUserFileUpdate(id, id2, name, file, fileDownload, preview, fileSizeKb, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {string} id A unique integer value identifying this recipe book entry. - * @param {RecipeBookEntry} [recipeBookEntry] + * list: optional parameters - **filter_list**: array of user id\'s to get names for * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async updateRecipeBookEntry(id: string, recipeBookEntry?: RecipeBookEntry, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.updateRecipeBookEntry(id, recipeBookEntry, options); + async apiUserList(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiUserList(options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {string} id A unique integer value identifying this shopping list. - * @param {ShoppingList} [shoppingList] + * list: optional parameters - **filter_list**: array of user id\'s to get names for + * @param {number} id A unique integer value identifying this user. + * @param {PatchedUser} [patchedUser] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async updateShoppingList(id: string, shoppingList?: ShoppingList, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.updateShoppingList(id, shoppingList, options); + async apiUserPartialUpdate(id: number, patchedUser?: PatchedUser, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiUserPartialUpdate(id, patchedUser, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {string} id A unique integer value identifying this shopping list entry. - * @param {ShoppingListEntry} [shoppingListEntry] + * * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async updateShoppingListEntry(id: string, shoppingListEntry?: ShoppingListEntry, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.updateShoppingListEntry(id, shoppingListEntry, options); + async apiUserPreferenceList(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiUserPreferenceList(options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {string} id A unique integer value identifying this shopping list recipe. - * @param {ShoppingListRecipe} [shoppingListRecipe] + * + * @param {number} user A unique value identifying this user preference. + * @param {PatchedUserPreference} [patchedUserPreference] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async updateShoppingListRecipe(id: string, shoppingListRecipe?: ShoppingListRecipe, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.updateShoppingListRecipe(id, shoppingListRecipe, options); + async apiUserPreferencePartialUpdate(user: number, patchedUserPreference?: PatchedUserPreference, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiUserPreferencePartialUpdate(user, patchedUserPreference, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {string} id A unique integer value identifying this step. - * @param {Step} [step] + * + * @param {number} user A unique value identifying this user preference. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async updateStep(id: string, step?: Step, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.updateStep(id, step, options); + async apiUserPreferenceRetrieve(user: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiUserPreferenceRetrieve(user, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {string} id A unique integer value identifying this storage. - * @param {Storage} [storage] + * list: optional parameters - **filter_list**: array of user id\'s to get names for + * @param {number} id A unique integer value identifying this user. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async updateStorage(id: string, storage?: Storage, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.updateStorage(id, storage, options); + async apiUserRetrieve(id: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiUserRetrieve(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {string} id A unique integer value identifying this supermarket. - * @param {Supermarket} [supermarket] + * + * @param {number} id A unique integer value identifying this user space. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async updateSupermarket(id: string, supermarket?: Supermarket, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.updateSupermarket(id, supermarket, options); + async apiUserSpaceDestroy(id: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiUserSpaceDestroy(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {string} id A unique integer value identifying this supermarket category. - * @param {SupermarketCategory} [supermarketCategory] + * + * @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 updateSupermarketCategory(id: string, supermarketCategory?: SupermarketCategory, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.updateSupermarketCategory(id, supermarketCategory, options); + async apiUserSpaceList(page?: number, pageSize?: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiUserSpaceList(page, pageSize, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {string} id A unique integer value identifying this supermarket category relation. - * @param {SupermarketCategoryRelation} [supermarketCategoryRelation] + * + * @param {number} id A unique integer value identifying this user space. + * @param {PatchedUserSpace} [patchedUserSpace] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async updateSupermarketCategoryRelation(id: string, supermarketCategoryRelation?: SupermarketCategoryRelation, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.updateSupermarketCategoryRelation(id, supermarketCategoryRelation, options); + async apiUserSpacePartialUpdate(id: number, patchedUserSpace?: PatchedUserSpace, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiUserSpacePartialUpdate(id, patchedUserSpace, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {string} id A unique integer value identifying this sync. - * @param {Sync} [sync] + * + * @param {number} id A unique integer value identifying this user space. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async updateSync(id: string, sync?: Sync, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.updateSync(id, sync, options); + async apiUserSpaceRetrieve(id: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiUserSpaceRetrieve(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {string} id A unique integer value identifying this unit. - * @param {Unit} [unit] + * + * @param {ViewLog} viewLog * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async updateUnit(id: string, unit?: Unit, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.updateUnit(id, unit, options); + async apiViewLogCreate(viewLog: ViewLog, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiViewLogCreate(viewLog, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {string} id A unique integer value identifying this unit conversion. - * @param {UnitConversion} [unitConversion] + * + * @param {number} id A unique integer value identifying this view log. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async updateUnitConversion(id: string, unitConversion?: UnitConversion, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.updateUnitConversion(id, unitConversion, options); + async apiViewLogDestroy(id: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiViewLogDestroy(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {string} id A unique integer value identifying this user file. - * @param {string} name - * @param {any} file - * @param {number} [id2] - * @param {string} [fileDownload] - * @param {string} [preview] - * @param {number} [fileSizeKb] + * + * @param {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 updateUserFile(id: string, name: string, file: any, id2?: number, fileDownload?: string, preview?: string, fileSizeKb?: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.updateUserFile(id, name, file, id2, fileDownload, preview, fileSizeKb, options); + async apiViewLogList(page?: number, pageSize?: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiViewLogList(page, pageSize, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {string} id A unique integer value identifying this view log. - * @param {ViewLog} [viewLog] + * + * @param {number} id A unique integer value identifying this view log. + * @param {PatchedViewLog} [patchedViewLog] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async updateViewLog(id: string, viewLog?: ViewLog, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.updateViewLog(id, viewLog, options); + async apiViewLogPartialUpdate(id: number, patchedViewLog?: PatchedViewLog, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiViewLogPartialUpdate(id, patchedViewLog, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {number} id A unique integer value identifying this view log. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiViewLogRetrieve(id: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiViewLogRetrieve(id, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {number} id A unique integer value identifying this view log. + * @param {ViewLog} viewLog + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiViewLogUpdate(id: number, viewLog: ViewLog, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiViewLogUpdate(id, viewLog, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, } @@ -18357,2621 +17260,2217 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?: const localVarFp = ApiApiFp(configuration) return { /** - * - * @param {ShoppingListEntryBulk} [shoppingListEntryBulk] + * + * @param {AccessToken} accessToken * @param {*} [options] Override http request option. * @throws {RequiredError} */ - bulkShoppingListEntry(shoppingListEntryBulk?: ShoppingListEntryBulk, options?: any): AxiosPromise { - return localVarFp.bulkShoppingListEntry(shoppingListEntryBulk, options).then((request) => request(axios, basePath)); + apiAccessTokenCreate(accessToken: AccessToken, options?: any): AxiosPromise { + return localVarFp.apiAccessTokenCreate(accessToken, options).then((request) => request(axios, basePath)); }, /** - * - * @param {AccessToken} [accessToken] + * + * @param {number} id A unique integer value identifying this access token. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createAccessToken(accessToken?: AccessToken, options?: any): AxiosPromise { - return localVarFp.createAccessToken(accessToken, options).then((request) => request(axios, basePath)); + apiAccessTokenDestroy(id: number, options?: any): AxiosPromise { + return localVarFp.apiAccessTokenDestroy(id, options).then((request) => request(axios, basePath)); }, /** - * - * @param {any} [body] + * * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createAutoPlanViewSet(body?: any, options?: any): AxiosPromise { - return localVarFp.createAutoPlanViewSet(body, options).then((request) => request(axios, basePath)); + apiAccessTokenList(options?: any): AxiosPromise> { + return localVarFp.apiAccessTokenList(options).then((request) => request(axios, basePath)); }, /** - * - * @param {Automation} [automation] + * + * @param {number} id A unique integer value identifying this access token. + * @param {PatchedAccessToken} [patchedAccessToken] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createAutomation(automation?: Automation, options?: any): AxiosPromise { - return localVarFp.createAutomation(automation, options).then((request) => request(axios, basePath)); + apiAccessTokenPartialUpdate(id: number, patchedAccessToken?: PatchedAccessToken, options?: any): AxiosPromise { + return localVarFp.apiAccessTokenPartialUpdate(id, patchedAccessToken, options).then((request) => request(axios, basePath)); }, /** - * - * @param {BookmarkletImport} [bookmarkletImport] + * + * @param {number} id A unique integer value identifying this access token. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createBookmarkletImport(bookmarkletImport?: BookmarkletImport, options?: any): AxiosPromise { - return localVarFp.createBookmarkletImport(bookmarkletImport, options).then((request) => request(axios, basePath)); + apiAccessTokenRetrieve(id: number, options?: any): AxiosPromise { + return localVarFp.apiAccessTokenRetrieve(id, options).then((request) => request(axios, basePath)); }, /** - * - * @param {ConnectorConfigConfig} [connectorConfigConfig] + * + * @param {number} id A unique integer value identifying this access token. + * @param {AccessToken} accessToken * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createConnectorConfig(connectorConfigConfig?: ConnectorConfigConfig, options?: any): AxiosPromise { - return localVarFp.createConnectorConfig(connectorConfigConfig, options).then((request) => request(axios, basePath)); + apiAccessTokenUpdate(id: number, accessToken: AccessToken, options?: any): AxiosPromise { + return localVarFp.apiAccessTokenUpdate(id, accessToken, options).then((request) => request(axios, basePath)); }, /** - * - * @param {CookLog} [cookLog] + * * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createCookLog(cookLog?: CookLog, options?: any): AxiosPromise { - return localVarFp.createCookLog(cookLog, options).then((request) => request(axios, basePath)); + apiAutoPlanCreate(options?: any): AxiosPromise { + return localVarFp.apiAutoPlanCreate(options).then((request) => request(axios, basePath)); }, /** - * - * @param {CustomFilter} [customFilter] + * list: optional parameters - **automation_type**: Return the Automations matching the automation type. Multiple values allowed. *Automation Types:* - FS: Food Alias - UA: Unit Alias - KA: Keyword Alias - DR: Description Replace - IR: Instruction Replace - NU: Never Unit - TW: Transpose Words - FR: Food Replace - UR: Unit Replace - NR: Name Replace + * @param {Automation} automation * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createCustomFilter(customFilter?: CustomFilter, options?: any): AxiosPromise { - return localVarFp.createCustomFilter(customFilter, options).then((request) => request(axios, basePath)); + apiAutomationCreate(automation: Automation, options?: any): AxiosPromise { + return localVarFp.apiAutomationCreate(automation, options).then((request) => request(axios, basePath)); }, /** - * - * @param {ExportLog} [exportLog] + * list: optional parameters - **automation_type**: Return the Automations matching the automation type. Multiple values allowed. *Automation Types:* - FS: Food Alias - UA: Unit Alias - KA: Keyword Alias - DR: Description Replace - IR: Instruction Replace - NU: Never Unit - TW: Transpose Words - FR: Food Replace - UR: Unit Replace - NR: Name Replace + * @param {number} id A unique integer value identifying this automation. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createExportLog(exportLog?: ExportLog, options?: any): AxiosPromise { - return localVarFp.createExportLog(exportLog, options).then((request) => request(axios, basePath)); + apiAutomationDestroy(id: number, options?: any): AxiosPromise { + return localVarFp.apiAutomationDestroy(id, options).then((request) => request(axios, basePath)); }, /** - * - * @param {Food} [food] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createFood(food?: Food, options?: any): AxiosPromise { - return localVarFp.createFood(food, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {ImportLog} [importLog] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createImportLog(importLog?: ImportLog, options?: any): AxiosPromise { - return localVarFp.createImportLog(importLog, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {Ingredient} [ingredient] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createIngredient(ingredient?: Ingredient, options?: any): AxiosPromise { - return localVarFp.createIngredient(ingredient, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {InviteLink} [inviteLink] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createInviteLink(inviteLink?: InviteLink, options?: any): AxiosPromise { - return localVarFp.createInviteLink(inviteLink, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {Keyword} [keyword] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createKeyword(keyword?: Keyword, options?: any): AxiosPromise { - return localVarFp.createKeyword(keyword, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {MealPlan} [mealPlan] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createMealPlan(mealPlan?: MealPlan, options?: any): AxiosPromise { - return localVarFp.createMealPlan(mealPlan, options).then((request) => request(axios, basePath)); - }, - /** - * returns list of meal types created by the requesting user ordered by the order field. - * @param {MealType} [mealType] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createMealType(mealType?: MealType, options?: any): AxiosPromise { - return localVarFp.createMealType(mealType, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {OpenDataCategory} [openDataCategory] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createOpenDataCategory(openDataCategory?: OpenDataCategory, options?: any): AxiosPromise { - return localVarFp.createOpenDataCategory(openDataCategory, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {OpenDataConversion} [openDataConversion] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createOpenDataConversion(openDataConversion?: OpenDataConversion, options?: any): AxiosPromise { - return localVarFp.createOpenDataConversion(openDataConversion, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {OpenDataFood} [openDataFood] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createOpenDataFood(openDataFood?: OpenDataFood, options?: any): AxiosPromise { - return localVarFp.createOpenDataFood(openDataFood, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {OpenDataProperty} [openDataProperty] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createOpenDataProperty(openDataProperty?: OpenDataProperty, options?: any): AxiosPromise { - return localVarFp.createOpenDataProperty(openDataProperty, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {OpenDataStore} [openDataStore] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createOpenDataStore(openDataStore?: OpenDataStore, options?: any): AxiosPromise { - return localVarFp.createOpenDataStore(openDataStore, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {OpenDataUnit} [openDataUnit] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createOpenDataUnit(openDataUnit?: OpenDataUnit, options?: any): AxiosPromise { - return localVarFp.createOpenDataUnit(openDataUnit, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {OpenDataVersion} [openDataVersion] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createOpenDataVersion(openDataVersion?: OpenDataVersion, options?: any): AxiosPromise { - return localVarFp.createOpenDataVersion(openDataVersion, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {Property} [property] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createProperty(property?: Property, options?: any): AxiosPromise { - return localVarFp.createProperty(property, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {PropertyType} [propertyType] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createPropertyType(propertyType?: PropertyType, options?: any): AxiosPromise { - return localVarFp.createPropertyType(propertyType, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {Recipe} [recipe] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createRecipe(recipe?: Recipe, options?: any): AxiosPromise { - return localVarFp.createRecipe(recipe, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {RecipeBook} [recipeBook] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createRecipeBook(recipeBook?: RecipeBook, options?: any): AxiosPromise { - return localVarFp.createRecipeBook(recipeBook, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {RecipeBookEntry} [recipeBookEntry] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createRecipeBookEntry(recipeBookEntry?: RecipeBookEntry, options?: any): AxiosPromise { - return localVarFp.createRecipeBookEntry(recipeBookEntry, options).then((request) => request(axios, basePath)); - }, - /** - * function to retrieve a recipe from a given url or source string :param request: standard request with additional post parameters - url: url to use for importing recipe - data: if no url is given recipe is imported from provided source data - (optional) bookmarklet: id of bookmarklet import to use, overrides URL and data attributes :return: JsonResponse containing the parsed json and images - * @param {any} [body] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createRecipeUrlImport(body?: any, options?: any): AxiosPromise { - return localVarFp.createRecipeUrlImport(body, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {ShoppingList} [shoppingList] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createShoppingList(shoppingList?: ShoppingList, options?: any): AxiosPromise { - return localVarFp.createShoppingList(shoppingList, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {ShoppingListEntry} [shoppingListEntry] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createShoppingListEntry(shoppingListEntry?: ShoppingListEntry, options?: any): AxiosPromise { - return localVarFp.createShoppingListEntry(shoppingListEntry, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {ShoppingListRecipe} [shoppingListRecipe] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createShoppingListRecipe(shoppingListRecipe?: ShoppingListRecipe, options?: any): AxiosPromise { - return localVarFp.createShoppingListRecipe(shoppingListRecipe, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {Step} [step] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createStep(step?: Step, options?: any): AxiosPromise { - return localVarFp.createStep(step, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {Storage} [storage] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createStorage(storage?: Storage, options?: any): AxiosPromise { - return localVarFp.createStorage(storage, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {Supermarket} [supermarket] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createSupermarket(supermarket?: Supermarket, options?: any): AxiosPromise { - return localVarFp.createSupermarket(supermarket, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {SupermarketCategory} [supermarketCategory] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createSupermarketCategory(supermarketCategory?: SupermarketCategory, options?: any): AxiosPromise { - return localVarFp.createSupermarketCategory(supermarketCategory, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {SupermarketCategoryRelation} [supermarketCategoryRelation] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createSupermarketCategoryRelation(supermarketCategoryRelation?: SupermarketCategoryRelation, options?: any): AxiosPromise { - return localVarFp.createSupermarketCategoryRelation(supermarketCategoryRelation, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {Sync} [sync] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createSync(sync?: Sync, options?: any): AxiosPromise { - return localVarFp.createSync(sync, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {Unit} [unit] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createUnit(unit?: Unit, options?: any): AxiosPromise { - return localVarFp.createUnit(unit, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {UnitConversion} [unitConversion] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createUnitConversion(unitConversion?: UnitConversion, options?: any): AxiosPromise { - return localVarFp.createUnitConversion(unitConversion, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} name - * @param {any} file - * @param {number} [id] - * @param {string} [fileDownload] - * @param {string} [preview] - * @param {number} [fileSizeKb] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createUserFile(name: string, file: any, id?: number, fileDownload?: string, preview?: string, fileSizeKb?: number, options?: any): AxiosPromise { - return localVarFp.createUserFile(name, file, id, fileDownload, preview, fileSizeKb, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {ViewLog} [viewLog] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createViewLog(viewLog?: ViewLog, options?: any): AxiosPromise { - return localVarFp.createViewLog(viewLog, options).then((request) => request(axios, basePath)); - }, - /** - * function to handle files passed by application importer - * @param {any} [body] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createimportFiles(body?: any, options?: any): AxiosPromise { - return localVarFp.createimportFiles(body, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this access token. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyAccessToken(id: string, options?: any): AxiosPromise { - return localVarFp.destroyAccessToken(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} - */ - destroyAutomation(id: string, options?: any): AxiosPromise { - return localVarFp.destroyAutomation(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this bookmarklet import. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyBookmarkletImport(id: string, options?: any): AxiosPromise { - return localVarFp.destroyBookmarkletImport(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this connector config. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyConnectorConfig(id: string, options?: any): AxiosPromise { - return localVarFp.destroyConnectorConfig(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this cook log. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyCookLog(id: string, options?: any): AxiosPromise { - return localVarFp.destroyCookLog(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this custom filter. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyCustomFilter(id: string, options?: any): AxiosPromise { - return localVarFp.destroyCustomFilter(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this export log. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyExportLog(id: string, options?: any): AxiosPromise { - return localVarFp.destroyExportLog(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this food. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyFood(id: string, options?: any): AxiosPromise { - return localVarFp.destroyFood(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this import log. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyImportLog(id: string, options?: any): AxiosPromise { - return localVarFp.destroyImportLog(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this ingredient. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyIngredient(id: string, options?: any): AxiosPromise { - return localVarFp.destroyIngredient(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this invite link. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyInviteLink(id: string, options?: any): AxiosPromise { - return localVarFp.destroyInviteLink(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this keyword. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyKeyword(id: string, options?: any): AxiosPromise { - return localVarFp.destroyKeyword(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this meal plan. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyMealPlan(id: string, options?: any): AxiosPromise { - return localVarFp.destroyMealPlan(id, options).then((request) => request(axios, basePath)); - }, - /** - * returns list of meal types created by the requesting user ordered by the order field. - * @param {string} id A unique integer value identifying this meal type. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyMealType(id: string, options?: any): AxiosPromise { - return localVarFp.destroyMealType(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this open data category. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyOpenDataCategory(id: string, options?: any): AxiosPromise { - return localVarFp.destroyOpenDataCategory(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this open data conversion. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyOpenDataConversion(id: string, options?: any): AxiosPromise { - return localVarFp.destroyOpenDataConversion(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this open data food. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyOpenDataFood(id: string, options?: any): AxiosPromise { - return localVarFp.destroyOpenDataFood(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this open data property. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyOpenDataProperty(id: string, options?: any): AxiosPromise { - return localVarFp.destroyOpenDataProperty(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this open data store. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyOpenDataStore(id: string, options?: any): AxiosPromise { - return localVarFp.destroyOpenDataStore(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this open data unit. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyOpenDataUnit(id: string, options?: any): AxiosPromise { - return localVarFp.destroyOpenDataUnit(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this open data version. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyOpenDataVersion(id: string, options?: any): AxiosPromise { - return localVarFp.destroyOpenDataVersion(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this property. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyProperty(id: string, options?: any): AxiosPromise { - return localVarFp.destroyProperty(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this property type. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyPropertyType(id: string, options?: any): AxiosPromise { - return localVarFp.destroyPropertyType(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this recipe. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyRecipe(id: string, options?: any): AxiosPromise { - return localVarFp.destroyRecipe(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this recipe book. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyRecipeBook(id: string, options?: any): AxiosPromise { - return localVarFp.destroyRecipeBook(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this recipe book entry. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyRecipeBookEntry(id: string, options?: any): AxiosPromise { - return localVarFp.destroyRecipeBookEntry(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this shopping list. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyShoppingList(id: string, options?: any): AxiosPromise { - return localVarFp.destroyShoppingList(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this shopping list entry. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyShoppingListEntry(id: string, options?: any): AxiosPromise { - return localVarFp.destroyShoppingListEntry(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this shopping list recipe. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyShoppingListRecipe(id: string, options?: any): AxiosPromise { - return localVarFp.destroyShoppingListRecipe(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this step. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyStep(id: string, options?: any): AxiosPromise { - return localVarFp.destroyStep(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this storage. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyStorage(id: string, options?: any): AxiosPromise { - return localVarFp.destroyStorage(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this supermarket. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroySupermarket(id: string, options?: any): AxiosPromise { - return localVarFp.destroySupermarket(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this supermarket category. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroySupermarketCategory(id: string, options?: any): AxiosPromise { - return localVarFp.destroySupermarketCategory(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this supermarket category relation. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroySupermarketCategoryRelation(id: string, options?: any): AxiosPromise { - return localVarFp.destroySupermarketCategoryRelation(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this sync. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroySync(id: string, options?: any): AxiosPromise { - return localVarFp.destroySync(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this unit. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyUnit(id: string, options?: any): AxiosPromise { - return localVarFp.destroyUnit(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this unit conversion. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyUnitConversion(id: string, options?: any): AxiosPromise { - return localVarFp.destroyUnitConversion(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this user file. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyUserFile(id: string, options?: any): AxiosPromise { - return localVarFp.destroyUserFile(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this user space. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyUserSpace(id: string, options?: any): AxiosPromise { - return localVarFp.destroyUserSpace(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this view log. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyViewLog(id: string, options?: any): AxiosPromise { - return localVarFp.destroyViewLog(id, options).then((request) => request(axios, basePath)); - }, - /** - * updates the food with all possible data from the FDC Api if properties with a fdc_id already exist they will be overridden, if existing properties don\'t have a fdc_id they won\'t be changed - * @param {string} id A unique integer value identifying this food. - * @param {Food} [food] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - fdcFood(id: string, food?: Food, options?: any): AxiosPromise { - return localVarFp.fdcFood(id, food, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - flatRecipe(options?: any): AxiosPromise { - return localVarFp.flatRecipe(options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this recipe. - * @param {any} [image] - * @param {string} [imageUrl] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - imageRecipe(id: string, image?: any, imageUrl?: string, options?: any): AxiosPromise { - return localVarFp.imageRecipe(id, image, imageUrl, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listAccessTokens(options?: any): AxiosPromise> { - return localVarFp.listAccessTokens(options).then((request) => request(axios, basePath)); - }, - /** - * optional parameters - **automation_type**: Return the Automations matching the automation type. Multiple values allowed. *Automation Types:* - FS: Food Alias - UA: Unit Alias - KA: Keyword Alias - DR: Description Replace - IR: Instruction Replace - NU: Never Unit - TW: Transpose Words - FR: Food Replace - UR: Unit Replace - NR: Name Replace + * list: optional parameters - **automation_type**: Return the Automations matching the automation type. Multiple values allowed. *Automation Types:* - FS: Food Alias - UA: Unit Alias - KA: Keyword Alias - DR: Description Replace - IR: Instruction Replace - NU: Never Unit - TW: Transpose Words - FR: Food Replace - UR: Unit Replace - NR: Name Replace * @param {string} [automationType] Return the Automations matching the automation type. Multiple values allowed. * @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} */ - listAutomations(automationType?: string, page?: number, pageSize?: number, options?: any): AxiosPromise { - return localVarFp.listAutomations(automationType, page, pageSize, options).then((request) => request(axios, basePath)); + apiAutomationList(automationType?: string, page?: number, pageSize?: number, options?: any): AxiosPromise { + return localVarFp.apiAutomationList(automationType, page, pageSize, options).then((request) => request(axios, basePath)); }, /** - * + * list: optional parameters - **automation_type**: Return the Automations matching the automation type. Multiple values allowed. *Automation Types:* - FS: Food Alias - UA: Unit Alias - KA: Keyword Alias - DR: Description Replace - IR: Instruction Replace - NU: Never Unit - TW: Transpose Words - FR: Food Replace - UR: Unit Replace - NR: Name Replace + * @param {number} id A unique integer value identifying this automation. + * @param {PatchedAutomation} [patchedAutomation] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listBookmarkletImports(options?: any): AxiosPromise> { - return localVarFp.listBookmarkletImports(options).then((request) => request(axios, basePath)); + apiAutomationPartialUpdate(id: number, patchedAutomation?: PatchedAutomation, options?: any): AxiosPromise { + return localVarFp.apiAutomationPartialUpdate(id, patchedAutomation, options).then((request) => request(axios, basePath)); }, /** - * + * list: optional parameters - **automation_type**: Return the Automations matching the automation type. Multiple values allowed. *Automation Types:* - FS: Food Alias - UA: Unit Alias - KA: Keyword Alias - DR: Description Replace - IR: Instruction Replace - NU: Never Unit - TW: Transpose Words - FR: Food Replace - UR: Unit Replace - NR: Name Replace + * @param {number} id A unique integer value identifying this automation. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listConnectorConfigs(options?: any): AxiosPromise> { - return localVarFp.listConnectorConfigs(options).then((request) => request(axios, basePath)); + apiAutomationRetrieve(id: number, options?: any): AxiosPromise { + return localVarFp.apiAutomationRetrieve(id, options).then((request) => request(axios, basePath)); }, /** - * + * list: optional parameters - **automation_type**: Return the Automations matching the automation type. Multiple values allowed. *Automation Types:* - FS: Food Alias - UA: Unit Alias - KA: Keyword Alias - DR: Description Replace - IR: Instruction Replace - NU: Never Unit - TW: Transpose Words - FR: Food Replace - UR: Unit Replace - NR: Name Replace + * @param {number} id A unique integer value identifying this automation. + * @param {Automation} automation + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiAutomationUpdate(id: number, automation: Automation, options?: any): AxiosPromise { + return localVarFp.apiAutomationUpdate(id, automation, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {BookmarkletImport} bookmarkletImport + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiBookmarkletImportCreate(bookmarkletImport: BookmarkletImport, options?: any): AxiosPromise { + return localVarFp.apiBookmarkletImportCreate(bookmarkletImport, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {number} id A unique integer value identifying this bookmarklet import. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiBookmarkletImportDestroy(id: number, options?: any): AxiosPromise { + return localVarFp.apiBookmarkletImportDestroy(id, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiBookmarkletImportList(options?: any): AxiosPromise> { + return localVarFp.apiBookmarkletImportList(options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {number} id A unique integer value identifying this bookmarklet import. + * @param {PatchedBookmarkletImport} [patchedBookmarkletImport] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiBookmarkletImportPartialUpdate(id: number, patchedBookmarkletImport?: PatchedBookmarkletImport, options?: any): AxiosPromise { + return localVarFp.apiBookmarkletImportPartialUpdate(id, patchedBookmarkletImport, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {number} id A unique integer value identifying this bookmarklet import. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiBookmarkletImportRetrieve(id: number, options?: any): AxiosPromise { + return localVarFp.apiBookmarkletImportRetrieve(id, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {number} id A unique integer value identifying this bookmarklet import. + * @param {BookmarkletImport} bookmarkletImport + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiBookmarkletImportUpdate(id: number, bookmarkletImport: BookmarkletImport, options?: any): AxiosPromise { + return localVarFp.apiBookmarkletImportUpdate(id, bookmarkletImport, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {ConnectorConfigConfig} connectorConfigConfig + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiConnectorConfigCreate(connectorConfigConfig: ConnectorConfigConfig, options?: any): AxiosPromise { + return localVarFp.apiConnectorConfigCreate(connectorConfigConfig, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {number} id A unique integer value identifying this connector config. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiConnectorConfigDestroy(id: number, options?: any): AxiosPromise { + return localVarFp.apiConnectorConfigDestroy(id, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiConnectorConfigList(options?: any): AxiosPromise> { + return localVarFp.apiConnectorConfigList(options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {number} id A unique integer value identifying this connector config. + * @param {PatchedConnectorConfigConfig} [patchedConnectorConfigConfig] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiConnectorConfigPartialUpdate(id: number, patchedConnectorConfigConfig?: PatchedConnectorConfigConfig, options?: any): AxiosPromise { + return localVarFp.apiConnectorConfigPartialUpdate(id, patchedConnectorConfigConfig, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {number} id A unique integer value identifying this connector config. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiConnectorConfigRetrieve(id: number, options?: any): AxiosPromise { + return localVarFp.apiConnectorConfigRetrieve(id, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {number} id A unique integer value identifying this connector config. + * @param {ConnectorConfigConfig} connectorConfigConfig + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiConnectorConfigUpdate(id: number, connectorConfigConfig: ConnectorConfigConfig, options?: any): AxiosPromise { + return localVarFp.apiConnectorConfigUpdate(id, connectorConfigConfig, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {CookLog} cookLog + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiCookLogCreate(cookLog: CookLog, options?: any): AxiosPromise { + return localVarFp.apiCookLogCreate(cookLog, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {number} id A unique integer value identifying this cook log. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiCookLogDestroy(id: number, options?: any): AxiosPromise { + return localVarFp.apiCookLogDestroy(id, 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 {number} [recipe] Filter for entries with the given recipe + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiCookLogList(page?: number, pageSize?: number, recipe?: number, options?: any): AxiosPromise { + return localVarFp.apiCookLogList(page, pageSize, recipe, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {number} id A unique integer value identifying this cook log. + * @param {PatchedCookLog} [patchedCookLog] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiCookLogPartialUpdate(id: number, patchedCookLog?: PatchedCookLog, options?: any): AxiosPromise { + return localVarFp.apiCookLogPartialUpdate(id, patchedCookLog, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {number} id A unique integer value identifying this cook log. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiCookLogRetrieve(id: number, options?: any): AxiosPromise { + return localVarFp.apiCookLogRetrieve(id, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {number} id A unique integer value identifying this cook log. + * @param {CookLog} cookLog + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiCookLogUpdate(id: number, cookLog: CookLog, options?: any): AxiosPromise { + return localVarFp.apiCookLogUpdate(id, cookLog, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {CustomFilter} customFilter + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiCustomFilterCreate(customFilter: CustomFilter, options?: any): AxiosPromise { + return localVarFp.apiCustomFilterCreate(customFilter, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {number} id A unique integer value identifying this custom filter. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiCustomFilterDestroy(id: number, options?: any): AxiosPromise { + return localVarFp.apiCustomFilterDestroy(id, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {string} [limit] limit number of entries to return + * @param {number} [page] A page number within the paginated result set. + * @param {number} [pageSize] Number of results to return per page. + * @param {string} [query] lookup if query string is contained within the name, case insensitive + * @param {string} [random] randomly orders entries (only works together with limit) + * @param {string} [updatedAt] if model has an updated_at timestamp, filter only models updated at or after datetime + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiCustomFilterList(limit?: string, page?: number, pageSize?: number, query?: string, random?: string, updatedAt?: string, options?: any): AxiosPromise { + return localVarFp.apiCustomFilterList(limit, page, pageSize, query, random, updatedAt, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {number} id A unique integer value identifying this custom filter. + * @param {PatchedCustomFilter} [patchedCustomFilter] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiCustomFilterPartialUpdate(id: number, patchedCustomFilter?: PatchedCustomFilter, options?: any): AxiosPromise { + return localVarFp.apiCustomFilterPartialUpdate(id, patchedCustomFilter, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {number} id A unique integer value identifying this custom filter. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiCustomFilterRetrieve(id: number, options?: any): AxiosPromise { + return localVarFp.apiCustomFilterRetrieve(id, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {number} id A unique integer value identifying this custom filter. + * @param {CustomFilter} customFilter + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiCustomFilterUpdate(id: number, customFilter: CustomFilter, options?: any): AxiosPromise { + return localVarFp.apiCustomFilterUpdate(id, customFilter, options).then((request) => request(axios, basePath)); + }, + /** + * function to download a user file securely (wrapping as zip to prevent any context based XSS problems) temporary solution until a real file manager is implemented + * @param {number} fileId + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiDownloadFileRetrieve(fileId: number, options?: any): AxiosPromise { + return localVarFp.apiDownloadFileRetrieve(fileId, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {ExportLog} exportLog + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiExportLogCreate(exportLog: ExportLog, options?: any): AxiosPromise { + return localVarFp.apiExportLogCreate(exportLog, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {number} id A unique integer value identifying this export log. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiExportLogDestroy(id: number, options?: any): AxiosPromise { + return localVarFp.apiExportLogDestroy(id, options).then((request) => request(axios, basePath)); + }, + /** + * * @param {number} [page] A page number within the paginated result set. * @param {number} [pageSize] Number of results to return per page. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listCookLogs(page?: number, pageSize?: number, options?: any): AxiosPromise { - return localVarFp.listCookLogs(page, pageSize, options).then((request) => request(axios, basePath)); + apiExportLogList(page?: number, pageSize?: number, options?: any): AxiosPromise { + return localVarFp.apiExportLogList(page, pageSize, options).then((request) => request(axios, basePath)); }, /** - * + * + * @param {number} id A unique integer value identifying this export log. + * @param {PatchedExportLog} [patchedExportLog] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiExportLogPartialUpdate(id: number, patchedExportLog?: PatchedExportLog, options?: any): AxiosPromise { + return localVarFp.apiExportLogPartialUpdate(id, patchedExportLog, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {number} id A unique integer value identifying this export log. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiExportLogRetrieve(id: number, options?: any): AxiosPromise { + return localVarFp.apiExportLogRetrieve(id, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {number} id A unique integer value identifying this export log. + * @param {ExportLog} exportLog + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiExportLogUpdate(id: number, exportLog: ExportLog, options?: any): AxiosPromise { + return localVarFp.apiExportLogUpdate(id, exportLog, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {Food} food + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiFoodCreate(food: Food, options?: any): AxiosPromise { + return localVarFp.apiFoodCreate(food, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {number} id A unique integer value identifying this food. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiFoodDestroy(id: number, options?: any): AxiosPromise { + return localVarFp.apiFoodDestroy(id, options).then((request) => request(axios, basePath)); + }, + /** + * updates the food with all possible data from the FDC Api if properties with a fdc_id already exist they will be overridden, if existing properties don\'t have a fdc_id they won\'t be changed + * @param {number} id A unique integer value identifying this food. + * @param {Food} food + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiFoodFdcCreate(id: number, food: Food, options?: any): AxiosPromise { + return localVarFp.apiFoodFdcCreate(id, food, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiFoodInheritFieldList(options?: any): AxiosPromise> { + return localVarFp.apiFoodInheritFieldList(options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {number} id A unique integer value identifying this food inherit field. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiFoodInheritFieldRetrieve(id: number, options?: any): AxiosPromise { + return localVarFp.apiFoodInheritFieldRetrieve(id, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {string} [limit] limit number of entries to return + * @param {number} [page] A page number within the paginated result set. + * @param {number} [pageSize] Number of results to return per page. + * @param {string} [query] lookup if query string is contained within the name, case insensitive + * @param {string} [random] randomly orders entries (only works together with limit) + * @param {number} [root] Return first level children of {obj} with ID [int]. Integer 0 will return root {obj}s. + * @param {number} [tree] Return all self and children of {} with ID [int]. + * @param {string} [updatedAt] if model has an updated_at timestamp, filter only models updated at or after datetime + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiFoodList(limit?: string, page?: number, pageSize?: number, query?: string, random?: string, root?: number, tree?: number, updatedAt?: string, options?: any): AxiosPromise { + return localVarFp.apiFoodList(limit, page, pageSize, query, random, root, tree, updatedAt, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {number} id A unique integer value identifying this food. + * @param {string} target + * @param {Food} food + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiFoodMergeUpdate(id: number, target: string, food: Food, options?: any): AxiosPromise { + return localVarFp.apiFoodMergeUpdate(id, target, food, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {number} id A unique integer value identifying this food. + * @param {string} parent + * @param {Food} food + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiFoodMoveUpdate(id: number, parent: string, food: Food, options?: any): AxiosPromise { + return localVarFp.apiFoodMoveUpdate(id, parent, food, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {number} id A unique integer value identifying this food. + * @param {PatchedFood} [patchedFood] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiFoodPartialUpdate(id: number, patchedFood?: PatchedFood, options?: any): AxiosPromise { + return localVarFp.apiFoodPartialUpdate(id, patchedFood, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {Property} property + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiFoodPropertyCreate(property: Property, options?: any): AxiosPromise { + return localVarFp.apiFoodPropertyCreate(property, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {number} id A unique integer value identifying this property. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiFoodPropertyDestroy(id: number, options?: any): AxiosPromise { + return localVarFp.apiFoodPropertyDestroy(id, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiFoodPropertyList(options?: any): AxiosPromise> { + return localVarFp.apiFoodPropertyList(options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {number} id A unique integer value identifying this property. + * @param {PatchedProperty} [patchedProperty] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiFoodPropertyPartialUpdate(id: number, patchedProperty?: PatchedProperty, options?: any): AxiosPromise { + return localVarFp.apiFoodPropertyPartialUpdate(id, patchedProperty, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {number} id A unique integer value identifying this property. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiFoodPropertyRetrieve(id: number, options?: any): AxiosPromise { + return localVarFp.apiFoodPropertyRetrieve(id, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {PropertyType} propertyType + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiFoodPropertyTypeCreate(propertyType: PropertyType, options?: any): AxiosPromise { + return localVarFp.apiFoodPropertyTypeCreate(propertyType, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {number} id A unique integer value identifying this property type. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiFoodPropertyTypeDestroy(id: number, options?: any): AxiosPromise { + return localVarFp.apiFoodPropertyTypeDestroy(id, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiFoodPropertyTypeList(options?: any): AxiosPromise> { + return localVarFp.apiFoodPropertyTypeList(options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {number} id A unique integer value identifying this property type. + * @param {PatchedPropertyType} [patchedPropertyType] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiFoodPropertyTypePartialUpdate(id: number, patchedPropertyType?: PatchedPropertyType, options?: any): AxiosPromise { + return localVarFp.apiFoodPropertyTypePartialUpdate(id, patchedPropertyType, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {number} id A unique integer value identifying this property type. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiFoodPropertyTypeRetrieve(id: number, options?: any): AxiosPromise { + return localVarFp.apiFoodPropertyTypeRetrieve(id, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {number} id A unique integer value identifying this property type. + * @param {PropertyType} propertyType + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiFoodPropertyTypeUpdate(id: number, propertyType: PropertyType, options?: any): AxiosPromise { + return localVarFp.apiFoodPropertyTypeUpdate(id, propertyType, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {number} id A unique integer value identifying this property. + * @param {Property} property + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiFoodPropertyUpdate(id: number, property: Property, options?: any): AxiosPromise { + return localVarFp.apiFoodPropertyUpdate(id, property, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {number} id A unique integer value identifying this food. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiFoodRetrieve(id: number, options?: any): AxiosPromise { + return localVarFp.apiFoodRetrieve(id, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {number} id A unique integer value identifying this food. + * @param {FoodShoppingUpdate} foodShoppingUpdate + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiFoodShoppingUpdate(id: number, foodShoppingUpdate: FoodShoppingUpdate, options?: any): AxiosPromise { + return localVarFp.apiFoodShoppingUpdate(id, foodShoppingUpdate, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {number} id A unique integer value identifying this food. + * @param {Food} food + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiFoodUpdate(id: number, food: Food, options?: any): AxiosPromise { + return localVarFp.apiFoodUpdate(id, food, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiGroupList(options?: any): AxiosPromise> { + return localVarFp.apiGroupList(options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {number} id A unique integer value identifying this group. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiGroupRetrieve(id: number, options?: any): AxiosPromise { + return localVarFp.apiGroupRetrieve(id, options).then((request) => request(axios, basePath)); + }, + /** + * function to handle files passed by application importer + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiImportCreate(options?: any): AxiosPromise { + return localVarFp.apiImportCreate(options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {ImportLog} importLog + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiImportLogCreate(importLog: ImportLog, options?: any): AxiosPromise { + return localVarFp.apiImportLogCreate(importLog, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {number} id A unique integer value identifying this import log. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiImportLogDestroy(id: number, options?: any): AxiosPromise { + return localVarFp.apiImportLogDestroy(id, 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} */ - listCustomFilters(page?: number, pageSize?: number, options?: any): AxiosPromise { - return localVarFp.listCustomFilters(page, pageSize, options).then((request) => request(axios, basePath)); + apiImportLogList(page?: number, pageSize?: number, options?: any): AxiosPromise { + return localVarFp.apiImportLogList(page, pageSize, options).then((request) => request(axios, basePath)); }, /** - * + * + * @param {number} id A unique integer value identifying this import log. + * @param {PatchedImportLog} [patchedImportLog] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiImportLogPartialUpdate(id: number, patchedImportLog?: PatchedImportLog, options?: any): AxiosPromise { + return localVarFp.apiImportLogPartialUpdate(id, patchedImportLog, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {number} id A unique integer value identifying this import log. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiImportLogRetrieve(id: number, options?: any): AxiosPromise { + return localVarFp.apiImportLogRetrieve(id, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {number} id A unique integer value identifying this import log. + * @param {ImportLog} importLog + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiImportLogUpdate(id: number, importLog: ImportLog, options?: any): AxiosPromise { + return localVarFp.apiImportLogUpdate(id, importLog, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {Ingredient} ingredient + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiIngredientCreate(ingredient: Ingredient, options?: any): AxiosPromise { + return localVarFp.apiIngredientCreate(ingredient, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {number} id A unique integer value identifying this ingredient. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiIngredientDestroy(id: number, options?: any): AxiosPromise { + return localVarFp.apiIngredientDestroy(id, options).then((request) => request(axios, basePath)); + }, + /** + * * @param {number} [page] A page number within the paginated result set. * @param {number} [pageSize] Number of results to return per page. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listExportLogs(page?: number, pageSize?: number, options?: any): AxiosPromise { - return localVarFp.listExportLogs(page, pageSize, options).then((request) => request(axios, basePath)); + apiIngredientList(page?: number, pageSize?: number, options?: any): AxiosPromise { + return localVarFp.apiIngredientList(page, pageSize, options).then((request) => request(axios, basePath)); }, /** - * + * + * @param {number} id A unique integer value identifying this ingredient. + * @param {PatchedIngredient} [patchedIngredient] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listFoodInheritFields(options?: any): AxiosPromise> { - return localVarFp.listFoodInheritFields(options).then((request) => request(axios, basePath)); + apiIngredientPartialUpdate(id: number, patchedIngredient?: PatchedIngredient, options?: any): AxiosPromise { + return localVarFp.apiIngredientPartialUpdate(id, patchedIngredient, 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} id A unique integer value identifying this ingredient. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiIngredientRetrieve(id: number, options?: any): AxiosPromise { + return localVarFp.apiIngredientRetrieve(id, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {number} id A unique integer value identifying this ingredient. + * @param {Ingredient} ingredient + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiIngredientUpdate(id: number, ingredient: Ingredient, options?: any): AxiosPromise { + return localVarFp.apiIngredientUpdate(id, ingredient, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {InviteLink} inviteLink + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiInviteLinkCreate(inviteLink: InviteLink, options?: any): AxiosPromise { + return localVarFp.apiInviteLinkCreate(inviteLink, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {number} id A unique integer value identifying this invite link. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiInviteLinkDestroy(id: number, options?: any): AxiosPromise { + return localVarFp.apiInviteLinkDestroy(id, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {string} [limit] limit number of entries to return + * @param {string} [query] lookup if query string is contained within the name, case insensitive + * @param {string} [random] randomly orders entries (only works together with limit) + * @param {string} [updatedAt] if model has an updated_at timestamp, filter only models updated at or after datetime + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiInviteLinkList(limit?: string, query?: string, random?: string, updatedAt?: string, options?: any): AxiosPromise> { + return localVarFp.apiInviteLinkList(limit, query, random, updatedAt, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {number} id A unique integer value identifying this invite link. + * @param {PatchedInviteLink} [patchedInviteLink] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiInviteLinkPartialUpdate(id: number, patchedInviteLink?: PatchedInviteLink, options?: any): AxiosPromise { + return localVarFp.apiInviteLinkPartialUpdate(id, patchedInviteLink, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {number} id A unique integer value identifying this invite link. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiInviteLinkRetrieve(id: number, options?: any): AxiosPromise { + return localVarFp.apiInviteLinkRetrieve(id, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {number} id A unique integer value identifying this invite link. + * @param {InviteLink} inviteLink + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiInviteLinkUpdate(id: number, inviteLink: InviteLink, options?: any): AxiosPromise { + return localVarFp.apiInviteLinkUpdate(id, inviteLink, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {Keyword} keyword + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiKeywordCreate(keyword: Keyword, options?: any): AxiosPromise { + return localVarFp.apiKeywordCreate(keyword, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {number} id A unique integer value identifying this keyword. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiKeywordDestroy(id: number, options?: any): AxiosPromise { + return localVarFp.apiKeywordDestroy(id, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {string} [limit] limit number of entries to return * @param {number} [page] A page number within the paginated result set. * @param {number} [pageSize] Number of results to return per page. + * @param {string} [query] lookup if query string is contained within the name, case insensitive + * @param {string} [random] randomly orders entries (only works together with limit) + * @param {number} [root] Return first level children of {obj} with ID [int]. Integer 0 will return root {obj}s. + * @param {number} [tree] Return all self and children of {} with ID [int]. + * @param {string} [updatedAt] if model has an updated_at timestamp, filter only models updated at or after datetime * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listFoods(query?: string, root?: number, tree?: number, page?: number, pageSize?: number, options?: any): AxiosPromise { - return localVarFp.listFoods(query, root, tree, page, pageSize, options).then((request) => request(axios, basePath)); + apiKeywordList(limit?: string, page?: number, pageSize?: number, query?: string, random?: string, root?: number, tree?: number, updatedAt?: string, options?: any): AxiosPromise { + return localVarFp.apiKeywordList(limit, page, pageSize, query, random, root, tree, updatedAt, options).then((request) => request(axios, basePath)); }, /** - * + * + * @param {number} id A unique integer value identifying this keyword. + * @param {string} target + * @param {Keyword} keyword * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listGroups(options?: any): AxiosPromise> { - return localVarFp.listGroups(options).then((request) => request(axios, basePath)); + apiKeywordMergeUpdate(id: number, target: string, keyword: Keyword, options?: any): AxiosPromise { + return localVarFp.apiKeywordMergeUpdate(id, target, keyword, 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 {number} id A unique integer value identifying this keyword. + * @param {string} parent + * @param {Keyword} keyword * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listImportLogs(page?: number, pageSize?: number, options?: any): AxiosPromise { - return localVarFp.listImportLogs(page, pageSize, options).then((request) => request(axios, basePath)); + apiKeywordMoveUpdate(id: number, parent: string, keyword: Keyword, options?: any): AxiosPromise { + return localVarFp.apiKeywordMoveUpdate(id, parent, keyword, 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 {number} id A unique integer value identifying this keyword. + * @param {PatchedKeyword} [patchedKeyword] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listIngredients(page?: number, pageSize?: number, options?: any): AxiosPromise { - return localVarFp.listIngredients(page, pageSize, options).then((request) => request(axios, basePath)); + apiKeywordPartialUpdate(id: number, patchedKeyword?: PatchedKeyword, options?: any): AxiosPromise { + return localVarFp.apiKeywordPartialUpdate(id, patchedKeyword, options).then((request) => request(axios, basePath)); }, /** - * + * + * @param {number} id A unique integer value identifying this keyword. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listInviteLinks(options?: any): AxiosPromise> { - return localVarFp.listInviteLinks(options).then((request) => request(axios, basePath)); + apiKeywordRetrieve(id: number, options?: any): AxiosPromise { + return localVarFp.apiKeywordRetrieve(id, 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 {number} id A unique integer value identifying this keyword. + * @param {Keyword} keyword * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listKeywords(query?: string, root?: number, tree?: number, page?: number, pageSize?: number, options?: any): AxiosPromise { - return localVarFp.listKeywords(query, root, tree, page, pageSize, options).then((request) => request(axios, basePath)); + apiKeywordUpdate(id: number, keyword: Keyword, options?: any): AxiosPromise { + return localVarFp.apiKeywordUpdate(id, keyword, 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 - **meal_type**: filter meal plans based on meal_type ID + * list: optional parameters - **from_date**: filter from (inclusive) a certain date onward - **to_date**: filter upward to (inclusive) certain date - **meal_type**: filter meal plans based on meal_type ID + * @param {MealPlan} mealPlan + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiMealPlanCreate(mealPlan: MealPlan, options?: any): AxiosPromise { + return localVarFp.apiMealPlanCreate(mealPlan, options).then((request) => request(axios, basePath)); + }, + /** + * list: optional parameters - **from_date**: filter from (inclusive) a certain date onward - **to_date**: filter upward to (inclusive) certain date - **meal_type**: filter meal plans based on meal_type ID + * @param {number} id A unique integer value identifying this meal plan. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiMealPlanDestroy(id: number, options?: any): AxiosPromise { + return localVarFp.apiMealPlanDestroy(id, options).then((request) => request(axios, basePath)); + }, + /** + * list: optional parameters - **from_date**: filter from (inclusive) a certain date onward - **to_date**: filter upward to (inclusive) certain date - **meal_type**: filter meal plans based on meal_type ID * @param {string} [fromDate] Filter meal plans from date (inclusive) in the format of YYYY-MM-DD. + * @param {string} [mealType] Filter meal plans with MealType ID. For multiple repeat parameter. * @param {string} [toDate] Filter meal plans to date (inclusive) in the format of YYYY-MM-DD. - * @param {number} [mealType] Filter meal plans with MealType ID. For multiple repeat parameter. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listMealPlans(fromDate?: string, toDate?: string, mealType?: number, options?: any): AxiosPromise> { - return localVarFp.listMealPlans(fromDate, toDate, mealType, options).then((request) => request(axios, basePath)); + apiMealPlanIcalRetrieve(fromDate?: string, mealType?: string, toDate?: string, options?: any): AxiosPromise { + return localVarFp.apiMealPlanIcalRetrieve(fromDate, mealType, toDate, options).then((request) => request(axios, basePath)); + }, + /** + * list: optional parameters - **from_date**: filter from (inclusive) a certain date onward - **to_date**: filter upward to (inclusive) certain date - **meal_type**: filter meal plans based on meal_type ID + * @param {string} [fromDate] Filter meal plans from date (inclusive) in the format of YYYY-MM-DD. + * @param {string} [mealType] Filter meal plans with MealType ID. For multiple repeat parameter. + * @param {string} [toDate] Filter meal plans to date (inclusive) in the format of YYYY-MM-DD. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiMealPlanList(fromDate?: string, mealType?: string, toDate?: string, options?: any): AxiosPromise> { + return localVarFp.apiMealPlanList(fromDate, mealType, toDate, options).then((request) => request(axios, basePath)); + }, + /** + * list: optional parameters - **from_date**: filter from (inclusive) a certain date onward - **to_date**: filter upward to (inclusive) certain date - **meal_type**: filter meal plans based on meal_type ID + * @param {number} id A unique integer value identifying this meal plan. + * @param {PatchedMealPlan} [patchedMealPlan] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiMealPlanPartialUpdate(id: number, patchedMealPlan?: PatchedMealPlan, options?: any): AxiosPromise { + return localVarFp.apiMealPlanPartialUpdate(id, patchedMealPlan, options).then((request) => request(axios, basePath)); + }, + /** + * list: optional parameters - **from_date**: filter from (inclusive) a certain date onward - **to_date**: filter upward to (inclusive) certain date - **meal_type**: filter meal plans based on meal_type ID + * @param {number} id A unique integer value identifying this meal plan. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiMealPlanRetrieve(id: number, options?: any): AxiosPromise { + return localVarFp.apiMealPlanRetrieve(id, options).then((request) => request(axios, basePath)); + }, + /** + * list: optional parameters - **from_date**: filter from (inclusive) a certain date onward - **to_date**: filter upward to (inclusive) certain date - **meal_type**: filter meal plans based on meal_type ID + * @param {number} id A unique integer value identifying this meal plan. + * @param {MealPlan} mealPlan + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiMealPlanUpdate(id: number, mealPlan: MealPlan, options?: any): AxiosPromise { + return localVarFp.apiMealPlanUpdate(id, 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} + */ + apiMealTypeCreate(mealType: MealType, options?: any): AxiosPromise { + return localVarFp.apiMealTypeCreate(mealType, options).then((request) => request(axios, basePath)); + }, + /** + * returns list of meal types created by the requesting user ordered by the order field. + * @param {number} id A unique integer value identifying this meal type. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiMealTypeDestroy(id: number, options?: any): AxiosPromise { + return localVarFp.apiMealTypeDestroy(id, options).then((request) => request(axios, basePath)); }, /** * returns list of meal types created by the requesting user ordered by the order field. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listMealTypes(options?: any): AxiosPromise> { - return localVarFp.listMealTypes(options).then((request) => request(axios, basePath)); + apiMealTypeList(options?: any): AxiosPromise> { + return localVarFp.apiMealTypeList(options).then((request) => request(axios, basePath)); }, /** - * + * returns list of meal types created by the requesting user ordered by the order field. + * @param {number} id A unique integer value identifying this meal type. + * @param {PatchedMealType} [patchedMealType] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listOpenDataCategorys(options?: any): AxiosPromise> { - return localVarFp.listOpenDataCategorys(options).then((request) => request(axios, basePath)); + apiMealTypePartialUpdate(id: number, patchedMealType?: PatchedMealType, options?: any): AxiosPromise { + return localVarFp.apiMealTypePartialUpdate(id, patchedMealType, options).then((request) => request(axios, basePath)); }, /** - * + * returns list of meal types created by the requesting user ordered by the order field. + * @param {number} id A unique integer value identifying this meal type. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listOpenDataConversions(options?: any): AxiosPromise> { - return localVarFp.listOpenDataConversions(options).then((request) => request(axios, basePath)); + apiMealTypeRetrieve(id: number, options?: any): AxiosPromise { + return localVarFp.apiMealTypeRetrieve(id, options).then((request) => request(axios, basePath)); }, /** - * + * returns list of meal types created by the requesting user ordered by the order field. + * @param {number} id A unique integer value identifying this meal type. + * @param {MealType} mealType * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listOpenDataFoods(options?: any): AxiosPromise> { - return localVarFp.listOpenDataFoods(options).then((request) => request(axios, basePath)); + apiMealTypeUpdate(id: number, mealType: MealType, options?: any): AxiosPromise { + return localVarFp.apiMealTypeUpdate(id, mealType, options).then((request) => request(axios, basePath)); }, /** - * + * + * @param {string} fromDate + * @param {string} toDate * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listOpenDataPropertys(options?: any): AxiosPromise> { - return localVarFp.listOpenDataPropertys(options).then((request) => request(axios, basePath)); + apiPlanIcalRetrieve(fromDate: string, toDate: string, options?: any): AxiosPromise { + return localVarFp.apiPlanIcalRetrieve(fromDate, toDate, options).then((request) => request(axios, basePath)); }, /** - * + * + * @param {RecipeBook} recipeBook * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listOpenDataStatisticsViewSets(options?: any): AxiosPromise> { - return localVarFp.listOpenDataStatisticsViewSets(options).then((request) => request(axios, basePath)); + apiRecipeBookCreate(recipeBook: RecipeBook, options?: any): AxiosPromise { + return localVarFp.apiRecipeBookCreate(recipeBook, options).then((request) => request(axios, basePath)); }, /** - * + * + * @param {number} id A unique integer value identifying this recipe book. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listOpenDataStores(options?: any): AxiosPromise> { - return localVarFp.listOpenDataStores(options).then((request) => request(axios, basePath)); + apiRecipeBookDestroy(id: number, options?: any): AxiosPromise { + return localVarFp.apiRecipeBookDestroy(id, options).then((request) => request(axios, basePath)); }, /** - * + * list: optional parameters - **recipe**: id of recipe - only return books for that recipe - **book**: id of book - only return recipes in that book + * @param {RecipeBookEntry} recipeBookEntry * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listOpenDataUnits(options?: any): AxiosPromise> { - return localVarFp.listOpenDataUnits(options).then((request) => request(axios, basePath)); + apiRecipeBookEntryCreate(recipeBookEntry: RecipeBookEntry, options?: any): AxiosPromise { + return localVarFp.apiRecipeBookEntryCreate(recipeBookEntry, options).then((request) => request(axios, basePath)); }, /** - * + * list: optional parameters - **recipe**: id of recipe - only return books for that recipe - **book**: id of book - only return recipes in that book + * @param {number} id A unique integer value identifying this recipe book entry. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listOpenDataVersions(options?: any): AxiosPromise> { - return localVarFp.listOpenDataVersions(options).then((request) => request(axios, basePath)); + apiRecipeBookEntryDestroy(id: number, options?: any): AxiosPromise { + return localVarFp.apiRecipeBookEntryDestroy(id, options).then((request) => request(axios, basePath)); }, /** - * + * list: 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} */ - listPropertyTypes(options?: any): AxiosPromise> { - return localVarFp.listPropertyTypes(options).then((request) => request(axios, basePath)); + apiRecipeBookEntryList(options?: any): AxiosPromise> { + return localVarFp.apiRecipeBookEntryList(options).then((request) => request(axios, basePath)); }, /** - * + * list: optional parameters - **recipe**: id of recipe - only return books for that recipe - **book**: id of book - only return recipes in that book + * @param {number} id A unique integer value identifying this recipe book entry. + * @param {PatchedRecipeBookEntry} [patchedRecipeBookEntry] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listPropertys(options?: any): AxiosPromise> { - return localVarFp.listPropertys(options).then((request) => request(axios, basePath)); + apiRecipeBookEntryPartialUpdate(id: number, patchedRecipeBookEntry?: PatchedRecipeBookEntry, options?: any): AxiosPromise { + return localVarFp.apiRecipeBookEntryPartialUpdate(id, patchedRecipeBookEntry, 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 + * list: optional parameters - **recipe**: id of recipe - only return books for that recipe - **book**: id of book - only return recipes in that book + * @param {number} id A unique integer value identifying this recipe book entry. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listRecipeBookEntrys(options?: any): AxiosPromise> { - return localVarFp.listRecipeBookEntrys(options).then((request) => request(axios, basePath)); + apiRecipeBookEntryRetrieve(id: number, options?: any): AxiosPromise { + return localVarFp.apiRecipeBookEntryRetrieve(id, options).then((request) => request(axios, basePath)); }, /** - * + * list: optional parameters - **recipe**: id of recipe - only return books for that recipe - **book**: id of book - only return recipes in that book + * @param {number} id A unique integer value identifying this recipe book entry. + * @param {RecipeBookEntry} recipeBookEntry * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listRecipeBooks(options?: any): AxiosPromise> { - return localVarFp.listRecipeBooks(options).then((request) => request(axios, basePath)); + apiRecipeBookEntryUpdate(id: number, recipeBookEntry: RecipeBookEntry, options?: any): AxiosPromise { + return localVarFp.apiRecipeBookEntryUpdate(id, recipeBookEntry, options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} [query] Query string matched (fuzzy) against recipe name. In the future also fulltext search. - * @param {number} [keywords] ID of keyword a recipe should have. For multiple repeat parameter. Equivalent to keywords_or - * @param {number} [keywordsOr] Keyword IDs, repeat for multiple. Return recipes with any of the keywords - * @param {number} [keywordsAnd] Keyword IDs, repeat for multiple. Return recipes with all of the keywords. - * @param {number} [keywordsOrNot] Keyword IDs, repeat for multiple. Exclude recipes with any of the keywords. - * @param {number} [keywordsAndNot] Keyword IDs, repeat for multiple. Exclude recipes with all of the keywords. - * @param {number} [foods] ID of food a recipe should have. For multiple repeat parameter. - * @param {number} [foodsOr] Food IDs, repeat for multiple. Return recipes with any of the foods - * @param {number} [foodsAnd] Food IDs, repeat for multiple. Return recipes with all of the foods. - * @param {number} [foodsOrNot] Food IDs, repeat for multiple. Exclude recipes with any of the foods. - * @param {number} [foodsAndNot] Food IDs, repeat for multiple. Exclude recipes with all of the foods. - * @param {number} [units] ID of unit a recipe should have. - * @param {number} [rating] Rating a recipe should have or greater. [0 - 5] Negative value filters rating less than. + * + * @param {string} [limit] limit number of entries to return + * @param {string} [query] lookup if query string is contained within the name, case insensitive + * @param {string} [random] randomly orders entries (only works together with limit) + * @param {string} [updatedAt] if model has an updated_at timestamp, filter only models updated at or after datetime + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiRecipeBookList(limit?: string, query?: string, random?: string, updatedAt?: string, options?: any): AxiosPromise> { + return localVarFp.apiRecipeBookList(limit, query, random, updatedAt, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {number} id A unique integer value identifying this recipe book. + * @param {PatchedRecipeBook} [patchedRecipeBook] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiRecipeBookPartialUpdate(id: number, patchedRecipeBook?: PatchedRecipeBook, options?: any): AxiosPromise { + return localVarFp.apiRecipeBookPartialUpdate(id, patchedRecipeBook, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {number} id A unique integer value identifying this recipe book. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiRecipeBookRetrieve(id: number, options?: any): AxiosPromise { + return localVarFp.apiRecipeBookRetrieve(id, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {number} id A unique integer value identifying this recipe book. + * @param {RecipeBook} recipeBook + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiRecipeBookUpdate(id: number, recipeBook: RecipeBook, options?: any): AxiosPromise { + return localVarFp.apiRecipeBookUpdate(id, recipeBook, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {Recipe} recipe + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiRecipeCreate(recipe: Recipe, options?: any): AxiosPromise { + return localVarFp.apiRecipeCreate(recipe, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {number} id A unique integer value identifying this recipe. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiRecipeDestroy(id: number, options?: any): AxiosPromise { + return localVarFp.apiRecipeDestroy(id, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiRecipeFlatList(options?: any): AxiosPromise> { + return localVarFp.apiRecipeFlatList(options).then((request) => request(axios, basePath)); + }, + /** + * function to retrieve a recipe from a given url or source string :param request: standard request with additional post parameters - url: url to use for importing recipe - data: if no url is given recipe is imported from provided source data - (optional) bookmarklet: id of bookmarklet import to use, overrides URL and data attributes :return: JsonResponse containing the parsed json and images + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiRecipeFromSourceCreate(options?: any): AxiosPromise { + return localVarFp.apiRecipeFromSourceCreate(options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {number} id A unique integer value identifying this recipe. + * @param {string} [image] + * @param {string} [imageUrl] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiRecipeImageUpdate(id: number, image?: string, imageUrl?: string, options?: any): AxiosPromise { + return localVarFp.apiRecipeImageUpdate(id, image, imageUrl, options).then((request) => request(axios, basePath)); + }, + /** + * * @param {string} [books] ID of book a recipe should be in. For multiple repeat parameter. - * @param {number} [booksOr] Book IDs, repeat for multiple. Return recipes with any of the books * @param {number} [booksAnd] Book IDs, repeat for multiple. Return recipes with all of the books. - * @param {number} [booksOrNot] Book IDs, repeat for multiple. Exclude recipes with any of the books. * @param {number} [booksAndNot] Book IDs, repeat for multiple. Exclude recipes with all of the books. - * @param {string} [internal] If only internal recipes should be returned. [true/<b>false</b>] - * @param {string} [random] Returns the results in randomized order. [true/<b>false</b>] - * @param {string} [_new] Returns new results first in search results. [true/<b>false</b>] - * @param {number} [timescooked] Filter recipes cooked X times or more. Negative values returns cooked less than X times + * @param {number} [booksOr] Book IDs, repeat for multiple. Return recipes with any of the books + * @param {number} [booksOrNot] Book IDs, repeat for multiple. Exclude recipes with any of the books. * @param {string} [cookedon] Filter recipes last cooked on or after YYYY-MM-DD. Prepending - filters on or before date. * @param {string} [createdon] Filter recipes created on or after YYYY-MM-DD. Prepending - filters on or before date. + * @param {number} [foods] ID of food a recipe should have. For multiple repeat parameter. + * @param {number} [foodsAnd] Food IDs, repeat for multiple. Return recipes with all of the foods. + * @param {number} [foodsAndNot] Food IDs, repeat for multiple. Exclude recipes with all of the foods. + * @param {number} [foodsOr] Food IDs, repeat for multiple. Return recipes with any of the foods + * @param {number} [foodsOrNot] Food IDs, repeat for multiple. Exclude recipes with any of the foods. + * @param {string} [internal] If only internal recipes should be returned. [true/<b>false</b>] + * @param {number} [keywords] ID of keyword a recipe should have. For multiple repeat parameter. Equivalent to keywords_or + * @param {number} [keywordsAnd] Keyword IDs, repeat for multiple. Return recipes with all of the keywords. + * @param {number} [keywordsAndNot] Keyword IDs, repeat for multiple. Exclude recipes with all of the keywords. + * @param {number} [keywordsOr] Keyword IDs, repeat for multiple. Return recipes with any of the keywords + * @param {number} [keywordsOrNot] Keyword IDs, repeat for multiple. Exclude recipes with any of the keywords. + * @param {string} [makenow] Filter recipes that can be made with OnHand food. [true/<b>false</b>] + * @param {string} [_new] Returns new results first in search results. [true/<b>false</b>] + * @param {number} [page] A page number within the paginated result set. + * @param {number} [pageSize] Number of results to return per page. + * @param {string} [query] Query string matched (fuzzy) against recipe name. In the future also fulltext search. + * @param {string} [random] Returns the results in randomized order. [true/<b>false</b>] + * @param {number} [rating] Rating a recipe should have or greater. [0 - 5] Negative value filters rating less than. + * @param {number} [timescooked] Filter recipes cooked X times or more. Negative values returns cooked less than X times + * @param {number} [units] ID of unit a recipe should have. * @param {string} [updatedon] Filter recipes updated on or after YYYY-MM-DD. Prepending - filters on or before date. * @param {string} [viewedon] Filter recipes lasts viewed on or after YYYY-MM-DD. Prepending - filters on or before date. - * @param {string} [makenow] Filter recipes that can be made with OnHand food. [true/<b>false</b>] - * @param {number} [page] A page number within the paginated result set. - * @param {number} [pageSize] Number of results to return per page. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listRecipes(query?: string, keywords?: number, keywordsOr?: number, keywordsAnd?: number, keywordsOrNot?: number, keywordsAndNot?: number, foods?: number, foodsOr?: number, foodsAnd?: number, foodsOrNot?: number, foodsAndNot?: number, units?: number, rating?: number, books?: string, booksOr?: number, booksAnd?: number, booksOrNot?: number, booksAndNot?: number, internal?: string, random?: string, _new?: string, timescooked?: number, cookedon?: string, createdon?: string, updatedon?: string, viewedon?: string, makenow?: string, page?: number, pageSize?: number, options?: any): AxiosPromise { - return localVarFp.listRecipes(query, keywords, keywordsOr, keywordsAnd, keywordsOrNot, keywordsAndNot, foods, foodsOr, foodsAnd, foodsOrNot, foodsAndNot, units, rating, books, booksOr, booksAnd, booksOrNot, booksAndNot, internal, random, _new, timescooked, cookedon, createdon, updatedon, viewedon, makenow, page, pageSize, options).then((request) => request(axios, basePath)); + apiRecipeList(books?: string, booksAnd?: number, booksAndNot?: number, booksOr?: number, booksOrNot?: number, cookedon?: string, createdon?: string, foods?: number, foodsAnd?: number, foodsAndNot?: number, foodsOr?: number, foodsOrNot?: number, internal?: string, keywords?: number, keywordsAnd?: number, keywordsAndNot?: number, keywordsOr?: number, keywordsOrNot?: number, makenow?: string, _new?: string, page?: number, pageSize?: number, query?: string, random?: string, rating?: number, timescooked?: number, units?: number, updatedon?: string, viewedon?: string, options?: any): AxiosPromise { + return localVarFp.apiRecipeList(books, booksAnd, booksAndNot, booksOr, booksOrNot, cookedon, createdon, foods, foodsAnd, foodsAndNot, foodsOr, foodsOrNot, internal, keywords, keywordsAnd, keywordsAndNot, keywordsOr, keywordsOrNot, makenow, _new, page, pageSize, query, random, rating, timescooked, units, updatedon, viewedon, options).then((request) => request(axios, basePath)); }, /** - * - * @param {number} [id] Returns the shopping list entry with a primary key of id. Multiple values allowed. - * @param {string} [checked] Filter shopping list entries on checked. [true, false, both, <b>recent</b>]<br> - recent includes unchecked items and recently completed items. - * @param {number} [supermarket] Returns the shopping list entries sorted by supermarket category order. + * + * @param {number} id A unique integer value identifying this recipe. + * @param {PatchedRecipe} [patchedRecipe] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listShoppingListEntrys(id?: number, checked?: string, supermarket?: number, options?: any): AxiosPromise> { - return localVarFp.listShoppingListEntrys(id, checked, supermarket, options).then((request) => request(axios, basePath)); + apiRecipePartialUpdate(id: number, patchedRecipe?: PatchedRecipe, options?: any): AxiosPromise { + return localVarFp.apiRecipePartialUpdate(id, patchedRecipe, options).then((request) => request(axios, basePath)); }, /** - * + * + * @param {number} id A unique integer value identifying this recipe. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listShoppingListRecipes(options?: any): AxiosPromise> { - return localVarFp.listShoppingListRecipes(options).then((request) => request(axios, basePath)); + apiRecipeRelatedRetrieve(id: number, options?: any): AxiosPromise { + return localVarFp.apiRecipeRelatedRetrieve(id, options).then((request) => request(axios, basePath)); }, /** - * + * + * @param {number} id A unique integer value identifying this recipe. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listShoppingLists(options?: any): AxiosPromise> { - return localVarFp.listShoppingLists(options).then((request) => request(axios, basePath)); + apiRecipeRetrieve(id: number, options?: any): AxiosPromise { + return localVarFp.apiRecipeRetrieve(id, options).then((request) => request(axios, basePath)); }, /** - * + * + * @param {number} id A unique integer value identifying this recipe. + * @param {RecipeShoppingUpdate} [recipeShoppingUpdate] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listSpaces(options?: any): AxiosPromise> { - return localVarFp.listSpaces(options).then((request) => request(axios, basePath)); + apiRecipeShoppingUpdate(id: number, recipeShoppingUpdate?: RecipeShoppingUpdate, options?: any): AxiosPromise { + return localVarFp.apiRecipeShoppingUpdate(id, recipeShoppingUpdate, options).then((request) => request(axios, basePath)); }, /** - * - * @param {number} [recipe] ID of recipe a step is part of. For multiple repeat parameter. - * @param {string} [query] Query string matched (fuzzy) against object name. - * @param {number} [page] A page number within the paginated result set. - * @param {number} [pageSize] Number of results to return per page. + * + * @param {number} id A unique integer value identifying this recipe. + * @param {Recipe} recipe * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listSteps(recipe?: number, query?: string, page?: number, pageSize?: number, options?: any): AxiosPromise { - return localVarFp.listSteps(recipe, query, page, pageSize, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listStorages(options?: any): AxiosPromise> { - return localVarFp.listStorages(options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {number} [page] A page number within the paginated result set. - * @param {number} [pageSize] Number of results to return per page. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listSupermarketCategoryRelations(page?: number, pageSize?: number, options?: any): AxiosPromise { - return localVarFp.listSupermarketCategoryRelations(page, pageSize, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} [query] Query string matched against supermarket-category name. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listSupermarketCategorys(query?: string, options?: any): AxiosPromise> { - return localVarFp.listSupermarketCategorys(query, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} [query] Query string matched against supermarket name. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listSupermarkets(query?: string, options?: any): AxiosPromise> { - return localVarFp.listSupermarkets(query, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {number} [page] A page number within the paginated result set. - * @param {number} [pageSize] Number of results to return per page. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listSyncLogs(page?: number, pageSize?: number, options?: any): AxiosPromise { - return localVarFp.listSyncLogs(page, pageSize, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listSyncs(options?: any): AxiosPromise> { - return localVarFp.listSyncs(options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {number} [foodId] ID of food to filter for - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listUnitConversions(foodId?: number, options?: any): AxiosPromise> { - return localVarFp.listUnitConversions(foodId, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} [query] Query string matched against unit name. - * @param {number} [page] A page number within the paginated result set. - * @param {number} [pageSize] Number of results to return per page. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listUnits(query?: string, page?: number, pageSize?: number, options?: any): AxiosPromise { - return localVarFp.listUnits(query, page, pageSize, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} [query] Query string matched against user-file name. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listUserFiles(query?: string, options?: any): AxiosPromise> { - return localVarFp.listUserFiles(query, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listUserPreferences(options?: any): AxiosPromise> { - return localVarFp.listUserPreferences(options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {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} - */ - listUserSpaces(page?: number, pageSize?: number, options?: any): AxiosPromise { - return localVarFp.listUserSpaces(page, pageSize, options).then((request) => request(axios, basePath)); - }, - /** - * optional parameters - **filter_list**: array of user id\'s to get names for - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listUsers(options?: any): AxiosPromise> { - return localVarFp.listUsers(options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {number} [page] A page number within the paginated result set. - * @param {number} [pageSize] Number of results to return per page. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listViewLogs(page?: number, pageSize?: number, options?: any): AxiosPromise { - return localVarFp.listViewLogs(page, pageSize, options).then((request) => request(axios, basePath)); + apiRecipeUpdate(id: number, recipe: Recipe, options?: any): AxiosPromise { + return localVarFp.apiRecipeUpdate(id, recipe, options).then((request) => request(axios, basePath)); }, /** * function to reset inheritance from api, see food method for docs * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listresetFoodInheritances(options?: any): AxiosPromise> { - return localVarFp.listresetFoodInheritances(options).then((request) => request(axios, basePath)); + apiResetFoodInheritanceRetrieve(options?: any): AxiosPromise { + return localVarFp.apiResetFoodInheritanceRetrieve(options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this food. - * @param {string} target - * @param {Food} [food] + * + * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ - mergeFood(id: string, target: string, food?: Food, options?: any): AxiosPromise { - return localVarFp.mergeFood(id, target, food, options).then((request) => request(axios, basePath)); + apiShareLinkRetrieve(id: number, options?: any): AxiosPromise { + return localVarFp.apiShareLinkRetrieve(id, options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this keyword. - * @param {string} target - * @param {Keyword} [keyword] + * + * @param {ShoppingListEntryBulk} shoppingListEntryBulk * @param {*} [options] Override http request option. * @throws {RequiredError} */ - mergeKeyword(id: string, target: string, keyword?: Keyword, options?: any): AxiosPromise { - return localVarFp.mergeKeyword(id, target, keyword, options).then((request) => request(axios, basePath)); + apiShoppingListEntryBulkCreate(shoppingListEntryBulk: ShoppingListEntryBulk, options?: any): AxiosPromise { + return localVarFp.apiShoppingListEntryBulkCreate(shoppingListEntryBulk, options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this supermarket category. - * @param {string} target - * @param {SupermarketCategory} [supermarketCategory] + * + * @param {ShoppingListEntry} shoppingListEntry * @param {*} [options] Override http request option. * @throws {RequiredError} */ - mergeSupermarketCategory(id: string, target: string, supermarketCategory?: SupermarketCategory, options?: any): AxiosPromise { - return localVarFp.mergeSupermarketCategory(id, target, supermarketCategory, options).then((request) => request(axios, basePath)); + apiShoppingListEntryCreate(shoppingListEntry: ShoppingListEntry, options?: any): AxiosPromise { + return localVarFp.apiShoppingListEntryCreate(shoppingListEntry, options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this unit. - * @param {string} target - * @param {Unit} [unit] + * + * @param {number} id A unique integer value identifying this shopping list entry. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - mergeUnit(id: string, target: string, unit?: Unit, options?: any): AxiosPromise { - return localVarFp.mergeUnit(id, target, unit, options).then((request) => request(axios, basePath)); + apiShoppingListEntryDestroy(id: number, options?: any): AxiosPromise { + return localVarFp.apiShoppingListEntryDestroy(id, options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this food. - * @param {string} parent - * @param {Food} [food] + * + * @param {string} [checked] Filter shopping list entries on checked. [true, false, both, <b>recent</b>]<br> - recent includes unchecked items and recently completed items. + * @param {number} [id] Returns the shopping list entry with a primary key of id. Multiple values allowed. + * @param {number} [supermarket] Returns the shopping list entries sorted by supermarket category order. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - moveFood(id: string, parent: string, food?: Food, options?: any): AxiosPromise { - return localVarFp.moveFood(id, parent, food, options).then((request) => request(axios, basePath)); + apiShoppingListEntryList(checked?: string, id?: number, supermarket?: number, options?: any): AxiosPromise> { + return localVarFp.apiShoppingListEntryList(checked, id, supermarket, options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this keyword. - * @param {string} parent - * @param {Keyword} [keyword] + * + * @param {number} id A unique integer value identifying this shopping list entry. + * @param {PatchedShoppingListEntry} [patchedShoppingListEntry] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - moveKeyword(id: string, parent: string, keyword?: Keyword, options?: any): AxiosPromise { - return localVarFp.moveKeyword(id, parent, keyword, options).then((request) => request(axios, basePath)); + apiShoppingListEntryPartialUpdate(id: number, patchedShoppingListEntry?: PatchedShoppingListEntry, options?: any): AxiosPromise { + return localVarFp.apiShoppingListEntryPartialUpdate(id, patchedShoppingListEntry, options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this access token. - * @param {AccessToken} [accessToken] + * + * @param {number} id A unique integer value identifying this shopping list entry. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - partialUpdateAccessToken(id: string, accessToken?: AccessToken, options?: any): AxiosPromise { - return localVarFp.partialUpdateAccessToken(id, accessToken, options).then((request) => request(axios, basePath)); + apiShoppingListEntryRetrieve(id: number, options?: any): AxiosPromise { + return localVarFp.apiShoppingListEntryRetrieve(id, options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this automation. - * @param {Automation} [automation] + * + * @param {number} id A unique integer value identifying this shopping list entry. + * @param {ShoppingListEntry} shoppingListEntry * @param {*} [options] Override http request option. * @throws {RequiredError} */ - partialUpdateAutomation(id: string, automation?: Automation, options?: any): AxiosPromise { - return localVarFp.partialUpdateAutomation(id, automation, options).then((request) => request(axios, basePath)); + apiShoppingListEntryUpdate(id: number, shoppingListEntry: ShoppingListEntry, options?: any): AxiosPromise { + return localVarFp.apiShoppingListEntryUpdate(id, shoppingListEntry, options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this bookmarklet import. - * @param {BookmarkletImport} [bookmarkletImport] + * + * @param {ShoppingListRecipe} shoppingListRecipe * @param {*} [options] Override http request option. * @throws {RequiredError} */ - partialUpdateBookmarkletImport(id: string, bookmarkletImport?: BookmarkletImport, options?: any): AxiosPromise { - return localVarFp.partialUpdateBookmarkletImport(id, bookmarkletImport, options).then((request) => request(axios, basePath)); + apiShoppingListRecipeCreate(shoppingListRecipe: ShoppingListRecipe, options?: any): AxiosPromise { + return localVarFp.apiShoppingListRecipeCreate(shoppingListRecipe, options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this connector config. - * @param {ConnectorConfigConfig} [connectorConfigConfig] + * + * @param {number} id A unique integer value identifying this shopping list recipe. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - partialUpdateConnectorConfig(id: string, connectorConfigConfig?: ConnectorConfigConfig, options?: any): AxiosPromise { - return localVarFp.partialUpdateConnectorConfig(id, connectorConfigConfig, options).then((request) => request(axios, basePath)); + apiShoppingListRecipeDestroy(id: number, options?: any): AxiosPromise { + return localVarFp.apiShoppingListRecipeDestroy(id, options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this cook log. - * @param {CookLog} [cookLog] + * * @param {*} [options] Override http request option. * @throws {RequiredError} */ - partialUpdateCookLog(id: string, cookLog?: CookLog, options?: any): AxiosPromise { - return localVarFp.partialUpdateCookLog(id, cookLog, options).then((request) => request(axios, basePath)); + apiShoppingListRecipeList(options?: any): AxiosPromise> { + return localVarFp.apiShoppingListRecipeList(options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this custom filter. - * @param {CustomFilter} [customFilter] + * + * @param {number} id A unique integer value identifying this shopping list recipe. + * @param {PatchedShoppingListRecipe} [patchedShoppingListRecipe] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - partialUpdateCustomFilter(id: string, customFilter?: CustomFilter, options?: any): AxiosPromise { - return localVarFp.partialUpdateCustomFilter(id, customFilter, options).then((request) => request(axios, basePath)); + apiShoppingListRecipePartialUpdate(id: number, patchedShoppingListRecipe?: PatchedShoppingListRecipe, options?: any): AxiosPromise { + return localVarFp.apiShoppingListRecipePartialUpdate(id, patchedShoppingListRecipe, options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this export log. - * @param {ExportLog} [exportLog] + * + * @param {number} id A unique integer value identifying this shopping list recipe. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - partialUpdateExportLog(id: string, exportLog?: ExportLog, options?: any): AxiosPromise { - return localVarFp.partialUpdateExportLog(id, exportLog, options).then((request) => request(axios, basePath)); + apiShoppingListRecipeRetrieve(id: number, options?: any): AxiosPromise { + return localVarFp.apiShoppingListRecipeRetrieve(id, options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this food. - * @param {Food} [food] + * + * @param {number} id A unique integer value identifying this shopping list recipe. + * @param {ShoppingListRecipe} shoppingListRecipe * @param {*} [options] Override http request option. * @throws {RequiredError} */ - partialUpdateFood(id: string, food?: Food, options?: any): AxiosPromise { - return localVarFp.partialUpdateFood(id, food, options).then((request) => request(axios, basePath)); + apiShoppingListRecipeUpdate(id: number, shoppingListRecipe: ShoppingListRecipe, options?: any): AxiosPromise { + return localVarFp.apiShoppingListRecipeUpdate(id, shoppingListRecipe, options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this import log. - * @param {ImportLog} [importLog] + * * @param {*} [options] Override http request option. * @throws {RequiredError} */ - partialUpdateImportLog(id: string, importLog?: ImportLog, options?: any): AxiosPromise { - return localVarFp.partialUpdateImportLog(id, importLog, options).then((request) => request(axios, basePath)); + apiSpaceList(options?: any): AxiosPromise> { + return localVarFp.apiSpaceList(options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this ingredient. - * @param {Ingredient} [ingredient] + * + * @param {number} id A unique integer value identifying this space. + * @param {PatchedSpace} [patchedSpace] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - partialUpdateIngredient(id: string, ingredient?: Ingredient, options?: any): AxiosPromise { - return localVarFp.partialUpdateIngredient(id, ingredient, options).then((request) => request(axios, basePath)); + apiSpacePartialUpdate(id: number, patchedSpace?: PatchedSpace, options?: any): AxiosPromise { + return localVarFp.apiSpacePartialUpdate(id, patchedSpace, options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this invite link. - * @param {InviteLink} [inviteLink] + * + * @param {number} id A unique integer value identifying this space. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - partialUpdateInviteLink(id: string, inviteLink?: InviteLink, options?: any): AxiosPromise { - return localVarFp.partialUpdateInviteLink(id, inviteLink, options).then((request) => request(axios, basePath)); + apiSpaceRetrieve(id: number, options?: any): AxiosPromise { + return localVarFp.apiSpaceRetrieve(id, options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this keyword. - * @param {Keyword} [keyword] + * + * @param {Step} step * @param {*} [options] Override http request option. * @throws {RequiredError} */ - partialUpdateKeyword(id: string, keyword?: Keyword, options?: any): AxiosPromise { - return localVarFp.partialUpdateKeyword(id, keyword, options).then((request) => request(axios, basePath)); + apiStepCreate(step: Step, options?: any): AxiosPromise { + return localVarFp.apiStepCreate(step, options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this meal plan. - * @param {MealPlan} [mealPlan] + * + * @param {number} id A unique integer value identifying this step. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - partialUpdateMealPlan(id: string, mealPlan?: MealPlan, options?: any): AxiosPromise { - return localVarFp.partialUpdateMealPlan(id, mealPlan, options).then((request) => request(axios, basePath)); + apiStepDestroy(id: number, options?: any): AxiosPromise { + return localVarFp.apiStepDestroy(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 {MealType} [mealType] + * + * @param {number} [page] A page number within the paginated result set. + * @param {number} [pageSize] Number of results to return per page. + * @param {string} [query] Query string matched (fuzzy) against object name. + * @param {number} [recipe] ID of recipe a step is part of. For multiple repeat parameter. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - partialUpdateMealType(id: string, mealType?: MealType, options?: any): AxiosPromise { - return localVarFp.partialUpdateMealType(id, mealType, options).then((request) => request(axios, basePath)); + apiStepList(page?: number, pageSize?: number, query?: string, recipe?: number, options?: any): AxiosPromise { + return localVarFp.apiStepList(page, pageSize, query, recipe, options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this open data category. - * @param {OpenDataCategory} [openDataCategory] + * + * @param {number} id A unique integer value identifying this step. + * @param {PatchedStep} [patchedStep] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - partialUpdateOpenDataCategory(id: string, openDataCategory?: OpenDataCategory, options?: any): AxiosPromise { - return localVarFp.partialUpdateOpenDataCategory(id, openDataCategory, options).then((request) => request(axios, basePath)); + apiStepPartialUpdate(id: number, patchedStep?: PatchedStep, options?: any): AxiosPromise { + return localVarFp.apiStepPartialUpdate(id, patchedStep, options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this open data conversion. - * @param {OpenDataConversion} [openDataConversion] + * + * @param {number} id A unique integer value identifying this step. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - partialUpdateOpenDataConversion(id: string, openDataConversion?: OpenDataConversion, options?: any): AxiosPromise { - return localVarFp.partialUpdateOpenDataConversion(id, openDataConversion, options).then((request) => request(axios, basePath)); + apiStepRetrieve(id: number, options?: any): AxiosPromise { + return localVarFp.apiStepRetrieve(id, options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this open data food. - * @param {OpenDataFood} [openDataFood] + * + * @param {number} id A unique integer value identifying this step. + * @param {Step} step * @param {*} [options] Override http request option. * @throws {RequiredError} */ - partialUpdateOpenDataFood(id: string, openDataFood?: OpenDataFood, options?: any): AxiosPromise { - return localVarFp.partialUpdateOpenDataFood(id, openDataFood, options).then((request) => request(axios, basePath)); + apiStepUpdate(id: number, step: Step, options?: any): AxiosPromise { + return localVarFp.apiStepUpdate(id, step, options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this open data property. - * @param {OpenDataProperty} [openDataProperty] + * + * @param {Storage} storage * @param {*} [options] Override http request option. * @throws {RequiredError} */ - partialUpdateOpenDataProperty(id: string, openDataProperty?: OpenDataProperty, options?: any): AxiosPromise { - return localVarFp.partialUpdateOpenDataProperty(id, openDataProperty, options).then((request) => request(axios, basePath)); + apiStorageCreate(storage: Storage, options?: any): AxiosPromise { + return localVarFp.apiStorageCreate(storage, options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this open data store. - * @param {OpenDataStore} [openDataStore] + * + * @param {number} id A unique integer value identifying this storage. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - partialUpdateOpenDataStore(id: string, openDataStore?: OpenDataStore, options?: any): AxiosPromise { - return localVarFp.partialUpdateOpenDataStore(id, openDataStore, options).then((request) => request(axios, basePath)); + apiStorageDestroy(id: number, options?: any): AxiosPromise { + return localVarFp.apiStorageDestroy(id, options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this open data unit. - * @param {OpenDataUnit} [openDataUnit] + * * @param {*} [options] Override http request option. * @throws {RequiredError} */ - partialUpdateOpenDataUnit(id: string, openDataUnit?: OpenDataUnit, options?: any): AxiosPromise { - return localVarFp.partialUpdateOpenDataUnit(id, openDataUnit, options).then((request) => request(axios, basePath)); + apiStorageList(options?: any): AxiosPromise> { + return localVarFp.apiStorageList(options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this open data version. - * @param {OpenDataVersion} [openDataVersion] + * + * @param {number} id A unique integer value identifying this storage. + * @param {PatchedStorage} [patchedStorage] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - partialUpdateOpenDataVersion(id: string, openDataVersion?: OpenDataVersion, options?: any): AxiosPromise { - return localVarFp.partialUpdateOpenDataVersion(id, openDataVersion, options).then((request) => request(axios, basePath)); + apiStoragePartialUpdate(id: number, patchedStorage?: PatchedStorage, options?: any): AxiosPromise { + return localVarFp.apiStoragePartialUpdate(id, patchedStorage, options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this property. - * @param {Property} [property] + * + * @param {number} id A unique integer value identifying this storage. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - partialUpdateProperty(id: string, property?: Property, options?: any): AxiosPromise { - return localVarFp.partialUpdateProperty(id, property, options).then((request) => request(axios, basePath)); + apiStorageRetrieve(id: number, options?: any): AxiosPromise { + return localVarFp.apiStorageRetrieve(id, options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this property type. - * @param {PropertyType} [propertyType] + * + * @param {number} id A unique integer value identifying this storage. + * @param {Storage} storage * @param {*} [options] Override http request option. * @throws {RequiredError} */ - partialUpdatePropertyType(id: string, propertyType?: PropertyType, options?: any): AxiosPromise { - return localVarFp.partialUpdatePropertyType(id, propertyType, options).then((request) => request(axios, basePath)); + apiStorageUpdate(id: number, storage: Storage, options?: any): AxiosPromise { + return localVarFp.apiStorageUpdate(id, storage, options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this recipe. - * @param {Recipe} [recipe] + * + * @param {SupermarketCategory} supermarketCategory * @param {*} [options] Override http request option. * @throws {RequiredError} */ - partialUpdateRecipe(id: string, recipe?: Recipe, options?: any): AxiosPromise { - return localVarFp.partialUpdateRecipe(id, recipe, options).then((request) => request(axios, basePath)); + apiSupermarketCategoryCreate(supermarketCategory: SupermarketCategory, options?: any): AxiosPromise { + return localVarFp.apiSupermarketCategoryCreate(supermarketCategory, options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this recipe book. - * @param {RecipeBook} [recipeBook] + * + * @param {number} id A unique integer value identifying this supermarket category. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - partialUpdateRecipeBook(id: string, recipeBook?: RecipeBook, options?: any): AxiosPromise { - return localVarFp.partialUpdateRecipeBook(id, recipeBook, options).then((request) => request(axios, basePath)); + apiSupermarketCategoryDestroy(id: number, options?: any): AxiosPromise { + return localVarFp.apiSupermarketCategoryDestroy(id, options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this recipe book entry. - * @param {RecipeBookEntry} [recipeBookEntry] + * + * @param {string} [limit] limit number of entries to return + * @param {string} [query] lookup if query string is contained within the name, case insensitive + * @param {string} [random] randomly orders entries (only works together with limit) + * @param {string} [updatedAt] if model has an updated_at timestamp, filter only models updated at or after datetime * @param {*} [options] Override http request option. * @throws {RequiredError} */ - partialUpdateRecipeBookEntry(id: string, recipeBookEntry?: RecipeBookEntry, options?: any): AxiosPromise { - return localVarFp.partialUpdateRecipeBookEntry(id, recipeBookEntry, options).then((request) => request(axios, basePath)); + apiSupermarketCategoryList(limit?: string, query?: string, random?: string, updatedAt?: string, options?: any): AxiosPromise> { + return localVarFp.apiSupermarketCategoryList(limit, query, random, updatedAt, options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this shopping list. - * @param {ShoppingList} [shoppingList] + * + * @param {number} id A unique integer value identifying this supermarket category. + * @param {string} target + * @param {SupermarketCategory} supermarketCategory * @param {*} [options] Override http request option. * @throws {RequiredError} */ - partialUpdateShoppingList(id: string, shoppingList?: ShoppingList, options?: any): AxiosPromise { - return localVarFp.partialUpdateShoppingList(id, shoppingList, options).then((request) => request(axios, basePath)); + apiSupermarketCategoryMergeUpdate(id: number, target: string, supermarketCategory: SupermarketCategory, options?: any): AxiosPromise { + return localVarFp.apiSupermarketCategoryMergeUpdate(id, target, supermarketCategory, options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this shopping list entry. - * @param {ShoppingListEntry} [shoppingListEntry] + * + * @param {number} id A unique integer value identifying this supermarket category. + * @param {PatchedSupermarketCategory} [patchedSupermarketCategory] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - partialUpdateShoppingListEntry(id: string, shoppingListEntry?: ShoppingListEntry, options?: any): AxiosPromise { - return localVarFp.partialUpdateShoppingListEntry(id, shoppingListEntry, options).then((request) => request(axios, basePath)); + apiSupermarketCategoryPartialUpdate(id: number, patchedSupermarketCategory?: PatchedSupermarketCategory, options?: any): AxiosPromise { + return localVarFp.apiSupermarketCategoryPartialUpdate(id, patchedSupermarketCategory, options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this shopping list recipe. - * @param {ShoppingListRecipe} [shoppingListRecipe] + * + * @param {SupermarketCategoryRelation} supermarketCategoryRelation * @param {*} [options] Override http request option. * @throws {RequiredError} */ - partialUpdateShoppingListRecipe(id: string, shoppingListRecipe?: ShoppingListRecipe, options?: any): AxiosPromise { - return localVarFp.partialUpdateShoppingListRecipe(id, shoppingListRecipe, options).then((request) => request(axios, basePath)); + apiSupermarketCategoryRelationCreate(supermarketCategoryRelation: SupermarketCategoryRelation, options?: any): AxiosPromise { + return localVarFp.apiSupermarketCategoryRelationCreate(supermarketCategoryRelation, options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this space. - * @param {Space} [space] + * + * @param {number} id A unique integer value identifying this supermarket category relation. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - partialUpdateSpace(id: string, space?: Space, options?: any): AxiosPromise { - return localVarFp.partialUpdateSpace(id, space, options).then((request) => request(axios, basePath)); + apiSupermarketCategoryRelationDestroy(id: number, options?: any): AxiosPromise { + return localVarFp.apiSupermarketCategoryRelationDestroy(id, options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this step. - * @param {Step} [step] + * + * @param {string} [limit] limit number of entries to return + * @param {number} [page] A page number within the paginated result set. + * @param {number} [pageSize] Number of results to return per page. + * @param {string} [query] lookup if query string is contained within the name, case insensitive + * @param {string} [random] randomly orders entries (only works together with limit) + * @param {string} [updatedAt] if model has an updated_at timestamp, filter only models updated at or after datetime * @param {*} [options] Override http request option. * @throws {RequiredError} */ - partialUpdateStep(id: string, step?: Step, options?: any): AxiosPromise { - return localVarFp.partialUpdateStep(id, step, options).then((request) => request(axios, basePath)); + apiSupermarketCategoryRelationList(limit?: string, page?: number, pageSize?: number, query?: string, random?: string, updatedAt?: string, options?: any): AxiosPromise { + return localVarFp.apiSupermarketCategoryRelationList(limit, page, pageSize, query, random, updatedAt, options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this storage. - * @param {Storage} [storage] + * + * @param {number} id A unique integer value identifying this supermarket category relation. + * @param {PatchedSupermarketCategoryRelation} [patchedSupermarketCategoryRelation] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - partialUpdateStorage(id: string, storage?: Storage, options?: any): AxiosPromise { - return localVarFp.partialUpdateStorage(id, storage, options).then((request) => request(axios, basePath)); + apiSupermarketCategoryRelationPartialUpdate(id: number, patchedSupermarketCategoryRelation?: PatchedSupermarketCategoryRelation, options?: any): AxiosPromise { + return localVarFp.apiSupermarketCategoryRelationPartialUpdate(id, patchedSupermarketCategoryRelation, options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this supermarket. - * @param {Supermarket} [supermarket] + * + * @param {number} id A unique integer value identifying this supermarket category relation. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - partialUpdateSupermarket(id: string, supermarket?: Supermarket, options?: any): AxiosPromise { - return localVarFp.partialUpdateSupermarket(id, supermarket, options).then((request) => request(axios, basePath)); + apiSupermarketCategoryRelationRetrieve(id: number, options?: any): AxiosPromise { + return localVarFp.apiSupermarketCategoryRelationRetrieve(id, options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this supermarket category. - * @param {SupermarketCategory} [supermarketCategory] + * + * @param {number} id A unique integer value identifying this supermarket category relation. + * @param {SupermarketCategoryRelation} supermarketCategoryRelation * @param {*} [options] Override http request option. * @throws {RequiredError} */ - partialUpdateSupermarketCategory(id: string, supermarketCategory?: SupermarketCategory, options?: any): AxiosPromise { - return localVarFp.partialUpdateSupermarketCategory(id, supermarketCategory, options).then((request) => request(axios, basePath)); + apiSupermarketCategoryRelationUpdate(id: number, supermarketCategoryRelation: SupermarketCategoryRelation, options?: any): AxiosPromise { + return localVarFp.apiSupermarketCategoryRelationUpdate(id, supermarketCategoryRelation, options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this supermarket category relation. - * @param {SupermarketCategoryRelation} [supermarketCategoryRelation] + * + * @param {number} id A unique integer value identifying this supermarket category. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - partialUpdateSupermarketCategoryRelation(id: string, supermarketCategoryRelation?: SupermarketCategoryRelation, options?: any): AxiosPromise { - return localVarFp.partialUpdateSupermarketCategoryRelation(id, supermarketCategoryRelation, options).then((request) => request(axios, basePath)); + apiSupermarketCategoryRetrieve(id: number, options?: any): AxiosPromise { + return localVarFp.apiSupermarketCategoryRetrieve(id, options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this sync. - * @param {Sync} [sync] + * + * @param {number} id A unique integer value identifying this supermarket category. + * @param {SupermarketCategory} supermarketCategory * @param {*} [options] Override http request option. * @throws {RequiredError} */ - partialUpdateSync(id: string, sync?: Sync, options?: any): AxiosPromise { - return localVarFp.partialUpdateSync(id, sync, options).then((request) => request(axios, basePath)); + apiSupermarketCategoryUpdate(id: number, supermarketCategory: SupermarketCategory, options?: any): AxiosPromise { + return localVarFp.apiSupermarketCategoryUpdate(id, supermarketCategory, options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this unit. - * @param {Unit} [unit] + * + * @param {Supermarket} supermarket * @param {*} [options] Override http request option. * @throws {RequiredError} */ - partialUpdateUnit(id: string, unit?: Unit, options?: any): AxiosPromise { - return localVarFp.partialUpdateUnit(id, unit, options).then((request) => request(axios, basePath)); + apiSupermarketCreate(supermarket: Supermarket, options?: any): AxiosPromise { + return localVarFp.apiSupermarketCreate(supermarket, options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this unit conversion. - * @param {UnitConversion} [unitConversion] + * + * @param {number} id A unique integer value identifying this supermarket. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - partialUpdateUnitConversion(id: string, unitConversion?: UnitConversion, options?: any): AxiosPromise { - return localVarFp.partialUpdateUnitConversion(id, unitConversion, options).then((request) => request(axios, basePath)); + apiSupermarketDestroy(id: number, options?: any): AxiosPromise { + return localVarFp.apiSupermarketDestroy(id, options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this user. - * @param {User} [user] + * + * @param {string} [limit] limit number of entries to return + * @param {string} [query] lookup if query string is contained within the name, case insensitive + * @param {string} [random] randomly orders entries (only works together with limit) + * @param {string} [updatedAt] if model has an updated_at timestamp, filter only models updated at or after datetime * @param {*} [options] Override http request option. * @throws {RequiredError} */ - partialUpdateUser(id: string, user?: User, options?: any): AxiosPromise { - return localVarFp.partialUpdateUser(id, user, options).then((request) => request(axios, basePath)); + apiSupermarketList(limit?: string, query?: string, random?: string, updatedAt?: string, options?: any): AxiosPromise> { + return localVarFp.apiSupermarketList(limit, query, random, updatedAt, options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this user file. - * @param {string} name - * @param {any} file - * @param {number} [id2] - * @param {string} [fileDownload] - * @param {string} [preview] - * @param {number} [fileSizeKb] + * + * @param {number} id A unique integer value identifying this supermarket. + * @param {PatchedSupermarket} [patchedSupermarket] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - partialUpdateUserFile(id: string, name: string, file: any, id2?: number, fileDownload?: string, preview?: string, fileSizeKb?: number, options?: any): AxiosPromise { - return localVarFp.partialUpdateUserFile(id, name, file, id2, fileDownload, preview, fileSizeKb, options).then((request) => request(axios, basePath)); + apiSupermarketPartialUpdate(id: number, patchedSupermarket?: PatchedSupermarket, options?: any): AxiosPromise { + return localVarFp.apiSupermarketPartialUpdate(id, patchedSupermarket, options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} user A unique value identifying this user preference. - * @param {UserPreference} [userPreference] + * + * @param {number} id A unique integer value identifying this supermarket. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - partialUpdateUserPreference(user: string, userPreference?: UserPreference, options?: any): AxiosPromise { - return localVarFp.partialUpdateUserPreference(user, userPreference, options).then((request) => request(axios, basePath)); + apiSupermarketRetrieve(id: number, options?: any): AxiosPromise { + return localVarFp.apiSupermarketRetrieve(id, options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this user space. - * @param {UserSpace} [userSpace] + * + * @param {number} id A unique integer value identifying this supermarket. + * @param {Supermarket} supermarket * @param {*} [options] Override http request option. * @throws {RequiredError} */ - partialUpdateUserSpace(id: string, userSpace?: UserSpace, options?: any): AxiosPromise { - return localVarFp.partialUpdateUserSpace(id, userSpace, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this view log. - * @param {ViewLog} [viewLog] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - partialUpdateViewLog(id: string, viewLog?: ViewLog, options?: any): AxiosPromise { - return localVarFp.partialUpdateViewLog(id, viewLog, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this recipe. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - relatedRecipe(id: string, options?: any): AxiosPromise { - return localVarFp.relatedRecipe(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this access token. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveAccessToken(id: string, options?: any): AxiosPromise { - return localVarFp.retrieveAccessToken(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this automation. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveAutomation(id: string, options?: any): AxiosPromise { - return localVarFp.retrieveAutomation(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this bookmarklet import. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveBookmarkletImport(id: string, options?: any): AxiosPromise { - return localVarFp.retrieveBookmarkletImport(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this connector config. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveConnectorConfig(id: string, options?: any): AxiosPromise { - return localVarFp.retrieveConnectorConfig(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this cook log. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveCookLog(id: string, options?: any): AxiosPromise { - return localVarFp.retrieveCookLog(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this custom filter. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveCustomFilter(id: string, options?: any): AxiosPromise { - return localVarFp.retrieveCustomFilter(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this export log. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveExportLog(id: string, options?: any): AxiosPromise { - return localVarFp.retrieveExportLog(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveFDCViewSet(id: string, options?: any): AxiosPromise { - return localVarFp.retrieveFDCViewSet(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this food. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveFood(id: string, options?: any): AxiosPromise { - return localVarFp.retrieveFood(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this food inherit field. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveFoodInheritField(id: string, options?: any): AxiosPromise { - return localVarFp.retrieveFoodInheritField(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this group. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveGroup(id: string, options?: any): AxiosPromise { - return localVarFp.retrieveGroup(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this import log. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveImportLog(id: string, options?: any): AxiosPromise { - return localVarFp.retrieveImportLog(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this ingredient. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveIngredient(id: string, options?: any): AxiosPromise { - return localVarFp.retrieveIngredient(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this invite link. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveInviteLink(id: string, options?: any): AxiosPromise { - return localVarFp.retrieveInviteLink(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this keyword. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveKeyword(id: string, options?: any): AxiosPromise { - return localVarFp.retrieveKeyword(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this meal plan. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveMealPlan(id: string, options?: any): AxiosPromise { - return localVarFp.retrieveMealPlan(id, options).then((request) => request(axios, basePath)); - }, - /** - * returns list of meal types created by the requesting user ordered by the order field. - * @param {string} id A unique integer value identifying this meal type. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveMealType(id: string, options?: any): AxiosPromise { - return localVarFp.retrieveMealType(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this open data category. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveOpenDataCategory(id: string, options?: any): AxiosPromise { - return localVarFp.retrieveOpenDataCategory(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this open data conversion. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveOpenDataConversion(id: string, options?: any): AxiosPromise { - return localVarFp.retrieveOpenDataConversion(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this open data food. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveOpenDataFood(id: string, options?: any): AxiosPromise { - return localVarFp.retrieveOpenDataFood(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this open data property. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveOpenDataProperty(id: string, options?: any): AxiosPromise { - return localVarFp.retrieveOpenDataProperty(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this open data store. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveOpenDataStore(id: string, options?: any): AxiosPromise { - return localVarFp.retrieveOpenDataStore(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this open data unit. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveOpenDataUnit(id: string, options?: any): AxiosPromise { - return localVarFp.retrieveOpenDataUnit(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this open data version. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveOpenDataVersion(id: string, options?: any): AxiosPromise { - return localVarFp.retrieveOpenDataVersion(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this property. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveProperty(id: string, options?: any): AxiosPromise { - return localVarFp.retrieveProperty(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this property type. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrievePropertyType(id: string, options?: any): AxiosPromise { - return localVarFp.retrievePropertyType(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this recipe. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveRecipe(id: string, options?: any): AxiosPromise { - return localVarFp.retrieveRecipe(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this recipe book. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveRecipeBook(id: string, options?: any): AxiosPromise { - return localVarFp.retrieveRecipeBook(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this recipe book entry. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveRecipeBookEntry(id: string, options?: any): AxiosPromise { - return localVarFp.retrieveRecipeBookEntry(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this shopping list. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveShoppingList(id: string, options?: any): AxiosPromise { - return localVarFp.retrieveShoppingList(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this shopping list entry. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveShoppingListEntry(id: string, options?: any): AxiosPromise { - return localVarFp.retrieveShoppingListEntry(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this shopping list recipe. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveShoppingListRecipe(id: string, options?: any): AxiosPromise { - return localVarFp.retrieveShoppingListRecipe(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this space. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveSpace(id: string, options?: any): AxiosPromise { - return localVarFp.retrieveSpace(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this step. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveStep(id: string, options?: any): AxiosPromise { - return localVarFp.retrieveStep(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this storage. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveStorage(id: string, options?: any): AxiosPromise { - return localVarFp.retrieveStorage(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this supermarket. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveSupermarket(id: string, options?: any): AxiosPromise { - return localVarFp.retrieveSupermarket(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this supermarket category. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveSupermarketCategory(id: string, options?: any): AxiosPromise { - return localVarFp.retrieveSupermarketCategory(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this supermarket category relation. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveSupermarketCategoryRelation(id: string, options?: any): AxiosPromise { - return localVarFp.retrieveSupermarketCategoryRelation(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this sync. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveSync(id: string, options?: any): AxiosPromise { - return localVarFp.retrieveSync(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this sync log. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveSyncLog(id: string, options?: any): AxiosPromise { - return localVarFp.retrieveSyncLog(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this unit. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveUnit(id: string, options?: any): AxiosPromise { - return localVarFp.retrieveUnit(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this unit conversion. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveUnitConversion(id: string, options?: any): AxiosPromise { - return localVarFp.retrieveUnitConversion(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this user. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveUser(id: string, options?: any): AxiosPromise { - return localVarFp.retrieveUser(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this user file. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveUserFile(id: string, options?: any): AxiosPromise { - return localVarFp.retrieveUserFile(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} user A unique value identifying this user preference. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveUserPreference(user: string, options?: any): AxiosPromise { - return localVarFp.retrieveUserPreference(user, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this user space. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveUserSpace(id: string, options?: any): AxiosPromise { - return localVarFp.retrieveUserSpace(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this view log. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveViewLog(id: string, options?: any): AxiosPromise { - return localVarFp.retrieveViewLog(id, options).then((request) => request(axios, basePath)); - }, - /** - * function to download a user file securely (wrapping as zip to prevent any context based XSS problems) temporary solution until a real file manager is implemented - * @param {string} fileId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrievedownloadFile(fileId: string, options?: any): AxiosPromise { - return localVarFp.retrievedownloadFile(fileId, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveshareLink(id: string, options?: any): AxiosPromise { - return localVarFp.retrieveshareLink(id, options).then((request) => request(axios, basePath)); + apiSupermarketUpdate(id: number, supermarket: Supermarket, options?: any): AxiosPromise { + return localVarFp.apiSupermarketUpdate(id, supermarket, options).then((request) => request(axios, basePath)); }, /** * api endpoint to switch space function - * @param {string} spaceId + * @param {number} spaceId * @param {*} [options] Override http request option. * @throws {RequiredError} */ - retrieveswitchActiveSpace(spaceId: string, options?: any): AxiosPromise { - return localVarFp.retrieveswitchActiveSpace(spaceId, options).then((request) => request(axios, basePath)); + apiSwitchActiveSpaceRetrieve(spaceId: number, options?: any): AxiosPromise { + return localVarFp.apiSwitchActiveSpaceRetrieve(spaceId, options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this food. - * @param {FoodShoppingUpdate} [foodShoppingUpdate] + * + * @param {Sync} sync * @param {*} [options] Override http request option. * @throws {RequiredError} */ - shoppingFood(id: string, foodShoppingUpdate?: FoodShoppingUpdate, options?: any): AxiosPromise { - return localVarFp.shoppingFood(id, foodShoppingUpdate, options).then((request) => request(axios, basePath)); + apiSyncCreate(sync: Sync, options?: any): AxiosPromise { + return localVarFp.apiSyncCreate(sync, options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this recipe. - * @param {RecipeShoppingUpdate} [recipeShoppingUpdate] + * + * @param {number} id A unique integer value identifying this sync. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - shoppingRecipe(id: string, recipeShoppingUpdate?: RecipeShoppingUpdate, options?: any): AxiosPromise { - return localVarFp.shoppingRecipe(id, recipeShoppingUpdate, options).then((request) => request(axios, basePath)); + apiSyncDestroy(id: number, options?: any): AxiosPromise { + return localVarFp.apiSyncDestroy(id, options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this access token. - * @param {AccessToken} [accessToken] + * * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateAccessToken(id: string, accessToken?: AccessToken, options?: any): AxiosPromise { - return localVarFp.updateAccessToken(id, accessToken, options).then((request) => request(axios, basePath)); + apiSyncList(options?: any): AxiosPromise> { + return localVarFp.apiSyncList(options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this automation. - * @param {Automation} [automation] + * + * @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} */ - updateAutomation(id: string, automation?: Automation, options?: any): AxiosPromise { - return localVarFp.updateAutomation(id, automation, options).then((request) => request(axios, basePath)); + apiSyncLogList(page?: number, pageSize?: number, options?: any): AxiosPromise { + return localVarFp.apiSyncLogList(page, pageSize, options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this bookmarklet import. - * @param {BookmarkletImport} [bookmarkletImport] + * + * @param {number} id A unique integer value identifying this sync log. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateBookmarkletImport(id: string, bookmarkletImport?: BookmarkletImport, options?: any): AxiosPromise { - return localVarFp.updateBookmarkletImport(id, bookmarkletImport, options).then((request) => request(axios, basePath)); + apiSyncLogRetrieve(id: number, options?: any): AxiosPromise { + return localVarFp.apiSyncLogRetrieve(id, options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this connector config. - * @param {ConnectorConfigConfig} [connectorConfigConfig] + * + * @param {number} id A unique integer value identifying this sync. + * @param {PatchedSync} [patchedSync] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateConnectorConfig(id: string, connectorConfigConfig?: ConnectorConfigConfig, options?: any): AxiosPromise { - return localVarFp.updateConnectorConfig(id, connectorConfigConfig, options).then((request) => request(axios, basePath)); + apiSyncPartialUpdate(id: number, patchedSync?: PatchedSync, options?: any): AxiosPromise { + return localVarFp.apiSyncPartialUpdate(id, patchedSync, options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this cook log. - * @param {CookLog} [cookLog] + * + * @param {number} id A unique integer value identifying this sync. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateCookLog(id: string, cookLog?: CookLog, options?: any): AxiosPromise { - return localVarFp.updateCookLog(id, cookLog, options).then((request) => request(axios, basePath)); + apiSyncRetrieve(id: number, options?: any): AxiosPromise { + return localVarFp.apiSyncRetrieve(id, options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this custom filter. - * @param {CustomFilter} [customFilter] + * + * @param {number} id A unique integer value identifying this sync. + * @param {Sync} sync * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateCustomFilter(id: string, customFilter?: CustomFilter, options?: any): AxiosPromise { - return localVarFp.updateCustomFilter(id, customFilter, options).then((request) => request(axios, basePath)); + apiSyncUpdate(id: number, sync: Sync, options?: any): AxiosPromise { + return localVarFp.apiSyncUpdate(id, sync, options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this export log. - * @param {ExportLog} [exportLog] + * + * @param {UnitConversion} unitConversion * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateExportLog(id: string, exportLog?: ExportLog, options?: any): AxiosPromise { - return localVarFp.updateExportLog(id, exportLog, options).then((request) => request(axios, basePath)); + apiUnitConversionCreate(unitConversion: UnitConversion, options?: any): AxiosPromise { + return localVarFp.apiUnitConversionCreate(unitConversion, options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this food. - * @param {Food} [food] + * + * @param {number} id A unique integer value identifying this unit conversion. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateFood(id: string, food?: Food, options?: any): AxiosPromise { - return localVarFp.updateFood(id, food, options).then((request) => request(axios, basePath)); + apiUnitConversionDestroy(id: number, options?: any): AxiosPromise { + return localVarFp.apiUnitConversionDestroy(id, options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this import log. - * @param {ImportLog} [importLog] + * + * @param {number} [foodId] ID of food to filter for * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateImportLog(id: string, importLog?: ImportLog, options?: any): AxiosPromise { - return localVarFp.updateImportLog(id, importLog, options).then((request) => request(axios, basePath)); + apiUnitConversionList(foodId?: number, options?: any): AxiosPromise> { + return localVarFp.apiUnitConversionList(foodId, options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this ingredient. - * @param {Ingredient} [ingredient] + * + * @param {number} id A unique integer value identifying this unit conversion. + * @param {PatchedUnitConversion} [patchedUnitConversion] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateIngredient(id: string, ingredient?: Ingredient, options?: any): AxiosPromise { - return localVarFp.updateIngredient(id, ingredient, options).then((request) => request(axios, basePath)); + apiUnitConversionPartialUpdate(id: number, patchedUnitConversion?: PatchedUnitConversion, options?: any): AxiosPromise { + return localVarFp.apiUnitConversionPartialUpdate(id, patchedUnitConversion, options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this invite link. - * @param {InviteLink} [inviteLink] + * + * @param {number} id A unique integer value identifying this unit conversion. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateInviteLink(id: string, inviteLink?: InviteLink, options?: any): AxiosPromise { - return localVarFp.updateInviteLink(id, inviteLink, options).then((request) => request(axios, basePath)); + apiUnitConversionRetrieve(id: number, options?: any): AxiosPromise { + return localVarFp.apiUnitConversionRetrieve(id, options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this keyword. - * @param {Keyword} [keyword] + * + * @param {number} id A unique integer value identifying this unit conversion. + * @param {UnitConversion} unitConversion * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateKeyword(id: string, keyword?: Keyword, options?: any): AxiosPromise { - return localVarFp.updateKeyword(id, keyword, options).then((request) => request(axios, basePath)); + apiUnitConversionUpdate(id: number, unitConversion: UnitConversion, options?: any): AxiosPromise { + return localVarFp.apiUnitConversionUpdate(id, unitConversion, options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this meal plan. - * @param {MealPlan} [mealPlan] + * + * @param {Unit} unit * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateMealPlan(id: string, mealPlan?: MealPlan, options?: any): AxiosPromise { - return localVarFp.updateMealPlan(id, mealPlan, options).then((request) => request(axios, basePath)); + apiUnitCreate(unit: Unit, options?: any): AxiosPromise { + return localVarFp.apiUnitCreate(unit, 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 {number} id A unique integer value identifying this unit. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateMealType(id: string, mealType?: MealType, options?: any): AxiosPromise { - return localVarFp.updateMealType(id, mealType, options).then((request) => request(axios, basePath)); + apiUnitDestroy(id: number, options?: any): AxiosPromise { + return localVarFp.apiUnitDestroy(id, options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this open data category. - * @param {OpenDataCategory} [openDataCategory] + * + * @param {string} [limit] limit number of entries to return + * @param {number} [page] A page number within the paginated result set. + * @param {number} [pageSize] Number of results to return per page. + * @param {string} [query] lookup if query string is contained within the name, case insensitive + * @param {string} [random] randomly orders entries (only works together with limit) + * @param {string} [updatedAt] if model has an updated_at timestamp, filter only models updated at or after datetime * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateOpenDataCategory(id: string, openDataCategory?: OpenDataCategory, options?: any): AxiosPromise { - return localVarFp.updateOpenDataCategory(id, openDataCategory, options).then((request) => request(axios, basePath)); + apiUnitList(limit?: string, page?: number, pageSize?: number, query?: string, random?: string, updatedAt?: string, options?: any): AxiosPromise { + return localVarFp.apiUnitList(limit, page, pageSize, query, random, updatedAt, options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this open data conversion. - * @param {OpenDataConversion} [openDataConversion] + * + * @param {number} id A unique integer value identifying this unit. + * @param {string} target + * @param {Unit} unit * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateOpenDataConversion(id: string, openDataConversion?: OpenDataConversion, options?: any): AxiosPromise { - return localVarFp.updateOpenDataConversion(id, openDataConversion, options).then((request) => request(axios, basePath)); + apiUnitMergeUpdate(id: number, target: string, unit: Unit, options?: any): AxiosPromise { + return localVarFp.apiUnitMergeUpdate(id, target, unit, options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this open data food. - * @param {OpenDataFood} [openDataFood] + * + * @param {number} id A unique integer value identifying this unit. + * @param {PatchedUnit} [patchedUnit] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateOpenDataFood(id: string, openDataFood?: OpenDataFood, options?: any): AxiosPromise { - return localVarFp.updateOpenDataFood(id, openDataFood, options).then((request) => request(axios, basePath)); + apiUnitPartialUpdate(id: number, patchedUnit?: PatchedUnit, options?: any): AxiosPromise { + return localVarFp.apiUnitPartialUpdate(id, patchedUnit, options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this open data property. - * @param {OpenDataProperty} [openDataProperty] + * + * @param {number} id A unique integer value identifying this unit. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateOpenDataProperty(id: string, openDataProperty?: OpenDataProperty, options?: any): AxiosPromise { - return localVarFp.updateOpenDataProperty(id, openDataProperty, options).then((request) => request(axios, basePath)); + apiUnitRetrieve(id: number, options?: any): AxiosPromise { + return localVarFp.apiUnitRetrieve(id, options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this open data store. - * @param {OpenDataStore} [openDataStore] + * + * @param {number} id A unique integer value identifying this unit. + * @param {Unit} unit * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateOpenDataStore(id: string, openDataStore?: OpenDataStore, options?: any): AxiosPromise { - return localVarFp.updateOpenDataStore(id, openDataStore, options).then((request) => request(axios, basePath)); + apiUnitUpdate(id: number, unit: Unit, options?: any): AxiosPromise { + return localVarFp.apiUnitUpdate(id, unit, options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this open data unit. - * @param {OpenDataUnit} [openDataUnit] + * + * @param {number} id + * @param {string} name + * @param {string} file + * @param {string} fileDownload + * @param {string} preview + * @param {number} fileSizeKb * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateOpenDataUnit(id: string, openDataUnit?: OpenDataUnit, options?: any): AxiosPromise { - return localVarFp.updateOpenDataUnit(id, openDataUnit, options).then((request) => request(axios, basePath)); + apiUserFileCreate(id: number, name: string, file: string, fileDownload: string, preview: string, fileSizeKb: number, options?: any): AxiosPromise { + return localVarFp.apiUserFileCreate(id, name, file, fileDownload, preview, fileSizeKb, options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this open data version. - * @param {OpenDataVersion} [openDataVersion] + * + * @param {number} id A unique integer value identifying this user file. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateOpenDataVersion(id: string, openDataVersion?: OpenDataVersion, options?: any): AxiosPromise { - return localVarFp.updateOpenDataVersion(id, openDataVersion, options).then((request) => request(axios, basePath)); + apiUserFileDestroy(id: number, options?: any): AxiosPromise { + return localVarFp.apiUserFileDestroy(id, options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this property. - * @param {Property} [property] + * + * @param {string} [limit] limit number of entries to return + * @param {string} [query] lookup if query string is contained within the name, case insensitive + * @param {string} [random] randomly orders entries (only works together with limit) + * @param {string} [updatedAt] if model has an updated_at timestamp, filter only models updated at or after datetime * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateProperty(id: string, property?: Property, options?: any): AxiosPromise { - return localVarFp.updateProperty(id, property, options).then((request) => request(axios, basePath)); + apiUserFileList(limit?: string, query?: string, random?: string, updatedAt?: string, options?: any): AxiosPromise> { + return localVarFp.apiUserFileList(limit, query, random, updatedAt, options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this property type. - * @param {PropertyType} [propertyType] + * + * @param {number} id A unique integer value identifying this user file. + * @param {number} [id2] + * @param {string} [name] + * @param {string} [file] + * @param {string} [fileDownload] + * @param {string} [preview] + * @param {number} [fileSizeKb] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updatePropertyType(id: string, propertyType?: PropertyType, options?: any): AxiosPromise { - return localVarFp.updatePropertyType(id, propertyType, options).then((request) => request(axios, basePath)); + apiUserFilePartialUpdate(id: number, id2?: number, name?: string, file?: string, fileDownload?: string, preview?: string, fileSizeKb?: number, options?: any): AxiosPromise { + return localVarFp.apiUserFilePartialUpdate(id, id2, name, file, fileDownload, preview, fileSizeKb, options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this recipe. - * @param {Recipe} [recipe] + * + * @param {number} id A unique integer value identifying this user file. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateRecipe(id: string, recipe?: Recipe, options?: any): AxiosPromise { - return localVarFp.updateRecipe(id, recipe, options).then((request) => request(axios, basePath)); + apiUserFileRetrieve(id: number, options?: any): AxiosPromise { + return localVarFp.apiUserFileRetrieve(id, options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this recipe book. - * @param {RecipeBook} [recipeBook] + * + * @param {number} id A unique integer value identifying this user file. + * @param {number} id2 + * @param {string} name + * @param {string} file + * @param {string} fileDownload + * @param {string} preview + * @param {number} fileSizeKb * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateRecipeBook(id: string, recipeBook?: RecipeBook, options?: any): AxiosPromise { - return localVarFp.updateRecipeBook(id, recipeBook, options).then((request) => request(axios, basePath)); + apiUserFileUpdate(id: number, id2: number, name: string, file: string, fileDownload: string, preview: string, fileSizeKb: number, options?: any): AxiosPromise { + return localVarFp.apiUserFileUpdate(id, id2, name, file, fileDownload, preview, fileSizeKb, options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this recipe book entry. - * @param {RecipeBookEntry} [recipeBookEntry] + * list: optional parameters - **filter_list**: array of user id\'s to get names for * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateRecipeBookEntry(id: string, recipeBookEntry?: RecipeBookEntry, options?: any): AxiosPromise { - return localVarFp.updateRecipeBookEntry(id, recipeBookEntry, options).then((request) => request(axios, basePath)); + apiUserList(options?: any): AxiosPromise> { + return localVarFp.apiUserList(options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this shopping list. - * @param {ShoppingList} [shoppingList] + * list: optional parameters - **filter_list**: array of user id\'s to get names for + * @param {number} id A unique integer value identifying this user. + * @param {PatchedUser} [patchedUser] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateShoppingList(id: string, shoppingList?: ShoppingList, options?: any): AxiosPromise { - return localVarFp.updateShoppingList(id, shoppingList, options).then((request) => request(axios, basePath)); + apiUserPartialUpdate(id: number, patchedUser?: PatchedUser, options?: any): AxiosPromise { + return localVarFp.apiUserPartialUpdate(id, patchedUser, options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this shopping list entry. - * @param {ShoppingListEntry} [shoppingListEntry] + * * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateShoppingListEntry(id: string, shoppingListEntry?: ShoppingListEntry, options?: any): AxiosPromise { - return localVarFp.updateShoppingListEntry(id, shoppingListEntry, options).then((request) => request(axios, basePath)); + apiUserPreferenceList(options?: any): AxiosPromise> { + return localVarFp.apiUserPreferenceList(options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this shopping list recipe. - * @param {ShoppingListRecipe} [shoppingListRecipe] + * + * @param {number} user A unique value identifying this user preference. + * @param {PatchedUserPreference} [patchedUserPreference] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateShoppingListRecipe(id: string, shoppingListRecipe?: ShoppingListRecipe, options?: any): AxiosPromise { - return localVarFp.updateShoppingListRecipe(id, shoppingListRecipe, options).then((request) => request(axios, basePath)); + apiUserPreferencePartialUpdate(user: number, patchedUserPreference?: PatchedUserPreference, options?: any): AxiosPromise { + return localVarFp.apiUserPreferencePartialUpdate(user, patchedUserPreference, options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this step. - * @param {Step} [step] + * + * @param {number} user A unique value identifying this user preference. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateStep(id: string, step?: Step, options?: any): AxiosPromise { - return localVarFp.updateStep(id, step, options).then((request) => request(axios, basePath)); + apiUserPreferenceRetrieve(user: number, options?: any): AxiosPromise { + return localVarFp.apiUserPreferenceRetrieve(user, options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this storage. - * @param {Storage} [storage] + * list: optional parameters - **filter_list**: array of user id\'s to get names for + * @param {number} id A unique integer value identifying this user. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateStorage(id: string, storage?: Storage, options?: any): AxiosPromise { - return localVarFp.updateStorage(id, storage, options).then((request) => request(axios, basePath)); + apiUserRetrieve(id: number, options?: any): AxiosPromise { + return localVarFp.apiUserRetrieve(id, options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this supermarket. - * @param {Supermarket} [supermarket] + * + * @param {number} id A unique integer value identifying this user space. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateSupermarket(id: string, supermarket?: Supermarket, options?: any): AxiosPromise { - return localVarFp.updateSupermarket(id, supermarket, options).then((request) => request(axios, basePath)); + apiUserSpaceDestroy(id: number, options?: any): AxiosPromise { + return localVarFp.apiUserSpaceDestroy(id, options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this supermarket category. - * @param {SupermarketCategory} [supermarketCategory] + * + * @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} */ - updateSupermarketCategory(id: string, supermarketCategory?: SupermarketCategory, options?: any): AxiosPromise { - return localVarFp.updateSupermarketCategory(id, supermarketCategory, options).then((request) => request(axios, basePath)); + apiUserSpaceList(page?: number, pageSize?: number, options?: any): AxiosPromise { + return localVarFp.apiUserSpaceList(page, pageSize, options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this supermarket category relation. - * @param {SupermarketCategoryRelation} [supermarketCategoryRelation] + * + * @param {number} id A unique integer value identifying this user space. + * @param {PatchedUserSpace} [patchedUserSpace] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateSupermarketCategoryRelation(id: string, supermarketCategoryRelation?: SupermarketCategoryRelation, options?: any): AxiosPromise { - return localVarFp.updateSupermarketCategoryRelation(id, supermarketCategoryRelation, options).then((request) => request(axios, basePath)); + apiUserSpacePartialUpdate(id: number, patchedUserSpace?: PatchedUserSpace, options?: any): AxiosPromise { + return localVarFp.apiUserSpacePartialUpdate(id, patchedUserSpace, options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this sync. - * @param {Sync} [sync] + * + * @param {number} id A unique integer value identifying this user space. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateSync(id: string, sync?: Sync, options?: any): AxiosPromise { - return localVarFp.updateSync(id, sync, options).then((request) => request(axios, basePath)); + apiUserSpaceRetrieve(id: number, options?: any): AxiosPromise { + return localVarFp.apiUserSpaceRetrieve(id, options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this unit. - * @param {Unit} [unit] + * + * @param {ViewLog} viewLog * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateUnit(id: string, unit?: Unit, options?: any): AxiosPromise { - return localVarFp.updateUnit(id, unit, options).then((request) => request(axios, basePath)); + apiViewLogCreate(viewLog: ViewLog, options?: any): AxiosPromise { + return localVarFp.apiViewLogCreate(viewLog, options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this unit conversion. - * @param {UnitConversion} [unitConversion] + * + * @param {number} id A unique integer value identifying this view log. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateUnitConversion(id: string, unitConversion?: UnitConversion, options?: any): AxiosPromise { - return localVarFp.updateUnitConversion(id, unitConversion, options).then((request) => request(axios, basePath)); + apiViewLogDestroy(id: number, options?: any): AxiosPromise { + return localVarFp.apiViewLogDestroy(id, options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this user file. - * @param {string} name - * @param {any} file - * @param {number} [id2] - * @param {string} [fileDownload] - * @param {string} [preview] - * @param {number} [fileSizeKb] + * + * @param {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} */ - updateUserFile(id: string, name: string, file: any, id2?: number, fileDownload?: string, preview?: string, fileSizeKb?: number, options?: any): AxiosPromise { - return localVarFp.updateUserFile(id, name, file, id2, fileDownload, preview, fileSizeKb, options).then((request) => request(axios, basePath)); + apiViewLogList(page?: number, pageSize?: number, options?: any): AxiosPromise { + return localVarFp.apiViewLogList(page, pageSize, options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this view log. - * @param {ViewLog} [viewLog] + * + * @param {number} id A unique integer value identifying this view log. + * @param {PatchedViewLog} [patchedViewLog] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateViewLog(id: string, viewLog?: ViewLog, options?: any): AxiosPromise { - return localVarFp.updateViewLog(id, viewLog, options).then((request) => request(axios, basePath)); + apiViewLogPartialUpdate(id: number, patchedViewLog?: PatchedViewLog, options?: any): AxiosPromise { + return localVarFp.apiViewLogPartialUpdate(id, patchedViewLog, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {number} id A unique integer value identifying this view log. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiViewLogRetrieve(id: number, options?: any): AxiosPromise { + return localVarFp.apiViewLogRetrieve(id, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {number} id A unique integer value identifying this view log. + * @param {ViewLog} viewLog + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiViewLogUpdate(id: number, viewLog: ViewLog, options?: any): AxiosPromise { + return localVarFp.apiViewLogUpdate(id, viewLog, options).then((request) => request(axios, basePath)); }, }; }; @@ -20984,970 +19483,106 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?: */ export class ApiApi extends BaseAPI { /** - * - * @param {ShoppingListEntryBulk} [shoppingListEntryBulk] + * + * @param {AccessToken} accessToken * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public bulkShoppingListEntry(shoppingListEntryBulk?: ShoppingListEntryBulk, options?: any) { - return ApiApiFp(this.configuration).bulkShoppingListEntry(shoppingListEntryBulk, options).then((request) => request(this.axios, this.basePath)); + public apiAccessTokenCreate(accessToken: AccessToken, options?: any) { + return ApiApiFp(this.configuration).apiAccessTokenCreate(accessToken, options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {AccessToken} [accessToken] + * + * @param {number} id A unique integer value identifying this access token. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public createAccessToken(accessToken?: AccessToken, options?: any) { - return ApiApiFp(this.configuration).createAccessToken(accessToken, options).then((request) => request(this.axios, this.basePath)); + public apiAccessTokenDestroy(id: number, options?: any) { + return ApiApiFp(this.configuration).apiAccessTokenDestroy(id, options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {any} [body] + * * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public createAutoPlanViewSet(body?: any, options?: any) { - return ApiApiFp(this.configuration).createAutoPlanViewSet(body, options).then((request) => request(this.axios, this.basePath)); + public apiAccessTokenList(options?: any) { + return ApiApiFp(this.configuration).apiAccessTokenList(options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {Automation} [automation] + * + * @param {number} id A unique integer value identifying this access token. + * @param {PatchedAccessToken} [patchedAccessToken] * @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)); + public apiAccessTokenPartialUpdate(id: number, patchedAccessToken?: PatchedAccessToken, options?: any) { + return ApiApiFp(this.configuration).apiAccessTokenPartialUpdate(id, patchedAccessToken, options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {BookmarkletImport} [bookmarkletImport] + * + * @param {number} id A unique integer value identifying this access token. * @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)); + public apiAccessTokenRetrieve(id: number, options?: any) { + return ApiApiFp(this.configuration).apiAccessTokenRetrieve(id, options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {ConnectorConfigConfig} [connectorConfigConfig] + * + * @param {number} id A unique integer value identifying this access token. + * @param {AccessToken} accessToken * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public createConnectorConfig(connectorConfigConfig?: ConnectorConfigConfig, options?: any) { - return ApiApiFp(this.configuration).createConnectorConfig(connectorConfigConfig, options).then((request) => request(this.axios, this.basePath)); + public apiAccessTokenUpdate(id: number, accessToken: AccessToken, options?: any) { + return ApiApiFp(this.configuration).apiAccessTokenUpdate(id, accessToken, 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)); + public apiAutoPlanCreate(options?: any) { + return ApiApiFp(this.configuration).apiAutoPlanCreate(options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {CustomFilter} [customFilter] + * list: optional parameters - **automation_type**: Return the Automations matching the automation type. Multiple values allowed. *Automation Types:* - FS: Food Alias - UA: Unit Alias - KA: Keyword Alias - DR: Description Replace - IR: Instruction Replace - NU: Never Unit - TW: Transpose Words - FR: Food Replace - UR: Unit Replace - NR: Name Replace + * @param {Automation} automation * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public createCustomFilter(customFilter?: CustomFilter, options?: any) { - return ApiApiFp(this.configuration).createCustomFilter(customFilter, options).then((request) => request(this.axios, this.basePath)); + public apiAutomationCreate(automation: Automation, options?: any) { + return ApiApiFp(this.configuration).apiAutomationCreate(automation, options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {ExportLog} [exportLog] + * list: optional parameters - **automation_type**: Return the Automations matching the automation type. Multiple values allowed. *Automation Types:* - FS: Food Alias - UA: Unit Alias - KA: Keyword Alias - DR: Description Replace - IR: Instruction Replace - NU: Never Unit - TW: Transpose Words - FR: Food Replace - UR: Unit Replace - NR: Name Replace + * @param {number} id A unique integer value identifying this automation. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public createExportLog(exportLog?: ExportLog, options?: any) { - return ApiApiFp(this.configuration).createExportLog(exportLog, options).then((request) => request(this.axios, this.basePath)); + public apiAutomationDestroy(id: number, options?: any) { + return ApiApiFp(this.configuration).apiAutomationDestroy(id, options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {Food} [food] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public createFood(food?: Food, options?: any) { - return ApiApiFp(this.configuration).createFood(food, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {ImportLog} [importLog] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public createImportLog(importLog?: ImportLog, options?: any) { - return ApiApiFp(this.configuration).createImportLog(importLog, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {Ingredient} [ingredient] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public createIngredient(ingredient?: Ingredient, options?: any) { - return ApiApiFp(this.configuration).createIngredient(ingredient, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {InviteLink} [inviteLink] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public createInviteLink(inviteLink?: InviteLink, options?: any) { - return ApiApiFp(this.configuration).createInviteLink(inviteLink, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {Keyword} [keyword] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public createKeyword(keyword?: Keyword, options?: any) { - return ApiApiFp(this.configuration).createKeyword(keyword, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {MealPlan} [mealPlan] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public createMealPlan(mealPlan?: MealPlan, options?: any) { - return ApiApiFp(this.configuration).createMealPlan(mealPlan, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * returns list of meal types created by the requesting user ordered by the order field. - * @param {MealType} [mealType] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public createMealType(mealType?: MealType, options?: any) { - return ApiApiFp(this.configuration).createMealType(mealType, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {OpenDataCategory} [openDataCategory] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public createOpenDataCategory(openDataCategory?: OpenDataCategory, options?: any) { - return ApiApiFp(this.configuration).createOpenDataCategory(openDataCategory, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {OpenDataConversion} [openDataConversion] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public createOpenDataConversion(openDataConversion?: OpenDataConversion, options?: any) { - return ApiApiFp(this.configuration).createOpenDataConversion(openDataConversion, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {OpenDataFood} [openDataFood] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public createOpenDataFood(openDataFood?: OpenDataFood, options?: any) { - return ApiApiFp(this.configuration).createOpenDataFood(openDataFood, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {OpenDataProperty} [openDataProperty] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public createOpenDataProperty(openDataProperty?: OpenDataProperty, options?: any) { - return ApiApiFp(this.configuration).createOpenDataProperty(openDataProperty, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {OpenDataStore} [openDataStore] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public createOpenDataStore(openDataStore?: OpenDataStore, options?: any) { - return ApiApiFp(this.configuration).createOpenDataStore(openDataStore, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {OpenDataUnit} [openDataUnit] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public createOpenDataUnit(openDataUnit?: OpenDataUnit, options?: any) { - return ApiApiFp(this.configuration).createOpenDataUnit(openDataUnit, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {OpenDataVersion} [openDataVersion] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public createOpenDataVersion(openDataVersion?: OpenDataVersion, options?: any) { - return ApiApiFp(this.configuration).createOpenDataVersion(openDataVersion, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {Property} [property] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public createProperty(property?: Property, options?: any) { - return ApiApiFp(this.configuration).createProperty(property, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {PropertyType} [propertyType] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public createPropertyType(propertyType?: PropertyType, options?: any) { - return ApiApiFp(this.configuration).createPropertyType(propertyType, 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)); - } - - /** - * function to retrieve a recipe from a given url or source string :param request: standard request with additional post parameters - url: url to use for importing recipe - data: if no url is given recipe is imported from provided source data - (optional) bookmarklet: id of bookmarklet import to use, overrides URL and data attributes :return: JsonResponse containing the parsed json and images - * @param {any} [body] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public createRecipeUrlImport(body?: any, options?: any) { - return ApiApiFp(this.configuration).createRecipeUrlImport(body, 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 {UnitConversion} [unitConversion] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public createUnitConversion(unitConversion?: UnitConversion, options?: any) { - return ApiApiFp(this.configuration).createUnitConversion(unitConversion, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} name - * @param {any} file - * @param {number} [id] - * @param {string} [fileDownload] - * @param {string} [preview] - * @param {number} [fileSizeKb] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public createUserFile(name: string, file: any, id?: number, fileDownload?: string, preview?: string, fileSizeKb?: number, options?: any) { - return ApiApiFp(this.configuration).createUserFile(name, file, id, fileDownload, preview, fileSizeKb, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {ViewLog} [viewLog] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public createViewLog(viewLog?: ViewLog, options?: any) { - return ApiApiFp(this.configuration).createViewLog(viewLog, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * function to handle files passed by application importer - * @param {any} [body] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public createimportFiles(body?: any, options?: any) { - return ApiApiFp(this.configuration).createimportFiles(body, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this access token. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public destroyAccessToken(id: string, options?: any) { - return ApiApiFp(this.configuration).destroyAccessToken(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 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 connector config. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public destroyConnectorConfig(id: string, options?: any) { - return ApiApiFp(this.configuration).destroyConnectorConfig(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this cook log. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public destroyCookLog(id: string, options?: any) { - return ApiApiFp(this.configuration).destroyCookLog(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this custom filter. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public destroyCustomFilter(id: string, options?: any) { - return ApiApiFp(this.configuration).destroyCustomFilter(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this export log. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public destroyExportLog(id: string, options?: any) { - return ApiApiFp(this.configuration).destroyExportLog(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this food. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public destroyFood(id: string, options?: any) { - return ApiApiFp(this.configuration).destroyFood(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this import log. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public destroyImportLog(id: string, options?: any) { - return ApiApiFp(this.configuration).destroyImportLog(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this ingredient. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public destroyIngredient(id: string, options?: any) { - return ApiApiFp(this.configuration).destroyIngredient(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this invite link. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public destroyInviteLink(id: string, options?: any) { - return ApiApiFp(this.configuration).destroyInviteLink(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this keyword. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public destroyKeyword(id: string, options?: any) { - return ApiApiFp(this.configuration).destroyKeyword(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this meal plan. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public destroyMealPlan(id: string, options?: any) { - return ApiApiFp(this.configuration).destroyMealPlan(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * returns list of meal types created by the requesting user ordered by the order field. - * @param {string} id A unique integer value identifying this meal type. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public destroyMealType(id: string, options?: any) { - return ApiApiFp(this.configuration).destroyMealType(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this open data category. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public destroyOpenDataCategory(id: string, options?: any) { - return ApiApiFp(this.configuration).destroyOpenDataCategory(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this open data conversion. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public destroyOpenDataConversion(id: string, options?: any) { - return ApiApiFp(this.configuration).destroyOpenDataConversion(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this open data food. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public destroyOpenDataFood(id: string, options?: any) { - return ApiApiFp(this.configuration).destroyOpenDataFood(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this open data property. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public destroyOpenDataProperty(id: string, options?: any) { - return ApiApiFp(this.configuration).destroyOpenDataProperty(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this open data store. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public destroyOpenDataStore(id: string, options?: any) { - return ApiApiFp(this.configuration).destroyOpenDataStore(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this open data unit. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public destroyOpenDataUnit(id: string, options?: any) { - return ApiApiFp(this.configuration).destroyOpenDataUnit(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this open data version. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public destroyOpenDataVersion(id: string, options?: any) { - return ApiApiFp(this.configuration).destroyOpenDataVersion(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this property. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public destroyProperty(id: string, options?: any) { - return ApiApiFp(this.configuration).destroyProperty(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this property type. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public destroyPropertyType(id: string, options?: any) { - return ApiApiFp(this.configuration).destroyPropertyType(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 unit conversion. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public destroyUnitConversion(id: string, options?: any) { - return ApiApiFp(this.configuration).destroyUnitConversion(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this user file. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public destroyUserFile(id: string, options?: any) { - return ApiApiFp(this.configuration).destroyUserFile(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this user space. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public destroyUserSpace(id: string, options?: any) { - return ApiApiFp(this.configuration).destroyUserSpace(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this view log. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public destroyViewLog(id: string, options?: any) { - return ApiApiFp(this.configuration).destroyViewLog(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * updates the food with all possible data from the FDC Api if properties with a fdc_id already exist they will be overridden, if existing properties don\'t have a fdc_id they won\'t be changed - * @param {string} id A unique integer value identifying this food. - * @param {Food} [food] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public fdcFood(id: string, food?: Food, options?: any) { - return ApiApiFp(this.configuration).fdcFood(id, food, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public flatRecipe(options?: any) { - return ApiApiFp(this.configuration).flatRecipe(options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this recipe. - * @param {any} [image] - * @param {string} [imageUrl] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public imageRecipe(id: string, image?: any, imageUrl?: string, options?: any) { - return ApiApiFp(this.configuration).imageRecipe(id, image, imageUrl, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public listAccessTokens(options?: any) { - return ApiApiFp(this.configuration).listAccessTokens(options).then((request) => request(this.axios, this.basePath)); - } - - /** - * optional parameters - **automation_type**: Return the Automations matching the automation type. Multiple values allowed. *Automation Types:* - FS: Food Alias - UA: Unit Alias - KA: Keyword Alias - DR: Description Replace - IR: Instruction Replace - NU: Never Unit - TW: Transpose Words - FR: Food Replace - UR: Unit Replace - NR: Name Replace + * list: optional parameters - **automation_type**: Return the Automations matching the automation type. Multiple values allowed. *Automation Types:* - FS: Food Alias - UA: Unit Alias - KA: Keyword Alias - DR: Description Replace - IR: Instruction Replace - NU: Never Unit - TW: Transpose Words - FR: Food Replace - UR: Unit Replace - NR: Name Replace * @param {string} [automationType] Return the Automations matching the automation type. Multiple values allowed. * @param {number} [page] A page number within the paginated result set. * @param {number} [pageSize] Number of results to return per page. @@ -21955,161 +19590,1126 @@ export class ApiApi extends BaseAPI { * @throws {RequiredError} * @memberof ApiApi */ - public listAutomations(automationType?: string, page?: number, pageSize?: number, options?: any) { - return ApiApiFp(this.configuration).listAutomations(automationType, page, pageSize, options).then((request) => request(this.axios, this.basePath)); + public apiAutomationList(automationType?: string, page?: number, pageSize?: number, options?: any) { + return ApiApiFp(this.configuration).apiAutomationList(automationType, page, pageSize, options).then((request) => request(this.axios, this.basePath)); } /** - * + * list: optional parameters - **automation_type**: Return the Automations matching the automation type. Multiple values allowed. *Automation Types:* - FS: Food Alias - UA: Unit Alias - KA: Keyword Alias - DR: Description Replace - IR: Instruction Replace - NU: Never Unit - TW: Transpose Words - FR: Food Replace - UR: Unit Replace - NR: Name Replace + * @param {number} id A unique integer value identifying this automation. + * @param {PatchedAutomation} [patchedAutomation] * @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)); + public apiAutomationPartialUpdate(id: number, patchedAutomation?: PatchedAutomation, options?: any) { + return ApiApiFp(this.configuration).apiAutomationPartialUpdate(id, patchedAutomation, options).then((request) => request(this.axios, this.basePath)); } /** - * + * list: optional parameters - **automation_type**: Return the Automations matching the automation type. Multiple values allowed. *Automation Types:* - FS: Food Alias - UA: Unit Alias - KA: Keyword Alias - DR: Description Replace - IR: Instruction Replace - NU: Never Unit - TW: Transpose Words - FR: Food Replace - UR: Unit Replace - NR: Name Replace + * @param {number} id A unique integer value identifying this automation. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public listConnectorConfigs(options?: any) { - return ApiApiFp(this.configuration).listConnectorConfigs(options).then((request) => request(this.axios, this.basePath)); + public apiAutomationRetrieve(id: number, options?: any) { + return ApiApiFp(this.configuration).apiAutomationRetrieve(id, options).then((request) => request(this.axios, this.basePath)); } /** - * + * list: optional parameters - **automation_type**: Return the Automations matching the automation type. Multiple values allowed. *Automation Types:* - FS: Food Alias - UA: Unit Alias - KA: Keyword Alias - DR: Description Replace - IR: Instruction Replace - NU: Never Unit - TW: Transpose Words - FR: Food Replace - UR: Unit Replace - NR: Name Replace + * @param {number} id A unique integer value identifying this automation. + * @param {Automation} automation + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiAutomationUpdate(id: number, automation: Automation, options?: any) { + return ApiApiFp(this.configuration).apiAutomationUpdate(id, automation, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {BookmarkletImport} bookmarkletImport + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiBookmarkletImportCreate(bookmarkletImport: BookmarkletImport, options?: any) { + return ApiApiFp(this.configuration).apiBookmarkletImportCreate(bookmarkletImport, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {number} id A unique integer value identifying this bookmarklet import. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiBookmarkletImportDestroy(id: number, options?: any) { + return ApiApiFp(this.configuration).apiBookmarkletImportDestroy(id, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiBookmarkletImportList(options?: any) { + return ApiApiFp(this.configuration).apiBookmarkletImportList(options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {number} id A unique integer value identifying this bookmarklet import. + * @param {PatchedBookmarkletImport} [patchedBookmarkletImport] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiBookmarkletImportPartialUpdate(id: number, patchedBookmarkletImport?: PatchedBookmarkletImport, options?: any) { + return ApiApiFp(this.configuration).apiBookmarkletImportPartialUpdate(id, patchedBookmarkletImport, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {number} id A unique integer value identifying this bookmarklet import. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiBookmarkletImportRetrieve(id: number, options?: any) { + return ApiApiFp(this.configuration).apiBookmarkletImportRetrieve(id, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {number} id A unique integer value identifying this bookmarklet import. + * @param {BookmarkletImport} bookmarkletImport + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiBookmarkletImportUpdate(id: number, bookmarkletImport: BookmarkletImport, options?: any) { + return ApiApiFp(this.configuration).apiBookmarkletImportUpdate(id, bookmarkletImport, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {ConnectorConfigConfig} connectorConfigConfig + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiConnectorConfigCreate(connectorConfigConfig: ConnectorConfigConfig, options?: any) { + return ApiApiFp(this.configuration).apiConnectorConfigCreate(connectorConfigConfig, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {number} id A unique integer value identifying this connector config. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiConnectorConfigDestroy(id: number, options?: any) { + return ApiApiFp(this.configuration).apiConnectorConfigDestroy(id, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiConnectorConfigList(options?: any) { + return ApiApiFp(this.configuration).apiConnectorConfigList(options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {number} id A unique integer value identifying this connector config. + * @param {PatchedConnectorConfigConfig} [patchedConnectorConfigConfig] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiConnectorConfigPartialUpdate(id: number, patchedConnectorConfigConfig?: PatchedConnectorConfigConfig, options?: any) { + return ApiApiFp(this.configuration).apiConnectorConfigPartialUpdate(id, patchedConnectorConfigConfig, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {number} id A unique integer value identifying this connector config. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiConnectorConfigRetrieve(id: number, options?: any) { + return ApiApiFp(this.configuration).apiConnectorConfigRetrieve(id, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {number} id A unique integer value identifying this connector config. + * @param {ConnectorConfigConfig} connectorConfigConfig + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiConnectorConfigUpdate(id: number, connectorConfigConfig: ConnectorConfigConfig, options?: any) { + return ApiApiFp(this.configuration).apiConnectorConfigUpdate(id, connectorConfigConfig, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {CookLog} cookLog + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiCookLogCreate(cookLog: CookLog, options?: any) { + return ApiApiFp(this.configuration).apiCookLogCreate(cookLog, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {number} id A unique integer value identifying this cook log. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiCookLogDestroy(id: number, options?: any) { + return ApiApiFp(this.configuration).apiCookLogDestroy(id, 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 {number} [recipe] Filter for entries with the given recipe + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiCookLogList(page?: number, pageSize?: number, recipe?: number, options?: any) { + return ApiApiFp(this.configuration).apiCookLogList(page, pageSize, recipe, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {number} id A unique integer value identifying this cook log. + * @param {PatchedCookLog} [patchedCookLog] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiCookLogPartialUpdate(id: number, patchedCookLog?: PatchedCookLog, options?: any) { + return ApiApiFp(this.configuration).apiCookLogPartialUpdate(id, patchedCookLog, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {number} id A unique integer value identifying this cook log. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiCookLogRetrieve(id: number, options?: any) { + return ApiApiFp(this.configuration).apiCookLogRetrieve(id, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {number} id A unique integer value identifying this cook log. + * @param {CookLog} cookLog + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiCookLogUpdate(id: number, cookLog: CookLog, options?: any) { + return ApiApiFp(this.configuration).apiCookLogUpdate(id, cookLog, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {CustomFilter} customFilter + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiCustomFilterCreate(customFilter: CustomFilter, options?: any) { + return ApiApiFp(this.configuration).apiCustomFilterCreate(customFilter, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {number} id A unique integer value identifying this custom filter. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiCustomFilterDestroy(id: number, options?: any) { + return ApiApiFp(this.configuration).apiCustomFilterDestroy(id, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {string} [limit] limit number of entries to return + * @param {number} [page] A page number within the paginated result set. + * @param {number} [pageSize] Number of results to return per page. + * @param {string} [query] lookup if query string is contained within the name, case insensitive + * @param {string} [random] randomly orders entries (only works together with limit) + * @param {string} [updatedAt] if model has an updated_at timestamp, filter only models updated at or after datetime + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiCustomFilterList(limit?: string, page?: number, pageSize?: number, query?: string, random?: string, updatedAt?: string, options?: any) { + return ApiApiFp(this.configuration).apiCustomFilterList(limit, page, pageSize, query, random, updatedAt, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {number} id A unique integer value identifying this custom filter. + * @param {PatchedCustomFilter} [patchedCustomFilter] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiCustomFilterPartialUpdate(id: number, patchedCustomFilter?: PatchedCustomFilter, options?: any) { + return ApiApiFp(this.configuration).apiCustomFilterPartialUpdate(id, patchedCustomFilter, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {number} id A unique integer value identifying this custom filter. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiCustomFilterRetrieve(id: number, options?: any) { + return ApiApiFp(this.configuration).apiCustomFilterRetrieve(id, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {number} id A unique integer value identifying this custom filter. + * @param {CustomFilter} customFilter + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiCustomFilterUpdate(id: number, customFilter: CustomFilter, options?: any) { + return ApiApiFp(this.configuration).apiCustomFilterUpdate(id, customFilter, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * function to download a user file securely (wrapping as zip to prevent any context based XSS problems) temporary solution until a real file manager is implemented + * @param {number} fileId + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiDownloadFileRetrieve(fileId: number, options?: any) { + return ApiApiFp(this.configuration).apiDownloadFileRetrieve(fileId, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {ExportLog} exportLog + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiExportLogCreate(exportLog: ExportLog, options?: any) { + return ApiApiFp(this.configuration).apiExportLogCreate(exportLog, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {number} id A unique integer value identifying this export log. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiExportLogDestroy(id: number, options?: any) { + return ApiApiFp(this.configuration).apiExportLogDestroy(id, 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)); + public apiExportLogList(page?: number, pageSize?: number, options?: any) { + return ApiApiFp(this.configuration).apiExportLogList(page, pageSize, options).then((request) => request(this.axios, this.basePath)); } /** - * + * + * @param {number} id A unique integer value identifying this export log. + * @param {PatchedExportLog} [patchedExportLog] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiExportLogPartialUpdate(id: number, patchedExportLog?: PatchedExportLog, options?: any) { + return ApiApiFp(this.configuration).apiExportLogPartialUpdate(id, patchedExportLog, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {number} id A unique integer value identifying this export log. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiExportLogRetrieve(id: number, options?: any) { + return ApiApiFp(this.configuration).apiExportLogRetrieve(id, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {number} id A unique integer value identifying this export log. + * @param {ExportLog} exportLog + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiExportLogUpdate(id: number, exportLog: ExportLog, options?: any) { + return ApiApiFp(this.configuration).apiExportLogUpdate(id, exportLog, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {Food} food + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiFoodCreate(food: Food, options?: any) { + return ApiApiFp(this.configuration).apiFoodCreate(food, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {number} id A unique integer value identifying this food. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiFoodDestroy(id: number, options?: any) { + return ApiApiFp(this.configuration).apiFoodDestroy(id, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * updates the food with all possible data from the FDC Api if properties with a fdc_id already exist they will be overridden, if existing properties don\'t have a fdc_id they won\'t be changed + * @param {number} id A unique integer value identifying this food. + * @param {Food} food + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiFoodFdcCreate(id: number, food: Food, options?: any) { + return ApiApiFp(this.configuration).apiFoodFdcCreate(id, food, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiFoodInheritFieldList(options?: any) { + return ApiApiFp(this.configuration).apiFoodInheritFieldList(options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {number} id A unique integer value identifying this food inherit field. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiFoodInheritFieldRetrieve(id: number, options?: any) { + return ApiApiFp(this.configuration).apiFoodInheritFieldRetrieve(id, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {string} [limit] limit number of entries to return + * @param {number} [page] A page number within the paginated result set. + * @param {number} [pageSize] Number of results to return per page. + * @param {string} [query] lookup if query string is contained within the name, case insensitive + * @param {string} [random] randomly orders entries (only works together with limit) + * @param {number} [root] Return first level children of {obj} with ID [int]. Integer 0 will return root {obj}s. + * @param {number} [tree] Return all self and children of {} with ID [int]. + * @param {string} [updatedAt] if model has an updated_at timestamp, filter only models updated at or after datetime + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiFoodList(limit?: string, page?: number, pageSize?: number, query?: string, random?: string, root?: number, tree?: number, updatedAt?: string, options?: any) { + return ApiApiFp(this.configuration).apiFoodList(limit, page, pageSize, query, random, root, tree, updatedAt, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {number} 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 apiFoodMergeUpdate(id: number, target: string, food: Food, options?: any) { + return ApiApiFp(this.configuration).apiFoodMergeUpdate(id, target, food, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {number} 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 apiFoodMoveUpdate(id: number, parent: string, food: Food, options?: any) { + return ApiApiFp(this.configuration).apiFoodMoveUpdate(id, parent, food, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {number} id A unique integer value identifying this food. + * @param {PatchedFood} [patchedFood] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiFoodPartialUpdate(id: number, patchedFood?: PatchedFood, options?: any) { + return ApiApiFp(this.configuration).apiFoodPartialUpdate(id, patchedFood, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {Property} property + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiFoodPropertyCreate(property: Property, options?: any) { + return ApiApiFp(this.configuration).apiFoodPropertyCreate(property, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {number} id A unique integer value identifying this property. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiFoodPropertyDestroy(id: number, options?: any) { + return ApiApiFp(this.configuration).apiFoodPropertyDestroy(id, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiFoodPropertyList(options?: any) { + return ApiApiFp(this.configuration).apiFoodPropertyList(options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {number} id A unique integer value identifying this property. + * @param {PatchedProperty} [patchedProperty] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiFoodPropertyPartialUpdate(id: number, patchedProperty?: PatchedProperty, options?: any) { + return ApiApiFp(this.configuration).apiFoodPropertyPartialUpdate(id, patchedProperty, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {number} id A unique integer value identifying this property. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiFoodPropertyRetrieve(id: number, options?: any) { + return ApiApiFp(this.configuration).apiFoodPropertyRetrieve(id, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {PropertyType} propertyType + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiFoodPropertyTypeCreate(propertyType: PropertyType, options?: any) { + return ApiApiFp(this.configuration).apiFoodPropertyTypeCreate(propertyType, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {number} id A unique integer value identifying this property type. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiFoodPropertyTypeDestroy(id: number, options?: any) { + return ApiApiFp(this.configuration).apiFoodPropertyTypeDestroy(id, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiFoodPropertyTypeList(options?: any) { + return ApiApiFp(this.configuration).apiFoodPropertyTypeList(options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {number} id A unique integer value identifying this property type. + * @param {PatchedPropertyType} [patchedPropertyType] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiFoodPropertyTypePartialUpdate(id: number, patchedPropertyType?: PatchedPropertyType, options?: any) { + return ApiApiFp(this.configuration).apiFoodPropertyTypePartialUpdate(id, patchedPropertyType, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {number} id A unique integer value identifying this property type. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiFoodPropertyTypeRetrieve(id: number, options?: any) { + return ApiApiFp(this.configuration).apiFoodPropertyTypeRetrieve(id, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {number} id A unique integer value identifying this property type. + * @param {PropertyType} propertyType + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiFoodPropertyTypeUpdate(id: number, propertyType: PropertyType, options?: any) { + return ApiApiFp(this.configuration).apiFoodPropertyTypeUpdate(id, propertyType, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {number} id A unique integer value identifying this property. + * @param {Property} property + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiFoodPropertyUpdate(id: number, property: Property, options?: any) { + return ApiApiFp(this.configuration).apiFoodPropertyUpdate(id, property, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {number} id A unique integer value identifying this food. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiFoodRetrieve(id: number, options?: any) { + return ApiApiFp(this.configuration).apiFoodRetrieve(id, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {number} id A unique integer value identifying this food. + * @param {FoodShoppingUpdate} foodShoppingUpdate + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiFoodShoppingUpdate(id: number, foodShoppingUpdate: FoodShoppingUpdate, options?: any) { + return ApiApiFp(this.configuration).apiFoodShoppingUpdate(id, foodShoppingUpdate, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {number} id A unique integer value identifying this food. + * @param {Food} food + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiFoodUpdate(id: number, food: Food, options?: any) { + return ApiApiFp(this.configuration).apiFoodUpdate(id, food, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiGroupList(options?: any) { + return ApiApiFp(this.configuration).apiGroupList(options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {number} id A unique integer value identifying this group. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiGroupRetrieve(id: number, options?: any) { + return ApiApiFp(this.configuration).apiGroupRetrieve(id, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * function to handle files passed by application importer + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiImportCreate(options?: any) { + return ApiApiFp(this.configuration).apiImportCreate(options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {ImportLog} importLog + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiImportLogCreate(importLog: ImportLog, options?: any) { + return ApiApiFp(this.configuration).apiImportLogCreate(importLog, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {number} id A unique integer value identifying this import log. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiImportLogDestroy(id: number, options?: any) { + return ApiApiFp(this.configuration).apiImportLogDestroy(id, 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 listCustomFilters(page?: number, pageSize?: number, options?: any) { - return ApiApiFp(this.configuration).listCustomFilters(page, pageSize, options).then((request) => request(this.axios, this.basePath)); + public apiImportLogList(page?: number, pageSize?: number, options?: any) { + return ApiApiFp(this.configuration).apiImportLogList(page, pageSize, options).then((request) => request(this.axios, this.basePath)); } /** - * + * + * @param {number} id A unique integer value identifying this import log. + * @param {PatchedImportLog} [patchedImportLog] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiImportLogPartialUpdate(id: number, patchedImportLog?: PatchedImportLog, options?: any) { + return ApiApiFp(this.configuration).apiImportLogPartialUpdate(id, patchedImportLog, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {number} id A unique integer value identifying this import log. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiImportLogRetrieve(id: number, options?: any) { + return ApiApiFp(this.configuration).apiImportLogRetrieve(id, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {number} id A unique integer value identifying this import log. + * @param {ImportLog} importLog + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiImportLogUpdate(id: number, importLog: ImportLog, options?: any) { + return ApiApiFp(this.configuration).apiImportLogUpdate(id, importLog, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {Ingredient} ingredient + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiIngredientCreate(ingredient: Ingredient, options?: any) { + return ApiApiFp(this.configuration).apiIngredientCreate(ingredient, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {number} id A unique integer value identifying this ingredient. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiIngredientDestroy(id: number, options?: any) { + return ApiApiFp(this.configuration).apiIngredientDestroy(id, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * * @param {number} [page] A page number within the paginated result set. * @param {number} [pageSize] Number of results to return per page. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public listExportLogs(page?: number, pageSize?: number, options?: any) { - return ApiApiFp(this.configuration).listExportLogs(page, pageSize, options).then((request) => request(this.axios, this.basePath)); + public apiIngredientList(page?: number, pageSize?: number, options?: any) { + return ApiApiFp(this.configuration).apiIngredientList(page, pageSize, options).then((request) => request(this.axios, this.basePath)); } /** - * + * + * @param {number} id A unique integer value identifying this ingredient. + * @param {PatchedIngredient} [patchedIngredient] * @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)); + public apiIngredientPartialUpdate(id: number, patchedIngredient?: PatchedIngredient, options?: any) { + return ApiApiFp(this.configuration).apiIngredientPartialUpdate(id, patchedIngredient, 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} id A unique integer value identifying this ingredient. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiIngredientRetrieve(id: number, options?: any) { + return ApiApiFp(this.configuration).apiIngredientRetrieve(id, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {number} id A unique integer value identifying this ingredient. + * @param {Ingredient} ingredient + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiIngredientUpdate(id: number, ingredient: Ingredient, options?: any) { + return ApiApiFp(this.configuration).apiIngredientUpdate(id, ingredient, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {InviteLink} inviteLink + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiInviteLinkCreate(inviteLink: InviteLink, options?: any) { + return ApiApiFp(this.configuration).apiInviteLinkCreate(inviteLink, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {number} id A unique integer value identifying this invite link. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiInviteLinkDestroy(id: number, options?: any) { + return ApiApiFp(this.configuration).apiInviteLinkDestroy(id, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {string} [limit] limit number of entries to return + * @param {string} [query] lookup if query string is contained within the name, case insensitive + * @param {string} [random] randomly orders entries (only works together with limit) + * @param {string} [updatedAt] if model has an updated_at timestamp, filter only models updated at or after datetime + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiInviteLinkList(limit?: string, query?: string, random?: string, updatedAt?: string, options?: any) { + return ApiApiFp(this.configuration).apiInviteLinkList(limit, query, random, updatedAt, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {number} id A unique integer value identifying this invite link. + * @param {PatchedInviteLink} [patchedInviteLink] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiInviteLinkPartialUpdate(id: number, patchedInviteLink?: PatchedInviteLink, options?: any) { + return ApiApiFp(this.configuration).apiInviteLinkPartialUpdate(id, patchedInviteLink, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {number} id A unique integer value identifying this invite link. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiInviteLinkRetrieve(id: number, options?: any) { + return ApiApiFp(this.configuration).apiInviteLinkRetrieve(id, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {number} id A unique integer value identifying this invite link. + * @param {InviteLink} inviteLink + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiInviteLinkUpdate(id: number, inviteLink: InviteLink, options?: any) { + return ApiApiFp(this.configuration).apiInviteLinkUpdate(id, inviteLink, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {Keyword} keyword + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiKeywordCreate(keyword: Keyword, options?: any) { + return ApiApiFp(this.configuration).apiKeywordCreate(keyword, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {number} id A unique integer value identifying this keyword. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiKeywordDestroy(id: number, options?: any) { + return ApiApiFp(this.configuration).apiKeywordDestroy(id, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {string} [limit] limit number of entries to return * @param {number} [page] A page number within the paginated result set. * @param {number} [pageSize] Number of results to return per page. + * @param {string} [query] lookup if query string is contained within the name, case insensitive + * @param {string} [random] randomly orders entries (only works together with limit) + * @param {number} [root] Return first level children of {obj} with ID [int]. Integer 0 will return root {obj}s. + * @param {number} [tree] Return all self and children of {} with ID [int]. + * @param {string} [updatedAt] if model has an updated_at timestamp, filter only models updated at or after datetime * @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)); + public apiKeywordList(limit?: string, page?: number, pageSize?: number, query?: string, random?: string, root?: number, tree?: number, updatedAt?: string, options?: any) { + return ApiApiFp(this.configuration).apiKeywordList(limit, page, pageSize, query, random, root, tree, updatedAt, options).then((request) => request(this.axios, this.basePath)); } /** - * + * + * @param {number} 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 listGroups(options?: any) { - return ApiApiFp(this.configuration).listGroups(options).then((request) => request(this.axios, this.basePath)); + public apiKeywordMergeUpdate(id: number, target: string, keyword: Keyword, options?: any) { + return ApiApiFp(this.configuration).apiKeywordMergeUpdate(id, target, keyword, 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 {number} 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 listImportLogs(page?: number, pageSize?: number, options?: any) { - return ApiApiFp(this.configuration).listImportLogs(page, pageSize, options).then((request) => request(this.axios, this.basePath)); + public apiKeywordMoveUpdate(id: number, parent: string, keyword: Keyword, options?: any) { + return ApiApiFp(this.configuration).apiKeywordMoveUpdate(id, parent, keyword, 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 {number} id A unique integer value identifying this keyword. + * @param {PatchedKeyword} [patchedKeyword] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public listIngredients(page?: number, pageSize?: number, options?: any) { - return ApiApiFp(this.configuration).listIngredients(page, pageSize, options).then((request) => request(this.axios, this.basePath)); + public apiKeywordPartialUpdate(id: number, patchedKeyword?: PatchedKeyword, options?: any) { + return ApiApiFp(this.configuration).apiKeywordPartialUpdate(id, patchedKeyword, options).then((request) => request(this.axios, this.basePath)); } /** - * + * + * @param {number} id A unique integer value identifying this keyword. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public listInviteLinks(options?: any) { - return ApiApiFp(this.configuration).listInviteLinks(options).then((request) => request(this.axios, this.basePath)); + public apiKeywordRetrieve(id: number, options?: any) { + return ApiApiFp(this.configuration).apiKeywordRetrieve(id, 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 {number} id A unique integer value identifying this keyword. + * @param {Keyword} keyword * @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)); + public apiKeywordUpdate(id: number, keyword: Keyword, options?: any) { + return ApiApiFp(this.configuration).apiKeywordUpdate(id, keyword, 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 - **meal_type**: filter meal plans based on meal_type ID + * list: optional parameters - **from_date**: filter from (inclusive) a certain date onward - **to_date**: filter upward to (inclusive) certain date - **meal_type**: filter meal plans based on meal_type ID + * @param {MealPlan} mealPlan + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiMealPlanCreate(mealPlan: MealPlan, options?: any) { + return ApiApiFp(this.configuration).apiMealPlanCreate(mealPlan, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * list: optional parameters - **from_date**: filter from (inclusive) a certain date onward - **to_date**: filter upward to (inclusive) certain date - **meal_type**: filter meal plans based on meal_type ID + * @param {number} id A unique integer value identifying this meal plan. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiMealPlanDestroy(id: number, options?: any) { + return ApiApiFp(this.configuration).apiMealPlanDestroy(id, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * list: optional parameters - **from_date**: filter from (inclusive) a certain date onward - **to_date**: filter upward to (inclusive) certain date - **meal_type**: filter meal plans based on meal_type ID * @param {string} [fromDate] Filter meal plans from date (inclusive) in the format of YYYY-MM-DD. + * @param {string} [mealType] Filter meal plans with MealType ID. For multiple repeat parameter. * @param {string} [toDate] Filter meal plans to date (inclusive) in the format of YYYY-MM-DD. - * @param {number} [mealType] Filter meal plans with MealType ID. For multiple repeat parameter. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public listMealPlans(fromDate?: string, toDate?: string, mealType?: number, options?: any) { - return ApiApiFp(this.configuration).listMealPlans(fromDate, toDate, mealType, options).then((request) => request(this.axios, this.basePath)); + public apiMealPlanIcalRetrieve(fromDate?: string, mealType?: string, toDate?: string, options?: any) { + return ApiApiFp(this.configuration).apiMealPlanIcalRetrieve(fromDate, mealType, toDate, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * list: optional parameters - **from_date**: filter from (inclusive) a certain date onward - **to_date**: filter upward to (inclusive) certain date - **meal_type**: filter meal plans based on meal_type ID + * @param {string} [fromDate] Filter meal plans from date (inclusive) in the format of YYYY-MM-DD. + * @param {string} [mealType] Filter meal plans with MealType ID. For multiple repeat parameter. + * @param {string} [toDate] Filter meal plans to date (inclusive) in the format of YYYY-MM-DD. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiMealPlanList(fromDate?: string, mealType?: string, toDate?: string, options?: any) { + return ApiApiFp(this.configuration).apiMealPlanList(fromDate, mealType, toDate, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * list: optional parameters - **from_date**: filter from (inclusive) a certain date onward - **to_date**: filter upward to (inclusive) certain date - **meal_type**: filter meal plans based on meal_type ID + * @param {number} id A unique integer value identifying this meal plan. + * @param {PatchedMealPlan} [patchedMealPlan] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiMealPlanPartialUpdate(id: number, patchedMealPlan?: PatchedMealPlan, options?: any) { + return ApiApiFp(this.configuration).apiMealPlanPartialUpdate(id, patchedMealPlan, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * list: optional parameters - **from_date**: filter from (inclusive) a certain date onward - **to_date**: filter upward to (inclusive) certain date - **meal_type**: filter meal plans based on meal_type ID + * @param {number} id A unique integer value identifying this meal plan. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiMealPlanRetrieve(id: number, options?: any) { + return ApiApiFp(this.configuration).apiMealPlanRetrieve(id, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * list: optional parameters - **from_date**: filter from (inclusive) a certain date onward - **to_date**: filter upward to (inclusive) certain date - **meal_type**: filter meal plans based on meal_type ID + * @param {number} id A unique integer value identifying this meal plan. + * @param {MealPlan} mealPlan + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiMealPlanUpdate(id: number, mealPlan: MealPlan, options?: any) { + return ApiApiFp(this.configuration).apiMealPlanUpdate(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 {MealType} mealType + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiMealTypeCreate(mealType: MealType, options?: any) { + return ApiApiFp(this.configuration).apiMealTypeCreate(mealType, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * returns list of meal types created by the requesting user ordered by the order field. + * @param {number} id A unique integer value identifying this meal type. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiMealTypeDestroy(id: number, options?: any) { + return ApiApiFp(this.configuration).apiMealTypeDestroy(id, options).then((request) => request(this.axios, this.basePath)); } /** @@ -22118,369 +20718,345 @@ export class ApiApi extends BaseAPI { * @throws {RequiredError} * @memberof ApiApi */ - public listMealTypes(options?: any) { - return ApiApiFp(this.configuration).listMealTypes(options).then((request) => request(this.axios, this.basePath)); + public apiMealTypeList(options?: any) { + return ApiApiFp(this.configuration).apiMealTypeList(options).then((request) => request(this.axios, this.basePath)); } /** - * + * returns list of meal types created by the requesting user ordered by the order field. + * @param {number} id A unique integer value identifying this meal type. + * @param {PatchedMealType} [patchedMealType] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public listOpenDataCategorys(options?: any) { - return ApiApiFp(this.configuration).listOpenDataCategorys(options).then((request) => request(this.axios, this.basePath)); + public apiMealTypePartialUpdate(id: number, patchedMealType?: PatchedMealType, options?: any) { + return ApiApiFp(this.configuration).apiMealTypePartialUpdate(id, patchedMealType, options).then((request) => request(this.axios, this.basePath)); } /** - * + * returns list of meal types created by the requesting user ordered by the order field. + * @param {number} id A unique integer value identifying this meal type. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public listOpenDataConversions(options?: any) { - return ApiApiFp(this.configuration).listOpenDataConversions(options).then((request) => request(this.axios, this.basePath)); + public apiMealTypeRetrieve(id: number, options?: any) { + return ApiApiFp(this.configuration).apiMealTypeRetrieve(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 {number} id A unique integer value identifying this meal type. + * @param {MealType} mealType * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public listOpenDataFoods(options?: any) { - return ApiApiFp(this.configuration).listOpenDataFoods(options).then((request) => request(this.axios, this.basePath)); + public apiMealTypeUpdate(id: number, mealType: MealType, options?: any) { + return ApiApiFp(this.configuration).apiMealTypeUpdate(id, mealType, options).then((request) => request(this.axios, this.basePath)); } /** - * + * + * @param {string} fromDate + * @param {string} toDate * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public listOpenDataPropertys(options?: any) { - return ApiApiFp(this.configuration).listOpenDataPropertys(options).then((request) => request(this.axios, this.basePath)); + public apiPlanIcalRetrieve(fromDate: string, toDate: string, options?: any) { + return ApiApiFp(this.configuration).apiPlanIcalRetrieve(fromDate, toDate, options).then((request) => request(this.axios, this.basePath)); } /** - * + * + * @param {RecipeBook} recipeBook * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public listOpenDataStatisticsViewSets(options?: any) { - return ApiApiFp(this.configuration).listOpenDataStatisticsViewSets(options).then((request) => request(this.axios, this.basePath)); + public apiRecipeBookCreate(recipeBook: RecipeBook, options?: any) { + return ApiApiFp(this.configuration).apiRecipeBookCreate(recipeBook, options).then((request) => request(this.axios, this.basePath)); } /** - * + * + * @param {number} id A unique integer value identifying this recipe book. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public listOpenDataStores(options?: any) { - return ApiApiFp(this.configuration).listOpenDataStores(options).then((request) => request(this.axios, this.basePath)); + public apiRecipeBookDestroy(id: number, options?: any) { + return ApiApiFp(this.configuration).apiRecipeBookDestroy(id, options).then((request) => request(this.axios, this.basePath)); } /** - * + * list: optional parameters - **recipe**: id of recipe - only return books for that recipe - **book**: id of book - only return recipes in that book + * @param {RecipeBookEntry} recipeBookEntry * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public listOpenDataUnits(options?: any) { - return ApiApiFp(this.configuration).listOpenDataUnits(options).then((request) => request(this.axios, this.basePath)); + public apiRecipeBookEntryCreate(recipeBookEntry: RecipeBookEntry, options?: any) { + return ApiApiFp(this.configuration).apiRecipeBookEntryCreate(recipeBookEntry, options).then((request) => request(this.axios, this.basePath)); } /** - * + * list: optional parameters - **recipe**: id of recipe - only return books for that recipe - **book**: id of book - only return recipes in that book + * @param {number} id A unique integer value identifying this recipe book entry. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public listOpenDataVersions(options?: any) { - return ApiApiFp(this.configuration).listOpenDataVersions(options).then((request) => request(this.axios, this.basePath)); + public apiRecipeBookEntryDestroy(id: number, options?: any) { + return ApiApiFp(this.configuration).apiRecipeBookEntryDestroy(id, options).then((request) => request(this.axios, this.basePath)); } /** - * + * list: 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 listPropertyTypes(options?: any) { - return ApiApiFp(this.configuration).listPropertyTypes(options).then((request) => request(this.axios, this.basePath)); + public apiRecipeBookEntryList(options?: any) { + return ApiApiFp(this.configuration).apiRecipeBookEntryList(options).then((request) => request(this.axios, this.basePath)); } /** - * + * list: optional parameters - **recipe**: id of recipe - only return books for that recipe - **book**: id of book - only return recipes in that book + * @param {number} id A unique integer value identifying this recipe book entry. + * @param {PatchedRecipeBookEntry} [patchedRecipeBookEntry] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public listPropertys(options?: any) { - return ApiApiFp(this.configuration).listPropertys(options).then((request) => request(this.axios, this.basePath)); + public apiRecipeBookEntryPartialUpdate(id: number, patchedRecipeBookEntry?: PatchedRecipeBookEntry, options?: any) { + return ApiApiFp(this.configuration).apiRecipeBookEntryPartialUpdate(id, patchedRecipeBookEntry, 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 + * list: optional parameters - **recipe**: id of recipe - only return books for that recipe - **book**: id of book - only return recipes in that book + * @param {number} id A unique integer value identifying this recipe book entry. * @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)); + public apiRecipeBookEntryRetrieve(id: number, options?: any) { + return ApiApiFp(this.configuration).apiRecipeBookEntryRetrieve(id, options).then((request) => request(this.axios, this.basePath)); } /** - * + * list: optional parameters - **recipe**: id of recipe - only return books for that recipe - **book**: id of book - only return recipes in that book + * @param {number} id A unique integer value identifying this recipe book entry. + * @param {RecipeBookEntry} recipeBookEntry * @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)); + public apiRecipeBookEntryUpdate(id: number, recipeBookEntry: RecipeBookEntry, options?: any) { + return ApiApiFp(this.configuration).apiRecipeBookEntryUpdate(id, recipeBookEntry, options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {string} [query] Query string matched (fuzzy) against recipe name. In the future also fulltext search. - * @param {number} [keywords] ID of keyword a recipe should have. For multiple repeat parameter. Equivalent to keywords_or - * @param {number} [keywordsOr] Keyword IDs, repeat for multiple. Return recipes with any of the keywords - * @param {number} [keywordsAnd] Keyword IDs, repeat for multiple. Return recipes with all of the keywords. - * @param {number} [keywordsOrNot] Keyword IDs, repeat for multiple. Exclude recipes with any of the keywords. - * @param {number} [keywordsAndNot] Keyword IDs, repeat for multiple. Exclude recipes with all of the keywords. - * @param {number} [foods] ID of food a recipe should have. For multiple repeat parameter. - * @param {number} [foodsOr] Food IDs, repeat for multiple. Return recipes with any of the foods - * @param {number} [foodsAnd] Food IDs, repeat for multiple. Return recipes with all of the foods. - * @param {number} [foodsOrNot] Food IDs, repeat for multiple. Exclude recipes with any of the foods. - * @param {number} [foodsAndNot] Food IDs, repeat for multiple. Exclude recipes with all of the foods. - * @param {number} [units] ID of unit a recipe should have. - * @param {number} [rating] Rating a recipe should have or greater. [0 - 5] Negative value filters rating less than. + * + * @param {string} [limit] limit number of entries to return + * @param {string} [query] lookup if query string is contained within the name, case insensitive + * @param {string} [random] randomly orders entries (only works together with limit) + * @param {string} [updatedAt] if model has an updated_at timestamp, filter only models updated at or after datetime + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiRecipeBookList(limit?: string, query?: string, random?: string, updatedAt?: string, options?: any) { + return ApiApiFp(this.configuration).apiRecipeBookList(limit, query, random, updatedAt, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {number} id A unique integer value identifying this recipe book. + * @param {PatchedRecipeBook} [patchedRecipeBook] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiRecipeBookPartialUpdate(id: number, patchedRecipeBook?: PatchedRecipeBook, options?: any) { + return ApiApiFp(this.configuration).apiRecipeBookPartialUpdate(id, patchedRecipeBook, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {number} id A unique integer value identifying this recipe book. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiRecipeBookRetrieve(id: number, options?: any) { + return ApiApiFp(this.configuration).apiRecipeBookRetrieve(id, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {number} id A unique integer value identifying this recipe book. + * @param {RecipeBook} recipeBook + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiRecipeBookUpdate(id: number, recipeBook: RecipeBook, options?: any) { + return ApiApiFp(this.configuration).apiRecipeBookUpdate(id, recipeBook, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {Recipe} recipe + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiRecipeCreate(recipe: Recipe, options?: any) { + return ApiApiFp(this.configuration).apiRecipeCreate(recipe, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {number} id A unique integer value identifying this recipe. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiRecipeDestroy(id: number, options?: any) { + return ApiApiFp(this.configuration).apiRecipeDestroy(id, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiRecipeFlatList(options?: any) { + return ApiApiFp(this.configuration).apiRecipeFlatList(options).then((request) => request(this.axios, this.basePath)); + } + + /** + * function to retrieve a recipe from a given url or source string :param request: standard request with additional post parameters - url: url to use for importing recipe - data: if no url is given recipe is imported from provided source data - (optional) bookmarklet: id of bookmarklet import to use, overrides URL and data attributes :return: JsonResponse containing the parsed json and images + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiRecipeFromSourceCreate(options?: any) { + return ApiApiFp(this.configuration).apiRecipeFromSourceCreate(options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {number} id A unique integer value identifying this recipe. + * @param {string} [image] + * @param {string} [imageUrl] + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiRecipeImageUpdate(id: number, image?: string, imageUrl?: string, options?: any) { + return ApiApiFp(this.configuration).apiRecipeImageUpdate(id, image, imageUrl, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * * @param {string} [books] ID of book a recipe should be in. For multiple repeat parameter. - * @param {number} [booksOr] Book IDs, repeat for multiple. Return recipes with any of the books * @param {number} [booksAnd] Book IDs, repeat for multiple. Return recipes with all of the books. - * @param {number} [booksOrNot] Book IDs, repeat for multiple. Exclude recipes with any of the books. * @param {number} [booksAndNot] Book IDs, repeat for multiple. Exclude recipes with all of the books. - * @param {string} [internal] If only internal recipes should be returned. [true/<b>false</b>] - * @param {string} [random] Returns the results in randomized order. [true/<b>false</b>] - * @param {string} [_new] Returns new results first in search results. [true/<b>false</b>] - * @param {number} [timescooked] Filter recipes cooked X times or more. Negative values returns cooked less than X times + * @param {number} [booksOr] Book IDs, repeat for multiple. Return recipes with any of the books + * @param {number} [booksOrNot] Book IDs, repeat for multiple. Exclude recipes with any of the books. * @param {string} [cookedon] Filter recipes last cooked on or after YYYY-MM-DD. Prepending - filters on or before date. * @param {string} [createdon] Filter recipes created on or after YYYY-MM-DD. Prepending - filters on or before date. + * @param {number} [foods] ID of food a recipe should have. For multiple repeat parameter. + * @param {number} [foodsAnd] Food IDs, repeat for multiple. Return recipes with all of the foods. + * @param {number} [foodsAndNot] Food IDs, repeat for multiple. Exclude recipes with all of the foods. + * @param {number} [foodsOr] Food IDs, repeat for multiple. Return recipes with any of the foods + * @param {number} [foodsOrNot] Food IDs, repeat for multiple. Exclude recipes with any of the foods. + * @param {string} [internal] If only internal recipes should be returned. [true/<b>false</b>] + * @param {number} [keywords] ID of keyword a recipe should have. For multiple repeat parameter. Equivalent to keywords_or + * @param {number} [keywordsAnd] Keyword IDs, repeat for multiple. Return recipes with all of the keywords. + * @param {number} [keywordsAndNot] Keyword IDs, repeat for multiple. Exclude recipes with all of the keywords. + * @param {number} [keywordsOr] Keyword IDs, repeat for multiple. Return recipes with any of the keywords + * @param {number} [keywordsOrNot] Keyword IDs, repeat for multiple. Exclude recipes with any of the keywords. + * @param {string} [makenow] Filter recipes that can be made with OnHand food. [true/<b>false</b>] + * @param {string} [_new] Returns new results first in search results. [true/<b>false</b>] + * @param {number} [page] A page number within the paginated result set. + * @param {number} [pageSize] Number of results to return per page. + * @param {string} [query] Query string matched (fuzzy) against recipe name. In the future also fulltext search. + * @param {string} [random] Returns the results in randomized order. [true/<b>false</b>] + * @param {number} [rating] Rating a recipe should have or greater. [0 - 5] Negative value filters rating less than. + * @param {number} [timescooked] Filter recipes cooked X times or more. Negative values returns cooked less than X times + * @param {number} [units] ID of unit a recipe should have. * @param {string} [updatedon] Filter recipes updated on or after YYYY-MM-DD. Prepending - filters on or before date. * @param {string} [viewedon] Filter recipes lasts viewed on or after YYYY-MM-DD. Prepending - filters on or before date. - * @param {string} [makenow] Filter recipes that can be made with OnHand food. [true/<b>false</b>] - * @param {number} [page] A page number within the paginated result set. - * @param {number} [pageSize] Number of results to return per page. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public listRecipes(query?: string, keywords?: number, keywordsOr?: number, keywordsAnd?: number, keywordsOrNot?: number, keywordsAndNot?: number, foods?: number, foodsOr?: number, foodsAnd?: number, foodsOrNot?: number, foodsAndNot?: number, units?: number, rating?: number, books?: string, booksOr?: number, booksAnd?: number, booksOrNot?: number, booksAndNot?: number, internal?: string, random?: string, _new?: string, timescooked?: number, cookedon?: string, createdon?: string, updatedon?: string, viewedon?: string, makenow?: string, page?: number, pageSize?: number, options?: any) { - return ApiApiFp(this.configuration).listRecipes(query, keywords, keywordsOr, keywordsAnd, keywordsOrNot, keywordsAndNot, foods, foodsOr, foodsAnd, foodsOrNot, foodsAndNot, units, rating, books, booksOr, booksAnd, booksOrNot, booksAndNot, internal, random, _new, timescooked, cookedon, createdon, updatedon, viewedon, makenow, page, pageSize, options).then((request) => request(this.axios, this.basePath)); + public apiRecipeList(books?: string, booksAnd?: number, booksAndNot?: number, booksOr?: number, booksOrNot?: number, cookedon?: string, createdon?: string, foods?: number, foodsAnd?: number, foodsAndNot?: number, foodsOr?: number, foodsOrNot?: number, internal?: string, keywords?: number, keywordsAnd?: number, keywordsAndNot?: number, keywordsOr?: number, keywordsOrNot?: number, makenow?: string, _new?: string, page?: number, pageSize?: number, query?: string, random?: string, rating?: number, timescooked?: number, units?: number, updatedon?: string, viewedon?: string, options?: any) { + return ApiApiFp(this.configuration).apiRecipeList(books, booksAnd, booksAndNot, booksOr, booksOrNot, cookedon, createdon, foods, foodsAnd, foodsAndNot, foodsOr, foodsOrNot, internal, keywords, keywordsAnd, keywordsAndNot, keywordsOr, keywordsOrNot, makenow, _new, page, pageSize, query, random, rating, timescooked, units, updatedon, viewedon, options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {number} [id] Returns the shopping list entry with a primary key of id. Multiple values allowed. - * @param {string} [checked] Filter shopping list entries on checked. [true, false, both, <b>recent</b>]<br> - recent includes unchecked items and recently completed items. - * @param {number} [supermarket] Returns the shopping list entries sorted by supermarket category order. + * + * @param {number} id A unique integer value identifying this recipe. + * @param {PatchedRecipe} [patchedRecipe] * @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)); + public apiRecipePartialUpdate(id: number, patchedRecipe?: PatchedRecipe, options?: any) { + return ApiApiFp(this.configuration).apiRecipePartialUpdate(id, patchedRecipe, options).then((request) => request(this.axios, this.basePath)); } /** - * + * + * @param {number} id A unique integer value identifying this recipe. * @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)); + public apiRecipeRelatedRetrieve(id: number, options?: any) { + return ApiApiFp(this.configuration).apiRecipeRelatedRetrieve(id, options).then((request) => request(this.axios, this.basePath)); } /** - * + * + * @param {number} id A unique integer value identifying this recipe. * @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)); + public apiRecipeRetrieve(id: number, options?: any) { + return ApiApiFp(this.configuration).apiRecipeRetrieve(id, options).then((request) => request(this.axios, this.basePath)); } /** - * + * + * @param {number} id A unique integer value identifying this recipe. + * @param {RecipeShoppingUpdate} [recipeShoppingUpdate] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public listSpaces(options?: any) { - return ApiApiFp(this.configuration).listSpaces(options).then((request) => request(this.axios, this.basePath)); + public apiRecipeShoppingUpdate(id: number, recipeShoppingUpdate?: RecipeShoppingUpdate, options?: any) { + return ApiApiFp(this.configuration).apiRecipeShoppingUpdate(id, recipeShoppingUpdate, options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {number} [recipe] ID of recipe a step is part of. For multiple repeat parameter. - * @param {string} [query] Query string matched (fuzzy) against object name. - * @param {number} [page] A page number within the paginated result set. - * @param {number} [pageSize] Number of results to return per page. + * + * @param {number} id A unique integer value identifying this recipe. + * @param {Recipe} recipe * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public listSteps(recipe?: number, query?: string, page?: number, pageSize?: number, options?: any) { - return ApiApiFp(this.configuration).listSteps(recipe, query, page, pageSize, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public listStorages(options?: any) { - return ApiApiFp(this.configuration).listStorages(options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {number} [page] A page number within the paginated result set. - * @param {number} [pageSize] Number of results to return per page. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public listSupermarketCategoryRelations(page?: number, pageSize?: number, options?: any) { - return ApiApiFp(this.configuration).listSupermarketCategoryRelations(page, pageSize, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} [query] Query string matched against supermarket-category name. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public listSupermarketCategorys(query?: string, options?: any) { - return ApiApiFp(this.configuration).listSupermarketCategorys(query, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} [query] Query string matched against supermarket name. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public listSupermarkets(query?: string, options?: any) { - return ApiApiFp(this.configuration).listSupermarkets(query, 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 {number} [foodId] ID of food to filter for - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public listUnitConversions(foodId?: number, options?: any) { - return ApiApiFp(this.configuration).listUnitConversions(foodId, 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 {string} [query] Query string matched against user-file name. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public listUserFiles(query?: string, options?: any) { - return ApiApiFp(this.configuration).listUserFiles(query, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public listUserPreferences(options?: any) { - return ApiApiFp(this.configuration).listUserPreferences(options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {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 listUserSpaces(page?: number, pageSize?: number, options?: any) { - return ApiApiFp(this.configuration).listUserSpaces(page, pageSize, 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)); + public apiRecipeUpdate(id: number, recipe: Recipe, options?: any) { + return ApiApiFp(this.configuration).apiRecipeUpdate(id, recipe, options).then((request) => request(this.axios, this.basePath)); } /** @@ -22489,1665 +21065,1088 @@ export class ApiApi extends BaseAPI { * @throws {RequiredError} * @memberof ApiApi */ - public listresetFoodInheritances(options?: any) { - return ApiApiFp(this.configuration).listresetFoodInheritances(options).then((request) => request(this.axios, this.basePath)); + public apiResetFoodInheritanceRetrieve(options?: any) { + return ApiApiFp(this.configuration).apiResetFoodInheritanceRetrieve(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 {number} id * @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)); + public apiShareLinkRetrieve(id: number, options?: any) { + return ApiApiFp(this.configuration).apiShareLinkRetrieve(id, 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 {ShoppingListEntryBulk} shoppingListEntryBulk * @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)); + public apiShoppingListEntryBulkCreate(shoppingListEntryBulk: ShoppingListEntryBulk, options?: any) { + return ApiApiFp(this.configuration).apiShoppingListEntryBulkCreate(shoppingListEntryBulk, options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {string} id A unique integer value identifying this supermarket category. - * @param {string} target - * @param {SupermarketCategory} [supermarketCategory] + * + * @param {ShoppingListEntry} shoppingListEntry * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public mergeSupermarketCategory(id: string, target: string, supermarketCategory?: SupermarketCategory, options?: any) { - return ApiApiFp(this.configuration).mergeSupermarketCategory(id, target, supermarketCategory, options).then((request) => request(this.axios, this.basePath)); + public apiShoppingListEntryCreate(shoppingListEntry: ShoppingListEntry, options?: any) { + return ApiApiFp(this.configuration).apiShoppingListEntryCreate(shoppingListEntry, 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 {number} id A unique integer value identifying this shopping list entry. * @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)); + public apiShoppingListEntryDestroy(id: number, options?: any) { + return ApiApiFp(this.configuration).apiShoppingListEntryDestroy(id, 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 {string} [checked] Filter shopping list entries on checked. [true, false, both, <b>recent</b>]<br> - recent includes unchecked items and recently completed items. + * @param {number} [id] Returns the shopping list entry with a primary key of id. Multiple values allowed. + * @param {number} [supermarket] Returns the shopping list entries sorted by supermarket category order. * @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)); + public apiShoppingListEntryList(checked?: string, id?: number, supermarket?: number, options?: any) { + return ApiApiFp(this.configuration).apiShoppingListEntryList(checked, id, supermarket, 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 {number} id A unique integer value identifying this shopping list entry. + * @param {PatchedShoppingListEntry} [patchedShoppingListEntry] * @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)); + public apiShoppingListEntryPartialUpdate(id: number, patchedShoppingListEntry?: PatchedShoppingListEntry, options?: any) { + return ApiApiFp(this.configuration).apiShoppingListEntryPartialUpdate(id, patchedShoppingListEntry, options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {string} id A unique integer value identifying this access token. - * @param {AccessToken} [accessToken] + * + * @param {number} id A unique integer value identifying this shopping list entry. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public partialUpdateAccessToken(id: string, accessToken?: AccessToken, options?: any) { - return ApiApiFp(this.configuration).partialUpdateAccessToken(id, accessToken, options).then((request) => request(this.axios, this.basePath)); + public apiShoppingListEntryRetrieve(id: number, options?: any) { + return ApiApiFp(this.configuration).apiShoppingListEntryRetrieve(id, options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {string} id A unique integer value identifying this automation. - * @param {Automation} [automation] + * + * @param {number} id A unique integer value identifying this shopping list entry. + * @param {ShoppingListEntry} shoppingListEntry * @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)); + public apiShoppingListEntryUpdate(id: number, shoppingListEntry: ShoppingListEntry, options?: any) { + return ApiApiFp(this.configuration).apiShoppingListEntryUpdate(id, shoppingListEntry, options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {string} id A unique integer value identifying this bookmarklet import. - * @param {BookmarkletImport} [bookmarkletImport] + * + * @param {ShoppingListRecipe} shoppingListRecipe * @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)); + public apiShoppingListRecipeCreate(shoppingListRecipe: ShoppingListRecipe, options?: any) { + return ApiApiFp(this.configuration).apiShoppingListRecipeCreate(shoppingListRecipe, options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {string} id A unique integer value identifying this connector config. - * @param {ConnectorConfigConfig} [connectorConfigConfig] + * + * @param {number} id A unique integer value identifying this shopping list recipe. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public partialUpdateConnectorConfig(id: string, connectorConfigConfig?: ConnectorConfigConfig, options?: any) { - return ApiApiFp(this.configuration).partialUpdateConnectorConfig(id, connectorConfigConfig, options).then((request) => request(this.axios, this.basePath)); + public apiShoppingListRecipeDestroy(id: number, options?: any) { + return ApiApiFp(this.configuration).apiShoppingListRecipeDestroy(id, 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)); + public apiShoppingListRecipeList(options?: any) { + return ApiApiFp(this.configuration).apiShoppingListRecipeList(options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {string} id A unique integer value identifying this custom filter. - * @param {CustomFilter} [customFilter] + * + * @param {number} id A unique integer value identifying this shopping list recipe. + * @param {PatchedShoppingListRecipe} [patchedShoppingListRecipe] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public partialUpdateCustomFilter(id: string, customFilter?: CustomFilter, options?: any) { - return ApiApiFp(this.configuration).partialUpdateCustomFilter(id, customFilter, options).then((request) => request(this.axios, this.basePath)); + public apiShoppingListRecipePartialUpdate(id: number, patchedShoppingListRecipe?: PatchedShoppingListRecipe, options?: any) { + return ApiApiFp(this.configuration).apiShoppingListRecipePartialUpdate(id, patchedShoppingListRecipe, options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {string} id A unique integer value identifying this export log. - * @param {ExportLog} [exportLog] + * + * @param {number} id A unique integer value identifying this shopping list recipe. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public partialUpdateExportLog(id: string, exportLog?: ExportLog, options?: any) { - return ApiApiFp(this.configuration).partialUpdateExportLog(id, exportLog, options).then((request) => request(this.axios, this.basePath)); + public apiShoppingListRecipeRetrieve(id: number, options?: any) { + return ApiApiFp(this.configuration).apiShoppingListRecipeRetrieve(id, options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {string} id A unique integer value identifying this food. - * @param {Food} [food] + * + * @param {number} id A unique integer value identifying this shopping list recipe. + * @param {ShoppingListRecipe} shoppingListRecipe * @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)); + public apiShoppingListRecipeUpdate(id: number, shoppingListRecipe: ShoppingListRecipe, options?: any) { + return ApiApiFp(this.configuration).apiShoppingListRecipeUpdate(id, shoppingListRecipe, 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)); + public apiSpaceList(options?: any) { + return ApiApiFp(this.configuration).apiSpaceList(options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {string} id A unique integer value identifying this ingredient. - * @param {Ingredient} [ingredient] + * + * @param {number} id A unique integer value identifying this space. + * @param {PatchedSpace} [patchedSpace] * @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)); + public apiSpacePartialUpdate(id: number, patchedSpace?: PatchedSpace, options?: any) { + return ApiApiFp(this.configuration).apiSpacePartialUpdate(id, patchedSpace, options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {string} id A unique integer value identifying this invite link. - * @param {InviteLink} [inviteLink] + * + * @param {number} id A unique integer value identifying this space. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public partialUpdateInviteLink(id: string, inviteLink?: InviteLink, options?: any) { - return ApiApiFp(this.configuration).partialUpdateInviteLink(id, inviteLink, options).then((request) => request(this.axios, this.basePath)); + public apiSpaceRetrieve(id: number, options?: any) { + return ApiApiFp(this.configuration).apiSpaceRetrieve(id, options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {string} id A unique integer value identifying this keyword. - * @param {Keyword} [keyword] + * + * @param {Step} step * @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)); + public apiStepCreate(step: Step, options?: any) { + return ApiApiFp(this.configuration).apiStepCreate(step, options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {string} id A unique integer value identifying this meal plan. - * @param {MealPlan} [mealPlan] + * + * @param {number} id A unique integer value identifying this step. * @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)); + public apiStepDestroy(id: number, options?: any) { + return ApiApiFp(this.configuration).apiStepDestroy(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 {MealType} [mealType] + * + * @param {number} [page] A page number within the paginated result set. + * @param {number} [pageSize] Number of results to return per page. + * @param {string} [query] Query string matched (fuzzy) against object name. + * @param {number} [recipe] ID of recipe a step is part of. For multiple repeat parameter. * @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)); + public apiStepList(page?: number, pageSize?: number, query?: string, recipe?: number, options?: any) { + return ApiApiFp(this.configuration).apiStepList(page, pageSize, query, recipe, options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {string} id A unique integer value identifying this open data category. - * @param {OpenDataCategory} [openDataCategory] + * + * @param {number} id A unique integer value identifying this step. + * @param {PatchedStep} [patchedStep] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public partialUpdateOpenDataCategory(id: string, openDataCategory?: OpenDataCategory, options?: any) { - return ApiApiFp(this.configuration).partialUpdateOpenDataCategory(id, openDataCategory, options).then((request) => request(this.axios, this.basePath)); + public apiStepPartialUpdate(id: number, patchedStep?: PatchedStep, options?: any) { + return ApiApiFp(this.configuration).apiStepPartialUpdate(id, patchedStep, options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {string} id A unique integer value identifying this open data conversion. - * @param {OpenDataConversion} [openDataConversion] + * + * @param {number} id A unique integer value identifying this step. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public partialUpdateOpenDataConversion(id: string, openDataConversion?: OpenDataConversion, options?: any) { - return ApiApiFp(this.configuration).partialUpdateOpenDataConversion(id, openDataConversion, options).then((request) => request(this.axios, this.basePath)); + public apiStepRetrieve(id: number, options?: any) { + return ApiApiFp(this.configuration).apiStepRetrieve(id, options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {string} id A unique integer value identifying this open data food. - * @param {OpenDataFood} [openDataFood] + * + * @param {number} id A unique integer value identifying this step. + * @param {Step} step * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public partialUpdateOpenDataFood(id: string, openDataFood?: OpenDataFood, options?: any) { - return ApiApiFp(this.configuration).partialUpdateOpenDataFood(id, openDataFood, options).then((request) => request(this.axios, this.basePath)); + public apiStepUpdate(id: number, step: Step, options?: any) { + return ApiApiFp(this.configuration).apiStepUpdate(id, step, options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {string} id A unique integer value identifying this open data property. - * @param {OpenDataProperty} [openDataProperty] + * + * @param {Storage} storage * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public partialUpdateOpenDataProperty(id: string, openDataProperty?: OpenDataProperty, options?: any) { - return ApiApiFp(this.configuration).partialUpdateOpenDataProperty(id, openDataProperty, options).then((request) => request(this.axios, this.basePath)); + public apiStorageCreate(storage: Storage, options?: any) { + return ApiApiFp(this.configuration).apiStorageCreate(storage, options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {string} id A unique integer value identifying this open data store. - * @param {OpenDataStore} [openDataStore] + * + * @param {number} id A unique integer value identifying this storage. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public partialUpdateOpenDataStore(id: string, openDataStore?: OpenDataStore, options?: any) { - return ApiApiFp(this.configuration).partialUpdateOpenDataStore(id, openDataStore, options).then((request) => request(this.axios, this.basePath)); + public apiStorageDestroy(id: number, options?: any) { + return ApiApiFp(this.configuration).apiStorageDestroy(id, options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {string} id A unique integer value identifying this open data unit. - * @param {OpenDataUnit} [openDataUnit] + * * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public partialUpdateOpenDataUnit(id: string, openDataUnit?: OpenDataUnit, options?: any) { - return ApiApiFp(this.configuration).partialUpdateOpenDataUnit(id, openDataUnit, options).then((request) => request(this.axios, this.basePath)); + public apiStorageList(options?: any) { + return ApiApiFp(this.configuration).apiStorageList(options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {string} id A unique integer value identifying this open data version. - * @param {OpenDataVersion} [openDataVersion] + * + * @param {number} id A unique integer value identifying this storage. + * @param {PatchedStorage} [patchedStorage] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public partialUpdateOpenDataVersion(id: string, openDataVersion?: OpenDataVersion, options?: any) { - return ApiApiFp(this.configuration).partialUpdateOpenDataVersion(id, openDataVersion, options).then((request) => request(this.axios, this.basePath)); + public apiStoragePartialUpdate(id: number, patchedStorage?: PatchedStorage, options?: any) { + return ApiApiFp(this.configuration).apiStoragePartialUpdate(id, patchedStorage, options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {string} id A unique integer value identifying this property. - * @param {Property} [property] + * + * @param {number} id A unique integer value identifying this storage. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public partialUpdateProperty(id: string, property?: Property, options?: any) { - return ApiApiFp(this.configuration).partialUpdateProperty(id, property, options).then((request) => request(this.axios, this.basePath)); + public apiStorageRetrieve(id: number, options?: any) { + return ApiApiFp(this.configuration).apiStorageRetrieve(id, options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {string} id A unique integer value identifying this property type. - * @param {PropertyType} [propertyType] + * + * @param {number} id A unique integer value identifying this storage. + * @param {Storage} storage * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public partialUpdatePropertyType(id: string, propertyType?: PropertyType, options?: any) { - return ApiApiFp(this.configuration).partialUpdatePropertyType(id, propertyType, options).then((request) => request(this.axios, this.basePath)); + public apiStorageUpdate(id: number, storage: Storage, options?: any) { + return ApiApiFp(this.configuration).apiStorageUpdate(id, storage, options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {string} id A unique integer value identifying this recipe. - * @param {Recipe} [recipe] + * + * @param {SupermarketCategory} supermarketCategory * @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)); + public apiSupermarketCategoryCreate(supermarketCategory: SupermarketCategory, options?: any) { + return ApiApiFp(this.configuration).apiSupermarketCategoryCreate(supermarketCategory, options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {string} id A unique integer value identifying this recipe book. - * @param {RecipeBook} [recipeBook] + * + * @param {number} id A unique integer value identifying this supermarket category. * @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)); + public apiSupermarketCategoryDestroy(id: number, options?: any) { + return ApiApiFp(this.configuration).apiSupermarketCategoryDestroy(id, options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {string} id A unique integer value identifying this recipe book entry. - * @param {RecipeBookEntry} [recipeBookEntry] + * + * @param {string} [limit] limit number of entries to return + * @param {string} [query] lookup if query string is contained within the name, case insensitive + * @param {string} [random] randomly orders entries (only works together with limit) + * @param {string} [updatedAt] if model has an updated_at timestamp, filter only models updated at or after datetime * @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)); + public apiSupermarketCategoryList(limit?: string, query?: string, random?: string, updatedAt?: string, options?: any) { + return ApiApiFp(this.configuration).apiSupermarketCategoryList(limit, query, random, updatedAt, options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {string} id A unique integer value identifying this shopping list. - * @param {ShoppingList} [shoppingList] + * + * @param {number} id A unique integer value identifying this supermarket category. + * @param {string} target + * @param {SupermarketCategory} supermarketCategory * @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)); + public apiSupermarketCategoryMergeUpdate(id: number, target: string, supermarketCategory: SupermarketCategory, options?: any) { + return ApiApiFp(this.configuration).apiSupermarketCategoryMergeUpdate(id, target, supermarketCategory, options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {string} id A unique integer value identifying this shopping list entry. - * @param {ShoppingListEntry} [shoppingListEntry] + * + * @param {number} id A unique integer value identifying this supermarket category. + * @param {PatchedSupermarketCategory} [patchedSupermarketCategory] * @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)); + public apiSupermarketCategoryPartialUpdate(id: number, patchedSupermarketCategory?: PatchedSupermarketCategory, options?: any) { + return ApiApiFp(this.configuration).apiSupermarketCategoryPartialUpdate(id, patchedSupermarketCategory, options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {string} id A unique integer value identifying this shopping list recipe. - * @param {ShoppingListRecipe} [shoppingListRecipe] + * + * @param {SupermarketCategoryRelation} supermarketCategoryRelation * @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)); + public apiSupermarketCategoryRelationCreate(supermarketCategoryRelation: SupermarketCategoryRelation, options?: any) { + return ApiApiFp(this.configuration).apiSupermarketCategoryRelationCreate(supermarketCategoryRelation, options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {string} id A unique integer value identifying this space. - * @param {Space} [space] + * + * @param {number} id A unique integer value identifying this supermarket category relation. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public partialUpdateSpace(id: string, space?: Space, options?: any) { - return ApiApiFp(this.configuration).partialUpdateSpace(id, space, options).then((request) => request(this.axios, this.basePath)); + public apiSupermarketCategoryRelationDestroy(id: number, options?: any) { + return ApiApiFp(this.configuration).apiSupermarketCategoryRelationDestroy(id, options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {string} id A unique integer value identifying this step. - * @param {Step} [step] + * + * @param {string} [limit] limit number of entries to return + * @param {number} [page] A page number within the paginated result set. + * @param {number} [pageSize] Number of results to return per page. + * @param {string} [query] lookup if query string is contained within the name, case insensitive + * @param {string} [random] randomly orders entries (only works together with limit) + * @param {string} [updatedAt] if model has an updated_at timestamp, filter only models updated at or after datetime * @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)); + public apiSupermarketCategoryRelationList(limit?: string, page?: number, pageSize?: number, query?: string, random?: string, updatedAt?: string, options?: any) { + return ApiApiFp(this.configuration).apiSupermarketCategoryRelationList(limit, page, pageSize, query, random, updatedAt, options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {string} id A unique integer value identifying this storage. - * @param {Storage} [storage] + * + * @param {number} id A unique integer value identifying this supermarket category relation. + * @param {PatchedSupermarketCategoryRelation} [patchedSupermarketCategoryRelation] * @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)); + public apiSupermarketCategoryRelationPartialUpdate(id: number, patchedSupermarketCategoryRelation?: PatchedSupermarketCategoryRelation, options?: any) { + return ApiApiFp(this.configuration).apiSupermarketCategoryRelationPartialUpdate(id, patchedSupermarketCategoryRelation, options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {string} id A unique integer value identifying this supermarket. - * @param {Supermarket} [supermarket] + * + * @param {number} id A unique integer value identifying this supermarket category relation. * @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)); + public apiSupermarketCategoryRelationRetrieve(id: number, options?: any) { + return ApiApiFp(this.configuration).apiSupermarketCategoryRelationRetrieve(id, options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {string} id A unique integer value identifying this supermarket category. - * @param {SupermarketCategory} [supermarketCategory] + * + * @param {number} id A unique integer value identifying this supermarket category relation. + * @param {SupermarketCategoryRelation} supermarketCategoryRelation * @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)); + public apiSupermarketCategoryRelationUpdate(id: number, supermarketCategoryRelation: SupermarketCategoryRelation, options?: any) { + return ApiApiFp(this.configuration).apiSupermarketCategoryRelationUpdate(id, supermarketCategoryRelation, options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {string} id A unique integer value identifying this supermarket category relation. - * @param {SupermarketCategoryRelation} [supermarketCategoryRelation] + * + * @param {number} id A unique integer value identifying this supermarket category. * @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)); + public apiSupermarketCategoryRetrieve(id: number, options?: any) { + return ApiApiFp(this.configuration).apiSupermarketCategoryRetrieve(id, options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {string} id A unique integer value identifying this sync. - * @param {Sync} [sync] + * + * @param {number} id A unique integer value identifying this supermarket category. + * @param {SupermarketCategory} supermarketCategory * @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)); + public apiSupermarketCategoryUpdate(id: number, supermarketCategory: SupermarketCategory, options?: any) { + return ApiApiFp(this.configuration).apiSupermarketCategoryUpdate(id, supermarketCategory, options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {string} id A unique integer value identifying this unit. - * @param {Unit} [unit] + * + * @param {Supermarket} supermarket * @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)); + public apiSupermarketCreate(supermarket: Supermarket, options?: any) { + return ApiApiFp(this.configuration).apiSupermarketCreate(supermarket, options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {string} id A unique integer value identifying this unit conversion. - * @param {UnitConversion} [unitConversion] + * + * @param {number} id A unique integer value identifying this supermarket. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public partialUpdateUnitConversion(id: string, unitConversion?: UnitConversion, options?: any) { - return ApiApiFp(this.configuration).partialUpdateUnitConversion(id, unitConversion, options).then((request) => request(this.axios, this.basePath)); + public apiSupermarketDestroy(id: number, options?: any) { + return ApiApiFp(this.configuration).apiSupermarketDestroy(id, options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {string} id A unique integer value identifying this user. - * @param {User} [user] + * + * @param {string} [limit] limit number of entries to return + * @param {string} [query] lookup if query string is contained within the name, case insensitive + * @param {string} [random] randomly orders entries (only works together with limit) + * @param {string} [updatedAt] if model has an updated_at timestamp, filter only models updated at or after datetime * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public partialUpdateUser(id: string, user?: User, options?: any) { - return ApiApiFp(this.configuration).partialUpdateUser(id, user, options).then((request) => request(this.axios, this.basePath)); + public apiSupermarketList(limit?: string, query?: string, random?: string, updatedAt?: string, options?: any) { + return ApiApiFp(this.configuration).apiSupermarketList(limit, query, random, updatedAt, options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {string} id A unique integer value identifying this user file. - * @param {string} name - * @param {any} file - * @param {number} [id2] - * @param {string} [fileDownload] - * @param {string} [preview] - * @param {number} [fileSizeKb] + * + * @param {number} id A unique integer value identifying this supermarket. + * @param {PatchedSupermarket} [patchedSupermarket] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public partialUpdateUserFile(id: string, name: string, file: any, id2?: number, fileDownload?: string, preview?: string, fileSizeKb?: number, options?: any) { - return ApiApiFp(this.configuration).partialUpdateUserFile(id, name, file, id2, fileDownload, preview, fileSizeKb, options).then((request) => request(this.axios, this.basePath)); + public apiSupermarketPartialUpdate(id: number, patchedSupermarket?: PatchedSupermarket, options?: any) { + return ApiApiFp(this.configuration).apiSupermarketPartialUpdate(id, patchedSupermarket, options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {string} user A unique value identifying this user preference. - * @param {UserPreference} [userPreference] + * + * @param {number} id A unique integer value identifying this supermarket. * @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)); + public apiSupermarketRetrieve(id: number, options?: any) { + return ApiApiFp(this.configuration).apiSupermarketRetrieve(id, options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {string} id A unique integer value identifying this user space. - * @param {UserSpace} [userSpace] + * + * @param {number} id A unique integer value identifying this supermarket. + * @param {Supermarket} supermarket * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public partialUpdateUserSpace(id: string, userSpace?: UserSpace, options?: any) { - return ApiApiFp(this.configuration).partialUpdateUserSpace(id, userSpace, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this view log. - * @param {ViewLog} [viewLog] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public partialUpdateViewLog(id: string, viewLog?: ViewLog, options?: any) { - return ApiApiFp(this.configuration).partialUpdateViewLog(id, viewLog, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this recipe. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public relatedRecipe(id: string, options?: any) { - return ApiApiFp(this.configuration).relatedRecipe(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this access token. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public retrieveAccessToken(id: string, options?: any) { - return ApiApiFp(this.configuration).retrieveAccessToken(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 connector config. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public retrieveConnectorConfig(id: string, options?: any) { - return ApiApiFp(this.configuration).retrieveConnectorConfig(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this cook log. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public retrieveCookLog(id: string, options?: any) { - return ApiApiFp(this.configuration).retrieveCookLog(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this custom filter. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public retrieveCustomFilter(id: string, options?: any) { - return ApiApiFp(this.configuration).retrieveCustomFilter(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this export log. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public retrieveExportLog(id: string, options?: any) { - return ApiApiFp(this.configuration).retrieveExportLog(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public retrieveFDCViewSet(id: string, options?: any) { - return ApiApiFp(this.configuration).retrieveFDCViewSet(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this food. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public retrieveFood(id: string, options?: any) { - return ApiApiFp(this.configuration).retrieveFood(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this food inherit field. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public retrieveFoodInheritField(id: string, options?: any) { - return ApiApiFp(this.configuration).retrieveFoodInheritField(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this group. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public retrieveGroup(id: string, options?: any) { - return ApiApiFp(this.configuration).retrieveGroup(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this import log. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public retrieveImportLog(id: string, options?: any) { - return ApiApiFp(this.configuration).retrieveImportLog(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this ingredient. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public retrieveIngredient(id: string, options?: any) { - return ApiApiFp(this.configuration).retrieveIngredient(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this invite link. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public retrieveInviteLink(id: string, options?: any) { - return ApiApiFp(this.configuration).retrieveInviteLink(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this keyword. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public retrieveKeyword(id: string, options?: any) { - return ApiApiFp(this.configuration).retrieveKeyword(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this meal plan. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public retrieveMealPlan(id: string, options?: any) { - return ApiApiFp(this.configuration).retrieveMealPlan(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * returns list of meal types created by the requesting user ordered by the order field. - * @param {string} id A unique integer value identifying this meal type. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public retrieveMealType(id: string, options?: any) { - return ApiApiFp(this.configuration).retrieveMealType(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this open data category. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public retrieveOpenDataCategory(id: string, options?: any) { - return ApiApiFp(this.configuration).retrieveOpenDataCategory(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this open data conversion. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public retrieveOpenDataConversion(id: string, options?: any) { - return ApiApiFp(this.configuration).retrieveOpenDataConversion(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this open data food. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public retrieveOpenDataFood(id: string, options?: any) { - return ApiApiFp(this.configuration).retrieveOpenDataFood(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this open data property. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public retrieveOpenDataProperty(id: string, options?: any) { - return ApiApiFp(this.configuration).retrieveOpenDataProperty(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this open data store. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public retrieveOpenDataStore(id: string, options?: any) { - return ApiApiFp(this.configuration).retrieveOpenDataStore(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this open data unit. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public retrieveOpenDataUnit(id: string, options?: any) { - return ApiApiFp(this.configuration).retrieveOpenDataUnit(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this open data version. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public retrieveOpenDataVersion(id: string, options?: any) { - return ApiApiFp(this.configuration).retrieveOpenDataVersion(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this property. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public retrieveProperty(id: string, options?: any) { - return ApiApiFp(this.configuration).retrieveProperty(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this property type. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public retrievePropertyType(id: string, options?: any) { - return ApiApiFp(this.configuration).retrievePropertyType(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this recipe. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public retrieveRecipe(id: string, options?: any) { - return ApiApiFp(this.configuration).retrieveRecipe(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this recipe book. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public retrieveRecipeBook(id: string, options?: any) { - return ApiApiFp(this.configuration).retrieveRecipeBook(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this recipe book entry. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public retrieveRecipeBookEntry(id: string, options?: any) { - return ApiApiFp(this.configuration).retrieveRecipeBookEntry(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this shopping list. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public retrieveShoppingList(id: string, options?: any) { - return ApiApiFp(this.configuration).retrieveShoppingList(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this shopping list entry. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public retrieveShoppingListEntry(id: string, options?: any) { - return ApiApiFp(this.configuration).retrieveShoppingListEntry(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this shopping list recipe. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public retrieveShoppingListRecipe(id: string, options?: any) { - return ApiApiFp(this.configuration).retrieveShoppingListRecipe(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this space. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public retrieveSpace(id: string, options?: any) { - return ApiApiFp(this.configuration).retrieveSpace(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this step. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public retrieveStep(id: string, options?: any) { - return ApiApiFp(this.configuration).retrieveStep(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this storage. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public retrieveStorage(id: string, options?: any) { - return ApiApiFp(this.configuration).retrieveStorage(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this supermarket. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public retrieveSupermarket(id: string, options?: any) { - return ApiApiFp(this.configuration).retrieveSupermarket(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this supermarket category. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public retrieveSupermarketCategory(id: string, options?: any) { - return ApiApiFp(this.configuration).retrieveSupermarketCategory(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this supermarket category relation. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public retrieveSupermarketCategoryRelation(id: string, options?: any) { - return ApiApiFp(this.configuration).retrieveSupermarketCategoryRelation(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this sync. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public retrieveSync(id: string, options?: any) { - return ApiApiFp(this.configuration).retrieveSync(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this sync log. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public retrieveSyncLog(id: string, options?: any) { - return ApiApiFp(this.configuration).retrieveSyncLog(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this unit. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public retrieveUnit(id: string, options?: any) { - return ApiApiFp(this.configuration).retrieveUnit(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this unit conversion. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public retrieveUnitConversion(id: string, options?: any) { - return ApiApiFp(this.configuration).retrieveUnitConversion(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this user. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public retrieveUser(id: string, options?: any) { - return ApiApiFp(this.configuration).retrieveUser(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this user file. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public retrieveUserFile(id: string, options?: any) { - return ApiApiFp(this.configuration).retrieveUserFile(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} user A unique value identifying this user preference. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public retrieveUserPreference(user: string, options?: any) { - return ApiApiFp(this.configuration).retrieveUserPreference(user, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this user space. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public retrieveUserSpace(id: string, options?: any) { - return ApiApiFp(this.configuration).retrieveUserSpace(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this view log. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public retrieveViewLog(id: string, options?: any) { - return ApiApiFp(this.configuration).retrieveViewLog(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * function to download a user file securely (wrapping as zip to prevent any context based XSS problems) temporary solution until a real file manager is implemented - * @param {string} fileId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public retrievedownloadFile(fileId: string, options?: any) { - return ApiApiFp(this.configuration).retrievedownloadFile(fileId, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public retrieveshareLink(id: string, options?: any) { - return ApiApiFp(this.configuration).retrieveshareLink(id, options).then((request) => request(this.axios, this.basePath)); + public apiSupermarketUpdate(id: number, supermarket: Supermarket, options?: any) { + return ApiApiFp(this.configuration).apiSupermarketUpdate(id, supermarket, options).then((request) => request(this.axios, this.basePath)); } /** * api endpoint to switch space function - * @param {string} spaceId + * @param {number} spaceId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public retrieveswitchActiveSpace(spaceId: string, options?: any) { - return ApiApiFp(this.configuration).retrieveswitchActiveSpace(spaceId, options).then((request) => request(this.axios, this.basePath)); + public apiSwitchActiveSpaceRetrieve(spaceId: number, options?: any) { + return ApiApiFp(this.configuration).apiSwitchActiveSpaceRetrieve(spaceId, options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {string} id A unique integer value identifying this food. - * @param {FoodShoppingUpdate} [foodShoppingUpdate] + * + * @param {Sync} sync * @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)); + public apiSyncCreate(sync: Sync, options?: any) { + return ApiApiFp(this.configuration).apiSyncCreate(sync, options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {string} id A unique integer value identifying this recipe. - * @param {RecipeShoppingUpdate} [recipeShoppingUpdate] + * + * @param {number} id A unique integer value identifying this sync. * @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)); + public apiSyncDestroy(id: number, options?: any) { + return ApiApiFp(this.configuration).apiSyncDestroy(id, options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {string} id A unique integer value identifying this access token. - * @param {AccessToken} [accessToken] + * * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public updateAccessToken(id: string, accessToken?: AccessToken, options?: any) { - return ApiApiFp(this.configuration).updateAccessToken(id, accessToken, options).then((request) => request(this.axios, this.basePath)); + public apiSyncList(options?: any) { + return ApiApiFp(this.configuration).apiSyncList(options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {string} id A unique integer value identifying this automation. - * @param {Automation} [automation] + * + * @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 updateAutomation(id: string, automation?: Automation, options?: any) { - return ApiApiFp(this.configuration).updateAutomation(id, automation, options).then((request) => request(this.axios, this.basePath)); + public apiSyncLogList(page?: number, pageSize?: number, options?: any) { + return ApiApiFp(this.configuration).apiSyncLogList(page, pageSize, options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {string} id A unique integer value identifying this bookmarklet import. - * @param {BookmarkletImport} [bookmarkletImport] + * + * @param {number} id A unique integer value identifying this sync log. * @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)); + public apiSyncLogRetrieve(id: number, options?: any) { + return ApiApiFp(this.configuration).apiSyncLogRetrieve(id, options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {string} id A unique integer value identifying this connector config. - * @param {ConnectorConfigConfig} [connectorConfigConfig] + * + * @param {number} id A unique integer value identifying this sync. + * @param {PatchedSync} [patchedSync] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public updateConnectorConfig(id: string, connectorConfigConfig?: ConnectorConfigConfig, options?: any) { - return ApiApiFp(this.configuration).updateConnectorConfig(id, connectorConfigConfig, options).then((request) => request(this.axios, this.basePath)); + public apiSyncPartialUpdate(id: number, patchedSync?: PatchedSync, options?: any) { + return ApiApiFp(this.configuration).apiSyncPartialUpdate(id, patchedSync, options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {string} id A unique integer value identifying this cook log. - * @param {CookLog} [cookLog] + * + * @param {number} id A unique integer value identifying this sync. * @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)); + public apiSyncRetrieve(id: number, options?: any) { + return ApiApiFp(this.configuration).apiSyncRetrieve(id, options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {string} id A unique integer value identifying this custom filter. - * @param {CustomFilter} [customFilter] + * + * @param {number} id A unique integer value identifying this sync. + * @param {Sync} sync * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public updateCustomFilter(id: string, customFilter?: CustomFilter, options?: any) { - return ApiApiFp(this.configuration).updateCustomFilter(id, customFilter, options).then((request) => request(this.axios, this.basePath)); + public apiSyncUpdate(id: number, sync: Sync, options?: any) { + return ApiApiFp(this.configuration).apiSyncUpdate(id, sync, options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {string} id A unique integer value identifying this export log. - * @param {ExportLog} [exportLog] + * + * @param {UnitConversion} unitConversion * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public updateExportLog(id: string, exportLog?: ExportLog, options?: any) { - return ApiApiFp(this.configuration).updateExportLog(id, exportLog, options).then((request) => request(this.axios, this.basePath)); + public apiUnitConversionCreate(unitConversion: UnitConversion, options?: any) { + return ApiApiFp(this.configuration).apiUnitConversionCreate(unitConversion, options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {string} id A unique integer value identifying this food. - * @param {Food} [food] + * + * @param {number} id A unique integer value identifying this unit conversion. * @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)); + public apiUnitConversionDestroy(id: number, options?: any) { + return ApiApiFp(this.configuration).apiUnitConversionDestroy(id, options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {string} id A unique integer value identifying this import log. - * @param {ImportLog} [importLog] + * + * @param {number} [foodId] ID of food to filter for * @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)); + public apiUnitConversionList(foodId?: number, options?: any) { + return ApiApiFp(this.configuration).apiUnitConversionList(foodId, options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {string} id A unique integer value identifying this ingredient. - * @param {Ingredient} [ingredient] + * + * @param {number} id A unique integer value identifying this unit conversion. + * @param {PatchedUnitConversion} [patchedUnitConversion] * @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)); + public apiUnitConversionPartialUpdate(id: number, patchedUnitConversion?: PatchedUnitConversion, options?: any) { + return ApiApiFp(this.configuration).apiUnitConversionPartialUpdate(id, patchedUnitConversion, options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {string} id A unique integer value identifying this invite link. - * @param {InviteLink} [inviteLink] + * + * @param {number} id A unique integer value identifying this unit conversion. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public updateInviteLink(id: string, inviteLink?: InviteLink, options?: any) { - return ApiApiFp(this.configuration).updateInviteLink(id, inviteLink, options).then((request) => request(this.axios, this.basePath)); + public apiUnitConversionRetrieve(id: number, options?: any) { + return ApiApiFp(this.configuration).apiUnitConversionRetrieve(id, options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {string} id A unique integer value identifying this keyword. - * @param {Keyword} [keyword] + * + * @param {number} id A unique integer value identifying this unit conversion. + * @param {UnitConversion} unitConversion * @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)); + public apiUnitConversionUpdate(id: number, unitConversion: UnitConversion, options?: any) { + return ApiApiFp(this.configuration).apiUnitConversionUpdate(id, unitConversion, options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {string} id A unique integer value identifying this meal plan. - * @param {MealPlan} [mealPlan] + * + * @param {Unit} unit * @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)); + public apiUnitCreate(unit: Unit, options?: any) { + return ApiApiFp(this.configuration).apiUnitCreate(unit, 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 {number} id A unique integer value identifying this unit. * @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)); + public apiUnitDestroy(id: number, options?: any) { + return ApiApiFp(this.configuration).apiUnitDestroy(id, options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {string} id A unique integer value identifying this open data category. - * @param {OpenDataCategory} [openDataCategory] + * + * @param {string} [limit] limit number of entries to return + * @param {number} [page] A page number within the paginated result set. + * @param {number} [pageSize] Number of results to return per page. + * @param {string} [query] lookup if query string is contained within the name, case insensitive + * @param {string} [random] randomly orders entries (only works together with limit) + * @param {string} [updatedAt] if model has an updated_at timestamp, filter only models updated at or after datetime * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public updateOpenDataCategory(id: string, openDataCategory?: OpenDataCategory, options?: any) { - return ApiApiFp(this.configuration).updateOpenDataCategory(id, openDataCategory, options).then((request) => request(this.axios, this.basePath)); + public apiUnitList(limit?: string, page?: number, pageSize?: number, query?: string, random?: string, updatedAt?: string, options?: any) { + return ApiApiFp(this.configuration).apiUnitList(limit, page, pageSize, query, random, updatedAt, options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {string} id A unique integer value identifying this open data conversion. - * @param {OpenDataConversion} [openDataConversion] + * + * @param {number} 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 updateOpenDataConversion(id: string, openDataConversion?: OpenDataConversion, options?: any) { - return ApiApiFp(this.configuration).updateOpenDataConversion(id, openDataConversion, options).then((request) => request(this.axios, this.basePath)); + public apiUnitMergeUpdate(id: number, target: string, unit: Unit, options?: any) { + return ApiApiFp(this.configuration).apiUnitMergeUpdate(id, target, unit, options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {string} id A unique integer value identifying this open data food. - * @param {OpenDataFood} [openDataFood] + * + * @param {number} id A unique integer value identifying this unit. + * @param {PatchedUnit} [patchedUnit] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public updateOpenDataFood(id: string, openDataFood?: OpenDataFood, options?: any) { - return ApiApiFp(this.configuration).updateOpenDataFood(id, openDataFood, options).then((request) => request(this.axios, this.basePath)); + public apiUnitPartialUpdate(id: number, patchedUnit?: PatchedUnit, options?: any) { + return ApiApiFp(this.configuration).apiUnitPartialUpdate(id, patchedUnit, options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {string} id A unique integer value identifying this open data property. - * @param {OpenDataProperty} [openDataProperty] + * + * @param {number} id A unique integer value identifying this unit. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public updateOpenDataProperty(id: string, openDataProperty?: OpenDataProperty, options?: any) { - return ApiApiFp(this.configuration).updateOpenDataProperty(id, openDataProperty, options).then((request) => request(this.axios, this.basePath)); + public apiUnitRetrieve(id: number, options?: any) { + return ApiApiFp(this.configuration).apiUnitRetrieve(id, options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {string} id A unique integer value identifying this open data store. - * @param {OpenDataStore} [openDataStore] + * + * @param {number} id A unique integer value identifying this unit. + * @param {Unit} unit * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public updateOpenDataStore(id: string, openDataStore?: OpenDataStore, options?: any) { - return ApiApiFp(this.configuration).updateOpenDataStore(id, openDataStore, options).then((request) => request(this.axios, this.basePath)); + public apiUnitUpdate(id: number, unit: Unit, options?: any) { + return ApiApiFp(this.configuration).apiUnitUpdate(id, unit, options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {string} id A unique integer value identifying this open data unit. - * @param {OpenDataUnit} [openDataUnit] + * + * @param {number} id + * @param {string} name + * @param {string} file + * @param {string} fileDownload + * @param {string} preview + * @param {number} fileSizeKb * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public updateOpenDataUnit(id: string, openDataUnit?: OpenDataUnit, options?: any) { - return ApiApiFp(this.configuration).updateOpenDataUnit(id, openDataUnit, options).then((request) => request(this.axios, this.basePath)); + public apiUserFileCreate(id: number, name: string, file: string, fileDownload: string, preview: string, fileSizeKb: number, options?: any) { + return ApiApiFp(this.configuration).apiUserFileCreate(id, name, file, fileDownload, preview, fileSizeKb, options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {string} id A unique integer value identifying this open data version. - * @param {OpenDataVersion} [openDataVersion] + * + * @param {number} id A unique integer value identifying this user file. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public updateOpenDataVersion(id: string, openDataVersion?: OpenDataVersion, options?: any) { - return ApiApiFp(this.configuration).updateOpenDataVersion(id, openDataVersion, options).then((request) => request(this.axios, this.basePath)); + public apiUserFileDestroy(id: number, options?: any) { + return ApiApiFp(this.configuration).apiUserFileDestroy(id, options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {string} id A unique integer value identifying this property. - * @param {Property} [property] + * + * @param {string} [limit] limit number of entries to return + * @param {string} [query] lookup if query string is contained within the name, case insensitive + * @param {string} [random] randomly orders entries (only works together with limit) + * @param {string} [updatedAt] if model has an updated_at timestamp, filter only models updated at or after datetime * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public updateProperty(id: string, property?: Property, options?: any) { - return ApiApiFp(this.configuration).updateProperty(id, property, options).then((request) => request(this.axios, this.basePath)); + public apiUserFileList(limit?: string, query?: string, random?: string, updatedAt?: string, options?: any) { + return ApiApiFp(this.configuration).apiUserFileList(limit, query, random, updatedAt, options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {string} id A unique integer value identifying this property type. - * @param {PropertyType} [propertyType] + * + * @param {number} id A unique integer value identifying this user file. + * @param {number} [id2] + * @param {string} [name] + * @param {string} [file] + * @param {string} [fileDownload] + * @param {string} [preview] + * @param {number} [fileSizeKb] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public updatePropertyType(id: string, propertyType?: PropertyType, options?: any) { - return ApiApiFp(this.configuration).updatePropertyType(id, propertyType, options).then((request) => request(this.axios, this.basePath)); + public apiUserFilePartialUpdate(id: number, id2?: number, name?: string, file?: string, fileDownload?: string, preview?: string, fileSizeKb?: number, options?: any) { + return ApiApiFp(this.configuration).apiUserFilePartialUpdate(id, id2, name, file, fileDownload, preview, fileSizeKb, options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {string} id A unique integer value identifying this recipe. - * @param {Recipe} [recipe] + * + * @param {number} id A unique integer value identifying this user file. * @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)); + public apiUserFileRetrieve(id: number, options?: any) { + return ApiApiFp(this.configuration).apiUserFileRetrieve(id, options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {string} id A unique integer value identifying this recipe book. - * @param {RecipeBook} [recipeBook] + * + * @param {number} id A unique integer value identifying this user file. + * @param {number} id2 + * @param {string} name + * @param {string} file + * @param {string} fileDownload + * @param {string} preview + * @param {number} fileSizeKb * @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)); + public apiUserFileUpdate(id: number, id2: number, name: string, file: string, fileDownload: string, preview: string, fileSizeKb: number, options?: any) { + return ApiApiFp(this.configuration).apiUserFileUpdate(id, id2, name, file, fileDownload, preview, fileSizeKb, options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {string} id A unique integer value identifying this recipe book entry. - * @param {RecipeBookEntry} [recipeBookEntry] + * list: optional parameters - **filter_list**: array of user id\'s to get names for * @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)); + public apiUserList(options?: any) { + return ApiApiFp(this.configuration).apiUserList(options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {string} id A unique integer value identifying this shopping list. - * @param {ShoppingList} [shoppingList] + * list: optional parameters - **filter_list**: array of user id\'s to get names for + * @param {number} id A unique integer value identifying this user. + * @param {PatchedUser} [patchedUser] * @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)); + public apiUserPartialUpdate(id: number, patchedUser?: PatchedUser, options?: any) { + return ApiApiFp(this.configuration).apiUserPartialUpdate(id, patchedUser, 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)); + public apiUserPreferenceList(options?: any) { + return ApiApiFp(this.configuration).apiUserPreferenceList(options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {string} id A unique integer value identifying this shopping list recipe. - * @param {ShoppingListRecipe} [shoppingListRecipe] + * + * @param {number} user A unique value identifying this user preference. + * @param {PatchedUserPreference} [patchedUserPreference] * @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)); + public apiUserPreferencePartialUpdate(user: number, patchedUserPreference?: PatchedUserPreference, options?: any) { + return ApiApiFp(this.configuration).apiUserPreferencePartialUpdate(user, patchedUserPreference, options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {string} id A unique integer value identifying this step. - * @param {Step} [step] + * + * @param {number} user A unique value identifying this user preference. * @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)); + public apiUserPreferenceRetrieve(user: number, options?: any) { + return ApiApiFp(this.configuration).apiUserPreferenceRetrieve(user, options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {string} id A unique integer value identifying this storage. - * @param {Storage} [storage] + * list: optional parameters - **filter_list**: array of user id\'s to get names for + * @param {number} id A unique integer value identifying this user. * @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)); + public apiUserRetrieve(id: number, options?: any) { + return ApiApiFp(this.configuration).apiUserRetrieve(id, options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {string} id A unique integer value identifying this supermarket. - * @param {Supermarket} [supermarket] + * + * @param {number} id A unique integer value identifying this user space. * @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)); + public apiUserSpaceDestroy(id: number, options?: any) { + return ApiApiFp(this.configuration).apiUserSpaceDestroy(id, options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {string} id A unique integer value identifying this supermarket category. - * @param {SupermarketCategory} [supermarketCategory] + * + * @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 updateSupermarketCategory(id: string, supermarketCategory?: SupermarketCategory, options?: any) { - return ApiApiFp(this.configuration).updateSupermarketCategory(id, supermarketCategory, options).then((request) => request(this.axios, this.basePath)); + public apiUserSpaceList(page?: number, pageSize?: number, options?: any) { + return ApiApiFp(this.configuration).apiUserSpaceList(page, pageSize, options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {string} id A unique integer value identifying this supermarket category relation. - * @param {SupermarketCategoryRelation} [supermarketCategoryRelation] + * + * @param {number} id A unique integer value identifying this user space. + * @param {PatchedUserSpace} [patchedUserSpace] * @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)); + public apiUserSpacePartialUpdate(id: number, patchedUserSpace?: PatchedUserSpace, options?: any) { + return ApiApiFp(this.configuration).apiUserSpacePartialUpdate(id, patchedUserSpace, options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {string} id A unique integer value identifying this sync. - * @param {Sync} [sync] + * + * @param {number} id A unique integer value identifying this user space. * @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)); + public apiUserSpaceRetrieve(id: number, options?: any) { + return ApiApiFp(this.configuration).apiUserSpaceRetrieve(id, options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {string} id A unique integer value identifying this unit. - * @param {Unit} [unit] + * + * @param {ViewLog} viewLog * @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)); + public apiViewLogCreate(viewLog: ViewLog, options?: any) { + return ApiApiFp(this.configuration).apiViewLogCreate(viewLog, options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {string} id A unique integer value identifying this unit conversion. - * @param {UnitConversion} [unitConversion] + * + * @param {number} id A unique integer value identifying this view log. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public updateUnitConversion(id: string, unitConversion?: UnitConversion, options?: any) { - return ApiApiFp(this.configuration).updateUnitConversion(id, unitConversion, options).then((request) => request(this.axios, this.basePath)); + public apiViewLogDestroy(id: number, options?: any) { + return ApiApiFp(this.configuration).apiViewLogDestroy(id, options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {string} id A unique integer value identifying this user file. - * @param {string} name - * @param {any} file - * @param {number} [id2] - * @param {string} [fileDownload] - * @param {string} [preview] - * @param {number} [fileSizeKb] + * + * @param {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 updateUserFile(id: string, name: string, file: any, id2?: number, fileDownload?: string, preview?: string, fileSizeKb?: number, options?: any) { - return ApiApiFp(this.configuration).updateUserFile(id, name, file, id2, fileDownload, preview, fileSizeKb, options).then((request) => request(this.axios, this.basePath)); + public apiViewLogList(page?: number, pageSize?: number, options?: any) { + return ApiApiFp(this.configuration).apiViewLogList(page, pageSize, options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {string} id A unique integer value identifying this view log. - * @param {ViewLog} [viewLog] + * + * @param {number} id A unique integer value identifying this view log. + * @param {PatchedViewLog} [patchedViewLog] * @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)); + public apiViewLogPartialUpdate(id: number, patchedViewLog?: PatchedViewLog, options?: any) { + return ApiApiFp(this.configuration).apiViewLogPartialUpdate(id, patchedViewLog, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {number} id A unique integer value identifying this view log. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiViewLogRetrieve(id: number, options?: any) { + return ApiApiFp(this.configuration).apiViewLogRetrieve(id, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {number} id A unique integer value identifying this view log. + * @param {ViewLog} viewLog + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiViewLogUpdate(id: number, viewLog: ViewLog, options?: any) { + return ApiApiFp(this.configuration).apiViewLogUpdate(id, viewLog, options).then((request) => request(this.axios, this.basePath)); } } @@ -24159,12 +22158,11 @@ export class ApiApi extends BaseAPI { export const ApiImportOpenDataApiAxiosParamCreator = function (configuration?: Configuration) { return { /** - * - * @param {any} [body] + * * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createImportOpenData: async (body?: any, options: any = {}): Promise => { + apiImportOpenDataCreate: async (options: any = {}): Promise => { const localVarPath = `/api-import-open-data/`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -24177,14 +22175,14 @@ export const ApiImportOpenDataApiAxiosParamCreator = function (configuration?: C const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - localVarHeaderParameter['Content-Type'] = 'application/json'; - + setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -24192,11 +22190,11 @@ export const ApiImportOpenDataApiAxiosParamCreator = function (configuration?: C }; }, /** - * + * * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listImportOpenDatas: async (options: any = {}): Promise => { + apiImportOpenDataRetrieve: async (options: any = {}): Promise => { const localVarPath = `/api-import-open-data/`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -24209,8 +22207,11 @@ export const ApiImportOpenDataApiAxiosParamCreator = function (configuration?: C const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -24231,22 +22232,21 @@ export const ApiImportOpenDataApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = ApiImportOpenDataApiAxiosParamCreator(configuration) return { /** - * - * @param {any} [body] + * * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async createImportOpenData(body?: any, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createImportOpenData(body, options); + async apiImportOpenDataCreate(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiImportOpenDataCreate(options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * + * * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async listImportOpenDatas(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await localVarAxiosParamCreator.listImportOpenDatas(options); + async apiImportOpenDataRetrieve(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiImportOpenDataRetrieve(options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, } @@ -24260,21 +22260,20 @@ export const ApiImportOpenDataApiFactory = function (configuration?: Configurati const localVarFp = ApiImportOpenDataApiFp(configuration) return { /** - * - * @param {any} [body] + * * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createImportOpenData(body?: any, options?: any): AxiosPromise { - return localVarFp.createImportOpenData(body, options).then((request) => request(axios, basePath)); + apiImportOpenDataCreate(options?: any): AxiosPromise { + return localVarFp.apiImportOpenDataCreate(options).then((request) => request(axios, basePath)); }, /** - * + * * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listImportOpenDatas(options?: any): AxiosPromise> { - return localVarFp.listImportOpenDatas(options).then((request) => request(axios, basePath)); + apiImportOpenDataRetrieve(options?: any): AxiosPromise { + return localVarFp.apiImportOpenDataRetrieve(options).then((request) => request(axios, basePath)); }, }; }; @@ -24287,24 +22286,23 @@ export const ApiImportOpenDataApiFactory = function (configuration?: Configurati */ export class ApiImportOpenDataApi extends BaseAPI { /** - * - * @param {any} [body] + * * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiImportOpenDataApi */ - public createImportOpenData(body?: any, options?: any) { - return ApiImportOpenDataApiFp(this.configuration).createImportOpenData(body, options).then((request) => request(this.axios, this.basePath)); + public apiImportOpenDataCreate(options?: any) { + return ApiImportOpenDataApiFp(this.configuration).apiImportOpenDataCreate(options).then((request) => request(this.axios, this.basePath)); } /** - * + * * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiImportOpenDataApi */ - public listImportOpenDatas(options?: any) { - return ApiImportOpenDataApiFp(this.configuration).listImportOpenDatas(options).then((request) => request(this.axios, this.basePath)); + public apiImportOpenDataRetrieve(options?: any) { + return ApiImportOpenDataApiFp(this.configuration).apiImportOpenDataRetrieve(options).then((request) => request(this.axios, this.basePath)); } } @@ -24316,18 +22314,20 @@ export class ApiImportOpenDataApi extends BaseAPI { export const ApiTokenAuthApiAxiosParamCreator = function (configuration?: Configuration) { return { /** - * - * @param {string} username - * @param {string} password - * @param {string} [token] + * + * @param {string} username + * @param {string} password + * @param {string} token * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createAuthToken: async (username: string, password: string, token?: string, options: any = {}): Promise => { + apiTokenAuthCreate: async (username: string, password: string, token: string, options: any = {}): Promise => { // verify required parameter 'username' is not null or undefined - assertParamExists('createAuthToken', 'username', username) + assertParamExists('apiTokenAuthCreate', 'username', username) // verify required parameter 'password' is not null or undefined - assertParamExists('createAuthToken', 'password', password) + assertParamExists('apiTokenAuthCreate', 'password', password) + // verify required parameter 'token' is not null or undefined + assertParamExists('apiTokenAuthCreate', 'token', token) const localVarPath = `/api-token-auth/`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -24341,22 +22341,25 @@ export const ApiTokenAuthApiAxiosParamCreator = function (configuration?: Config const localVarQueryParameter = {} as any; const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)(); + // authentication ApiKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - if (username !== undefined) { + + if (username !== undefined) { localVarFormParams.append('username', username as any); } - - if (password !== undefined) { + + if (password !== undefined) { localVarFormParams.append('password', password as any); } - - if (token !== undefined) { + + if (token !== undefined) { localVarFormParams.append('token', token as any); } - - + + localVarHeaderParameter['Content-Type'] = 'multipart/form-data'; - + setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -24378,15 +22381,15 @@ export const ApiTokenAuthApiFp = function(configuration?: Configuration) { const localVarAxiosParamCreator = ApiTokenAuthApiAxiosParamCreator(configuration) return { /** - * - * @param {string} username - * @param {string} password - * @param {string} [token] + * + * @param {string} username + * @param {string} password + * @param {string} token * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async createAuthToken(username: string, password: string, token?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createAuthToken(username, password, token, options); + async apiTokenAuthCreate(username: string, password: string, token: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiTokenAuthCreate(username, password, token, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, } @@ -24400,15 +22403,15 @@ export const ApiTokenAuthApiFactory = function (configuration?: Configuration, b const localVarFp = ApiTokenAuthApiFp(configuration) return { /** - * - * @param {string} username - * @param {string} password - * @param {string} [token] + * + * @param {string} username + * @param {string} password + * @param {string} token * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createAuthToken(username: string, password: string, token?: string, options?: any): AxiosPromise { - return localVarFp.createAuthToken(username, password, token, options).then((request) => request(axios, basePath)); + apiTokenAuthCreate(username: string, password: string, token: string, options?: any): AxiosPromise { + return localVarFp.apiTokenAuthCreate(username, password, token, options).then((request) => request(axios, basePath)); }, }; }; @@ -24421,16 +22424,16 @@ export const ApiTokenAuthApiFactory = function (configuration?: Configuration, b */ export class ApiTokenAuthApi extends BaseAPI { /** - * - * @param {string} username - * @param {string} password - * @param {string} [token] + * + * @param {string} username + * @param {string} password + * @param {string} token * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiTokenAuthApi */ - public createAuthToken(username: string, password: string, token?: string, options?: any) { - return ApiTokenAuthApiFp(this.configuration).createAuthToken(username, password, token, options).then((request) => request(this.axios, this.basePath)); + public apiTokenAuthCreate(username: string, password: string, token: string, options?: any) { + return ApiTokenAuthApiFp(this.configuration).apiTokenAuthCreate(username, password, token, options).then((request) => request(this.axios, this.basePath)); } } diff --git a/vue/src/utils/openapi/common.ts b/vue/src/utils/openapi/common.ts index 474258437..0abb2d3ef 100644 --- a/vue/src/utils/openapi/common.ts +++ b/vue/src/utils/openapi/common.ts @@ -1,10 +1,10 @@ /* tslint:disable */ /* eslint-disable */ /** - * Django Recipes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * Tandoor + * Tandoor API Docs * - * The version of the OpenAPI document: 1.0.0 + * The version of the OpenAPI document: 0.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/vue/src/utils/openapi/configuration.ts b/vue/src/utils/openapi/configuration.ts index 9d1d14086..4ebf2edc8 100644 --- a/vue/src/utils/openapi/configuration.ts +++ b/vue/src/utils/openapi/configuration.ts @@ -1,10 +1,10 @@ /* tslint:disable */ /* eslint-disable */ /** - * Django Recipes - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * Tandoor + * Tandoor API Docs * - * The version of the OpenAPI document: 1.0.0 + * The version of the OpenAPI document: 0.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).