diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES deleted file mode 100644 index 7b8955f78..000000000 --- a/.openapi-generator/FILES +++ /dev/null @@ -1,139 +0,0 @@ -apis/ApiApi.ts -apis/ApiImportOpenDataApi.ts -apis/ApiTokenAuthApi.ts -apis/index.ts -index.ts -models/AccessToken.ts -models/AuthToken.ts -models/AutoMealPlan.ts -models/Automation.ts -models/BookmarkletImport.ts -models/BookmarkletImportList.ts -models/ConnectorConfigConfig.ts -models/CookLog.ts -models/CustomFilter.ts -models/DefaultPageEnum.ts -models/DeleteEnum.ts -models/ExportLog.ts -models/Food.ts -models/FoodInheritField.ts -models/FoodPropertiesFoodUnit.ts -models/FoodRecipe.ts -models/FoodShoppingUpdate.ts -models/FoodSimple.ts -models/FoodSupermarketCategory.ts -models/Group.ts -models/ImportLog.ts -models/Ingredient.ts -models/IngredientFood.ts -models/InviteLink.ts -models/Keyword.ts -models/KeywordLabel.ts -models/MealPlan.ts -models/MealPlanRecipe.ts -models/MealType.ts -models/MethodEnum.ts -models/NutritionInformation.ts -models/PaginatedAutomationList.ts -models/PaginatedBookmarkletImportListList.ts -models/PaginatedCookLogList.ts -models/PaginatedCustomFilterList.ts -models/PaginatedExportLogList.ts -models/PaginatedFoodList.ts -models/PaginatedImportLogList.ts -models/PaginatedIngredientList.ts -models/PaginatedInviteLinkList.ts -models/PaginatedKeywordList.ts -models/PaginatedMealPlanList.ts -models/PaginatedMealTypeList.ts -models/PaginatedPropertyList.ts -models/PaginatedPropertyTypeList.ts -models/PaginatedRecipeBookEntryList.ts -models/PaginatedRecipeBookList.ts -models/PaginatedRecipeOverviewList.ts -models/PaginatedShoppingListEntryList.ts -models/PaginatedShoppingListRecipeList.ts -models/PaginatedStepList.ts -models/PaginatedSupermarketCategoryList.ts -models/PaginatedSupermarketCategoryRelationList.ts -models/PaginatedSupermarketList.ts -models/PaginatedSyncList.ts -models/PaginatedSyncLogList.ts -models/PaginatedUnitConversionList.ts -models/PaginatedUnitList.ts -models/PaginatedUserFileList.ts -models/PaginatedUserSpaceList.ts -models/PaginatedViewLogList.ts -models/PatchedAccessToken.ts -models/PatchedAutomation.ts -models/PatchedBookmarkletImport.ts -models/PatchedConnectorConfigConfig.ts -models/PatchedCookLog.ts -models/PatchedCustomFilter.ts -models/PatchedExportLog.ts -models/PatchedFood.ts -models/PatchedImportLog.ts -models/PatchedIngredient.ts -models/PatchedInviteLink.ts -models/PatchedKeyword.ts -models/PatchedMealPlan.ts -models/PatchedMealType.ts -models/PatchedProperty.ts -models/PatchedPropertyType.ts -models/PatchedRecipe.ts -models/PatchedRecipeBook.ts -models/PatchedRecipeBookEntry.ts -models/PatchedRecipeBookFilter.ts -models/PatchedRecipeNutrition.ts -models/PatchedShoppingListEntry.ts -models/PatchedShoppingListRecipe.ts -models/PatchedSpace.ts -models/PatchedSpaceImage.ts -models/PatchedStep.ts -models/PatchedStorage.ts -models/PatchedSupermarket.ts -models/PatchedSupermarketCategory.ts -models/PatchedSupermarketCategoryRelation.ts -models/PatchedSync.ts -models/PatchedUnit.ts -models/PatchedUnitConversion.ts -models/PatchedUser.ts -models/PatchedUserPreference.ts -models/PatchedUserSpace.ts -models/PatchedViewLog.ts -models/Property.ts -models/PropertyType.ts -models/Recipe.ts -models/RecipeBook.ts -models/RecipeBookEntry.ts -models/RecipeFlat.ts -models/RecipeImage.ts -models/RecipeOverview.ts -models/RecipeShoppingUpdate.ts -models/RecipeSimple.ts -models/ShoppingListEntry.ts -models/ShoppingListEntryBulk.ts -models/ShoppingListRecipe.ts -models/Space.ts -models/SpaceNavTextColorEnum.ts -models/SpaceThemeEnum.ts -models/Step.ts -models/Storage.ts -models/Supermarket.ts -models/SupermarketCategory.ts -models/SupermarketCategoryRelation.ts -models/Sync.ts -models/SyncLog.ts -models/ThemeEnum.ts -models/TypeEnum.ts -models/Unit.ts -models/UnitConversion.ts -models/User.ts -models/UserFile.ts -models/UserFileView.ts -models/UserPreference.ts -models/UserPreferenceNavTextColorEnum.ts -models/UserSpace.ts -models/ViewLog.ts -models/index.ts -runtime.ts diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION deleted file mode 100644 index 0df17dd0f..000000000 --- a/.openapi-generator/VERSION +++ /dev/null @@ -1 +0,0 @@ -6.2.1 \ No newline at end of file diff --git a/cookbook/tests/api/test_api_food.py b/cookbook/tests/api/test_api_food.py index ae6ec111b..2fccc8684 100644 --- a/cookbook/tests/api/test_api_food.py +++ b/cookbook/tests/api/test_api_food.py @@ -554,8 +554,13 @@ def test_inherit(request, obj_tree_1, field, inherit, new_val, u1_s1): @pytest.mark.parametrize("obj_tree_1", [ - ({'has_category': True, 'inherit': False, 'ignore_shopping': True, - 'substitute_children': True, 'substitute_siblings': True}), + ({ + 'has_category': True, + 'inherit': False, + 'ignore_shopping': True, + 'substitute_children': True, + 'substitute_siblings': True, + }), ], indirect=['obj_tree_1']) @pytest.mark.parametrize("global_reset", [True, False]) @pytest.mark.parametrize("field", ['ignore_shopping', 'substitute_children', 'substitute_siblings', 'supermarket_category']) @@ -575,12 +580,10 @@ def test_reset_inherit_space_fields(obj_tree_1, space_1, global_reset, field): if global_reset: # set default inherit fields - space_1.food_inherit.add( - *Food.inheritable_fields.values_list('id', flat=True)) + space_1.food_inherit.add(*Food.inheritable_fields.values_list('id', flat=True)) parent.reset_inheritance(space=space_1) else: - obj_tree_1.child_inherit_fields.set( - Food.inheritable_fields.values_list('id', flat=True)) + obj_tree_1.child_inherit_fields.set(Food.inheritable_fields.values_list('id', flat=True)) obj_tree_1.save() parent.reset_inheritance(space=space_1, food=obj_tree_1) # djangotree bypasses ORM and need to be retrieved again @@ -588,14 +591,18 @@ def test_reset_inherit_space_fields(obj_tree_1, space_1, global_reset, field): parent = Food.objects.get(id=parent.id) child = Food.objects.get(id=child.id) - assert (getattr(parent, field) == getattr( - obj_tree_1, field)) == global_reset + assert (getattr(parent, field) == getattr(obj_tree_1, field)) == global_reset assert getattr(obj_tree_1, field) == getattr(child, field) @pytest.mark.parametrize("obj_tree_1", [ - ({'has_category': True, 'inherit': False, 'ignore_shopping': True, - 'substitute_children': True, 'substitute_siblings': True}), + ({ + 'has_category': True, + 'inherit': False, + 'ignore_shopping': True, + 'substitute_children': True, + 'substitute_siblings': True, + }), ], indirect=['obj_tree_1']) @pytest.mark.parametrize("field", ['ignore_shopping', 'substitute_children', 'substitute_siblings', 'supermarket_category']) def test_reset_inherit_no_food_instances(obj_tree_1, space_1, field): @@ -604,8 +611,7 @@ def test_reset_inherit_no_food_instances(obj_tree_1, space_1, field): Food.objects.all().delete() # set default inherit fields - space_1.food_inherit.add( - *Food.inheritable_fields.values_list('id', flat=True)) + space_1.food_inherit.add(*Food.inheritable_fields.values_list('id', flat=True)) parent.reset_inheritance(space=space_1) diff --git a/vue/src/utils/openapi/api.ts b/vue/src/utils/openapi/api.ts index 3483cf240..d65c2e025 100644 --- a/vue/src/utils/openapi/api.ts +++ b/vue/src/utils/openapi/api.ts @@ -64,6 +64,31 @@ export interface AccessToken { */ updated: string; } +/** + * + * @export + * @interface AccessTokenRequest + */ +export interface AccessTokenRequest { + /** + * + * @type {string} + * @memberof AccessTokenRequest + */ + expires: string; + /** + * + * @type {string} + * @memberof AccessTokenRequest + */ + scope?: string; + /** + * + * @type {number} + * @memberof AccessTokenRequest + */ + id?: number; +} /** * * @export @@ -75,19 +100,26 @@ export interface AuthToken { * @type {string} * @memberof AuthToken */ + token: string; +} +/** + * + * @export + * @interface AuthTokenRequest + */ +export interface AuthTokenRequest { + /** + * + * @type {string} + * @memberof AuthTokenRequest + */ username: string; /** * * @type {string} - * @memberof AuthToken + * @memberof AuthTokenRequest */ password: string; - /** - * - * @type {string} - * @memberof AuthToken - */ - token: string; } /** * @@ -138,6 +170,55 @@ export interface AutoMealPlan { */ addshopping: boolean; } +/** + * + * @export + * @interface AutoMealPlanRequest + */ +export interface AutoMealPlanRequest { + /** + * + * @type {string} + * @memberof AutoMealPlanRequest + */ + start_date: string; + /** + * + * @type {string} + * @memberof AutoMealPlanRequest + */ + end_date: string; + /** + * + * @type {number} + * @memberof AutoMealPlanRequest + */ + meal_type_id: number; + /** + * + * @type {Array} + * @memberof AutoMealPlanRequest + */ + keyword_ids: Array; + /** + * + * @type {number} + * @memberof AutoMealPlanRequest + */ + servings: number; + /** + * + * @type {Array} + * @memberof AutoMealPlanRequest + */ + shared?: Array | null; + /** + * + * @type {boolean} + * @memberof AutoMealPlanRequest + */ + addshopping: boolean; +} /** * * @export @@ -205,6 +286,67 @@ export interface Automation { */ created_by: number; } +/** + * + * @export + * @interface AutomationRequest + */ +export interface AutomationRequest { + /** + * + * @type {TypeEnum} + * @memberof AutomationRequest + */ + type: TypeEnum; + /** + * + * @type {string} + * @memberof AutomationRequest + */ + name?: string; + /** + * + * @type {string} + * @memberof AutomationRequest + */ + description?: string | null; + /** + * + * @type {string} + * @memberof AutomationRequest + */ + param_1?: string | null; + /** + * + * @type {string} + * @memberof AutomationRequest + */ + param_2?: string | null; + /** + * + * @type {string} + * @memberof AutomationRequest + */ + param_3?: string | null; + /** + * + * @type {number} + * @memberof AutomationRequest + */ + order?: number; + /** + * + * @type {boolean} + * @memberof AutomationRequest + */ + disabled?: boolean; + /** + * + * @type {number} + * @memberof AutomationRequest + */ + id?: number; +} /** * * @export @@ -273,6 +415,31 @@ export interface BookmarkletImportList { */ created_at: string; } +/** + * + * @export + * @interface BookmarkletImportRequest + */ +export interface BookmarkletImportRequest { + /** + * + * @type {string} + * @memberof BookmarkletImportRequest + */ + url?: string | null; + /** + * + * @type {string} + * @memberof BookmarkletImportRequest + */ + html: string; + /** + * + * @type {number} + * @memberof BookmarkletImportRequest + */ + id?: number; +} /** * * @export @@ -297,12 +464,6 @@ export interface ConnectorConfigConfig { * @memberof ConnectorConfigConfig */ url?: string | null; - /** - * - * @type {string} - * @memberof ConnectorConfigConfig - */ - token?: string | null; /** * * @type {string} @@ -340,6 +501,67 @@ export interface ConnectorConfigConfig { */ created_by: number; } +/** + * + * @export + * @interface ConnectorConfigConfigRequest + */ +export interface ConnectorConfigConfigRequest { + /** + * + * @type {string} + * @memberof ConnectorConfigConfigRequest + */ + name: string; + /** + * + * @type {string} + * @memberof ConnectorConfigConfigRequest + */ + url?: string | null; + /** + * + * @type {string} + * @memberof ConnectorConfigConfigRequest + */ + token?: string | null; + /** + * + * @type {string} + * @memberof ConnectorConfigConfigRequest + */ + todo_entity?: string | null; + /** + * Is Connector Enabled + * @type {boolean} + * @memberof ConnectorConfigConfigRequest + */ + enabled?: boolean; + /** + * + * @type {boolean} + * @memberof ConnectorConfigConfigRequest + */ + on_shopping_list_entry_created_enabled?: boolean; + /** + * + * @type {boolean} + * @memberof ConnectorConfigConfigRequest + */ + on_shopping_list_entry_updated_enabled?: boolean; + /** + * + * @type {boolean} + * @memberof ConnectorConfigConfigRequest + */ + on_shopping_list_entry_deleted_enabled?: boolean; + /** + * + * @type {number} + * @memberof ConnectorConfigConfigRequest + */ + id?: number; +} /** * * @export @@ -395,6 +617,49 @@ export interface CookLog { */ updated_at: string; } +/** + * + * @export + * @interface CookLogRequest + */ +export interface CookLogRequest { + /** + * + * @type {number} + * @memberof CookLogRequest + */ + recipe: number; + /** + * + * @type {number} + * @memberof CookLogRequest + */ + servings?: number | null; + /** + * + * @type {number} + * @memberof CookLogRequest + */ + rating?: number | null; + /** + * + * @type {string} + * @memberof CookLogRequest + */ + comment?: string | null; + /** + * + * @type {string} + * @memberof CookLogRequest + */ + created_at?: string; + /** + * + * @type {number} + * @memberof CookLogRequest + */ + id?: number; +} /** * Adds nested create feature * @export @@ -432,6 +697,37 @@ export interface CustomFilter { */ created_by: number; } +/** + * Adds nested create feature + * @export + * @interface CustomFilterRequest + */ +export interface CustomFilterRequest { + /** + * + * @type {string} + * @memberof CustomFilterRequest + */ + name: string; + /** + * + * @type {string} + * @memberof CustomFilterRequest + */ + search: string; + /** + * + * @type {Array} + * @memberof CustomFilterRequest + */ + shared?: Array; + /** + * + * @type {number} + * @memberof CustomFilterRequest + */ + id?: number; +} /** * * `SEARCH` - Search * `PLAN` - Meal-Plan * `BOOKS` - Books * `SHOPPING` - Shopping * @export @@ -520,6 +816,61 @@ export interface ExportLog { */ created_at: string; } +/** + * + * @export + * @interface ExportLogRequest + */ +export interface ExportLogRequest { + /** + * + * @type {string} + * @memberof ExportLogRequest + */ + type: string; + /** + * + * @type {string} + * @memberof ExportLogRequest + */ + msg?: string; + /** + * + * @type {boolean} + * @memberof ExportLogRequest + */ + running?: boolean; + /** + * + * @type {number} + * @memberof ExportLogRequest + */ + total_recipes?: number; + /** + * + * @type {number} + * @memberof ExportLogRequest + */ + exported_recipes?: number; + /** + * + * @type {number} + * @memberof ExportLogRequest + */ + cache_duration?: number; + /** + * + * @type {boolean} + * @memberof ExportLogRequest + */ + possibly_not_expired?: boolean; + /** + * + * @type {number} + * @memberof ExportLogRequest + */ + id?: 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 @@ -696,6 +1047,152 @@ export interface FoodInheritField { */ field?: 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 FoodInheritFieldRequest + */ +export interface FoodInheritFieldRequest { + /** + * + * @type {string} + * @memberof FoodInheritFieldRequest + */ + name?: string | null; + /** + * + * @type {string} + * @memberof FoodInheritFieldRequest + */ + field?: string | null; + /** + * + * @type {number} + * @memberof FoodInheritFieldRequest + */ + id?: 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 FoodRequest + */ +export interface FoodRequest { + /** + * + * @type {string} + * @memberof FoodRequest + */ + name: string; + /** + * + * @type {string} + * @memberof FoodRequest + */ + plural_name?: string | null; + /** + * + * @type {string} + * @memberof FoodRequest + */ + description?: string; + /** + * + * @type {RecipeSimpleRequest} + * @memberof FoodRequest + */ + recipe?: RecipeSimpleRequest | null; + /** + * + * @type {string} + * @memberof FoodRequest + */ + url?: string | null; + /** + * + * @type {Array} + * @memberof FoodRequest + */ + properties?: Array | null; + /** + * + * @type {number} + * @memberof FoodRequest + */ + properties_food_amount?: number; + /** + * + * @type {UnitRequest} + * @memberof FoodRequest + */ + properties_food_unit?: UnitRequest | null; + /** + * + * @type {number} + * @memberof FoodRequest + */ + fdc_id?: number | null; + /** + * + * @type {boolean} + * @memberof FoodRequest + */ + food_onhand?: boolean | null; + /** + * + * @type {SupermarketCategoryRequest} + * @memberof FoodRequest + */ + supermarket_category?: SupermarketCategoryRequest | null; + /** + * + * @type {Array} + * @memberof FoodRequest + */ + inherit_fields?: Array | null; + /** + * + * @type {boolean} + * @memberof FoodRequest + */ + ignore_shopping?: boolean; + /** + * + * @type {Array} + * @memberof FoodRequest + */ + substitute?: Array | null; + /** + * + * @type {boolean} + * @memberof FoodRequest + */ + substitute_siblings?: boolean; + /** + * + * @type {boolean} + * @memberof FoodRequest + */ + substitute_children?: boolean; + /** + * + * @type {Array} + * @memberof FoodRequest + */ + child_inherit_fields?: Array | null; + /** + * + * @type {string} + * @memberof FoodRequest + */ + open_data_slug?: string | null; + /** + * + * @type {number} + * @memberof FoodRequest + */ + id?: number; +} /** * * @export @@ -708,24 +1205,37 @@ export interface FoodShoppingUpdate { * @memberof FoodShoppingUpdate */ id: number; +} +/** + * + * @export + * @interface FoodShoppingUpdateRequest + */ +export interface FoodShoppingUpdateRequest { /** * Amount of food to add to the shopping list * @type {number} - * @memberof FoodShoppingUpdate + * @memberof FoodShoppingUpdateRequest */ amount?: number | null; /** * ID of unit to use for the shopping list * @type {number} - * @memberof FoodShoppingUpdate + * @memberof FoodShoppingUpdateRequest */ unit?: number | null; /** * When set to true will delete all food from active shopping lists. * `true` - true * @type {DeleteEnum} - * @memberof FoodShoppingUpdate + * @memberof FoodShoppingUpdateRequest */ _delete: DeleteEnum | null; + /** + * + * @type {number} + * @memberof FoodShoppingUpdateRequest + */ + id?: number; } /** * @@ -752,6 +1262,31 @@ export interface FoodSimple { */ plural_name?: string | null; } +/** + * + * @export + * @interface FoodSimpleRequest + */ +export interface FoodSimpleRequest { + /** + * + * @type {string} + * @memberof FoodSimpleRequest + */ + name: string; + /** + * + * @type {string} + * @memberof FoodSimpleRequest + */ + plural_name?: string | null; + /** + * + * @type {number} + * @memberof FoodSimpleRequest + */ + id?: 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 @@ -771,6 +1306,25 @@ export interface Group { */ name: 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 GroupRequest + */ +export interface GroupRequest { + /** + * + * @type {string} + * @memberof GroupRequest + */ + name: string; + /** + * + * @type {number} + * @memberof GroupRequest + */ + id?: number; +} /** * * @export @@ -832,6 +1386,49 @@ export interface ImportLog { */ created_at: string; } +/** + * + * @export + * @interface ImportLogRequest + */ +export interface ImportLogRequest { + /** + * + * @type {string} + * @memberof ImportLogRequest + */ + type: string; + /** + * + * @type {string} + * @memberof ImportLogRequest + */ + msg?: string; + /** + * + * @type {boolean} + * @memberof ImportLogRequest + */ + running?: boolean; + /** + * + * @type {number} + * @memberof ImportLogRequest + */ + total_recipes?: number; + /** + * + * @type {number} + * @memberof ImportLogRequest + */ + imported_recipes?: number; + /** + * + * @type {number} + * @memberof ImportLogRequest + */ + id?: number; +} /** * Adds nested create feature * @export @@ -917,6 +1514,92 @@ export interface Ingredient { */ always_use_plural_food?: boolean; } +/** + * Adds nested create feature + * @export + * @interface IngredientRequest + */ +export interface IngredientRequest { + /** + * + * @type {FoodRequest} + * @memberof IngredientRequest + */ + food: FoodRequest | null; + /** + * + * @type {UnitRequest} + * @memberof IngredientRequest + */ + unit: UnitRequest | null; + /** + * + * @type {number} + * @memberof IngredientRequest + */ + amount: number; + /** + * + * @type {string} + * @memberof IngredientRequest + */ + note?: string | null; + /** + * + * @type {number} + * @memberof IngredientRequest + */ + order?: number; + /** + * + * @type {boolean} + * @memberof IngredientRequest + */ + is_header?: boolean; + /** + * + * @type {boolean} + * @memberof IngredientRequest + */ + no_amount?: boolean; + /** + * + * @type {string} + * @memberof IngredientRequest + */ + original_text?: string | null; + /** + * + * @type {boolean} + * @memberof IngredientRequest + */ + always_use_plural_unit?: boolean; + /** + * + * @type {boolean} + * @memberof IngredientRequest + */ + always_use_plural_food?: boolean; + /** + * + * @type {number} + * @memberof IngredientRequest + */ + id?: number; +} +/** + * + * @export + * @interface IngredientStringRequest + */ +export interface IngredientStringRequest { + /** + * + * @type {string} + * @memberof IngredientStringRequest + */ + text: string; +} /** * Adds nested create feature * @export @@ -984,6 +1667,55 @@ export interface InviteLink { */ created_at: string; } +/** + * Adds nested create feature + * @export + * @interface InviteLinkRequest + */ +export interface InviteLinkRequest { + /** + * + * @type {string} + * @memberof InviteLinkRequest + */ + email?: string; + /** + * + * @type {GroupRequest} + * @memberof InviteLinkRequest + */ + group: GroupRequest; + /** + * + * @type {string} + * @memberof InviteLinkRequest + */ + valid_until?: string; + /** + * + * @type {number} + * @memberof InviteLinkRequest + */ + used_by?: number | null; + /** + * + * @type {boolean} + * @memberof InviteLinkRequest + */ + reusable?: boolean; + /** + * + * @type {string} + * @memberof InviteLinkRequest + */ + internal_note?: string | null; + /** + * + * @type {number} + * @memberof InviteLinkRequest + */ + id?: 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 @@ -1064,6 +1796,31 @@ export interface KeywordLabel { */ label: 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 KeywordRequest + */ +export interface KeywordRequest { + /** + * + * @type {string} + * @memberof KeywordRequest + */ + name: string; + /** + * + * @type {string} + * @memberof KeywordRequest + */ + description?: string; + /** + * + * @type {number} + * @memberof KeywordRequest + */ + id?: number; +} /** * Adds nested create feature * @export @@ -1155,6 +1912,67 @@ export interface MealPlan { */ shopping: boolean; } +/** + * Adds nested create feature + * @export + * @interface MealPlanRequest + */ +export interface MealPlanRequest { + /** + * + * @type {string} + * @memberof MealPlanRequest + */ + title?: string; + /** + * + * @type {RecipeOverviewRequest} + * @memberof MealPlanRequest + */ + recipe?: RecipeOverviewRequest | null; + /** + * + * @type {number} + * @memberof MealPlanRequest + */ + servings: number; + /** + * + * @type {string} + * @memberof MealPlanRequest + */ + note?: string; + /** + * + * @type {string} + * @memberof MealPlanRequest + */ + from_date: string; + /** + * + * @type {string} + * @memberof MealPlanRequest + */ + to_date?: string; + /** + * + * @type {MealTypeRequest} + * @memberof MealPlanRequest + */ + meal_type: MealTypeRequest; + /** + * + * @type {Array} + * @memberof MealPlanRequest + */ + shared?: Array | null; + /** + * + * @type {number} + * @memberof MealPlanRequest + */ + id?: number; +} /** * Adds nested create feature * @export @@ -1198,6 +2016,43 @@ export interface MealType { */ created_by: number; } +/** + * Adds nested create feature + * @export + * @interface MealTypeRequest + */ +export interface MealTypeRequest { + /** + * + * @type {string} + * @memberof MealTypeRequest + */ + name: string; + /** + * + * @type {number} + * @memberof MealTypeRequest + */ + order?: number; + /** + * + * @type {string} + * @memberof MealTypeRequest + */ + color?: string | null; + /** + * + * @type {boolean} + * @memberof MealTypeRequest + */ + _default?: boolean; + /** + * + * @type {number} + * @memberof MealTypeRequest + */ + id?: number; +} /** * * `DB` - Dropbox * `NEXTCLOUD` - Nextcloud * `LOCAL` - Local * @export @@ -1252,6 +2107,49 @@ export interface NutritionInformation { */ source?: string | null; } +/** + * + * @export + * @interface NutritionInformationRequest + */ +export interface NutritionInformationRequest { + /** + * + * @type {number} + * @memberof NutritionInformationRequest + */ + carbohydrates: number; + /** + * + * @type {number} + * @memberof NutritionInformationRequest + */ + fats: number; + /** + * + * @type {number} + * @memberof NutritionInformationRequest + */ + proteins: number; + /** + * + * @type {number} + * @memberof NutritionInformationRequest + */ + calories: number; + /** + * + * @type {string} + * @memberof NutritionInformationRequest + */ + source?: string | null; + /** + * + * @type {number} + * @memberof NutritionInformationRequest + */ + id?: number; +} /** * * @export @@ -2185,2244 +3083,1765 @@ export interface PaginatedViewLogList { /** * * @export - * @interface PatchedAccessToken + * @interface ParsedIngredient */ -export interface PatchedAccessToken { +export interface ParsedIngredient { /** * * @type {number} - * @memberof PatchedAccessToken + * @memberof ParsedIngredient */ - id?: number; + amount: number; /** * * @type {string} - * @memberof PatchedAccessToken + * @memberof ParsedIngredient */ - token?: string; + unit: string; /** * * @type {string} - * @memberof PatchedAccessToken + * @memberof ParsedIngredient + */ + food: string; + /** + * + * @type {string} + * @memberof ParsedIngredient + */ + note: string; +} +/** + * + * @export + * @interface PatchedAccessTokenRequest + */ +export interface PatchedAccessTokenRequest { + /** + * + * @type {string} + * @memberof PatchedAccessTokenRequest */ expires?: string; /** * * @type {string} - * @memberof PatchedAccessToken + * @memberof PatchedAccessTokenRequest */ scope?: string; /** * - * @type {string} - * @memberof PatchedAccessToken + * @type {number} + * @memberof PatchedAccessTokenRequest */ - created?: string; - /** - * - * @type {string} - * @memberof PatchedAccessToken - */ - updated?: string; + id?: number; } /** * * @export - * @interface PatchedAutomation + * @interface PatchedAutomationRequest */ -export interface PatchedAutomation { - /** - * - * @type {number} - * @memberof PatchedAutomation - */ - id?: number; +export interface PatchedAutomationRequest { /** * * @type {TypeEnum} - * @memberof PatchedAutomation + * @memberof PatchedAutomationRequest */ type?: TypeEnum; /** * * @type {string} - * @memberof PatchedAutomation + * @memberof PatchedAutomationRequest */ name?: string; /** * * @type {string} - * @memberof PatchedAutomation + * @memberof PatchedAutomationRequest */ description?: string | null; /** * * @type {string} - * @memberof PatchedAutomation + * @memberof PatchedAutomationRequest */ param_1?: string | null; /** * * @type {string} - * @memberof PatchedAutomation + * @memberof PatchedAutomationRequest */ param_2?: string | null; /** * * @type {string} - * @memberof PatchedAutomation + * @memberof PatchedAutomationRequest */ param_3?: string | null; /** * * @type {number} - * @memberof PatchedAutomation + * @memberof PatchedAutomationRequest */ order?: number; /** * * @type {boolean} - * @memberof PatchedAutomation + * @memberof PatchedAutomationRequest */ disabled?: boolean; /** * * @type {number} - * @memberof PatchedAutomation + * @memberof PatchedAutomationRequest */ - created_by?: number; + id?: number; } /** * * @export - * @interface PatchedBookmarkletImport + * @interface PatchedBookmarkletImportRequest */ -export interface PatchedBookmarkletImport { - /** - * - * @type {number} - * @memberof PatchedBookmarkletImport - */ - id?: number; +export interface PatchedBookmarkletImportRequest { /** * * @type {string} - * @memberof PatchedBookmarkletImport + * @memberof PatchedBookmarkletImportRequest */ url?: string | null; /** * * @type {string} - * @memberof PatchedBookmarkletImport + * @memberof PatchedBookmarkletImportRequest */ html?: string; /** * * @type {number} - * @memberof PatchedBookmarkletImport + * @memberof PatchedBookmarkletImportRequest */ - created_by?: number; - /** - * - * @type {string} - * @memberof PatchedBookmarkletImport - */ - created_at?: string; + id?: number; } /** * * @export - * @interface PatchedConnectorConfigConfig + * @interface PatchedConnectorConfigConfigRequest */ -export interface PatchedConnectorConfigConfig { - /** - * - * @type {number} - * @memberof PatchedConnectorConfigConfig - */ - id?: number; +export interface PatchedConnectorConfigConfigRequest { /** * * @type {string} - * @memberof PatchedConnectorConfigConfig + * @memberof PatchedConnectorConfigConfigRequest */ name?: string; /** * * @type {string} - * @memberof PatchedConnectorConfigConfig + * @memberof PatchedConnectorConfigConfigRequest */ url?: string | null; /** * * @type {string} - * @memberof PatchedConnectorConfigConfig + * @memberof PatchedConnectorConfigConfigRequest */ token?: string | null; /** * * @type {string} - * @memberof PatchedConnectorConfigConfig + * @memberof PatchedConnectorConfigConfigRequest */ todo_entity?: string | null; /** * Is Connector Enabled * @type {boolean} - * @memberof PatchedConnectorConfigConfig + * @memberof PatchedConnectorConfigConfigRequest */ enabled?: boolean; /** * * @type {boolean} - * @memberof PatchedConnectorConfigConfig + * @memberof PatchedConnectorConfigConfigRequest */ on_shopping_list_entry_created_enabled?: boolean; /** * * @type {boolean} - * @memberof PatchedConnectorConfigConfig + * @memberof PatchedConnectorConfigConfigRequest */ on_shopping_list_entry_updated_enabled?: boolean; /** * * @type {boolean} - * @memberof PatchedConnectorConfigConfig + * @memberof PatchedConnectorConfigConfigRequest */ on_shopping_list_entry_deleted_enabled?: boolean; /** * * @type {number} - * @memberof PatchedConnectorConfigConfig + * @memberof PatchedConnectorConfigConfigRequest */ - created_by?: number; + id?: number; } /** * * @export - * @interface PatchedCookLog + * @interface PatchedCookLogRequest */ -export interface PatchedCookLog { +export interface PatchedCookLogRequest { /** * * @type {number} - * @memberof PatchedCookLog - */ - id?: number; - /** - * - * @type {number} - * @memberof PatchedCookLog + * @memberof PatchedCookLogRequest */ recipe?: number; /** * * @type {number} - * @memberof PatchedCookLog + * @memberof PatchedCookLogRequest */ servings?: number | null; /** * * @type {number} - * @memberof PatchedCookLog + * @memberof PatchedCookLogRequest */ rating?: number | null; /** * * @type {string} - * @memberof PatchedCookLog + * @memberof PatchedCookLogRequest */ comment?: string | null; - /** - * - * @type {User} - * @memberof PatchedCookLog - */ - created_by?: User; /** * * @type {string} - * @memberof PatchedCookLog + * @memberof PatchedCookLogRequest */ created_at?: string; /** * - * @type {string} - * @memberof PatchedCookLog + * @type {number} + * @memberof PatchedCookLogRequest */ - updated_at?: string; + id?: number; } /** * Adds nested create feature * @export - * @interface PatchedCustomFilter + * @interface PatchedCustomFilterRequest */ -export interface PatchedCustomFilter { - /** - * - * @type {number} - * @memberof PatchedCustomFilter - */ - id?: number; +export interface PatchedCustomFilterRequest { /** * * @type {string} - * @memberof PatchedCustomFilter + * @memberof PatchedCustomFilterRequest */ name?: string; /** * * @type {string} - * @memberof PatchedCustomFilter + * @memberof PatchedCustomFilterRequest */ search?: string; /** * - * @type {Array} - * @memberof PatchedCustomFilter + * @type {Array} + * @memberof PatchedCustomFilterRequest */ - shared?: Array; + shared?: Array; /** * * @type {number} - * @memberof PatchedCustomFilter + * @memberof PatchedCustomFilterRequest */ - created_by?: number; + id?: number; } /** * * @export - * @interface PatchedExportLog + * @interface PatchedExportLogRequest */ -export interface PatchedExportLog { - /** - * - * @type {number} - * @memberof PatchedExportLog - */ - id?: number; +export interface PatchedExportLogRequest { /** * * @type {string} - * @memberof PatchedExportLog + * @memberof PatchedExportLogRequest */ type?: string; /** * * @type {string} - * @memberof PatchedExportLog + * @memberof PatchedExportLogRequest */ msg?: string; /** * * @type {boolean} - * @memberof PatchedExportLog + * @memberof PatchedExportLogRequest */ running?: boolean; /** * * @type {number} - * @memberof PatchedExportLog + * @memberof PatchedExportLogRequest */ total_recipes?: number; /** * * @type {number} - * @memberof PatchedExportLog + * @memberof PatchedExportLogRequest */ exported_recipes?: number; /** * * @type {number} - * @memberof PatchedExportLog + * @memberof PatchedExportLogRequest */ cache_duration?: number; /** * * @type {boolean} - * @memberof PatchedExportLog + * @memberof PatchedExportLogRequest */ possibly_not_expired?: boolean; /** * * @type {number} - * @memberof PatchedExportLog + * @memberof PatchedExportLogRequest */ - created_by?: number; - /** - * - * @type {string} - * @memberof PatchedExportLog - */ - created_at?: string; + id?: 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 PatchedFood + * @interface PatchedFoodRequest */ -export interface PatchedFood { - /** - * - * @type {number} - * @memberof PatchedFood - */ - id?: number; +export interface PatchedFoodRequest { /** * * @type {string} - * @memberof PatchedFood + * @memberof PatchedFoodRequest */ name?: string; /** * * @type {string} - * @memberof PatchedFood + * @memberof PatchedFoodRequest */ plural_name?: string | null; /** * * @type {string} - * @memberof PatchedFood + * @memberof PatchedFoodRequest */ description?: string; /** * - * @type {string} - * @memberof PatchedFood + * @type {RecipeSimpleRequest} + * @memberof PatchedFoodRequest */ - shopping?: string; - /** - * - * @type {RecipeSimple} - * @memberof PatchedFood - */ - recipe?: RecipeSimple | null; + recipe?: RecipeSimpleRequest | null; /** * * @type {string} - * @memberof PatchedFood + * @memberof PatchedFoodRequest */ url?: string | null; /** * - * @type {Array} - * @memberof PatchedFood + * @type {Array} + * @memberof PatchedFoodRequest */ - properties?: Array | null; + properties?: Array | null; /** * * @type {number} - * @memberof PatchedFood + * @memberof PatchedFoodRequest */ properties_food_amount?: number; /** * - * @type {Unit} - * @memberof PatchedFood + * @type {UnitRequest} + * @memberof PatchedFoodRequest */ - properties_food_unit?: Unit | null; + properties_food_unit?: UnitRequest | null; /** * * @type {number} - * @memberof PatchedFood + * @memberof PatchedFoodRequest */ fdc_id?: number | null; /** * * @type {boolean} - * @memberof PatchedFood + * @memberof PatchedFoodRequest */ food_onhand?: boolean | null; /** * - * @type {SupermarketCategory} - * @memberof PatchedFood + * @type {SupermarketCategoryRequest} + * @memberof PatchedFoodRequest */ - supermarket_category?: SupermarketCategory | null; + supermarket_category?: SupermarketCategoryRequest | null; /** * - * @type {number} - * @memberof PatchedFood + * @type {Array} + * @memberof PatchedFoodRequest */ - parent?: number; - /** - * - * @type {number} - * @memberof PatchedFood - */ - numchild?: number; - /** - * - * @type {Array} - * @memberof PatchedFood - */ - inherit_fields?: Array | null; - /** - * Returns a string representation of a tree node and it\'s ancestors, e.g. \'Cuisine > Asian > Chinese > Catonese\'. - * @type {string} - * @memberof PatchedFood - */ - full_name?: string; + inherit_fields?: Array | null; /** * * @type {boolean} - * @memberof PatchedFood + * @memberof PatchedFoodRequest */ ignore_shopping?: boolean; /** * - * @type {Array} - * @memberof PatchedFood + * @type {Array} + * @memberof PatchedFoodRequest */ - substitute?: Array | null; + substitute?: Array | null; /** * * @type {boolean} - * @memberof PatchedFood + * @memberof PatchedFoodRequest */ substitute_siblings?: boolean; /** * * @type {boolean} - * @memberof PatchedFood + * @memberof PatchedFoodRequest */ substitute_children?: boolean; /** * - * @type {boolean} - * @memberof PatchedFood + * @type {Array} + * @memberof PatchedFoodRequest */ - substitute_onhand?: boolean; - /** - * - * @type {Array} - * @memberof PatchedFood - */ - child_inherit_fields?: Array | null; + child_inherit_fields?: Array | null; /** * * @type {string} - * @memberof PatchedFood + * @memberof PatchedFoodRequest */ open_data_slug?: string | null; + /** + * + * @type {number} + * @memberof PatchedFoodRequest + */ + id?: number; } /** * * @export - * @interface PatchedImportLog + * @interface PatchedImportLogRequest */ -export interface PatchedImportLog { - /** - * - * @type {number} - * @memberof PatchedImportLog - */ - id?: number; +export interface PatchedImportLogRequest { /** * * @type {string} - * @memberof PatchedImportLog + * @memberof PatchedImportLogRequest */ type?: string; /** * * @type {string} - * @memberof PatchedImportLog + * @memberof PatchedImportLogRequest */ msg?: string; /** * * @type {boolean} - * @memberof PatchedImportLog + * @memberof PatchedImportLogRequest */ running?: boolean; - /** - * - * @type {Keyword} - * @memberof PatchedImportLog - */ - keyword?: Keyword; /** * * @type {number} - * @memberof PatchedImportLog + * @memberof PatchedImportLogRequest */ total_recipes?: number; /** * * @type {number} - * @memberof PatchedImportLog + * @memberof PatchedImportLogRequest */ imported_recipes?: number; /** * * @type {number} - * @memberof PatchedImportLog + * @memberof PatchedImportLogRequest */ - created_by?: number; - /** - * - * @type {string} - * @memberof PatchedImportLog - */ - created_at?: string; + id?: number; } /** * Adds nested create feature * @export - * @interface PatchedIngredient + * @interface PatchedIngredientRequest */ -export interface PatchedIngredient { +export interface PatchedIngredientRequest { + /** + * + * @type {FoodRequest} + * @memberof PatchedIngredientRequest + */ + food?: FoodRequest | null; + /** + * + * @type {UnitRequest} + * @memberof PatchedIngredientRequest + */ + unit?: UnitRequest | null; /** * * @type {number} - * @memberof PatchedIngredient - */ - id?: number; - /** - * - * @type {Food} - * @memberof PatchedIngredient - */ - food?: Food | null; - /** - * - * @type {Unit} - * @memberof PatchedIngredient - */ - unit?: Unit | null; - /** - * - * @type {number} - * @memberof PatchedIngredient + * @memberof PatchedIngredientRequest */ amount?: number; - /** - * - * @type {Array} - * @memberof PatchedIngredient - */ - conversions?: Array; /** * * @type {string} - * @memberof PatchedIngredient + * @memberof PatchedIngredientRequest */ note?: string | null; /** * * @type {number} - * @memberof PatchedIngredient + * @memberof PatchedIngredientRequest */ order?: number; /** * * @type {boolean} - * @memberof PatchedIngredient + * @memberof PatchedIngredientRequest */ is_header?: boolean; /** * * @type {boolean} - * @memberof PatchedIngredient + * @memberof PatchedIngredientRequest */ no_amount?: boolean; /** * * @type {string} - * @memberof PatchedIngredient + * @memberof PatchedIngredientRequest */ original_text?: string | null; - /** - * - * @type {Array} - * @memberof PatchedIngredient - */ - used_in_recipes?: Array; /** * * @type {boolean} - * @memberof PatchedIngredient + * @memberof PatchedIngredientRequest */ always_use_plural_unit?: boolean; /** * * @type {boolean} - * @memberof PatchedIngredient + * @memberof PatchedIngredientRequest */ always_use_plural_food?: boolean; + /** + * + * @type {number} + * @memberof PatchedIngredientRequest + */ + id?: number; } /** * Adds nested create feature * @export - * @interface PatchedInviteLink + * @interface PatchedInviteLinkRequest */ -export interface PatchedInviteLink { - /** - * - * @type {number} - * @memberof PatchedInviteLink - */ - id?: number; +export interface PatchedInviteLinkRequest { /** * * @type {string} - * @memberof PatchedInviteLink - */ - uuid?: string; - /** - * - * @type {string} - * @memberof PatchedInviteLink + * @memberof PatchedInviteLinkRequest */ email?: string; /** * - * @type {Group} - * @memberof PatchedInviteLink + * @type {GroupRequest} + * @memberof PatchedInviteLinkRequest */ - group?: Group; + group?: GroupRequest; /** * * @type {string} - * @memberof PatchedInviteLink + * @memberof PatchedInviteLinkRequest */ valid_until?: string; /** * * @type {number} - * @memberof PatchedInviteLink + * @memberof PatchedInviteLinkRequest */ used_by?: number | null; /** * * @type {boolean} - * @memberof PatchedInviteLink + * @memberof PatchedInviteLinkRequest */ reusable?: boolean; /** * * @type {string} - * @memberof PatchedInviteLink + * @memberof PatchedInviteLinkRequest */ internal_note?: string | null; /** * * @type {number} - * @memberof PatchedInviteLink + * @memberof PatchedInviteLinkRequest */ - created_by?: number; - /** - * - * @type {string} - * @memberof PatchedInviteLink - */ - created_at?: string; + id?: 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 PatchedKeyword + * @interface PatchedKeywordRequest */ -export interface PatchedKeyword { - /** - * - * @type {number} - * @memberof PatchedKeyword - */ - id?: number; +export interface PatchedKeywordRequest { /** * * @type {string} - * @memberof PatchedKeyword + * @memberof PatchedKeywordRequest */ name?: string; /** * * @type {string} - * @memberof PatchedKeyword - */ - label?: string; - /** - * - * @type {string} - * @memberof PatchedKeyword + * @memberof PatchedKeywordRequest */ description?: string; /** * * @type {number} - * @memberof PatchedKeyword + * @memberof PatchedKeywordRequest */ - parent?: number; - /** - * - * @type {number} - * @memberof PatchedKeyword - */ - numchild?: number; - /** - * - * @type {string} - * @memberof PatchedKeyword - */ - created_at?: string; - /** - * - * @type {string} - * @memberof PatchedKeyword - */ - updated_at?: string; - /** - * Returns a string representation of a tree node and it\'s ancestors, e.g. \'Cuisine > Asian > Chinese > Catonese\'. - * @type {string} - * @memberof PatchedKeyword - */ - full_name?: string; + id?: number; } /** * Adds nested create feature * @export - * @interface PatchedMealPlan + * @interface PatchedMealPlanRequest */ -export interface PatchedMealPlan { - /** - * - * @type {number} - * @memberof PatchedMealPlan - */ - id?: number; +export interface PatchedMealPlanRequest { /** * * @type {string} - * @memberof PatchedMealPlan + * @memberof PatchedMealPlanRequest */ title?: string; /** * - * @type {RecipeOverview} - * @memberof PatchedMealPlan + * @type {RecipeOverviewRequest} + * @memberof PatchedMealPlanRequest */ - recipe?: RecipeOverview | null; + recipe?: RecipeOverviewRequest | null; /** * * @type {number} - * @memberof PatchedMealPlan + * @memberof PatchedMealPlanRequest */ servings?: number; /** * * @type {string} - * @memberof PatchedMealPlan + * @memberof PatchedMealPlanRequest */ note?: string; /** * * @type {string} - * @memberof PatchedMealPlan - */ - note_markdown?: string; - /** - * - * @type {string} - * @memberof PatchedMealPlan + * @memberof PatchedMealPlanRequest */ from_date?: string; /** * * @type {string} - * @memberof PatchedMealPlan + * @memberof PatchedMealPlanRequest */ to_date?: string; /** * - * @type {MealType} - * @memberof PatchedMealPlan + * @type {MealTypeRequest} + * @memberof PatchedMealPlanRequest */ - meal_type?: MealType; + meal_type?: MealTypeRequest; + /** + * + * @type {Array} + * @memberof PatchedMealPlanRequest + */ + shared?: Array | null; /** * * @type {number} - * @memberof PatchedMealPlan + * @memberof PatchedMealPlanRequest */ - 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 {boolean} - * @memberof PatchedMealPlan - */ - shopping?: boolean; + id?: number; } /** * Adds nested create feature * @export - * @interface PatchedMealType + * @interface PatchedMealTypeRequest */ -export interface PatchedMealType { - /** - * - * @type {number} - * @memberof PatchedMealType - */ - id?: number; +export interface PatchedMealTypeRequest { /** * * @type {string} - * @memberof PatchedMealType + * @memberof PatchedMealTypeRequest */ name?: string; /** * * @type {number} - * @memberof PatchedMealType + * @memberof PatchedMealTypeRequest */ order?: number; /** * * @type {string} - * @memberof PatchedMealType + * @memberof PatchedMealTypeRequest */ color?: string | null; /** * * @type {boolean} - * @memberof PatchedMealType + * @memberof PatchedMealTypeRequest */ _default?: boolean; /** * * @type {number} - * @memberof PatchedMealType + * @memberof PatchedMealTypeRequest */ - created_by?: number; + id?: 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 + * @interface PatchedPropertyRequest */ -export interface PatchedProperty { +export interface PatchedPropertyRequest { /** * * @type {number} - * @memberof PatchedProperty - */ - id?: number; - /** - * - * @type {number} - * @memberof PatchedProperty + * @memberof PatchedPropertyRequest */ property_amount?: number | null; /** * - * @type {PropertyType} - * @memberof PatchedProperty + * @type {PropertyTypeRequest} + * @memberof PatchedPropertyRequest */ - property_type?: PropertyType; + property_type?: PropertyTypeRequest; + /** + * + * @type {number} + * @memberof PatchedPropertyRequest + */ + id?: number; } /** * Adds nested create feature * @export - * @interface PatchedPropertyType + * @interface PatchedPropertyTypeRequest */ -export interface PatchedPropertyType { +export interface PatchedPropertyTypeRequest { /** * * @type {number} - * @memberof PatchedPropertyType + * @memberof PatchedPropertyTypeRequest */ id?: number; /** * * @type {string} - * @memberof PatchedPropertyType + * @memberof PatchedPropertyTypeRequest */ name?: string; /** * * @type {string} - * @memberof PatchedPropertyType + * @memberof PatchedPropertyTypeRequest */ unit?: string | null; /** * * @type {string} - * @memberof PatchedPropertyType + * @memberof PatchedPropertyTypeRequest */ description?: string | null; /** * * @type {number} - * @memberof PatchedPropertyType + * @memberof PatchedPropertyTypeRequest */ order?: number; /** * * @type {string} - * @memberof PatchedPropertyType + * @memberof PatchedPropertyTypeRequest */ open_data_slug?: string | null; /** * * @type {number} - * @memberof PatchedPropertyType + * @memberof PatchedPropertyTypeRequest */ fdc_id?: number | null; } /** - * Adds nested create feature + * * @export - * @interface PatchedRecipe + * @interface PatchedRecipeBookEntryRequest */ -export interface PatchedRecipe { +export interface PatchedRecipeBookEntryRequest { /** * * @type {number} - * @memberof PatchedRecipe + * @memberof PatchedRecipeBookEntryRequest + */ + book?: number; + /** + * + * @type {number} + * @memberof PatchedRecipeBookEntryRequest + */ + recipe?: number; + /** + * + * @type {number} + * @memberof PatchedRecipeBookEntryRequest */ id?: number; +} +/** + * Adds nested create feature + * @export + * @interface PatchedRecipeBookRequest + */ +export interface PatchedRecipeBookRequest { /** * * @type {string} - * @memberof PatchedRecipe + * @memberof PatchedRecipeBookRequest */ name?: string; /** * * @type {string} - * @memberof PatchedRecipe + * @memberof PatchedRecipeBookRequest + */ + description?: string; + /** + * + * @type {Array} + * @memberof PatchedRecipeBookRequest + */ + shared?: Array; + /** + * + * @type {CustomFilterRequest} + * @memberof PatchedRecipeBookRequest + */ + filter?: CustomFilterRequest | null; + /** + * + * @type {number} + * @memberof PatchedRecipeBookRequest + */ + order?: number; + /** + * + * @type {number} + * @memberof PatchedRecipeBookRequest + */ + id?: number; +} +/** + * Adds nested create feature + * @export + * @interface PatchedRecipeRequest + */ +export interface PatchedRecipeRequest { + /** + * + * @type {string} + * @memberof PatchedRecipeRequest + */ + name?: string; + /** + * + * @type {string} + * @memberof PatchedRecipeRequest */ description?: string | null; /** * - * @type {string} - * @memberof PatchedRecipe + * @type {Array} + * @memberof PatchedRecipeRequest */ - image?: string | null; + keywords?: Array; /** * - * @type {Array} - * @memberof PatchedRecipe + * @type {Array} + * @memberof PatchedRecipeRequest */ - keywords?: Array; - /** - * - * @type {Array} - * @memberof PatchedRecipe - */ - steps?: Array; + steps?: Array; /** * * @type {number} - * @memberof PatchedRecipe + * @memberof PatchedRecipeRequest */ working_time?: number; /** * * @type {number} - * @memberof PatchedRecipe + * @memberof PatchedRecipeRequest */ 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 + * @memberof PatchedRecipeRequest */ source_url?: string | null; /** * * @type {boolean} - * @memberof PatchedRecipe + * @memberof PatchedRecipeRequest */ internal?: boolean; /** * * @type {boolean} - * @memberof PatchedRecipe + * @memberof PatchedRecipeRequest */ show_ingredient_overview?: boolean; /** * - * @type {NutritionInformation} - * @memberof PatchedRecipe + * @type {NutritionInformationRequest} + * @memberof PatchedRecipeRequest */ - nutrition?: NutritionInformation | null; + nutrition?: NutritionInformationRequest | null; /** * - * @type {Array} - * @memberof PatchedRecipe + * @type {Array} + * @memberof PatchedRecipeRequest */ - properties?: Array; - /** - * - * @type {any} - * @memberof PatchedRecipe - */ - food_properties?: any | null; + properties?: Array; /** * * @type {number} - * @memberof PatchedRecipe + * @memberof PatchedRecipeRequest */ servings?: number; /** * * @type {string} - * @memberof PatchedRecipe + * @memberof PatchedRecipeRequest */ file_path?: string; /** * * @type {string} - * @memberof PatchedRecipe + * @memberof PatchedRecipeRequest */ servings_text?: string; - /** - * - * @type {number} - * @memberof PatchedRecipe - */ - rating?: number | null; - /** - * - * @type {string} - * @memberof PatchedRecipe - */ - last_cooked?: string | null; /** * * @type {boolean} - * @memberof PatchedRecipe + * @memberof PatchedRecipeRequest */ _private?: boolean; /** * - * @type {Array} - * @memberof PatchedRecipe + * @type {Array} + * @memberof PatchedRecipeRequest */ - shared?: Array; + shared?: Array; + /** + * + * @type {number} + * @memberof PatchedRecipeRequest + */ + id?: number; } /** * Adds nested create feature * @export - * @interface PatchedRecipeBook + * @interface PatchedShoppingListEntryRequest */ -export interface PatchedRecipeBook { +export interface PatchedShoppingListEntryRequest { /** * * @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 PatchedRecipeBookEntry - */ -export interface PatchedRecipeBookEntry { - /** - * - * @type {number} - * @memberof PatchedRecipeBookEntry - */ - id?: number; - /** - * - * @type {number} - * @memberof PatchedRecipeBookEntry - */ - book?: number; - /** - * - * @type {RecipeBook} - * @memberof PatchedRecipeBookEntry - */ - book_content?: RecipeBook; - /** - * - * @type {number} - * @memberof PatchedRecipeBookEntry - */ - recipe?: number; - /** - * - * @type {RecipeOverview} - * @memberof PatchedRecipeBookEntry - */ - recipe_content?: RecipeOverview; -} -/** - * Adds nested create feature - * @export - * @interface PatchedShoppingListEntry - */ -export interface PatchedShoppingListEntry { - /** - * - * @type {number} - * @memberof PatchedShoppingListEntry - */ - id?: number; - /** - * - * @type {number} - * @memberof PatchedShoppingListEntry + * @memberof PatchedShoppingListEntryRequest */ list_recipe?: number | null; /** * - * @type {Food} - * @memberof PatchedShoppingListEntry + * @type {FoodRequest} + * @memberof PatchedShoppingListEntryRequest */ - food?: Food | null; + food?: FoodRequest | null; /** * - * @type {Unit} - * @memberof PatchedShoppingListEntry + * @type {UnitRequest} + * @memberof PatchedShoppingListEntryRequest */ - unit?: Unit | null; + unit?: UnitRequest | null; /** * * @type {number} - * @memberof PatchedShoppingListEntry + * @memberof PatchedShoppingListEntryRequest */ amount?: number; /** * * @type {number} - * @memberof PatchedShoppingListEntry + * @memberof PatchedShoppingListEntryRequest */ order?: number; /** * * @type {boolean} - * @memberof PatchedShoppingListEntry + * @memberof PatchedShoppingListEntryRequest */ 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 + * @memberof PatchedShoppingListEntryRequest */ completed_at?: string | null; /** * * @type {string} - * @memberof PatchedShoppingListEntry + * @memberof PatchedShoppingListEntryRequest */ delay_until?: string | null; + /** + * + * @type {number} + * @memberof PatchedShoppingListEntryRequest + */ + id?: number; } /** * * @export - * @interface PatchedShoppingListRecipe + * @interface PatchedShoppingListRecipeRequest */ -export interface PatchedShoppingListRecipe { +export interface PatchedShoppingListRecipeRequest { /** * * @type {number} - * @memberof PatchedShoppingListRecipe - */ - id?: number; - /** - * - * @type {string} - * @memberof PatchedShoppingListRecipe - */ - recipe_name?: string; - /** - * - * @type {string} - * @memberof PatchedShoppingListRecipe - */ - name?: string; - /** - * - * @type {number} - * @memberof PatchedShoppingListRecipe + * @memberof PatchedShoppingListRecipeRequest */ recipe?: number | null; /** * * @type {number} - * @memberof PatchedShoppingListRecipe + * @memberof PatchedShoppingListRecipeRequest */ mealplan?: number | null; /** * * @type {number} - * @memberof PatchedShoppingListRecipe + * @memberof PatchedShoppingListRecipeRequest */ servings?: number; /** * - * @type {string} - * @memberof PatchedShoppingListRecipe + * @type {number} + * @memberof PatchedShoppingListRecipeRequest */ - mealplan_note?: string; - /** - * - * @type {string} - * @memberof PatchedShoppingListRecipe - */ - mealplan_from_date?: string; - /** - * - * @type {string} - * @memberof PatchedShoppingListRecipe - */ - mealplan_type?: string; + id?: number; } /** * Adds nested create feature * @export - * @interface PatchedSpace + * @interface PatchedSpaceRequest */ -export interface PatchedSpace { - /** - * - * @type {number} - * @memberof PatchedSpace - */ - id?: number; +export interface PatchedSpaceRequest { /** * * @type {string} - * @memberof PatchedSpace + * @memberof PatchedSpaceRequest */ name?: string; - /** - * - * @type {number} - * @memberof PatchedSpace - */ - created_by?: number | null; /** * * @type {string} - * @memberof PatchedSpace - */ - created_at?: string; - /** - * - * @type {string} - * @memberof PatchedSpace + * @memberof PatchedSpaceRequest */ message?: string; /** * - * @type {number} - * @memberof PatchedSpace + * @type {Array} + * @memberof PatchedSpaceRequest */ - 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; + food_inherit?: Array; /** * - * @type {number} - * @memberof PatchedSpace + * @type {UserFileViewRequest} + * @memberof PatchedSpaceRequest */ - max_users?: number; + image?: UserFileViewRequest | null; /** * - * @type {boolean} - * @memberof PatchedSpace + * @type {UserFileViewRequest} + * @memberof PatchedSpaceRequest */ - allow_sharing?: boolean; - /** - * - * @type {boolean} - * @memberof PatchedSpace - */ - demo?: boolean; - /** - * - * @type {Array} - * @memberof PatchedSpace - */ - food_inherit?: Array; - /** - * - * @type {number} - * @memberof PatchedSpace - */ - user_count?: number; - /** - * - * @type {number} - * @memberof PatchedSpace - */ - recipe_count?: number; - /** - * - * @type {number} - * @memberof PatchedSpace - */ - file_size_mb?: number; - /** - * - * @type {UserFileView} - * @memberof PatchedSpace - */ - image?: UserFileView | null; - /** - * - * @type {UserFileView} - * @memberof PatchedSpace - */ - nav_logo?: UserFileView | null; + nav_logo?: UserFileViewRequest | null; /** * * @type {SpaceThemeEnum} - * @memberof PatchedSpace + * @memberof PatchedSpaceRequest */ space_theme?: SpaceThemeEnum; /** * - * @type {UserFileView} - * @memberof PatchedSpace + * @type {UserFileViewRequest} + * @memberof PatchedSpaceRequest */ - custom_space_theme?: UserFileView | null; + custom_space_theme?: UserFileViewRequest | null; /** * * @type {string} - * @memberof PatchedSpace + * @memberof PatchedSpaceRequest */ nav_bg_color?: string; /** * * @type {SpaceNavTextColorEnum} - * @memberof PatchedSpace + * @memberof PatchedSpaceRequest */ nav_text_color?: SpaceNavTextColorEnum; /** * - * @type {UserFileView} - * @memberof PatchedSpace + * @type {UserFileViewRequest} + * @memberof PatchedSpaceRequest */ - logo_color_32?: UserFileView | null; + logo_color_32?: UserFileViewRequest | null; /** * - * @type {UserFileView} - * @memberof PatchedSpace + * @type {UserFileViewRequest} + * @memberof PatchedSpaceRequest */ - logo_color_128?: UserFileView | null; + logo_color_128?: UserFileViewRequest | null; /** * - * @type {UserFileView} - * @memberof PatchedSpace + * @type {UserFileViewRequest} + * @memberof PatchedSpaceRequest */ - logo_color_144?: UserFileView | null; + logo_color_144?: UserFileViewRequest | null; /** * - * @type {UserFileView} - * @memberof PatchedSpace + * @type {UserFileViewRequest} + * @memberof PatchedSpaceRequest */ - logo_color_180?: UserFileView | null; + logo_color_180?: UserFileViewRequest | null; /** * - * @type {UserFileView} - * @memberof PatchedSpace + * @type {UserFileViewRequest} + * @memberof PatchedSpaceRequest */ - logo_color_192?: UserFileView | null; + logo_color_192?: UserFileViewRequest | null; /** * - * @type {UserFileView} - * @memberof PatchedSpace + * @type {UserFileViewRequest} + * @memberof PatchedSpaceRequest */ - logo_color_512?: UserFileView | null; + logo_color_512?: UserFileViewRequest | null; /** * - * @type {UserFileView} - * @memberof PatchedSpace + * @type {UserFileViewRequest} + * @memberof PatchedSpaceRequest */ - logo_color_svg?: UserFileView | null; + logo_color_svg?: UserFileViewRequest | null; + /** + * + * @type {number} + * @memberof PatchedSpaceRequest + */ + id?: number; } /** * Adds nested create feature * @export - * @interface PatchedStep + * @interface PatchedStepRequest */ -export interface PatchedStep { - /** - * - * @type {number} - * @memberof PatchedStep - */ - id?: number; +export interface PatchedStepRequest { /** * * @type {string} - * @memberof PatchedStep + * @memberof PatchedStepRequest */ name?: string; /** * * @type {string} - * @memberof PatchedStep + * @memberof PatchedStepRequest */ instruction?: string; /** * - * @type {Array} - * @memberof PatchedStep + * @type {Array} + * @memberof PatchedStepRequest */ - ingredients?: Array; - /** - * - * @type {string} - * @memberof PatchedStep - */ - instructions_markdown?: string; + ingredients?: Array; /** * * @type {number} - * @memberof PatchedStep + * @memberof PatchedStepRequest */ time?: number; /** * * @type {number} - * @memberof PatchedStep + * @memberof PatchedStepRequest */ order?: number; /** * * @type {boolean} - * @memberof PatchedStep + * @memberof PatchedStepRequest */ show_as_header?: boolean; /** * - * @type {UserFileView} - * @memberof PatchedStep + * @type {UserFileViewRequest} + * @memberof PatchedStepRequest */ - file?: UserFileView | null; + file?: UserFileViewRequest | null; /** * * @type {number} - * @memberof PatchedStep + * @memberof PatchedStepRequest */ step_recipe?: number | null; /** * - * @type {any} - * @memberof PatchedStep + * @type {boolean} + * @memberof PatchedStepRequest */ - step_recipe_data?: any | null; + show_ingredients_table?: boolean; /** * * @type {number} - * @memberof PatchedStep + * @memberof PatchedStepRequest */ - numrecipe?: number; - /** - * - * @type {boolean} - * @memberof PatchedStep - */ - show_ingredients_table?: boolean; + id?: number; } /** * * @export - * @interface PatchedStorage + * @interface PatchedStorageRequest */ -export interface PatchedStorage { - /** - * - * @type {number} - * @memberof PatchedStorage - */ - id?: number; +export interface PatchedStorageRequest { /** * * @type {string} - * @memberof PatchedStorage + * @memberof PatchedStorageRequest */ name?: string; /** * * @type {MethodEnum} - * @memberof PatchedStorage + * @memberof PatchedStorageRequest */ method?: MethodEnum; /** * * @type {string} - * @memberof PatchedStorage + * @memberof PatchedStorageRequest */ username?: string | null; /** * * @type {string} - * @memberof PatchedStorage + * @memberof PatchedStorageRequest */ password?: string | null; /** * * @type {string} - * @memberof PatchedStorage + * @memberof PatchedStorageRequest */ 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 + * @memberof PatchedStorageRequest */ 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 + * @interface PatchedSupermarketCategoryRelationRequest */ -export interface PatchedSupermarketCategoryRelation { +export interface PatchedSupermarketCategoryRelationRequest { + /** + * + * @type {SupermarketCategoryRequest} + * @memberof PatchedSupermarketCategoryRelationRequest + */ + category?: SupermarketCategoryRequest; /** * * @type {number} - * @memberof PatchedSupermarketCategoryRelation - */ - id?: number; - /** - * - * @type {SupermarketCategory} - * @memberof PatchedSupermarketCategoryRelation - */ - category?: SupermarketCategory; - /** - * - * @type {number} - * @memberof PatchedSupermarketCategoryRelation + * @memberof PatchedSupermarketCategoryRelationRequest */ supermarket?: number; /** * * @type {number} - * @memberof PatchedSupermarketCategoryRelation + * @memberof PatchedSupermarketCategoryRelationRequest */ order?: number; -} -/** - * - * @export - * @interface PatchedSync - */ -export interface PatchedSync { /** * * @type {number} - * @memberof PatchedSync + * @memberof PatchedSupermarketCategoryRelationRequest */ 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 + * @interface PatchedSupermarketCategoryRequest */ -export interface PatchedUnit { - /** - * - * @type {number} - * @memberof PatchedUnit - */ - id?: number; +export interface PatchedSupermarketCategoryRequest { /** * * @type {string} - * @memberof PatchedUnit + * @memberof PatchedSupermarketCategoryRequest */ name?: string; /** * * @type {string} - * @memberof PatchedUnit + * @memberof PatchedSupermarketCategoryRequest */ - plural_name?: string | null; + description?: string | null; + /** + * + * @type {number} + * @memberof PatchedSupermarketCategoryRequest + */ + id?: 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 PatchedSupermarketRequest + */ +export interface PatchedSupermarketRequest { /** * * @type {string} - * @memberof PatchedUnit + * @memberof PatchedSupermarketRequest + */ + name?: string; + /** + * + * @type {string} + * @memberof PatchedSupermarketRequest */ description?: string | null; /** * * @type {string} - * @memberof PatchedUnit - */ - base_unit?: string | null; - /** - * - * @type {string} - * @memberof PatchedUnit + * @memberof PatchedSupermarketRequest */ open_data_slug?: string | null; -} -/** - * Adds nested create feature - * @export - * @interface PatchedUnitConversion - */ -export interface PatchedUnitConversion { /** * * @type {number} - * @memberof PatchedUnitConversion + * @memberof PatchedSupermarketRequest */ id?: number; - /** - * - * @type {string} - * @memberof PatchedUnitConversion - */ - name?: string; - /** - * - * @type {number} - * @memberof PatchedUnitConversion - */ - base_amount?: number; - /** - * - * @type {Unit} - * @memberof PatchedUnitConversion - */ - base_unit?: Unit; - /** - * - * @type {number} - * @memberof PatchedUnitConversion - */ - converted_amount?: number; - /** - * - * @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 + * @interface PatchedSyncRequest */ -export interface PatchedUser { +export interface PatchedSyncRequest { /** * * @type {number} - * @memberof PatchedUser + * @memberof PatchedSyncRequest */ - id?: number; - /** - * Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. - * @type {string} - * @memberof PatchedUser - */ - username?: string; + storage?: number; /** * * @type {string} - * @memberof PatchedUser + * @memberof PatchedSyncRequest */ - 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; + path?: string; /** * * @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 {FoodInheritField} - * @memberof PatchedUserPreference - */ - food_inherit_default?: FoodInheritField; - /** - * - * @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 {boolean} - * @memberof PatchedUserPreference - */ - food_children_exist?: boolean; -} -/** - * 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 + * @memberof PatchedSyncRequest */ active?: boolean; /** * * @type {string} - * @memberof PatchedUserSpace + * @memberof PatchedSyncRequest + */ + last_checked?: string | null; + /** + * + * @type {number} + * @memberof PatchedSyncRequest + */ + id?: number; +} +/** + * Adds nested create feature + * @export + * @interface PatchedUnitConversionRequest + */ +export interface PatchedUnitConversionRequest { + /** + * + * @type {number} + * @memberof PatchedUnitConversionRequest + */ + base_amount?: number; + /** + * + * @type {UnitRequest} + * @memberof PatchedUnitConversionRequest + */ + base_unit?: UnitRequest; + /** + * + * @type {number} + * @memberof PatchedUnitConversionRequest + */ + converted_amount?: number; + /** + * + * @type {UnitRequest} + * @memberof PatchedUnitConversionRequest + */ + converted_unit?: UnitRequest; + /** + * + * @type {FoodRequest} + * @memberof PatchedUnitConversionRequest + */ + food?: FoodRequest | null; + /** + * + * @type {string} + * @memberof PatchedUnitConversionRequest + */ + open_data_slug?: string | null; + /** + * + * @type {number} + * @memberof PatchedUnitConversionRequest + */ + id?: 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 PatchedUnitRequest + */ +export interface PatchedUnitRequest { + /** + * + * @type {string} + * @memberof PatchedUnitRequest + */ + name?: string; + /** + * + * @type {string} + * @memberof PatchedUnitRequest + */ + plural_name?: string | null; + /** + * + * @type {string} + * @memberof PatchedUnitRequest + */ + description?: string | null; + /** + * + * @type {string} + * @memberof PatchedUnitRequest + */ + base_unit?: string | null; + /** + * + * @type {string} + * @memberof PatchedUnitRequest + */ + open_data_slug?: string | null; + /** + * + * @type {number} + * @memberof PatchedUnitRequest + */ + id?: number; +} +/** + * Adds nested create feature + * @export + * @interface PatchedUserPreferenceRequest + */ +export interface PatchedUserPreferenceRequest { + /** + * + * @type {number} + * @memberof PatchedUserPreferenceRequest + */ + user?: number; + /** + * + * @type {UserFileViewRequest} + * @memberof PatchedUserPreferenceRequest + */ + image?: UserFileViewRequest | null; + /** + * + * @type {ThemeEnum} + * @memberof PatchedUserPreferenceRequest + */ + theme?: ThemeEnum; + /** + * + * @type {string} + * @memberof PatchedUserPreferenceRequest + */ + nav_bg_color?: string; + /** + * + * @type {UserPreferenceNavTextColorEnum} + * @memberof PatchedUserPreferenceRequest + */ + nav_text_color?: UserPreferenceNavTextColorEnum; + /** + * + * @type {boolean} + * @memberof PatchedUserPreferenceRequest + */ + nav_show_logo?: boolean; + /** + * + * @type {string} + * @memberof PatchedUserPreferenceRequest + */ + default_unit?: string; + /** + * + * @type {DefaultPageEnum} + * @memberof PatchedUserPreferenceRequest + */ + default_page?: DefaultPageEnum; + /** + * + * @type {boolean} + * @memberof PatchedUserPreferenceRequest + */ + use_fractions?: boolean; + /** + * + * @type {boolean} + * @memberof PatchedUserPreferenceRequest + */ + use_kj?: boolean; + /** + * + * @type {Array} + * @memberof PatchedUserPreferenceRequest + */ + plan_share?: Array | null; + /** + * + * @type {boolean} + * @memberof PatchedUserPreferenceRequest + */ + nav_sticky?: boolean; + /** + * + * @type {number} + * @memberof PatchedUserPreferenceRequest + */ + ingredient_decimals?: number; + /** + * + * @type {boolean} + * @memberof PatchedUserPreferenceRequest + */ + comments?: boolean; + /** + * + * @type {number} + * @memberof PatchedUserPreferenceRequest + */ + shopping_auto_sync?: number; + /** + * + * @type {boolean} + * @memberof PatchedUserPreferenceRequest + */ + mealplan_autoadd_shopping?: boolean; + /** + * + * @type {number} + * @memberof PatchedUserPreferenceRequest + */ + default_delay?: number; + /** + * + * @type {boolean} + * @memberof PatchedUserPreferenceRequest + */ + mealplan_autoinclude_related?: boolean; + /** + * + * @type {boolean} + * @memberof PatchedUserPreferenceRequest + */ + mealplan_autoexclude_onhand?: boolean; + /** + * + * @type {Array} + * @memberof PatchedUserPreferenceRequest + */ + shopping_share?: Array | null; + /** + * + * @type {number} + * @memberof PatchedUserPreferenceRequest + */ + shopping_recent_days?: number; + /** + * + * @type {string} + * @memberof PatchedUserPreferenceRequest + */ + csv_delim?: string; + /** + * + * @type {string} + * @memberof PatchedUserPreferenceRequest + */ + csv_prefix?: string; + /** + * + * @type {boolean} + * @memberof PatchedUserPreferenceRequest + */ + filter_to_supermarket?: boolean; + /** + * + * @type {boolean} + * @memberof PatchedUserPreferenceRequest + */ + shopping_add_onhand?: boolean; + /** + * + * @type {boolean} + * @memberof PatchedUserPreferenceRequest + */ + left_handed?: boolean; + /** + * + * @type {boolean} + * @memberof PatchedUserPreferenceRequest + */ + show_step_ingredients?: boolean; +} +/** + * Adds nested create feature + * @export + * @interface PatchedUserRequest + */ +export interface PatchedUserRequest { + /** + * + * @type {string} + * @memberof PatchedUserRequest + */ + first_name?: string; + /** + * + * @type {string} + * @memberof PatchedUserRequest + */ + last_name?: string; + /** + * + * @type {number} + * @memberof PatchedUserRequest + */ + id?: number; +} +/** + * Adds nested create feature + * @export + * @interface PatchedUserSpaceRequest + */ +export interface PatchedUserSpaceRequest { + /** + * + * @type {Array} + * @memberof PatchedUserSpaceRequest + */ + groups?: Array; + /** + * + * @type {boolean} + * @memberof PatchedUserSpaceRequest + */ + active?: boolean; + /** + * + * @type {string} + * @memberof PatchedUserSpaceRequest */ internal_note?: string | null; /** * * @type {number} - * @memberof PatchedUserSpace + * @memberof PatchedUserSpaceRequest */ - invite_link?: number | null; - /** - * - * @type {string} - * @memberof PatchedUserSpace - */ - created_at?: string; - /** - * - * @type {string} - * @memberof PatchedUserSpace - */ - updated_at?: string; + id?: number; } /** * * @export - * @interface PatchedViewLog + * @interface PatchedViewLogRequest */ -export interface PatchedViewLog { +export interface PatchedViewLogRequest { /** * * @type {number} - * @memberof PatchedViewLog - */ - id?: number; - /** - * - * @type {number} - * @memberof PatchedViewLog + * @memberof PatchedViewLogRequest */ recipe?: number; /** * * @type {number} - * @memberof PatchedViewLog + * @memberof PatchedViewLogRequest */ - created_by?: number; - /** - * - * @type {string} - * @memberof PatchedViewLog - */ - created_at?: string; + id?: 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. @@ -4449,6 +4868,31 @@ export interface Property { */ property_type: PropertyType; } +/** + * 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 PropertyRequest + */ +export interface PropertyRequest { + /** + * + * @type {number} + * @memberof PropertyRequest + */ + property_amount: number | null; + /** + * + * @type {PropertyTypeRequest} + * @memberof PropertyRequest + */ + property_type: PropertyTypeRequest; + /** + * + * @type {number} + * @memberof PropertyRequest + */ + id?: number; +} /** * Adds nested create feature * @export @@ -4460,7 +4904,7 @@ export interface PropertyType { * @type {number} * @memberof PropertyType */ - id?: number; + id: number; /** * * @type {string} @@ -4498,6 +4942,55 @@ export interface PropertyType { */ fdc_id?: number | null; } +/** + * Adds nested create feature + * @export + * @interface PropertyTypeRequest + */ +export interface PropertyTypeRequest { + /** + * + * @type {number} + * @memberof PropertyTypeRequest + */ + id?: number; + /** + * + * @type {string} + * @memberof PropertyTypeRequest + */ + name: string; + /** + * + * @type {string} + * @memberof PropertyTypeRequest + */ + unit?: string | null; + /** + * + * @type {string} + * @memberof PropertyTypeRequest + */ + description?: string | null; + /** + * + * @type {number} + * @memberof PropertyTypeRequest + */ + order?: number; + /** + * + * @type {string} + * @memberof PropertyTypeRequest + */ + open_data_slug?: string | null; + /** + * + * @type {number} + * @memberof PropertyTypeRequest + */ + fdc_id?: number | null; +} /** * Adds nested create feature * @export @@ -4735,6 +5228,74 @@ export interface RecipeBookEntry { */ recipe_content: RecipeOverview; } +/** + * + * @export + * @interface RecipeBookEntryRequest + */ +export interface RecipeBookEntryRequest { + /** + * + * @type {number} + * @memberof RecipeBookEntryRequest + */ + book: number; + /** + * + * @type {number} + * @memberof RecipeBookEntryRequest + */ + recipe: number; + /** + * + * @type {number} + * @memberof RecipeBookEntryRequest + */ + id?: number; +} +/** + * Adds nested create feature + * @export + * @interface RecipeBookRequest + */ +export interface RecipeBookRequest { + /** + * + * @type {string} + * @memberof RecipeBookRequest + */ + name: string; + /** + * + * @type {string} + * @memberof RecipeBookRequest + */ + description?: string; + /** + * + * @type {Array} + * @memberof RecipeBookRequest + */ + shared: Array; + /** + * + * @type {CustomFilterRequest} + * @memberof RecipeBookRequest + */ + filter?: CustomFilterRequest | null; + /** + * + * @type {number} + * @memberof RecipeBookRequest + */ + order?: number; + /** + * + * @type {number} + * @memberof RecipeBookRequest + */ + id?: number; +} /** * Adds nested create feature * @export @@ -4802,7 +5363,7 @@ export interface RecipeOverview { * @type {string} * @memberof RecipeOverview */ - description: string | null; + description?: string | null; /** * * @type {string} @@ -4888,6 +5449,140 @@ export interface RecipeOverview { */ recent: string; } +/** + * Adds nested create feature + * @export + * @interface RecipeOverviewRequest + */ +export interface RecipeOverviewRequest { + /** + * + * @type {string} + * @memberof RecipeOverviewRequest + */ + name: string; + /** + * + * @type {string} + * @memberof RecipeOverviewRequest + */ + description?: string | null; + /** + * + * @type {number} + * @memberof RecipeOverviewRequest + */ + id?: number; +} +/** + * Adds nested create feature + * @export + * @interface RecipeRequest + */ +export interface RecipeRequest { + /** + * + * @type {string} + * @memberof RecipeRequest + */ + name: string; + /** + * + * @type {string} + * @memberof RecipeRequest + */ + description?: string | null; + /** + * + * @type {Array} + * @memberof RecipeRequest + */ + keywords?: Array; + /** + * + * @type {Array} + * @memberof RecipeRequest + */ + steps: Array; + /** + * + * @type {number} + * @memberof RecipeRequest + */ + working_time?: number; + /** + * + * @type {number} + * @memberof RecipeRequest + */ + waiting_time?: number; + /** + * + * @type {string} + * @memberof RecipeRequest + */ + source_url?: string | null; + /** + * + * @type {boolean} + * @memberof RecipeRequest + */ + internal?: boolean; + /** + * + * @type {boolean} + * @memberof RecipeRequest + */ + show_ingredient_overview?: boolean; + /** + * + * @type {NutritionInformationRequest} + * @memberof RecipeRequest + */ + nutrition?: NutritionInformationRequest | null; + /** + * + * @type {Array} + * @memberof RecipeRequest + */ + properties?: Array; + /** + * + * @type {number} + * @memberof RecipeRequest + */ + servings?: number; + /** + * + * @type {string} + * @memberof RecipeRequest + */ + file_path?: string; + /** + * + * @type {string} + * @memberof RecipeRequest + */ + servings_text?: string; + /** + * + * @type {boolean} + * @memberof RecipeRequest + */ + _private?: boolean; + /** + * + * @type {Array} + * @memberof RecipeRequest + */ + shared?: Array; + /** + * + * @type {number} + * @memberof RecipeRequest + */ + id?: number; +} /** * * @export @@ -4900,24 +5595,37 @@ export interface RecipeShoppingUpdate { * @memberof RecipeShoppingUpdate */ id: number; +} +/** + * + * @export + * @interface RecipeShoppingUpdateRequest + */ +export interface RecipeShoppingUpdateRequest { /** * Existing shopping list to update * @type {number} - * @memberof RecipeShoppingUpdate + * @memberof RecipeShoppingUpdateRequest */ list_recipe?: number | null; /** * List of ingredient IDs from the recipe to add, if not provided all ingredients will be added. * @type {number} - * @memberof RecipeShoppingUpdate + * @memberof RecipeShoppingUpdateRequest */ ingredients?: number | null; /** * Providing a list_recipe ID and servings of 0 will delete that shopping list. * @type {number} - * @memberof RecipeShoppingUpdate + * @memberof RecipeShoppingUpdateRequest */ servings?: number | null; + /** + * + * @type {number} + * @memberof RecipeShoppingUpdateRequest + */ + id?: number; } /** * Adds nested create feature @@ -4944,6 +5652,50 @@ export interface RecipeSimple { */ url: string; } +/** + * Adds nested create feature + * @export + * @interface RecipeSimpleRequest + */ +export interface RecipeSimpleRequest { + /** + * + * @type {string} + * @memberof RecipeSimpleRequest + */ + name: string; + /** + * + * @type {number} + * @memberof RecipeSimpleRequest + */ + id?: number; +} +/** + * + * @export + * @interface ShareLink + */ +export interface ShareLink { + /** + * + * @type {number} + * @memberof ShareLink + */ + pk: number; + /** + * + * @type {string} + * @memberof ShareLink + */ + share: string; + /** + * + * @type {string} + * @memberof ShareLink + */ + link: string; +} /** * Adds nested create feature * @export @@ -5048,6 +5800,86 @@ export interface ShoppingListEntryBulk { */ checked: boolean; } +/** + * + * @export + * @interface ShoppingListEntryBulkRequest + */ +export interface ShoppingListEntryBulkRequest { + /** + * + * @type {Array} + * @memberof ShoppingListEntryBulkRequest + */ + ids: Array; + /** + * + * @type {boolean} + * @memberof ShoppingListEntryBulkRequest + */ + checked: boolean; +} +/** + * Adds nested create feature + * @export + * @interface ShoppingListEntryRequest + */ +export interface ShoppingListEntryRequest { + /** + * + * @type {number} + * @memberof ShoppingListEntryRequest + */ + list_recipe?: number | null; + /** + * + * @type {FoodRequest} + * @memberof ShoppingListEntryRequest + */ + food: FoodRequest | null; + /** + * + * @type {UnitRequest} + * @memberof ShoppingListEntryRequest + */ + unit?: UnitRequest | null; + /** + * + * @type {number} + * @memberof ShoppingListEntryRequest + */ + amount: number; + /** + * + * @type {number} + * @memberof ShoppingListEntryRequest + */ + order?: number; + /** + * + * @type {boolean} + * @memberof ShoppingListEntryRequest + */ + checked?: boolean; + /** + * + * @type {string} + * @memberof ShoppingListEntryRequest + */ + completed_at?: string | null; + /** + * + * @type {string} + * @memberof ShoppingListEntryRequest + */ + delay_until?: string | null; + /** + * + * @type {number} + * @memberof ShoppingListEntryRequest + */ + id?: number; +} /** * * @export @@ -5109,6 +5941,37 @@ export interface ShoppingListRecipe { */ mealplan_type: string; } +/** + * + * @export + * @interface ShoppingListRecipeRequest + */ +export interface ShoppingListRecipeRequest { + /** + * + * @type {number} + * @memberof ShoppingListRecipeRequest + */ + recipe?: number | null; + /** + * + * @type {number} + * @memberof ShoppingListRecipeRequest + */ + mealplan?: number | null; + /** + * + * @type {number} + * @memberof ShoppingListRecipeRequest + */ + servings: number; + /** + * + * @type {number} + * @memberof ShoppingListRecipeRequest + */ + id?: number; +} /** * Adds nested create feature * @export @@ -5389,6 +6252,73 @@ export interface Step { */ show_ingredients_table?: boolean; } +/** + * Adds nested create feature + * @export + * @interface StepRequest + */ +export interface StepRequest { + /** + * + * @type {string} + * @memberof StepRequest + */ + name?: string; + /** + * + * @type {string} + * @memberof StepRequest + */ + instruction?: string; + /** + * + * @type {Array} + * @memberof StepRequest + */ + ingredients: Array; + /** + * + * @type {number} + * @memberof StepRequest + */ + time?: number; + /** + * + * @type {number} + * @memberof StepRequest + */ + order?: number; + /** + * + * @type {boolean} + * @memberof StepRequest + */ + show_as_header?: boolean; + /** + * + * @type {UserFileViewRequest} + * @memberof StepRequest + */ + file?: UserFileViewRequest | null; + /** + * + * @type {number} + * @memberof StepRequest + */ + step_recipe?: number | null; + /** + * + * @type {boolean} + * @memberof StepRequest + */ + show_ingredients_table?: boolean; + /** + * + * @type {number} + * @memberof StepRequest + */ + id?: number; +} /** * * @export @@ -5421,22 +6351,53 @@ export interface Storage { username?: string | null; /** * - * @type {string} + * @type {number} * @memberof Storage */ + created_by: number; +} +/** + * + * @export + * @interface StorageRequest + */ +export interface StorageRequest { + /** + * + * @type {string} + * @memberof StorageRequest + */ + name: string; + /** + * + * @type {MethodEnum} + * @memberof StorageRequest + */ + method?: MethodEnum; + /** + * + * @type {string} + * @memberof StorageRequest + */ + username?: string | null; + /** + * + * @type {string} + * @memberof StorageRequest + */ password?: string | null; /** * * @type {string} - * @memberof Storage + * @memberof StorageRequest */ token?: string | null; /** * * @type {number} - * @memberof Storage + * @memberof StorageRequest */ - created_by: number; + id?: 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. @@ -5531,6 +6492,93 @@ export interface SupermarketCategoryRelation { */ order?: number; } +/** + * Adds nested create feature + * @export + * @interface SupermarketCategoryRelationRequest + */ +export interface SupermarketCategoryRelationRequest { + /** + * + * @type {SupermarketCategoryRequest} + * @memberof SupermarketCategoryRelationRequest + */ + category: SupermarketCategoryRequest; + /** + * + * @type {number} + * @memberof SupermarketCategoryRelationRequest + */ + supermarket: number; + /** + * + * @type {number} + * @memberof SupermarketCategoryRelationRequest + */ + order?: number; + /** + * + * @type {number} + * @memberof SupermarketCategoryRelationRequest + */ + id?: 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 SupermarketCategoryRequest + */ +export interface SupermarketCategoryRequest { + /** + * + * @type {string} + * @memberof SupermarketCategoryRequest + */ + name: string; + /** + * + * @type {string} + * @memberof SupermarketCategoryRequest + */ + description?: string | null; + /** + * + * @type {number} + * @memberof SupermarketCategoryRequest + */ + id?: 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 SupermarketRequest + */ +export interface SupermarketRequest { + /** + * + * @type {string} + * @memberof SupermarketRequest + */ + name: string; + /** + * + * @type {string} + * @memberof SupermarketRequest + */ + description?: string | null; + /** + * + * @type {string} + * @memberof SupermarketRequest + */ + open_data_slug?: string | null; + /** + * + * @type {number} + * @memberof SupermarketRequest + */ + id?: number; +} /** * * @export @@ -5617,6 +6665,43 @@ export interface SyncLog { */ created_at: string; } +/** + * + * @export + * @interface SyncRequest + */ +export interface SyncRequest { + /** + * + * @type {number} + * @memberof SyncRequest + */ + storage: number; + /** + * + * @type {string} + * @memberof SyncRequest + */ + path?: string; + /** + * + * @type {boolean} + * @memberof SyncRequest + */ + active?: boolean; + /** + * + * @type {string} + * @memberof SyncRequest + */ + last_checked?: string | null; + /** + * + * @type {number} + * @memberof SyncRequest + */ + id?: number; +} /** * * `TANDOOR` - Tandoor * `BOOTSTRAP` - Bootstrap * `DARKLY` - Darkly * `FLATLY` - Flatly * `SUPERHERO` - Superhero * `TANDOOR_DARK` - Tandoor Dark (INCOMPLETE) * @export @@ -5747,6 +6832,98 @@ export interface UnitConversion { */ open_data_slug?: string | null; } +/** + * Adds nested create feature + * @export + * @interface UnitConversionRequest + */ +export interface UnitConversionRequest { + /** + * + * @type {number} + * @memberof UnitConversionRequest + */ + base_amount: number; + /** + * + * @type {UnitRequest} + * @memberof UnitConversionRequest + */ + base_unit: UnitRequest; + /** + * + * @type {number} + * @memberof UnitConversionRequest + */ + converted_amount: number; + /** + * + * @type {UnitRequest} + * @memberof UnitConversionRequest + */ + converted_unit: UnitRequest; + /** + * + * @type {FoodRequest} + * @memberof UnitConversionRequest + */ + food?: FoodRequest | null; + /** + * + * @type {string} + * @memberof UnitConversionRequest + */ + open_data_slug?: string | null; + /** + * + * @type {number} + * @memberof UnitConversionRequest + */ + id?: 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 UnitRequest + */ +export interface UnitRequest { + /** + * + * @type {string} + * @memberof UnitRequest + */ + name: string; + /** + * + * @type {string} + * @memberof UnitRequest + */ + plural_name?: string | null; + /** + * + * @type {string} + * @memberof UnitRequest + */ + description?: string | null; + /** + * + * @type {string} + * @memberof UnitRequest + */ + base_unit?: string | null; + /** + * + * @type {string} + * @memberof UnitRequest + */ + open_data_slug?: string | null; + /** + * + * @type {number} + * @memberof UnitRequest + */ + id?: number; +} /** * Adds nested create feature * @export @@ -5802,12 +6979,6 @@ export interface UserFile { * @memberof UserFile */ name: string; - /** - * - * @type {string} - * @memberof UserFile - */ - file: string; /** * * @type {string} @@ -5858,6 +7029,25 @@ export interface UserFileView { */ preview: string; } +/** + * + * @export + * @interface UserFileViewRequest + */ +export interface UserFileViewRequest { + /** + * + * @type {string} + * @memberof UserFileViewRequest + */ + name: string; + /** + * + * @type {number} + * @memberof UserFileViewRequest + */ + id?: number; +} /** * Adds nested create feature * @export @@ -6049,6 +7239,31 @@ export enum UserPreferenceNavTextColorEnum { Dark = 'DARK' } +/** + * Adds nested create feature + * @export + * @interface UserRequest + */ +export interface UserRequest { + /** + * + * @type {string} + * @memberof UserRequest + */ + first_name?: string; + /** + * + * @type {string} + * @memberof UserRequest + */ + last_name?: string; + /** + * + * @type {number} + * @memberof UserRequest + */ + id?: number; +} /** * Adds nested create feature * @export @@ -6141,6 +7356,25 @@ export interface ViewLog { */ created_at: string; } +/** + * + * @export + * @interface ViewLogRequest + */ +export interface ViewLogRequest { + /** + * + * @type {number} + * @memberof ViewLogRequest + */ + recipe: number; + /** + * + * @type {number} + * @memberof ViewLogRequest + */ + id?: number; +} /** * ApiApi - axios parameter creator @@ -6150,13 +7384,13 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) return { /** * - * @param {AccessToken} accessToken + * @param {AccessTokenRequest} accessTokenRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiAccessTokenCreate: async (accessToken: AccessToken, options: any = {}): Promise => { - // verify required parameter 'accessToken' is not null or undefined - assertParamExists('apiAccessTokenCreate', 'accessToken', accessToken) + apiAccessTokenCreate: async (accessTokenRequest: AccessTokenRequest, options: any = {}): Promise => { + // verify required parameter 'accessTokenRequest' is not null or undefined + assertParamExists('apiAccessTokenCreate', 'accessTokenRequest', accessTokenRequest) 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); @@ -6179,7 +7413,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(accessToken, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(accessTokenRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -6257,11 +7491,11 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) /** * * @param {number} id A unique integer value identifying this access token. - * @param {PatchedAccessToken} [patchedAccessToken] + * @param {PatchedAccessTokenRequest} [patchedAccessTokenRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiAccessTokenPartialUpdate: async (id: number, patchedAccessToken?: PatchedAccessToken, options: any = {}): Promise => { + apiAccessTokenPartialUpdate: async (id: number, patchedAccessTokenRequest?: PatchedAccessTokenRequest, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('apiAccessTokenPartialUpdate', 'id', id) const localVarPath = `/api/access-token/{id}/` @@ -6287,7 +7521,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(patchedAccessToken, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(patchedAccessTokenRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -6333,15 +7567,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) /** * * @param {number} id A unique integer value identifying this access token. - * @param {AccessToken} accessToken + * @param {AccessTokenRequest} accessTokenRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiAccessTokenUpdate: async (id: number, accessToken: AccessToken, options: any = {}): Promise => { + apiAccessTokenUpdate: async (id: number, accessTokenRequest: AccessTokenRequest, 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) + // verify required parameter 'accessTokenRequest' is not null or undefined + assertParamExists('apiAccessTokenUpdate', 'accessTokenRequest', accessTokenRequest) const localVarPath = `/api/access-token/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. @@ -6365,7 +7599,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(accessToken, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(accessTokenRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -6374,13 +7608,13 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }, /** * - * @param {AutoMealPlan} autoMealPlan + * @param {AutoMealPlanRequest} autoMealPlanRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiAutoPlanCreate: async (autoMealPlan: AutoMealPlan, options: any = {}): Promise => { - // verify required parameter 'autoMealPlan' is not null or undefined - assertParamExists('apiAutoPlanCreate', 'autoMealPlan', autoMealPlan) + apiAutoPlanCreate: async (autoMealPlanRequest: AutoMealPlanRequest, options: any = {}): Promise => { + // verify required parameter 'autoMealPlanRequest' is not null or undefined + assertParamExists('apiAutoPlanCreate', 'autoMealPlanRequest', autoMealPlanRequest) 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); @@ -6403,7 +7637,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(autoMealPlan, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(autoMealPlanRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -6412,13 +7646,13 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }, /** * - * @param {Automation} automation + * @param {AutomationRequest} automationRequest * @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) + apiAutomationCreate: async (automationRequest: AutomationRequest, options: any = {}): Promise => { + // verify required parameter 'automationRequest' is not null or undefined + assertParamExists('apiAutomationCreate', 'automationRequest', automationRequest) 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); @@ -6441,7 +7675,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(automation, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(automationRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -6488,11 +7722,11 @@ 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. - * @param {'DESCRIPTION_REPLACE' | 'FOOD_ALIAS' | 'FOOD_REPLACE' | 'INSTRUCTION_REPLACE' | 'KEYWORD_ALIAS' | 'NAME_REPLACE' | 'NEVER_UNIT' | 'TRANSPOSE_WORDS' | 'UNIT_ALIAS' | 'UNIT_REPLACE'} [type] Return the Automations matching the automation type. Repeat for multiple. + * @param {Array<'DESCRIPTION_REPLACE' | 'FOOD_ALIAS' | 'FOOD_REPLACE' | 'INSTRUCTION_REPLACE' | 'KEYWORD_ALIAS' | 'NAME_REPLACE' | 'NEVER_UNIT' | 'TRANSPOSE_WORDS' | 'UNIT_ALIAS' | 'UNIT_REPLACE'>} [type] Return the Automations matching the automation type. Repeat for multiple. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiAutomationList: async (page?: number, pageSize?: number, type?: 'DESCRIPTION_REPLACE' | 'FOOD_ALIAS' | 'FOOD_REPLACE' | 'INSTRUCTION_REPLACE' | 'KEYWORD_ALIAS' | 'NAME_REPLACE' | 'NEVER_UNIT' | 'TRANSPOSE_WORDS' | 'UNIT_ALIAS' | 'UNIT_REPLACE', options: any = {}): Promise => { + apiAutomationList: async (page?: number, pageSize?: number, type?: Array<'DESCRIPTION_REPLACE' | 'FOOD_ALIAS' | 'FOOD_REPLACE' | 'INSTRUCTION_REPLACE' | 'KEYWORD_ALIAS' | 'NAME_REPLACE' | 'NEVER_UNIT' | 'TRANSPOSE_WORDS' | 'UNIT_ALIAS' | 'UNIT_REPLACE'>, 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); @@ -6516,7 +7750,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) localVarQueryParameter['page_size'] = pageSize; } - if (type !== undefined) { + if (type) { localVarQueryParameter['type'] = type; } @@ -6534,11 +7768,11 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) /** * * @param {number} id A unique integer value identifying this automation. - * @param {PatchedAutomation} [patchedAutomation] + * @param {PatchedAutomationRequest} [patchedAutomationRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiAutomationPartialUpdate: async (id: number, patchedAutomation?: PatchedAutomation, options: any = {}): Promise => { + apiAutomationPartialUpdate: async (id: number, patchedAutomationRequest?: PatchedAutomationRequest, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('apiAutomationPartialUpdate', 'id', id) const localVarPath = `/api/automation/{id}/` @@ -6564,7 +7798,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(patchedAutomation, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(patchedAutomationRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -6610,15 +7844,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) /** * * @param {number} id A unique integer value identifying this automation. - * @param {Automation} automation + * @param {AutomationRequest} automationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiAutomationUpdate: async (id: number, automation: Automation, options: any = {}): Promise => { + apiAutomationUpdate: async (id: number, automationRequest: AutomationRequest, 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) + // verify required parameter 'automationRequest' is not null or undefined + assertParamExists('apiAutomationUpdate', 'automationRequest', automationRequest) const localVarPath = `/api/automation/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. @@ -6642,7 +7876,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(automation, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(automationRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -6651,13 +7885,13 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }, /** * - * @param {BookmarkletImport} bookmarkletImport + * @param {BookmarkletImportRequest} bookmarkletImportRequest * @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) + apiBookmarkletImportCreate: async (bookmarkletImportRequest: BookmarkletImportRequest, options: any = {}): Promise => { + // verify required parameter 'bookmarkletImportRequest' is not null or undefined + assertParamExists('apiBookmarkletImportCreate', 'bookmarkletImportRequest', bookmarkletImportRequest) 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); @@ -6680,7 +7914,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(bookmarkletImport, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(bookmarkletImportRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -6768,11 +8002,11 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) /** * * @param {number} id A unique integer value identifying this bookmarklet import. - * @param {PatchedBookmarkletImport} [patchedBookmarkletImport] + * @param {PatchedBookmarkletImportRequest} [patchedBookmarkletImportRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiBookmarkletImportPartialUpdate: async (id: number, patchedBookmarkletImport?: PatchedBookmarkletImport, options: any = {}): Promise => { + apiBookmarkletImportPartialUpdate: async (id: number, patchedBookmarkletImportRequest?: PatchedBookmarkletImportRequest, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('apiBookmarkletImportPartialUpdate', 'id', id) const localVarPath = `/api/bookmarklet-import/{id}/` @@ -6798,7 +8032,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(patchedBookmarkletImport, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(patchedBookmarkletImportRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -6844,15 +8078,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) /** * * @param {number} id A unique integer value identifying this bookmarklet import. - * @param {BookmarkletImport} bookmarkletImport + * @param {BookmarkletImportRequest} bookmarkletImportRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiBookmarkletImportUpdate: async (id: number, bookmarkletImport: BookmarkletImport, options: any = {}): Promise => { + apiBookmarkletImportUpdate: async (id: number, bookmarkletImportRequest: BookmarkletImportRequest, 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) + // verify required parameter 'bookmarkletImportRequest' is not null or undefined + assertParamExists('apiBookmarkletImportUpdate', 'bookmarkletImportRequest', bookmarkletImportRequest) const localVarPath = `/api/bookmarklet-import/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. @@ -6876,7 +8110,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(bookmarkletImport, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(bookmarkletImportRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -6885,13 +8119,13 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }, /** * - * @param {ConnectorConfigConfig} connectorConfigConfig + * @param {ConnectorConfigConfigRequest} connectorConfigConfigRequest * @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) + apiConnectorConfigCreate: async (connectorConfigConfigRequest: ConnectorConfigConfigRequest, options: any = {}): Promise => { + // verify required parameter 'connectorConfigConfigRequest' is not null or undefined + assertParamExists('apiConnectorConfigCreate', 'connectorConfigConfigRequest', connectorConfigConfigRequest) 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); @@ -6914,7 +8148,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(connectorConfigConfig, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(connectorConfigConfigRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -6992,11 +8226,11 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) /** * * @param {number} id A unique integer value identifying this connector config. - * @param {PatchedConnectorConfigConfig} [patchedConnectorConfigConfig] + * @param {PatchedConnectorConfigConfigRequest} [patchedConnectorConfigConfigRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiConnectorConfigPartialUpdate: async (id: number, patchedConnectorConfigConfig?: PatchedConnectorConfigConfig, options: any = {}): Promise => { + apiConnectorConfigPartialUpdate: async (id: number, patchedConnectorConfigConfigRequest?: PatchedConnectorConfigConfigRequest, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('apiConnectorConfigPartialUpdate', 'id', id) const localVarPath = `/api/connector-config/{id}/` @@ -7022,7 +8256,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(patchedConnectorConfigConfig, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(patchedConnectorConfigConfigRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -7068,15 +8302,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) /** * * @param {number} id A unique integer value identifying this connector config. - * @param {ConnectorConfigConfig} connectorConfigConfig + * @param {ConnectorConfigConfigRequest} connectorConfigConfigRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiConnectorConfigUpdate: async (id: number, connectorConfigConfig: ConnectorConfigConfig, options: any = {}): Promise => { + apiConnectorConfigUpdate: async (id: number, connectorConfigConfigRequest: ConnectorConfigConfigRequest, 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) + // verify required parameter 'connectorConfigConfigRequest' is not null or undefined + assertParamExists('apiConnectorConfigUpdate', 'connectorConfigConfigRequest', connectorConfigConfigRequest) const localVarPath = `/api/connector-config/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. @@ -7100,7 +8334,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(connectorConfigConfig, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(connectorConfigConfigRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -7109,13 +8343,13 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }, /** * - * @param {CookLog} cookLog + * @param {CookLogRequest} cookLogRequest * @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) + apiCookLogCreate: async (cookLogRequest: CookLogRequest, options: any = {}): Promise => { + // verify required parameter 'cookLogRequest' is not null or undefined + assertParamExists('apiCookLogCreate', 'cookLogRequest', cookLogRequest) 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); @@ -7138,7 +8372,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(cookLog, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(cookLogRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -7231,11 +8465,11 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) /** * * @param {number} id A unique integer value identifying this cook log. - * @param {PatchedCookLog} [patchedCookLog] + * @param {PatchedCookLogRequest} [patchedCookLogRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiCookLogPartialUpdate: async (id: number, patchedCookLog?: PatchedCookLog, options: any = {}): Promise => { + apiCookLogPartialUpdate: async (id: number, patchedCookLogRequest?: PatchedCookLogRequest, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('apiCookLogPartialUpdate', 'id', id) const localVarPath = `/api/cook-log/{id}/` @@ -7261,7 +8495,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(patchedCookLog, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(patchedCookLogRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -7307,15 +8541,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) /** * * @param {number} id A unique integer value identifying this cook log. - * @param {CookLog} cookLog + * @param {CookLogRequest} cookLogRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiCookLogUpdate: async (id: number, cookLog: CookLog, options: any = {}): Promise => { + apiCookLogUpdate: async (id: number, cookLogRequest: CookLogRequest, 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) + // verify required parameter 'cookLogRequest' is not null or undefined + assertParamExists('apiCookLogUpdate', 'cookLogRequest', cookLogRequest) const localVarPath = `/api/cook-log/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. @@ -7339,7 +8573,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(cookLog, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(cookLogRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -7348,13 +8582,13 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }, /** * - * @param {CustomFilter} customFilter + * @param {CustomFilterRequest} customFilterRequest * @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) + apiCustomFilterCreate: async (customFilterRequest: CustomFilterRequest, options: any = {}): Promise => { + // verify required parameter 'customFilterRequest' is not null or undefined + assertParamExists('apiCustomFilterCreate', 'customFilterRequest', customFilterRequest) 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); @@ -7377,7 +8611,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(customFilter, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(customFilterRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -7427,12 +8661,12 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) * @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 {'FOOD' | 'KEYWORD' | 'RECIPE'} [type] Return the CustomFilters matching the model type. Repeat for multiple. + * @param {Array<'FOOD' | 'KEYWORD' | 'RECIPE'>} [type] Return the CustomFilters matching the model type. Repeat for multiple. * @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, type?: 'FOOD' | 'KEYWORD' | 'RECIPE', updatedAt?: string, options: any = {}): Promise => { + apiCustomFilterList: async (limit?: string, page?: number, pageSize?: number, query?: string, random?: string, type?: Array<'FOOD' | 'KEYWORD' | 'RECIPE'>, 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); @@ -7468,7 +8702,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) localVarQueryParameter['random'] = random; } - if (type !== undefined) { + if (type) { localVarQueryParameter['type'] = type; } @@ -7490,11 +8724,11 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) /** * * @param {number} id A unique integer value identifying this custom filter. - * @param {PatchedCustomFilter} [patchedCustomFilter] + * @param {PatchedCustomFilterRequest} [patchedCustomFilterRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiCustomFilterPartialUpdate: async (id: number, patchedCustomFilter?: PatchedCustomFilter, options: any = {}): Promise => { + apiCustomFilterPartialUpdate: async (id: number, patchedCustomFilterRequest?: PatchedCustomFilterRequest, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('apiCustomFilterPartialUpdate', 'id', id) const localVarPath = `/api/custom-filter/{id}/` @@ -7520,7 +8754,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(patchedCustomFilter, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(patchedCustomFilterRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -7566,15 +8800,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) /** * * @param {number} id A unique integer value identifying this custom filter. - * @param {CustomFilter} customFilter + * @param {CustomFilterRequest} customFilterRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiCustomFilterUpdate: async (id: number, customFilter: CustomFilter, options: any = {}): Promise => { + apiCustomFilterUpdate: async (id: number, customFilterRequest: CustomFilterRequest, 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) + // verify required parameter 'customFilterRequest' is not null or undefined + assertParamExists('apiCustomFilterUpdate', 'customFilterRequest', customFilterRequest) const localVarPath = `/api/custom-filter/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. @@ -7598,7 +8832,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(customFilter, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(customFilterRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -7643,13 +8877,13 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }, /** * - * @param {ExportLog} exportLog + * @param {ExportLogRequest} exportLogRequest * @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) + apiExportLogCreate: async (exportLogRequest: ExportLogRequest, options: any = {}): Promise => { + // verify required parameter 'exportLogRequest' is not null or undefined + assertParamExists('apiExportLogCreate', 'exportLogRequest', exportLogRequest) 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); @@ -7672,7 +8906,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(exportLog, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(exportLogRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -7760,11 +8994,11 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) /** * * @param {number} id A unique integer value identifying this export log. - * @param {PatchedExportLog} [patchedExportLog] + * @param {PatchedExportLogRequest} [patchedExportLogRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiExportLogPartialUpdate: async (id: number, patchedExportLog?: PatchedExportLog, options: any = {}): Promise => { + apiExportLogPartialUpdate: async (id: number, patchedExportLogRequest?: PatchedExportLogRequest, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('apiExportLogPartialUpdate', 'id', id) const localVarPath = `/api/export-log/{id}/` @@ -7790,7 +9024,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(patchedExportLog, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(patchedExportLogRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -7836,15 +9070,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) /** * * @param {number} id A unique integer value identifying this export log. - * @param {ExportLog} exportLog + * @param {ExportLogRequest} exportLogRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiExportLogUpdate: async (id: number, exportLog: ExportLog, options: any = {}): Promise => { + apiExportLogUpdate: async (id: number, exportLogRequest: ExportLogRequest, 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) + // verify required parameter 'exportLogRequest' is not null or undefined + assertParamExists('apiExportLogUpdate', 'exportLogRequest', exportLogRequest) const localVarPath = `/api/export-log/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. @@ -7868,7 +9102,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(exportLog, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(exportLogRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -7877,13 +9111,13 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }, /** * - * @param {Food} food + * @param {FoodRequest} foodRequest * @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) + apiFoodCreate: async (foodRequest: FoodRequest, options: any = {}): Promise => { + // verify required parameter 'foodRequest' is not null or undefined + assertParamExists('apiFoodCreate', 'foodRequest', foodRequest) 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); @@ -7906,7 +9140,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(food, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(foodRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -7952,15 +9186,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: 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 {FoodRequest} foodRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiFoodFdcCreate: async (id: number, food: Food, options: any = {}): Promise => { + apiFoodFdcCreate: async (id: number, foodRequest: FoodRequest, 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) + // verify required parameter 'foodRequest' is not null or undefined + assertParamExists('apiFoodFdcCreate', 'foodRequest', foodRequest) const localVarPath = `/api/food/{id}/fdc/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. @@ -7984,7 +9218,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(food, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(foodRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -8135,17 +9369,17 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) * * @param {number} id A unique integer value identifying this food. * @param {number} target The ID of the {obj} you want to merge with. - * @param {Food} food + * @param {FoodRequest} foodRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiFoodMergeUpdate: async (id: number, target: number, food: Food, options: any = {}): Promise => { + apiFoodMergeUpdate: async (id: number, target: number, foodRequest: FoodRequest, 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('apiFoodMergeUpdate', 'target', target) - // verify required parameter 'food' is not null or undefined - assertParamExists('apiFoodMergeUpdate', 'food', food) + // verify required parameter 'foodRequest' is not null or undefined + assertParamExists('apiFoodMergeUpdate', 'foodRequest', foodRequest) const localVarPath = `/api/food/{id}/merge/{target}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))) .replace(`{${"target"}}`, encodeURIComponent(String(target))); @@ -8170,7 +9404,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(food, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(foodRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -8181,17 +9415,17 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) * * @param {number} id A unique integer value identifying this food. * @param {number} parent The ID of the desired parent of the {obj}. - * @param {Food} food + * @param {FoodRequest} foodRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiFoodMoveUpdate: async (id: number, parent: number, food: Food, options: any = {}): Promise => { + apiFoodMoveUpdate: async (id: number, parent: number, foodRequest: FoodRequest, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('apiFoodMoveUpdate', 'id', id) // verify required parameter 'parent' is not null or undefined assertParamExists('apiFoodMoveUpdate', 'parent', parent) - // verify required parameter 'food' is not null or undefined - assertParamExists('apiFoodMoveUpdate', 'food', food) + // verify required parameter 'foodRequest' is not null or undefined + assertParamExists('apiFoodMoveUpdate', 'foodRequest', foodRequest) const localVarPath = `/api/food/{id}/move/{parent}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))) .replace(`{${"parent"}}`, encodeURIComponent(String(parent))); @@ -8216,7 +9450,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(food, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(foodRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -8226,11 +9460,11 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) /** * * @param {number} id A unique integer value identifying this food. - * @param {PatchedFood} [patchedFood] + * @param {PatchedFoodRequest} [patchedFoodRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiFoodPartialUpdate: async (id: number, patchedFood?: PatchedFood, options: any = {}): Promise => { + apiFoodPartialUpdate: async (id: number, patchedFoodRequest?: PatchedFoodRequest, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('apiFoodPartialUpdate', 'id', id) const localVarPath = `/api/food/{id}/` @@ -8256,7 +9490,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(patchedFood, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(patchedFoodRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -8265,13 +9499,13 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }, /** * - * @param {Property} property + * @param {PropertyRequest} propertyRequest * @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) + apiFoodPropertyCreate: async (propertyRequest: PropertyRequest, options: any = {}): Promise => { + // verify required parameter 'propertyRequest' is not null or undefined + assertParamExists('apiFoodPropertyCreate', 'propertyRequest', propertyRequest) 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); @@ -8294,7 +9528,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(property, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(propertyRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -8382,11 +9616,11 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) /** * * @param {number} id A unique integer value identifying this property. - * @param {PatchedProperty} [patchedProperty] + * @param {PatchedPropertyRequest} [patchedPropertyRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiFoodPropertyPartialUpdate: async (id: number, patchedProperty?: PatchedProperty, options: any = {}): Promise => { + apiFoodPropertyPartialUpdate: async (id: number, patchedPropertyRequest?: PatchedPropertyRequest, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('apiFoodPropertyPartialUpdate', 'id', id) const localVarPath = `/api/food-property/{id}/` @@ -8412,7 +9646,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(patchedProperty, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(patchedPropertyRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -8457,13 +9691,13 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }, /** * - * @param {PropertyType} propertyType + * @param {PropertyTypeRequest} propertyTypeRequest * @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) + apiFoodPropertyTypeCreate: async (propertyTypeRequest: PropertyTypeRequest, options: any = {}): Promise => { + // verify required parameter 'propertyTypeRequest' is not null or undefined + assertParamExists('apiFoodPropertyTypeCreate', 'propertyTypeRequest', propertyTypeRequest) 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); @@ -8486,7 +9720,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(propertyType, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(propertyTypeRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -8531,13 +9765,13 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }, /** * - * @param {'ALLERGEN' | 'GOAL' | 'NUTRITION' | 'OTHER' | 'PRICE'} [category] Return the PropertyTypes matching the property category. Repeat for multiple. + * @param {Array<'ALLERGEN' | 'GOAL' | 'NUTRITION' | 'OTHER' | 'PRICE'>} [category] Return the PropertyTypes matching the property category. Repeat for multiple. * @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} */ - apiFoodPropertyTypeList: async (category?: 'ALLERGEN' | 'GOAL' | 'NUTRITION' | 'OTHER' | 'PRICE', page?: number, pageSize?: number, options: any = {}): Promise => { + apiFoodPropertyTypeList: async (category?: Array<'ALLERGEN' | 'GOAL' | 'NUTRITION' | 'OTHER' | 'PRICE'>, page?: number, pageSize?: number, 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); @@ -8553,7 +9787,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - if (category !== undefined) { + if (category) { localVarQueryParameter['category'] = category; } @@ -8579,11 +9813,11 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) /** * * @param {number} id A unique integer value identifying this property type. - * @param {PatchedPropertyType} [patchedPropertyType] + * @param {PatchedPropertyTypeRequest} [patchedPropertyTypeRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiFoodPropertyTypePartialUpdate: async (id: number, patchedPropertyType?: PatchedPropertyType, options: any = {}): Promise => { + apiFoodPropertyTypePartialUpdate: async (id: number, patchedPropertyTypeRequest?: PatchedPropertyTypeRequest, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('apiFoodPropertyTypePartialUpdate', 'id', id) const localVarPath = `/api/food-property-type/{id}/` @@ -8609,7 +9843,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(patchedPropertyType, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(patchedPropertyTypeRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -8655,15 +9889,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) /** * * @param {number} id A unique integer value identifying this property type. - * @param {PropertyType} propertyType + * @param {PropertyTypeRequest} propertyTypeRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiFoodPropertyTypeUpdate: async (id: number, propertyType: PropertyType, options: any = {}): Promise => { + apiFoodPropertyTypeUpdate: async (id: number, propertyTypeRequest: PropertyTypeRequest, 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) + // verify required parameter 'propertyTypeRequest' is not null or undefined + assertParamExists('apiFoodPropertyTypeUpdate', 'propertyTypeRequest', propertyTypeRequest) 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. @@ -8687,7 +9921,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(propertyType, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(propertyTypeRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -8697,15 +9931,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) /** * * @param {number} id A unique integer value identifying this property. - * @param {Property} property + * @param {PropertyRequest} propertyRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiFoodPropertyUpdate: async (id: number, property: Property, options: any = {}): Promise => { + apiFoodPropertyUpdate: async (id: number, propertyRequest: PropertyRequest, 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) + // verify required parameter 'propertyRequest' is not null or undefined + assertParamExists('apiFoodPropertyUpdate', 'propertyRequest', propertyRequest) const localVarPath = `/api/food-property/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. @@ -8729,7 +9963,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(property, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(propertyRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -8775,15 +10009,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) /** * * @param {number} id A unique integer value identifying this food. - * @param {FoodShoppingUpdate} foodShoppingUpdate + * @param {FoodShoppingUpdateRequest} foodShoppingUpdateRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiFoodShoppingUpdate: async (id: number, foodShoppingUpdate: FoodShoppingUpdate, options: any = {}): Promise => { + apiFoodShoppingUpdate: async (id: number, foodShoppingUpdateRequest: FoodShoppingUpdateRequest, 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) + // verify required parameter 'foodShoppingUpdateRequest' is not null or undefined + assertParamExists('apiFoodShoppingUpdate', 'foodShoppingUpdateRequest', foodShoppingUpdateRequest) const localVarPath = `/api/food/{id}/shopping/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. @@ -8807,7 +10041,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(foodShoppingUpdate, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(foodShoppingUpdateRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -8817,15 +10051,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) /** * * @param {number} id A unique integer value identifying this food. - * @param {Food} food + * @param {FoodRequest} foodRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiFoodUpdate: async (id: number, food: Food, options: any = {}): Promise => { + apiFoodUpdate: async (id: number, foodRequest: FoodRequest, 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) + // verify required parameter 'foodRequest' is not null or undefined + assertParamExists('apiFoodUpdate', 'foodRequest', foodRequest) const localVarPath = `/api/food/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. @@ -8849,7 +10083,79 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(food, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(foodRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * + * @param {number} recipeId + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiGetExternalFileLinkRetrieve: async (recipeId: number, options: any = {}): Promise => { + // verify required parameter 'recipeId' is not null or undefined + assertParamExists('apiGetExternalFileLinkRetrieve', 'recipeId', recipeId) + const localVarPath = `/api/get_external_file_link/{recipeId}/` + .replace(`{${"recipeId"}}`, encodeURIComponent(String(recipeId))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, 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} recipeId + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiGetRecipeFileRetrieve: async (recipeId: number, options: any = {}): Promise => { + // verify required parameter 'recipeId' is not null or undefined + assertParamExists('apiGetRecipeFileRetrieve', 'recipeId', recipeId) + const localVarPath = `/api/get_recipe_file/{recipeId}/` + .replace(`{${"recipeId"}}`, encodeURIComponent(String(recipeId))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, 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), @@ -8958,13 +10264,13 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }, /** * - * @param {ImportLog} importLog + * @param {ImportLogRequest} importLogRequest * @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) + apiImportLogCreate: async (importLogRequest: ImportLogRequest, options: any = {}): Promise => { + // verify required parameter 'importLogRequest' is not null or undefined + assertParamExists('apiImportLogCreate', 'importLogRequest', importLogRequest) 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); @@ -8987,7 +10293,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(importLog, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(importLogRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -9075,11 +10381,11 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) /** * * @param {number} id A unique integer value identifying this import log. - * @param {PatchedImportLog} [patchedImportLog] + * @param {PatchedImportLogRequest} [patchedImportLogRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiImportLogPartialUpdate: async (id: number, patchedImportLog?: PatchedImportLog, options: any = {}): Promise => { + apiImportLogPartialUpdate: async (id: number, patchedImportLogRequest?: PatchedImportLogRequest, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('apiImportLogPartialUpdate', 'id', id) const localVarPath = `/api/import-log/{id}/` @@ -9105,7 +10411,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(patchedImportLog, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(patchedImportLogRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -9151,15 +10457,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) /** * * @param {number} id A unique integer value identifying this import log. - * @param {ImportLog} importLog + * @param {ImportLogRequest} importLogRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiImportLogUpdate: async (id: number, importLog: ImportLog, options: any = {}): Promise => { + apiImportLogUpdate: async (id: number, importLogRequest: ImportLogRequest, 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) + // verify required parameter 'importLogRequest' is not null or undefined + assertParamExists('apiImportLogUpdate', 'importLogRequest', importLogRequest) const localVarPath = `/api/import-log/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. @@ -9183,7 +10489,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(importLog, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(importLogRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -9192,13 +10498,13 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }, /** * - * @param {Ingredient} ingredient + * @param {IngredientRequest} ingredientRequest * @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) + apiIngredientCreate: async (ingredientRequest: IngredientRequest, options: any = {}): Promise => { + // verify required parameter 'ingredientRequest' is not null or undefined + assertParamExists('apiIngredientCreate', 'ingredientRequest', ingredientRequest) 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); @@ -9221,7 +10527,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(ingredient, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(ingredientRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -9264,6 +10570,44 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) options: localVarRequestOptions, }; }, + /** + * + * @param {IngredientStringRequest} ingredientStringRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiIngredientFromStringCreate: async (ingredientStringRequest: IngredientStringRequest, options: any = {}): Promise => { + // verify required parameter 'ingredientStringRequest' is not null or undefined + assertParamExists('apiIngredientFromStringCreate', 'ingredientStringRequest', ingredientStringRequest) + const localVarPath = `/api/ingredient-from-string/`; + // use dummy base URL string because the 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(ingredientStringRequest, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, /** * * @param {number} [food] ID of food to filter for @@ -9319,11 +10663,11 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) /** * * @param {number} id A unique integer value identifying this ingredient. - * @param {PatchedIngredient} [patchedIngredient] + * @param {PatchedIngredientRequest} [patchedIngredientRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiIngredientPartialUpdate: async (id: number, patchedIngredient?: PatchedIngredient, options: any = {}): Promise => { + apiIngredientPartialUpdate: async (id: number, patchedIngredientRequest?: PatchedIngredientRequest, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('apiIngredientPartialUpdate', 'id', id) const localVarPath = `/api/ingredient/{id}/` @@ -9349,7 +10693,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(patchedIngredient, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(patchedIngredientRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -9395,15 +10739,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) /** * * @param {number} id A unique integer value identifying this ingredient. - * @param {Ingredient} ingredient + * @param {IngredientRequest} ingredientRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiIngredientUpdate: async (id: number, ingredient: Ingredient, options: any = {}): Promise => { + apiIngredientUpdate: async (id: number, ingredientRequest: IngredientRequest, 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) + // verify required parameter 'ingredientRequest' is not null or undefined + assertParamExists('apiIngredientUpdate', 'ingredientRequest', ingredientRequest) const localVarPath = `/api/ingredient/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. @@ -9427,7 +10771,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(ingredient, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(ingredientRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -9436,13 +10780,13 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }, /** * - * @param {InviteLink} inviteLink + * @param {InviteLinkRequest} inviteLinkRequest * @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) + apiInviteLinkCreate: async (inviteLinkRequest: InviteLinkRequest, options: any = {}): Promise => { + // verify required parameter 'inviteLinkRequest' is not null or undefined + assertParamExists('apiInviteLinkCreate', 'inviteLinkRequest', inviteLinkRequest) 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); @@ -9465,7 +10809,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(inviteLink, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(inviteLinkRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -9578,11 +10922,11 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) /** * * @param {number} id A unique integer value identifying this invite link. - * @param {PatchedInviteLink} [patchedInviteLink] + * @param {PatchedInviteLinkRequest} [patchedInviteLinkRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiInviteLinkPartialUpdate: async (id: number, patchedInviteLink?: PatchedInviteLink, options: any = {}): Promise => { + apiInviteLinkPartialUpdate: async (id: number, patchedInviteLinkRequest?: PatchedInviteLinkRequest, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('apiInviteLinkPartialUpdate', 'id', id) const localVarPath = `/api/invite-link/{id}/` @@ -9608,7 +10952,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(patchedInviteLink, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(patchedInviteLinkRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -9654,15 +10998,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) /** * * @param {number} id A unique integer value identifying this invite link. - * @param {InviteLink} inviteLink + * @param {InviteLinkRequest} inviteLinkRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiInviteLinkUpdate: async (id: number, inviteLink: InviteLink, options: any = {}): Promise => { + apiInviteLinkUpdate: async (id: number, inviteLinkRequest: InviteLinkRequest, 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) + // verify required parameter 'inviteLinkRequest' is not null or undefined + assertParamExists('apiInviteLinkUpdate', 'inviteLinkRequest', inviteLinkRequest) const localVarPath = `/api/invite-link/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. @@ -9686,7 +11030,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(inviteLink, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(inviteLinkRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -9695,13 +11039,13 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }, /** * - * @param {Keyword} keyword + * @param {KeywordRequest} keywordRequest * @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) + apiKeywordCreate: async (keywordRequest: KeywordRequest, options: any = {}): Promise => { + // verify required parameter 'keywordRequest' is not null or undefined + assertParamExists('apiKeywordCreate', 'keywordRequest', keywordRequest) 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); @@ -9724,7 +11068,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(keyword, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(keywordRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -9843,17 +11187,17 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) * * @param {number} id A unique integer value identifying this keyword. * @param {number} target The ID of the {obj} you want to merge with. - * @param {Keyword} keyword + * @param {KeywordRequest} keywordRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiKeywordMergeUpdate: async (id: number, target: number, keyword: Keyword, options: any = {}): Promise => { + apiKeywordMergeUpdate: async (id: number, target: number, keywordRequest: KeywordRequest, 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) + // verify required parameter 'keywordRequest' is not null or undefined + assertParamExists('apiKeywordMergeUpdate', 'keywordRequest', keywordRequest) const localVarPath = `/api/keyword/{id}/merge/{target}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))) .replace(`{${"target"}}`, encodeURIComponent(String(target))); @@ -9878,7 +11222,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(keyword, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(keywordRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -9889,17 +11233,17 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) * * @param {number} id A unique integer value identifying this keyword. * @param {number} parent The ID of the desired parent of the {obj}. - * @param {Keyword} keyword + * @param {KeywordRequest} keywordRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiKeywordMoveUpdate: async (id: number, parent: number, keyword: Keyword, options: any = {}): Promise => { + apiKeywordMoveUpdate: async (id: number, parent: number, keywordRequest: KeywordRequest, 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('apiKeywordMoveUpdate', 'parent', parent) - // verify required parameter 'keyword' is not null or undefined - assertParamExists('apiKeywordMoveUpdate', 'keyword', keyword) + // verify required parameter 'keywordRequest' is not null or undefined + assertParamExists('apiKeywordMoveUpdate', 'keywordRequest', keywordRequest) const localVarPath = `/api/keyword/{id}/move/{parent}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))) .replace(`{${"parent"}}`, encodeURIComponent(String(parent))); @@ -9924,7 +11268,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(keyword, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(keywordRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -9934,11 +11278,11 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) /** * * @param {number} id A unique integer value identifying this keyword. - * @param {PatchedKeyword} [patchedKeyword] + * @param {PatchedKeywordRequest} [patchedKeywordRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiKeywordPartialUpdate: async (id: number, patchedKeyword?: PatchedKeyword, options: any = {}): Promise => { + apiKeywordPartialUpdate: async (id: number, patchedKeywordRequest?: PatchedKeywordRequest, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('apiKeywordPartialUpdate', 'id', id) const localVarPath = `/api/keyword/{id}/` @@ -9964,7 +11308,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(patchedKeyword, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(patchedKeywordRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -10010,15 +11354,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) /** * * @param {number} id A unique integer value identifying this keyword. - * @param {Keyword} keyword + * @param {KeywordRequest} keywordRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiKeywordUpdate: async (id: number, keyword: Keyword, options: any = {}): Promise => { + apiKeywordUpdate: async (id: number, keywordRequest: KeywordRequest, 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) + // verify required parameter 'keywordRequest' is not null or undefined + assertParamExists('apiKeywordUpdate', 'keywordRequest', keywordRequest) const localVarPath = `/api/keyword/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. @@ -10042,7 +11386,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(keyword, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(keywordRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -10051,13 +11395,13 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }, /** * - * @param {MealPlan} mealPlan + * @param {MealPlanRequest} mealPlanRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiMealPlanCreate: async (mealPlan: MealPlan, options: any = {}): Promise => { - // verify required parameter 'mealPlan' is not null or undefined - assertParamExists('apiMealPlanCreate', 'mealPlan', mealPlan) + apiMealPlanCreate: async (mealPlanRequest: MealPlanRequest, options: any = {}): Promise => { + // verify required parameter 'mealPlanRequest' is not null or undefined + assertParamExists('apiMealPlanCreate', 'mealPlanRequest', mealPlanRequest) 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); @@ -10080,7 +11424,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(mealPlan, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(mealPlanRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -10126,12 +11470,12 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) /** * * @param {string} [fromDate] Filter meal plans from date (inclusive). - * @param {string} [mealType] Filter meal plans with MealType ID. For multiple repeat parameter. + * @param {Array} [mealType] Filter meal plans with MealType ID. For multiple repeat parameter. * @param {string} [toDate] Filter meal plans to date (inclusive). * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiMealPlanIcalRetrieve: async (fromDate?: string, mealType?: string, toDate?: string, options: any = {}): Promise => { + apiMealPlanIcalRetrieve: async (fromDate?: string, mealType?: Array, 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); @@ -10151,7 +11495,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) localVarQueryParameter['from_date'] = fromDate; } - if (mealType !== undefined) { + if (mealType) { localVarQueryParameter['meal_type'] = mealType; } @@ -10173,14 +11517,14 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) /** * * @param {string} [fromDate] Filter meal plans from date (inclusive). - * @param {string} [mealType] Filter meal plans with MealType ID. For multiple repeat parameter. + * @param {Array} [mealType] Filter meal plans with MealType ID. For multiple repeat parameter. * @param {number} [page] A page number within the paginated result set. * @param {number} [pageSize] Number of results to return per page. * @param {string} [toDate] Filter meal plans to date (inclusive). * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiMealPlanList: async (fromDate?: string, mealType?: string, page?: number, pageSize?: number, toDate?: string, options: any = {}): Promise => { + apiMealPlanList: async (fromDate?: string, mealType?: Array, page?: number, pageSize?: number, 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); @@ -10200,7 +11544,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) localVarQueryParameter['from_date'] = fromDate; } - if (mealType !== undefined) { + if (mealType) { localVarQueryParameter['meal_type'] = mealType; } @@ -10230,11 +11574,11 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) /** * * @param {number} id A unique integer value identifying this meal plan. - * @param {PatchedMealPlan} [patchedMealPlan] + * @param {PatchedMealPlanRequest} [patchedMealPlanRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiMealPlanPartialUpdate: async (id: number, patchedMealPlan?: PatchedMealPlan, options: any = {}): Promise => { + apiMealPlanPartialUpdate: async (id: number, patchedMealPlanRequest?: PatchedMealPlanRequest, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('apiMealPlanPartialUpdate', 'id', id) const localVarPath = `/api/meal-plan/{id}/` @@ -10260,7 +11604,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(patchedMealPlan, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(patchedMealPlanRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -10306,15 +11650,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) /** * * @param {number} id A unique integer value identifying this meal plan. - * @param {MealPlan} mealPlan + * @param {MealPlanRequest} mealPlanRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiMealPlanUpdate: async (id: number, mealPlan: MealPlan, options: any = {}): Promise => { + apiMealPlanUpdate: async (id: number, mealPlanRequest: MealPlanRequest, 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) + // verify required parameter 'mealPlanRequest' is not null or undefined + assertParamExists('apiMealPlanUpdate', 'mealPlanRequest', mealPlanRequest) const localVarPath = `/api/meal-plan/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. @@ -10338,7 +11682,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(mealPlan, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(mealPlanRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -10347,13 +11691,13 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }, /** * returns list of meal types created by the requesting user ordered by the order field. - * @param {MealType} mealType + * @param {MealTypeRequest} mealTypeRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiMealTypeCreate: async (mealType: MealType, options: any = {}): Promise => { - // verify required parameter 'mealType' is not null or undefined - assertParamExists('apiMealTypeCreate', 'mealType', mealType) + apiMealTypeCreate: async (mealTypeRequest: MealTypeRequest, options: any = {}): Promise => { + // verify required parameter 'mealTypeRequest' is not null or undefined + assertParamExists('apiMealTypeCreate', 'mealTypeRequest', mealTypeRequest) 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); @@ -10376,7 +11720,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(mealType, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(mealTypeRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -10464,11 +11808,11 @@ export const ApiApiAxiosParamCreator = function (configuration?: 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 {PatchedMealTypeRequest} [patchedMealTypeRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiMealTypePartialUpdate: async (id: number, patchedMealType?: PatchedMealType, options: any = {}): Promise => { + apiMealTypePartialUpdate: async (id: number, patchedMealTypeRequest?: PatchedMealTypeRequest, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('apiMealTypePartialUpdate', 'id', id) const localVarPath = `/api/meal-type/{id}/` @@ -10494,7 +11838,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(patchedMealType, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(patchedMealTypeRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -10540,15 +11884,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: 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 {MealTypeRequest} mealTypeRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiMealTypeUpdate: async (id: number, mealType: MealType, options: any = {}): Promise => { + apiMealTypeUpdate: async (id: number, mealTypeRequest: MealTypeRequest, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('apiMealTypeUpdate', 'id', id) - // verify required parameter 'mealType' is not null or undefined - assertParamExists('apiMealTypeUpdate', 'mealType', mealType) + // verify required parameter 'mealTypeRequest' is not null or undefined + assertParamExists('apiMealTypeUpdate', 'mealTypeRequest', mealTypeRequest) const localVarPath = `/api/meal-type/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. @@ -10572,7 +11916,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(mealType, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(mealTypeRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -10581,53 +11925,13 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }, /** * - * @param {string} fromDate - * @param {string} toDate + * @param {RecipeBookRequest} recipeBookRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - 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; - 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 {RecipeBook} recipeBook - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - apiRecipeBookCreate: async (recipeBook: RecipeBook, options: any = {}): Promise => { - // verify required parameter 'recipeBook' is not null or undefined - assertParamExists('apiRecipeBookCreate', 'recipeBook', recipeBook) + apiRecipeBookCreate: async (recipeBookRequest: RecipeBookRequest, options: any = {}): Promise => { + // verify required parameter 'recipeBookRequest' is not null or undefined + assertParamExists('apiRecipeBookCreate', 'recipeBookRequest', recipeBookRequest) 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); @@ -10650,7 +11954,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(recipeBook, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(recipeBookRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -10695,13 +11999,13 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }, /** * - * @param {RecipeBookEntry} recipeBookEntry + * @param {RecipeBookEntryRequest} recipeBookEntryRequest * @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) + apiRecipeBookEntryCreate: async (recipeBookEntryRequest: RecipeBookEntryRequest, options: any = {}): Promise => { + // verify required parameter 'recipeBookEntryRequest' is not null or undefined + assertParamExists('apiRecipeBookEntryCreate', 'recipeBookEntryRequest', recipeBookEntryRequest) 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); @@ -10724,7 +12028,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(recipeBookEntry, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(recipeBookEntryRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -10822,11 +12126,11 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) /** * * @param {number} id A unique integer value identifying this recipe book entry. - * @param {PatchedRecipeBookEntry} [patchedRecipeBookEntry] + * @param {PatchedRecipeBookEntryRequest} [patchedRecipeBookEntryRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiRecipeBookEntryPartialUpdate: async (id: number, patchedRecipeBookEntry?: PatchedRecipeBookEntry, options: any = {}): Promise => { + apiRecipeBookEntryPartialUpdate: async (id: number, patchedRecipeBookEntryRequest?: PatchedRecipeBookEntryRequest, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('apiRecipeBookEntryPartialUpdate', 'id', id) const localVarPath = `/api/recipe-book-entry/{id}/` @@ -10852,7 +12156,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(patchedRecipeBookEntry, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(patchedRecipeBookEntryRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -10898,15 +12202,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) /** * * @param {number} id A unique integer value identifying this recipe book entry. - * @param {RecipeBookEntry} recipeBookEntry + * @param {RecipeBookEntryRequest} recipeBookEntryRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiRecipeBookEntryUpdate: async (id: number, recipeBookEntry: RecipeBookEntry, options: any = {}): Promise => { + apiRecipeBookEntryUpdate: async (id: number, recipeBookEntryRequest: RecipeBookEntryRequest, 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) + // verify required parameter 'recipeBookEntryRequest' is not null or undefined + assertParamExists('apiRecipeBookEntryUpdate', 'recipeBookEntryRequest', recipeBookEntryRequest) 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. @@ -10930,7 +12234,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(recipeBookEntry, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(recipeBookEntryRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -11012,11 +12316,11 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) /** * * @param {number} id A unique integer value identifying this recipe book. - * @param {PatchedRecipeBook} [patchedRecipeBook] + * @param {PatchedRecipeBookRequest} [patchedRecipeBookRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiRecipeBookPartialUpdate: async (id: number, patchedRecipeBook?: PatchedRecipeBook, options: any = {}): Promise => { + apiRecipeBookPartialUpdate: async (id: number, patchedRecipeBookRequest?: PatchedRecipeBookRequest, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('apiRecipeBookPartialUpdate', 'id', id) const localVarPath = `/api/recipe-book/{id}/` @@ -11042,7 +12346,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(patchedRecipeBook, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(patchedRecipeBookRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -11088,15 +12392,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) /** * * @param {number} id A unique integer value identifying this recipe book. - * @param {RecipeBook} recipeBook + * @param {RecipeBookRequest} recipeBookRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiRecipeBookUpdate: async (id: number, recipeBook: RecipeBook, options: any = {}): Promise => { + apiRecipeBookUpdate: async (id: number, recipeBookRequest: RecipeBookRequest, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('apiRecipeBookUpdate', 'id', id) - // verify required parameter 'recipeBook' is not null or undefined - assertParamExists('apiRecipeBookUpdate', 'recipeBook', recipeBook) + // verify required parameter 'recipeBookRequest' is not null or undefined + assertParamExists('apiRecipeBookUpdate', 'recipeBookRequest', recipeBookRequest) const localVarPath = `/api/recipe-book/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. @@ -11120,7 +12424,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(recipeBook, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(recipeBookRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -11129,13 +12433,13 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }, /** * - * @param {Recipe} recipe + * @param {RecipeRequest} recipeRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiRecipeCreate: async (recipe: Recipe, options: any = {}): Promise => { - // verify required parameter 'recipe' is not null or undefined - assertParamExists('apiRecipeCreate', 'recipe', recipe) + apiRecipeCreate: async (recipeRequest: RecipeRequest, options: any = {}): Promise => { + // verify required parameter 'recipeRequest' is not null or undefined + assertParamExists('apiRecipeCreate', 'recipeRequest', recipeRequest) 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); @@ -11158,7 +12462,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(recipe, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(recipeRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -11268,12 +12572,12 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) /** * * @param {number} id A unique integer value identifying this recipe. - * @param {string} [image] + * @param {any} [image] * @param {string} [imageUrl] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiRecipeImageUpdate: async (id: number, image?: string, imageUrl?: string, options: any = {}): Promise => { + apiRecipeImageUpdate: async (id: number, image?: any, imageUrl?: string, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('apiRecipeImageUpdate', 'id', id) const localVarPath = `/api/recipe/{id}/image/` @@ -11317,24 +12621,24 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }, /** * - * @param {number} [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 {Array} [books] ID of book a recipe should be in. For multiple repeat parameter. + * @param {Array} [booksAnd] Book IDs, repeat for multiple. Return recipes with all of the books. + * @param {Array} [booksAndNot] Book IDs, repeat for multiple. Exclude recipes with all of the books. + * @param {Array} [booksOr] Book IDs, repeat for multiple. Return recipes with any of the books + * @param {Array} [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 {Array} [foods] ID of food a recipe should have. For multiple repeat parameter. + * @param {Array} [foodsAnd] Food IDs, repeat for multiple. Return recipes with all of the foods. + * @param {Array} [foodsAndNot] Food IDs, repeat for multiple. Exclude recipes with all of the foods. + * @param {Array} [foodsOr] Food IDs, repeat for multiple. Return recipes with any of the foods + * @param {Array} [foodsOrNot] Food IDs, repeat for multiple. Exclude recipes with any of the foods. * @param {boolean} [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 {Array} [keywords] ID of keyword a recipe should have. For multiple repeat parameter. Equivalent to keywords_or + * @param {Array} [keywordsAnd] Keyword IDs, repeat for multiple. Return recipes with all of the keywords. + * @param {Array} [keywordsAndNot] Keyword IDs, repeat for multiple. Exclude recipes with all of the keywords. + * @param {Array} [keywordsOr] Keyword IDs, repeat for multiple. Return recipes with any of the keywords + * @param {Array} [keywordsOrNot] Keyword IDs, repeat for multiple. Exclude recipes with any of the keywords. * @param {boolean} [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. @@ -11349,7 +12653,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiRecipeList: async (books?: number, booksAnd?: number, booksAndNot?: number, booksOr?: number, booksOrNot?: number, cookedon?: string, createdon?: string, foods?: number, foodsAnd?: number, foodsAndNot?: number, foodsOr?: number, foodsOrNot?: number, internal?: boolean, keywords?: number, keywordsAnd?: number, keywordsAndNot?: number, keywordsOr?: number, keywordsOrNot?: number, makenow?: boolean, _new?: string, page?: number, pageSize?: number, query?: string, random?: string, rating?: number, timescooked?: number, units?: number, updatedon?: string, viewedon?: string, options: any = {}): Promise => { + apiRecipeList: async (books?: Array, booksAnd?: Array, booksAndNot?: Array, booksOr?: Array, booksOrNot?: Array, cookedon?: string, createdon?: string, foods?: Array, foodsAnd?: Array, foodsAndNot?: Array, foodsOr?: Array, foodsOrNot?: Array, internal?: boolean, keywords?: Array, keywordsAnd?: Array, keywordsAndNot?: Array, keywordsOr?: Array, keywordsOrNot?: Array, makenow?: boolean, _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); @@ -11365,23 +12669,23 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - if (books !== undefined) { + if (books) { localVarQueryParameter['books'] = books; } - if (booksAnd !== undefined) { + if (booksAnd) { localVarQueryParameter['books_and'] = booksAnd; } - if (booksAndNot !== undefined) { + if (booksAndNot) { localVarQueryParameter['books_and_not'] = booksAndNot; } - if (booksOr !== undefined) { + if (booksOr) { localVarQueryParameter['books_or'] = booksOr; } - if (booksOrNot !== undefined) { + if (booksOrNot) { localVarQueryParameter['books_or_not'] = booksOrNot; } @@ -11393,23 +12697,23 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) localVarQueryParameter['createdon'] = createdon; } - if (foods !== undefined) { + if (foods) { localVarQueryParameter['foods'] = foods; } - if (foodsAnd !== undefined) { + if (foodsAnd) { localVarQueryParameter['foods_and'] = foodsAnd; } - if (foodsAndNot !== undefined) { + if (foodsAndNot) { localVarQueryParameter['foods_and_not'] = foodsAndNot; } - if (foodsOr !== undefined) { + if (foodsOr) { localVarQueryParameter['foods_or'] = foodsOr; } - if (foodsOrNot !== undefined) { + if (foodsOrNot) { localVarQueryParameter['foods_or_not'] = foodsOrNot; } @@ -11417,23 +12721,23 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) localVarQueryParameter['internal'] = internal; } - if (keywords !== undefined) { + if (keywords) { localVarQueryParameter['keywords'] = keywords; } - if (keywordsAnd !== undefined) { + if (keywordsAnd) { localVarQueryParameter['keywords_and'] = keywordsAnd; } - if (keywordsAndNot !== undefined) { + if (keywordsAndNot) { localVarQueryParameter['keywords_and_not'] = keywordsAndNot; } - if (keywordsOr !== undefined) { + if (keywordsOr) { localVarQueryParameter['keywords_or'] = keywordsOr; } - if (keywordsOrNot !== undefined) { + if (keywordsOrNot) { localVarQueryParameter['keywords_or_not'] = keywordsOrNot; } @@ -11495,11 +12799,11 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) /** * * @param {number} id A unique integer value identifying this recipe. - * @param {PatchedRecipe} [patchedRecipe] + * @param {PatchedRecipeRequest} [patchedRecipeRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiRecipePartialUpdate: async (id: number, patchedRecipe?: PatchedRecipe, options: any = {}): Promise => { + apiRecipePartialUpdate: async (id: number, patchedRecipeRequest?: PatchedRecipeRequest, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('apiRecipePartialUpdate', 'id', id) const localVarPath = `/api/recipe/{id}/` @@ -11525,7 +12829,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(patchedRecipe, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(patchedRecipeRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -11607,11 +12911,11 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) /** * * @param {number} id A unique integer value identifying this recipe. - * @param {RecipeShoppingUpdate} [recipeShoppingUpdate] + * @param {RecipeShoppingUpdateRequest} [recipeShoppingUpdateRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiRecipeShoppingUpdate: async (id: number, recipeShoppingUpdate?: RecipeShoppingUpdate, options: any = {}): Promise => { + apiRecipeShoppingUpdate: async (id: number, recipeShoppingUpdateRequest?: RecipeShoppingUpdateRequest, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('apiRecipeShoppingUpdate', 'id', id) const localVarPath = `/api/recipe/{id}/shopping/` @@ -11637,7 +12941,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(recipeShoppingUpdate, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(recipeShoppingUpdateRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -11647,15 +12951,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) /** * * @param {number} id A unique integer value identifying this recipe. - * @param {Recipe} recipe + * @param {RecipeRequest} recipeRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiRecipeUpdate: async (id: number, recipe: Recipe, options: any = {}): Promise => { + apiRecipeUpdate: async (id: number, recipeRequest: RecipeRequest, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('apiRecipeUpdate', 'id', id) - // verify required parameter 'recipe' is not null or undefined - assertParamExists('apiRecipeUpdate', 'recipe', recipe) + // verify required parameter 'recipeRequest' is not null or undefined + assertParamExists('apiRecipeUpdate', 'recipeRequest', recipeRequest) const localVarPath = `/api/recipe/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. @@ -11679,7 +12983,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(recipe, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(recipeRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -11691,7 +12995,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiResetFoodInheritanceRetrieve: async (options: any = {}): Promise => { + apiResetFoodInheritanceCreate: 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); @@ -11700,7 +13004,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) baseOptions = configuration.baseOptions; } - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; @@ -11756,13 +13060,13 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }, /** * - * @param {ShoppingListEntryBulk} shoppingListEntryBulk + * @param {ShoppingListEntryBulkRequest} shoppingListEntryBulkRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiShoppingListEntryBulkCreate: async (shoppingListEntryBulk: ShoppingListEntryBulk, options: any = {}): Promise => { - // verify required parameter 'shoppingListEntryBulk' is not null or undefined - assertParamExists('apiShoppingListEntryBulkCreate', 'shoppingListEntryBulk', shoppingListEntryBulk) + apiShoppingListEntryBulkCreate: async (shoppingListEntryBulkRequest: ShoppingListEntryBulkRequest, options: any = {}): Promise => { + // verify required parameter 'shoppingListEntryBulkRequest' is not null or undefined + assertParamExists('apiShoppingListEntryBulkCreate', 'shoppingListEntryBulkRequest', shoppingListEntryBulkRequest) 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); @@ -11785,7 +13089,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(shoppingListEntryBulk, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(shoppingListEntryBulkRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -11794,13 +13098,13 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }, /** * - * @param {ShoppingListEntry} shoppingListEntry + * @param {ShoppingListEntryRequest} shoppingListEntryRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiShoppingListEntryCreate: async (shoppingListEntry: ShoppingListEntry, options: any = {}): Promise => { - // verify required parameter 'shoppingListEntry' is not null or undefined - assertParamExists('apiShoppingListEntryCreate', 'shoppingListEntry', shoppingListEntry) + apiShoppingListEntryCreate: async (shoppingListEntryRequest: ShoppingListEntryRequest, options: any = {}): Promise => { + // verify required parameter 'shoppingListEntryRequest' is not null or undefined + assertParamExists('apiShoppingListEntryCreate', 'shoppingListEntryRequest', shoppingListEntryRequest) 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); @@ -11823,7 +13127,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) 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(shoppingListEntryRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -11926,11 +13230,11 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) /** * * @param {number} id A unique integer value identifying this shopping list entry. - * @param {PatchedShoppingListEntry} [patchedShoppingListEntry] + * @param {PatchedShoppingListEntryRequest} [patchedShoppingListEntryRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiShoppingListEntryPartialUpdate: async (id: number, patchedShoppingListEntry?: PatchedShoppingListEntry, options: any = {}): Promise => { + apiShoppingListEntryPartialUpdate: async (id: number, patchedShoppingListEntryRequest?: PatchedShoppingListEntryRequest, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('apiShoppingListEntryPartialUpdate', 'id', id) const localVarPath = `/api/shopping-list-entry/{id}/` @@ -11956,7 +13260,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(patchedShoppingListEntry, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(patchedShoppingListEntryRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -12002,15 +13306,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) /** * * @param {number} id A unique integer value identifying this shopping list entry. - * @param {ShoppingListEntry} shoppingListEntry + * @param {ShoppingListEntryRequest} shoppingListEntryRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiShoppingListEntryUpdate: async (id: number, shoppingListEntry: ShoppingListEntry, options: any = {}): Promise => { + apiShoppingListEntryUpdate: async (id: number, shoppingListEntryRequest: ShoppingListEntryRequest, 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) + // verify required parameter 'shoppingListEntryRequest' is not null or undefined + assertParamExists('apiShoppingListEntryUpdate', 'shoppingListEntryRequest', shoppingListEntryRequest) 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. @@ -12034,7 +13338,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) 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(shoppingListEntryRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -12043,13 +13347,13 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }, /** * - * @param {ShoppingListRecipe} shoppingListRecipe + * @param {ShoppingListRecipeRequest} shoppingListRecipeRequest * @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) + apiShoppingListRecipeCreate: async (shoppingListRecipeRequest: ShoppingListRecipeRequest, options: any = {}): Promise => { + // verify required parameter 'shoppingListRecipeRequest' is not null or undefined + assertParamExists('apiShoppingListRecipeCreate', 'shoppingListRecipeRequest', shoppingListRecipeRequest) 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); @@ -12072,7 +13376,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(shoppingListRecipe, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(shoppingListRecipeRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -12160,11 +13464,11 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) /** * * @param {number} id A unique integer value identifying this shopping list recipe. - * @param {PatchedShoppingListRecipe} [patchedShoppingListRecipe] + * @param {PatchedShoppingListRecipeRequest} [patchedShoppingListRecipeRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiShoppingListRecipePartialUpdate: async (id: number, patchedShoppingListRecipe?: PatchedShoppingListRecipe, options: any = {}): Promise => { + apiShoppingListRecipePartialUpdate: async (id: number, patchedShoppingListRecipeRequest?: PatchedShoppingListRecipeRequest, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('apiShoppingListRecipePartialUpdate', 'id', id) const localVarPath = `/api/shopping-list-recipe/{id}/` @@ -12190,7 +13494,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(patchedShoppingListRecipe, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(patchedShoppingListRecipeRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -12236,15 +13540,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) /** * * @param {number} id A unique integer value identifying this shopping list recipe. - * @param {ShoppingListRecipe} shoppingListRecipe + * @param {ShoppingListRecipeRequest} shoppingListRecipeRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiShoppingListRecipeUpdate: async (id: number, shoppingListRecipe: ShoppingListRecipe, options: any = {}): Promise => { + apiShoppingListRecipeUpdate: async (id: number, shoppingListRecipeRequest: ShoppingListRecipeRequest, 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) + // verify required parameter 'shoppingListRecipeRequest' is not null or undefined + assertParamExists('apiShoppingListRecipeUpdate', 'shoppingListRecipeRequest', shoppingListRecipeRequest) 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. @@ -12268,7 +13572,39 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(shoppingListRecipe, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(shoppingListRecipeRequest, 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), @@ -12278,11 +13614,11 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) /** * * @param {number} id A unique integer value identifying this space. - * @param {PatchedSpace} [patchedSpace] + * @param {PatchedSpaceRequest} [patchedSpaceRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiSpacePartialUpdate: async (id: number, patchedSpace?: PatchedSpace, options: any = {}): Promise => { + apiSpacePartialUpdate: async (id: number, patchedSpaceRequest?: PatchedSpaceRequest, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('apiSpacePartialUpdate', 'id', id) const localVarPath = `/api/space/{id}/` @@ -12308,7 +13644,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(patchedSpace, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(patchedSpaceRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -12353,13 +13689,13 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }, /** * - * @param {Step} step + * @param {StepRequest} stepRequest * @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) + apiStepCreate: async (stepRequest: StepRequest, options: any = {}): Promise => { + // verify required parameter 'stepRequest' is not null or undefined + assertParamExists('apiStepCreate', 'stepRequest', stepRequest) 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); @@ -12382,7 +13718,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) 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(stepRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -12430,11 +13766,11 @@ 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. * @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 {Array} [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 => { + apiStepList: async (page?: number, pageSize?: number, query?: string, recipe?: Array, 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); @@ -12462,7 +13798,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) localVarQueryParameter['query'] = query; } - if (recipe !== undefined) { + if (recipe) { localVarQueryParameter['recipe'] = recipe; } @@ -12480,11 +13816,11 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) /** * * @param {number} id A unique integer value identifying this step. - * @param {PatchedStep} [patchedStep] + * @param {PatchedStepRequest} [patchedStepRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiStepPartialUpdate: async (id: number, patchedStep?: PatchedStep, options: any = {}): Promise => { + apiStepPartialUpdate: async (id: number, patchedStepRequest?: PatchedStepRequest, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('apiStepPartialUpdate', 'id', id) const localVarPath = `/api/step/{id}/` @@ -12510,7 +13846,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(patchedStep, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(patchedStepRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -12556,15 +13892,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) /** * * @param {number} id A unique integer value identifying this step. - * @param {Step} step + * @param {StepRequest} stepRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiStepUpdate: async (id: number, step: Step, options: any = {}): Promise => { + apiStepUpdate: async (id: number, stepRequest: StepRequest, 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) + // verify required parameter 'stepRequest' is not null or undefined + assertParamExists('apiStepUpdate', 'stepRequest', stepRequest) const localVarPath = `/api/step/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. @@ -12588,7 +13924,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) 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(stepRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -12597,13 +13933,13 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }, /** * - * @param {Storage} storage + * @param {StorageRequest} storageRequest * @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) + apiStorageCreate: async (storageRequest: StorageRequest, options: any = {}): Promise => { + // verify required parameter 'storageRequest' is not null or undefined + assertParamExists('apiStorageCreate', 'storageRequest', storageRequest) 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); @@ -12626,7 +13962,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(storage, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(storageRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -12704,11 +14040,11 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) /** * * @param {number} id A unique integer value identifying this storage. - * @param {PatchedStorage} [patchedStorage] + * @param {PatchedStorageRequest} [patchedStorageRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiStoragePartialUpdate: async (id: number, patchedStorage?: PatchedStorage, options: any = {}): Promise => { + apiStoragePartialUpdate: async (id: number, patchedStorageRequest?: PatchedStorageRequest, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('apiStoragePartialUpdate', 'id', id) const localVarPath = `/api/storage/{id}/` @@ -12734,7 +14070,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(patchedStorage, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(patchedStorageRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -12780,15 +14116,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) /** * * @param {number} id A unique integer value identifying this storage. - * @param {Storage} storage + * @param {StorageRequest} storageRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiStorageUpdate: async (id: number, storage: Storage, options: any = {}): Promise => { + apiStorageUpdate: async (id: number, storageRequest: StorageRequest, 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) + // verify required parameter 'storageRequest' is not null or undefined + assertParamExists('apiStorageUpdate', 'storageRequest', storageRequest) const localVarPath = `/api/storage/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. @@ -12812,7 +14148,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(storage, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(storageRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -12821,13 +14157,13 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }, /** * - * @param {SupermarketCategory} supermarketCategory + * @param {SupermarketCategoryRequest} supermarketCategoryRequest * @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) + apiSupermarketCategoryCreate: async (supermarketCategoryRequest: SupermarketCategoryRequest, options: any = {}): Promise => { + // verify required parameter 'supermarketCategoryRequest' is not null or undefined + assertParamExists('apiSupermarketCategoryCreate', 'supermarketCategoryRequest', supermarketCategoryRequest) 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); @@ -12850,7 +14186,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(supermarketCategory, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(supermarketCategoryRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -12959,17 +14295,17 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) * * @param {number} id A unique integer value identifying this supermarket category. * @param {number} target The ID of the {obj} you want to merge with. - * @param {SupermarketCategory} supermarketCategory + * @param {SupermarketCategoryRequest} supermarketCategoryRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiSupermarketCategoryMergeUpdate: async (id: number, target: number, supermarketCategory: SupermarketCategory, options: any = {}): Promise => { + apiSupermarketCategoryMergeUpdate: async (id: number, target: number, supermarketCategoryRequest: SupermarketCategoryRequest, 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) + // verify required parameter 'supermarketCategoryRequest' is not null or undefined + assertParamExists('apiSupermarketCategoryMergeUpdate', 'supermarketCategoryRequest', supermarketCategoryRequest) const localVarPath = `/api/supermarket-category/{id}/merge/{target}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))) .replace(`{${"target"}}`, encodeURIComponent(String(target))); @@ -12994,7 +14330,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(supermarketCategory, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(supermarketCategoryRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -13004,11 +14340,11 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) /** * * @param {number} id A unique integer value identifying this supermarket category. - * @param {PatchedSupermarketCategory} [patchedSupermarketCategory] + * @param {PatchedSupermarketCategoryRequest} [patchedSupermarketCategoryRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiSupermarketCategoryPartialUpdate: async (id: number, patchedSupermarketCategory?: PatchedSupermarketCategory, options: any = {}): Promise => { + apiSupermarketCategoryPartialUpdate: async (id: number, patchedSupermarketCategoryRequest?: PatchedSupermarketCategoryRequest, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('apiSupermarketCategoryPartialUpdate', 'id', id) const localVarPath = `/api/supermarket-category/{id}/` @@ -13034,7 +14370,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(patchedSupermarketCategory, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(patchedSupermarketCategoryRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -13043,13 +14379,13 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }, /** * - * @param {SupermarketCategoryRelation} supermarketCategoryRelation + * @param {SupermarketCategoryRelationRequest} supermarketCategoryRelationRequest * @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) + apiSupermarketCategoryRelationCreate: async (supermarketCategoryRelationRequest: SupermarketCategoryRelationRequest, options: any = {}): Promise => { + // verify required parameter 'supermarketCategoryRelationRequest' is not null or undefined + assertParamExists('apiSupermarketCategoryRelationCreate', 'supermarketCategoryRelationRequest', supermarketCategoryRelationRequest) 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); @@ -13072,7 +14408,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(supermarketCategoryRelation, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(supermarketCategoryRelationRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -13180,11 +14516,11 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) /** * * @param {number} id A unique integer value identifying this supermarket category relation. - * @param {PatchedSupermarketCategoryRelation} [patchedSupermarketCategoryRelation] + * @param {PatchedSupermarketCategoryRelationRequest} [patchedSupermarketCategoryRelationRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiSupermarketCategoryRelationPartialUpdate: async (id: number, patchedSupermarketCategoryRelation?: PatchedSupermarketCategoryRelation, options: any = {}): Promise => { + apiSupermarketCategoryRelationPartialUpdate: async (id: number, patchedSupermarketCategoryRelationRequest?: PatchedSupermarketCategoryRelationRequest, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('apiSupermarketCategoryRelationPartialUpdate', 'id', id) const localVarPath = `/api/supermarket-category-relation/{id}/` @@ -13210,7 +14546,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(patchedSupermarketCategoryRelation, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(patchedSupermarketCategoryRelationRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -13256,15 +14592,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) /** * * @param {number} id A unique integer value identifying this supermarket category relation. - * @param {SupermarketCategoryRelation} supermarketCategoryRelation + * @param {SupermarketCategoryRelationRequest} supermarketCategoryRelationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiSupermarketCategoryRelationUpdate: async (id: number, supermarketCategoryRelation: SupermarketCategoryRelation, options: any = {}): Promise => { + apiSupermarketCategoryRelationUpdate: async (id: number, supermarketCategoryRelationRequest: SupermarketCategoryRelationRequest, 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) + // verify required parameter 'supermarketCategoryRelationRequest' is not null or undefined + assertParamExists('apiSupermarketCategoryRelationUpdate', 'supermarketCategoryRelationRequest', supermarketCategoryRelationRequest) 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. @@ -13288,7 +14624,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(supermarketCategoryRelation, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(supermarketCategoryRelationRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -13334,15 +14670,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) /** * * @param {number} id A unique integer value identifying this supermarket category. - * @param {SupermarketCategory} supermarketCategory + * @param {SupermarketCategoryRequest} supermarketCategoryRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiSupermarketCategoryUpdate: async (id: number, supermarketCategory: SupermarketCategory, options: any = {}): Promise => { + apiSupermarketCategoryUpdate: async (id: number, supermarketCategoryRequest: SupermarketCategoryRequest, 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) + // verify required parameter 'supermarketCategoryRequest' is not null or undefined + assertParamExists('apiSupermarketCategoryUpdate', 'supermarketCategoryRequest', supermarketCategoryRequest) const localVarPath = `/api/supermarket-category/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. @@ -13366,7 +14702,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(supermarketCategory, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(supermarketCategoryRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -13375,13 +14711,13 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }, /** * - * @param {Supermarket} supermarket + * @param {SupermarketRequest} supermarketRequest * @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) + apiSupermarketCreate: async (supermarketRequest: SupermarketRequest, options: any = {}): Promise => { + // verify required parameter 'supermarketRequest' is not null or undefined + assertParamExists('apiSupermarketCreate', 'supermarketRequest', supermarketRequest) 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); @@ -13404,7 +14740,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(supermarket, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(supermarketRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -13512,11 +14848,11 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) /** * * @param {number} id A unique integer value identifying this supermarket. - * @param {PatchedSupermarket} [patchedSupermarket] + * @param {PatchedSupermarketRequest} [patchedSupermarketRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiSupermarketPartialUpdate: async (id: number, patchedSupermarket?: PatchedSupermarket, options: any = {}): Promise => { + apiSupermarketPartialUpdate: async (id: number, patchedSupermarketRequest?: PatchedSupermarketRequest, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('apiSupermarketPartialUpdate', 'id', id) const localVarPath = `/api/supermarket/{id}/` @@ -13542,7 +14878,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(patchedSupermarket, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(patchedSupermarketRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -13588,15 +14924,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) /** * * @param {number} id A unique integer value identifying this supermarket. - * @param {Supermarket} supermarket + * @param {SupermarketRequest} supermarketRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiSupermarketUpdate: async (id: number, supermarket: Supermarket, options: any = {}): Promise => { + apiSupermarketUpdate: async (id: number, supermarketRequest: SupermarketRequest, 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) + // verify required parameter 'supermarketRequest' is not null or undefined + assertParamExists('apiSupermarketUpdate', 'supermarketRequest', supermarketRequest) const localVarPath = `/api/supermarket/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. @@ -13620,7 +14956,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(supermarket, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(supermarketRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -13665,13 +15001,13 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }, /** * - * @param {Sync} sync + * @param {SyncRequest} syncRequest * @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) + apiSyncCreate: async (syncRequest: SyncRequest, options: any = {}): Promise => { + // verify required parameter 'syncRequest' is not null or undefined + assertParamExists('apiSyncCreate', 'syncRequest', syncRequest) 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); @@ -13694,7 +15030,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(sync, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(syncRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -13860,11 +15196,11 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) /** * * @param {number} id A unique integer value identifying this sync. - * @param {PatchedSync} [patchedSync] + * @param {PatchedSyncRequest} [patchedSyncRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiSyncPartialUpdate: async (id: number, patchedSync?: PatchedSync, options: any = {}): Promise => { + apiSyncPartialUpdate: async (id: number, patchedSyncRequest?: PatchedSyncRequest, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('apiSyncPartialUpdate', 'id', id) const localVarPath = `/api/sync/{id}/` @@ -13890,7 +15226,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(patchedSync, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(patchedSyncRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -13936,15 +15272,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) /** * * @param {number} id A unique integer value identifying this sync. - * @param {Sync} sync + * @param {SyncRequest} syncRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiSyncUpdate: async (id: number, sync: Sync, options: any = {}): Promise => { + apiSyncUpdate: async (id: number, syncRequest: SyncRequest, 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) + // verify required parameter 'syncRequest' is not null or undefined + assertParamExists('apiSyncUpdate', 'syncRequest', syncRequest) const localVarPath = `/api/sync/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. @@ -13968,7 +15304,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(sync, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(syncRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -13977,13 +15313,13 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }, /** * - * @param {UnitConversion} unitConversion + * @param {UnitConversionRequest} unitConversionRequest * @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) + apiUnitConversionCreate: async (unitConversionRequest: UnitConversionRequest, options: any = {}): Promise => { + // verify required parameter 'unitConversionRequest' is not null or undefined + assertParamExists('apiUnitConversionCreate', 'unitConversionRequest', unitConversionRequest) 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); @@ -14006,7 +15342,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(unitConversion, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(unitConversionRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -14099,11 +15435,11 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) /** * * @param {number} id A unique integer value identifying this unit conversion. - * @param {PatchedUnitConversion} [patchedUnitConversion] + * @param {PatchedUnitConversionRequest} [patchedUnitConversionRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiUnitConversionPartialUpdate: async (id: number, patchedUnitConversion?: PatchedUnitConversion, options: any = {}): Promise => { + apiUnitConversionPartialUpdate: async (id: number, patchedUnitConversionRequest?: PatchedUnitConversionRequest, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('apiUnitConversionPartialUpdate', 'id', id) const localVarPath = `/api/unit-conversion/{id}/` @@ -14129,7 +15465,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(patchedUnitConversion, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(patchedUnitConversionRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -14175,15 +15511,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) /** * * @param {number} id A unique integer value identifying this unit conversion. - * @param {UnitConversion} unitConversion + * @param {UnitConversionRequest} unitConversionRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiUnitConversionUpdate: async (id: number, unitConversion: UnitConversion, options: any = {}): Promise => { + apiUnitConversionUpdate: async (id: number, unitConversionRequest: UnitConversionRequest, 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) + // verify required parameter 'unitConversionRequest' is not null or undefined + assertParamExists('apiUnitConversionUpdate', 'unitConversionRequest', unitConversionRequest) const localVarPath = `/api/unit-conversion/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. @@ -14207,7 +15543,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(unitConversion, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(unitConversionRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -14216,13 +15552,13 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }, /** * - * @param {Unit} unit + * @param {UnitRequest} unitRequest * @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) + apiUnitCreate: async (unitRequest: UnitRequest, options: any = {}): Promise => { + // verify required parameter 'unitRequest' is not null or undefined + assertParamExists('apiUnitCreate', 'unitRequest', unitRequest) 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); @@ -14245,7 +15581,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(unit, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(unitRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -14354,17 +15690,17 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) * * @param {number} id A unique integer value identifying this unit. * @param {number} target The ID of the {obj} you want to merge with. - * @param {Unit} unit + * @param {UnitRequest} unitRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiUnitMergeUpdate: async (id: number, target: number, unit: Unit, options: any = {}): Promise => { + apiUnitMergeUpdate: async (id: number, target: number, unitRequest: UnitRequest, 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) + // verify required parameter 'unitRequest' is not null or undefined + assertParamExists('apiUnitMergeUpdate', 'unitRequest', unitRequest) const localVarPath = `/api/unit/{id}/merge/{target}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))) .replace(`{${"target"}}`, encodeURIComponent(String(target))); @@ -14389,7 +15725,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(unit, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(unitRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -14399,11 +15735,11 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) /** * * @param {number} id A unique integer value identifying this unit. - * @param {PatchedUnit} [patchedUnit] + * @param {PatchedUnitRequest} [patchedUnitRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiUnitPartialUpdate: async (id: number, patchedUnit?: PatchedUnit, options: any = {}): Promise => { + apiUnitPartialUpdate: async (id: number, patchedUnitRequest?: PatchedUnitRequest, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('apiUnitPartialUpdate', 'id', id) const localVarPath = `/api/unit/{id}/` @@ -14429,7 +15765,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(patchedUnit, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(patchedUnitRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -14475,15 +15811,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) /** * * @param {number} id A unique integer value identifying this unit. - * @param {Unit} unit + * @param {UnitRequest} unitRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiUnitUpdate: async (id: number, unit: Unit, options: any = {}): Promise => { + apiUnitUpdate: async (id: number, unitRequest: UnitRequest, 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) + // verify required parameter 'unitRequest' is not null or undefined + assertParamExists('apiUnitUpdate', 'unitRequest', unitRequest) const localVarPath = `/api/unit/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. @@ -14507,7 +15843,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(unit, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(unitRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -14516,28 +15852,17 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }, /** * - * @param {number} id * @param {string} name - * @param {string} file - * @param {string} fileDownload - * @param {string} preview - * @param {number} fileSizeKb + * @param {any} file + * @param {number} [id] * @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) + apiUserFileCreate: async (name: string, file: any, id?: number, options: any = {}): Promise => { // verify required parameter 'name' is not null or undefined assertParamExists('apiUserFileCreate', 'name', name) // verify required parameter 'file' is not null or undefined 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); @@ -14555,10 +15880,6 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - if (id !== undefined) { - localVarFormParams.append('id', id as any); - } - if (name !== undefined) { localVarFormParams.append('name', name as any); } @@ -14567,16 +15888,8 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) 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); + if (id !== undefined) { + localVarFormParams.append('id', id as any); } @@ -14693,16 +16006,13 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) /** * * @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 {any} [file] + * @param {number} [id2] * @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 => { + apiUserFilePartialUpdate: async (id: number, name?: string, file?: any, id2?: number, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('apiUserFilePartialUpdate', 'id', id) const localVarPath = `/api/user-file/{id}/` @@ -14723,10 +16033,6 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - if (id2 !== undefined) { - localVarFormParams.append('id', id2 as any); - } - if (name !== undefined) { localVarFormParams.append('name', name as any); } @@ -14735,16 +16041,8 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) 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); + if (id2 !== undefined) { + localVarFormParams.append('id', id2 as any); } @@ -14799,30 +16097,19 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) /** * * @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 {any} file + * @param {number} [id2] * @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 => { + apiUserFileUpdate: async (id: number, name: string, file: any, id2?: 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. @@ -14841,10 +16128,6 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - if (id2 !== undefined) { - localVarFormParams.append('id', id2 as any); - } - if (name !== undefined) { localVarFormParams.append('name', name as any); } @@ -14853,16 +16136,8 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) 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); + if (id2 !== undefined) { + localVarFormParams.append('id', id2 as any); } @@ -14880,11 +16155,11 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }, /** * - * @param {string} [filterList] User IDs, repeat for multiple + * @param {Array} [filterList] User IDs, repeat for multiple * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiUserList: async (filterList?: string, options: any = {}): Promise => { + apiUserList: async (filterList?: Array, 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); @@ -14900,7 +16175,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) // authentication ApiKeyAuth required await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) - if (filterList !== undefined) { + if (filterList) { localVarQueryParameter['filter_list'] = filterList; } @@ -14918,11 +16193,11 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) /** * * @param {number} id A unique integer value identifying this user. - * @param {PatchedUser} [patchedUser] + * @param {PatchedUserRequest} [patchedUserRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiUserPartialUpdate: async (id: number, patchedUser?: PatchedUser, options: any = {}): Promise => { + apiUserPartialUpdate: async (id: number, patchedUserRequest?: PatchedUserRequest, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('apiUserPartialUpdate', 'id', id) const localVarPath = `/api/user/{id}/` @@ -14948,7 +16223,39 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(patchedUser, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(patchedUserRequest, 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), @@ -14958,11 +16265,11 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) /** * * @param {number} user A unique value identifying this user preference. - * @param {PatchedUserPreference} [patchedUserPreference] + * @param {PatchedUserPreferenceRequest} [patchedUserPreferenceRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiUserPreferencePartialUpdate: async (user: number, patchedUserPreference?: PatchedUserPreference, options: any = {}): Promise => { + apiUserPreferencePartialUpdate: async (user: number, patchedUserPreferenceRequest?: PatchedUserPreferenceRequest, options: any = {}): Promise => { // verify required parameter 'user' is not null or undefined assertParamExists('apiUserPreferencePartialUpdate', 'user', user) const localVarPath = `/api/user-preference/{user}/` @@ -14988,7 +16295,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(patchedUserPreference, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(patchedUserPreferenceRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -15153,11 +16460,11 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) /** * * @param {number} id A unique integer value identifying this user space. - * @param {PatchedUserSpace} [patchedUserSpace] + * @param {PatchedUserSpaceRequest} [patchedUserSpaceRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiUserSpacePartialUpdate: async (id: number, patchedUserSpace?: PatchedUserSpace, options: any = {}): Promise => { + apiUserSpacePartialUpdate: async (id: number, patchedUserSpaceRequest?: PatchedUserSpaceRequest, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('apiUserSpacePartialUpdate', 'id', id) const localVarPath = `/api/user-space/{id}/` @@ -15183,7 +16490,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(patchedUserSpace, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(patchedUserSpaceRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -15228,13 +16535,13 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }, /** * - * @param {ViewLog} viewLog + * @param {ViewLogRequest} viewLogRequest * @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) + apiViewLogCreate: async (viewLogRequest: ViewLogRequest, options: any = {}): Promise => { + // verify required parameter 'viewLogRequest' is not null or undefined + assertParamExists('apiViewLogCreate', 'viewLogRequest', viewLogRequest) 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); @@ -15257,7 +16564,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(viewLog, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(viewLogRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -15345,11 +16652,11 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) /** * * @param {number} id A unique integer value identifying this view log. - * @param {PatchedViewLog} [patchedViewLog] + * @param {PatchedViewLogRequest} [patchedViewLogRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiViewLogPartialUpdate: async (id: number, patchedViewLog?: PatchedViewLog, options: any = {}): Promise => { + apiViewLogPartialUpdate: async (id: number, patchedViewLogRequest?: PatchedViewLogRequest, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('apiViewLogPartialUpdate', 'id', id) const localVarPath = `/api/view-log/{id}/` @@ -15375,7 +16682,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(patchedViewLog, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(patchedViewLogRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -15421,15 +16728,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) /** * * @param {number} id A unique integer value identifying this view log. - * @param {ViewLog} viewLog + * @param {ViewLogRequest} viewLogRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiViewLogUpdate: async (id: number, viewLog: ViewLog, options: any = {}): Promise => { + apiViewLogUpdate: async (id: number, viewLogRequest: ViewLogRequest, 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) + // verify required parameter 'viewLogRequest' is not null or undefined + assertParamExists('apiViewLogUpdate', 'viewLogRequest', viewLogRequest) const localVarPath = `/api/view-log/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. @@ -15453,7 +16760,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(viewLog, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(viewLogRequest, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -15472,12 +16779,12 @@ export const ApiApiFp = function(configuration?: Configuration) { return { /** * - * @param {AccessToken} accessToken + * @param {AccessTokenRequest} accessTokenRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async apiAccessTokenCreate(accessToken: AccessToken, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.apiAccessTokenCreate(accessToken, options); + async apiAccessTokenCreate(accessTokenRequest: AccessTokenRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiAccessTokenCreate(accessTokenRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** @@ -15502,12 +16809,12 @@ export const ApiApiFp = function(configuration?: Configuration) { /** * * @param {number} id A unique integer value identifying this access token. - * @param {PatchedAccessToken} [patchedAccessToken] + * @param {PatchedAccessTokenRequest} [patchedAccessTokenRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async apiAccessTokenPartialUpdate(id: number, patchedAccessToken?: PatchedAccessToken, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.apiAccessTokenPartialUpdate(id, patchedAccessToken, options); + async apiAccessTokenPartialUpdate(id: number, patchedAccessTokenRequest?: PatchedAccessTokenRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiAccessTokenPartialUpdate(id, patchedAccessTokenRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** @@ -15523,32 +16830,32 @@ export const ApiApiFp = function(configuration?: Configuration) { /** * * @param {number} id A unique integer value identifying this access token. - * @param {AccessToken} accessToken + * @param {AccessTokenRequest} accessTokenRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async apiAccessTokenUpdate(id: number, accessToken: AccessToken, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.apiAccessTokenUpdate(id, accessToken, options); + async apiAccessTokenUpdate(id: number, accessTokenRequest: AccessTokenRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiAccessTokenUpdate(id, accessTokenRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * - * @param {AutoMealPlan} autoMealPlan + * @param {AutoMealPlanRequest} autoMealPlanRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async apiAutoPlanCreate(autoMealPlan: AutoMealPlan, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.apiAutoPlanCreate(autoMealPlan, options); + async apiAutoPlanCreate(autoMealPlanRequest: AutoMealPlanRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiAutoPlanCreate(autoMealPlanRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * - * @param {Automation} automation + * @param {AutomationRequest} automationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async apiAutomationCreate(automation: Automation, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.apiAutomationCreate(automation, options); + async apiAutomationCreate(automationRequest: AutomationRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiAutomationCreate(automationRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** @@ -15565,23 +16872,23 @@ export const ApiApiFp = function(configuration?: Configuration) { * * @param {number} [page] A page number within the paginated result set. * @param {number} [pageSize] Number of results to return per page. - * @param {'DESCRIPTION_REPLACE' | 'FOOD_ALIAS' | 'FOOD_REPLACE' | 'INSTRUCTION_REPLACE' | 'KEYWORD_ALIAS' | 'NAME_REPLACE' | 'NEVER_UNIT' | 'TRANSPOSE_WORDS' | 'UNIT_ALIAS' | 'UNIT_REPLACE'} [type] Return the Automations matching the automation type. Repeat for multiple. + * @param {Array<'DESCRIPTION_REPLACE' | 'FOOD_ALIAS' | 'FOOD_REPLACE' | 'INSTRUCTION_REPLACE' | 'KEYWORD_ALIAS' | 'NAME_REPLACE' | 'NEVER_UNIT' | 'TRANSPOSE_WORDS' | 'UNIT_ALIAS' | 'UNIT_REPLACE'>} [type] Return the Automations matching the automation type. Repeat for multiple. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async apiAutomationList(page?: number, pageSize?: number, type?: 'DESCRIPTION_REPLACE' | 'FOOD_ALIAS' | 'FOOD_REPLACE' | 'INSTRUCTION_REPLACE' | 'KEYWORD_ALIAS' | 'NAME_REPLACE' | 'NEVER_UNIT' | 'TRANSPOSE_WORDS' | 'UNIT_ALIAS' | 'UNIT_REPLACE', options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async apiAutomationList(page?: number, pageSize?: number, type?: Array<'DESCRIPTION_REPLACE' | 'FOOD_ALIAS' | 'FOOD_REPLACE' | 'INSTRUCTION_REPLACE' | 'KEYWORD_ALIAS' | 'NAME_REPLACE' | 'NEVER_UNIT' | 'TRANSPOSE_WORDS' | 'UNIT_ALIAS' | 'UNIT_REPLACE'>, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.apiAutomationList(page, pageSize, type, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {number} id A unique integer value identifying this automation. - * @param {PatchedAutomation} [patchedAutomation] + * @param {PatchedAutomationRequest} [patchedAutomationRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async apiAutomationPartialUpdate(id: number, patchedAutomation?: PatchedAutomation, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.apiAutomationPartialUpdate(id, patchedAutomation, options); + async apiAutomationPartialUpdate(id: number, patchedAutomationRequest?: PatchedAutomationRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiAutomationPartialUpdate(id, patchedAutomationRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** @@ -15597,22 +16904,22 @@ export const ApiApiFp = function(configuration?: Configuration) { /** * * @param {number} id A unique integer value identifying this automation. - * @param {Automation} automation + * @param {AutomationRequest} automationRequest * @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); + async apiAutomationUpdate(id: number, automationRequest: AutomationRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiAutomationUpdate(id, automationRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * - * @param {BookmarkletImport} bookmarkletImport + * @param {BookmarkletImportRequest} bookmarkletImportRequest * @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); + async apiBookmarkletImportCreate(bookmarkletImportRequest: BookmarkletImportRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiBookmarkletImportCreate(bookmarkletImportRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** @@ -15639,12 +16946,12 @@ export const ApiApiFp = function(configuration?: Configuration) { /** * * @param {number} id A unique integer value identifying this bookmarklet import. - * @param {PatchedBookmarkletImport} [patchedBookmarkletImport] + * @param {PatchedBookmarkletImportRequest} [patchedBookmarkletImportRequest] * @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); + async apiBookmarkletImportPartialUpdate(id: number, patchedBookmarkletImportRequest?: PatchedBookmarkletImportRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiBookmarkletImportPartialUpdate(id, patchedBookmarkletImportRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** @@ -15660,22 +16967,22 @@ export const ApiApiFp = function(configuration?: Configuration) { /** * * @param {number} id A unique integer value identifying this bookmarklet import. - * @param {BookmarkletImport} bookmarkletImport + * @param {BookmarkletImportRequest} bookmarkletImportRequest * @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); + async apiBookmarkletImportUpdate(id: number, bookmarkletImportRequest: BookmarkletImportRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiBookmarkletImportUpdate(id, bookmarkletImportRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * - * @param {ConnectorConfigConfig} connectorConfigConfig + * @param {ConnectorConfigConfigRequest} connectorConfigConfigRequest * @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); + async apiConnectorConfigCreate(connectorConfigConfigRequest: ConnectorConfigConfigRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiConnectorConfigCreate(connectorConfigConfigRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** @@ -15700,12 +17007,12 @@ export const ApiApiFp = function(configuration?: Configuration) { /** * * @param {number} id A unique integer value identifying this connector config. - * @param {PatchedConnectorConfigConfig} [patchedConnectorConfigConfig] + * @param {PatchedConnectorConfigConfigRequest} [patchedConnectorConfigConfigRequest] * @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); + async apiConnectorConfigPartialUpdate(id: number, patchedConnectorConfigConfigRequest?: PatchedConnectorConfigConfigRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiConnectorConfigPartialUpdate(id, patchedConnectorConfigConfigRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** @@ -15721,22 +17028,22 @@ export const ApiApiFp = function(configuration?: Configuration) { /** * * @param {number} id A unique integer value identifying this connector config. - * @param {ConnectorConfigConfig} connectorConfigConfig + * @param {ConnectorConfigConfigRequest} connectorConfigConfigRequest * @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); + async apiConnectorConfigUpdate(id: number, connectorConfigConfigRequest: ConnectorConfigConfigRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiConnectorConfigUpdate(id, connectorConfigConfigRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * - * @param {CookLog} cookLog + * @param {CookLogRequest} cookLogRequest * @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); + async apiCookLogCreate(cookLogRequest: CookLogRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiCookLogCreate(cookLogRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** @@ -15764,12 +17071,12 @@ export const ApiApiFp = function(configuration?: Configuration) { /** * * @param {number} id A unique integer value identifying this cook log. - * @param {PatchedCookLog} [patchedCookLog] + * @param {PatchedCookLogRequest} [patchedCookLogRequest] * @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); + async apiCookLogPartialUpdate(id: number, patchedCookLogRequest?: PatchedCookLogRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiCookLogPartialUpdate(id, patchedCookLogRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** @@ -15785,22 +17092,22 @@ export const ApiApiFp = function(configuration?: Configuration) { /** * * @param {number} id A unique integer value identifying this cook log. - * @param {CookLog} cookLog + * @param {CookLogRequest} cookLogRequest * @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); + async apiCookLogUpdate(id: number, cookLogRequest: CookLogRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiCookLogUpdate(id, cookLogRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * - * @param {CustomFilter} customFilter + * @param {CustomFilterRequest} customFilterRequest * @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); + async apiCustomFilterCreate(customFilterRequest: CustomFilterRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiCustomFilterCreate(customFilterRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** @@ -15820,24 +17127,24 @@ export const ApiApiFp = function(configuration?: Configuration) { * @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 {'FOOD' | 'KEYWORD' | 'RECIPE'} [type] Return the CustomFilters matching the model type. Repeat for multiple. + * @param {Array<'FOOD' | 'KEYWORD' | 'RECIPE'>} [type] Return the CustomFilters matching the model type. Repeat for multiple. * @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, type?: 'FOOD' | 'KEYWORD' | 'RECIPE', updatedAt?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async apiCustomFilterList(limit?: string, page?: number, pageSize?: number, query?: string, random?: string, type?: Array<'FOOD' | 'KEYWORD' | 'RECIPE'>, updatedAt?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.apiCustomFilterList(limit, page, pageSize, query, random, type, updatedAt, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {number} id A unique integer value identifying this custom filter. - * @param {PatchedCustomFilter} [patchedCustomFilter] + * @param {PatchedCustomFilterRequest} [patchedCustomFilterRequest] * @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); + async apiCustomFilterPartialUpdate(id: number, patchedCustomFilterRequest?: PatchedCustomFilterRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiCustomFilterPartialUpdate(id, patchedCustomFilterRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** @@ -15853,12 +17160,12 @@ export const ApiApiFp = function(configuration?: Configuration) { /** * * @param {number} id A unique integer value identifying this custom filter. - * @param {CustomFilter} customFilter + * @param {CustomFilterRequest} customFilterRequest * @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); + async apiCustomFilterUpdate(id: number, customFilterRequest: CustomFilterRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiCustomFilterUpdate(id, customFilterRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** @@ -15873,12 +17180,12 @@ export const ApiApiFp = function(configuration?: Configuration) { }, /** * - * @param {ExportLog} exportLog + * @param {ExportLogRequest} exportLogRequest * @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); + async apiExportLogCreate(exportLogRequest: ExportLogRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiExportLogCreate(exportLogRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** @@ -15905,12 +17212,12 @@ export const ApiApiFp = function(configuration?: Configuration) { /** * * @param {number} id A unique integer value identifying this export log. - * @param {PatchedExportLog} [patchedExportLog] + * @param {PatchedExportLogRequest} [patchedExportLogRequest] * @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); + async apiExportLogPartialUpdate(id: number, patchedExportLogRequest?: PatchedExportLogRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiExportLogPartialUpdate(id, patchedExportLogRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** @@ -15926,22 +17233,22 @@ export const ApiApiFp = function(configuration?: Configuration) { /** * * @param {number} id A unique integer value identifying this export log. - * @param {ExportLog} exportLog + * @param {ExportLogRequest} exportLogRequest * @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); + async apiExportLogUpdate(id: number, exportLogRequest: ExportLogRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiExportLogUpdate(id, exportLogRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * - * @param {Food} food + * @param {FoodRequest} foodRequest * @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); + async apiFoodCreate(foodRequest: FoodRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiFoodCreate(foodRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** @@ -15957,12 +17264,12 @@ export const ApiApiFp = function(configuration?: 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 {FoodRequest} foodRequest * @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); + async apiFoodFdcCreate(id: number, foodRequest: FoodRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiFoodFdcCreate(id, foodRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** @@ -16005,45 +17312,45 @@ export const ApiApiFp = function(configuration?: Configuration) { * * @param {number} id A unique integer value identifying this food. * @param {number} target The ID of the {obj} you want to merge with. - * @param {Food} food + * @param {FoodRequest} foodRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async apiFoodMergeUpdate(id: number, target: number, food: Food, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.apiFoodMergeUpdate(id, target, food, options); + async apiFoodMergeUpdate(id: number, target: number, foodRequest: FoodRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiFoodMergeUpdate(id, target, foodRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {number} id A unique integer value identifying this food. * @param {number} parent The ID of the desired parent of the {obj}. - * @param {Food} food + * @param {FoodRequest} foodRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async apiFoodMoveUpdate(id: number, parent: number, food: Food, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.apiFoodMoveUpdate(id, parent, food, options); + async apiFoodMoveUpdate(id: number, parent: number, foodRequest: FoodRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiFoodMoveUpdate(id, parent, foodRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {number} id A unique integer value identifying this food. - * @param {PatchedFood} [patchedFood] + * @param {PatchedFoodRequest} [patchedFoodRequest] * @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); + async apiFoodPartialUpdate(id: number, patchedFoodRequest?: PatchedFoodRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiFoodPartialUpdate(id, patchedFoodRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * - * @param {Property} property + * @param {PropertyRequest} propertyRequest * @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); + async apiFoodPropertyCreate(propertyRequest: PropertyRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiFoodPropertyCreate(propertyRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** @@ -16070,12 +17377,12 @@ export const ApiApiFp = function(configuration?: Configuration) { /** * * @param {number} id A unique integer value identifying this property. - * @param {PatchedProperty} [patchedProperty] + * @param {PatchedPropertyRequest} [patchedPropertyRequest] * @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); + async apiFoodPropertyPartialUpdate(id: number, patchedPropertyRequest?: PatchedPropertyRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiFoodPropertyPartialUpdate(id, patchedPropertyRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** @@ -16090,12 +17397,12 @@ export const ApiApiFp = function(configuration?: Configuration) { }, /** * - * @param {PropertyType} propertyType + * @param {PropertyTypeRequest} propertyTypeRequest * @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); + async apiFoodPropertyTypeCreate(propertyTypeRequest: PropertyTypeRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiFoodPropertyTypeCreate(propertyTypeRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** @@ -16110,25 +17417,25 @@ export const ApiApiFp = function(configuration?: Configuration) { }, /** * - * @param {'ALLERGEN' | 'GOAL' | 'NUTRITION' | 'OTHER' | 'PRICE'} [category] Return the PropertyTypes matching the property category. Repeat for multiple. + * @param {Array<'ALLERGEN' | 'GOAL' | 'NUTRITION' | 'OTHER' | 'PRICE'>} [category] Return the PropertyTypes matching the property category. Repeat for multiple. * @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 apiFoodPropertyTypeList(category?: 'ALLERGEN' | 'GOAL' | 'NUTRITION' | 'OTHER' | 'PRICE', page?: number, pageSize?: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async apiFoodPropertyTypeList(category?: Array<'ALLERGEN' | 'GOAL' | 'NUTRITION' | 'OTHER' | 'PRICE'>, page?: number, pageSize?: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.apiFoodPropertyTypeList(category, page, pageSize, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {number} id A unique integer value identifying this property type. - * @param {PatchedPropertyType} [patchedPropertyType] + * @param {PatchedPropertyTypeRequest} [patchedPropertyTypeRequest] * @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); + async apiFoodPropertyTypePartialUpdate(id: number, patchedPropertyTypeRequest?: PatchedPropertyTypeRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiFoodPropertyTypePartialUpdate(id, patchedPropertyTypeRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** @@ -16144,23 +17451,23 @@ export const ApiApiFp = function(configuration?: Configuration) { /** * * @param {number} id A unique integer value identifying this property type. - * @param {PropertyType} propertyType + * @param {PropertyTypeRequest} propertyTypeRequest * @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); + async apiFoodPropertyTypeUpdate(id: number, propertyTypeRequest: PropertyTypeRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiFoodPropertyTypeUpdate(id, propertyTypeRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {number} id A unique integer value identifying this property. - * @param {Property} property + * @param {PropertyRequest} propertyRequest * @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); + async apiFoodPropertyUpdate(id: number, propertyRequest: PropertyRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiFoodPropertyUpdate(id, propertyRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** @@ -16176,23 +17483,43 @@ export const ApiApiFp = function(configuration?: Configuration) { /** * * @param {number} id A unique integer value identifying this food. - * @param {FoodShoppingUpdate} foodShoppingUpdate + * @param {FoodShoppingUpdateRequest} foodShoppingUpdateRequest * @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); + async apiFoodShoppingUpdate(id: number, foodShoppingUpdateRequest: FoodShoppingUpdateRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiFoodShoppingUpdate(id, foodShoppingUpdateRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {number} id A unique integer value identifying this food. - * @param {Food} food + * @param {FoodRequest} foodRequest * @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); + async apiFoodUpdate(id: number, foodRequest: FoodRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiFoodUpdate(id, foodRequest, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {number} recipeId + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiGetExternalFileLinkRetrieve(recipeId: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiGetExternalFileLinkRetrieve(recipeId, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {number} recipeId + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiGetRecipeFileRetrieve(recipeId: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiGetRecipeFileRetrieve(recipeId, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** @@ -16225,12 +17552,12 @@ export const ApiApiFp = function(configuration?: Configuration) { }, /** * - * @param {ImportLog} importLog + * @param {ImportLogRequest} importLogRequest * @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); + async apiImportLogCreate(importLogRequest: ImportLogRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiImportLogCreate(importLogRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** @@ -16257,12 +17584,12 @@ export const ApiApiFp = function(configuration?: Configuration) { /** * * @param {number} id A unique integer value identifying this import log. - * @param {PatchedImportLog} [patchedImportLog] + * @param {PatchedImportLogRequest} [patchedImportLogRequest] * @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); + async apiImportLogPartialUpdate(id: number, patchedImportLogRequest?: PatchedImportLogRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiImportLogPartialUpdate(id, patchedImportLogRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** @@ -16278,22 +17605,22 @@ export const ApiApiFp = function(configuration?: Configuration) { /** * * @param {number} id A unique integer value identifying this import log. - * @param {ImportLog} importLog + * @param {ImportLogRequest} importLogRequest * @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); + async apiImportLogUpdate(id: number, importLogRequest: ImportLogRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiImportLogUpdate(id, importLogRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * - * @param {Ingredient} ingredient + * @param {IngredientRequest} ingredientRequest * @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); + async apiIngredientCreate(ingredientRequest: IngredientRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiIngredientCreate(ingredientRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** @@ -16306,6 +17633,16 @@ export const ApiApiFp = function(configuration?: Configuration) { const localVarAxiosArgs = await localVarAxiosParamCreator.apiIngredientDestroy(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, + /** + * + * @param {IngredientStringRequest} ingredientStringRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiIngredientFromStringCreate(ingredientStringRequest: IngredientStringRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiIngredientFromStringCreate(ingredientStringRequest, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, /** * * @param {number} [food] ID of food to filter for @@ -16322,12 +17659,12 @@ export const ApiApiFp = function(configuration?: Configuration) { /** * * @param {number} id A unique integer value identifying this ingredient. - * @param {PatchedIngredient} [patchedIngredient] + * @param {PatchedIngredientRequest} [patchedIngredientRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async apiIngredientPartialUpdate(id: number, patchedIngredient?: PatchedIngredient, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.apiIngredientPartialUpdate(id, patchedIngredient, options); + async apiIngredientPartialUpdate(id: number, patchedIngredientRequest?: PatchedIngredientRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiIngredientPartialUpdate(id, patchedIngredientRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** @@ -16343,22 +17680,22 @@ export const ApiApiFp = function(configuration?: Configuration) { /** * * @param {number} id A unique integer value identifying this ingredient. - * @param {Ingredient} ingredient + * @param {IngredientRequest} ingredientRequest * @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); + async apiIngredientUpdate(id: number, ingredientRequest: IngredientRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiIngredientUpdate(id, ingredientRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * - * @param {InviteLink} inviteLink + * @param {InviteLinkRequest} inviteLinkRequest * @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); + async apiInviteLinkCreate(inviteLinkRequest: InviteLinkRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiInviteLinkCreate(inviteLinkRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** @@ -16390,12 +17727,12 @@ export const ApiApiFp = function(configuration?: Configuration) { /** * * @param {number} id A unique integer value identifying this invite link. - * @param {PatchedInviteLink} [patchedInviteLink] + * @param {PatchedInviteLinkRequest} [patchedInviteLinkRequest] * @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); + async apiInviteLinkPartialUpdate(id: number, patchedInviteLinkRequest?: PatchedInviteLinkRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiInviteLinkPartialUpdate(id, patchedInviteLinkRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** @@ -16411,22 +17748,22 @@ export const ApiApiFp = function(configuration?: Configuration) { /** * * @param {number} id A unique integer value identifying this invite link. - * @param {InviteLink} inviteLink + * @param {InviteLinkRequest} inviteLinkRequest * @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); + async apiInviteLinkUpdate(id: number, inviteLinkRequest: InviteLinkRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiInviteLinkUpdate(id, inviteLinkRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * - * @param {Keyword} keyword + * @param {KeywordRequest} keywordRequest * @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); + async apiKeywordCreate(keywordRequest: KeywordRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiKeywordCreate(keywordRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** @@ -16460,35 +17797,35 @@ export const ApiApiFp = function(configuration?: Configuration) { * * @param {number} id A unique integer value identifying this keyword. * @param {number} target The ID of the {obj} you want to merge with. - * @param {Keyword} keyword + * @param {KeywordRequest} keywordRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async apiKeywordMergeUpdate(id: number, target: number, keyword: Keyword, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.apiKeywordMergeUpdate(id, target, keyword, options); + async apiKeywordMergeUpdate(id: number, target: number, keywordRequest: KeywordRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiKeywordMergeUpdate(id, target, keywordRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {number} id A unique integer value identifying this keyword. * @param {number} parent The ID of the desired parent of the {obj}. - * @param {Keyword} keyword + * @param {KeywordRequest} keywordRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async apiKeywordMoveUpdate(id: number, parent: number, keyword: Keyword, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.apiKeywordMoveUpdate(id, parent, keyword, options); + async apiKeywordMoveUpdate(id: number, parent: number, keywordRequest: KeywordRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiKeywordMoveUpdate(id, parent, keywordRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {number} id A unique integer value identifying this keyword. - * @param {PatchedKeyword} [patchedKeyword] + * @param {PatchedKeywordRequest} [patchedKeywordRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async apiKeywordPartialUpdate(id: number, patchedKeyword?: PatchedKeyword, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.apiKeywordPartialUpdate(id, patchedKeyword, options); + async apiKeywordPartialUpdate(id: number, patchedKeywordRequest?: PatchedKeywordRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiKeywordPartialUpdate(id, patchedKeywordRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** @@ -16504,22 +17841,22 @@ export const ApiApiFp = function(configuration?: Configuration) { /** * * @param {number} id A unique integer value identifying this keyword. - * @param {Keyword} keyword + * @param {KeywordRequest} keywordRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async apiKeywordUpdate(id: number, keyword: Keyword, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.apiKeywordUpdate(id, keyword, options); + async apiKeywordUpdate(id: number, keywordRequest: KeywordRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiKeywordUpdate(id, keywordRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * - * @param {MealPlan} mealPlan + * @param {MealPlanRequest} mealPlanRequest * @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); + async apiMealPlanCreate(mealPlanRequest: MealPlanRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiMealPlanCreate(mealPlanRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** @@ -16535,38 +17872,38 @@ export const ApiApiFp = function(configuration?: Configuration) { /** * * @param {string} [fromDate] Filter meal plans from date (inclusive). - * @param {string} [mealType] Filter meal plans with MealType ID. For multiple repeat parameter. + * @param {Array} [mealType] Filter meal plans with MealType ID. For multiple repeat parameter. * @param {string} [toDate] Filter meal plans to date (inclusive). * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async apiMealPlanIcalRetrieve(fromDate?: string, mealType?: string, toDate?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async apiMealPlanIcalRetrieve(fromDate?: string, mealType?: Array, 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); }, /** * * @param {string} [fromDate] Filter meal plans from date (inclusive). - * @param {string} [mealType] Filter meal plans with MealType ID. For multiple repeat parameter. + * @param {Array} [mealType] Filter meal plans with MealType ID. For multiple repeat parameter. * @param {number} [page] A page number within the paginated result set. * @param {number} [pageSize] Number of results to return per page. * @param {string} [toDate] Filter meal plans to date (inclusive). * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async apiMealPlanList(fromDate?: string, mealType?: string, page?: number, pageSize?: number, toDate?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async apiMealPlanList(fromDate?: string, mealType?: Array, page?: number, pageSize?: number, toDate?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.apiMealPlanList(fromDate, mealType, page, pageSize, toDate, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {number} id A unique integer value identifying this meal plan. - * @param {PatchedMealPlan} [patchedMealPlan] + * @param {PatchedMealPlanRequest} [patchedMealPlanRequest] * @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); + async apiMealPlanPartialUpdate(id: number, patchedMealPlanRequest?: PatchedMealPlanRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiMealPlanPartialUpdate(id, patchedMealPlanRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** @@ -16582,22 +17919,22 @@ export const ApiApiFp = function(configuration?: Configuration) { /** * * @param {number} id A unique integer value identifying this meal plan. - * @param {MealPlan} mealPlan + * @param {MealPlanRequest} mealPlanRequest * @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); + async apiMealPlanUpdate(id: number, mealPlanRequest: MealPlanRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiMealPlanUpdate(id, mealPlanRequest, 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 {MealTypeRequest} mealTypeRequest * @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); + async apiMealTypeCreate(mealTypeRequest: MealTypeRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiMealTypeCreate(mealTypeRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** @@ -16624,12 +17961,12 @@ export const ApiApiFp = function(configuration?: 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 {PatchedMealTypeRequest} [patchedMealTypeRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async apiMealTypePartialUpdate(id: number, patchedMealType?: PatchedMealType, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.apiMealTypePartialUpdate(id, patchedMealType, options); + async apiMealTypePartialUpdate(id: number, patchedMealTypeRequest?: PatchedMealTypeRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiMealTypePartialUpdate(id, patchedMealTypeRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** @@ -16645,33 +17982,22 @@ export const ApiApiFp = function(configuration?: 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 {MealTypeRequest} mealTypeRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async apiMealTypeUpdate(id: number, mealType: MealType, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.apiMealTypeUpdate(id, mealType, options); + async apiMealTypeUpdate(id: number, mealTypeRequest: MealTypeRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiMealTypeUpdate(id, mealTypeRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * - * @param {string} fromDate - * @param {string} toDate + * @param {RecipeBookRequest} recipeBookRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - 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 apiRecipeBookCreate(recipeBook: RecipeBook, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.apiRecipeBookCreate(recipeBook, options); + async apiRecipeBookCreate(recipeBookRequest: RecipeBookRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiRecipeBookCreate(recipeBookRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** @@ -16686,12 +18012,12 @@ export const ApiApiFp = function(configuration?: Configuration) { }, /** * - * @param {RecipeBookEntry} recipeBookEntry + * @param {RecipeBookEntryRequest} recipeBookEntryRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async apiRecipeBookEntryCreate(recipeBookEntry: RecipeBookEntry, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.apiRecipeBookEntryCreate(recipeBookEntry, options); + async apiRecipeBookEntryCreate(recipeBookEntryRequest: RecipeBookEntryRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiRecipeBookEntryCreate(recipeBookEntryRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** @@ -16720,12 +18046,12 @@ export const ApiApiFp = function(configuration?: Configuration) { /** * * @param {number} id A unique integer value identifying this recipe book entry. - * @param {PatchedRecipeBookEntry} [patchedRecipeBookEntry] + * @param {PatchedRecipeBookEntryRequest} [patchedRecipeBookEntryRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async apiRecipeBookEntryPartialUpdate(id: number, patchedRecipeBookEntry?: PatchedRecipeBookEntry, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.apiRecipeBookEntryPartialUpdate(id, patchedRecipeBookEntry, options); + async apiRecipeBookEntryPartialUpdate(id: number, patchedRecipeBookEntryRequest?: PatchedRecipeBookEntryRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiRecipeBookEntryPartialUpdate(id, patchedRecipeBookEntryRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** @@ -16741,12 +18067,12 @@ export const ApiApiFp = function(configuration?: Configuration) { /** * * @param {number} id A unique integer value identifying this recipe book entry. - * @param {RecipeBookEntry} recipeBookEntry + * @param {RecipeBookEntryRequest} recipeBookEntryRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async apiRecipeBookEntryUpdate(id: number, recipeBookEntry: RecipeBookEntry, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.apiRecipeBookEntryUpdate(id, recipeBookEntry, options); + async apiRecipeBookEntryUpdate(id: number, recipeBookEntryRequest: RecipeBookEntryRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiRecipeBookEntryUpdate(id, recipeBookEntryRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** @@ -16769,12 +18095,12 @@ export const ApiApiFp = function(configuration?: Configuration) { /** * * @param {number} id A unique integer value identifying this recipe book. - * @param {PatchedRecipeBook} [patchedRecipeBook] + * @param {PatchedRecipeBookRequest} [patchedRecipeBookRequest] * @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); + async apiRecipeBookPartialUpdate(id: number, patchedRecipeBookRequest?: PatchedRecipeBookRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiRecipeBookPartialUpdate(id, patchedRecipeBookRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** @@ -16790,22 +18116,22 @@ export const ApiApiFp = function(configuration?: Configuration) { /** * * @param {number} id A unique integer value identifying this recipe book. - * @param {RecipeBook} recipeBook + * @param {RecipeBookRequest} recipeBookRequest * @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); + async apiRecipeBookUpdate(id: number, recipeBookRequest: RecipeBookRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiRecipeBookUpdate(id, recipeBookRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * - * @param {Recipe} recipe + * @param {RecipeRequest} recipeRequest * @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); + async apiRecipeCreate(recipeRequest: RecipeRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiRecipeCreate(recipeRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** @@ -16839,35 +18165,35 @@ export const ApiApiFp = function(configuration?: Configuration) { /** * * @param {number} id A unique integer value identifying this recipe. - * @param {string} [image] + * @param {any} [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> { + async apiRecipeImageUpdate(id: number, image?: any, 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 {number} [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 {Array} [books] ID of book a recipe should be in. For multiple repeat parameter. + * @param {Array} [booksAnd] Book IDs, repeat for multiple. Return recipes with all of the books. + * @param {Array} [booksAndNot] Book IDs, repeat for multiple. Exclude recipes with all of the books. + * @param {Array} [booksOr] Book IDs, repeat for multiple. Return recipes with any of the books + * @param {Array} [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 {Array} [foods] ID of food a recipe should have. For multiple repeat parameter. + * @param {Array} [foodsAnd] Food IDs, repeat for multiple. Return recipes with all of the foods. + * @param {Array} [foodsAndNot] Food IDs, repeat for multiple. Exclude recipes with all of the foods. + * @param {Array} [foodsOr] Food IDs, repeat for multiple. Return recipes with any of the foods + * @param {Array} [foodsOrNot] Food IDs, repeat for multiple. Exclude recipes with any of the foods. * @param {boolean} [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 {Array} [keywords] ID of keyword a recipe should have. For multiple repeat parameter. Equivalent to keywords_or + * @param {Array} [keywordsAnd] Keyword IDs, repeat for multiple. Return recipes with all of the keywords. + * @param {Array} [keywordsAndNot] Keyword IDs, repeat for multiple. Exclude recipes with all of the keywords. + * @param {Array} [keywordsOr] Keyword IDs, repeat for multiple. Return recipes with any of the keywords + * @param {Array} [keywordsOrNot] Keyword IDs, repeat for multiple. Exclude recipes with any of the keywords. * @param {boolean} [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. @@ -16882,19 +18208,19 @@ export const ApiApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async apiRecipeList(books?: number, booksAnd?: number, booksAndNot?: number, booksOr?: number, booksOrNot?: number, cookedon?: string, createdon?: string, foods?: number, foodsAnd?: number, foodsAndNot?: number, foodsOr?: number, foodsOrNot?: number, internal?: boolean, keywords?: number, keywordsAnd?: number, keywordsAndNot?: number, keywordsOr?: number, keywordsOrNot?: number, makenow?: boolean, _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> { + async apiRecipeList(books?: Array, booksAnd?: Array, booksAndNot?: Array, booksOr?: Array, booksOrNot?: Array, cookedon?: string, createdon?: string, foods?: Array, foodsAnd?: Array, foodsAndNot?: Array, foodsOr?: Array, foodsOrNot?: Array, internal?: boolean, keywords?: Array, keywordsAnd?: Array, keywordsAndNot?: Array, keywordsOr?: Array, keywordsOrNot?: Array, makenow?: boolean, _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 A unique integer value identifying this recipe. - * @param {PatchedRecipe} [patchedRecipe] + * @param {PatchedRecipeRequest} [patchedRecipeRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async apiRecipePartialUpdate(id: number, patchedRecipe?: PatchedRecipe, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.apiRecipePartialUpdate(id, patchedRecipe, options); + async apiRecipePartialUpdate(id: number, patchedRecipeRequest?: PatchedRecipeRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiRecipePartialUpdate(id, patchedRecipeRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** @@ -16920,23 +18246,23 @@ export const ApiApiFp = function(configuration?: Configuration) { /** * * @param {number} id A unique integer value identifying this recipe. - * @param {RecipeShoppingUpdate} [recipeShoppingUpdate] + * @param {RecipeShoppingUpdateRequest} [recipeShoppingUpdateRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async apiRecipeShoppingUpdate(id: number, recipeShoppingUpdate?: RecipeShoppingUpdate, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.apiRecipeShoppingUpdate(id, recipeShoppingUpdate, options); + async apiRecipeShoppingUpdate(id: number, recipeShoppingUpdateRequest?: RecipeShoppingUpdateRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiRecipeShoppingUpdate(id, recipeShoppingUpdateRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {number} id A unique integer value identifying this recipe. - * @param {Recipe} recipe + * @param {RecipeRequest} recipeRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async apiRecipeUpdate(id: number, recipe: Recipe, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.apiRecipeUpdate(id, recipe, options); + async apiRecipeUpdate(id: number, recipeRequest: RecipeRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiRecipeUpdate(id, recipeRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** @@ -16944,8 +18270,8 @@ export const ApiApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async apiResetFoodInheritanceRetrieve(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.apiResetFoodInheritanceRetrieve(options); + async apiResetFoodInheritanceCreate(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiResetFoodInheritanceCreate(options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** @@ -16954,28 +18280,28 @@ export const ApiApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async apiShareLinkRetrieve(id: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + 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 {ShoppingListEntryBulk} shoppingListEntryBulk + * @param {ShoppingListEntryBulkRequest} shoppingListEntryBulkRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async apiShoppingListEntryBulkCreate(shoppingListEntryBulk: ShoppingListEntryBulk, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.apiShoppingListEntryBulkCreate(shoppingListEntryBulk, options); + async apiShoppingListEntryBulkCreate(shoppingListEntryBulkRequest: ShoppingListEntryBulkRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiShoppingListEntryBulkCreate(shoppingListEntryBulkRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * - * @param {ShoppingListEntry} shoppingListEntry + * @param {ShoppingListEntryRequest} shoppingListEntryRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async apiShoppingListEntryCreate(shoppingListEntry: ShoppingListEntry, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.apiShoppingListEntryCreate(shoppingListEntry, options); + async apiShoppingListEntryCreate(shoppingListEntryRequest: ShoppingListEntryRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiShoppingListEntryCreate(shoppingListEntryRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** @@ -17005,12 +18331,12 @@ export const ApiApiFp = function(configuration?: Configuration) { /** * * @param {number} id A unique integer value identifying this shopping list entry. - * @param {PatchedShoppingListEntry} [patchedShoppingListEntry] + * @param {PatchedShoppingListEntryRequest} [patchedShoppingListEntryRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async apiShoppingListEntryPartialUpdate(id: number, patchedShoppingListEntry?: PatchedShoppingListEntry, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.apiShoppingListEntryPartialUpdate(id, patchedShoppingListEntry, options); + async apiShoppingListEntryPartialUpdate(id: number, patchedShoppingListEntryRequest?: PatchedShoppingListEntryRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiShoppingListEntryPartialUpdate(id, patchedShoppingListEntryRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** @@ -17026,22 +18352,22 @@ export const ApiApiFp = function(configuration?: Configuration) { /** * * @param {number} id A unique integer value identifying this shopping list entry. - * @param {ShoppingListEntry} shoppingListEntry + * @param {ShoppingListEntryRequest} shoppingListEntryRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async apiShoppingListEntryUpdate(id: number, shoppingListEntry: ShoppingListEntry, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.apiShoppingListEntryUpdate(id, shoppingListEntry, options); + async apiShoppingListEntryUpdate(id: number, shoppingListEntryRequest: ShoppingListEntryRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiShoppingListEntryUpdate(id, shoppingListEntryRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * - * @param {ShoppingListRecipe} shoppingListRecipe + * @param {ShoppingListRecipeRequest} shoppingListRecipeRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async apiShoppingListRecipeCreate(shoppingListRecipe: ShoppingListRecipe, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.apiShoppingListRecipeCreate(shoppingListRecipe, options); + async apiShoppingListRecipeCreate(shoppingListRecipeRequest: ShoppingListRecipeRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiShoppingListRecipeCreate(shoppingListRecipeRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** @@ -17068,12 +18394,12 @@ export const ApiApiFp = function(configuration?: Configuration) { /** * * @param {number} id A unique integer value identifying this shopping list recipe. - * @param {PatchedShoppingListRecipe} [patchedShoppingListRecipe] + * @param {PatchedShoppingListRecipeRequest} [patchedShoppingListRecipeRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async apiShoppingListRecipePartialUpdate(id: number, patchedShoppingListRecipe?: PatchedShoppingListRecipe, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.apiShoppingListRecipePartialUpdate(id, patchedShoppingListRecipe, options); + async apiShoppingListRecipePartialUpdate(id: number, patchedShoppingListRecipeRequest?: PatchedShoppingListRecipeRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiShoppingListRecipePartialUpdate(id, patchedShoppingListRecipeRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** @@ -17089,23 +18415,32 @@ export const ApiApiFp = function(configuration?: Configuration) { /** * * @param {number} id A unique integer value identifying this shopping list recipe. - * @param {ShoppingListRecipe} shoppingListRecipe + * @param {ShoppingListRecipeRequest} shoppingListRecipeRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async apiShoppingListRecipeUpdate(id: number, shoppingListRecipe: ShoppingListRecipe, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.apiShoppingListRecipeUpdate(id, shoppingListRecipe, options); + async apiShoppingListRecipeUpdate(id: number, shoppingListRecipeRequest: ShoppingListRecipeRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiShoppingListRecipeUpdate(id, shoppingListRecipeRequest, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiSpaceList(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiSpaceList(options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {number} id A unique integer value identifying this space. - * @param {PatchedSpace} [patchedSpace] + * @param {PatchedSpaceRequest} [patchedSpaceRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async apiSpacePartialUpdate(id: number, patchedSpace?: PatchedSpace, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.apiSpacePartialUpdate(id, patchedSpace, options); + async apiSpacePartialUpdate(id: number, patchedSpaceRequest?: PatchedSpaceRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiSpacePartialUpdate(id, patchedSpaceRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** @@ -17120,12 +18455,12 @@ export const ApiApiFp = function(configuration?: Configuration) { }, /** * - * @param {Step} step + * @param {StepRequest} stepRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async apiStepCreate(step: Step, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.apiStepCreate(step, options); + async apiStepCreate(stepRequest: StepRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiStepCreate(stepRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** @@ -17143,23 +18478,23 @@ export const ApiApiFp = function(configuration?: Configuration) { * @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 {Array} [recipe] ID of recipe a step is part of. For multiple repeat parameter. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async apiStepList(page?: number, pageSize?: number, query?: string, recipe?: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async apiStepList(page?: number, pageSize?: number, query?: string, recipe?: Array, 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 {number} id A unique integer value identifying this step. - * @param {PatchedStep} [patchedStep] + * @param {PatchedStepRequest} [patchedStepRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async apiStepPartialUpdate(id: number, patchedStep?: PatchedStep, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.apiStepPartialUpdate(id, patchedStep, options); + async apiStepPartialUpdate(id: number, patchedStepRequest?: PatchedStepRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiStepPartialUpdate(id, patchedStepRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** @@ -17175,22 +18510,22 @@ export const ApiApiFp = function(configuration?: Configuration) { /** * * @param {number} id A unique integer value identifying this step. - * @param {Step} step + * @param {StepRequest} stepRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async apiStepUpdate(id: number, step: Step, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.apiStepUpdate(id, step, options); + async apiStepUpdate(id: number, stepRequest: StepRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiStepUpdate(id, stepRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * - * @param {Storage} storage + * @param {StorageRequest} storageRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async apiStorageCreate(storage: Storage, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.apiStorageCreate(storage, options); + async apiStorageCreate(storageRequest: StorageRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiStorageCreate(storageRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** @@ -17215,12 +18550,12 @@ export const ApiApiFp = function(configuration?: Configuration) { /** * * @param {number} id A unique integer value identifying this storage. - * @param {PatchedStorage} [patchedStorage] + * @param {PatchedStorageRequest} [patchedStorageRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async apiStoragePartialUpdate(id: number, patchedStorage?: PatchedStorage, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.apiStoragePartialUpdate(id, patchedStorage, options); + async apiStoragePartialUpdate(id: number, patchedStorageRequest?: PatchedStorageRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiStoragePartialUpdate(id, patchedStorageRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** @@ -17236,22 +18571,22 @@ export const ApiApiFp = function(configuration?: Configuration) { /** * * @param {number} id A unique integer value identifying this storage. - * @param {Storage} storage + * @param {StorageRequest} storageRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async apiStorageUpdate(id: number, storage: Storage, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.apiStorageUpdate(id, storage, options); + async apiStorageUpdate(id: number, storageRequest: StorageRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiStorageUpdate(id, storageRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * - * @param {SupermarketCategory} supermarketCategory + * @param {SupermarketCategoryRequest} supermarketCategoryRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async apiSupermarketCategoryCreate(supermarketCategory: SupermarketCategory, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.apiSupermarketCategoryCreate(supermarketCategory, options); + async apiSupermarketCategoryCreate(supermarketCategoryRequest: SupermarketCategoryRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiSupermarketCategoryCreate(supermarketCategoryRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** @@ -17283,33 +18618,33 @@ export const ApiApiFp = function(configuration?: Configuration) { * * @param {number} id A unique integer value identifying this supermarket category. * @param {number} target The ID of the {obj} you want to merge with. - * @param {SupermarketCategory} supermarketCategory + * @param {SupermarketCategoryRequest} supermarketCategoryRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async apiSupermarketCategoryMergeUpdate(id: number, target: number, supermarketCategory: SupermarketCategory, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.apiSupermarketCategoryMergeUpdate(id, target, supermarketCategory, options); + async apiSupermarketCategoryMergeUpdate(id: number, target: number, supermarketCategoryRequest: SupermarketCategoryRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiSupermarketCategoryMergeUpdate(id, target, supermarketCategoryRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {number} id A unique integer value identifying this supermarket category. - * @param {PatchedSupermarketCategory} [patchedSupermarketCategory] + * @param {PatchedSupermarketCategoryRequest} [patchedSupermarketCategoryRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async apiSupermarketCategoryPartialUpdate(id: number, patchedSupermarketCategory?: PatchedSupermarketCategory, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.apiSupermarketCategoryPartialUpdate(id, patchedSupermarketCategory, options); + async apiSupermarketCategoryPartialUpdate(id: number, patchedSupermarketCategoryRequest?: PatchedSupermarketCategoryRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiSupermarketCategoryPartialUpdate(id, patchedSupermarketCategoryRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * - * @param {SupermarketCategoryRelation} supermarketCategoryRelation + * @param {SupermarketCategoryRelationRequest} supermarketCategoryRelationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async apiSupermarketCategoryRelationCreate(supermarketCategoryRelation: SupermarketCategoryRelation, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.apiSupermarketCategoryRelationCreate(supermarketCategoryRelation, options); + async apiSupermarketCategoryRelationCreate(supermarketCategoryRelationRequest: SupermarketCategoryRelationRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiSupermarketCategoryRelationCreate(supermarketCategoryRelationRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** @@ -17340,12 +18675,12 @@ export const ApiApiFp = function(configuration?: Configuration) { /** * * @param {number} id A unique integer value identifying this supermarket category relation. - * @param {PatchedSupermarketCategoryRelation} [patchedSupermarketCategoryRelation] + * @param {PatchedSupermarketCategoryRelationRequest} [patchedSupermarketCategoryRelationRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async apiSupermarketCategoryRelationPartialUpdate(id: number, patchedSupermarketCategoryRelation?: PatchedSupermarketCategoryRelation, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.apiSupermarketCategoryRelationPartialUpdate(id, patchedSupermarketCategoryRelation, options); + async apiSupermarketCategoryRelationPartialUpdate(id: number, patchedSupermarketCategoryRelationRequest?: PatchedSupermarketCategoryRelationRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiSupermarketCategoryRelationPartialUpdate(id, patchedSupermarketCategoryRelationRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** @@ -17361,12 +18696,12 @@ export const ApiApiFp = function(configuration?: Configuration) { /** * * @param {number} id A unique integer value identifying this supermarket category relation. - * @param {SupermarketCategoryRelation} supermarketCategoryRelation + * @param {SupermarketCategoryRelationRequest} supermarketCategoryRelationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async apiSupermarketCategoryRelationUpdate(id: number, supermarketCategoryRelation: SupermarketCategoryRelation, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.apiSupermarketCategoryRelationUpdate(id, supermarketCategoryRelation, options); + async apiSupermarketCategoryRelationUpdate(id: number, supermarketCategoryRelationRequest: SupermarketCategoryRelationRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiSupermarketCategoryRelationUpdate(id, supermarketCategoryRelationRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** @@ -17382,22 +18717,22 @@ export const ApiApiFp = function(configuration?: Configuration) { /** * * @param {number} id A unique integer value identifying this supermarket category. - * @param {SupermarketCategory} supermarketCategory + * @param {SupermarketCategoryRequest} supermarketCategoryRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async apiSupermarketCategoryUpdate(id: number, supermarketCategory: SupermarketCategory, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.apiSupermarketCategoryUpdate(id, supermarketCategory, options); + async apiSupermarketCategoryUpdate(id: number, supermarketCategoryRequest: SupermarketCategoryRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiSupermarketCategoryUpdate(id, supermarketCategoryRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * - * @param {Supermarket} supermarket + * @param {SupermarketRequest} supermarketRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async apiSupermarketCreate(supermarket: Supermarket, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.apiSupermarketCreate(supermarket, options); + async apiSupermarketCreate(supermarketRequest: SupermarketRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiSupermarketCreate(supermarketRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** @@ -17428,12 +18763,12 @@ export const ApiApiFp = function(configuration?: Configuration) { /** * * @param {number} id A unique integer value identifying this supermarket. - * @param {PatchedSupermarket} [patchedSupermarket] + * @param {PatchedSupermarketRequest} [patchedSupermarketRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async apiSupermarketPartialUpdate(id: number, patchedSupermarket?: PatchedSupermarket, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.apiSupermarketPartialUpdate(id, patchedSupermarket, options); + async apiSupermarketPartialUpdate(id: number, patchedSupermarketRequest?: PatchedSupermarketRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiSupermarketPartialUpdate(id, patchedSupermarketRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** @@ -17449,12 +18784,12 @@ export const ApiApiFp = function(configuration?: Configuration) { /** * * @param {number} id A unique integer value identifying this supermarket. - * @param {Supermarket} supermarket + * @param {SupermarketRequest} supermarketRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async apiSupermarketUpdate(id: number, supermarket: Supermarket, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.apiSupermarketUpdate(id, supermarket, options); + async apiSupermarketUpdate(id: number, supermarketRequest: SupermarketRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiSupermarketUpdate(id, supermarketRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** @@ -17469,12 +18804,12 @@ export const ApiApiFp = function(configuration?: Configuration) { }, /** * - * @param {Sync} sync + * @param {SyncRequest} syncRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async apiSyncCreate(sync: Sync, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.apiSyncCreate(sync, options); + async apiSyncCreate(syncRequest: SyncRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiSyncCreate(syncRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** @@ -17522,12 +18857,12 @@ export const ApiApiFp = function(configuration?: Configuration) { /** * * @param {number} id A unique integer value identifying this sync. - * @param {PatchedSync} [patchedSync] + * @param {PatchedSyncRequest} [patchedSyncRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async apiSyncPartialUpdate(id: number, patchedSync?: PatchedSync, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.apiSyncPartialUpdate(id, patchedSync, options); + async apiSyncPartialUpdate(id: number, patchedSyncRequest?: PatchedSyncRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiSyncPartialUpdate(id, patchedSyncRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** @@ -17543,22 +18878,22 @@ export const ApiApiFp = function(configuration?: Configuration) { /** * * @param {number} id A unique integer value identifying this sync. - * @param {Sync} sync + * @param {SyncRequest} syncRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async apiSyncUpdate(id: number, sync: Sync, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.apiSyncUpdate(id, sync, options); + async apiSyncUpdate(id: number, syncRequest: SyncRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiSyncUpdate(id, syncRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * - * @param {UnitConversion} unitConversion + * @param {UnitConversionRequest} unitConversionRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async apiUnitConversionCreate(unitConversion: UnitConversion, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.apiUnitConversionCreate(unitConversion, options); + async apiUnitConversionCreate(unitConversionRequest: UnitConversionRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiUnitConversionCreate(unitConversionRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** @@ -17586,12 +18921,12 @@ export const ApiApiFp = function(configuration?: Configuration) { /** * * @param {number} id A unique integer value identifying this unit conversion. - * @param {PatchedUnitConversion} [patchedUnitConversion] + * @param {PatchedUnitConversionRequest} [patchedUnitConversionRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async apiUnitConversionPartialUpdate(id: number, patchedUnitConversion?: PatchedUnitConversion, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.apiUnitConversionPartialUpdate(id, patchedUnitConversion, options); + async apiUnitConversionPartialUpdate(id: number, patchedUnitConversionRequest?: PatchedUnitConversionRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiUnitConversionPartialUpdate(id, patchedUnitConversionRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** @@ -17607,22 +18942,22 @@ export const ApiApiFp = function(configuration?: Configuration) { /** * * @param {number} id A unique integer value identifying this unit conversion. - * @param {UnitConversion} unitConversion + * @param {UnitConversionRequest} unitConversionRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async apiUnitConversionUpdate(id: number, unitConversion: UnitConversion, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.apiUnitConversionUpdate(id, unitConversion, options); + async apiUnitConversionUpdate(id: number, unitConversionRequest: UnitConversionRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiUnitConversionUpdate(id, unitConversionRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * - * @param {Unit} unit + * @param {UnitRequest} unitRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async apiUnitCreate(unit: Unit, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.apiUnitCreate(unit, options); + async apiUnitCreate(unitRequest: UnitRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiUnitCreate(unitRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** @@ -17654,23 +18989,23 @@ export const ApiApiFp = function(configuration?: Configuration) { * * @param {number} id A unique integer value identifying this unit. * @param {number} target The ID of the {obj} you want to merge with. - * @param {Unit} unit + * @param {UnitRequest} unitRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async apiUnitMergeUpdate(id: number, target: number, unit: Unit, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.apiUnitMergeUpdate(id, target, unit, options); + async apiUnitMergeUpdate(id: number, target: number, unitRequest: UnitRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiUnitMergeUpdate(id, target, unitRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {number} id A unique integer value identifying this unit. - * @param {PatchedUnit} [patchedUnit] + * @param {PatchedUnitRequest} [patchedUnitRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async apiUnitPartialUpdate(id: number, patchedUnit?: PatchedUnit, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.apiUnitPartialUpdate(id, patchedUnit, options); + async apiUnitPartialUpdate(id: number, patchedUnitRequest?: PatchedUnitRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiUnitPartialUpdate(id, patchedUnitRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** @@ -17686,27 +19021,24 @@ export const ApiApiFp = function(configuration?: Configuration) { /** * * @param {number} id A unique integer value identifying this unit. - * @param {Unit} unit + * @param {UnitRequest} unitRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async apiUnitUpdate(id: number, unit: Unit, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.apiUnitUpdate(id, unit, options); + async apiUnitUpdate(id: number, unitRequest: UnitRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiUnitUpdate(id, unitRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * - * @param {number} id * @param {string} name - * @param {string} file - * @param {string} fileDownload - * @param {string} preview - * @param {number} fileSizeKb + * @param {any} file + * @param {number} [id] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - 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); + async apiUserFileCreate(name: string, file: any, id?: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiUserFileCreate(name, file, id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** @@ -17737,17 +19069,14 @@ export const ApiApiFp = function(configuration?: Configuration) { /** * * @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 {any} [file] + * @param {number} [id2] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - 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); + async apiUserFilePartialUpdate(id: number, name?: string, file?: any, id2?: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiUserFilePartialUpdate(id, name, file, id2, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** @@ -17763,49 +19092,55 @@ export const ApiApiFp = function(configuration?: Configuration) { /** * * @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 {any} file + * @param {number} [id2] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - 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); + async apiUserFileUpdate(id: number, name: string, file: any, id2?: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiUserFileUpdate(id, name, file, id2, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * - * @param {string} [filterList] User IDs, repeat for multiple + * @param {Array} [filterList] User IDs, repeat for multiple * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async apiUserList(filterList?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { + async apiUserList(filterList?: Array, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.apiUserList(filterList, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {number} id A unique integer value identifying this user. - * @param {PatchedUser} [patchedUser] + * @param {PatchedUserRequest} [patchedUserRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async apiUserPartialUpdate(id: number, patchedUser?: PatchedUser, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.apiUserPartialUpdate(id, patchedUser, options); + async apiUserPartialUpdate(id: number, patchedUserRequest?: PatchedUserRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiUserPartialUpdate(id, patchedUserRequest, options); + return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + }, + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async apiUserPreferenceList(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiUserPreferenceList(options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * * @param {number} user A unique value identifying this user preference. - * @param {PatchedUserPreference} [patchedUserPreference] + * @param {PatchedUserPreferenceRequest} [patchedUserPreferenceRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async apiUserPreferencePartialUpdate(user: number, patchedUserPreference?: PatchedUserPreference, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.apiUserPreferencePartialUpdate(user, patchedUserPreference, options); + async apiUserPreferencePartialUpdate(user: number, patchedUserPreferenceRequest?: PatchedUserPreferenceRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiUserPreferencePartialUpdate(user, patchedUserPreferenceRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** @@ -17853,12 +19188,12 @@ export const ApiApiFp = function(configuration?: Configuration) { /** * * @param {number} id A unique integer value identifying this user space. - * @param {PatchedUserSpace} [patchedUserSpace] + * @param {PatchedUserSpaceRequest} [patchedUserSpaceRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async apiUserSpacePartialUpdate(id: number, patchedUserSpace?: PatchedUserSpace, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.apiUserSpacePartialUpdate(id, patchedUserSpace, options); + async apiUserSpacePartialUpdate(id: number, patchedUserSpaceRequest?: PatchedUserSpaceRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiUserSpacePartialUpdate(id, patchedUserSpaceRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** @@ -17873,12 +19208,12 @@ export const ApiApiFp = function(configuration?: Configuration) { }, /** * - * @param {ViewLog} viewLog + * @param {ViewLogRequest} viewLogRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async apiViewLogCreate(viewLog: ViewLog, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.apiViewLogCreate(viewLog, options); + async apiViewLogCreate(viewLogRequest: ViewLogRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiViewLogCreate(viewLogRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** @@ -17905,12 +19240,12 @@ export const ApiApiFp = function(configuration?: Configuration) { /** * * @param {number} id A unique integer value identifying this view log. - * @param {PatchedViewLog} [patchedViewLog] + * @param {PatchedViewLogRequest} [patchedViewLogRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async apiViewLogPartialUpdate(id: number, patchedViewLog?: PatchedViewLog, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.apiViewLogPartialUpdate(id, patchedViewLog, options); + async apiViewLogPartialUpdate(id: number, patchedViewLogRequest?: PatchedViewLogRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiViewLogPartialUpdate(id, patchedViewLogRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** @@ -17926,12 +19261,12 @@ export const ApiApiFp = function(configuration?: Configuration) { /** * * @param {number} id A unique integer value identifying this view log. - * @param {ViewLog} viewLog + * @param {ViewLogRequest} viewLogRequest * @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); + async apiViewLogUpdate(id: number, viewLogRequest: ViewLogRequest, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiViewLogUpdate(id, viewLogRequest, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, } @@ -17946,12 +19281,12 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?: return { /** * - * @param {AccessToken} accessToken + * @param {AccessTokenRequest} accessTokenRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiAccessTokenCreate(accessToken: AccessToken, options?: any): AxiosPromise { - return localVarFp.apiAccessTokenCreate(accessToken, options).then((request) => request(axios, basePath)); + apiAccessTokenCreate(accessTokenRequest: AccessTokenRequest, options?: any): AxiosPromise { + return localVarFp.apiAccessTokenCreate(accessTokenRequest, options).then((request) => request(axios, basePath)); }, /** * @@ -17973,12 +19308,12 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?: /** * * @param {number} id A unique integer value identifying this access token. - * @param {PatchedAccessToken} [patchedAccessToken] + * @param {PatchedAccessTokenRequest} [patchedAccessTokenRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiAccessTokenPartialUpdate(id: number, patchedAccessToken?: PatchedAccessToken, options?: any): AxiosPromise { - return localVarFp.apiAccessTokenPartialUpdate(id, patchedAccessToken, options).then((request) => request(axios, basePath)); + apiAccessTokenPartialUpdate(id: number, patchedAccessTokenRequest?: PatchedAccessTokenRequest, options?: any): AxiosPromise { + return localVarFp.apiAccessTokenPartialUpdate(id, patchedAccessTokenRequest, options).then((request) => request(axios, basePath)); }, /** * @@ -17992,30 +19327,30 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?: /** * * @param {number} id A unique integer value identifying this access token. - * @param {AccessToken} accessToken + * @param {AccessTokenRequest} accessTokenRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiAccessTokenUpdate(id: number, accessToken: AccessToken, options?: any): AxiosPromise { - return localVarFp.apiAccessTokenUpdate(id, accessToken, options).then((request) => request(axios, basePath)); + apiAccessTokenUpdate(id: number, accessTokenRequest: AccessTokenRequest, options?: any): AxiosPromise { + return localVarFp.apiAccessTokenUpdate(id, accessTokenRequest, options).then((request) => request(axios, basePath)); }, /** * - * @param {AutoMealPlan} autoMealPlan + * @param {AutoMealPlanRequest} autoMealPlanRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiAutoPlanCreate(autoMealPlan: AutoMealPlan, options?: any): AxiosPromise { - return localVarFp.apiAutoPlanCreate(autoMealPlan, options).then((request) => request(axios, basePath)); + apiAutoPlanCreate(autoMealPlanRequest: AutoMealPlanRequest, options?: any): AxiosPromise { + return localVarFp.apiAutoPlanCreate(autoMealPlanRequest, options).then((request) => request(axios, basePath)); }, /** * - * @param {Automation} automation + * @param {AutomationRequest} automationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiAutomationCreate(automation: Automation, options?: any): AxiosPromise { - return localVarFp.apiAutomationCreate(automation, options).then((request) => request(axios, basePath)); + apiAutomationCreate(automationRequest: AutomationRequest, options?: any): AxiosPromise { + return localVarFp.apiAutomationCreate(automationRequest, options).then((request) => request(axios, basePath)); }, /** * @@ -18030,22 +19365,22 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?: * * @param {number} [page] A page number within the paginated result set. * @param {number} [pageSize] Number of results to return per page. - * @param {'DESCRIPTION_REPLACE' | 'FOOD_ALIAS' | 'FOOD_REPLACE' | 'INSTRUCTION_REPLACE' | 'KEYWORD_ALIAS' | 'NAME_REPLACE' | 'NEVER_UNIT' | 'TRANSPOSE_WORDS' | 'UNIT_ALIAS' | 'UNIT_REPLACE'} [type] Return the Automations matching the automation type. Repeat for multiple. + * @param {Array<'DESCRIPTION_REPLACE' | 'FOOD_ALIAS' | 'FOOD_REPLACE' | 'INSTRUCTION_REPLACE' | 'KEYWORD_ALIAS' | 'NAME_REPLACE' | 'NEVER_UNIT' | 'TRANSPOSE_WORDS' | 'UNIT_ALIAS' | 'UNIT_REPLACE'>} [type] Return the Automations matching the automation type. Repeat for multiple. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiAutomationList(page?: number, pageSize?: number, type?: 'DESCRIPTION_REPLACE' | 'FOOD_ALIAS' | 'FOOD_REPLACE' | 'INSTRUCTION_REPLACE' | 'KEYWORD_ALIAS' | 'NAME_REPLACE' | 'NEVER_UNIT' | 'TRANSPOSE_WORDS' | 'UNIT_ALIAS' | 'UNIT_REPLACE', options?: any): AxiosPromise { + apiAutomationList(page?: number, pageSize?: number, type?: Array<'DESCRIPTION_REPLACE' | 'FOOD_ALIAS' | 'FOOD_REPLACE' | 'INSTRUCTION_REPLACE' | 'KEYWORD_ALIAS' | 'NAME_REPLACE' | 'NEVER_UNIT' | 'TRANSPOSE_WORDS' | 'UNIT_ALIAS' | 'UNIT_REPLACE'>, options?: any): AxiosPromise { return localVarFp.apiAutomationList(page, pageSize, type, options).then((request) => request(axios, basePath)); }, /** * * @param {number} id A unique integer value identifying this automation. - * @param {PatchedAutomation} [patchedAutomation] + * @param {PatchedAutomationRequest} [patchedAutomationRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiAutomationPartialUpdate(id: number, patchedAutomation?: PatchedAutomation, options?: any): AxiosPromise { - return localVarFp.apiAutomationPartialUpdate(id, patchedAutomation, options).then((request) => request(axios, basePath)); + apiAutomationPartialUpdate(id: number, patchedAutomationRequest?: PatchedAutomationRequest, options?: any): AxiosPromise { + return localVarFp.apiAutomationPartialUpdate(id, patchedAutomationRequest, options).then((request) => request(axios, basePath)); }, /** * @@ -18059,21 +19394,21 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?: /** * * @param {number} id A unique integer value identifying this automation. - * @param {Automation} automation + * @param {AutomationRequest} automationRequest * @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)); + apiAutomationUpdate(id: number, automationRequest: AutomationRequest, options?: any): AxiosPromise { + return localVarFp.apiAutomationUpdate(id, automationRequest, options).then((request) => request(axios, basePath)); }, /** * - * @param {BookmarkletImport} bookmarkletImport + * @param {BookmarkletImportRequest} bookmarkletImportRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiBookmarkletImportCreate(bookmarkletImport: BookmarkletImport, options?: any): AxiosPromise { - return localVarFp.apiBookmarkletImportCreate(bookmarkletImport, options).then((request) => request(axios, basePath)); + apiBookmarkletImportCreate(bookmarkletImportRequest: BookmarkletImportRequest, options?: any): AxiosPromise { + return localVarFp.apiBookmarkletImportCreate(bookmarkletImportRequest, options).then((request) => request(axios, basePath)); }, /** * @@ -18097,12 +19432,12 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?: /** * * @param {number} id A unique integer value identifying this bookmarklet import. - * @param {PatchedBookmarkletImport} [patchedBookmarkletImport] + * @param {PatchedBookmarkletImportRequest} [patchedBookmarkletImportRequest] * @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)); + apiBookmarkletImportPartialUpdate(id: number, patchedBookmarkletImportRequest?: PatchedBookmarkletImportRequest, options?: any): AxiosPromise { + return localVarFp.apiBookmarkletImportPartialUpdate(id, patchedBookmarkletImportRequest, options).then((request) => request(axios, basePath)); }, /** * @@ -18116,21 +19451,21 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?: /** * * @param {number} id A unique integer value identifying this bookmarklet import. - * @param {BookmarkletImport} bookmarkletImport + * @param {BookmarkletImportRequest} bookmarkletImportRequest * @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)); + apiBookmarkletImportUpdate(id: number, bookmarkletImportRequest: BookmarkletImportRequest, options?: any): AxiosPromise { + return localVarFp.apiBookmarkletImportUpdate(id, bookmarkletImportRequest, options).then((request) => request(axios, basePath)); }, /** * - * @param {ConnectorConfigConfig} connectorConfigConfig + * @param {ConnectorConfigConfigRequest} connectorConfigConfigRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiConnectorConfigCreate(connectorConfigConfig: ConnectorConfigConfig, options?: any): AxiosPromise { - return localVarFp.apiConnectorConfigCreate(connectorConfigConfig, options).then((request) => request(axios, basePath)); + apiConnectorConfigCreate(connectorConfigConfigRequest: ConnectorConfigConfigRequest, options?: any): AxiosPromise { + return localVarFp.apiConnectorConfigCreate(connectorConfigConfigRequest, options).then((request) => request(axios, basePath)); }, /** * @@ -18152,12 +19487,12 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?: /** * * @param {number} id A unique integer value identifying this connector config. - * @param {PatchedConnectorConfigConfig} [patchedConnectorConfigConfig] + * @param {PatchedConnectorConfigConfigRequest} [patchedConnectorConfigConfigRequest] * @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)); + apiConnectorConfigPartialUpdate(id: number, patchedConnectorConfigConfigRequest?: PatchedConnectorConfigConfigRequest, options?: any): AxiosPromise { + return localVarFp.apiConnectorConfigPartialUpdate(id, patchedConnectorConfigConfigRequest, options).then((request) => request(axios, basePath)); }, /** * @@ -18171,21 +19506,21 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?: /** * * @param {number} id A unique integer value identifying this connector config. - * @param {ConnectorConfigConfig} connectorConfigConfig + * @param {ConnectorConfigConfigRequest} connectorConfigConfigRequest * @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)); + apiConnectorConfigUpdate(id: number, connectorConfigConfigRequest: ConnectorConfigConfigRequest, options?: any): AxiosPromise { + return localVarFp.apiConnectorConfigUpdate(id, connectorConfigConfigRequest, options).then((request) => request(axios, basePath)); }, /** * - * @param {CookLog} cookLog + * @param {CookLogRequest} cookLogRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiCookLogCreate(cookLog: CookLog, options?: any): AxiosPromise { - return localVarFp.apiCookLogCreate(cookLog, options).then((request) => request(axios, basePath)); + apiCookLogCreate(cookLogRequest: CookLogRequest, options?: any): AxiosPromise { + return localVarFp.apiCookLogCreate(cookLogRequest, options).then((request) => request(axios, basePath)); }, /** * @@ -18210,12 +19545,12 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?: /** * * @param {number} id A unique integer value identifying this cook log. - * @param {PatchedCookLog} [patchedCookLog] + * @param {PatchedCookLogRequest} [patchedCookLogRequest] * @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)); + apiCookLogPartialUpdate(id: number, patchedCookLogRequest?: PatchedCookLogRequest, options?: any): AxiosPromise { + return localVarFp.apiCookLogPartialUpdate(id, patchedCookLogRequest, options).then((request) => request(axios, basePath)); }, /** * @@ -18229,21 +19564,21 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?: /** * * @param {number} id A unique integer value identifying this cook log. - * @param {CookLog} cookLog + * @param {CookLogRequest} cookLogRequest * @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)); + apiCookLogUpdate(id: number, cookLogRequest: CookLogRequest, options?: any): AxiosPromise { + return localVarFp.apiCookLogUpdate(id, cookLogRequest, options).then((request) => request(axios, basePath)); }, /** * - * @param {CustomFilter} customFilter + * @param {CustomFilterRequest} customFilterRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiCustomFilterCreate(customFilter: CustomFilter, options?: any): AxiosPromise { - return localVarFp.apiCustomFilterCreate(customFilter, options).then((request) => request(axios, basePath)); + apiCustomFilterCreate(customFilterRequest: CustomFilterRequest, options?: any): AxiosPromise { + return localVarFp.apiCustomFilterCreate(customFilterRequest, options).then((request) => request(axios, basePath)); }, /** * @@ -18261,23 +19596,23 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?: * @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 {'FOOD' | 'KEYWORD' | 'RECIPE'} [type] Return the CustomFilters matching the model type. Repeat for multiple. + * @param {Array<'FOOD' | 'KEYWORD' | 'RECIPE'>} [type] Return the CustomFilters matching the model type. Repeat for multiple. * @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, type?: 'FOOD' | 'KEYWORD' | 'RECIPE', updatedAt?: string, options?: any): AxiosPromise { + apiCustomFilterList(limit?: string, page?: number, pageSize?: number, query?: string, random?: string, type?: Array<'FOOD' | 'KEYWORD' | 'RECIPE'>, updatedAt?: string, options?: any): AxiosPromise { return localVarFp.apiCustomFilterList(limit, page, pageSize, query, random, type, updatedAt, options).then((request) => request(axios, basePath)); }, /** * * @param {number} id A unique integer value identifying this custom filter. - * @param {PatchedCustomFilter} [patchedCustomFilter] + * @param {PatchedCustomFilterRequest} [patchedCustomFilterRequest] * @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)); + apiCustomFilterPartialUpdate(id: number, patchedCustomFilterRequest?: PatchedCustomFilterRequest, options?: any): AxiosPromise { + return localVarFp.apiCustomFilterPartialUpdate(id, patchedCustomFilterRequest, options).then((request) => request(axios, basePath)); }, /** * @@ -18291,12 +19626,12 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?: /** * * @param {number} id A unique integer value identifying this custom filter. - * @param {CustomFilter} customFilter + * @param {CustomFilterRequest} customFilterRequest * @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)); + apiCustomFilterUpdate(id: number, customFilterRequest: CustomFilterRequest, options?: any): AxiosPromise { + return localVarFp.apiCustomFilterUpdate(id, customFilterRequest, 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 @@ -18309,12 +19644,12 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?: }, /** * - * @param {ExportLog} exportLog + * @param {ExportLogRequest} exportLogRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiExportLogCreate(exportLog: ExportLog, options?: any): AxiosPromise { - return localVarFp.apiExportLogCreate(exportLog, options).then((request) => request(axios, basePath)); + apiExportLogCreate(exportLogRequest: ExportLogRequest, options?: any): AxiosPromise { + return localVarFp.apiExportLogCreate(exportLogRequest, options).then((request) => request(axios, basePath)); }, /** * @@ -18338,12 +19673,12 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?: /** * * @param {number} id A unique integer value identifying this export log. - * @param {PatchedExportLog} [patchedExportLog] + * @param {PatchedExportLogRequest} [patchedExportLogRequest] * @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)); + apiExportLogPartialUpdate(id: number, patchedExportLogRequest?: PatchedExportLogRequest, options?: any): AxiosPromise { + return localVarFp.apiExportLogPartialUpdate(id, patchedExportLogRequest, options).then((request) => request(axios, basePath)); }, /** * @@ -18357,21 +19692,21 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?: /** * * @param {number} id A unique integer value identifying this export log. - * @param {ExportLog} exportLog + * @param {ExportLogRequest} exportLogRequest * @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)); + apiExportLogUpdate(id: number, exportLogRequest: ExportLogRequest, options?: any): AxiosPromise { + return localVarFp.apiExportLogUpdate(id, exportLogRequest, options).then((request) => request(axios, basePath)); }, /** * - * @param {Food} food + * @param {FoodRequest} foodRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiFoodCreate(food: Food, options?: any): AxiosPromise { - return localVarFp.apiFoodCreate(food, options).then((request) => request(axios, basePath)); + apiFoodCreate(foodRequest: FoodRequest, options?: any): AxiosPromise { + return localVarFp.apiFoodCreate(foodRequest, options).then((request) => request(axios, basePath)); }, /** * @@ -18385,12 +19720,12 @@ export const ApiApiFactory = function (configuration?: Configuration, 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 {FoodRequest} foodRequest * @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)); + apiFoodFdcCreate(id: number, foodRequest: FoodRequest, options?: any): AxiosPromise { + return localVarFp.apiFoodFdcCreate(id, foodRequest, options).then((request) => request(axios, basePath)); }, /** * @@ -18429,42 +19764,42 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?: * * @param {number} id A unique integer value identifying this food. * @param {number} target The ID of the {obj} you want to merge with. - * @param {Food} food + * @param {FoodRequest} foodRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiFoodMergeUpdate(id: number, target: number, food: Food, options?: any): AxiosPromise { - return localVarFp.apiFoodMergeUpdate(id, target, food, options).then((request) => request(axios, basePath)); + apiFoodMergeUpdate(id: number, target: number, foodRequest: FoodRequest, options?: any): AxiosPromise { + return localVarFp.apiFoodMergeUpdate(id, target, foodRequest, options).then((request) => request(axios, basePath)); }, /** * * @param {number} id A unique integer value identifying this food. * @param {number} parent The ID of the desired parent of the {obj}. - * @param {Food} food + * @param {FoodRequest} foodRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiFoodMoveUpdate(id: number, parent: number, food: Food, options?: any): AxiosPromise { - return localVarFp.apiFoodMoveUpdate(id, parent, food, options).then((request) => request(axios, basePath)); + apiFoodMoveUpdate(id: number, parent: number, foodRequest: FoodRequest, options?: any): AxiosPromise { + return localVarFp.apiFoodMoveUpdate(id, parent, foodRequest, options).then((request) => request(axios, basePath)); }, /** * * @param {number} id A unique integer value identifying this food. - * @param {PatchedFood} [patchedFood] + * @param {PatchedFoodRequest} [patchedFoodRequest] * @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)); + apiFoodPartialUpdate(id: number, patchedFoodRequest?: PatchedFoodRequest, options?: any): AxiosPromise { + return localVarFp.apiFoodPartialUpdate(id, patchedFoodRequest, options).then((request) => request(axios, basePath)); }, /** * - * @param {Property} property + * @param {PropertyRequest} propertyRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiFoodPropertyCreate(property: Property, options?: any): AxiosPromise { - return localVarFp.apiFoodPropertyCreate(property, options).then((request) => request(axios, basePath)); + apiFoodPropertyCreate(propertyRequest: PropertyRequest, options?: any): AxiosPromise { + return localVarFp.apiFoodPropertyCreate(propertyRequest, options).then((request) => request(axios, basePath)); }, /** * @@ -18488,12 +19823,12 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?: /** * * @param {number} id A unique integer value identifying this property. - * @param {PatchedProperty} [patchedProperty] + * @param {PatchedPropertyRequest} [patchedPropertyRequest] * @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)); + apiFoodPropertyPartialUpdate(id: number, patchedPropertyRequest?: PatchedPropertyRequest, options?: any): AxiosPromise { + return localVarFp.apiFoodPropertyPartialUpdate(id, patchedPropertyRequest, options).then((request) => request(axios, basePath)); }, /** * @@ -18506,12 +19841,12 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?: }, /** * - * @param {PropertyType} propertyType + * @param {PropertyTypeRequest} propertyTypeRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiFoodPropertyTypeCreate(propertyType: PropertyType, options?: any): AxiosPromise { - return localVarFp.apiFoodPropertyTypeCreate(propertyType, options).then((request) => request(axios, basePath)); + apiFoodPropertyTypeCreate(propertyTypeRequest: PropertyTypeRequest, options?: any): AxiosPromise { + return localVarFp.apiFoodPropertyTypeCreate(propertyTypeRequest, options).then((request) => request(axios, basePath)); }, /** * @@ -18524,24 +19859,24 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?: }, /** * - * @param {'ALLERGEN' | 'GOAL' | 'NUTRITION' | 'OTHER' | 'PRICE'} [category] Return the PropertyTypes matching the property category. Repeat for multiple. + * @param {Array<'ALLERGEN' | 'GOAL' | 'NUTRITION' | 'OTHER' | 'PRICE'>} [category] Return the PropertyTypes matching the property category. Repeat for multiple. * @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} */ - apiFoodPropertyTypeList(category?: 'ALLERGEN' | 'GOAL' | 'NUTRITION' | 'OTHER' | 'PRICE', page?: number, pageSize?: number, options?: any): AxiosPromise { + apiFoodPropertyTypeList(category?: Array<'ALLERGEN' | 'GOAL' | 'NUTRITION' | 'OTHER' | 'PRICE'>, page?: number, pageSize?: number, options?: any): AxiosPromise { return localVarFp.apiFoodPropertyTypeList(category, page, pageSize, options).then((request) => request(axios, basePath)); }, /** * * @param {number} id A unique integer value identifying this property type. - * @param {PatchedPropertyType} [patchedPropertyType] + * @param {PatchedPropertyTypeRequest} [patchedPropertyTypeRequest] * @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)); + apiFoodPropertyTypePartialUpdate(id: number, patchedPropertyTypeRequest?: PatchedPropertyTypeRequest, options?: any): AxiosPromise { + return localVarFp.apiFoodPropertyTypePartialUpdate(id, patchedPropertyTypeRequest, options).then((request) => request(axios, basePath)); }, /** * @@ -18555,22 +19890,22 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?: /** * * @param {number} id A unique integer value identifying this property type. - * @param {PropertyType} propertyType + * @param {PropertyTypeRequest} propertyTypeRequest * @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)); + apiFoodPropertyTypeUpdate(id: number, propertyTypeRequest: PropertyTypeRequest, options?: any): AxiosPromise { + return localVarFp.apiFoodPropertyTypeUpdate(id, propertyTypeRequest, options).then((request) => request(axios, basePath)); }, /** * * @param {number} id A unique integer value identifying this property. - * @param {Property} property + * @param {PropertyRequest} propertyRequest * @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)); + apiFoodPropertyUpdate(id: number, propertyRequest: PropertyRequest, options?: any): AxiosPromise { + return localVarFp.apiFoodPropertyUpdate(id, propertyRequest, options).then((request) => request(axios, basePath)); }, /** * @@ -18584,22 +19919,40 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?: /** * * @param {number} id A unique integer value identifying this food. - * @param {FoodShoppingUpdate} foodShoppingUpdate + * @param {FoodShoppingUpdateRequest} foodShoppingUpdateRequest * @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)); + apiFoodShoppingUpdate(id: number, foodShoppingUpdateRequest: FoodShoppingUpdateRequest, options?: any): AxiosPromise { + return localVarFp.apiFoodShoppingUpdate(id, foodShoppingUpdateRequest, options).then((request) => request(axios, basePath)); }, /** * * @param {number} id A unique integer value identifying this food. - * @param {Food} food + * @param {FoodRequest} foodRequest * @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)); + apiFoodUpdate(id: number, foodRequest: FoodRequest, options?: any): AxiosPromise { + return localVarFp.apiFoodUpdate(id, foodRequest, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {number} recipeId + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiGetExternalFileLinkRetrieve(recipeId: number, options?: any): AxiosPromise { + return localVarFp.apiGetExternalFileLinkRetrieve(recipeId, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {number} recipeId + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiGetRecipeFileRetrieve(recipeId: number, options?: any): AxiosPromise { + return localVarFp.apiGetRecipeFileRetrieve(recipeId, options).then((request) => request(axios, basePath)); }, /** * @@ -18628,12 +19981,12 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?: }, /** * - * @param {ImportLog} importLog + * @param {ImportLogRequest} importLogRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiImportLogCreate(importLog: ImportLog, options?: any): AxiosPromise { - return localVarFp.apiImportLogCreate(importLog, options).then((request) => request(axios, basePath)); + apiImportLogCreate(importLogRequest: ImportLogRequest, options?: any): AxiosPromise { + return localVarFp.apiImportLogCreate(importLogRequest, options).then((request) => request(axios, basePath)); }, /** * @@ -18657,12 +20010,12 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?: /** * * @param {number} id A unique integer value identifying this import log. - * @param {PatchedImportLog} [patchedImportLog] + * @param {PatchedImportLogRequest} [patchedImportLogRequest] * @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)); + apiImportLogPartialUpdate(id: number, patchedImportLogRequest?: PatchedImportLogRequest, options?: any): AxiosPromise { + return localVarFp.apiImportLogPartialUpdate(id, patchedImportLogRequest, options).then((request) => request(axios, basePath)); }, /** * @@ -18676,21 +20029,21 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?: /** * * @param {number} id A unique integer value identifying this import log. - * @param {ImportLog} importLog + * @param {ImportLogRequest} importLogRequest * @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)); + apiImportLogUpdate(id: number, importLogRequest: ImportLogRequest, options?: any): AxiosPromise { + return localVarFp.apiImportLogUpdate(id, importLogRequest, options).then((request) => request(axios, basePath)); }, /** * - * @param {Ingredient} ingredient + * @param {IngredientRequest} ingredientRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiIngredientCreate(ingredient: Ingredient, options?: any): AxiosPromise { - return localVarFp.apiIngredientCreate(ingredient, options).then((request) => request(axios, basePath)); + apiIngredientCreate(ingredientRequest: IngredientRequest, options?: any): AxiosPromise { + return localVarFp.apiIngredientCreate(ingredientRequest, options).then((request) => request(axios, basePath)); }, /** * @@ -18701,6 +20054,15 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?: apiIngredientDestroy(id: number, options?: any): AxiosPromise { return localVarFp.apiIngredientDestroy(id, options).then((request) => request(axios, basePath)); }, + /** + * + * @param {IngredientStringRequest} ingredientStringRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiIngredientFromStringCreate(ingredientStringRequest: IngredientStringRequest, options?: any): AxiosPromise { + return localVarFp.apiIngredientFromStringCreate(ingredientStringRequest, options).then((request) => request(axios, basePath)); + }, /** * * @param {number} [food] ID of food to filter for @@ -18716,12 +20078,12 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?: /** * * @param {number} id A unique integer value identifying this ingredient. - * @param {PatchedIngredient} [patchedIngredient] + * @param {PatchedIngredientRequest} [patchedIngredientRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiIngredientPartialUpdate(id: number, patchedIngredient?: PatchedIngredient, options?: any): AxiosPromise { - return localVarFp.apiIngredientPartialUpdate(id, patchedIngredient, options).then((request) => request(axios, basePath)); + apiIngredientPartialUpdate(id: number, patchedIngredientRequest?: PatchedIngredientRequest, options?: any): AxiosPromise { + return localVarFp.apiIngredientPartialUpdate(id, patchedIngredientRequest, options).then((request) => request(axios, basePath)); }, /** * @@ -18735,21 +20097,21 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?: /** * * @param {number} id A unique integer value identifying this ingredient. - * @param {Ingredient} ingredient + * @param {IngredientRequest} ingredientRequest * @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)); + apiIngredientUpdate(id: number, ingredientRequest: IngredientRequest, options?: any): AxiosPromise { + return localVarFp.apiIngredientUpdate(id, ingredientRequest, options).then((request) => request(axios, basePath)); }, /** * - * @param {InviteLink} inviteLink + * @param {InviteLinkRequest} inviteLinkRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiInviteLinkCreate(inviteLink: InviteLink, options?: any): AxiosPromise { - return localVarFp.apiInviteLinkCreate(inviteLink, options).then((request) => request(axios, basePath)); + apiInviteLinkCreate(inviteLinkRequest: InviteLinkRequest, options?: any): AxiosPromise { + return localVarFp.apiInviteLinkCreate(inviteLinkRequest, options).then((request) => request(axios, basePath)); }, /** * @@ -18778,12 +20140,12 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?: /** * * @param {number} id A unique integer value identifying this invite link. - * @param {PatchedInviteLink} [patchedInviteLink] + * @param {PatchedInviteLinkRequest} [patchedInviteLinkRequest] * @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)); + apiInviteLinkPartialUpdate(id: number, patchedInviteLinkRequest?: PatchedInviteLinkRequest, options?: any): AxiosPromise { + return localVarFp.apiInviteLinkPartialUpdate(id, patchedInviteLinkRequest, options).then((request) => request(axios, basePath)); }, /** * @@ -18797,21 +20159,21 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?: /** * * @param {number} id A unique integer value identifying this invite link. - * @param {InviteLink} inviteLink + * @param {InviteLinkRequest} inviteLinkRequest * @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)); + apiInviteLinkUpdate(id: number, inviteLinkRequest: InviteLinkRequest, options?: any): AxiosPromise { + return localVarFp.apiInviteLinkUpdate(id, inviteLinkRequest, options).then((request) => request(axios, basePath)); }, /** * - * @param {Keyword} keyword + * @param {KeywordRequest} keywordRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiKeywordCreate(keyword: Keyword, options?: any): AxiosPromise { - return localVarFp.apiKeywordCreate(keyword, options).then((request) => request(axios, basePath)); + apiKeywordCreate(keywordRequest: KeywordRequest, options?: any): AxiosPromise { + return localVarFp.apiKeywordCreate(keywordRequest, options).then((request) => request(axios, basePath)); }, /** * @@ -18842,33 +20204,33 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?: * * @param {number} id A unique integer value identifying this keyword. * @param {number} target The ID of the {obj} you want to merge with. - * @param {Keyword} keyword + * @param {KeywordRequest} keywordRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiKeywordMergeUpdate(id: number, target: number, keyword: Keyword, options?: any): AxiosPromise { - return localVarFp.apiKeywordMergeUpdate(id, target, keyword, options).then((request) => request(axios, basePath)); + apiKeywordMergeUpdate(id: number, target: number, keywordRequest: KeywordRequest, options?: any): AxiosPromise { + return localVarFp.apiKeywordMergeUpdate(id, target, keywordRequest, options).then((request) => request(axios, basePath)); }, /** * * @param {number} id A unique integer value identifying this keyword. * @param {number} parent The ID of the desired parent of the {obj}. - * @param {Keyword} keyword + * @param {KeywordRequest} keywordRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiKeywordMoveUpdate(id: number, parent: number, keyword: Keyword, options?: any): AxiosPromise { - return localVarFp.apiKeywordMoveUpdate(id, parent, keyword, options).then((request) => request(axios, basePath)); + apiKeywordMoveUpdate(id: number, parent: number, keywordRequest: KeywordRequest, options?: any): AxiosPromise { + return localVarFp.apiKeywordMoveUpdate(id, parent, keywordRequest, options).then((request) => request(axios, basePath)); }, /** * * @param {number} id A unique integer value identifying this keyword. - * @param {PatchedKeyword} [patchedKeyword] + * @param {PatchedKeywordRequest} [patchedKeywordRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiKeywordPartialUpdate(id: number, patchedKeyword?: PatchedKeyword, options?: any): AxiosPromise { - return localVarFp.apiKeywordPartialUpdate(id, patchedKeyword, options).then((request) => request(axios, basePath)); + apiKeywordPartialUpdate(id: number, patchedKeywordRequest?: PatchedKeywordRequest, options?: any): AxiosPromise { + return localVarFp.apiKeywordPartialUpdate(id, patchedKeywordRequest, options).then((request) => request(axios, basePath)); }, /** * @@ -18882,21 +20244,21 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?: /** * * @param {number} id A unique integer value identifying this keyword. - * @param {Keyword} keyword + * @param {KeywordRequest} keywordRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiKeywordUpdate(id: number, keyword: Keyword, options?: any): AxiosPromise { - return localVarFp.apiKeywordUpdate(id, keyword, options).then((request) => request(axios, basePath)); + apiKeywordUpdate(id: number, keywordRequest: KeywordRequest, options?: any): AxiosPromise { + return localVarFp.apiKeywordUpdate(id, keywordRequest, options).then((request) => request(axios, basePath)); }, /** * - * @param {MealPlan} mealPlan + * @param {MealPlanRequest} mealPlanRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiMealPlanCreate(mealPlan: MealPlan, options?: any): AxiosPromise { - return localVarFp.apiMealPlanCreate(mealPlan, options).then((request) => request(axios, basePath)); + apiMealPlanCreate(mealPlanRequest: MealPlanRequest, options?: any): AxiosPromise { + return localVarFp.apiMealPlanCreate(mealPlanRequest, options).then((request) => request(axios, basePath)); }, /** * @@ -18910,36 +20272,36 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?: /** * * @param {string} [fromDate] Filter meal plans from date (inclusive). - * @param {string} [mealType] Filter meal plans with MealType ID. For multiple repeat parameter. + * @param {Array} [mealType] Filter meal plans with MealType ID. For multiple repeat parameter. * @param {string} [toDate] Filter meal plans to date (inclusive). * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiMealPlanIcalRetrieve(fromDate?: string, mealType?: string, toDate?: string, options?: any): AxiosPromise { + apiMealPlanIcalRetrieve(fromDate?: string, mealType?: Array, toDate?: string, options?: any): AxiosPromise { return localVarFp.apiMealPlanIcalRetrieve(fromDate, mealType, toDate, options).then((request) => request(axios, basePath)); }, /** * * @param {string} [fromDate] Filter meal plans from date (inclusive). - * @param {string} [mealType] Filter meal plans with MealType ID. For multiple repeat parameter. + * @param {Array} [mealType] Filter meal plans with MealType ID. For multiple repeat parameter. * @param {number} [page] A page number within the paginated result set. * @param {number} [pageSize] Number of results to return per page. * @param {string} [toDate] Filter meal plans to date (inclusive). * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiMealPlanList(fromDate?: string, mealType?: string, page?: number, pageSize?: number, toDate?: string, options?: any): AxiosPromise { + apiMealPlanList(fromDate?: string, mealType?: Array, page?: number, pageSize?: number, toDate?: string, options?: any): AxiosPromise { return localVarFp.apiMealPlanList(fromDate, mealType, page, pageSize, toDate, options).then((request) => request(axios, basePath)); }, /** * * @param {number} id A unique integer value identifying this meal plan. - * @param {PatchedMealPlan} [patchedMealPlan] + * @param {PatchedMealPlanRequest} [patchedMealPlanRequest] * @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)); + apiMealPlanPartialUpdate(id: number, patchedMealPlanRequest?: PatchedMealPlanRequest, options?: any): AxiosPromise { + return localVarFp.apiMealPlanPartialUpdate(id, patchedMealPlanRequest, options).then((request) => request(axios, basePath)); }, /** * @@ -18953,21 +20315,21 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?: /** * * @param {number} id A unique integer value identifying this meal plan. - * @param {MealPlan} mealPlan + * @param {MealPlanRequest} mealPlanRequest * @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)); + apiMealPlanUpdate(id: number, mealPlanRequest: MealPlanRequest, options?: any): AxiosPromise { + return localVarFp.apiMealPlanUpdate(id, mealPlanRequest, 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 {MealTypeRequest} mealTypeRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiMealTypeCreate(mealType: MealType, options?: any): AxiosPromise { - return localVarFp.apiMealTypeCreate(mealType, options).then((request) => request(axios, basePath)); + apiMealTypeCreate(mealTypeRequest: MealTypeRequest, options?: any): AxiosPromise { + return localVarFp.apiMealTypeCreate(mealTypeRequest, options).then((request) => request(axios, basePath)); }, /** * returns list of meal types created by the requesting user ordered by the order field. @@ -18991,12 +20353,12 @@ export const ApiApiFactory = function (configuration?: Configuration, 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 {PatchedMealTypeRequest} [patchedMealTypeRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiMealTypePartialUpdate(id: number, patchedMealType?: PatchedMealType, options?: any): AxiosPromise { - return localVarFp.apiMealTypePartialUpdate(id, patchedMealType, options).then((request) => request(axios, basePath)); + apiMealTypePartialUpdate(id: number, patchedMealTypeRequest?: PatchedMealTypeRequest, options?: any): AxiosPromise { + return localVarFp.apiMealTypePartialUpdate(id, patchedMealTypeRequest, options).then((request) => request(axios, basePath)); }, /** * returns list of meal types created by the requesting user ordered by the order field. @@ -19010,31 +20372,21 @@ export const ApiApiFactory = function (configuration?: Configuration, 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 {MealTypeRequest} mealTypeRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiMealTypeUpdate(id: number, mealType: MealType, options?: any): AxiosPromise { - return localVarFp.apiMealTypeUpdate(id, mealType, options).then((request) => request(axios, basePath)); + apiMealTypeUpdate(id: number, mealTypeRequest: MealTypeRequest, options?: any): AxiosPromise { + return localVarFp.apiMealTypeUpdate(id, mealTypeRequest, options).then((request) => request(axios, basePath)); }, /** * - * @param {string} fromDate - * @param {string} toDate + * @param {RecipeBookRequest} recipeBookRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - 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} - */ - apiRecipeBookCreate(recipeBook: RecipeBook, options?: any): AxiosPromise { - return localVarFp.apiRecipeBookCreate(recipeBook, options).then((request) => request(axios, basePath)); + apiRecipeBookCreate(recipeBookRequest: RecipeBookRequest, options?: any): AxiosPromise { + return localVarFp.apiRecipeBookCreate(recipeBookRequest, options).then((request) => request(axios, basePath)); }, /** * @@ -19047,12 +20399,12 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?: }, /** * - * @param {RecipeBookEntry} recipeBookEntry + * @param {RecipeBookEntryRequest} recipeBookEntryRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiRecipeBookEntryCreate(recipeBookEntry: RecipeBookEntry, options?: any): AxiosPromise { - return localVarFp.apiRecipeBookEntryCreate(recipeBookEntry, options).then((request) => request(axios, basePath)); + apiRecipeBookEntryCreate(recipeBookEntryRequest: RecipeBookEntryRequest, options?: any): AxiosPromise { + return localVarFp.apiRecipeBookEntryCreate(recipeBookEntryRequest, options).then((request) => request(axios, basePath)); }, /** * @@ -19078,12 +20430,12 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?: /** * * @param {number} id A unique integer value identifying this recipe book entry. - * @param {PatchedRecipeBookEntry} [patchedRecipeBookEntry] + * @param {PatchedRecipeBookEntryRequest} [patchedRecipeBookEntryRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiRecipeBookEntryPartialUpdate(id: number, patchedRecipeBookEntry?: PatchedRecipeBookEntry, options?: any): AxiosPromise { - return localVarFp.apiRecipeBookEntryPartialUpdate(id, patchedRecipeBookEntry, options).then((request) => request(axios, basePath)); + apiRecipeBookEntryPartialUpdate(id: number, patchedRecipeBookEntryRequest?: PatchedRecipeBookEntryRequest, options?: any): AxiosPromise { + return localVarFp.apiRecipeBookEntryPartialUpdate(id, patchedRecipeBookEntryRequest, options).then((request) => request(axios, basePath)); }, /** * @@ -19097,12 +20449,12 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?: /** * * @param {number} id A unique integer value identifying this recipe book entry. - * @param {RecipeBookEntry} recipeBookEntry + * @param {RecipeBookEntryRequest} recipeBookEntryRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiRecipeBookEntryUpdate(id: number, recipeBookEntry: RecipeBookEntry, options?: any): AxiosPromise { - return localVarFp.apiRecipeBookEntryUpdate(id, recipeBookEntry, options).then((request) => request(axios, basePath)); + apiRecipeBookEntryUpdate(id: number, recipeBookEntryRequest: RecipeBookEntryRequest, options?: any): AxiosPromise { + return localVarFp.apiRecipeBookEntryUpdate(id, recipeBookEntryRequest, options).then((request) => request(axios, basePath)); }, /** * @@ -19123,12 +20475,12 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?: /** * * @param {number} id A unique integer value identifying this recipe book. - * @param {PatchedRecipeBook} [patchedRecipeBook] + * @param {PatchedRecipeBookRequest} [patchedRecipeBookRequest] * @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)); + apiRecipeBookPartialUpdate(id: number, patchedRecipeBookRequest?: PatchedRecipeBookRequest, options?: any): AxiosPromise { + return localVarFp.apiRecipeBookPartialUpdate(id, patchedRecipeBookRequest, options).then((request) => request(axios, basePath)); }, /** * @@ -19142,21 +20494,21 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?: /** * * @param {number} id A unique integer value identifying this recipe book. - * @param {RecipeBook} recipeBook + * @param {RecipeBookRequest} recipeBookRequest * @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)); + apiRecipeBookUpdate(id: number, recipeBookRequest: RecipeBookRequest, options?: any): AxiosPromise { + return localVarFp.apiRecipeBookUpdate(id, recipeBookRequest, options).then((request) => request(axios, basePath)); }, /** * - * @param {Recipe} recipe + * @param {RecipeRequest} recipeRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiRecipeCreate(recipe: Recipe, options?: any): AxiosPromise { - return localVarFp.apiRecipeCreate(recipe, options).then((request) => request(axios, basePath)); + apiRecipeCreate(recipeRequest: RecipeRequest, options?: any): AxiosPromise { + return localVarFp.apiRecipeCreate(recipeRequest, options).then((request) => request(axios, basePath)); }, /** * @@ -19186,34 +20538,34 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?: /** * * @param {number} id A unique integer value identifying this recipe. - * @param {string} [image] + * @param {any} [image] * @param {string} [imageUrl] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiRecipeImageUpdate(id: number, image?: string, imageUrl?: string, options?: any): AxiosPromise { + apiRecipeImageUpdate(id: number, image?: any, imageUrl?: string, options?: any): AxiosPromise { return localVarFp.apiRecipeImageUpdate(id, image, imageUrl, options).then((request) => request(axios, basePath)); }, /** * - * @param {number} [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 {Array} [books] ID of book a recipe should be in. For multiple repeat parameter. + * @param {Array} [booksAnd] Book IDs, repeat for multiple. Return recipes with all of the books. + * @param {Array} [booksAndNot] Book IDs, repeat for multiple. Exclude recipes with all of the books. + * @param {Array} [booksOr] Book IDs, repeat for multiple. Return recipes with any of the books + * @param {Array} [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 {Array} [foods] ID of food a recipe should have. For multiple repeat parameter. + * @param {Array} [foodsAnd] Food IDs, repeat for multiple. Return recipes with all of the foods. + * @param {Array} [foodsAndNot] Food IDs, repeat for multiple. Exclude recipes with all of the foods. + * @param {Array} [foodsOr] Food IDs, repeat for multiple. Return recipes with any of the foods + * @param {Array} [foodsOrNot] Food IDs, repeat for multiple. Exclude recipes with any of the foods. * @param {boolean} [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 {Array} [keywords] ID of keyword a recipe should have. For multiple repeat parameter. Equivalent to keywords_or + * @param {Array} [keywordsAnd] Keyword IDs, repeat for multiple. Return recipes with all of the keywords. + * @param {Array} [keywordsAndNot] Keyword IDs, repeat for multiple. Exclude recipes with all of the keywords. + * @param {Array} [keywordsOr] Keyword IDs, repeat for multiple. Return recipes with any of the keywords + * @param {Array} [keywordsOrNot] Keyword IDs, repeat for multiple. Exclude recipes with any of the keywords. * @param {boolean} [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. @@ -19228,18 +20580,18 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiRecipeList(books?: number, booksAnd?: number, booksAndNot?: number, booksOr?: number, booksOrNot?: number, cookedon?: string, createdon?: string, foods?: number, foodsAnd?: number, foodsAndNot?: number, foodsOr?: number, foodsOrNot?: number, internal?: boolean, keywords?: number, keywordsAnd?: number, keywordsAndNot?: number, keywordsOr?: number, keywordsOrNot?: number, makenow?: boolean, _new?: string, page?: number, pageSize?: number, query?: string, random?: string, rating?: number, timescooked?: number, units?: number, updatedon?: string, viewedon?: string, options?: any): AxiosPromise { + apiRecipeList(books?: Array, booksAnd?: Array, booksAndNot?: Array, booksOr?: Array, booksOrNot?: Array, cookedon?: string, createdon?: string, foods?: Array, foodsAnd?: Array, foodsAndNot?: Array, foodsOr?: Array, foodsOrNot?: Array, internal?: boolean, keywords?: Array, keywordsAnd?: Array, keywordsAndNot?: Array, keywordsOr?: Array, keywordsOrNot?: Array, makenow?: boolean, _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 A unique integer value identifying this recipe. - * @param {PatchedRecipe} [patchedRecipe] + * @param {PatchedRecipeRequest} [patchedRecipeRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiRecipePartialUpdate(id: number, patchedRecipe?: PatchedRecipe, options?: any): AxiosPromise { - return localVarFp.apiRecipePartialUpdate(id, patchedRecipe, options).then((request) => request(axios, basePath)); + apiRecipePartialUpdate(id: number, patchedRecipeRequest?: PatchedRecipeRequest, options?: any): AxiosPromise { + return localVarFp.apiRecipePartialUpdate(id, patchedRecipeRequest, options).then((request) => request(axios, basePath)); }, /** * @@ -19262,30 +20614,30 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?: /** * * @param {number} id A unique integer value identifying this recipe. - * @param {RecipeShoppingUpdate} [recipeShoppingUpdate] + * @param {RecipeShoppingUpdateRequest} [recipeShoppingUpdateRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiRecipeShoppingUpdate(id: number, recipeShoppingUpdate?: RecipeShoppingUpdate, options?: any): AxiosPromise { - return localVarFp.apiRecipeShoppingUpdate(id, recipeShoppingUpdate, options).then((request) => request(axios, basePath)); + apiRecipeShoppingUpdate(id: number, recipeShoppingUpdateRequest?: RecipeShoppingUpdateRequest, options?: any): AxiosPromise { + return localVarFp.apiRecipeShoppingUpdate(id, recipeShoppingUpdateRequest, options).then((request) => request(axios, basePath)); }, /** * * @param {number} id A unique integer value identifying this recipe. - * @param {Recipe} recipe + * @param {RecipeRequest} recipeRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiRecipeUpdate(id: number, recipe: Recipe, options?: any): AxiosPromise { - return localVarFp.apiRecipeUpdate(id, recipe, options).then((request) => request(axios, basePath)); + apiRecipeUpdate(id: number, recipeRequest: RecipeRequest, options?: any): AxiosPromise { + return localVarFp.apiRecipeUpdate(id, recipeRequest, 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} */ - apiResetFoodInheritanceRetrieve(options?: any): AxiosPromise { - return localVarFp.apiResetFoodInheritanceRetrieve(options).then((request) => request(axios, basePath)); + apiResetFoodInheritanceCreate(options?: any): AxiosPromise { + return localVarFp.apiResetFoodInheritanceCreate(options).then((request) => request(axios, basePath)); }, /** * @@ -19293,26 +20645,26 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiShareLinkRetrieve(id: number, options?: any): AxiosPromise { + apiShareLinkRetrieve(id: number, options?: any): AxiosPromise { return localVarFp.apiShareLinkRetrieve(id, options).then((request) => request(axios, basePath)); }, /** * - * @param {ShoppingListEntryBulk} shoppingListEntryBulk + * @param {ShoppingListEntryBulkRequest} shoppingListEntryBulkRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiShoppingListEntryBulkCreate(shoppingListEntryBulk: ShoppingListEntryBulk, options?: any): AxiosPromise { - return localVarFp.apiShoppingListEntryBulkCreate(shoppingListEntryBulk, options).then((request) => request(axios, basePath)); + apiShoppingListEntryBulkCreate(shoppingListEntryBulkRequest: ShoppingListEntryBulkRequest, options?: any): AxiosPromise { + return localVarFp.apiShoppingListEntryBulkCreate(shoppingListEntryBulkRequest, options).then((request) => request(axios, basePath)); }, /** * - * @param {ShoppingListEntry} shoppingListEntry + * @param {ShoppingListEntryRequest} shoppingListEntryRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiShoppingListEntryCreate(shoppingListEntry: ShoppingListEntry, options?: any): AxiosPromise { - return localVarFp.apiShoppingListEntryCreate(shoppingListEntry, options).then((request) => request(axios, basePath)); + apiShoppingListEntryCreate(shoppingListEntryRequest: ShoppingListEntryRequest, options?: any): AxiosPromise { + return localVarFp.apiShoppingListEntryCreate(shoppingListEntryRequest, options).then((request) => request(axios, basePath)); }, /** * @@ -19339,12 +20691,12 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?: /** * * @param {number} id A unique integer value identifying this shopping list entry. - * @param {PatchedShoppingListEntry} [patchedShoppingListEntry] + * @param {PatchedShoppingListEntryRequest} [patchedShoppingListEntryRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiShoppingListEntryPartialUpdate(id: number, patchedShoppingListEntry?: PatchedShoppingListEntry, options?: any): AxiosPromise { - return localVarFp.apiShoppingListEntryPartialUpdate(id, patchedShoppingListEntry, options).then((request) => request(axios, basePath)); + apiShoppingListEntryPartialUpdate(id: number, patchedShoppingListEntryRequest?: PatchedShoppingListEntryRequest, options?: any): AxiosPromise { + return localVarFp.apiShoppingListEntryPartialUpdate(id, patchedShoppingListEntryRequest, options).then((request) => request(axios, basePath)); }, /** * @@ -19358,21 +20710,21 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?: /** * * @param {number} id A unique integer value identifying this shopping list entry. - * @param {ShoppingListEntry} shoppingListEntry + * @param {ShoppingListEntryRequest} shoppingListEntryRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiShoppingListEntryUpdate(id: number, shoppingListEntry: ShoppingListEntry, options?: any): AxiosPromise { - return localVarFp.apiShoppingListEntryUpdate(id, shoppingListEntry, options).then((request) => request(axios, basePath)); + apiShoppingListEntryUpdate(id: number, shoppingListEntryRequest: ShoppingListEntryRequest, options?: any): AxiosPromise { + return localVarFp.apiShoppingListEntryUpdate(id, shoppingListEntryRequest, options).then((request) => request(axios, basePath)); }, /** * - * @param {ShoppingListRecipe} shoppingListRecipe + * @param {ShoppingListRecipeRequest} shoppingListRecipeRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiShoppingListRecipeCreate(shoppingListRecipe: ShoppingListRecipe, options?: any): AxiosPromise { - return localVarFp.apiShoppingListRecipeCreate(shoppingListRecipe, options).then((request) => request(axios, basePath)); + apiShoppingListRecipeCreate(shoppingListRecipeRequest: ShoppingListRecipeRequest, options?: any): AxiosPromise { + return localVarFp.apiShoppingListRecipeCreate(shoppingListRecipeRequest, options).then((request) => request(axios, basePath)); }, /** * @@ -19396,12 +20748,12 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?: /** * * @param {number} id A unique integer value identifying this shopping list recipe. - * @param {PatchedShoppingListRecipe} [patchedShoppingListRecipe] + * @param {PatchedShoppingListRecipeRequest} [patchedShoppingListRecipeRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiShoppingListRecipePartialUpdate(id: number, patchedShoppingListRecipe?: PatchedShoppingListRecipe, options?: any): AxiosPromise { - return localVarFp.apiShoppingListRecipePartialUpdate(id, patchedShoppingListRecipe, options).then((request) => request(axios, basePath)); + apiShoppingListRecipePartialUpdate(id: number, patchedShoppingListRecipeRequest?: PatchedShoppingListRecipeRequest, options?: any): AxiosPromise { + return localVarFp.apiShoppingListRecipePartialUpdate(id, patchedShoppingListRecipeRequest, options).then((request) => request(axios, basePath)); }, /** * @@ -19415,22 +20767,30 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?: /** * * @param {number} id A unique integer value identifying this shopping list recipe. - * @param {ShoppingListRecipe} shoppingListRecipe + * @param {ShoppingListRecipeRequest} shoppingListRecipeRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiShoppingListRecipeUpdate(id: number, shoppingListRecipe: ShoppingListRecipe, options?: any): AxiosPromise { - return localVarFp.apiShoppingListRecipeUpdate(id, shoppingListRecipe, options).then((request) => request(axios, basePath)); + apiShoppingListRecipeUpdate(id: number, shoppingListRecipeRequest: ShoppingListRecipeRequest, options?: any): AxiosPromise { + return localVarFp.apiShoppingListRecipeUpdate(id, shoppingListRecipeRequest, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiSpaceList(options?: any): AxiosPromise> { + return localVarFp.apiSpaceList(options).then((request) => request(axios, basePath)); }, /** * * @param {number} id A unique integer value identifying this space. - * @param {PatchedSpace} [patchedSpace] + * @param {PatchedSpaceRequest} [patchedSpaceRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiSpacePartialUpdate(id: number, patchedSpace?: PatchedSpace, options?: any): AxiosPromise { - return localVarFp.apiSpacePartialUpdate(id, patchedSpace, options).then((request) => request(axios, basePath)); + apiSpacePartialUpdate(id: number, patchedSpaceRequest?: PatchedSpaceRequest, options?: any): AxiosPromise { + return localVarFp.apiSpacePartialUpdate(id, patchedSpaceRequest, options).then((request) => request(axios, basePath)); }, /** * @@ -19443,12 +20803,12 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?: }, /** * - * @param {Step} step + * @param {StepRequest} stepRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiStepCreate(step: Step, options?: any): AxiosPromise { - return localVarFp.apiStepCreate(step, options).then((request) => request(axios, basePath)); + apiStepCreate(stepRequest: StepRequest, options?: any): AxiosPromise { + return localVarFp.apiStepCreate(stepRequest, options).then((request) => request(axios, basePath)); }, /** * @@ -19464,22 +20824,22 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?: * @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 {Array} [recipe] ID of recipe a step is part of. For multiple repeat parameter. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiStepList(page?: number, pageSize?: number, query?: string, recipe?: number, options?: any): AxiosPromise { + apiStepList(page?: number, pageSize?: number, query?: string, recipe?: Array, options?: any): AxiosPromise { return localVarFp.apiStepList(page, pageSize, query, recipe, options).then((request) => request(axios, basePath)); }, /** * * @param {number} id A unique integer value identifying this step. - * @param {PatchedStep} [patchedStep] + * @param {PatchedStepRequest} [patchedStepRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiStepPartialUpdate(id: number, patchedStep?: PatchedStep, options?: any): AxiosPromise { - return localVarFp.apiStepPartialUpdate(id, patchedStep, options).then((request) => request(axios, basePath)); + apiStepPartialUpdate(id: number, patchedStepRequest?: PatchedStepRequest, options?: any): AxiosPromise { + return localVarFp.apiStepPartialUpdate(id, patchedStepRequest, options).then((request) => request(axios, basePath)); }, /** * @@ -19493,21 +20853,21 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?: /** * * @param {number} id A unique integer value identifying this step. - * @param {Step} step + * @param {StepRequest} stepRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiStepUpdate(id: number, step: Step, options?: any): AxiosPromise { - return localVarFp.apiStepUpdate(id, step, options).then((request) => request(axios, basePath)); + apiStepUpdate(id: number, stepRequest: StepRequest, options?: any): AxiosPromise { + return localVarFp.apiStepUpdate(id, stepRequest, options).then((request) => request(axios, basePath)); }, /** * - * @param {Storage} storage + * @param {StorageRequest} storageRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiStorageCreate(storage: Storage, options?: any): AxiosPromise { - return localVarFp.apiStorageCreate(storage, options).then((request) => request(axios, basePath)); + apiStorageCreate(storageRequest: StorageRequest, options?: any): AxiosPromise { + return localVarFp.apiStorageCreate(storageRequest, options).then((request) => request(axios, basePath)); }, /** * @@ -19529,12 +20889,12 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?: /** * * @param {number} id A unique integer value identifying this storage. - * @param {PatchedStorage} [patchedStorage] + * @param {PatchedStorageRequest} [patchedStorageRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiStoragePartialUpdate(id: number, patchedStorage?: PatchedStorage, options?: any): AxiosPromise { - return localVarFp.apiStoragePartialUpdate(id, patchedStorage, options).then((request) => request(axios, basePath)); + apiStoragePartialUpdate(id: number, patchedStorageRequest?: PatchedStorageRequest, options?: any): AxiosPromise { + return localVarFp.apiStoragePartialUpdate(id, patchedStorageRequest, options).then((request) => request(axios, basePath)); }, /** * @@ -19548,21 +20908,21 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?: /** * * @param {number} id A unique integer value identifying this storage. - * @param {Storage} storage + * @param {StorageRequest} storageRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiStorageUpdate(id: number, storage: Storage, options?: any): AxiosPromise { - return localVarFp.apiStorageUpdate(id, storage, options).then((request) => request(axios, basePath)); + apiStorageUpdate(id: number, storageRequest: StorageRequest, options?: any): AxiosPromise { + return localVarFp.apiStorageUpdate(id, storageRequest, options).then((request) => request(axios, basePath)); }, /** * - * @param {SupermarketCategory} supermarketCategory + * @param {SupermarketCategoryRequest} supermarketCategoryRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiSupermarketCategoryCreate(supermarketCategory: SupermarketCategory, options?: any): AxiosPromise { - return localVarFp.apiSupermarketCategoryCreate(supermarketCategory, options).then((request) => request(axios, basePath)); + apiSupermarketCategoryCreate(supermarketCategoryRequest: SupermarketCategoryRequest, options?: any): AxiosPromise { + return localVarFp.apiSupermarketCategoryCreate(supermarketCategoryRequest, options).then((request) => request(axios, basePath)); }, /** * @@ -19591,31 +20951,31 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?: * * @param {number} id A unique integer value identifying this supermarket category. * @param {number} target The ID of the {obj} you want to merge with. - * @param {SupermarketCategory} supermarketCategory + * @param {SupermarketCategoryRequest} supermarketCategoryRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiSupermarketCategoryMergeUpdate(id: number, target: number, supermarketCategory: SupermarketCategory, options?: any): AxiosPromise { - return localVarFp.apiSupermarketCategoryMergeUpdate(id, target, supermarketCategory, options).then((request) => request(axios, basePath)); + apiSupermarketCategoryMergeUpdate(id: number, target: number, supermarketCategoryRequest: SupermarketCategoryRequest, options?: any): AxiosPromise { + return localVarFp.apiSupermarketCategoryMergeUpdate(id, target, supermarketCategoryRequest, options).then((request) => request(axios, basePath)); }, /** * * @param {number} id A unique integer value identifying this supermarket category. - * @param {PatchedSupermarketCategory} [patchedSupermarketCategory] + * @param {PatchedSupermarketCategoryRequest} [patchedSupermarketCategoryRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiSupermarketCategoryPartialUpdate(id: number, patchedSupermarketCategory?: PatchedSupermarketCategory, options?: any): AxiosPromise { - return localVarFp.apiSupermarketCategoryPartialUpdate(id, patchedSupermarketCategory, options).then((request) => request(axios, basePath)); + apiSupermarketCategoryPartialUpdate(id: number, patchedSupermarketCategoryRequest?: PatchedSupermarketCategoryRequest, options?: any): AxiosPromise { + return localVarFp.apiSupermarketCategoryPartialUpdate(id, patchedSupermarketCategoryRequest, options).then((request) => request(axios, basePath)); }, /** * - * @param {SupermarketCategoryRelation} supermarketCategoryRelation + * @param {SupermarketCategoryRelationRequest} supermarketCategoryRelationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiSupermarketCategoryRelationCreate(supermarketCategoryRelation: SupermarketCategoryRelation, options?: any): AxiosPromise { - return localVarFp.apiSupermarketCategoryRelationCreate(supermarketCategoryRelation, options).then((request) => request(axios, basePath)); + apiSupermarketCategoryRelationCreate(supermarketCategoryRelationRequest: SupermarketCategoryRelationRequest, options?: any): AxiosPromise { + return localVarFp.apiSupermarketCategoryRelationCreate(supermarketCategoryRelationRequest, options).then((request) => request(axios, basePath)); }, /** * @@ -19643,12 +21003,12 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?: /** * * @param {number} id A unique integer value identifying this supermarket category relation. - * @param {PatchedSupermarketCategoryRelation} [patchedSupermarketCategoryRelation] + * @param {PatchedSupermarketCategoryRelationRequest} [patchedSupermarketCategoryRelationRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiSupermarketCategoryRelationPartialUpdate(id: number, patchedSupermarketCategoryRelation?: PatchedSupermarketCategoryRelation, options?: any): AxiosPromise { - return localVarFp.apiSupermarketCategoryRelationPartialUpdate(id, patchedSupermarketCategoryRelation, options).then((request) => request(axios, basePath)); + apiSupermarketCategoryRelationPartialUpdate(id: number, patchedSupermarketCategoryRelationRequest?: PatchedSupermarketCategoryRelationRequest, options?: any): AxiosPromise { + return localVarFp.apiSupermarketCategoryRelationPartialUpdate(id, patchedSupermarketCategoryRelationRequest, options).then((request) => request(axios, basePath)); }, /** * @@ -19662,12 +21022,12 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?: /** * * @param {number} id A unique integer value identifying this supermarket category relation. - * @param {SupermarketCategoryRelation} supermarketCategoryRelation + * @param {SupermarketCategoryRelationRequest} supermarketCategoryRelationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiSupermarketCategoryRelationUpdate(id: number, supermarketCategoryRelation: SupermarketCategoryRelation, options?: any): AxiosPromise { - return localVarFp.apiSupermarketCategoryRelationUpdate(id, supermarketCategoryRelation, options).then((request) => request(axios, basePath)); + apiSupermarketCategoryRelationUpdate(id: number, supermarketCategoryRelationRequest: SupermarketCategoryRelationRequest, options?: any): AxiosPromise { + return localVarFp.apiSupermarketCategoryRelationUpdate(id, supermarketCategoryRelationRequest, options).then((request) => request(axios, basePath)); }, /** * @@ -19681,21 +21041,21 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?: /** * * @param {number} id A unique integer value identifying this supermarket category. - * @param {SupermarketCategory} supermarketCategory + * @param {SupermarketCategoryRequest} supermarketCategoryRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiSupermarketCategoryUpdate(id: number, supermarketCategory: SupermarketCategory, options?: any): AxiosPromise { - return localVarFp.apiSupermarketCategoryUpdate(id, supermarketCategory, options).then((request) => request(axios, basePath)); + apiSupermarketCategoryUpdate(id: number, supermarketCategoryRequest: SupermarketCategoryRequest, options?: any): AxiosPromise { + return localVarFp.apiSupermarketCategoryUpdate(id, supermarketCategoryRequest, options).then((request) => request(axios, basePath)); }, /** * - * @param {Supermarket} supermarket + * @param {SupermarketRequest} supermarketRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiSupermarketCreate(supermarket: Supermarket, options?: any): AxiosPromise { - return localVarFp.apiSupermarketCreate(supermarket, options).then((request) => request(axios, basePath)); + apiSupermarketCreate(supermarketRequest: SupermarketRequest, options?: any): AxiosPromise { + return localVarFp.apiSupermarketCreate(supermarketRequest, options).then((request) => request(axios, basePath)); }, /** * @@ -19723,12 +21083,12 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?: /** * * @param {number} id A unique integer value identifying this supermarket. - * @param {PatchedSupermarket} [patchedSupermarket] + * @param {PatchedSupermarketRequest} [patchedSupermarketRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiSupermarketPartialUpdate(id: number, patchedSupermarket?: PatchedSupermarket, options?: any): AxiosPromise { - return localVarFp.apiSupermarketPartialUpdate(id, patchedSupermarket, options).then((request) => request(axios, basePath)); + apiSupermarketPartialUpdate(id: number, patchedSupermarketRequest?: PatchedSupermarketRequest, options?: any): AxiosPromise { + return localVarFp.apiSupermarketPartialUpdate(id, patchedSupermarketRequest, options).then((request) => request(axios, basePath)); }, /** * @@ -19742,12 +21102,12 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?: /** * * @param {number} id A unique integer value identifying this supermarket. - * @param {Supermarket} supermarket + * @param {SupermarketRequest} supermarketRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiSupermarketUpdate(id: number, supermarket: Supermarket, options?: any): AxiosPromise { - return localVarFp.apiSupermarketUpdate(id, supermarket, options).then((request) => request(axios, basePath)); + apiSupermarketUpdate(id: number, supermarketRequest: SupermarketRequest, options?: any): AxiosPromise { + return localVarFp.apiSupermarketUpdate(id, supermarketRequest, options).then((request) => request(axios, basePath)); }, /** * api endpoint to switch space function @@ -19760,12 +21120,12 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?: }, /** * - * @param {Sync} sync + * @param {SyncRequest} syncRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiSyncCreate(sync: Sync, options?: any): AxiosPromise { - return localVarFp.apiSyncCreate(sync, options).then((request) => request(axios, basePath)); + apiSyncCreate(syncRequest: SyncRequest, options?: any): AxiosPromise { + return localVarFp.apiSyncCreate(syncRequest, options).then((request) => request(axios, basePath)); }, /** * @@ -19808,12 +21168,12 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?: /** * * @param {number} id A unique integer value identifying this sync. - * @param {PatchedSync} [patchedSync] + * @param {PatchedSyncRequest} [patchedSyncRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiSyncPartialUpdate(id: number, patchedSync?: PatchedSync, options?: any): AxiosPromise { - return localVarFp.apiSyncPartialUpdate(id, patchedSync, options).then((request) => request(axios, basePath)); + apiSyncPartialUpdate(id: number, patchedSyncRequest?: PatchedSyncRequest, options?: any): AxiosPromise { + return localVarFp.apiSyncPartialUpdate(id, patchedSyncRequest, options).then((request) => request(axios, basePath)); }, /** * @@ -19827,21 +21187,21 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?: /** * * @param {number} id A unique integer value identifying this sync. - * @param {Sync} sync + * @param {SyncRequest} syncRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiSyncUpdate(id: number, sync: Sync, options?: any): AxiosPromise { - return localVarFp.apiSyncUpdate(id, sync, options).then((request) => request(axios, basePath)); + apiSyncUpdate(id: number, syncRequest: SyncRequest, options?: any): AxiosPromise { + return localVarFp.apiSyncUpdate(id, syncRequest, options).then((request) => request(axios, basePath)); }, /** * - * @param {UnitConversion} unitConversion + * @param {UnitConversionRequest} unitConversionRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiUnitConversionCreate(unitConversion: UnitConversion, options?: any): AxiosPromise { - return localVarFp.apiUnitConversionCreate(unitConversion, options).then((request) => request(axios, basePath)); + apiUnitConversionCreate(unitConversionRequest: UnitConversionRequest, options?: any): AxiosPromise { + return localVarFp.apiUnitConversionCreate(unitConversionRequest, options).then((request) => request(axios, basePath)); }, /** * @@ -19866,12 +21226,12 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?: /** * * @param {number} id A unique integer value identifying this unit conversion. - * @param {PatchedUnitConversion} [patchedUnitConversion] + * @param {PatchedUnitConversionRequest} [patchedUnitConversionRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiUnitConversionPartialUpdate(id: number, patchedUnitConversion?: PatchedUnitConversion, options?: any): AxiosPromise { - return localVarFp.apiUnitConversionPartialUpdate(id, patchedUnitConversion, options).then((request) => request(axios, basePath)); + apiUnitConversionPartialUpdate(id: number, patchedUnitConversionRequest?: PatchedUnitConversionRequest, options?: any): AxiosPromise { + return localVarFp.apiUnitConversionPartialUpdate(id, patchedUnitConversionRequest, options).then((request) => request(axios, basePath)); }, /** * @@ -19885,21 +21245,21 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?: /** * * @param {number} id A unique integer value identifying this unit conversion. - * @param {UnitConversion} unitConversion + * @param {UnitConversionRequest} unitConversionRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiUnitConversionUpdate(id: number, unitConversion: UnitConversion, options?: any): AxiosPromise { - return localVarFp.apiUnitConversionUpdate(id, unitConversion, options).then((request) => request(axios, basePath)); + apiUnitConversionUpdate(id: number, unitConversionRequest: UnitConversionRequest, options?: any): AxiosPromise { + return localVarFp.apiUnitConversionUpdate(id, unitConversionRequest, options).then((request) => request(axios, basePath)); }, /** * - * @param {Unit} unit + * @param {UnitRequest} unitRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiUnitCreate(unit: Unit, options?: any): AxiosPromise { - return localVarFp.apiUnitCreate(unit, options).then((request) => request(axios, basePath)); + apiUnitCreate(unitRequest: UnitRequest, options?: any): AxiosPromise { + return localVarFp.apiUnitCreate(unitRequest, options).then((request) => request(axios, basePath)); }, /** * @@ -19928,22 +21288,22 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?: * * @param {number} id A unique integer value identifying this unit. * @param {number} target The ID of the {obj} you want to merge with. - * @param {Unit} unit + * @param {UnitRequest} unitRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiUnitMergeUpdate(id: number, target: number, unit: Unit, options?: any): AxiosPromise { - return localVarFp.apiUnitMergeUpdate(id, target, unit, options).then((request) => request(axios, basePath)); + apiUnitMergeUpdate(id: number, target: number, unitRequest: UnitRequest, options?: any): AxiosPromise { + return localVarFp.apiUnitMergeUpdate(id, target, unitRequest, options).then((request) => request(axios, basePath)); }, /** * * @param {number} id A unique integer value identifying this unit. - * @param {PatchedUnit} [patchedUnit] + * @param {PatchedUnitRequest} [patchedUnitRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiUnitPartialUpdate(id: number, patchedUnit?: PatchedUnit, options?: any): AxiosPromise { - return localVarFp.apiUnitPartialUpdate(id, patchedUnit, options).then((request) => request(axios, basePath)); + apiUnitPartialUpdate(id: number, patchedUnitRequest?: PatchedUnitRequest, options?: any): AxiosPromise { + return localVarFp.apiUnitPartialUpdate(id, patchedUnitRequest, options).then((request) => request(axios, basePath)); }, /** * @@ -19957,26 +21317,23 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?: /** * * @param {number} id A unique integer value identifying this unit. - * @param {Unit} unit + * @param {UnitRequest} unitRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiUnitUpdate(id: number, unit: Unit, options?: any): AxiosPromise { - return localVarFp.apiUnitUpdate(id, unit, options).then((request) => request(axios, basePath)); + apiUnitUpdate(id: number, unitRequest: UnitRequest, options?: any): AxiosPromise { + return localVarFp.apiUnitUpdate(id, unitRequest, options).then((request) => request(axios, basePath)); }, /** * - * @param {number} id * @param {string} name - * @param {string} file - * @param {string} fileDownload - * @param {string} preview - * @param {number} fileSizeKb + * @param {any} file + * @param {number} [id] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - 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)); + apiUserFileCreate(name: string, file: any, id?: number, options?: any): AxiosPromise { + return localVarFp.apiUserFileCreate(name, file, id, options).then((request) => request(axios, basePath)); }, /** * @@ -20004,17 +21361,14 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?: /** * * @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 {any} [file] + * @param {number} [id2] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - 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)); + apiUserFilePartialUpdate(id: number, name?: string, file?: any, id2?: number, options?: any): AxiosPromise { + return localVarFp.apiUserFilePartialUpdate(id, name, file, id2, options).then((request) => request(axios, basePath)); }, /** * @@ -20028,46 +21382,51 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?: /** * * @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 {any} file + * @param {number} [id2] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - 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)); + apiUserFileUpdate(id: number, name: string, file: any, id2?: number, options?: any): AxiosPromise { + return localVarFp.apiUserFileUpdate(id, name, file, id2, options).then((request) => request(axios, basePath)); }, /** * - * @param {string} [filterList] User IDs, repeat for multiple + * @param {Array} [filterList] User IDs, repeat for multiple * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiUserList(filterList?: string, options?: any): AxiosPromise> { + apiUserList(filterList?: Array, options?: any): AxiosPromise> { return localVarFp.apiUserList(filterList, options).then((request) => request(axios, basePath)); }, /** * * @param {number} id A unique integer value identifying this user. - * @param {PatchedUser} [patchedUser] + * @param {PatchedUserRequest} [patchedUserRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiUserPartialUpdate(id: number, patchedUser?: PatchedUser, options?: any): AxiosPromise { - return localVarFp.apiUserPartialUpdate(id, patchedUser, options).then((request) => request(axios, basePath)); + apiUserPartialUpdate(id: number, patchedUserRequest?: PatchedUserRequest, options?: any): AxiosPromise { + return localVarFp.apiUserPartialUpdate(id, patchedUserRequest, options).then((request) => request(axios, basePath)); + }, + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + apiUserPreferenceList(options?: any): AxiosPromise> { + return localVarFp.apiUserPreferenceList(options).then((request) => request(axios, basePath)); }, /** * * @param {number} user A unique value identifying this user preference. - * @param {PatchedUserPreference} [patchedUserPreference] + * @param {PatchedUserPreferenceRequest} [patchedUserPreferenceRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiUserPreferencePartialUpdate(user: number, patchedUserPreference?: PatchedUserPreference, options?: any): AxiosPromise { - return localVarFp.apiUserPreferencePartialUpdate(user, patchedUserPreference, options).then((request) => request(axios, basePath)); + apiUserPreferencePartialUpdate(user: number, patchedUserPreferenceRequest?: PatchedUserPreferenceRequest, options?: any): AxiosPromise { + return localVarFp.apiUserPreferencePartialUpdate(user, patchedUserPreferenceRequest, options).then((request) => request(axios, basePath)); }, /** * @@ -20110,12 +21469,12 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?: /** * * @param {number} id A unique integer value identifying this user space. - * @param {PatchedUserSpace} [patchedUserSpace] + * @param {PatchedUserSpaceRequest} [patchedUserSpaceRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiUserSpacePartialUpdate(id: number, patchedUserSpace?: PatchedUserSpace, options?: any): AxiosPromise { - return localVarFp.apiUserSpacePartialUpdate(id, patchedUserSpace, options).then((request) => request(axios, basePath)); + apiUserSpacePartialUpdate(id: number, patchedUserSpaceRequest?: PatchedUserSpaceRequest, options?: any): AxiosPromise { + return localVarFp.apiUserSpacePartialUpdate(id, patchedUserSpaceRequest, options).then((request) => request(axios, basePath)); }, /** * @@ -20128,12 +21487,12 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?: }, /** * - * @param {ViewLog} viewLog + * @param {ViewLogRequest} viewLogRequest * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiViewLogCreate(viewLog: ViewLog, options?: any): AxiosPromise { - return localVarFp.apiViewLogCreate(viewLog, options).then((request) => request(axios, basePath)); + apiViewLogCreate(viewLogRequest: ViewLogRequest, options?: any): AxiosPromise { + return localVarFp.apiViewLogCreate(viewLogRequest, options).then((request) => request(axios, basePath)); }, /** * @@ -20157,12 +21516,12 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?: /** * * @param {number} id A unique integer value identifying this view log. - * @param {PatchedViewLog} [patchedViewLog] + * @param {PatchedViewLogRequest} [patchedViewLogRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiViewLogPartialUpdate(id: number, patchedViewLog?: PatchedViewLog, options?: any): AxiosPromise { - return localVarFp.apiViewLogPartialUpdate(id, patchedViewLog, options).then((request) => request(axios, basePath)); + apiViewLogPartialUpdate(id: number, patchedViewLogRequest?: PatchedViewLogRequest, options?: any): AxiosPromise { + return localVarFp.apiViewLogPartialUpdate(id, patchedViewLogRequest, options).then((request) => request(axios, basePath)); }, /** * @@ -20176,12 +21535,12 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?: /** * * @param {number} id A unique integer value identifying this view log. - * @param {ViewLog} viewLog + * @param {ViewLogRequest} viewLogRequest * @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)); + apiViewLogUpdate(id: number, viewLogRequest: ViewLogRequest, options?: any): AxiosPromise { + return localVarFp.apiViewLogUpdate(id, viewLogRequest, options).then((request) => request(axios, basePath)); }, }; }; @@ -20195,13 +21554,13 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?: export class ApiApi extends BaseAPI { /** * - * @param {AccessToken} accessToken + * @param {AccessTokenRequest} accessTokenRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public apiAccessTokenCreate(accessToken: AccessToken, options?: any) { - return ApiApiFp(this.configuration).apiAccessTokenCreate(accessToken, options).then((request) => request(this.axios, this.basePath)); + public apiAccessTokenCreate(accessTokenRequest: AccessTokenRequest, options?: any) { + return ApiApiFp(this.configuration).apiAccessTokenCreate(accessTokenRequest, options).then((request) => request(this.axios, this.basePath)); } /** @@ -20228,13 +21587,13 @@ export class ApiApi extends BaseAPI { /** * * @param {number} id A unique integer value identifying this access token. - * @param {PatchedAccessToken} [patchedAccessToken] + * @param {PatchedAccessTokenRequest} [patchedAccessTokenRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public apiAccessTokenPartialUpdate(id: number, patchedAccessToken?: PatchedAccessToken, options?: any) { - return ApiApiFp(this.configuration).apiAccessTokenPartialUpdate(id, patchedAccessToken, options).then((request) => request(this.axios, this.basePath)); + public apiAccessTokenPartialUpdate(id: number, patchedAccessTokenRequest?: PatchedAccessTokenRequest, options?: any) { + return ApiApiFp(this.configuration).apiAccessTokenPartialUpdate(id, patchedAccessTokenRequest, options).then((request) => request(this.axios, this.basePath)); } /** @@ -20251,35 +21610,35 @@ export class ApiApi extends BaseAPI { /** * * @param {number} id A unique integer value identifying this access token. - * @param {AccessToken} accessToken + * @param {AccessTokenRequest} accessTokenRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public apiAccessTokenUpdate(id: number, accessToken: AccessToken, options?: any) { - return ApiApiFp(this.configuration).apiAccessTokenUpdate(id, accessToken, options).then((request) => request(this.axios, this.basePath)); + public apiAccessTokenUpdate(id: number, accessTokenRequest: AccessTokenRequest, options?: any) { + return ApiApiFp(this.configuration).apiAccessTokenUpdate(id, accessTokenRequest, options).then((request) => request(this.axios, this.basePath)); } /** * - * @param {AutoMealPlan} autoMealPlan + * @param {AutoMealPlanRequest} autoMealPlanRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public apiAutoPlanCreate(autoMealPlan: AutoMealPlan, options?: any) { - return ApiApiFp(this.configuration).apiAutoPlanCreate(autoMealPlan, options).then((request) => request(this.axios, this.basePath)); + public apiAutoPlanCreate(autoMealPlanRequest: AutoMealPlanRequest, options?: any) { + return ApiApiFp(this.configuration).apiAutoPlanCreate(autoMealPlanRequest, options).then((request) => request(this.axios, this.basePath)); } /** * - * @param {Automation} automation + * @param {AutomationRequest} automationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public apiAutomationCreate(automation: Automation, options?: any) { - return ApiApiFp(this.configuration).apiAutomationCreate(automation, options).then((request) => request(this.axios, this.basePath)); + public apiAutomationCreate(automationRequest: AutomationRequest, options?: any) { + return ApiApiFp(this.configuration).apiAutomationCreate(automationRequest, options).then((request) => request(this.axios, this.basePath)); } /** @@ -20297,25 +21656,25 @@ export class ApiApi extends BaseAPI { * * @param {number} [page] A page number within the paginated result set. * @param {number} [pageSize] Number of results to return per page. - * @param {'DESCRIPTION_REPLACE' | 'FOOD_ALIAS' | 'FOOD_REPLACE' | 'INSTRUCTION_REPLACE' | 'KEYWORD_ALIAS' | 'NAME_REPLACE' | 'NEVER_UNIT' | 'TRANSPOSE_WORDS' | 'UNIT_ALIAS' | 'UNIT_REPLACE'} [type] Return the Automations matching the automation type. Repeat for multiple. + * @param {Array<'DESCRIPTION_REPLACE' | 'FOOD_ALIAS' | 'FOOD_REPLACE' | 'INSTRUCTION_REPLACE' | 'KEYWORD_ALIAS' | 'NAME_REPLACE' | 'NEVER_UNIT' | 'TRANSPOSE_WORDS' | 'UNIT_ALIAS' | 'UNIT_REPLACE'>} [type] Return the Automations matching the automation type. Repeat for multiple. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public apiAutomationList(page?: number, pageSize?: number, type?: 'DESCRIPTION_REPLACE' | 'FOOD_ALIAS' | 'FOOD_REPLACE' | 'INSTRUCTION_REPLACE' | 'KEYWORD_ALIAS' | 'NAME_REPLACE' | 'NEVER_UNIT' | 'TRANSPOSE_WORDS' | 'UNIT_ALIAS' | 'UNIT_REPLACE', options?: any) { + public apiAutomationList(page?: number, pageSize?: number, type?: Array<'DESCRIPTION_REPLACE' | 'FOOD_ALIAS' | 'FOOD_REPLACE' | 'INSTRUCTION_REPLACE' | 'KEYWORD_ALIAS' | 'NAME_REPLACE' | 'NEVER_UNIT' | 'TRANSPOSE_WORDS' | 'UNIT_ALIAS' | 'UNIT_REPLACE'>, options?: any) { return ApiApiFp(this.configuration).apiAutomationList(page, pageSize, type, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {number} id A unique integer value identifying this automation. - * @param {PatchedAutomation} [patchedAutomation] + * @param {PatchedAutomationRequest} [patchedAutomationRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public apiAutomationPartialUpdate(id: number, patchedAutomation?: PatchedAutomation, options?: any) { - return ApiApiFp(this.configuration).apiAutomationPartialUpdate(id, patchedAutomation, options).then((request) => request(this.axios, this.basePath)); + public apiAutomationPartialUpdate(id: number, patchedAutomationRequest?: PatchedAutomationRequest, options?: any) { + return ApiApiFp(this.configuration).apiAutomationPartialUpdate(id, patchedAutomationRequest, options).then((request) => request(this.axios, this.basePath)); } /** @@ -20332,24 +21691,24 @@ export class ApiApi extends BaseAPI { /** * * @param {number} id A unique integer value identifying this automation. - * @param {Automation} automation + * @param {AutomationRequest} automationRequest * @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)); + public apiAutomationUpdate(id: number, automationRequest: AutomationRequest, options?: any) { + return ApiApiFp(this.configuration).apiAutomationUpdate(id, automationRequest, options).then((request) => request(this.axios, this.basePath)); } /** * - * @param {BookmarkletImport} bookmarkletImport + * @param {BookmarkletImportRequest} bookmarkletImportRequest * @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)); + public apiBookmarkletImportCreate(bookmarkletImportRequest: BookmarkletImportRequest, options?: any) { + return ApiApiFp(this.configuration).apiBookmarkletImportCreate(bookmarkletImportRequest, options).then((request) => request(this.axios, this.basePath)); } /** @@ -20378,13 +21737,13 @@ export class ApiApi extends BaseAPI { /** * * @param {number} id A unique integer value identifying this bookmarklet import. - * @param {PatchedBookmarkletImport} [patchedBookmarkletImport] + * @param {PatchedBookmarkletImportRequest} [patchedBookmarkletImportRequest] * @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)); + public apiBookmarkletImportPartialUpdate(id: number, patchedBookmarkletImportRequest?: PatchedBookmarkletImportRequest, options?: any) { + return ApiApiFp(this.configuration).apiBookmarkletImportPartialUpdate(id, patchedBookmarkletImportRequest, options).then((request) => request(this.axios, this.basePath)); } /** @@ -20401,24 +21760,24 @@ export class ApiApi extends BaseAPI { /** * * @param {number} id A unique integer value identifying this bookmarklet import. - * @param {BookmarkletImport} bookmarkletImport + * @param {BookmarkletImportRequest} bookmarkletImportRequest * @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)); + public apiBookmarkletImportUpdate(id: number, bookmarkletImportRequest: BookmarkletImportRequest, options?: any) { + return ApiApiFp(this.configuration).apiBookmarkletImportUpdate(id, bookmarkletImportRequest, options).then((request) => request(this.axios, this.basePath)); } /** * - * @param {ConnectorConfigConfig} connectorConfigConfig + * @param {ConnectorConfigConfigRequest} connectorConfigConfigRequest * @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)); + public apiConnectorConfigCreate(connectorConfigConfigRequest: ConnectorConfigConfigRequest, options?: any) { + return ApiApiFp(this.configuration).apiConnectorConfigCreate(connectorConfigConfigRequest, options).then((request) => request(this.axios, this.basePath)); } /** @@ -20445,13 +21804,13 @@ export class ApiApi extends BaseAPI { /** * * @param {number} id A unique integer value identifying this connector config. - * @param {PatchedConnectorConfigConfig} [patchedConnectorConfigConfig] + * @param {PatchedConnectorConfigConfigRequest} [patchedConnectorConfigConfigRequest] * @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)); + public apiConnectorConfigPartialUpdate(id: number, patchedConnectorConfigConfigRequest?: PatchedConnectorConfigConfigRequest, options?: any) { + return ApiApiFp(this.configuration).apiConnectorConfigPartialUpdate(id, patchedConnectorConfigConfigRequest, options).then((request) => request(this.axios, this.basePath)); } /** @@ -20468,24 +21827,24 @@ export class ApiApi extends BaseAPI { /** * * @param {number} id A unique integer value identifying this connector config. - * @param {ConnectorConfigConfig} connectorConfigConfig + * @param {ConnectorConfigConfigRequest} connectorConfigConfigRequest * @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)); + public apiConnectorConfigUpdate(id: number, connectorConfigConfigRequest: ConnectorConfigConfigRequest, options?: any) { + return ApiApiFp(this.configuration).apiConnectorConfigUpdate(id, connectorConfigConfigRequest, options).then((request) => request(this.axios, this.basePath)); } /** * - * @param {CookLog} cookLog + * @param {CookLogRequest} cookLogRequest * @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)); + public apiCookLogCreate(cookLogRequest: CookLogRequest, options?: any) { + return ApiApiFp(this.configuration).apiCookLogCreate(cookLogRequest, options).then((request) => request(this.axios, this.basePath)); } /** @@ -20515,13 +21874,13 @@ export class ApiApi extends BaseAPI { /** * * @param {number} id A unique integer value identifying this cook log. - * @param {PatchedCookLog} [patchedCookLog] + * @param {PatchedCookLogRequest} [patchedCookLogRequest] * @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)); + public apiCookLogPartialUpdate(id: number, patchedCookLogRequest?: PatchedCookLogRequest, options?: any) { + return ApiApiFp(this.configuration).apiCookLogPartialUpdate(id, patchedCookLogRequest, options).then((request) => request(this.axios, this.basePath)); } /** @@ -20538,24 +21897,24 @@ export class ApiApi extends BaseAPI { /** * * @param {number} id A unique integer value identifying this cook log. - * @param {CookLog} cookLog + * @param {CookLogRequest} cookLogRequest * @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)); + public apiCookLogUpdate(id: number, cookLogRequest: CookLogRequest, options?: any) { + return ApiApiFp(this.configuration).apiCookLogUpdate(id, cookLogRequest, options).then((request) => request(this.axios, this.basePath)); } /** * - * @param {CustomFilter} customFilter + * @param {CustomFilterRequest} customFilterRequest * @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)); + public apiCustomFilterCreate(customFilterRequest: CustomFilterRequest, options?: any) { + return ApiApiFp(this.configuration).apiCustomFilterCreate(customFilterRequest, options).then((request) => request(this.axios, this.basePath)); } /** @@ -20576,26 +21935,26 @@ export class ApiApi extends BaseAPI { * @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 {'FOOD' | 'KEYWORD' | 'RECIPE'} [type] Return the CustomFilters matching the model type. Repeat for multiple. + * @param {Array<'FOOD' | 'KEYWORD' | 'RECIPE'>} [type] Return the CustomFilters matching the model type. Repeat for multiple. * @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, type?: 'FOOD' | 'KEYWORD' | 'RECIPE', updatedAt?: string, options?: any) { + public apiCustomFilterList(limit?: string, page?: number, pageSize?: number, query?: string, random?: string, type?: Array<'FOOD' | 'KEYWORD' | 'RECIPE'>, updatedAt?: string, options?: any) { return ApiApiFp(this.configuration).apiCustomFilterList(limit, page, pageSize, query, random, type, updatedAt, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {number} id A unique integer value identifying this custom filter. - * @param {PatchedCustomFilter} [patchedCustomFilter] + * @param {PatchedCustomFilterRequest} [patchedCustomFilterRequest] * @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)); + public apiCustomFilterPartialUpdate(id: number, patchedCustomFilterRequest?: PatchedCustomFilterRequest, options?: any) { + return ApiApiFp(this.configuration).apiCustomFilterPartialUpdate(id, patchedCustomFilterRequest, options).then((request) => request(this.axios, this.basePath)); } /** @@ -20612,13 +21971,13 @@ export class ApiApi extends BaseAPI { /** * * @param {number} id A unique integer value identifying this custom filter. - * @param {CustomFilter} customFilter + * @param {CustomFilterRequest} customFilterRequest * @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)); + public apiCustomFilterUpdate(id: number, customFilterRequest: CustomFilterRequest, options?: any) { + return ApiApiFp(this.configuration).apiCustomFilterUpdate(id, customFilterRequest, options).then((request) => request(this.axios, this.basePath)); } /** @@ -20634,13 +21993,13 @@ export class ApiApi extends BaseAPI { /** * - * @param {ExportLog} exportLog + * @param {ExportLogRequest} exportLogRequest * @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)); + public apiExportLogCreate(exportLogRequest: ExportLogRequest, options?: any) { + return ApiApiFp(this.configuration).apiExportLogCreate(exportLogRequest, options).then((request) => request(this.axios, this.basePath)); } /** @@ -20669,13 +22028,13 @@ export class ApiApi extends BaseAPI { /** * * @param {number} id A unique integer value identifying this export log. - * @param {PatchedExportLog} [patchedExportLog] + * @param {PatchedExportLogRequest} [patchedExportLogRequest] * @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)); + public apiExportLogPartialUpdate(id: number, patchedExportLogRequest?: PatchedExportLogRequest, options?: any) { + return ApiApiFp(this.configuration).apiExportLogPartialUpdate(id, patchedExportLogRequest, options).then((request) => request(this.axios, this.basePath)); } /** @@ -20692,24 +22051,24 @@ export class ApiApi extends BaseAPI { /** * * @param {number} id A unique integer value identifying this export log. - * @param {ExportLog} exportLog + * @param {ExportLogRequest} exportLogRequest * @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)); + public apiExportLogUpdate(id: number, exportLogRequest: ExportLogRequest, options?: any) { + return ApiApiFp(this.configuration).apiExportLogUpdate(id, exportLogRequest, options).then((request) => request(this.axios, this.basePath)); } /** * - * @param {Food} food + * @param {FoodRequest} foodRequest * @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)); + public apiFoodCreate(foodRequest: FoodRequest, options?: any) { + return ApiApiFp(this.configuration).apiFoodCreate(foodRequest, options).then((request) => request(this.axios, this.basePath)); } /** @@ -20726,13 +22085,13 @@ export class ApiApi extends BaseAPI { /** * 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 {FoodRequest} foodRequest * @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)); + public apiFoodFdcCreate(id: number, foodRequest: FoodRequest, options?: any) { + return ApiApiFp(this.configuration).apiFoodFdcCreate(id, foodRequest, options).then((request) => request(this.axios, this.basePath)); } /** @@ -20778,49 +22137,49 @@ export class ApiApi extends BaseAPI { * * @param {number} id A unique integer value identifying this food. * @param {number} target The ID of the {obj} you want to merge with. - * @param {Food} food + * @param {FoodRequest} foodRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public apiFoodMergeUpdate(id: number, target: number, food: Food, options?: any) { - return ApiApiFp(this.configuration).apiFoodMergeUpdate(id, target, food, options).then((request) => request(this.axios, this.basePath)); + public apiFoodMergeUpdate(id: number, target: number, foodRequest: FoodRequest, options?: any) { + return ApiApiFp(this.configuration).apiFoodMergeUpdate(id, target, foodRequest, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {number} id A unique integer value identifying this food. * @param {number} parent The ID of the desired parent of the {obj}. - * @param {Food} food + * @param {FoodRequest} foodRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public apiFoodMoveUpdate(id: number, parent: number, food: Food, options?: any) { - return ApiApiFp(this.configuration).apiFoodMoveUpdate(id, parent, food, options).then((request) => request(this.axios, this.basePath)); + public apiFoodMoveUpdate(id: number, parent: number, foodRequest: FoodRequest, options?: any) { + return ApiApiFp(this.configuration).apiFoodMoveUpdate(id, parent, foodRequest, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {number} id A unique integer value identifying this food. - * @param {PatchedFood} [patchedFood] + * @param {PatchedFoodRequest} [patchedFoodRequest] * @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)); + public apiFoodPartialUpdate(id: number, patchedFoodRequest?: PatchedFoodRequest, options?: any) { + return ApiApiFp(this.configuration).apiFoodPartialUpdate(id, patchedFoodRequest, options).then((request) => request(this.axios, this.basePath)); } /** * - * @param {Property} property + * @param {PropertyRequest} propertyRequest * @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)); + public apiFoodPropertyCreate(propertyRequest: PropertyRequest, options?: any) { + return ApiApiFp(this.configuration).apiFoodPropertyCreate(propertyRequest, options).then((request) => request(this.axios, this.basePath)); } /** @@ -20849,13 +22208,13 @@ export class ApiApi extends BaseAPI { /** * * @param {number} id A unique integer value identifying this property. - * @param {PatchedProperty} [patchedProperty] + * @param {PatchedPropertyRequest} [patchedPropertyRequest] * @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)); + public apiFoodPropertyPartialUpdate(id: number, patchedPropertyRequest?: PatchedPropertyRequest, options?: any) { + return ApiApiFp(this.configuration).apiFoodPropertyPartialUpdate(id, patchedPropertyRequest, options).then((request) => request(this.axios, this.basePath)); } /** @@ -20871,13 +22230,13 @@ export class ApiApi extends BaseAPI { /** * - * @param {PropertyType} propertyType + * @param {PropertyTypeRequest} propertyTypeRequest * @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)); + public apiFoodPropertyTypeCreate(propertyTypeRequest: PropertyTypeRequest, options?: any) { + return ApiApiFp(this.configuration).apiFoodPropertyTypeCreate(propertyTypeRequest, options).then((request) => request(this.axios, this.basePath)); } /** @@ -20893,27 +22252,27 @@ export class ApiApi extends BaseAPI { /** * - * @param {'ALLERGEN' | 'GOAL' | 'NUTRITION' | 'OTHER' | 'PRICE'} [category] Return the PropertyTypes matching the property category. Repeat for multiple. + * @param {Array<'ALLERGEN' | 'GOAL' | 'NUTRITION' | 'OTHER' | 'PRICE'>} [category] Return the PropertyTypes matching the property category. Repeat for multiple. * @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 apiFoodPropertyTypeList(category?: 'ALLERGEN' | 'GOAL' | 'NUTRITION' | 'OTHER' | 'PRICE', page?: number, pageSize?: number, options?: any) { + public apiFoodPropertyTypeList(category?: Array<'ALLERGEN' | 'GOAL' | 'NUTRITION' | 'OTHER' | 'PRICE'>, page?: number, pageSize?: number, options?: any) { return ApiApiFp(this.configuration).apiFoodPropertyTypeList(category, page, pageSize, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {number} id A unique integer value identifying this property type. - * @param {PatchedPropertyType} [patchedPropertyType] + * @param {PatchedPropertyTypeRequest} [patchedPropertyTypeRequest] * @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)); + public apiFoodPropertyTypePartialUpdate(id: number, patchedPropertyTypeRequest?: PatchedPropertyTypeRequest, options?: any) { + return ApiApiFp(this.configuration).apiFoodPropertyTypePartialUpdate(id, patchedPropertyTypeRequest, options).then((request) => request(this.axios, this.basePath)); } /** @@ -20930,25 +22289,25 @@ export class ApiApi extends BaseAPI { /** * * @param {number} id A unique integer value identifying this property type. - * @param {PropertyType} propertyType + * @param {PropertyTypeRequest} propertyTypeRequest * @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)); + public apiFoodPropertyTypeUpdate(id: number, propertyTypeRequest: PropertyTypeRequest, options?: any) { + return ApiApiFp(this.configuration).apiFoodPropertyTypeUpdate(id, propertyTypeRequest, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {number} id A unique integer value identifying this property. - * @param {Property} property + * @param {PropertyRequest} propertyRequest * @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)); + public apiFoodPropertyUpdate(id: number, propertyRequest: PropertyRequest, options?: any) { + return ApiApiFp(this.configuration).apiFoodPropertyUpdate(id, propertyRequest, options).then((request) => request(this.axios, this.basePath)); } /** @@ -20965,25 +22324,47 @@ export class ApiApi extends BaseAPI { /** * * @param {number} id A unique integer value identifying this food. - * @param {FoodShoppingUpdate} foodShoppingUpdate + * @param {FoodShoppingUpdateRequest} foodShoppingUpdateRequest * @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)); + public apiFoodShoppingUpdate(id: number, foodShoppingUpdateRequest: FoodShoppingUpdateRequest, options?: any) { + return ApiApiFp(this.configuration).apiFoodShoppingUpdate(id, foodShoppingUpdateRequest, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {number} id A unique integer value identifying this food. - * @param {Food} food + * @param {FoodRequest} foodRequest * @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)); + public apiFoodUpdate(id: number, foodRequest: FoodRequest, options?: any) { + return ApiApiFp(this.configuration).apiFoodUpdate(id, foodRequest, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {number} recipeId + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiGetExternalFileLinkRetrieve(recipeId: number, options?: any) { + return ApiApiFp(this.configuration).apiGetExternalFileLinkRetrieve(recipeId, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {number} recipeId + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiGetRecipeFileRetrieve(recipeId: number, options?: any) { + return ApiApiFp(this.configuration).apiGetRecipeFileRetrieve(recipeId, options).then((request) => request(this.axios, this.basePath)); } /** @@ -21019,13 +22400,13 @@ export class ApiApi extends BaseAPI { /** * - * @param {ImportLog} importLog + * @param {ImportLogRequest} importLogRequest * @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)); + public apiImportLogCreate(importLogRequest: ImportLogRequest, options?: any) { + return ApiApiFp(this.configuration).apiImportLogCreate(importLogRequest, options).then((request) => request(this.axios, this.basePath)); } /** @@ -21054,13 +22435,13 @@ export class ApiApi extends BaseAPI { /** * * @param {number} id A unique integer value identifying this import log. - * @param {PatchedImportLog} [patchedImportLog] + * @param {PatchedImportLogRequest} [patchedImportLogRequest] * @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)); + public apiImportLogPartialUpdate(id: number, patchedImportLogRequest?: PatchedImportLogRequest, options?: any) { + return ApiApiFp(this.configuration).apiImportLogPartialUpdate(id, patchedImportLogRequest, options).then((request) => request(this.axios, this.basePath)); } /** @@ -21077,24 +22458,24 @@ export class ApiApi extends BaseAPI { /** * * @param {number} id A unique integer value identifying this import log. - * @param {ImportLog} importLog + * @param {ImportLogRequest} importLogRequest * @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)); + public apiImportLogUpdate(id: number, importLogRequest: ImportLogRequest, options?: any) { + return ApiApiFp(this.configuration).apiImportLogUpdate(id, importLogRequest, options).then((request) => request(this.axios, this.basePath)); } /** * - * @param {Ingredient} ingredient + * @param {IngredientRequest} ingredientRequest * @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)); + public apiIngredientCreate(ingredientRequest: IngredientRequest, options?: any) { + return ApiApiFp(this.configuration).apiIngredientCreate(ingredientRequest, options).then((request) => request(this.axios, this.basePath)); } /** @@ -21108,6 +22489,17 @@ export class ApiApi extends BaseAPI { return ApiApiFp(this.configuration).apiIngredientDestroy(id, options).then((request) => request(this.axios, this.basePath)); } + /** + * + * @param {IngredientStringRequest} ingredientStringRequest + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiIngredientFromStringCreate(ingredientStringRequest: IngredientStringRequest, options?: any) { + return ApiApiFp(this.configuration).apiIngredientFromStringCreate(ingredientStringRequest, options).then((request) => request(this.axios, this.basePath)); + } + /** * * @param {number} [food] ID of food to filter for @@ -21125,13 +22517,13 @@ export class ApiApi extends BaseAPI { /** * * @param {number} id A unique integer value identifying this ingredient. - * @param {PatchedIngredient} [patchedIngredient] + * @param {PatchedIngredientRequest} [patchedIngredientRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public apiIngredientPartialUpdate(id: number, patchedIngredient?: PatchedIngredient, options?: any) { - return ApiApiFp(this.configuration).apiIngredientPartialUpdate(id, patchedIngredient, options).then((request) => request(this.axios, this.basePath)); + public apiIngredientPartialUpdate(id: number, patchedIngredientRequest?: PatchedIngredientRequest, options?: any) { + return ApiApiFp(this.configuration).apiIngredientPartialUpdate(id, patchedIngredientRequest, options).then((request) => request(this.axios, this.basePath)); } /** @@ -21148,24 +22540,24 @@ export class ApiApi extends BaseAPI { /** * * @param {number} id A unique integer value identifying this ingredient. - * @param {Ingredient} ingredient + * @param {IngredientRequest} ingredientRequest * @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)); + public apiIngredientUpdate(id: number, ingredientRequest: IngredientRequest, options?: any) { + return ApiApiFp(this.configuration).apiIngredientUpdate(id, ingredientRequest, options).then((request) => request(this.axios, this.basePath)); } /** * - * @param {InviteLink} inviteLink + * @param {InviteLinkRequest} inviteLinkRequest * @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)); + public apiInviteLinkCreate(inviteLinkRequest: InviteLinkRequest, options?: any) { + return ApiApiFp(this.configuration).apiInviteLinkCreate(inviteLinkRequest, options).then((request) => request(this.axios, this.basePath)); } /** @@ -21199,13 +22591,13 @@ export class ApiApi extends BaseAPI { /** * * @param {number} id A unique integer value identifying this invite link. - * @param {PatchedInviteLink} [patchedInviteLink] + * @param {PatchedInviteLinkRequest} [patchedInviteLinkRequest] * @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)); + public apiInviteLinkPartialUpdate(id: number, patchedInviteLinkRequest?: PatchedInviteLinkRequest, options?: any) { + return ApiApiFp(this.configuration).apiInviteLinkPartialUpdate(id, patchedInviteLinkRequest, options).then((request) => request(this.axios, this.basePath)); } /** @@ -21222,24 +22614,24 @@ export class ApiApi extends BaseAPI { /** * * @param {number} id A unique integer value identifying this invite link. - * @param {InviteLink} inviteLink + * @param {InviteLinkRequest} inviteLinkRequest * @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)); + public apiInviteLinkUpdate(id: number, inviteLinkRequest: InviteLinkRequest, options?: any) { + return ApiApiFp(this.configuration).apiInviteLinkUpdate(id, inviteLinkRequest, options).then((request) => request(this.axios, this.basePath)); } /** * - * @param {Keyword} keyword + * @param {KeywordRequest} keywordRequest * @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)); + public apiKeywordCreate(keywordRequest: KeywordRequest, options?: any) { + return ApiApiFp(this.configuration).apiKeywordCreate(keywordRequest, options).then((request) => request(this.axios, this.basePath)); } /** @@ -21275,38 +22667,38 @@ export class ApiApi extends BaseAPI { * * @param {number} id A unique integer value identifying this keyword. * @param {number} target The ID of the {obj} you want to merge with. - * @param {Keyword} keyword + * @param {KeywordRequest} keywordRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public apiKeywordMergeUpdate(id: number, target: number, keyword: Keyword, options?: any) { - return ApiApiFp(this.configuration).apiKeywordMergeUpdate(id, target, keyword, options).then((request) => request(this.axios, this.basePath)); + public apiKeywordMergeUpdate(id: number, target: number, keywordRequest: KeywordRequest, options?: any) { + return ApiApiFp(this.configuration).apiKeywordMergeUpdate(id, target, keywordRequest, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {number} id A unique integer value identifying this keyword. * @param {number} parent The ID of the desired parent of the {obj}. - * @param {Keyword} keyword + * @param {KeywordRequest} keywordRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public apiKeywordMoveUpdate(id: number, parent: number, keyword: Keyword, options?: any) { - return ApiApiFp(this.configuration).apiKeywordMoveUpdate(id, parent, keyword, options).then((request) => request(this.axios, this.basePath)); + public apiKeywordMoveUpdate(id: number, parent: number, keywordRequest: KeywordRequest, options?: any) { + return ApiApiFp(this.configuration).apiKeywordMoveUpdate(id, parent, keywordRequest, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {number} id A unique integer value identifying this keyword. - * @param {PatchedKeyword} [patchedKeyword] + * @param {PatchedKeywordRequest} [patchedKeywordRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public apiKeywordPartialUpdate(id: number, patchedKeyword?: PatchedKeyword, options?: any) { - return ApiApiFp(this.configuration).apiKeywordPartialUpdate(id, patchedKeyword, options).then((request) => request(this.axios, this.basePath)); + public apiKeywordPartialUpdate(id: number, patchedKeywordRequest?: PatchedKeywordRequest, options?: any) { + return ApiApiFp(this.configuration).apiKeywordPartialUpdate(id, patchedKeywordRequest, options).then((request) => request(this.axios, this.basePath)); } /** @@ -21323,24 +22715,24 @@ export class ApiApi extends BaseAPI { /** * * @param {number} id A unique integer value identifying this keyword. - * @param {Keyword} keyword + * @param {KeywordRequest} keywordRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public apiKeywordUpdate(id: number, keyword: Keyword, options?: any) { - return ApiApiFp(this.configuration).apiKeywordUpdate(id, keyword, options).then((request) => request(this.axios, this.basePath)); + public apiKeywordUpdate(id: number, keywordRequest: KeywordRequest, options?: any) { + return ApiApiFp(this.configuration).apiKeywordUpdate(id, keywordRequest, options).then((request) => request(this.axios, this.basePath)); } /** * - * @param {MealPlan} mealPlan + * @param {MealPlanRequest} mealPlanRequest * @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)); + public apiMealPlanCreate(mealPlanRequest: MealPlanRequest, options?: any) { + return ApiApiFp(this.configuration).apiMealPlanCreate(mealPlanRequest, options).then((request) => request(this.axios, this.basePath)); } /** @@ -21357,20 +22749,20 @@ export class ApiApi extends BaseAPI { /** * * @param {string} [fromDate] Filter meal plans from date (inclusive). - * @param {string} [mealType] Filter meal plans with MealType ID. For multiple repeat parameter. + * @param {Array} [mealType] Filter meal plans with MealType ID. For multiple repeat parameter. * @param {string} [toDate] Filter meal plans to date (inclusive). * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public apiMealPlanIcalRetrieve(fromDate?: string, mealType?: string, toDate?: string, options?: any) { + public apiMealPlanIcalRetrieve(fromDate?: string, mealType?: Array, toDate?: string, options?: any) { return ApiApiFp(this.configuration).apiMealPlanIcalRetrieve(fromDate, mealType, toDate, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {string} [fromDate] Filter meal plans from date (inclusive). - * @param {string} [mealType] Filter meal plans with MealType ID. For multiple repeat parameter. + * @param {Array} [mealType] Filter meal plans with MealType ID. For multiple repeat parameter. * @param {number} [page] A page number within the paginated result set. * @param {number} [pageSize] Number of results to return per page. * @param {string} [toDate] Filter meal plans to date (inclusive). @@ -21378,20 +22770,20 @@ export class ApiApi extends BaseAPI { * @throws {RequiredError} * @memberof ApiApi */ - public apiMealPlanList(fromDate?: string, mealType?: string, page?: number, pageSize?: number, toDate?: string, options?: any) { + public apiMealPlanList(fromDate?: string, mealType?: Array, page?: number, pageSize?: number, toDate?: string, options?: any) { return ApiApiFp(this.configuration).apiMealPlanList(fromDate, mealType, page, pageSize, toDate, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {number} id A unique integer value identifying this meal plan. - * @param {PatchedMealPlan} [patchedMealPlan] + * @param {PatchedMealPlanRequest} [patchedMealPlanRequest] * @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)); + public apiMealPlanPartialUpdate(id: number, patchedMealPlanRequest?: PatchedMealPlanRequest, options?: any) { + return ApiApiFp(this.configuration).apiMealPlanPartialUpdate(id, patchedMealPlanRequest, options).then((request) => request(this.axios, this.basePath)); } /** @@ -21408,24 +22800,24 @@ export class ApiApi extends BaseAPI { /** * * @param {number} id A unique integer value identifying this meal plan. - * @param {MealPlan} mealPlan + * @param {MealPlanRequest} mealPlanRequest * @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)); + public apiMealPlanUpdate(id: number, mealPlanRequest: MealPlanRequest, options?: any) { + return ApiApiFp(this.configuration).apiMealPlanUpdate(id, mealPlanRequest, 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 {MealTypeRequest} mealTypeRequest * @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)); + public apiMealTypeCreate(mealTypeRequest: MealTypeRequest, options?: any) { + return ApiApiFp(this.configuration).apiMealTypeCreate(mealTypeRequest, options).then((request) => request(this.axios, this.basePath)); } /** @@ -21454,13 +22846,13 @@ export class ApiApi extends BaseAPI { /** * 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 {PatchedMealTypeRequest} [patchedMealTypeRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public apiMealTypePartialUpdate(id: number, patchedMealType?: PatchedMealType, options?: any) { - return ApiApiFp(this.configuration).apiMealTypePartialUpdate(id, patchedMealType, options).then((request) => request(this.axios, this.basePath)); + public apiMealTypePartialUpdate(id: number, patchedMealTypeRequest?: PatchedMealTypeRequest, options?: any) { + return ApiApiFp(this.configuration).apiMealTypePartialUpdate(id, patchedMealTypeRequest, options).then((request) => request(this.axios, this.basePath)); } /** @@ -21477,36 +22869,24 @@ export class ApiApi extends BaseAPI { /** * 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 {MealTypeRequest} mealTypeRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public apiMealTypeUpdate(id: number, mealType: MealType, options?: any) { - return ApiApiFp(this.configuration).apiMealTypeUpdate(id, mealType, options).then((request) => request(this.axios, this.basePath)); + public apiMealTypeUpdate(id: number, mealTypeRequest: MealTypeRequest, options?: any) { + return ApiApiFp(this.configuration).apiMealTypeUpdate(id, mealTypeRequest, options).then((request) => request(this.axios, this.basePath)); } /** * - * @param {string} fromDate - * @param {string} toDate + * @param {RecipeBookRequest} recipeBookRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - 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 apiRecipeBookCreate(recipeBook: RecipeBook, options?: any) { - return ApiApiFp(this.configuration).apiRecipeBookCreate(recipeBook, options).then((request) => request(this.axios, this.basePath)); + public apiRecipeBookCreate(recipeBookRequest: RecipeBookRequest, options?: any) { + return ApiApiFp(this.configuration).apiRecipeBookCreate(recipeBookRequest, options).then((request) => request(this.axios, this.basePath)); } /** @@ -21522,13 +22902,13 @@ export class ApiApi extends BaseAPI { /** * - * @param {RecipeBookEntry} recipeBookEntry + * @param {RecipeBookEntryRequest} recipeBookEntryRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public apiRecipeBookEntryCreate(recipeBookEntry: RecipeBookEntry, options?: any) { - return ApiApiFp(this.configuration).apiRecipeBookEntryCreate(recipeBookEntry, options).then((request) => request(this.axios, this.basePath)); + public apiRecipeBookEntryCreate(recipeBookEntryRequest: RecipeBookEntryRequest, options?: any) { + return ApiApiFp(this.configuration).apiRecipeBookEntryCreate(recipeBookEntryRequest, options).then((request) => request(this.axios, this.basePath)); } /** @@ -21559,13 +22939,13 @@ export class ApiApi extends BaseAPI { /** * * @param {number} id A unique integer value identifying this recipe book entry. - * @param {PatchedRecipeBookEntry} [patchedRecipeBookEntry] + * @param {PatchedRecipeBookEntryRequest} [patchedRecipeBookEntryRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public apiRecipeBookEntryPartialUpdate(id: number, patchedRecipeBookEntry?: PatchedRecipeBookEntry, options?: any) { - return ApiApiFp(this.configuration).apiRecipeBookEntryPartialUpdate(id, patchedRecipeBookEntry, options).then((request) => request(this.axios, this.basePath)); + public apiRecipeBookEntryPartialUpdate(id: number, patchedRecipeBookEntryRequest?: PatchedRecipeBookEntryRequest, options?: any) { + return ApiApiFp(this.configuration).apiRecipeBookEntryPartialUpdate(id, patchedRecipeBookEntryRequest, options).then((request) => request(this.axios, this.basePath)); } /** @@ -21582,13 +22962,13 @@ export class ApiApi extends BaseAPI { /** * * @param {number} id A unique integer value identifying this recipe book entry. - * @param {RecipeBookEntry} recipeBookEntry + * @param {RecipeBookEntryRequest} recipeBookEntryRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public apiRecipeBookEntryUpdate(id: number, recipeBookEntry: RecipeBookEntry, options?: any) { - return ApiApiFp(this.configuration).apiRecipeBookEntryUpdate(id, recipeBookEntry, options).then((request) => request(this.axios, this.basePath)); + public apiRecipeBookEntryUpdate(id: number, recipeBookEntryRequest: RecipeBookEntryRequest, options?: any) { + return ApiApiFp(this.configuration).apiRecipeBookEntryUpdate(id, recipeBookEntryRequest, options).then((request) => request(this.axios, this.basePath)); } /** @@ -21612,13 +22992,13 @@ export class ApiApi extends BaseAPI { /** * * @param {number} id A unique integer value identifying this recipe book. - * @param {PatchedRecipeBook} [patchedRecipeBook] + * @param {PatchedRecipeBookRequest} [patchedRecipeBookRequest] * @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)); + public apiRecipeBookPartialUpdate(id: number, patchedRecipeBookRequest?: PatchedRecipeBookRequest, options?: any) { + return ApiApiFp(this.configuration).apiRecipeBookPartialUpdate(id, patchedRecipeBookRequest, options).then((request) => request(this.axios, this.basePath)); } /** @@ -21635,24 +23015,24 @@ export class ApiApi extends BaseAPI { /** * * @param {number} id A unique integer value identifying this recipe book. - * @param {RecipeBook} recipeBook + * @param {RecipeBookRequest} recipeBookRequest * @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)); + public apiRecipeBookUpdate(id: number, recipeBookRequest: RecipeBookRequest, options?: any) { + return ApiApiFp(this.configuration).apiRecipeBookUpdate(id, recipeBookRequest, options).then((request) => request(this.axios, this.basePath)); } /** * - * @param {Recipe} recipe + * @param {RecipeRequest} recipeRequest * @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)); + public apiRecipeCreate(recipeRequest: RecipeRequest, options?: any) { + return ApiApiFp(this.configuration).apiRecipeCreate(recipeRequest, options).then((request) => request(this.axios, this.basePath)); } /** @@ -21689,36 +23069,36 @@ export class ApiApi extends BaseAPI { /** * * @param {number} id A unique integer value identifying this recipe. - * @param {string} [image] + * @param {any} [image] * @param {string} [imageUrl] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public apiRecipeImageUpdate(id: number, image?: string, imageUrl?: string, options?: any) { + public apiRecipeImageUpdate(id: number, image?: any, imageUrl?: string, options?: any) { return ApiApiFp(this.configuration).apiRecipeImageUpdate(id, image, imageUrl, options).then((request) => request(this.axios, this.basePath)); } /** * - * @param {number} [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 {Array} [books] ID of book a recipe should be in. For multiple repeat parameter. + * @param {Array} [booksAnd] Book IDs, repeat for multiple. Return recipes with all of the books. + * @param {Array} [booksAndNot] Book IDs, repeat for multiple. Exclude recipes with all of the books. + * @param {Array} [booksOr] Book IDs, repeat for multiple. Return recipes with any of the books + * @param {Array} [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 {Array} [foods] ID of food a recipe should have. For multiple repeat parameter. + * @param {Array} [foodsAnd] Food IDs, repeat for multiple. Return recipes with all of the foods. + * @param {Array} [foodsAndNot] Food IDs, repeat for multiple. Exclude recipes with all of the foods. + * @param {Array} [foodsOr] Food IDs, repeat for multiple. Return recipes with any of the foods + * @param {Array} [foodsOrNot] Food IDs, repeat for multiple. Exclude recipes with any of the foods. * @param {boolean} [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 {Array} [keywords] ID of keyword a recipe should have. For multiple repeat parameter. Equivalent to keywords_or + * @param {Array} [keywordsAnd] Keyword IDs, repeat for multiple. Return recipes with all of the keywords. + * @param {Array} [keywordsAndNot] Keyword IDs, repeat for multiple. Exclude recipes with all of the keywords. + * @param {Array} [keywordsOr] Keyword IDs, repeat for multiple. Return recipes with any of the keywords + * @param {Array} [keywordsOrNot] Keyword IDs, repeat for multiple. Exclude recipes with any of the keywords. * @param {boolean} [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. @@ -21734,20 +23114,20 @@ export class ApiApi extends BaseAPI { * @throws {RequiredError} * @memberof ApiApi */ - public apiRecipeList(books?: number, booksAnd?: number, booksAndNot?: number, booksOr?: number, booksOrNot?: number, cookedon?: string, createdon?: string, foods?: number, foodsAnd?: number, foodsAndNot?: number, foodsOr?: number, foodsOrNot?: number, internal?: boolean, keywords?: number, keywordsAnd?: number, keywordsAndNot?: number, keywordsOr?: number, keywordsOrNot?: number, makenow?: boolean, _new?: string, page?: number, pageSize?: number, query?: string, random?: string, rating?: number, timescooked?: number, units?: number, updatedon?: string, viewedon?: string, options?: any) { + public apiRecipeList(books?: Array, booksAnd?: Array, booksAndNot?: Array, booksOr?: Array, booksOrNot?: Array, cookedon?: string, createdon?: string, foods?: Array, foodsAnd?: Array, foodsAndNot?: Array, foodsOr?: Array, foodsOrNot?: Array, internal?: boolean, keywords?: Array, keywordsAnd?: Array, keywordsAndNot?: Array, keywordsOr?: Array, keywordsOrNot?: Array, makenow?: boolean, _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 A unique integer value identifying this recipe. - * @param {PatchedRecipe} [patchedRecipe] + * @param {PatchedRecipeRequest} [patchedRecipeRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public apiRecipePartialUpdate(id: number, patchedRecipe?: PatchedRecipe, options?: any) { - return ApiApiFp(this.configuration).apiRecipePartialUpdate(id, patchedRecipe, options).then((request) => request(this.axios, this.basePath)); + public apiRecipePartialUpdate(id: number, patchedRecipeRequest?: PatchedRecipeRequest, options?: any) { + return ApiApiFp(this.configuration).apiRecipePartialUpdate(id, patchedRecipeRequest, options).then((request) => request(this.axios, this.basePath)); } /** @@ -21775,25 +23155,25 @@ export class ApiApi extends BaseAPI { /** * * @param {number} id A unique integer value identifying this recipe. - * @param {RecipeShoppingUpdate} [recipeShoppingUpdate] + * @param {RecipeShoppingUpdateRequest} [recipeShoppingUpdateRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public apiRecipeShoppingUpdate(id: number, recipeShoppingUpdate?: RecipeShoppingUpdate, options?: any) { - return ApiApiFp(this.configuration).apiRecipeShoppingUpdate(id, recipeShoppingUpdate, options).then((request) => request(this.axios, this.basePath)); + public apiRecipeShoppingUpdate(id: number, recipeShoppingUpdateRequest?: RecipeShoppingUpdateRequest, options?: any) { + return ApiApiFp(this.configuration).apiRecipeShoppingUpdate(id, recipeShoppingUpdateRequest, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {number} id A unique integer value identifying this recipe. - * @param {Recipe} recipe + * @param {RecipeRequest} recipeRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public apiRecipeUpdate(id: number, recipe: Recipe, options?: any) { - return ApiApiFp(this.configuration).apiRecipeUpdate(id, recipe, options).then((request) => request(this.axios, this.basePath)); + public apiRecipeUpdate(id: number, recipeRequest: RecipeRequest, options?: any) { + return ApiApiFp(this.configuration).apiRecipeUpdate(id, recipeRequest, options).then((request) => request(this.axios, this.basePath)); } /** @@ -21802,8 +23182,8 @@ export class ApiApi extends BaseAPI { * @throws {RequiredError} * @memberof ApiApi */ - public apiResetFoodInheritanceRetrieve(options?: any) { - return ApiApiFp(this.configuration).apiResetFoodInheritanceRetrieve(options).then((request) => request(this.axios, this.basePath)); + public apiResetFoodInheritanceCreate(options?: any) { + return ApiApiFp(this.configuration).apiResetFoodInheritanceCreate(options).then((request) => request(this.axios, this.basePath)); } /** @@ -21819,24 +23199,24 @@ export class ApiApi extends BaseAPI { /** * - * @param {ShoppingListEntryBulk} shoppingListEntryBulk + * @param {ShoppingListEntryBulkRequest} shoppingListEntryBulkRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public apiShoppingListEntryBulkCreate(shoppingListEntryBulk: ShoppingListEntryBulk, options?: any) { - return ApiApiFp(this.configuration).apiShoppingListEntryBulkCreate(shoppingListEntryBulk, options).then((request) => request(this.axios, this.basePath)); + public apiShoppingListEntryBulkCreate(shoppingListEntryBulkRequest: ShoppingListEntryBulkRequest, options?: any) { + return ApiApiFp(this.configuration).apiShoppingListEntryBulkCreate(shoppingListEntryBulkRequest, options).then((request) => request(this.axios, this.basePath)); } /** * - * @param {ShoppingListEntry} shoppingListEntry + * @param {ShoppingListEntryRequest} shoppingListEntryRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public apiShoppingListEntryCreate(shoppingListEntry: ShoppingListEntry, options?: any) { - return ApiApiFp(this.configuration).apiShoppingListEntryCreate(shoppingListEntry, options).then((request) => request(this.axios, this.basePath)); + public apiShoppingListEntryCreate(shoppingListEntryRequest: ShoppingListEntryRequest, options?: any) { + return ApiApiFp(this.configuration).apiShoppingListEntryCreate(shoppingListEntryRequest, options).then((request) => request(this.axios, this.basePath)); } /** @@ -21868,13 +23248,13 @@ export class ApiApi extends BaseAPI { /** * * @param {number} id A unique integer value identifying this shopping list entry. - * @param {PatchedShoppingListEntry} [patchedShoppingListEntry] + * @param {PatchedShoppingListEntryRequest} [patchedShoppingListEntryRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public apiShoppingListEntryPartialUpdate(id: number, patchedShoppingListEntry?: PatchedShoppingListEntry, options?: any) { - return ApiApiFp(this.configuration).apiShoppingListEntryPartialUpdate(id, patchedShoppingListEntry, options).then((request) => request(this.axios, this.basePath)); + public apiShoppingListEntryPartialUpdate(id: number, patchedShoppingListEntryRequest?: PatchedShoppingListEntryRequest, options?: any) { + return ApiApiFp(this.configuration).apiShoppingListEntryPartialUpdate(id, patchedShoppingListEntryRequest, options).then((request) => request(this.axios, this.basePath)); } /** @@ -21891,24 +23271,24 @@ export class ApiApi extends BaseAPI { /** * * @param {number} id A unique integer value identifying this shopping list entry. - * @param {ShoppingListEntry} shoppingListEntry + * @param {ShoppingListEntryRequest} shoppingListEntryRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public apiShoppingListEntryUpdate(id: number, shoppingListEntry: ShoppingListEntry, options?: any) { - return ApiApiFp(this.configuration).apiShoppingListEntryUpdate(id, shoppingListEntry, options).then((request) => request(this.axios, this.basePath)); + public apiShoppingListEntryUpdate(id: number, shoppingListEntryRequest: ShoppingListEntryRequest, options?: any) { + return ApiApiFp(this.configuration).apiShoppingListEntryUpdate(id, shoppingListEntryRequest, options).then((request) => request(this.axios, this.basePath)); } /** * - * @param {ShoppingListRecipe} shoppingListRecipe + * @param {ShoppingListRecipeRequest} shoppingListRecipeRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public apiShoppingListRecipeCreate(shoppingListRecipe: ShoppingListRecipe, options?: any) { - return ApiApiFp(this.configuration).apiShoppingListRecipeCreate(shoppingListRecipe, options).then((request) => request(this.axios, this.basePath)); + public apiShoppingListRecipeCreate(shoppingListRecipeRequest: ShoppingListRecipeRequest, options?: any) { + return ApiApiFp(this.configuration).apiShoppingListRecipeCreate(shoppingListRecipeRequest, options).then((request) => request(this.axios, this.basePath)); } /** @@ -21937,13 +23317,13 @@ export class ApiApi extends BaseAPI { /** * * @param {number} id A unique integer value identifying this shopping list recipe. - * @param {PatchedShoppingListRecipe} [patchedShoppingListRecipe] + * @param {PatchedShoppingListRecipeRequest} [patchedShoppingListRecipeRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public apiShoppingListRecipePartialUpdate(id: number, patchedShoppingListRecipe?: PatchedShoppingListRecipe, options?: any) { - return ApiApiFp(this.configuration).apiShoppingListRecipePartialUpdate(id, patchedShoppingListRecipe, options).then((request) => request(this.axios, this.basePath)); + public apiShoppingListRecipePartialUpdate(id: number, patchedShoppingListRecipeRequest?: PatchedShoppingListRecipeRequest, options?: any) { + return ApiApiFp(this.configuration).apiShoppingListRecipePartialUpdate(id, patchedShoppingListRecipeRequest, options).then((request) => request(this.axios, this.basePath)); } /** @@ -21960,25 +23340,35 @@ export class ApiApi extends BaseAPI { /** * * @param {number} id A unique integer value identifying this shopping list recipe. - * @param {ShoppingListRecipe} shoppingListRecipe + * @param {ShoppingListRecipeRequest} shoppingListRecipeRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public apiShoppingListRecipeUpdate(id: number, shoppingListRecipe: ShoppingListRecipe, options?: any) { - return ApiApiFp(this.configuration).apiShoppingListRecipeUpdate(id, shoppingListRecipe, options).then((request) => request(this.axios, this.basePath)); + public apiShoppingListRecipeUpdate(id: number, shoppingListRecipeRequest: ShoppingListRecipeRequest, options?: any) { + return ApiApiFp(this.configuration).apiShoppingListRecipeUpdate(id, shoppingListRecipeRequest, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiSpaceList(options?: any) { + return ApiApiFp(this.configuration).apiSpaceList(options).then((request) => request(this.axios, this.basePath)); } /** * * @param {number} id A unique integer value identifying this space. - * @param {PatchedSpace} [patchedSpace] + * @param {PatchedSpaceRequest} [patchedSpaceRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public apiSpacePartialUpdate(id: number, patchedSpace?: PatchedSpace, options?: any) { - return ApiApiFp(this.configuration).apiSpacePartialUpdate(id, patchedSpace, options).then((request) => request(this.axios, this.basePath)); + public apiSpacePartialUpdate(id: number, patchedSpaceRequest?: PatchedSpaceRequest, options?: any) { + return ApiApiFp(this.configuration).apiSpacePartialUpdate(id, patchedSpaceRequest, options).then((request) => request(this.axios, this.basePath)); } /** @@ -21994,13 +23384,13 @@ export class ApiApi extends BaseAPI { /** * - * @param {Step} step + * @param {StepRequest} stepRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public apiStepCreate(step: Step, options?: any) { - return ApiApiFp(this.configuration).apiStepCreate(step, options).then((request) => request(this.axios, this.basePath)); + public apiStepCreate(stepRequest: StepRequest, options?: any) { + return ApiApiFp(this.configuration).apiStepCreate(stepRequest, options).then((request) => request(this.axios, this.basePath)); } /** @@ -22019,25 +23409,25 @@ export class ApiApi extends BaseAPI { * @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 {Array} [recipe] ID of recipe a step is part of. For multiple repeat parameter. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public apiStepList(page?: number, pageSize?: number, query?: string, recipe?: number, options?: any) { + public apiStepList(page?: number, pageSize?: number, query?: string, recipe?: Array, options?: any) { return ApiApiFp(this.configuration).apiStepList(page, pageSize, query, recipe, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {number} id A unique integer value identifying this step. - * @param {PatchedStep} [patchedStep] + * @param {PatchedStepRequest} [patchedStepRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public apiStepPartialUpdate(id: number, patchedStep?: PatchedStep, options?: any) { - return ApiApiFp(this.configuration).apiStepPartialUpdate(id, patchedStep, options).then((request) => request(this.axios, this.basePath)); + public apiStepPartialUpdate(id: number, patchedStepRequest?: PatchedStepRequest, options?: any) { + return ApiApiFp(this.configuration).apiStepPartialUpdate(id, patchedStepRequest, options).then((request) => request(this.axios, this.basePath)); } /** @@ -22054,24 +23444,24 @@ export class ApiApi extends BaseAPI { /** * * @param {number} id A unique integer value identifying this step. - * @param {Step} step + * @param {StepRequest} stepRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public apiStepUpdate(id: number, step: Step, options?: any) { - return ApiApiFp(this.configuration).apiStepUpdate(id, step, options).then((request) => request(this.axios, this.basePath)); + public apiStepUpdate(id: number, stepRequest: StepRequest, options?: any) { + return ApiApiFp(this.configuration).apiStepUpdate(id, stepRequest, options).then((request) => request(this.axios, this.basePath)); } /** * - * @param {Storage} storage + * @param {StorageRequest} storageRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public apiStorageCreate(storage: Storage, options?: any) { - return ApiApiFp(this.configuration).apiStorageCreate(storage, options).then((request) => request(this.axios, this.basePath)); + public apiStorageCreate(storageRequest: StorageRequest, options?: any) { + return ApiApiFp(this.configuration).apiStorageCreate(storageRequest, options).then((request) => request(this.axios, this.basePath)); } /** @@ -22098,13 +23488,13 @@ export class ApiApi extends BaseAPI { /** * * @param {number} id A unique integer value identifying this storage. - * @param {PatchedStorage} [patchedStorage] + * @param {PatchedStorageRequest} [patchedStorageRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public apiStoragePartialUpdate(id: number, patchedStorage?: PatchedStorage, options?: any) { - return ApiApiFp(this.configuration).apiStoragePartialUpdate(id, patchedStorage, options).then((request) => request(this.axios, this.basePath)); + public apiStoragePartialUpdate(id: number, patchedStorageRequest?: PatchedStorageRequest, options?: any) { + return ApiApiFp(this.configuration).apiStoragePartialUpdate(id, patchedStorageRequest, options).then((request) => request(this.axios, this.basePath)); } /** @@ -22121,24 +23511,24 @@ export class ApiApi extends BaseAPI { /** * * @param {number} id A unique integer value identifying this storage. - * @param {Storage} storage + * @param {StorageRequest} storageRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public apiStorageUpdate(id: number, storage: Storage, options?: any) { - return ApiApiFp(this.configuration).apiStorageUpdate(id, storage, options).then((request) => request(this.axios, this.basePath)); + public apiStorageUpdate(id: number, storageRequest: StorageRequest, options?: any) { + return ApiApiFp(this.configuration).apiStorageUpdate(id, storageRequest, options).then((request) => request(this.axios, this.basePath)); } /** * - * @param {SupermarketCategory} supermarketCategory + * @param {SupermarketCategoryRequest} supermarketCategoryRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public apiSupermarketCategoryCreate(supermarketCategory: SupermarketCategory, options?: any) { - return ApiApiFp(this.configuration).apiSupermarketCategoryCreate(supermarketCategory, options).then((request) => request(this.axios, this.basePath)); + public apiSupermarketCategoryCreate(supermarketCategoryRequest: SupermarketCategoryRequest, options?: any) { + return ApiApiFp(this.configuration).apiSupermarketCategoryCreate(supermarketCategoryRequest, options).then((request) => request(this.axios, this.basePath)); } /** @@ -22172,36 +23562,36 @@ export class ApiApi extends BaseAPI { * * @param {number} id A unique integer value identifying this supermarket category. * @param {number} target The ID of the {obj} you want to merge with. - * @param {SupermarketCategory} supermarketCategory + * @param {SupermarketCategoryRequest} supermarketCategoryRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public apiSupermarketCategoryMergeUpdate(id: number, target: number, supermarketCategory: SupermarketCategory, options?: any) { - return ApiApiFp(this.configuration).apiSupermarketCategoryMergeUpdate(id, target, supermarketCategory, options).then((request) => request(this.axios, this.basePath)); + public apiSupermarketCategoryMergeUpdate(id: number, target: number, supermarketCategoryRequest: SupermarketCategoryRequest, options?: any) { + return ApiApiFp(this.configuration).apiSupermarketCategoryMergeUpdate(id, target, supermarketCategoryRequest, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {number} id A unique integer value identifying this supermarket category. - * @param {PatchedSupermarketCategory} [patchedSupermarketCategory] + * @param {PatchedSupermarketCategoryRequest} [patchedSupermarketCategoryRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public apiSupermarketCategoryPartialUpdate(id: number, patchedSupermarketCategory?: PatchedSupermarketCategory, options?: any) { - return ApiApiFp(this.configuration).apiSupermarketCategoryPartialUpdate(id, patchedSupermarketCategory, options).then((request) => request(this.axios, this.basePath)); + public apiSupermarketCategoryPartialUpdate(id: number, patchedSupermarketCategoryRequest?: PatchedSupermarketCategoryRequest, options?: any) { + return ApiApiFp(this.configuration).apiSupermarketCategoryPartialUpdate(id, patchedSupermarketCategoryRequest, options).then((request) => request(this.axios, this.basePath)); } /** * - * @param {SupermarketCategoryRelation} supermarketCategoryRelation + * @param {SupermarketCategoryRelationRequest} supermarketCategoryRelationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public apiSupermarketCategoryRelationCreate(supermarketCategoryRelation: SupermarketCategoryRelation, options?: any) { - return ApiApiFp(this.configuration).apiSupermarketCategoryRelationCreate(supermarketCategoryRelation, options).then((request) => request(this.axios, this.basePath)); + public apiSupermarketCategoryRelationCreate(supermarketCategoryRelationRequest: SupermarketCategoryRelationRequest, options?: any) { + return ApiApiFp(this.configuration).apiSupermarketCategoryRelationCreate(supermarketCategoryRelationRequest, options).then((request) => request(this.axios, this.basePath)); } /** @@ -22234,13 +23624,13 @@ export class ApiApi extends BaseAPI { /** * * @param {number} id A unique integer value identifying this supermarket category relation. - * @param {PatchedSupermarketCategoryRelation} [patchedSupermarketCategoryRelation] + * @param {PatchedSupermarketCategoryRelationRequest} [patchedSupermarketCategoryRelationRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public apiSupermarketCategoryRelationPartialUpdate(id: number, patchedSupermarketCategoryRelation?: PatchedSupermarketCategoryRelation, options?: any) { - return ApiApiFp(this.configuration).apiSupermarketCategoryRelationPartialUpdate(id, patchedSupermarketCategoryRelation, options).then((request) => request(this.axios, this.basePath)); + public apiSupermarketCategoryRelationPartialUpdate(id: number, patchedSupermarketCategoryRelationRequest?: PatchedSupermarketCategoryRelationRequest, options?: any) { + return ApiApiFp(this.configuration).apiSupermarketCategoryRelationPartialUpdate(id, patchedSupermarketCategoryRelationRequest, options).then((request) => request(this.axios, this.basePath)); } /** @@ -22257,13 +23647,13 @@ export class ApiApi extends BaseAPI { /** * * @param {number} id A unique integer value identifying this supermarket category relation. - * @param {SupermarketCategoryRelation} supermarketCategoryRelation + * @param {SupermarketCategoryRelationRequest} supermarketCategoryRelationRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public apiSupermarketCategoryRelationUpdate(id: number, supermarketCategoryRelation: SupermarketCategoryRelation, options?: any) { - return ApiApiFp(this.configuration).apiSupermarketCategoryRelationUpdate(id, supermarketCategoryRelation, options).then((request) => request(this.axios, this.basePath)); + public apiSupermarketCategoryRelationUpdate(id: number, supermarketCategoryRelationRequest: SupermarketCategoryRelationRequest, options?: any) { + return ApiApiFp(this.configuration).apiSupermarketCategoryRelationUpdate(id, supermarketCategoryRelationRequest, options).then((request) => request(this.axios, this.basePath)); } /** @@ -22280,24 +23670,24 @@ export class ApiApi extends BaseAPI { /** * * @param {number} id A unique integer value identifying this supermarket category. - * @param {SupermarketCategory} supermarketCategory + * @param {SupermarketCategoryRequest} supermarketCategoryRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public apiSupermarketCategoryUpdate(id: number, supermarketCategory: SupermarketCategory, options?: any) { - return ApiApiFp(this.configuration).apiSupermarketCategoryUpdate(id, supermarketCategory, options).then((request) => request(this.axios, this.basePath)); + public apiSupermarketCategoryUpdate(id: number, supermarketCategoryRequest: SupermarketCategoryRequest, options?: any) { + return ApiApiFp(this.configuration).apiSupermarketCategoryUpdate(id, supermarketCategoryRequest, options).then((request) => request(this.axios, this.basePath)); } /** * - * @param {Supermarket} supermarket + * @param {SupermarketRequest} supermarketRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public apiSupermarketCreate(supermarket: Supermarket, options?: any) { - return ApiApiFp(this.configuration).apiSupermarketCreate(supermarket, options).then((request) => request(this.axios, this.basePath)); + public apiSupermarketCreate(supermarketRequest: SupermarketRequest, options?: any) { + return ApiApiFp(this.configuration).apiSupermarketCreate(supermarketRequest, options).then((request) => request(this.axios, this.basePath)); } /** @@ -22330,13 +23720,13 @@ export class ApiApi extends BaseAPI { /** * * @param {number} id A unique integer value identifying this supermarket. - * @param {PatchedSupermarket} [patchedSupermarket] + * @param {PatchedSupermarketRequest} [patchedSupermarketRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public apiSupermarketPartialUpdate(id: number, patchedSupermarket?: PatchedSupermarket, options?: any) { - return ApiApiFp(this.configuration).apiSupermarketPartialUpdate(id, patchedSupermarket, options).then((request) => request(this.axios, this.basePath)); + public apiSupermarketPartialUpdate(id: number, patchedSupermarketRequest?: PatchedSupermarketRequest, options?: any) { + return ApiApiFp(this.configuration).apiSupermarketPartialUpdate(id, patchedSupermarketRequest, options).then((request) => request(this.axios, this.basePath)); } /** @@ -22353,13 +23743,13 @@ export class ApiApi extends BaseAPI { /** * * @param {number} id A unique integer value identifying this supermarket. - * @param {Supermarket} supermarket + * @param {SupermarketRequest} supermarketRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public apiSupermarketUpdate(id: number, supermarket: Supermarket, options?: any) { - return ApiApiFp(this.configuration).apiSupermarketUpdate(id, supermarket, options).then((request) => request(this.axios, this.basePath)); + public apiSupermarketUpdate(id: number, supermarketRequest: SupermarketRequest, options?: any) { + return ApiApiFp(this.configuration).apiSupermarketUpdate(id, supermarketRequest, options).then((request) => request(this.axios, this.basePath)); } /** @@ -22375,13 +23765,13 @@ export class ApiApi extends BaseAPI { /** * - * @param {Sync} sync + * @param {SyncRequest} syncRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public apiSyncCreate(sync: Sync, options?: any) { - return ApiApiFp(this.configuration).apiSyncCreate(sync, options).then((request) => request(this.axios, this.basePath)); + public apiSyncCreate(syncRequest: SyncRequest, options?: any) { + return ApiApiFp(this.configuration).apiSyncCreate(syncRequest, options).then((request) => request(this.axios, this.basePath)); } /** @@ -22433,13 +23823,13 @@ export class ApiApi extends BaseAPI { /** * * @param {number} id A unique integer value identifying this sync. - * @param {PatchedSync} [patchedSync] + * @param {PatchedSyncRequest} [patchedSyncRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public apiSyncPartialUpdate(id: number, patchedSync?: PatchedSync, options?: any) { - return ApiApiFp(this.configuration).apiSyncPartialUpdate(id, patchedSync, options).then((request) => request(this.axios, this.basePath)); + public apiSyncPartialUpdate(id: number, patchedSyncRequest?: PatchedSyncRequest, options?: any) { + return ApiApiFp(this.configuration).apiSyncPartialUpdate(id, patchedSyncRequest, options).then((request) => request(this.axios, this.basePath)); } /** @@ -22456,24 +23846,24 @@ export class ApiApi extends BaseAPI { /** * * @param {number} id A unique integer value identifying this sync. - * @param {Sync} sync + * @param {SyncRequest} syncRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public apiSyncUpdate(id: number, sync: Sync, options?: any) { - return ApiApiFp(this.configuration).apiSyncUpdate(id, sync, options).then((request) => request(this.axios, this.basePath)); + public apiSyncUpdate(id: number, syncRequest: SyncRequest, options?: any) { + return ApiApiFp(this.configuration).apiSyncUpdate(id, syncRequest, options).then((request) => request(this.axios, this.basePath)); } /** * - * @param {UnitConversion} unitConversion + * @param {UnitConversionRequest} unitConversionRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public apiUnitConversionCreate(unitConversion: UnitConversion, options?: any) { - return ApiApiFp(this.configuration).apiUnitConversionCreate(unitConversion, options).then((request) => request(this.axios, this.basePath)); + public apiUnitConversionCreate(unitConversionRequest: UnitConversionRequest, options?: any) { + return ApiApiFp(this.configuration).apiUnitConversionCreate(unitConversionRequest, options).then((request) => request(this.axios, this.basePath)); } /** @@ -22503,13 +23893,13 @@ export class ApiApi extends BaseAPI { /** * * @param {number} id A unique integer value identifying this unit conversion. - * @param {PatchedUnitConversion} [patchedUnitConversion] + * @param {PatchedUnitConversionRequest} [patchedUnitConversionRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public apiUnitConversionPartialUpdate(id: number, patchedUnitConversion?: PatchedUnitConversion, options?: any) { - return ApiApiFp(this.configuration).apiUnitConversionPartialUpdate(id, patchedUnitConversion, options).then((request) => request(this.axios, this.basePath)); + public apiUnitConversionPartialUpdate(id: number, patchedUnitConversionRequest?: PatchedUnitConversionRequest, options?: any) { + return ApiApiFp(this.configuration).apiUnitConversionPartialUpdate(id, patchedUnitConversionRequest, options).then((request) => request(this.axios, this.basePath)); } /** @@ -22526,24 +23916,24 @@ export class ApiApi extends BaseAPI { /** * * @param {number} id A unique integer value identifying this unit conversion. - * @param {UnitConversion} unitConversion + * @param {UnitConversionRequest} unitConversionRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public apiUnitConversionUpdate(id: number, unitConversion: UnitConversion, options?: any) { - return ApiApiFp(this.configuration).apiUnitConversionUpdate(id, unitConversion, options).then((request) => request(this.axios, this.basePath)); + public apiUnitConversionUpdate(id: number, unitConversionRequest: UnitConversionRequest, options?: any) { + return ApiApiFp(this.configuration).apiUnitConversionUpdate(id, unitConversionRequest, options).then((request) => request(this.axios, this.basePath)); } /** * - * @param {Unit} unit + * @param {UnitRequest} unitRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public apiUnitCreate(unit: Unit, options?: any) { - return ApiApiFp(this.configuration).apiUnitCreate(unit, options).then((request) => request(this.axios, this.basePath)); + public apiUnitCreate(unitRequest: UnitRequest, options?: any) { + return ApiApiFp(this.configuration).apiUnitCreate(unitRequest, options).then((request) => request(this.axios, this.basePath)); } /** @@ -22577,25 +23967,25 @@ export class ApiApi extends BaseAPI { * * @param {number} id A unique integer value identifying this unit. * @param {number} target The ID of the {obj} you want to merge with. - * @param {Unit} unit + * @param {UnitRequest} unitRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public apiUnitMergeUpdate(id: number, target: number, unit: Unit, options?: any) { - return ApiApiFp(this.configuration).apiUnitMergeUpdate(id, target, unit, options).then((request) => request(this.axios, this.basePath)); + public apiUnitMergeUpdate(id: number, target: number, unitRequest: UnitRequest, options?: any) { + return ApiApiFp(this.configuration).apiUnitMergeUpdate(id, target, unitRequest, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {number} id A unique integer value identifying this unit. - * @param {PatchedUnit} [patchedUnit] + * @param {PatchedUnitRequest} [patchedUnitRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public apiUnitPartialUpdate(id: number, patchedUnit?: PatchedUnit, options?: any) { - return ApiApiFp(this.configuration).apiUnitPartialUpdate(id, patchedUnit, options).then((request) => request(this.axios, this.basePath)); + public apiUnitPartialUpdate(id: number, patchedUnitRequest?: PatchedUnitRequest, options?: any) { + return ApiApiFp(this.configuration).apiUnitPartialUpdate(id, patchedUnitRequest, options).then((request) => request(this.axios, this.basePath)); } /** @@ -22612,29 +24002,26 @@ export class ApiApi extends BaseAPI { /** * * @param {number} id A unique integer value identifying this unit. - * @param {Unit} unit + * @param {UnitRequest} unitRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public apiUnitUpdate(id: number, unit: Unit, options?: any) { - return ApiApiFp(this.configuration).apiUnitUpdate(id, unit, options).then((request) => request(this.axios, this.basePath)); + public apiUnitUpdate(id: number, unitRequest: UnitRequest, options?: any) { + return ApiApiFp(this.configuration).apiUnitUpdate(id, unitRequest, options).then((request) => request(this.axios, this.basePath)); } /** * - * @param {number} id * @param {string} name - * @param {string} file - * @param {string} fileDownload - * @param {string} preview - * @param {number} fileSizeKb + * @param {any} file + * @param {number} [id] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - 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)); + public apiUserFileCreate(name: string, file: any, id?: number, options?: any) { + return ApiApiFp(this.configuration).apiUserFileCreate(name, file, id, options).then((request) => request(this.axios, this.basePath)); } /** @@ -22667,18 +24054,15 @@ export class ApiApi extends BaseAPI { /** * * @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 {any} [file] + * @param {number} [id2] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - 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)); + public apiUserFilePartialUpdate(id: number, name?: string, file?: any, id2?: number, options?: any) { + return ApiApiFp(this.configuration).apiUserFilePartialUpdate(id, name, file, id2, options).then((request) => request(this.axios, this.basePath)); } /** @@ -22695,53 +24079,60 @@ export class ApiApi extends BaseAPI { /** * * @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 {any} file + * @param {number} [id2] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - 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)); + public apiUserFileUpdate(id: number, name: string, file: any, id2?: number, options?: any) { + return ApiApiFp(this.configuration).apiUserFileUpdate(id, name, file, id2, options).then((request) => request(this.axios, this.basePath)); } /** * - * @param {string} [filterList] User IDs, repeat for multiple + * @param {Array} [filterList] User IDs, repeat for multiple * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public apiUserList(filterList?: string, options?: any) { + public apiUserList(filterList?: Array, options?: any) { return ApiApiFp(this.configuration).apiUserList(filterList, options).then((request) => request(this.axios, this.basePath)); } /** * * @param {number} id A unique integer value identifying this user. - * @param {PatchedUser} [patchedUser] + * @param {PatchedUserRequest} [patchedUserRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public apiUserPartialUpdate(id: number, patchedUser?: PatchedUser, options?: any) { - return ApiApiFp(this.configuration).apiUserPartialUpdate(id, patchedUser, options).then((request) => request(this.axios, this.basePath)); + public apiUserPartialUpdate(id: number, patchedUserRequest?: PatchedUserRequest, options?: any) { + return ApiApiFp(this.configuration).apiUserPartialUpdate(id, patchedUserRequest, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof ApiApi + */ + public apiUserPreferenceList(options?: any) { + return ApiApiFp(this.configuration).apiUserPreferenceList(options).then((request) => request(this.axios, this.basePath)); } /** * * @param {number} user A unique value identifying this user preference. - * @param {PatchedUserPreference} [patchedUserPreference] + * @param {PatchedUserPreferenceRequest} [patchedUserPreferenceRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public apiUserPreferencePartialUpdate(user: number, patchedUserPreference?: PatchedUserPreference, options?: any) { - return ApiApiFp(this.configuration).apiUserPreferencePartialUpdate(user, patchedUserPreference, options).then((request) => request(this.axios, this.basePath)); + public apiUserPreferencePartialUpdate(user: number, patchedUserPreferenceRequest?: PatchedUserPreferenceRequest, options?: any) { + return ApiApiFp(this.configuration).apiUserPreferencePartialUpdate(user, patchedUserPreferenceRequest, options).then((request) => request(this.axios, this.basePath)); } /** @@ -22793,13 +24184,13 @@ export class ApiApi extends BaseAPI { /** * * @param {number} id A unique integer value identifying this user space. - * @param {PatchedUserSpace} [patchedUserSpace] + * @param {PatchedUserSpaceRequest} [patchedUserSpaceRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public apiUserSpacePartialUpdate(id: number, patchedUserSpace?: PatchedUserSpace, options?: any) { - return ApiApiFp(this.configuration).apiUserSpacePartialUpdate(id, patchedUserSpace, options).then((request) => request(this.axios, this.basePath)); + public apiUserSpacePartialUpdate(id: number, patchedUserSpaceRequest?: PatchedUserSpaceRequest, options?: any) { + return ApiApiFp(this.configuration).apiUserSpacePartialUpdate(id, patchedUserSpaceRequest, options).then((request) => request(this.axios, this.basePath)); } /** @@ -22815,13 +24206,13 @@ export class ApiApi extends BaseAPI { /** * - * @param {ViewLog} viewLog + * @param {ViewLogRequest} viewLogRequest * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public apiViewLogCreate(viewLog: ViewLog, options?: any) { - return ApiApiFp(this.configuration).apiViewLogCreate(viewLog, options).then((request) => request(this.axios, this.basePath)); + public apiViewLogCreate(viewLogRequest: ViewLogRequest, options?: any) { + return ApiApiFp(this.configuration).apiViewLogCreate(viewLogRequest, options).then((request) => request(this.axios, this.basePath)); } /** @@ -22850,13 +24241,13 @@ export class ApiApi extends BaseAPI { /** * * @param {number} id A unique integer value identifying this view log. - * @param {PatchedViewLog} [patchedViewLog] + * @param {PatchedViewLogRequest} [patchedViewLogRequest] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public apiViewLogPartialUpdate(id: number, patchedViewLog?: PatchedViewLog, options?: any) { - return ApiApiFp(this.configuration).apiViewLogPartialUpdate(id, patchedViewLog, options).then((request) => request(this.axios, this.basePath)); + public apiViewLogPartialUpdate(id: number, patchedViewLogRequest?: PatchedViewLogRequest, options?: any) { + return ApiApiFp(this.configuration).apiViewLogPartialUpdate(id, patchedViewLogRequest, options).then((request) => request(this.axios, this.basePath)); } /** @@ -22873,13 +24264,13 @@ export class ApiApi extends BaseAPI { /** * * @param {number} id A unique integer value identifying this view log. - * @param {ViewLog} viewLog + * @param {ViewLogRequest} viewLogRequest * @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)); + public apiViewLogUpdate(id: number, viewLogRequest: ViewLogRequest, options?: any) { + return ApiApiFp(this.configuration).apiViewLogUpdate(id, viewLogRequest, options).then((request) => request(this.axios, this.basePath)); } } @@ -23050,17 +24441,14 @@ export const ApiTokenAuthApiAxiosParamCreator = function (configuration?: Config * * @param {string} username * @param {string} password - * @param {string} token * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiTokenAuthCreate: async (username: string, password: string, token: string, options: any = {}): Promise => { + apiTokenAuthCreate: async (username: string, password: string, options: any = {}): Promise => { // verify required parameter 'username' is not null or undefined assertParamExists('apiTokenAuthCreate', 'username', username) // verify required parameter 'password' is not null or undefined 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); @@ -23086,10 +24474,6 @@ export const ApiTokenAuthApiAxiosParamCreator = function (configuration?: Config localVarFormParams.append('password', password as any); } - if (token !== undefined) { - localVarFormParams.append('token', token as any); - } - localVarHeaderParameter['Content-Type'] = 'multipart/form-data'; @@ -23117,12 +24501,11 @@ export const ApiTokenAuthApiFp = function(configuration?: Configuration) { * * @param {string} username * @param {string} password - * @param {string} token * @param {*} [options] Override http request option. * @throws {RequiredError} */ - 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); + async apiTokenAuthCreate(username: string, password: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.apiTokenAuthCreate(username, password, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, } @@ -23139,12 +24522,11 @@ export const ApiTokenAuthApiFactory = function (configuration?: Configuration, b * * @param {string} username * @param {string} password - * @param {string} token * @param {*} [options] Override http request option. * @throws {RequiredError} */ - apiTokenAuthCreate(username: string, password: string, token: string, options?: any): AxiosPromise { - return localVarFp.apiTokenAuthCreate(username, password, token, options).then((request) => request(axios, basePath)); + apiTokenAuthCreate(username: string, password: string, options?: any): AxiosPromise { + return localVarFp.apiTokenAuthCreate(username, password, options).then((request) => request(axios, basePath)); }, }; }; @@ -23160,13 +24542,12 @@ export class ApiTokenAuthApi extends BaseAPI { * * @param {string} username * @param {string} password - * @param {string} token * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiTokenAuthApi */ - public 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)); + public apiTokenAuthCreate(username: string, password: string, options?: any) { + return ApiTokenAuthApiFp(this.configuration).apiTokenAuthCreate(username, password, options).then((request) => request(this.axios, this.basePath)); } } diff --git a/vue3/src/openapi/.openapi-generator/FILES b/vue3/src/openapi/.openapi-generator/FILES index 89f999036..7364ac61c 100644 --- a/vue3/src/openapi/.openapi-generator/FILES +++ b/vue3/src/openapi/.openapi-generator/FILES @@ -7,10 +7,10 @@ models/AccessToken.ts models/AccessTokenRequest.ts models/AuthToken.ts models/AuthTokenRequest.ts +models/AutoMealPlan.ts +models/AutoMealPlanRequest.ts models/Automation.ts models/AutomationRequest.ts -models/AutomationTypeEnum.ts -models/BaseUnitEnum.ts models/BookmarkletImport.ts models/BookmarkletImportList.ts models/BookmarkletImportRequest.ts @@ -38,6 +38,7 @@ models/ImportLog.ts models/ImportLogRequest.ts models/Ingredient.ts models/IngredientRequest.ts +models/IngredientStringRequest.ts models/InviteLink.ts models/InviteLinkRequest.ts models/Keyword.ts @@ -50,40 +51,37 @@ models/MealTypeRequest.ts models/MethodEnum.ts models/NutritionInformation.ts models/NutritionInformationRequest.ts -models/OpenDataCategory.ts -models/OpenDataCategoryRequest.ts -models/OpenDataConversion.ts -models/OpenDataConversionRequest.ts -models/OpenDataFood.ts -models/OpenDataFoodProperty.ts -models/OpenDataFoodPropertyRequest.ts -models/OpenDataFoodRequest.ts -models/OpenDataProperty.ts -models/OpenDataPropertyRequest.ts -models/OpenDataStore.ts -models/OpenDataStoreCategory.ts -models/OpenDataStoreCategoryRequest.ts -models/OpenDataStoreRequest.ts -models/OpenDataUnit.ts -models/OpenDataUnitRequest.ts -models/OpenDataUnitTypeEnum.ts -models/OpenDataVersion.ts -models/OpenDataVersionRequest.ts models/PaginatedAutomationList.ts +models/PaginatedBookmarkletImportListList.ts models/PaginatedCookLogList.ts models/PaginatedCustomFilterList.ts models/PaginatedExportLogList.ts models/PaginatedFoodList.ts models/PaginatedImportLogList.ts models/PaginatedIngredientList.ts +models/PaginatedInviteLinkList.ts models/PaginatedKeywordList.ts +models/PaginatedMealPlanList.ts +models/PaginatedMealTypeList.ts +models/PaginatedPropertyList.ts +models/PaginatedPropertyTypeList.ts +models/PaginatedRecipeBookEntryList.ts +models/PaginatedRecipeBookList.ts models/PaginatedRecipeOverviewList.ts +models/PaginatedShoppingListEntryList.ts +models/PaginatedShoppingListRecipeList.ts models/PaginatedStepList.ts +models/PaginatedSupermarketCategoryList.ts models/PaginatedSupermarketCategoryRelationList.ts +models/PaginatedSupermarketList.ts +models/PaginatedSyncList.ts models/PaginatedSyncLogList.ts +models/PaginatedUnitConversionList.ts models/PaginatedUnitList.ts +models/PaginatedUserFileList.ts models/PaginatedUserSpaceList.ts models/PaginatedViewLogList.ts +models/ParsedIngredient.ts models/PatchedAccessTokenRequest.ts models/PatchedAutomationRequest.ts models/PatchedBookmarkletImportRequest.ts @@ -98,13 +96,6 @@ models/PatchedInviteLinkRequest.ts models/PatchedKeywordRequest.ts models/PatchedMealPlanRequest.ts models/PatchedMealTypeRequest.ts -models/PatchedOpenDataCategoryRequest.ts -models/PatchedOpenDataConversionRequest.ts -models/PatchedOpenDataFoodRequest.ts -models/PatchedOpenDataPropertyRequest.ts -models/PatchedOpenDataStoreRequest.ts -models/PatchedOpenDataUnitRequest.ts -models/PatchedOpenDataVersionRequest.ts models/PatchedPropertyRequest.ts models/PatchedPropertyTypeRequest.ts models/PatchedRecipeBookEntryRequest.ts @@ -143,6 +134,7 @@ models/RecipeShoppingUpdate.ts models/RecipeShoppingUpdateRequest.ts models/RecipeSimple.ts models/RecipeSimpleRequest.ts +models/ShareLink.ts models/ShoppingListEntry.ts models/ShoppingListEntryBulk.ts models/ShoppingListEntryBulkRequest.ts @@ -166,6 +158,7 @@ models/Sync.ts models/SyncLog.ts models/SyncRequest.ts models/ThemeEnum.ts +models/TypeEnum.ts models/Unit.ts models/UnitConversion.ts models/UnitConversionRequest.ts diff --git a/vue3/src/openapi/apis/ApiApi.ts b/vue3/src/openapi/apis/ApiApi.ts index 7fe8e0bb5..4e8300a98 100644 --- a/vue3/src/openapi/apis/ApiApi.ts +++ b/vue3/src/openapi/apis/ApiApi.ts @@ -17,10 +17,11 @@ import * as runtime from '../runtime'; import type { AccessToken, AccessTokenRequest, + AutoMealPlan, + AutoMealPlanRequest, Automation, AutomationRequest, BookmarkletImport, - BookmarkletImportList, BookmarkletImportRequest, ConnectorConfigConfig, ConnectorConfigConfigRequest, @@ -40,6 +41,7 @@ import type { ImportLogRequest, Ingredient, IngredientRequest, + IngredientStringRequest, InviteLink, InviteLinkRequest, Keyword, @@ -48,35 +50,37 @@ import type { MealPlanRequest, MealType, MealTypeRequest, - OpenDataCategory, - OpenDataCategoryRequest, - OpenDataConversion, - OpenDataConversionRequest, - OpenDataFood, - OpenDataFoodRequest, - OpenDataProperty, - OpenDataPropertyRequest, - OpenDataStore, - OpenDataStoreRequest, - OpenDataUnit, - OpenDataUnitRequest, - OpenDataVersion, - OpenDataVersionRequest, PaginatedAutomationList, + PaginatedBookmarkletImportListList, PaginatedCookLogList, PaginatedCustomFilterList, PaginatedExportLogList, PaginatedFoodList, PaginatedImportLogList, PaginatedIngredientList, + PaginatedInviteLinkList, PaginatedKeywordList, + PaginatedMealPlanList, + PaginatedMealTypeList, + PaginatedPropertyList, + PaginatedPropertyTypeList, + PaginatedRecipeBookEntryList, + PaginatedRecipeBookList, PaginatedRecipeOverviewList, + PaginatedShoppingListEntryList, + PaginatedShoppingListRecipeList, PaginatedStepList, + PaginatedSupermarketCategoryList, PaginatedSupermarketCategoryRelationList, + PaginatedSupermarketList, + PaginatedSyncList, PaginatedSyncLogList, + PaginatedUnitConversionList, PaginatedUnitList, + PaginatedUserFileList, PaginatedUserSpaceList, PaginatedViewLogList, + ParsedIngredient, PatchedAccessTokenRequest, PatchedAutomationRequest, PatchedBookmarkletImportRequest, @@ -91,13 +95,6 @@ import type { PatchedKeywordRequest, PatchedMealPlanRequest, PatchedMealTypeRequest, - PatchedOpenDataCategoryRequest, - PatchedOpenDataConversionRequest, - PatchedOpenDataFoodRequest, - PatchedOpenDataPropertyRequest, - PatchedOpenDataStoreRequest, - PatchedOpenDataUnitRequest, - PatchedOpenDataVersionRequest, PatchedPropertyRequest, PatchedPropertyTypeRequest, PatchedRecipeBookEntryRequest, @@ -133,6 +130,7 @@ import type { RecipeShoppingUpdate, RecipeShoppingUpdateRequest, RecipeSimple, + ShareLink, ShoppingListEntry, ShoppingListEntryBulk, ShoppingListEntryBulkRequest, @@ -169,14 +167,16 @@ import { AccessTokenToJSON, AccessTokenRequestFromJSON, AccessTokenRequestToJSON, + AutoMealPlanFromJSON, + AutoMealPlanToJSON, + AutoMealPlanRequestFromJSON, + AutoMealPlanRequestToJSON, AutomationFromJSON, AutomationToJSON, AutomationRequestFromJSON, AutomationRequestToJSON, BookmarkletImportFromJSON, BookmarkletImportToJSON, - BookmarkletImportListFromJSON, - BookmarkletImportListToJSON, BookmarkletImportRequestFromJSON, BookmarkletImportRequestToJSON, ConnectorConfigConfigFromJSON, @@ -215,6 +215,8 @@ import { IngredientToJSON, IngredientRequestFromJSON, IngredientRequestToJSON, + IngredientStringRequestFromJSON, + IngredientStringRequestToJSON, InviteLinkFromJSON, InviteLinkToJSON, InviteLinkRequestFromJSON, @@ -231,36 +233,10 @@ import { MealTypeToJSON, MealTypeRequestFromJSON, MealTypeRequestToJSON, - OpenDataCategoryFromJSON, - OpenDataCategoryToJSON, - OpenDataCategoryRequestFromJSON, - OpenDataCategoryRequestToJSON, - OpenDataConversionFromJSON, - OpenDataConversionToJSON, - OpenDataConversionRequestFromJSON, - OpenDataConversionRequestToJSON, - OpenDataFoodFromJSON, - OpenDataFoodToJSON, - OpenDataFoodRequestFromJSON, - OpenDataFoodRequestToJSON, - OpenDataPropertyFromJSON, - OpenDataPropertyToJSON, - OpenDataPropertyRequestFromJSON, - OpenDataPropertyRequestToJSON, - OpenDataStoreFromJSON, - OpenDataStoreToJSON, - OpenDataStoreRequestFromJSON, - OpenDataStoreRequestToJSON, - OpenDataUnitFromJSON, - OpenDataUnitToJSON, - OpenDataUnitRequestFromJSON, - OpenDataUnitRequestToJSON, - OpenDataVersionFromJSON, - OpenDataVersionToJSON, - OpenDataVersionRequestFromJSON, - OpenDataVersionRequestToJSON, PaginatedAutomationListFromJSON, PaginatedAutomationListToJSON, + PaginatedBookmarkletImportListListFromJSON, + PaginatedBookmarkletImportListListToJSON, PaginatedCookLogListFromJSON, PaginatedCookLogListToJSON, PaginatedCustomFilterListFromJSON, @@ -273,22 +249,52 @@ import { PaginatedImportLogListToJSON, PaginatedIngredientListFromJSON, PaginatedIngredientListToJSON, + PaginatedInviteLinkListFromJSON, + PaginatedInviteLinkListToJSON, PaginatedKeywordListFromJSON, PaginatedKeywordListToJSON, + PaginatedMealPlanListFromJSON, + PaginatedMealPlanListToJSON, + PaginatedMealTypeListFromJSON, + PaginatedMealTypeListToJSON, + PaginatedPropertyListFromJSON, + PaginatedPropertyListToJSON, + PaginatedPropertyTypeListFromJSON, + PaginatedPropertyTypeListToJSON, + PaginatedRecipeBookEntryListFromJSON, + PaginatedRecipeBookEntryListToJSON, + PaginatedRecipeBookListFromJSON, + PaginatedRecipeBookListToJSON, PaginatedRecipeOverviewListFromJSON, PaginatedRecipeOverviewListToJSON, + PaginatedShoppingListEntryListFromJSON, + PaginatedShoppingListEntryListToJSON, + PaginatedShoppingListRecipeListFromJSON, + PaginatedShoppingListRecipeListToJSON, PaginatedStepListFromJSON, PaginatedStepListToJSON, + PaginatedSupermarketCategoryListFromJSON, + PaginatedSupermarketCategoryListToJSON, PaginatedSupermarketCategoryRelationListFromJSON, PaginatedSupermarketCategoryRelationListToJSON, + PaginatedSupermarketListFromJSON, + PaginatedSupermarketListToJSON, + PaginatedSyncListFromJSON, + PaginatedSyncListToJSON, PaginatedSyncLogListFromJSON, PaginatedSyncLogListToJSON, + PaginatedUnitConversionListFromJSON, + PaginatedUnitConversionListToJSON, PaginatedUnitListFromJSON, PaginatedUnitListToJSON, + PaginatedUserFileListFromJSON, + PaginatedUserFileListToJSON, PaginatedUserSpaceListFromJSON, PaginatedUserSpaceListToJSON, PaginatedViewLogListFromJSON, PaginatedViewLogListToJSON, + ParsedIngredientFromJSON, + ParsedIngredientToJSON, PatchedAccessTokenRequestFromJSON, PatchedAccessTokenRequestToJSON, PatchedAutomationRequestFromJSON, @@ -317,20 +323,6 @@ import { PatchedMealPlanRequestToJSON, PatchedMealTypeRequestFromJSON, PatchedMealTypeRequestToJSON, - PatchedOpenDataCategoryRequestFromJSON, - PatchedOpenDataCategoryRequestToJSON, - PatchedOpenDataConversionRequestFromJSON, - PatchedOpenDataConversionRequestToJSON, - PatchedOpenDataFoodRequestFromJSON, - PatchedOpenDataFoodRequestToJSON, - PatchedOpenDataPropertyRequestFromJSON, - PatchedOpenDataPropertyRequestToJSON, - PatchedOpenDataStoreRequestFromJSON, - PatchedOpenDataStoreRequestToJSON, - PatchedOpenDataUnitRequestFromJSON, - PatchedOpenDataUnitRequestToJSON, - PatchedOpenDataVersionRequestFromJSON, - PatchedOpenDataVersionRequestToJSON, PatchedPropertyRequestFromJSON, PatchedPropertyRequestToJSON, PatchedPropertyTypeRequestFromJSON, @@ -401,6 +393,8 @@ import { RecipeShoppingUpdateRequestToJSON, RecipeSimpleFromJSON, RecipeSimpleToJSON, + ShareLinkFromJSON, + ShareLinkToJSON, ShoppingListEntryFromJSON, ShoppingListEntryToJSON, ShoppingListEntryBulkFromJSON, @@ -485,6 +479,10 @@ export interface ApiAccessTokenUpdateRequest { accessTokenRequest: AccessTokenRequest; } +export interface ApiAutoPlanCreateRequest { + autoMealPlanRequest: AutoMealPlanRequest; +} + export interface ApiAutomationCreateRequest { automationRequest: AutomationRequest; } @@ -494,9 +492,9 @@ export interface ApiAutomationDestroyRequest { } export interface ApiAutomationListRequest { - automationType?: string; page?: number; pageSize?: number; + type?: Array; } export interface ApiAutomationPartialUpdateRequest { @@ -521,6 +519,11 @@ export interface ApiBookmarkletImportDestroyRequest { id: number; } +export interface ApiBookmarkletImportListRequest { + page?: number; + pageSize?: number; +} + export interface ApiBookmarkletImportPartialUpdateRequest { id: number; patchedBookmarkletImportRequest?: PatchedBookmarkletImportRequest; @@ -599,6 +602,7 @@ export interface ApiCustomFilterListRequest { pageSize?: number; query?: string; random?: string; + type?: Array; updatedAt?: string; } @@ -677,13 +681,13 @@ export interface ApiFoodListRequest { export interface ApiFoodMergeUpdateRequest { id: number; - target: string; + target: number; foodRequest: FoodRequest; } export interface ApiFoodMoveUpdateRequest { id: number; - parent: string; + parent: number; foodRequest: FoodRequest; } @@ -700,6 +704,11 @@ export interface ApiFoodPropertyDestroyRequest { id: number; } +export interface ApiFoodPropertyListRequest { + page?: number; + pageSize?: number; +} + export interface ApiFoodPropertyPartialUpdateRequest { id: number; patchedPropertyRequest?: PatchedPropertyRequest; @@ -717,6 +726,12 @@ export interface ApiFoodPropertyTypeDestroyRequest { id: number; } +export interface ApiFoodPropertyTypeListRequest { + category?: Array; + page?: number; + pageSize?: number; +} + export interface ApiFoodPropertyTypePartialUpdateRequest { id: number; patchedPropertyTypeRequest?: PatchedPropertyTypeRequest; @@ -750,6 +765,14 @@ export interface ApiFoodUpdateRequest { foodRequest: FoodRequest; } +export interface ApiGetExternalFileLinkRetrieveRequest { + recipeId: number; +} + +export interface ApiGetRecipeFileRetrieveRequest { + recipeId: number; +} + export interface ApiGroupRetrieveRequest { id: number; } @@ -789,9 +812,15 @@ export interface ApiIngredientDestroyRequest { id: number; } +export interface ApiIngredientFromStringCreateRequest { + ingredientStringRequest: IngredientStringRequest; +} + export interface ApiIngredientListRequest { + food?: number; page?: number; pageSize?: number; + unit?: number; } export interface ApiIngredientPartialUpdateRequest { @@ -817,7 +846,10 @@ export interface ApiInviteLinkDestroyRequest { } export interface ApiInviteLinkListRequest { + internalNote?: string; limit?: string; + page?: number; + pageSize?: number; query?: string; random?: string; updatedAt?: string; @@ -858,13 +890,13 @@ export interface ApiKeywordListRequest { export interface ApiKeywordMergeUpdateRequest { id: number; - target: string; + target: number; keywordRequest: KeywordRequest; } export interface ApiKeywordMoveUpdateRequest { id: number; - parent: string; + parent: number; keywordRequest: KeywordRequest; } @@ -892,13 +924,15 @@ export interface ApiMealPlanDestroyRequest { export interface ApiMealPlanIcalRetrieveRequest { fromDate?: string; - mealType?: string; + mealType?: Array; toDate?: string; } export interface ApiMealPlanListRequest { fromDate?: string; - mealType?: string; + mealType?: Array; + page?: number; + pageSize?: number; toDate?: string; } @@ -924,6 +958,11 @@ export interface ApiMealTypeDestroyRequest { id: number; } +export interface ApiMealTypeListRequest { + page?: number; + pageSize?: number; +} + export interface ApiMealTypePartialUpdateRequest { id: number; patchedMealTypeRequest?: PatchedMealTypeRequest; @@ -938,169 +977,6 @@ export interface ApiMealTypeUpdateRequest { mealTypeRequest: MealTypeRequest; } -export interface ApiOpenDataCategoryCreateRequest { - openDataCategoryRequest: OpenDataCategoryRequest; -} - -export interface ApiOpenDataCategoryDestroyRequest { - id: number; -} - -export interface ApiOpenDataCategoryPartialUpdateRequest { - id: number; - patchedOpenDataCategoryRequest?: PatchedOpenDataCategoryRequest; -} - -export interface ApiOpenDataCategoryRetrieveRequest { - id: number; -} - -export interface ApiOpenDataCategoryUpdateRequest { - id: number; - openDataCategoryRequest: OpenDataCategoryRequest; -} - -export interface ApiOpenDataConversionCreateRequest { - openDataConversionRequest: OpenDataConversionRequest; -} - -export interface ApiOpenDataConversionDestroyRequest { - id: number; -} - -export interface ApiOpenDataConversionPartialUpdateRequest { - id: number; - patchedOpenDataConversionRequest?: PatchedOpenDataConversionRequest; -} - -export interface ApiOpenDataConversionRetrieveRequest { - id: number; -} - -export interface ApiOpenDataConversionUpdateRequest { - id: number; - openDataConversionRequest: OpenDataConversionRequest; -} - -export interface ApiOpenDataFDCRetrieveRequest { - id: string; -} - -export interface ApiOpenDataFoodCreateRequest { - openDataFoodRequest: OpenDataFoodRequest; -} - -export interface ApiOpenDataFoodDestroyRequest { - id: number; -} - -export interface ApiOpenDataFoodPartialUpdateRequest { - id: number; - patchedOpenDataFoodRequest?: PatchedOpenDataFoodRequest; -} - -export interface ApiOpenDataFoodRetrieveRequest { - id: number; -} - -export interface ApiOpenDataFoodUpdateRequest { - id: number; - openDataFoodRequest: OpenDataFoodRequest; -} - -export interface ApiOpenDataPropertyCreateRequest { - openDataPropertyRequest: OpenDataPropertyRequest; -} - -export interface ApiOpenDataPropertyDestroyRequest { - id: number; -} - -export interface ApiOpenDataPropertyPartialUpdateRequest { - id: number; - patchedOpenDataPropertyRequest?: PatchedOpenDataPropertyRequest; -} - -export interface ApiOpenDataPropertyRetrieveRequest { - id: number; -} - -export interface ApiOpenDataPropertyUpdateRequest { - id: number; - openDataPropertyRequest: OpenDataPropertyRequest; -} - -export interface ApiOpenDataStoreCreateRequest { - openDataStoreRequest: OpenDataStoreRequest; -} - -export interface ApiOpenDataStoreDestroyRequest { - id: number; -} - -export interface ApiOpenDataStorePartialUpdateRequest { - id: number; - patchedOpenDataStoreRequest?: PatchedOpenDataStoreRequest; -} - -export interface ApiOpenDataStoreRetrieveRequest { - id: number; -} - -export interface ApiOpenDataStoreUpdateRequest { - id: number; - openDataStoreRequest: OpenDataStoreRequest; -} - -export interface ApiOpenDataUnitCreateRequest { - openDataUnitRequest: OpenDataUnitRequest; -} - -export interface ApiOpenDataUnitDestroyRequest { - id: number; -} - -export interface ApiOpenDataUnitPartialUpdateRequest { - id: number; - patchedOpenDataUnitRequest?: PatchedOpenDataUnitRequest; -} - -export interface ApiOpenDataUnitRetrieveRequest { - id: number; -} - -export interface ApiOpenDataUnitUpdateRequest { - id: number; - openDataUnitRequest: OpenDataUnitRequest; -} - -export interface ApiOpenDataVersionCreateRequest { - openDataVersionRequest: OpenDataVersionRequest; -} - -export interface ApiOpenDataVersionDestroyRequest { - id: number; -} - -export interface ApiOpenDataVersionPartialUpdateRequest { - id: number; - patchedOpenDataVersionRequest?: PatchedOpenDataVersionRequest; -} - -export interface ApiOpenDataVersionRetrieveRequest { - id: number; -} - -export interface ApiOpenDataVersionUpdateRequest { - id: number; - openDataVersionRequest: OpenDataVersionRequest; -} - -export interface ApiPlanIcalRetrieveRequest { - fromDate: string; - toDate: string; -} - export interface ApiRecipeBookCreateRequest { recipeBookRequest: RecipeBookRequest; } @@ -1117,6 +993,13 @@ export interface ApiRecipeBookEntryDestroyRequest { id: number; } +export interface ApiRecipeBookEntryListRequest { + book?: number; + page?: number; + pageSize?: number; + recipe?: number; +} + export interface ApiRecipeBookEntryPartialUpdateRequest { id: number; patchedRecipeBookEntryRequest?: PatchedRecipeBookEntryRequest; @@ -1133,6 +1016,10 @@ export interface ApiRecipeBookEntryUpdateRequest { export interface ApiRecipeBookListRequest { limit?: string; + orderDirection?: ApiRecipeBookListOrderDirectionEnum; + orderField?: ApiRecipeBookListOrderFieldEnum; + page?: number; + pageSize?: number; query?: string; random?: string; updatedAt?: string; @@ -1167,25 +1054,25 @@ export interface ApiRecipeImageUpdateRequest { } export interface ApiRecipeListRequest { - books?: string; - booksAnd?: number; - booksAndNot?: number; - booksOr?: number; - booksOrNot?: number; + books?: Array; + booksAnd?: Array; + booksAndNot?: Array; + booksOr?: Array; + booksOrNot?: Array; 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; + foods?: Array; + foodsAnd?: Array; + foodsAndNot?: Array; + foodsOr?: Array; + foodsOrNot?: Array; + internal?: boolean; + keywords?: Array; + keywordsAnd?: Array; + keywordsAndNot?: Array; + keywordsOr?: Array; + keywordsOrNot?: Array; + makenow?: boolean; _new?: string; page?: number; pageSize?: number; @@ -1240,6 +1127,8 @@ export interface ApiShoppingListEntryDestroyRequest { export interface ApiShoppingListEntryListRequest { checked?: string; id?: number; + page?: number; + pageSize?: number; supermarket?: number; } @@ -1265,6 +1154,11 @@ export interface ApiShoppingListRecipeDestroyRequest { id: number; } +export interface ApiShoppingListRecipeListRequest { + page?: number; + pageSize?: number; +} + export interface ApiShoppingListRecipePartialUpdateRequest { id: number; patchedShoppingListRecipeRequest?: PatchedShoppingListRecipeRequest; @@ -1300,7 +1194,7 @@ export interface ApiStepListRequest { page?: number; pageSize?: number; query?: string; - recipe?: number; + recipe?: Array; } export interface ApiStepPartialUpdateRequest { @@ -1349,6 +1243,8 @@ export interface ApiSupermarketCategoryDestroyRequest { export interface ApiSupermarketCategoryListRequest { limit?: string; + page?: number; + pageSize?: number; query?: string; random?: string; updatedAt?: string; @@ -1356,7 +1252,7 @@ export interface ApiSupermarketCategoryListRequest { export interface ApiSupermarketCategoryMergeUpdateRequest { id: number; - target: string; + target: number; supermarketCategoryRequest: SupermarketCategoryRequest; } @@ -1415,6 +1311,8 @@ export interface ApiSupermarketDestroyRequest { export interface ApiSupermarketListRequest { limit?: string; + page?: number; + pageSize?: number; query?: string; random?: string; updatedAt?: string; @@ -1446,6 +1344,11 @@ export interface ApiSyncDestroyRequest { id: number; } +export interface ApiSyncListRequest { + page?: number; + pageSize?: number; +} + export interface ApiSyncLogListRequest { page?: number; pageSize?: number; @@ -1479,6 +1382,8 @@ export interface ApiUnitConversionDestroyRequest { export interface ApiUnitConversionListRequest { foodId?: number; + page?: number; + pageSize?: number; } export interface ApiUnitConversionPartialUpdateRequest { @@ -1514,7 +1419,7 @@ export interface ApiUnitListRequest { export interface ApiUnitMergeUpdateRequest { id: number; - target: string; + target: number; unitRequest: UnitRequest; } @@ -1544,6 +1449,8 @@ export interface ApiUserFileDestroyRequest { export interface ApiUserFileListRequest { limit?: string; + page?: number; + pageSize?: number; query?: string; random?: string; updatedAt?: string; @@ -1567,6 +1474,10 @@ export interface ApiUserFileUpdateRequest { id2?: number; } +export interface ApiUserListRequest { + filterList?: Array; +} + export interface ApiUserPartialUpdateRequest { id: number; patchedUserRequest?: PatchedUserRequest; @@ -1590,6 +1501,7 @@ export interface ApiUserSpaceDestroyRequest { } export interface ApiUserSpaceListRequest { + internalNote?: string; page?: number; pageSize?: number; } @@ -1855,11 +1767,20 @@ export class ApiApi extends runtime.BaseAPI { /** */ - async apiAutoPlanCreateRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + async apiAutoPlanCreateRaw(requestParameters: ApiAutoPlanCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['autoMealPlanRequest'] == null) { + throw new runtime.RequiredError( + 'autoMealPlanRequest', + 'Required parameter "autoMealPlanRequest" was null or undefined when calling apiAutoPlanCreate().' + ); + } + const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; + headerParameters['Content-Type'] = 'application/json'; + if (this.configuration && this.configuration.apiKey) { headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication } @@ -1869,19 +1790,20 @@ export class ApiApi extends runtime.BaseAPI { method: 'POST', headers: headerParameters, query: queryParameters, + body: AutoMealPlanRequestToJSON(requestParameters['autoMealPlanRequest']), }, initOverrides); - return new runtime.VoidApiResponse(response); + return new runtime.JSONApiResponse(response, (jsonValue) => AutoMealPlanFromJSON(jsonValue)); } /** */ - async apiAutoPlanCreate(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - await this.apiAutoPlanCreateRaw(initOverrides); + async apiAutoPlanCreate(requestParameters: ApiAutoPlanCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.apiAutoPlanCreateRaw(requestParameters, initOverrides); + return await response.value(); } /** - * 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 */ async apiAutomationCreateRaw(requestParameters: ApiAutomationCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { if (requestParameters['automationRequest'] == null) { @@ -1913,7 +1835,6 @@ export class ApiApi extends runtime.BaseAPI { } /** - * 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 */ async apiAutomationCreate(requestParameters: ApiAutomationCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { const response = await this.apiAutomationCreateRaw(requestParameters, initOverrides); @@ -1921,7 +1842,6 @@ export class ApiApi extends runtime.BaseAPI { } /** - * 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 */ async apiAutomationDestroyRaw(requestParameters: ApiAutomationDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { if (requestParameters['id'] == null) { @@ -1950,22 +1870,16 @@ export class ApiApi extends runtime.BaseAPI { } /** - * 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 */ async apiAutomationDestroy(requestParameters: ApiAutomationDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { await this.apiAutomationDestroyRaw(requestParameters, initOverrides); } /** - * 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 */ async apiAutomationListRaw(requestParameters: ApiAutomationListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { const queryParameters: any = {}; - if (requestParameters['automationType'] != null) { - queryParameters['automation_type'] = requestParameters['automationType']; - } - if (requestParameters['page'] != null) { queryParameters['page'] = requestParameters['page']; } @@ -1974,6 +1888,10 @@ export class ApiApi extends runtime.BaseAPI { queryParameters['page_size'] = requestParameters['pageSize']; } + if (requestParameters['type'] != null) { + queryParameters['type'] = requestParameters['type']; + } + const headerParameters: runtime.HTTPHeaders = {}; if (this.configuration && this.configuration.apiKey) { @@ -1991,7 +1909,6 @@ export class ApiApi extends runtime.BaseAPI { } /** - * 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 */ async apiAutomationList(requestParameters: ApiAutomationListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { const response = await this.apiAutomationListRaw(requestParameters, initOverrides); @@ -1999,7 +1916,6 @@ export class ApiApi extends runtime.BaseAPI { } /** - * 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 */ async apiAutomationPartialUpdateRaw(requestParameters: ApiAutomationPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { if (requestParameters['id'] == null) { @@ -2031,7 +1947,6 @@ export class ApiApi extends runtime.BaseAPI { } /** - * 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 */ async apiAutomationPartialUpdate(requestParameters: ApiAutomationPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { const response = await this.apiAutomationPartialUpdateRaw(requestParameters, initOverrides); @@ -2039,7 +1954,6 @@ export class ApiApi extends runtime.BaseAPI { } /** - * 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 */ async apiAutomationRetrieveRaw(requestParameters: ApiAutomationRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { if (requestParameters['id'] == null) { @@ -2068,7 +1982,6 @@ export class ApiApi extends runtime.BaseAPI { } /** - * 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 */ async apiAutomationRetrieve(requestParameters: ApiAutomationRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { const response = await this.apiAutomationRetrieveRaw(requestParameters, initOverrides); @@ -2076,7 +1989,6 @@ export class ApiApi extends runtime.BaseAPI { } /** - * 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 */ async apiAutomationUpdateRaw(requestParameters: ApiAutomationUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { if (requestParameters['id'] == null) { @@ -2115,7 +2027,6 @@ export class ApiApi extends runtime.BaseAPI { } /** - * 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 */ async apiAutomationUpdate(requestParameters: ApiAutomationUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { const response = await this.apiAutomationUpdateRaw(requestParameters, initOverrides); @@ -2196,9 +2107,17 @@ export class ApiApi extends runtime.BaseAPI { /** */ - async apiBookmarkletImportListRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { + async apiBookmarkletImportListRaw(requestParameters: ApiBookmarkletImportListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { const queryParameters: any = {}; + if (requestParameters['page'] != null) { + queryParameters['page'] = requestParameters['page']; + } + + if (requestParameters['pageSize'] != null) { + queryParameters['page_size'] = requestParameters['pageSize']; + } + const headerParameters: runtime.HTTPHeaders = {}; if (this.configuration && this.configuration.apiKey) { @@ -2212,13 +2131,13 @@ export class ApiApi extends runtime.BaseAPI { query: queryParameters, }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(BookmarkletImportListFromJSON)); + return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedBookmarkletImportListListFromJSON(jsonValue)); } /** */ - async apiBookmarkletImportList(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const response = await this.apiBookmarkletImportListRaw(initOverrides); + async apiBookmarkletImportList(requestParameters: ApiBookmarkletImportListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.apiBookmarkletImportListRaw(requestParameters, initOverrides); return await response.value(); } @@ -2885,6 +2804,10 @@ export class ApiApi extends runtime.BaseAPI { queryParameters['random'] = requestParameters['random']; } + if (requestParameters['type'] != null) { + queryParameters['type'] = requestParameters['type']; + } + if (requestParameters['updatedAt'] != null) { queryParameters['updated_at'] = requestParameters['updatedAt']; } @@ -3750,9 +3673,17 @@ export class ApiApi extends runtime.BaseAPI { /** */ - async apiFoodPropertyListRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { + async apiFoodPropertyListRaw(requestParameters: ApiFoodPropertyListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { const queryParameters: any = {}; + if (requestParameters['page'] != null) { + queryParameters['page'] = requestParameters['page']; + } + + if (requestParameters['pageSize'] != null) { + queryParameters['page_size'] = requestParameters['pageSize']; + } + const headerParameters: runtime.HTTPHeaders = {}; if (this.configuration && this.configuration.apiKey) { @@ -3766,13 +3697,13 @@ export class ApiApi extends runtime.BaseAPI { query: queryParameters, }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(PropertyFromJSON)); + return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedPropertyListFromJSON(jsonValue)); } /** */ - async apiFoodPropertyList(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const response = await this.apiFoodPropertyListRaw(initOverrides); + async apiFoodPropertyList(requestParameters: ApiFoodPropertyListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.apiFoodPropertyListRaw(requestParameters, initOverrides); return await response.value(); } @@ -3923,9 +3854,21 @@ export class ApiApi extends runtime.BaseAPI { /** */ - async apiFoodPropertyTypeListRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { + async apiFoodPropertyTypeListRaw(requestParameters: ApiFoodPropertyTypeListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { const queryParameters: any = {}; + if (requestParameters['category'] != null) { + queryParameters['category'] = requestParameters['category']; + } + + if (requestParameters['page'] != null) { + queryParameters['page'] = requestParameters['page']; + } + + if (requestParameters['pageSize'] != null) { + queryParameters['page_size'] = requestParameters['pageSize']; + } + const headerParameters: runtime.HTTPHeaders = {}; if (this.configuration && this.configuration.apiKey) { @@ -3939,13 +3882,13 @@ export class ApiApi extends runtime.BaseAPI { query: queryParameters, }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(PropertyTypeFromJSON)); + return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedPropertyTypeListFromJSON(jsonValue)); } /** */ - async apiFoodPropertyTypeList(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const response = await this.apiFoodPropertyTypeListRaw(initOverrides); + async apiFoodPropertyTypeList(requestParameters: ApiFoodPropertyTypeListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.apiFoodPropertyTypeListRaw(requestParameters, initOverrides); return await response.value(); } @@ -4237,6 +4180,74 @@ export class ApiApi extends runtime.BaseAPI { return await response.value(); } + /** + */ + async apiGetExternalFileLinkRetrieveRaw(requestParameters: ApiGetExternalFileLinkRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['recipeId'] == null) { + throw new runtime.RequiredError( + 'recipeId', + 'Required parameter "recipeId" was null or undefined when calling apiGetExternalFileLinkRetrieve().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + const response = await this.request({ + path: `/api/get_external_file_link/{recipeId}/`.replace(`{${"recipeId"}}`, encodeURIComponent(String(requestParameters['recipeId']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async apiGetExternalFileLinkRetrieve(requestParameters: ApiGetExternalFileLinkRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.apiGetExternalFileLinkRetrieveRaw(requestParameters, initOverrides); + } + + /** + */ + async apiGetRecipeFileRetrieveRaw(requestParameters: ApiGetRecipeFileRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['recipeId'] == null) { + throw new runtime.RequiredError( + 'recipeId', + 'Required parameter "recipeId" was null or undefined when calling apiGetRecipeFileRetrieve().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + const response = await this.request({ + path: `/api/get_recipe_file/{recipeId}/`.replace(`{${"recipeId"}}`, encodeURIComponent(String(requestParameters['recipeId']))), + method: 'GET', + headers: headerParameters, + query: queryParameters, + }, initOverrides); + + return new runtime.VoidApiResponse(response); + } + + /** + */ + async apiGetRecipeFileRetrieve(requestParameters: ApiGetRecipeFileRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.apiGetRecipeFileRetrieveRaw(requestParameters, initOverrides); + } + /** */ async apiGroupListRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { @@ -4627,11 +4638,53 @@ export class ApiApi extends runtime.BaseAPI { await this.apiIngredientDestroyRaw(requestParameters, initOverrides); } + /** + */ + async apiIngredientFromStringCreateRaw(requestParameters: ApiIngredientFromStringCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + if (requestParameters['ingredientStringRequest'] == null) { + throw new runtime.RequiredError( + 'ingredientStringRequest', + 'Required parameter "ingredientStringRequest" was null or undefined when calling apiIngredientFromStringCreate().' + ); + } + + const queryParameters: any = {}; + + const headerParameters: runtime.HTTPHeaders = {}; + + headerParameters['Content-Type'] = 'application/json'; + + if (this.configuration && this.configuration.apiKey) { + headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication + } + + const response = await this.request({ + path: `/api/ingredient-from-string/`, + method: 'POST', + headers: headerParameters, + query: queryParameters, + body: IngredientStringRequestToJSON(requestParameters['ingredientStringRequest']), + }, initOverrides); + + return new runtime.JSONApiResponse(response, (jsonValue) => ParsedIngredientFromJSON(jsonValue)); + } + + /** + */ + async apiIngredientFromStringCreate(requestParameters: ApiIngredientFromStringCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.apiIngredientFromStringCreateRaw(requestParameters, initOverrides); + return await response.value(); + } + /** */ async apiIngredientListRaw(requestParameters: ApiIngredientListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { const queryParameters: any = {}; + if (requestParameters['food'] != null) { + queryParameters['food'] = requestParameters['food']; + } + if (requestParameters['page'] != null) { queryParameters['page'] = requestParameters['page']; } @@ -4640,6 +4693,10 @@ export class ApiApi extends runtime.BaseAPI { queryParameters['page_size'] = requestParameters['pageSize']; } + if (requestParameters['unit'] != null) { + queryParameters['unit'] = requestParameters['unit']; + } + const headerParameters: runtime.HTTPHeaders = {}; if (this.configuration && this.configuration.apiKey) { @@ -4855,13 +4912,25 @@ export class ApiApi extends runtime.BaseAPI { /** */ - async apiInviteLinkListRaw(requestParameters: ApiInviteLinkListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { + async apiInviteLinkListRaw(requestParameters: ApiInviteLinkListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { const queryParameters: any = {}; + if (requestParameters['internalNote'] != null) { + queryParameters['internal_note'] = requestParameters['internalNote']; + } + if (requestParameters['limit'] != null) { queryParameters['limit'] = requestParameters['limit']; } + if (requestParameters['page'] != null) { + queryParameters['page'] = requestParameters['page']; + } + + if (requestParameters['pageSize'] != null) { + queryParameters['page_size'] = requestParameters['pageSize']; + } + if (requestParameters['query'] != null) { queryParameters['query'] = requestParameters['query']; } @@ -4887,12 +4956,12 @@ export class ApiApi extends runtime.BaseAPI { query: queryParameters, }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(InviteLinkFromJSON)); + return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedInviteLinkListFromJSON(jsonValue)); } /** */ - async apiInviteLinkList(requestParameters: ApiInviteLinkListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + async apiInviteLinkList(requestParameters: ApiInviteLinkListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { const response = await this.apiInviteLinkListRaw(requestParameters, initOverrides); return await response.value(); } @@ -5370,7 +5439,6 @@ export class ApiApi extends runtime.BaseAPI { } /** - * 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 */ async apiMealPlanCreateRaw(requestParameters: ApiMealPlanCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { if (requestParameters['mealPlanRequest'] == null) { @@ -5402,7 +5470,6 @@ export class ApiApi extends runtime.BaseAPI { } /** - * 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 */ async apiMealPlanCreate(requestParameters: ApiMealPlanCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { const response = await this.apiMealPlanCreateRaw(requestParameters, initOverrides); @@ -5410,7 +5477,6 @@ export class ApiApi extends runtime.BaseAPI { } /** - * 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 */ async apiMealPlanDestroyRaw(requestParameters: ApiMealPlanDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { if (requestParameters['id'] == null) { @@ -5439,14 +5505,12 @@ export class ApiApi extends runtime.BaseAPI { } /** - * 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 */ async apiMealPlanDestroy(requestParameters: ApiMealPlanDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { await this.apiMealPlanDestroyRaw(requestParameters, initOverrides); } /** - * 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 */ async apiMealPlanIcalRetrieveRaw(requestParameters: ApiMealPlanIcalRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { const queryParameters: any = {}; @@ -5484,7 +5548,6 @@ export class ApiApi extends runtime.BaseAPI { } /** - * 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 */ async apiMealPlanIcalRetrieve(requestParameters: ApiMealPlanIcalRetrieveRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { const response = await this.apiMealPlanIcalRetrieveRaw(requestParameters, initOverrides); @@ -5492,9 +5555,8 @@ export class ApiApi extends runtime.BaseAPI { } /** - * 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 */ - async apiMealPlanListRaw(requestParameters: ApiMealPlanListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { + async apiMealPlanListRaw(requestParameters: ApiMealPlanListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { const queryParameters: any = {}; if (requestParameters['fromDate'] != null) { @@ -5505,6 +5567,14 @@ export class ApiApi extends runtime.BaseAPI { queryParameters['meal_type'] = requestParameters['mealType']; } + if (requestParameters['page'] != null) { + queryParameters['page'] = requestParameters['page']; + } + + if (requestParameters['pageSize'] != null) { + queryParameters['page_size'] = requestParameters['pageSize']; + } + if (requestParameters['toDate'] != null) { queryParameters['to_date'] = requestParameters['toDate']; } @@ -5522,19 +5592,17 @@ export class ApiApi extends runtime.BaseAPI { query: queryParameters, }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(MealPlanFromJSON)); + return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedMealPlanListFromJSON(jsonValue)); } /** - * 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 */ - async apiMealPlanList(requestParameters: ApiMealPlanListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + async apiMealPlanList(requestParameters: ApiMealPlanListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { const response = await this.apiMealPlanListRaw(requestParameters, initOverrides); return await response.value(); } /** - * 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 */ async apiMealPlanPartialUpdateRaw(requestParameters: ApiMealPlanPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { if (requestParameters['id'] == null) { @@ -5566,7 +5634,6 @@ export class ApiApi extends runtime.BaseAPI { } /** - * 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 */ async apiMealPlanPartialUpdate(requestParameters: ApiMealPlanPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { const response = await this.apiMealPlanPartialUpdateRaw(requestParameters, initOverrides); @@ -5574,7 +5641,6 @@ export class ApiApi extends runtime.BaseAPI { } /** - * 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 */ async apiMealPlanRetrieveRaw(requestParameters: ApiMealPlanRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { if (requestParameters['id'] == null) { @@ -5603,7 +5669,6 @@ export class ApiApi extends runtime.BaseAPI { } /** - * 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 */ async apiMealPlanRetrieve(requestParameters: ApiMealPlanRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { const response = await this.apiMealPlanRetrieveRaw(requestParameters, initOverrides); @@ -5611,7 +5676,6 @@ export class ApiApi extends runtime.BaseAPI { } /** - * 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 */ async apiMealPlanUpdateRaw(requestParameters: ApiMealPlanUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { if (requestParameters['id'] == null) { @@ -5650,7 +5714,6 @@ export class ApiApi extends runtime.BaseAPI { } /** - * 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 */ async apiMealPlanUpdate(requestParameters: ApiMealPlanUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { const response = await this.apiMealPlanUpdateRaw(requestParameters, initOverrides); @@ -5736,9 +5799,17 @@ export class ApiApi extends runtime.BaseAPI { /** * returns list of meal types created by the requesting user ordered by the order field. */ - async apiMealTypeListRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { + async apiMealTypeListRaw(requestParameters: ApiMealTypeListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { const queryParameters: any = {}; + if (requestParameters['page'] != null) { + queryParameters['page'] = requestParameters['page']; + } + + if (requestParameters['pageSize'] != null) { + queryParameters['page_size'] = requestParameters['pageSize']; + } + const headerParameters: runtime.HTTPHeaders = {}; if (this.configuration && this.configuration.apiKey) { @@ -5752,14 +5823,14 @@ export class ApiApi extends runtime.BaseAPI { query: queryParameters, }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(MealTypeFromJSON)); + return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedMealTypeListFromJSON(jsonValue)); } /** * returns list of meal types created by the requesting user ordered by the order field. */ - async apiMealTypeList(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const response = await this.apiMealTypeListRaw(initOverrides); + async apiMealTypeList(requestParameters: ApiMealTypeListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.apiMealTypeListRaw(requestParameters, initOverrides); return await response.value(); } @@ -5887,1634 +5958,6 @@ export class ApiApi extends runtime.BaseAPI { return await response.value(); } - /** - */ - async apiOpenDataCategoryCreateRaw(requestParameters: ApiOpenDataCategoryCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['openDataCategoryRequest'] == null) { - throw new runtime.RequiredError( - 'openDataCategoryRequest', - 'Required parameter "openDataCategoryRequest" was null or undefined when calling apiOpenDataCategoryCreate().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication - } - - const response = await this.request({ - path: `/api/open-data-category/`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: OpenDataCategoryRequestToJSON(requestParameters['openDataCategoryRequest']), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => OpenDataCategoryFromJSON(jsonValue)); - } - - /** - */ - async apiOpenDataCategoryCreate(requestParameters: ApiOpenDataCategoryCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.apiOpenDataCategoryCreateRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - */ - async apiOpenDataCategoryDestroyRaw(requestParameters: ApiOpenDataCategoryDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling apiOpenDataCategoryDestroy().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication - } - - const response = await this.request({ - path: `/api/open-data-category/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), - method: 'DELETE', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.VoidApiResponse(response); - } - - /** - */ - async apiOpenDataCategoryDestroy(requestParameters: ApiOpenDataCategoryDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - await this.apiOpenDataCategoryDestroyRaw(requestParameters, initOverrides); - } - - /** - */ - async apiOpenDataCategoryListRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication - } - - const response = await this.request({ - path: `/api/open-data-category/`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(OpenDataCategoryFromJSON)); - } - - /** - */ - async apiOpenDataCategoryList(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const response = await this.apiOpenDataCategoryListRaw(initOverrides); - return await response.value(); - } - - /** - */ - async apiOpenDataCategoryPartialUpdateRaw(requestParameters: ApiOpenDataCategoryPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling apiOpenDataCategoryPartialUpdate().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication - } - - const response = await this.request({ - path: `/api/open-data-category/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), - method: 'PATCH', - headers: headerParameters, - query: queryParameters, - body: PatchedOpenDataCategoryRequestToJSON(requestParameters['patchedOpenDataCategoryRequest']), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => OpenDataCategoryFromJSON(jsonValue)); - } - - /** - */ - async apiOpenDataCategoryPartialUpdate(requestParameters: ApiOpenDataCategoryPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.apiOpenDataCategoryPartialUpdateRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - */ - async apiOpenDataCategoryRetrieveRaw(requestParameters: ApiOpenDataCategoryRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling apiOpenDataCategoryRetrieve().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication - } - - const response = await this.request({ - path: `/api/open-data-category/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => OpenDataCategoryFromJSON(jsonValue)); - } - - /** - */ - async apiOpenDataCategoryRetrieve(requestParameters: ApiOpenDataCategoryRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.apiOpenDataCategoryRetrieveRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - */ - async apiOpenDataCategoryUpdateRaw(requestParameters: ApiOpenDataCategoryUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling apiOpenDataCategoryUpdate().' - ); - } - - if (requestParameters['openDataCategoryRequest'] == null) { - throw new runtime.RequiredError( - 'openDataCategoryRequest', - 'Required parameter "openDataCategoryRequest" was null or undefined when calling apiOpenDataCategoryUpdate().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication - } - - const response = await this.request({ - path: `/api/open-data-category/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), - method: 'PUT', - headers: headerParameters, - query: queryParameters, - body: OpenDataCategoryRequestToJSON(requestParameters['openDataCategoryRequest']), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => OpenDataCategoryFromJSON(jsonValue)); - } - - /** - */ - async apiOpenDataCategoryUpdate(requestParameters: ApiOpenDataCategoryUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.apiOpenDataCategoryUpdateRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - */ - async apiOpenDataConversionCreateRaw(requestParameters: ApiOpenDataConversionCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['openDataConversionRequest'] == null) { - throw new runtime.RequiredError( - 'openDataConversionRequest', - 'Required parameter "openDataConversionRequest" was null or undefined when calling apiOpenDataConversionCreate().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication - } - - const response = await this.request({ - path: `/api/open-data-conversion/`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: OpenDataConversionRequestToJSON(requestParameters['openDataConversionRequest']), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => OpenDataConversionFromJSON(jsonValue)); - } - - /** - */ - async apiOpenDataConversionCreate(requestParameters: ApiOpenDataConversionCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.apiOpenDataConversionCreateRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - */ - async apiOpenDataConversionDestroyRaw(requestParameters: ApiOpenDataConversionDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling apiOpenDataConversionDestroy().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication - } - - const response = await this.request({ - path: `/api/open-data-conversion/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), - method: 'DELETE', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.VoidApiResponse(response); - } - - /** - */ - async apiOpenDataConversionDestroy(requestParameters: ApiOpenDataConversionDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - await this.apiOpenDataConversionDestroyRaw(requestParameters, initOverrides); - } - - /** - */ - async apiOpenDataConversionListRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication - } - - const response = await this.request({ - path: `/api/open-data-conversion/`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(OpenDataConversionFromJSON)); - } - - /** - */ - async apiOpenDataConversionList(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const response = await this.apiOpenDataConversionListRaw(initOverrides); - return await response.value(); - } - - /** - */ - async apiOpenDataConversionPartialUpdateRaw(requestParameters: ApiOpenDataConversionPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling apiOpenDataConversionPartialUpdate().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication - } - - const response = await this.request({ - path: `/api/open-data-conversion/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), - method: 'PATCH', - headers: headerParameters, - query: queryParameters, - body: PatchedOpenDataConversionRequestToJSON(requestParameters['patchedOpenDataConversionRequest']), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => OpenDataConversionFromJSON(jsonValue)); - } - - /** - */ - async apiOpenDataConversionPartialUpdate(requestParameters: ApiOpenDataConversionPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.apiOpenDataConversionPartialUpdateRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - */ - async apiOpenDataConversionRetrieveRaw(requestParameters: ApiOpenDataConversionRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling apiOpenDataConversionRetrieve().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication - } - - const response = await this.request({ - path: `/api/open-data-conversion/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => OpenDataConversionFromJSON(jsonValue)); - } - - /** - */ - async apiOpenDataConversionRetrieve(requestParameters: ApiOpenDataConversionRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.apiOpenDataConversionRetrieveRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - */ - async apiOpenDataConversionUpdateRaw(requestParameters: ApiOpenDataConversionUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling apiOpenDataConversionUpdate().' - ); - } - - if (requestParameters['openDataConversionRequest'] == null) { - throw new runtime.RequiredError( - 'openDataConversionRequest', - 'Required parameter "openDataConversionRequest" was null or undefined when calling apiOpenDataConversionUpdate().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication - } - - const response = await this.request({ - path: `/api/open-data-conversion/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), - method: 'PUT', - headers: headerParameters, - query: queryParameters, - body: OpenDataConversionRequestToJSON(requestParameters['openDataConversionRequest']), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => OpenDataConversionFromJSON(jsonValue)); - } - - /** - */ - async apiOpenDataConversionUpdate(requestParameters: ApiOpenDataConversionUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.apiOpenDataConversionUpdateRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - */ - async apiOpenDataFDCRetrieveRaw(requestParameters: ApiOpenDataFDCRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling apiOpenDataFDCRetrieve().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication - } - - const response = await this.request({ - path: `/api/open-data-FDC/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.VoidApiResponse(response); - } - - /** - */ - async apiOpenDataFDCRetrieve(requestParameters: ApiOpenDataFDCRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - await this.apiOpenDataFDCRetrieveRaw(requestParameters, initOverrides); - } - - /** - */ - async apiOpenDataFoodCreateRaw(requestParameters: ApiOpenDataFoodCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['openDataFoodRequest'] == null) { - throw new runtime.RequiredError( - 'openDataFoodRequest', - 'Required parameter "openDataFoodRequest" was null or undefined when calling apiOpenDataFoodCreate().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication - } - - const response = await this.request({ - path: `/api/open-data-food/`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: OpenDataFoodRequestToJSON(requestParameters['openDataFoodRequest']), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => OpenDataFoodFromJSON(jsonValue)); - } - - /** - */ - async apiOpenDataFoodCreate(requestParameters: ApiOpenDataFoodCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.apiOpenDataFoodCreateRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - */ - async apiOpenDataFoodDestroyRaw(requestParameters: ApiOpenDataFoodDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling apiOpenDataFoodDestroy().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication - } - - const response = await this.request({ - path: `/api/open-data-food/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), - method: 'DELETE', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.VoidApiResponse(response); - } - - /** - */ - async apiOpenDataFoodDestroy(requestParameters: ApiOpenDataFoodDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - await this.apiOpenDataFoodDestroyRaw(requestParameters, initOverrides); - } - - /** - */ - async apiOpenDataFoodListRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication - } - - const response = await this.request({ - path: `/api/open-data-food/`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(OpenDataFoodFromJSON)); - } - - /** - */ - async apiOpenDataFoodList(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const response = await this.apiOpenDataFoodListRaw(initOverrides); - return await response.value(); - } - - /** - */ - async apiOpenDataFoodPartialUpdateRaw(requestParameters: ApiOpenDataFoodPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling apiOpenDataFoodPartialUpdate().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication - } - - const response = await this.request({ - path: `/api/open-data-food/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), - method: 'PATCH', - headers: headerParameters, - query: queryParameters, - body: PatchedOpenDataFoodRequestToJSON(requestParameters['patchedOpenDataFoodRequest']), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => OpenDataFoodFromJSON(jsonValue)); - } - - /** - */ - async apiOpenDataFoodPartialUpdate(requestParameters: ApiOpenDataFoodPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.apiOpenDataFoodPartialUpdateRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - */ - async apiOpenDataFoodRetrieveRaw(requestParameters: ApiOpenDataFoodRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling apiOpenDataFoodRetrieve().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication - } - - const response = await this.request({ - path: `/api/open-data-food/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => OpenDataFoodFromJSON(jsonValue)); - } - - /** - */ - async apiOpenDataFoodRetrieve(requestParameters: ApiOpenDataFoodRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.apiOpenDataFoodRetrieveRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - */ - async apiOpenDataFoodUpdateRaw(requestParameters: ApiOpenDataFoodUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling apiOpenDataFoodUpdate().' - ); - } - - if (requestParameters['openDataFoodRequest'] == null) { - throw new runtime.RequiredError( - 'openDataFoodRequest', - 'Required parameter "openDataFoodRequest" was null or undefined when calling apiOpenDataFoodUpdate().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication - } - - const response = await this.request({ - path: `/api/open-data-food/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), - method: 'PUT', - headers: headerParameters, - query: queryParameters, - body: OpenDataFoodRequestToJSON(requestParameters['openDataFoodRequest']), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => OpenDataFoodFromJSON(jsonValue)); - } - - /** - */ - async apiOpenDataFoodUpdate(requestParameters: ApiOpenDataFoodUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.apiOpenDataFoodUpdateRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - */ - async apiOpenDataPropertyCreateRaw(requestParameters: ApiOpenDataPropertyCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['openDataPropertyRequest'] == null) { - throw new runtime.RequiredError( - 'openDataPropertyRequest', - 'Required parameter "openDataPropertyRequest" was null or undefined when calling apiOpenDataPropertyCreate().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication - } - - const response = await this.request({ - path: `/api/open-data-property/`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: OpenDataPropertyRequestToJSON(requestParameters['openDataPropertyRequest']), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => OpenDataPropertyFromJSON(jsonValue)); - } - - /** - */ - async apiOpenDataPropertyCreate(requestParameters: ApiOpenDataPropertyCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.apiOpenDataPropertyCreateRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - */ - async apiOpenDataPropertyDestroyRaw(requestParameters: ApiOpenDataPropertyDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling apiOpenDataPropertyDestroy().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication - } - - const response = await this.request({ - path: `/api/open-data-property/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), - method: 'DELETE', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.VoidApiResponse(response); - } - - /** - */ - async apiOpenDataPropertyDestroy(requestParameters: ApiOpenDataPropertyDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - await this.apiOpenDataPropertyDestroyRaw(requestParameters, initOverrides); - } - - /** - */ - async apiOpenDataPropertyListRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication - } - - const response = await this.request({ - path: `/api/open-data-property/`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(OpenDataPropertyFromJSON)); - } - - /** - */ - async apiOpenDataPropertyList(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const response = await this.apiOpenDataPropertyListRaw(initOverrides); - return await response.value(); - } - - /** - */ - async apiOpenDataPropertyPartialUpdateRaw(requestParameters: ApiOpenDataPropertyPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling apiOpenDataPropertyPartialUpdate().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication - } - - const response = await this.request({ - path: `/api/open-data-property/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), - method: 'PATCH', - headers: headerParameters, - query: queryParameters, - body: PatchedOpenDataPropertyRequestToJSON(requestParameters['patchedOpenDataPropertyRequest']), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => OpenDataPropertyFromJSON(jsonValue)); - } - - /** - */ - async apiOpenDataPropertyPartialUpdate(requestParameters: ApiOpenDataPropertyPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.apiOpenDataPropertyPartialUpdateRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - */ - async apiOpenDataPropertyRetrieveRaw(requestParameters: ApiOpenDataPropertyRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling apiOpenDataPropertyRetrieve().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication - } - - const response = await this.request({ - path: `/api/open-data-property/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => OpenDataPropertyFromJSON(jsonValue)); - } - - /** - */ - async apiOpenDataPropertyRetrieve(requestParameters: ApiOpenDataPropertyRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.apiOpenDataPropertyRetrieveRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - */ - async apiOpenDataPropertyUpdateRaw(requestParameters: ApiOpenDataPropertyUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling apiOpenDataPropertyUpdate().' - ); - } - - if (requestParameters['openDataPropertyRequest'] == null) { - throw new runtime.RequiredError( - 'openDataPropertyRequest', - 'Required parameter "openDataPropertyRequest" was null or undefined when calling apiOpenDataPropertyUpdate().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication - } - - const response = await this.request({ - path: `/api/open-data-property/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), - method: 'PUT', - headers: headerParameters, - query: queryParameters, - body: OpenDataPropertyRequestToJSON(requestParameters['openDataPropertyRequest']), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => OpenDataPropertyFromJSON(jsonValue)); - } - - /** - */ - async apiOpenDataPropertyUpdate(requestParameters: ApiOpenDataPropertyUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.apiOpenDataPropertyUpdateRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - */ - async apiOpenDataStatsRetrieveRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication - } - - const response = await this.request({ - path: `/api/open-data-stats/`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.VoidApiResponse(response); - } - - /** - */ - async apiOpenDataStatsRetrieve(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - await this.apiOpenDataStatsRetrieveRaw(initOverrides); - } - - /** - */ - async apiOpenDataStoreCreateRaw(requestParameters: ApiOpenDataStoreCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['openDataStoreRequest'] == null) { - throw new runtime.RequiredError( - 'openDataStoreRequest', - 'Required parameter "openDataStoreRequest" was null or undefined when calling apiOpenDataStoreCreate().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication - } - - const response = await this.request({ - path: `/api/open-data-store/`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: OpenDataStoreRequestToJSON(requestParameters['openDataStoreRequest']), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => OpenDataStoreFromJSON(jsonValue)); - } - - /** - */ - async apiOpenDataStoreCreate(requestParameters: ApiOpenDataStoreCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.apiOpenDataStoreCreateRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - */ - async apiOpenDataStoreDestroyRaw(requestParameters: ApiOpenDataStoreDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling apiOpenDataStoreDestroy().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication - } - - const response = await this.request({ - path: `/api/open-data-store/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), - method: 'DELETE', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.VoidApiResponse(response); - } - - /** - */ - async apiOpenDataStoreDestroy(requestParameters: ApiOpenDataStoreDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - await this.apiOpenDataStoreDestroyRaw(requestParameters, initOverrides); - } - - /** - */ - async apiOpenDataStoreListRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication - } - - const response = await this.request({ - path: `/api/open-data-store/`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(OpenDataStoreFromJSON)); - } - - /** - */ - async apiOpenDataStoreList(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const response = await this.apiOpenDataStoreListRaw(initOverrides); - return await response.value(); - } - - /** - */ - async apiOpenDataStorePartialUpdateRaw(requestParameters: ApiOpenDataStorePartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling apiOpenDataStorePartialUpdate().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication - } - - const response = await this.request({ - path: `/api/open-data-store/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), - method: 'PATCH', - headers: headerParameters, - query: queryParameters, - body: PatchedOpenDataStoreRequestToJSON(requestParameters['patchedOpenDataStoreRequest']), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => OpenDataStoreFromJSON(jsonValue)); - } - - /** - */ - async apiOpenDataStorePartialUpdate(requestParameters: ApiOpenDataStorePartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.apiOpenDataStorePartialUpdateRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - */ - async apiOpenDataStoreRetrieveRaw(requestParameters: ApiOpenDataStoreRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling apiOpenDataStoreRetrieve().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication - } - - const response = await this.request({ - path: `/api/open-data-store/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => OpenDataStoreFromJSON(jsonValue)); - } - - /** - */ - async apiOpenDataStoreRetrieve(requestParameters: ApiOpenDataStoreRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.apiOpenDataStoreRetrieveRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - */ - async apiOpenDataStoreUpdateRaw(requestParameters: ApiOpenDataStoreUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling apiOpenDataStoreUpdate().' - ); - } - - if (requestParameters['openDataStoreRequest'] == null) { - throw new runtime.RequiredError( - 'openDataStoreRequest', - 'Required parameter "openDataStoreRequest" was null or undefined when calling apiOpenDataStoreUpdate().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication - } - - const response = await this.request({ - path: `/api/open-data-store/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), - method: 'PUT', - headers: headerParameters, - query: queryParameters, - body: OpenDataStoreRequestToJSON(requestParameters['openDataStoreRequest']), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => OpenDataStoreFromJSON(jsonValue)); - } - - /** - */ - async apiOpenDataStoreUpdate(requestParameters: ApiOpenDataStoreUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.apiOpenDataStoreUpdateRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - */ - async apiOpenDataUnitCreateRaw(requestParameters: ApiOpenDataUnitCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['openDataUnitRequest'] == null) { - throw new runtime.RequiredError( - 'openDataUnitRequest', - 'Required parameter "openDataUnitRequest" was null or undefined when calling apiOpenDataUnitCreate().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication - } - - const response = await this.request({ - path: `/api/open-data-unit/`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: OpenDataUnitRequestToJSON(requestParameters['openDataUnitRequest']), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => OpenDataUnitFromJSON(jsonValue)); - } - - /** - */ - async apiOpenDataUnitCreate(requestParameters: ApiOpenDataUnitCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.apiOpenDataUnitCreateRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - */ - async apiOpenDataUnitDestroyRaw(requestParameters: ApiOpenDataUnitDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling apiOpenDataUnitDestroy().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication - } - - const response = await this.request({ - path: `/api/open-data-unit/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), - method: 'DELETE', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.VoidApiResponse(response); - } - - /** - */ - async apiOpenDataUnitDestroy(requestParameters: ApiOpenDataUnitDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - await this.apiOpenDataUnitDestroyRaw(requestParameters, initOverrides); - } - - /** - */ - async apiOpenDataUnitListRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication - } - - const response = await this.request({ - path: `/api/open-data-unit/`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(OpenDataUnitFromJSON)); - } - - /** - */ - async apiOpenDataUnitList(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const response = await this.apiOpenDataUnitListRaw(initOverrides); - return await response.value(); - } - - /** - */ - async apiOpenDataUnitPartialUpdateRaw(requestParameters: ApiOpenDataUnitPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling apiOpenDataUnitPartialUpdate().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication - } - - const response = await this.request({ - path: `/api/open-data-unit/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), - method: 'PATCH', - headers: headerParameters, - query: queryParameters, - body: PatchedOpenDataUnitRequestToJSON(requestParameters['patchedOpenDataUnitRequest']), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => OpenDataUnitFromJSON(jsonValue)); - } - - /** - */ - async apiOpenDataUnitPartialUpdate(requestParameters: ApiOpenDataUnitPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.apiOpenDataUnitPartialUpdateRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - */ - async apiOpenDataUnitRetrieveRaw(requestParameters: ApiOpenDataUnitRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling apiOpenDataUnitRetrieve().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication - } - - const response = await this.request({ - path: `/api/open-data-unit/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => OpenDataUnitFromJSON(jsonValue)); - } - - /** - */ - async apiOpenDataUnitRetrieve(requestParameters: ApiOpenDataUnitRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.apiOpenDataUnitRetrieveRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - */ - async apiOpenDataUnitUpdateRaw(requestParameters: ApiOpenDataUnitUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling apiOpenDataUnitUpdate().' - ); - } - - if (requestParameters['openDataUnitRequest'] == null) { - throw new runtime.RequiredError( - 'openDataUnitRequest', - 'Required parameter "openDataUnitRequest" was null or undefined when calling apiOpenDataUnitUpdate().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication - } - - const response = await this.request({ - path: `/api/open-data-unit/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), - method: 'PUT', - headers: headerParameters, - query: queryParameters, - body: OpenDataUnitRequestToJSON(requestParameters['openDataUnitRequest']), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => OpenDataUnitFromJSON(jsonValue)); - } - - /** - */ - async apiOpenDataUnitUpdate(requestParameters: ApiOpenDataUnitUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.apiOpenDataUnitUpdateRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - */ - async apiOpenDataVersionCreateRaw(requestParameters: ApiOpenDataVersionCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['openDataVersionRequest'] == null) { - throw new runtime.RequiredError( - 'openDataVersionRequest', - 'Required parameter "openDataVersionRequest" was null or undefined when calling apiOpenDataVersionCreate().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication - } - - const response = await this.request({ - path: `/api/open-data-version/`, - method: 'POST', - headers: headerParameters, - query: queryParameters, - body: OpenDataVersionRequestToJSON(requestParameters['openDataVersionRequest']), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => OpenDataVersionFromJSON(jsonValue)); - } - - /** - */ - async apiOpenDataVersionCreate(requestParameters: ApiOpenDataVersionCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.apiOpenDataVersionCreateRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - */ - async apiOpenDataVersionDestroyRaw(requestParameters: ApiOpenDataVersionDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling apiOpenDataVersionDestroy().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication - } - - const response = await this.request({ - path: `/api/open-data-version/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), - method: 'DELETE', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.VoidApiResponse(response); - } - - /** - */ - async apiOpenDataVersionDestroy(requestParameters: ApiOpenDataVersionDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - await this.apiOpenDataVersionDestroyRaw(requestParameters, initOverrides); - } - - /** - */ - async apiOpenDataVersionListRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication - } - - const response = await this.request({ - path: `/api/open-data-version/`, - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(OpenDataVersionFromJSON)); - } - - /** - */ - async apiOpenDataVersionList(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const response = await this.apiOpenDataVersionListRaw(initOverrides); - return await response.value(); - } - - /** - */ - async apiOpenDataVersionPartialUpdateRaw(requestParameters: ApiOpenDataVersionPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling apiOpenDataVersionPartialUpdate().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication - } - - const response = await this.request({ - path: `/api/open-data-version/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), - method: 'PATCH', - headers: headerParameters, - query: queryParameters, - body: PatchedOpenDataVersionRequestToJSON(requestParameters['patchedOpenDataVersionRequest']), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => OpenDataVersionFromJSON(jsonValue)); - } - - /** - */ - async apiOpenDataVersionPartialUpdate(requestParameters: ApiOpenDataVersionPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.apiOpenDataVersionPartialUpdateRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - */ - async apiOpenDataVersionRetrieveRaw(requestParameters: ApiOpenDataVersionRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling apiOpenDataVersionRetrieve().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication - } - - const response = await this.request({ - path: `/api/open-data-version/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => OpenDataVersionFromJSON(jsonValue)); - } - - /** - */ - async apiOpenDataVersionRetrieve(requestParameters: ApiOpenDataVersionRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.apiOpenDataVersionRetrieveRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - */ - async apiOpenDataVersionUpdateRaw(requestParameters: ApiOpenDataVersionUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['id'] == null) { - throw new runtime.RequiredError( - 'id', - 'Required parameter "id" was null or undefined when calling apiOpenDataVersionUpdate().' - ); - } - - if (requestParameters['openDataVersionRequest'] == null) { - throw new runtime.RequiredError( - 'openDataVersionRequest', - 'Required parameter "openDataVersionRequest" was null or undefined when calling apiOpenDataVersionUpdate().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - headerParameters['Content-Type'] = 'application/json'; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication - } - - const response = await this.request({ - path: `/api/open-data-version/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))), - method: 'PUT', - headers: headerParameters, - query: queryParameters, - body: OpenDataVersionRequestToJSON(requestParameters['openDataVersionRequest']), - }, initOverrides); - - return new runtime.JSONApiResponse(response, (jsonValue) => OpenDataVersionFromJSON(jsonValue)); - } - - /** - */ - async apiOpenDataVersionUpdate(requestParameters: ApiOpenDataVersionUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - const response = await this.apiOpenDataVersionUpdateRaw(requestParameters, initOverrides); - return await response.value(); - } - - /** - */ - async apiPlanIcalRetrieveRaw(requestParameters: ApiPlanIcalRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - if (requestParameters['fromDate'] == null) { - throw new runtime.RequiredError( - 'fromDate', - 'Required parameter "fromDate" was null or undefined when calling apiPlanIcalRetrieve().' - ); - } - - if (requestParameters['toDate'] == null) { - throw new runtime.RequiredError( - 'toDate', - 'Required parameter "toDate" was null or undefined when calling apiPlanIcalRetrieve().' - ); - } - - const queryParameters: any = {}; - - const headerParameters: runtime.HTTPHeaders = {}; - - if (this.configuration && this.configuration.apiKey) { - headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication - } - - const response = await this.request({ - path: `/api/plan-ical/{fromDate}/{toDate}/`.replace(`{${"fromDate"}}`, encodeURIComponent(String(requestParameters['fromDate']))).replace(`{${"toDate"}}`, encodeURIComponent(String(requestParameters['toDate']))), - method: 'GET', - headers: headerParameters, - query: queryParameters, - }, initOverrides); - - return new runtime.VoidApiResponse(response); - } - - /** - */ - async apiPlanIcalRetrieve(requestParameters: ApiPlanIcalRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - await this.apiPlanIcalRetrieveRaw(requestParameters, initOverrides); - } - /** */ async apiRecipeBookCreateRaw(requestParameters: ApiRecipeBookCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { @@ -7588,7 +6031,6 @@ export class ApiApi extends runtime.BaseAPI { } /** - * list: optional parameters - **recipe**: id of recipe - only return books for that recipe - **book**: id of book - only return recipes in that book */ async apiRecipeBookEntryCreateRaw(requestParameters: ApiRecipeBookEntryCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { if (requestParameters['recipeBookEntryRequest'] == null) { @@ -7620,7 +6062,6 @@ export class ApiApi extends runtime.BaseAPI { } /** - * list: optional parameters - **recipe**: id of recipe - only return books for that recipe - **book**: id of book - only return recipes in that book */ async apiRecipeBookEntryCreate(requestParameters: ApiRecipeBookEntryCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { const response = await this.apiRecipeBookEntryCreateRaw(requestParameters, initOverrides); @@ -7628,7 +6069,6 @@ export class ApiApi extends runtime.BaseAPI { } /** - * list: optional parameters - **recipe**: id of recipe - only return books for that recipe - **book**: id of book - only return recipes in that book */ async apiRecipeBookEntryDestroyRaw(requestParameters: ApiRecipeBookEntryDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { if (requestParameters['id'] == null) { @@ -7657,18 +6097,32 @@ export class ApiApi extends runtime.BaseAPI { } /** - * list: optional parameters - **recipe**: id of recipe - only return books for that recipe - **book**: id of book - only return recipes in that book */ async apiRecipeBookEntryDestroy(requestParameters: ApiRecipeBookEntryDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { await this.apiRecipeBookEntryDestroyRaw(requestParameters, initOverrides); } /** - * list: optional parameters - **recipe**: id of recipe - only return books for that recipe - **book**: id of book - only return recipes in that book */ - async apiRecipeBookEntryListRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { + async apiRecipeBookEntryListRaw(requestParameters: ApiRecipeBookEntryListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { const queryParameters: any = {}; + if (requestParameters['book'] != null) { + queryParameters['book'] = requestParameters['book']; + } + + if (requestParameters['page'] != null) { + queryParameters['page'] = requestParameters['page']; + } + + if (requestParameters['pageSize'] != null) { + queryParameters['page_size'] = requestParameters['pageSize']; + } + + if (requestParameters['recipe'] != null) { + queryParameters['recipe'] = requestParameters['recipe']; + } + const headerParameters: runtime.HTTPHeaders = {}; if (this.configuration && this.configuration.apiKey) { @@ -7682,19 +6136,17 @@ export class ApiApi extends runtime.BaseAPI { query: queryParameters, }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(RecipeBookEntryFromJSON)); + return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedRecipeBookEntryListFromJSON(jsonValue)); } /** - * list: optional parameters - **recipe**: id of recipe - only return books for that recipe - **book**: id of book - only return recipes in that book */ - async apiRecipeBookEntryList(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const response = await this.apiRecipeBookEntryListRaw(initOverrides); + async apiRecipeBookEntryList(requestParameters: ApiRecipeBookEntryListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.apiRecipeBookEntryListRaw(requestParameters, initOverrides); return await response.value(); } /** - * list: optional parameters - **recipe**: id of recipe - only return books for that recipe - **book**: id of book - only return recipes in that book */ async apiRecipeBookEntryPartialUpdateRaw(requestParameters: ApiRecipeBookEntryPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { if (requestParameters['id'] == null) { @@ -7726,7 +6178,6 @@ export class ApiApi extends runtime.BaseAPI { } /** - * list: optional parameters - **recipe**: id of recipe - only return books for that recipe - **book**: id of book - only return recipes in that book */ async apiRecipeBookEntryPartialUpdate(requestParameters: ApiRecipeBookEntryPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { const response = await this.apiRecipeBookEntryPartialUpdateRaw(requestParameters, initOverrides); @@ -7734,7 +6185,6 @@ export class ApiApi extends runtime.BaseAPI { } /** - * list: optional parameters - **recipe**: id of recipe - only return books for that recipe - **book**: id of book - only return recipes in that book */ async apiRecipeBookEntryRetrieveRaw(requestParameters: ApiRecipeBookEntryRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { if (requestParameters['id'] == null) { @@ -7763,7 +6213,6 @@ export class ApiApi extends runtime.BaseAPI { } /** - * list: optional parameters - **recipe**: id of recipe - only return books for that recipe - **book**: id of book - only return recipes in that book */ async apiRecipeBookEntryRetrieve(requestParameters: ApiRecipeBookEntryRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { const response = await this.apiRecipeBookEntryRetrieveRaw(requestParameters, initOverrides); @@ -7771,7 +6220,6 @@ export class ApiApi extends runtime.BaseAPI { } /** - * list: optional parameters - **recipe**: id of recipe - only return books for that recipe - **book**: id of book - only return recipes in that book */ async apiRecipeBookEntryUpdateRaw(requestParameters: ApiRecipeBookEntryUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { if (requestParameters['id'] == null) { @@ -7810,7 +6258,6 @@ export class ApiApi extends runtime.BaseAPI { } /** - * list: optional parameters - **recipe**: id of recipe - only return books for that recipe - **book**: id of book - only return recipes in that book */ async apiRecipeBookEntryUpdate(requestParameters: ApiRecipeBookEntryUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { const response = await this.apiRecipeBookEntryUpdateRaw(requestParameters, initOverrides); @@ -7819,13 +6266,29 @@ export class ApiApi extends runtime.BaseAPI { /** */ - async apiRecipeBookListRaw(requestParameters: ApiRecipeBookListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { + async apiRecipeBookListRaw(requestParameters: ApiRecipeBookListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { const queryParameters: any = {}; if (requestParameters['limit'] != null) { queryParameters['limit'] = requestParameters['limit']; } + if (requestParameters['orderDirection'] != null) { + queryParameters['order_direction'] = requestParameters['orderDirection']; + } + + if (requestParameters['orderField'] != null) { + queryParameters['order_field'] = requestParameters['orderField']; + } + + if (requestParameters['page'] != null) { + queryParameters['page'] = requestParameters['page']; + } + + if (requestParameters['pageSize'] != null) { + queryParameters['page_size'] = requestParameters['pageSize']; + } + if (requestParameters['query'] != null) { queryParameters['query'] = requestParameters['query']; } @@ -7851,12 +6314,12 @@ export class ApiApi extends runtime.BaseAPI { query: queryParameters, }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(RecipeBookFromJSON)); + return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedRecipeBookListFromJSON(jsonValue)); } /** */ - async apiRecipeBookList(requestParameters: ApiRecipeBookListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + async apiRecipeBookList(requestParameters: ApiRecipeBookListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { const response = await this.apiRecipeBookListRaw(requestParameters, initOverrides); return await response.value(); } @@ -8506,7 +6969,7 @@ export class ApiApi extends runtime.BaseAPI { /** * function to reset inheritance from api, see food method for docs */ - async apiResetFoodInheritanceRetrieveRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + async apiResetFoodInheritanceCreateRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; @@ -8517,7 +6980,7 @@ export class ApiApi extends runtime.BaseAPI { const response = await this.request({ path: `/api/reset-food-inheritance/`, - method: 'GET', + method: 'POST', headers: headerParameters, query: queryParameters, }, initOverrides); @@ -8528,13 +6991,13 @@ export class ApiApi extends runtime.BaseAPI { /** * function to reset inheritance from api, see food method for docs */ - async apiResetFoodInheritanceRetrieve(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - await this.apiResetFoodInheritanceRetrieveRaw(initOverrides); + async apiResetFoodInheritanceCreate(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + await this.apiResetFoodInheritanceCreateRaw(initOverrides); } /** */ - async apiShareLinkRetrieveRaw(requestParameters: ApiShareLinkRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + async apiShareLinkRetrieveRaw(requestParameters: ApiShareLinkRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { if (requestParameters['id'] == null) { throw new runtime.RequiredError( 'id', @@ -8557,13 +7020,14 @@ export class ApiApi extends runtime.BaseAPI { query: queryParameters, }, initOverrides); - return new runtime.VoidApiResponse(response); + return new runtime.JSONApiResponse(response, (jsonValue) => ShareLinkFromJSON(jsonValue)); } /** */ - async apiShareLinkRetrieve(requestParameters: ApiShareLinkRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { - await this.apiShareLinkRetrieveRaw(requestParameters, initOverrides); + async apiShareLinkRetrieve(requestParameters: ApiShareLinkRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.apiShareLinkRetrieveRaw(requestParameters, initOverrides); + return await response.value(); } /** @@ -8678,7 +7142,7 @@ export class ApiApi extends runtime.BaseAPI { /** */ - async apiShoppingListEntryListRaw(requestParameters: ApiShoppingListEntryListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { + async apiShoppingListEntryListRaw(requestParameters: ApiShoppingListEntryListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { const queryParameters: any = {}; if (requestParameters['checked'] != null) { @@ -8689,6 +7153,14 @@ export class ApiApi extends runtime.BaseAPI { queryParameters['id'] = requestParameters['id']; } + if (requestParameters['page'] != null) { + queryParameters['page'] = requestParameters['page']; + } + + if (requestParameters['pageSize'] != null) { + queryParameters['page_size'] = requestParameters['pageSize']; + } + if (requestParameters['supermarket'] != null) { queryParameters['supermarket'] = requestParameters['supermarket']; } @@ -8706,12 +7178,12 @@ export class ApiApi extends runtime.BaseAPI { query: queryParameters, }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ShoppingListEntryFromJSON)); + return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedShoppingListEntryListFromJSON(jsonValue)); } /** */ - async apiShoppingListEntryList(requestParameters: ApiShoppingListEntryListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + async apiShoppingListEntryList(requestParameters: ApiShoppingListEntryListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { const response = await this.apiShoppingListEntryListRaw(requestParameters, initOverrides); return await response.value(); } @@ -8908,9 +7380,17 @@ export class ApiApi extends runtime.BaseAPI { /** */ - async apiShoppingListRecipeListRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { + async apiShoppingListRecipeListRaw(requestParameters: ApiShoppingListRecipeListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { const queryParameters: any = {}; + if (requestParameters['page'] != null) { + queryParameters['page'] = requestParameters['page']; + } + + if (requestParameters['pageSize'] != null) { + queryParameters['page_size'] = requestParameters['pageSize']; + } + const headerParameters: runtime.HTTPHeaders = {}; if (this.configuration && this.configuration.apiKey) { @@ -8924,13 +7404,13 @@ export class ApiApi extends runtime.BaseAPI { query: queryParameters, }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ShoppingListRecipeFromJSON)); + return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedShoppingListRecipeListFromJSON(jsonValue)); } /** */ - async apiShoppingListRecipeList(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const response = await this.apiShoppingListRecipeListRaw(initOverrides); + async apiShoppingListRecipeList(requestParameters: ApiShoppingListRecipeListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.apiShoppingListRecipeListRaw(requestParameters, initOverrides); return await response.value(); } @@ -9679,13 +8159,21 @@ export class ApiApi extends runtime.BaseAPI { /** */ - async apiSupermarketCategoryListRaw(requestParameters: ApiSupermarketCategoryListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { + async apiSupermarketCategoryListRaw(requestParameters: ApiSupermarketCategoryListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { const queryParameters: any = {}; if (requestParameters['limit'] != null) { queryParameters['limit'] = requestParameters['limit']; } + if (requestParameters['page'] != null) { + queryParameters['page'] = requestParameters['page']; + } + + if (requestParameters['pageSize'] != null) { + queryParameters['page_size'] = requestParameters['pageSize']; + } + if (requestParameters['query'] != null) { queryParameters['query'] = requestParameters['query']; } @@ -9711,12 +8199,12 @@ export class ApiApi extends runtime.BaseAPI { query: queryParameters, }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(SupermarketCategoryFromJSON)); + return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedSupermarketCategoryListFromJSON(jsonValue)); } /** */ - async apiSupermarketCategoryList(requestParameters: ApiSupermarketCategoryListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + async apiSupermarketCategoryList(requestParameters: ApiSupermarketCategoryListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { const response = await this.apiSupermarketCategoryListRaw(requestParameters, initOverrides); return await response.value(); } @@ -10207,13 +8695,21 @@ export class ApiApi extends runtime.BaseAPI { /** */ - async apiSupermarketListRaw(requestParameters: ApiSupermarketListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { + async apiSupermarketListRaw(requestParameters: ApiSupermarketListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { const queryParameters: any = {}; if (requestParameters['limit'] != null) { queryParameters['limit'] = requestParameters['limit']; } + if (requestParameters['page'] != null) { + queryParameters['page'] = requestParameters['page']; + } + + if (requestParameters['pageSize'] != null) { + queryParameters['page_size'] = requestParameters['pageSize']; + } + if (requestParameters['query'] != null) { queryParameters['query'] = requestParameters['query']; } @@ -10239,12 +8735,12 @@ export class ApiApi extends runtime.BaseAPI { query: queryParameters, }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(SupermarketFromJSON)); + return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedSupermarketListFromJSON(jsonValue)); } /** */ - async apiSupermarketList(requestParameters: ApiSupermarketListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + async apiSupermarketList(requestParameters: ApiSupermarketListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { const response = await this.apiSupermarketListRaw(requestParameters, initOverrides); return await response.value(); } @@ -10477,9 +8973,17 @@ export class ApiApi extends runtime.BaseAPI { /** */ - async apiSyncListRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { + async apiSyncListRaw(requestParameters: ApiSyncListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { const queryParameters: any = {}; + if (requestParameters['page'] != null) { + queryParameters['page'] = requestParameters['page']; + } + + if (requestParameters['pageSize'] != null) { + queryParameters['page_size'] = requestParameters['pageSize']; + } + const headerParameters: runtime.HTTPHeaders = {}; if (this.configuration && this.configuration.apiKey) { @@ -10493,13 +8997,13 @@ export class ApiApi extends runtime.BaseAPI { query: queryParameters, }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(SyncFromJSON)); + return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedSyncListFromJSON(jsonValue)); } /** */ - async apiSyncList(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const response = await this.apiSyncListRaw(initOverrides); + async apiSyncList(requestParameters: ApiSyncListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { + const response = await this.apiSyncListRaw(requestParameters, initOverrides); return await response.value(); } @@ -10766,13 +9270,21 @@ export class ApiApi extends runtime.BaseAPI { /** */ - async apiUnitConversionListRaw(requestParameters: ApiUnitConversionListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { + async apiUnitConversionListRaw(requestParameters: ApiUnitConversionListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { const queryParameters: any = {}; if (requestParameters['foodId'] != null) { queryParameters['food_id'] = requestParameters['foodId']; } + if (requestParameters['page'] != null) { + queryParameters['page'] = requestParameters['page']; + } + + if (requestParameters['pageSize'] != null) { + queryParameters['page_size'] = requestParameters['pageSize']; + } + const headerParameters: runtime.HTTPHeaders = {}; if (this.configuration && this.configuration.apiKey) { @@ -10786,12 +9298,12 @@ export class ApiApi extends runtime.BaseAPI { query: queryParameters, }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(UnitConversionFromJSON)); + return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedUnitConversionListFromJSON(jsonValue)); } /** */ - async apiUnitConversionList(requestParameters: ApiUnitConversionListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + async apiUnitConversionList(requestParameters: ApiUnitConversionListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { const response = await this.apiUnitConversionListRaw(requestParameters, initOverrides); return await response.value(); } @@ -11315,13 +9827,21 @@ export class ApiApi extends runtime.BaseAPI { /** */ - async apiUserFileListRaw(requestParameters: ApiUserFileListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { + async apiUserFileListRaw(requestParameters: ApiUserFileListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { const queryParameters: any = {}; if (requestParameters['limit'] != null) { queryParameters['limit'] = requestParameters['limit']; } + if (requestParameters['page'] != null) { + queryParameters['page'] = requestParameters['page']; + } + + if (requestParameters['pageSize'] != null) { + queryParameters['page_size'] = requestParameters['pageSize']; + } + if (requestParameters['query'] != null) { queryParameters['query'] = requestParameters['query']; } @@ -11347,12 +9867,12 @@ export class ApiApi extends runtime.BaseAPI { query: queryParameters, }, initOverrides); - return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(UserFileFromJSON)); + return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedUserFileListFromJSON(jsonValue)); } /** */ - async apiUserFileList(requestParameters: ApiUserFileListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + async apiUserFileList(requestParameters: ApiUserFileListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { const response = await this.apiUserFileListRaw(requestParameters, initOverrides); return await response.value(); } @@ -11535,11 +10055,14 @@ export class ApiApi extends runtime.BaseAPI { } /** - * list: optional parameters - **filter_list**: array of user id\'s to get names for */ - async apiUserListRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { + async apiUserListRaw(requestParameters: ApiUserListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> { const queryParameters: any = {}; + if (requestParameters['filterList'] != null) { + queryParameters['filter_list'] = requestParameters['filterList']; + } + const headerParameters: runtime.HTTPHeaders = {}; if (this.configuration && this.configuration.apiKey) { @@ -11557,15 +10080,13 @@ export class ApiApi extends runtime.BaseAPI { } /** - * list: optional parameters - **filter_list**: array of user id\'s to get names for */ - async apiUserList(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { - const response = await this.apiUserListRaw(initOverrides); + async apiUserList(requestParameters: ApiUserListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { + const response = await this.apiUserListRaw(requestParameters, initOverrides); return await response.value(); } /** - * list: optional parameters - **filter_list**: array of user id\'s to get names for */ async apiUserPartialUpdateRaw(requestParameters: ApiUserPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { if (requestParameters['id'] == null) { @@ -11597,7 +10118,6 @@ export class ApiApi extends runtime.BaseAPI { } /** - * list: optional parameters - **filter_list**: array of user id\'s to get names for */ async apiUserPartialUpdate(requestParameters: ApiUserPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { const response = await this.apiUserPartialUpdateRaw(requestParameters, initOverrides); @@ -11706,7 +10226,6 @@ export class ApiApi extends runtime.BaseAPI { } /** - * list: optional parameters - **filter_list**: array of user id\'s to get names for */ async apiUserRetrieveRaw(requestParameters: ApiUserRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { if (requestParameters['id'] == null) { @@ -11735,7 +10254,6 @@ export class ApiApi extends runtime.BaseAPI { } /** - * list: optional parameters - **filter_list**: array of user id\'s to get names for */ async apiUserRetrieve(requestParameters: ApiUserRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise { const response = await this.apiUserRetrieveRaw(requestParameters, initOverrides); @@ -11781,6 +10299,10 @@ export class ApiApi extends runtime.BaseAPI { async apiUserSpaceListRaw(requestParameters: ApiUserSpaceListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> { const queryParameters: any = {}; + if (requestParameters['internalNote'] != null) { + queryParameters['internal_note'] = requestParameters['internalNote']; + } + if (requestParameters['page'] != null) { queryParameters['page'] = requestParameters['page']; } @@ -12112,3 +10634,57 @@ export class ApiApi extends runtime.BaseAPI { } } + +/** + * @export + */ +export const ApiAutomationListTypeEnum = { + DescriptionReplace: 'DESCRIPTION_REPLACE', + FoodAlias: 'FOOD_ALIAS', + FoodReplace: 'FOOD_REPLACE', + InstructionReplace: 'INSTRUCTION_REPLACE', + KeywordAlias: 'KEYWORD_ALIAS', + NameReplace: 'NAME_REPLACE', + NeverUnit: 'NEVER_UNIT', + TransposeWords: 'TRANSPOSE_WORDS', + UnitAlias: 'UNIT_ALIAS', + UnitReplace: 'UNIT_REPLACE' +} as const; +export type ApiAutomationListTypeEnum = typeof ApiAutomationListTypeEnum[keyof typeof ApiAutomationListTypeEnum]; +/** + * @export + */ +export const ApiCustomFilterListTypeEnum = { + Food: 'FOOD', + Keyword: 'KEYWORD', + Recipe: 'RECIPE' +} as const; +export type ApiCustomFilterListTypeEnum = typeof ApiCustomFilterListTypeEnum[keyof typeof ApiCustomFilterListTypeEnum]; +/** + * @export + */ +export const ApiFoodPropertyTypeListCategoryEnum = { + Allergen: 'ALLERGEN', + Goal: 'GOAL', + Nutrition: 'NUTRITION', + Other: 'OTHER', + Price: 'PRICE' +} as const; +export type ApiFoodPropertyTypeListCategoryEnum = typeof ApiFoodPropertyTypeListCategoryEnum[keyof typeof ApiFoodPropertyTypeListCategoryEnum]; +/** + * @export + */ +export const ApiRecipeBookListOrderDirectionEnum = { + Asc: 'asc', + Desc: 'desc' +} as const; +export type ApiRecipeBookListOrderDirectionEnum = typeof ApiRecipeBookListOrderDirectionEnum[keyof typeof ApiRecipeBookListOrderDirectionEnum]; +/** + * @export + */ +export const ApiRecipeBookListOrderFieldEnum = { + Id: 'id', + Name: 'name', + Order: 'order' +} as const; +export type ApiRecipeBookListOrderFieldEnum = typeof ApiRecipeBookListOrderFieldEnum[keyof typeof ApiRecipeBookListOrderFieldEnum]; diff --git a/vue3/src/openapi/models/AutoMealPlan.ts b/vue3/src/openapi/models/AutoMealPlan.ts new file mode 100644 index 000000000..e303ea1a6 --- /dev/null +++ b/vue3/src/openapi/models/AutoMealPlan.ts @@ -0,0 +1,121 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 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 + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { User } from './User'; +import { + UserFromJSON, + UserFromJSONTyped, + UserToJSON, +} from './User'; + +/** + * + * @export + * @interface AutoMealPlan + */ +export interface AutoMealPlan { + /** + * + * @type {Date} + * @memberof AutoMealPlan + */ + startDate: Date; + /** + * + * @type {Date} + * @memberof AutoMealPlan + */ + endDate: Date; + /** + * + * @type {number} + * @memberof AutoMealPlan + */ + mealTypeId: number; + /** + * + * @type {Array} + * @memberof AutoMealPlan + */ + keywordIds: Array; + /** + * + * @type {number} + * @memberof AutoMealPlan + */ + servings: number; + /** + * + * @type {Array} + * @memberof AutoMealPlan + */ + shared?: Array; + /** + * + * @type {boolean} + * @memberof AutoMealPlan + */ + addshopping: boolean; +} + +/** + * Check if a given object implements the AutoMealPlan interface. + */ +export function instanceOfAutoMealPlan(value: object): boolean { + if (!('startDate' in value)) return false; + if (!('endDate' in value)) return false; + if (!('mealTypeId' in value)) return false; + if (!('keywordIds' in value)) return false; + if (!('servings' in value)) return false; + if (!('addshopping' in value)) return false; + return true; +} + +export function AutoMealPlanFromJSON(json: any): AutoMealPlan { + return AutoMealPlanFromJSONTyped(json, false); +} + +export function AutoMealPlanFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutoMealPlan { + if (json == null) { + return json; + } + return { + + 'startDate': (new Date(json['start_date'])), + 'endDate': (new Date(json['end_date'])), + 'mealTypeId': json['meal_type_id'], + 'keywordIds': json['keyword_ids'], + 'servings': json['servings'], + 'shared': json['shared'] == null ? undefined : ((json['shared'] as Array).map(UserFromJSON)), + 'addshopping': json['addshopping'], + }; +} + +export function AutoMealPlanToJSON(value?: AutoMealPlan | null): any { + if (value == null) { + return value; + } + return { + + 'start_date': ((value['startDate']).toISOString().substring(0,10)), + 'end_date': ((value['endDate']).toISOString().substring(0,10)), + 'meal_type_id': value['mealTypeId'], + 'keyword_ids': value['keywordIds'], + 'servings': value['servings'], + 'shared': value['shared'] == null ? undefined : ((value['shared'] as Array).map(UserToJSON)), + 'addshopping': value['addshopping'], + }; +} + diff --git a/vue3/src/openapi/models/AutoMealPlanRequest.ts b/vue3/src/openapi/models/AutoMealPlanRequest.ts new file mode 100644 index 000000000..d781a35dc --- /dev/null +++ b/vue3/src/openapi/models/AutoMealPlanRequest.ts @@ -0,0 +1,121 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 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 + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { UserRequest } from './UserRequest'; +import { + UserRequestFromJSON, + UserRequestFromJSONTyped, + UserRequestToJSON, +} from './UserRequest'; + +/** + * + * @export + * @interface AutoMealPlanRequest + */ +export interface AutoMealPlanRequest { + /** + * + * @type {Date} + * @memberof AutoMealPlanRequest + */ + startDate: Date; + /** + * + * @type {Date} + * @memberof AutoMealPlanRequest + */ + endDate: Date; + /** + * + * @type {number} + * @memberof AutoMealPlanRequest + */ + mealTypeId: number; + /** + * + * @type {Array} + * @memberof AutoMealPlanRequest + */ + keywordIds: Array; + /** + * + * @type {number} + * @memberof AutoMealPlanRequest + */ + servings: number; + /** + * + * @type {Array} + * @memberof AutoMealPlanRequest + */ + shared?: Array; + /** + * + * @type {boolean} + * @memberof AutoMealPlanRequest + */ + addshopping: boolean; +} + +/** + * Check if a given object implements the AutoMealPlanRequest interface. + */ +export function instanceOfAutoMealPlanRequest(value: object): boolean { + if (!('startDate' in value)) return false; + if (!('endDate' in value)) return false; + if (!('mealTypeId' in value)) return false; + if (!('keywordIds' in value)) return false; + if (!('servings' in value)) return false; + if (!('addshopping' in value)) return false; + return true; +} + +export function AutoMealPlanRequestFromJSON(json: any): AutoMealPlanRequest { + return AutoMealPlanRequestFromJSONTyped(json, false); +} + +export function AutoMealPlanRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutoMealPlanRequest { + if (json == null) { + return json; + } + return { + + 'startDate': (new Date(json['start_date'])), + 'endDate': (new Date(json['end_date'])), + 'mealTypeId': json['meal_type_id'], + 'keywordIds': json['keyword_ids'], + 'servings': json['servings'], + 'shared': json['shared'] == null ? undefined : ((json['shared'] as Array).map(UserRequestFromJSON)), + 'addshopping': json['addshopping'], + }; +} + +export function AutoMealPlanRequestToJSON(value?: AutoMealPlanRequest | null): any { + if (value == null) { + return value; + } + return { + + 'start_date': ((value['startDate']).toISOString().substring(0,10)), + 'end_date': ((value['endDate']).toISOString().substring(0,10)), + 'meal_type_id': value['mealTypeId'], + 'keyword_ids': value['keywordIds'], + 'servings': value['servings'], + 'shared': value['shared'] == null ? undefined : ((value['shared'] as Array).map(UserRequestToJSON)), + 'addshopping': value['addshopping'], + }; +} + diff --git a/vue3/src/openapi/models/Automation.ts b/vue3/src/openapi/models/Automation.ts index f2513221f..cf70b55ff 100644 --- a/vue3/src/openapi/models/Automation.ts +++ b/vue3/src/openapi/models/Automation.ts @@ -13,12 +13,12 @@ */ import { mapValues } from '../runtime'; -import type { AutomationTypeEnum } from './AutomationTypeEnum'; +import type { TypeEnum } from './TypeEnum'; import { - AutomationTypeEnumFromJSON, - AutomationTypeEnumFromJSONTyped, - AutomationTypeEnumToJSON, -} from './AutomationTypeEnum'; + TypeEnumFromJSON, + TypeEnumFromJSONTyped, + TypeEnumToJSON, +} from './TypeEnum'; /** * @@ -34,10 +34,10 @@ export interface Automation { readonly id: number; /** * - * @type {AutomationTypeEnum} + * @type {TypeEnum} * @memberof Automation */ - type: AutomationTypeEnum; + type: TypeEnum; /** * * @type {string} @@ -109,7 +109,7 @@ export function AutomationFromJSONTyped(json: any, ignoreDiscriminator: boolean) return { 'id': json['id'], - 'type': AutomationTypeEnumFromJSON(json['type']), + 'type': TypeEnumFromJSON(json['type']), 'name': json['name'] == null ? undefined : json['name'], 'description': json['description'] == null ? undefined : json['description'], 'param1': json['param_1'] == null ? undefined : json['param_1'], @@ -127,7 +127,7 @@ export function AutomationToJSON(value?: Automation | null): any { } return { - 'type': AutomationTypeEnumToJSON(value['type']), + 'type': TypeEnumToJSON(value['type']), 'name': value['name'], 'description': value['description'], 'param_1': value['param1'], diff --git a/vue3/src/openapi/models/AutomationRequest.ts b/vue3/src/openapi/models/AutomationRequest.ts index f9d12ad92..09e09e419 100644 --- a/vue3/src/openapi/models/AutomationRequest.ts +++ b/vue3/src/openapi/models/AutomationRequest.ts @@ -13,12 +13,12 @@ */ import { mapValues } from '../runtime'; -import type { AutomationTypeEnum } from './AutomationTypeEnum'; +import type { TypeEnum } from './TypeEnum'; import { - AutomationTypeEnumFromJSON, - AutomationTypeEnumFromJSONTyped, - AutomationTypeEnumToJSON, -} from './AutomationTypeEnum'; + TypeEnumFromJSON, + TypeEnumFromJSONTyped, + TypeEnumToJSON, +} from './TypeEnum'; /** * @@ -28,10 +28,10 @@ import { export interface AutomationRequest { /** * - * @type {AutomationTypeEnum} + * @type {TypeEnum} * @memberof AutomationRequest */ - type: AutomationTypeEnum; + type: TypeEnum; /** * * @type {string} @@ -100,7 +100,7 @@ export function AutomationRequestFromJSONTyped(json: any, ignoreDiscriminator: b } return { - 'type': AutomationTypeEnumFromJSON(json['type']), + 'type': TypeEnumFromJSON(json['type']), 'name': json['name'] == null ? undefined : json['name'], 'description': json['description'] == null ? undefined : json['description'], 'param1': json['param_1'] == null ? undefined : json['param_1'], @@ -118,7 +118,7 @@ export function AutomationRequestToJSON(value?: AutomationRequest | null): any { } return { - 'type': AutomationTypeEnumToJSON(value['type']), + 'type': TypeEnumToJSON(value['type']), 'name': value['name'], 'description': value['description'], 'param_1': value['param1'], diff --git a/vue3/src/openapi/models/Food.ts b/vue3/src/openapi/models/Food.ts index f6404b2e7..9513da241 100644 --- a/vue3/src/openapi/models/Food.ts +++ b/vue3/src/openapi/models/Food.ts @@ -140,10 +140,10 @@ export interface Food { properties?: Array; /** * - * @type {string} + * @type {number} * @memberof Food */ - propertiesFoodAmount?: string; + propertiesFoodAmount?: number; /** * * @type {Unit} @@ -158,10 +158,10 @@ export interface Food { fdcId?: number; /** * - * @type {string} + * @type {boolean} * @memberof Food */ - foodOnhand?: string; + foodOnhand?: boolean; /** * * @type {SupermarketCategory} @@ -170,10 +170,10 @@ export interface Food { supermarketCategory?: SupermarketCategory; /** * - * @type {string} + * @type {number} * @memberof Food */ - readonly parent: string; + readonly parent: number; /** * * @type {number} @@ -187,7 +187,8 @@ export interface Food { */ inheritFields?: Array; /** - * + * Returns a string representation of a tree node and it's ancestors, + * e.g. 'Cuisine > Asian > Chinese > Catonese'. * @type {string} * @memberof Food */ @@ -218,10 +219,10 @@ export interface Food { substituteChildren?: boolean; /** * - * @type {string} + * @type {boolean} * @memberof Food */ - readonly substituteOnhand: string; + readonly substituteOnhand: boolean; /** * * @type {Array} diff --git a/vue3/src/openapi/models/FoodRequest.ts b/vue3/src/openapi/models/FoodRequest.ts index 8d411183c..b2fcce0fa 100644 --- a/vue3/src/openapi/models/FoodRequest.ts +++ b/vue3/src/openapi/models/FoodRequest.ts @@ -128,10 +128,10 @@ export interface FoodRequest { properties?: Array; /** * - * @type {string} + * @type {number} * @memberof FoodRequest */ - propertiesFoodAmount?: string; + propertiesFoodAmount?: number; /** * * @type {UnitRequest} @@ -146,10 +146,10 @@ export interface FoodRequest { fdcId?: number; /** * - * @type {string} + * @type {boolean} * @memberof FoodRequest */ - foodOnhand?: string; + foodOnhand?: boolean; /** * * @type {SupermarketCategoryRequest} diff --git a/vue3/src/openapi/models/Ingredient.ts b/vue3/src/openapi/models/Ingredient.ts index 64289f4d4..2b2818b65 100644 --- a/vue3/src/openapi/models/Ingredient.ts +++ b/vue3/src/openapi/models/Ingredient.ts @@ -52,16 +52,16 @@ export interface Ingredient { unit: Unit | null; /** * - * @type {string} + * @type {number} * @memberof Ingredient */ - amount: string; + amount: number; /** * - * @type {string} + * @type {Array} * @memberof Ingredient */ - readonly conversions: string; + readonly conversions: Array; /** * * @type {string} @@ -94,10 +94,10 @@ export interface Ingredient { originalText?: string; /** * - * @type {string} + * @type {Array} * @memberof Ingredient */ - readonly usedInRecipes: string; + readonly usedInRecipes: Array; /** * * @type {boolean} diff --git a/vue3/src/openapi/models/IngredientRequest.ts b/vue3/src/openapi/models/IngredientRequest.ts index 151545ae5..0a1f2c1f3 100644 --- a/vue3/src/openapi/models/IngredientRequest.ts +++ b/vue3/src/openapi/models/IngredientRequest.ts @@ -46,10 +46,10 @@ export interface IngredientRequest { unit: UnitRequest | null; /** * - * @type {string} + * @type {number} * @memberof IngredientRequest */ - amount: string; + amount: number; /** * * @type {string} diff --git a/vue3/src/openapi/models/IngredientStringRequest.ts b/vue3/src/openapi/models/IngredientStringRequest.ts new file mode 100644 index 000000000..a14bbca19 --- /dev/null +++ b/vue3/src/openapi/models/IngredientStringRequest.ts @@ -0,0 +1,61 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 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 + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface IngredientStringRequest + */ +export interface IngredientStringRequest { + /** + * + * @type {string} + * @memberof IngredientStringRequest + */ + text: string; +} + +/** + * Check if a given object implements the IngredientStringRequest interface. + */ +export function instanceOfIngredientStringRequest(value: object): boolean { + if (!('text' in value)) return false; + return true; +} + +export function IngredientStringRequestFromJSON(json: any): IngredientStringRequest { + return IngredientStringRequestFromJSONTyped(json, false); +} + +export function IngredientStringRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): IngredientStringRequest { + if (json == null) { + return json; + } + return { + + 'text': json['text'], + }; +} + +export function IngredientStringRequestToJSON(value?: IngredientStringRequest | null): any { + if (value == null) { + return value; + } + return { + + 'text': value['text'], + }; +} + diff --git a/vue3/src/openapi/models/Keyword.ts b/vue3/src/openapi/models/Keyword.ts index 502711663..7327b53a2 100644 --- a/vue3/src/openapi/models/Keyword.ts +++ b/vue3/src/openapi/models/Keyword.ts @@ -79,10 +79,10 @@ export interface Keyword { description?: string; /** * - * @type {string} + * @type {number} * @memberof Keyword */ - readonly parent: string; + readonly parent: number; /** * * @type {number} @@ -102,7 +102,8 @@ export interface Keyword { */ readonly updatedAt: Date; /** - * + * Returns a string representation of a tree node and it's ancestors, + * e.g. 'Cuisine > Asian > Chinese > Catonese'. * @type {string} * @memberof Keyword */ diff --git a/vue3/src/openapi/models/MealPlan.ts b/vue3/src/openapi/models/MealPlan.ts index 0a64d8178..c2a07892f 100644 --- a/vue3/src/openapi/models/MealPlan.ts +++ b/vue3/src/openapi/models/MealPlan.ts @@ -58,10 +58,10 @@ export interface MealPlan { recipe?: RecipeOverview; /** * - * @type {string} + * @type {number} * @memberof MealPlan */ - servings: string; + servings: number; /** * * @type {string} @@ -118,10 +118,10 @@ export interface MealPlan { readonly mealTypeName: string; /** * - * @type {string} + * @type {boolean} * @memberof MealPlan */ - readonly shopping: string; + readonly shopping: boolean; } /** diff --git a/vue3/src/openapi/models/MealPlanRequest.ts b/vue3/src/openapi/models/MealPlanRequest.ts index 5b6e0511e..21df90979 100644 --- a/vue3/src/openapi/models/MealPlanRequest.ts +++ b/vue3/src/openapi/models/MealPlanRequest.ts @@ -52,10 +52,10 @@ export interface MealPlanRequest { recipe?: RecipeOverviewRequest; /** * - * @type {string} + * @type {number} * @memberof MealPlanRequest */ - servings: string; + servings: number; /** * * @type {string} diff --git a/vue3/src/openapi/models/NutritionInformation.ts b/vue3/src/openapi/models/NutritionInformation.ts index ccd7aecdf..d41a81016 100644 --- a/vue3/src/openapi/models/NutritionInformation.ts +++ b/vue3/src/openapi/models/NutritionInformation.ts @@ -27,28 +27,28 @@ export interface NutritionInformation { readonly id: number; /** * - * @type {string} + * @type {number} * @memberof NutritionInformation */ - carbohydrates: string; + carbohydrates: number; /** * - * @type {string} + * @type {number} * @memberof NutritionInformation */ - fats: string; + fats: number; /** * - * @type {string} + * @type {number} * @memberof NutritionInformation */ - proteins: string; + proteins: number; /** * - * @type {string} + * @type {number} * @memberof NutritionInformation */ - calories: string; + calories: number; /** * * @type {string} diff --git a/vue3/src/openapi/models/NutritionInformationRequest.ts b/vue3/src/openapi/models/NutritionInformationRequest.ts index acb6e85bc..acf0cd80e 100644 --- a/vue3/src/openapi/models/NutritionInformationRequest.ts +++ b/vue3/src/openapi/models/NutritionInformationRequest.ts @@ -21,28 +21,28 @@ import { mapValues } from '../runtime'; export interface NutritionInformationRequest { /** * - * @type {string} + * @type {number} * @memberof NutritionInformationRequest */ - carbohydrates: string; + carbohydrates: number; /** * - * @type {string} + * @type {number} * @memberof NutritionInformationRequest */ - fats: string; + fats: number; /** * - * @type {string} + * @type {number} * @memberof NutritionInformationRequest */ - proteins: string; + proteins: number; /** * - * @type {string} + * @type {number} * @memberof NutritionInformationRequest */ - calories: string; + calories: number; /** * * @type {string} diff --git a/vue3/src/openapi/models/PaginatedBookmarkletImportListList.ts b/vue3/src/openapi/models/PaginatedBookmarkletImportListList.ts new file mode 100644 index 000000000..7ee188cae --- /dev/null +++ b/vue3/src/openapi/models/PaginatedBookmarkletImportListList.ts @@ -0,0 +1,91 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 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 + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { BookmarkletImportList } from './BookmarkletImportList'; +import { + BookmarkletImportListFromJSON, + BookmarkletImportListFromJSONTyped, + BookmarkletImportListToJSON, +} from './BookmarkletImportList'; + +/** + * + * @export + * @interface PaginatedBookmarkletImportListList + */ +export interface PaginatedBookmarkletImportListList { + /** + * + * @type {number} + * @memberof PaginatedBookmarkletImportListList + */ + count?: number; + /** + * + * @type {string} + * @memberof PaginatedBookmarkletImportListList + */ + next?: string; + /** + * + * @type {string} + * @memberof PaginatedBookmarkletImportListList + */ + previous?: string; + /** + * + * @type {Array} + * @memberof PaginatedBookmarkletImportListList + */ + results?: Array; +} + +/** + * Check if a given object implements the PaginatedBookmarkletImportListList interface. + */ +export function instanceOfPaginatedBookmarkletImportListList(value: object): boolean { + return true; +} + +export function PaginatedBookmarkletImportListListFromJSON(json: any): PaginatedBookmarkletImportListList { + return PaginatedBookmarkletImportListListFromJSONTyped(json, false); +} + +export function PaginatedBookmarkletImportListListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedBookmarkletImportListList { + if (json == null) { + return json; + } + return { + + 'count': json['count'] == null ? undefined : json['count'], + 'next': json['next'] == null ? undefined : json['next'], + 'previous': json['previous'] == null ? undefined : json['previous'], + 'results': json['results'] == null ? undefined : ((json['results'] as Array).map(BookmarkletImportListFromJSON)), + }; +} + +export function PaginatedBookmarkletImportListListToJSON(value?: PaginatedBookmarkletImportListList | null): any { + if (value == null) { + return value; + } + return { + + 'count': value['count'], + 'next': value['next'], + 'previous': value['previous'], + 'results': value['results'] == null ? undefined : ((value['results'] as Array).map(BookmarkletImportListToJSON)), + }; +} + diff --git a/vue3/src/openapi/models/PaginatedInviteLinkList.ts b/vue3/src/openapi/models/PaginatedInviteLinkList.ts new file mode 100644 index 000000000..9ebac701e --- /dev/null +++ b/vue3/src/openapi/models/PaginatedInviteLinkList.ts @@ -0,0 +1,91 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 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 + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { InviteLink } from './InviteLink'; +import { + InviteLinkFromJSON, + InviteLinkFromJSONTyped, + InviteLinkToJSON, +} from './InviteLink'; + +/** + * + * @export + * @interface PaginatedInviteLinkList + */ +export interface PaginatedInviteLinkList { + /** + * + * @type {number} + * @memberof PaginatedInviteLinkList + */ + count?: number; + /** + * + * @type {string} + * @memberof PaginatedInviteLinkList + */ + next?: string; + /** + * + * @type {string} + * @memberof PaginatedInviteLinkList + */ + previous?: string; + /** + * + * @type {Array} + * @memberof PaginatedInviteLinkList + */ + results?: Array; +} + +/** + * Check if a given object implements the PaginatedInviteLinkList interface. + */ +export function instanceOfPaginatedInviteLinkList(value: object): boolean { + return true; +} + +export function PaginatedInviteLinkListFromJSON(json: any): PaginatedInviteLinkList { + return PaginatedInviteLinkListFromJSONTyped(json, false); +} + +export function PaginatedInviteLinkListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedInviteLinkList { + if (json == null) { + return json; + } + return { + + 'count': json['count'] == null ? undefined : json['count'], + 'next': json['next'] == null ? undefined : json['next'], + 'previous': json['previous'] == null ? undefined : json['previous'], + 'results': json['results'] == null ? undefined : ((json['results'] as Array).map(InviteLinkFromJSON)), + }; +} + +export function PaginatedInviteLinkListToJSON(value?: PaginatedInviteLinkList | null): any { + if (value == null) { + return value; + } + return { + + 'count': value['count'], + 'next': value['next'], + 'previous': value['previous'], + 'results': value['results'] == null ? undefined : ((value['results'] as Array).map(InviteLinkToJSON)), + }; +} + diff --git a/vue3/src/openapi/models/PaginatedMealPlanList.ts b/vue3/src/openapi/models/PaginatedMealPlanList.ts new file mode 100644 index 000000000..728fdb95d --- /dev/null +++ b/vue3/src/openapi/models/PaginatedMealPlanList.ts @@ -0,0 +1,91 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 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 + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { MealPlan } from './MealPlan'; +import { + MealPlanFromJSON, + MealPlanFromJSONTyped, + MealPlanToJSON, +} from './MealPlan'; + +/** + * + * @export + * @interface PaginatedMealPlanList + */ +export interface PaginatedMealPlanList { + /** + * + * @type {number} + * @memberof PaginatedMealPlanList + */ + count?: number; + /** + * + * @type {string} + * @memberof PaginatedMealPlanList + */ + next?: string; + /** + * + * @type {string} + * @memberof PaginatedMealPlanList + */ + previous?: string; + /** + * + * @type {Array} + * @memberof PaginatedMealPlanList + */ + results?: Array; +} + +/** + * Check if a given object implements the PaginatedMealPlanList interface. + */ +export function instanceOfPaginatedMealPlanList(value: object): boolean { + return true; +} + +export function PaginatedMealPlanListFromJSON(json: any): PaginatedMealPlanList { + return PaginatedMealPlanListFromJSONTyped(json, false); +} + +export function PaginatedMealPlanListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedMealPlanList { + if (json == null) { + return json; + } + return { + + 'count': json['count'] == null ? undefined : json['count'], + 'next': json['next'] == null ? undefined : json['next'], + 'previous': json['previous'] == null ? undefined : json['previous'], + 'results': json['results'] == null ? undefined : ((json['results'] as Array).map(MealPlanFromJSON)), + }; +} + +export function PaginatedMealPlanListToJSON(value?: PaginatedMealPlanList | null): any { + if (value == null) { + return value; + } + return { + + 'count': value['count'], + 'next': value['next'], + 'previous': value['previous'], + 'results': value['results'] == null ? undefined : ((value['results'] as Array).map(MealPlanToJSON)), + }; +} + diff --git a/vue3/src/openapi/models/PaginatedMealTypeList.ts b/vue3/src/openapi/models/PaginatedMealTypeList.ts new file mode 100644 index 000000000..bd6f94b82 --- /dev/null +++ b/vue3/src/openapi/models/PaginatedMealTypeList.ts @@ -0,0 +1,91 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 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 + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { MealType } from './MealType'; +import { + MealTypeFromJSON, + MealTypeFromJSONTyped, + MealTypeToJSON, +} from './MealType'; + +/** + * + * @export + * @interface PaginatedMealTypeList + */ +export interface PaginatedMealTypeList { + /** + * + * @type {number} + * @memberof PaginatedMealTypeList + */ + count?: number; + /** + * + * @type {string} + * @memberof PaginatedMealTypeList + */ + next?: string; + /** + * + * @type {string} + * @memberof PaginatedMealTypeList + */ + previous?: string; + /** + * + * @type {Array} + * @memberof PaginatedMealTypeList + */ + results?: Array; +} + +/** + * Check if a given object implements the PaginatedMealTypeList interface. + */ +export function instanceOfPaginatedMealTypeList(value: object): boolean { + return true; +} + +export function PaginatedMealTypeListFromJSON(json: any): PaginatedMealTypeList { + return PaginatedMealTypeListFromJSONTyped(json, false); +} + +export function PaginatedMealTypeListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedMealTypeList { + if (json == null) { + return json; + } + return { + + 'count': json['count'] == null ? undefined : json['count'], + 'next': json['next'] == null ? undefined : json['next'], + 'previous': json['previous'] == null ? undefined : json['previous'], + 'results': json['results'] == null ? undefined : ((json['results'] as Array).map(MealTypeFromJSON)), + }; +} + +export function PaginatedMealTypeListToJSON(value?: PaginatedMealTypeList | null): any { + if (value == null) { + return value; + } + return { + + 'count': value['count'], + 'next': value['next'], + 'previous': value['previous'], + 'results': value['results'] == null ? undefined : ((value['results'] as Array).map(MealTypeToJSON)), + }; +} + diff --git a/vue3/src/openapi/models/PaginatedPropertyList.ts b/vue3/src/openapi/models/PaginatedPropertyList.ts new file mode 100644 index 000000000..61ea4124d --- /dev/null +++ b/vue3/src/openapi/models/PaginatedPropertyList.ts @@ -0,0 +1,91 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 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 + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { Property } from './Property'; +import { + PropertyFromJSON, + PropertyFromJSONTyped, + PropertyToJSON, +} from './Property'; + +/** + * + * @export + * @interface PaginatedPropertyList + */ +export interface PaginatedPropertyList { + /** + * + * @type {number} + * @memberof PaginatedPropertyList + */ + count?: number; + /** + * + * @type {string} + * @memberof PaginatedPropertyList + */ + next?: string; + /** + * + * @type {string} + * @memberof PaginatedPropertyList + */ + previous?: string; + /** + * + * @type {Array} + * @memberof PaginatedPropertyList + */ + results?: Array; +} + +/** + * Check if a given object implements the PaginatedPropertyList interface. + */ +export function instanceOfPaginatedPropertyList(value: object): boolean { + return true; +} + +export function PaginatedPropertyListFromJSON(json: any): PaginatedPropertyList { + return PaginatedPropertyListFromJSONTyped(json, false); +} + +export function PaginatedPropertyListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedPropertyList { + if (json == null) { + return json; + } + return { + + 'count': json['count'] == null ? undefined : json['count'], + 'next': json['next'] == null ? undefined : json['next'], + 'previous': json['previous'] == null ? undefined : json['previous'], + 'results': json['results'] == null ? undefined : ((json['results'] as Array).map(PropertyFromJSON)), + }; +} + +export function PaginatedPropertyListToJSON(value?: PaginatedPropertyList | null): any { + if (value == null) { + return value; + } + return { + + 'count': value['count'], + 'next': value['next'], + 'previous': value['previous'], + 'results': value['results'] == null ? undefined : ((value['results'] as Array).map(PropertyToJSON)), + }; +} + diff --git a/vue3/src/openapi/models/PaginatedPropertyTypeList.ts b/vue3/src/openapi/models/PaginatedPropertyTypeList.ts new file mode 100644 index 000000000..666452bff --- /dev/null +++ b/vue3/src/openapi/models/PaginatedPropertyTypeList.ts @@ -0,0 +1,91 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 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 + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { PropertyType } from './PropertyType'; +import { + PropertyTypeFromJSON, + PropertyTypeFromJSONTyped, + PropertyTypeToJSON, +} from './PropertyType'; + +/** + * + * @export + * @interface PaginatedPropertyTypeList + */ +export interface PaginatedPropertyTypeList { + /** + * + * @type {number} + * @memberof PaginatedPropertyTypeList + */ + count?: number; + /** + * + * @type {string} + * @memberof PaginatedPropertyTypeList + */ + next?: string; + /** + * + * @type {string} + * @memberof PaginatedPropertyTypeList + */ + previous?: string; + /** + * + * @type {Array} + * @memberof PaginatedPropertyTypeList + */ + results?: Array; +} + +/** + * Check if a given object implements the PaginatedPropertyTypeList interface. + */ +export function instanceOfPaginatedPropertyTypeList(value: object): boolean { + return true; +} + +export function PaginatedPropertyTypeListFromJSON(json: any): PaginatedPropertyTypeList { + return PaginatedPropertyTypeListFromJSONTyped(json, false); +} + +export function PaginatedPropertyTypeListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedPropertyTypeList { + if (json == null) { + return json; + } + return { + + 'count': json['count'] == null ? undefined : json['count'], + 'next': json['next'] == null ? undefined : json['next'], + 'previous': json['previous'] == null ? undefined : json['previous'], + 'results': json['results'] == null ? undefined : ((json['results'] as Array).map(PropertyTypeFromJSON)), + }; +} + +export function PaginatedPropertyTypeListToJSON(value?: PaginatedPropertyTypeList | null): any { + if (value == null) { + return value; + } + return { + + 'count': value['count'], + 'next': value['next'], + 'previous': value['previous'], + 'results': value['results'] == null ? undefined : ((value['results'] as Array).map(PropertyTypeToJSON)), + }; +} + diff --git a/vue3/src/openapi/models/PaginatedRecipeBookEntryList.ts b/vue3/src/openapi/models/PaginatedRecipeBookEntryList.ts new file mode 100644 index 000000000..ae3099e68 --- /dev/null +++ b/vue3/src/openapi/models/PaginatedRecipeBookEntryList.ts @@ -0,0 +1,91 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 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 + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { RecipeBookEntry } from './RecipeBookEntry'; +import { + RecipeBookEntryFromJSON, + RecipeBookEntryFromJSONTyped, + RecipeBookEntryToJSON, +} from './RecipeBookEntry'; + +/** + * + * @export + * @interface PaginatedRecipeBookEntryList + */ +export interface PaginatedRecipeBookEntryList { + /** + * + * @type {number} + * @memberof PaginatedRecipeBookEntryList + */ + count?: number; + /** + * + * @type {string} + * @memberof PaginatedRecipeBookEntryList + */ + next?: string; + /** + * + * @type {string} + * @memberof PaginatedRecipeBookEntryList + */ + previous?: string; + /** + * + * @type {Array} + * @memberof PaginatedRecipeBookEntryList + */ + results?: Array; +} + +/** + * Check if a given object implements the PaginatedRecipeBookEntryList interface. + */ +export function instanceOfPaginatedRecipeBookEntryList(value: object): boolean { + return true; +} + +export function PaginatedRecipeBookEntryListFromJSON(json: any): PaginatedRecipeBookEntryList { + return PaginatedRecipeBookEntryListFromJSONTyped(json, false); +} + +export function PaginatedRecipeBookEntryListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedRecipeBookEntryList { + if (json == null) { + return json; + } + return { + + 'count': json['count'] == null ? undefined : json['count'], + 'next': json['next'] == null ? undefined : json['next'], + 'previous': json['previous'] == null ? undefined : json['previous'], + 'results': json['results'] == null ? undefined : ((json['results'] as Array).map(RecipeBookEntryFromJSON)), + }; +} + +export function PaginatedRecipeBookEntryListToJSON(value?: PaginatedRecipeBookEntryList | null): any { + if (value == null) { + return value; + } + return { + + 'count': value['count'], + 'next': value['next'], + 'previous': value['previous'], + 'results': value['results'] == null ? undefined : ((value['results'] as Array).map(RecipeBookEntryToJSON)), + }; +} + diff --git a/vue3/src/openapi/models/PaginatedRecipeBookList.ts b/vue3/src/openapi/models/PaginatedRecipeBookList.ts new file mode 100644 index 000000000..ca259a801 --- /dev/null +++ b/vue3/src/openapi/models/PaginatedRecipeBookList.ts @@ -0,0 +1,91 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 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 + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { RecipeBook } from './RecipeBook'; +import { + RecipeBookFromJSON, + RecipeBookFromJSONTyped, + RecipeBookToJSON, +} from './RecipeBook'; + +/** + * + * @export + * @interface PaginatedRecipeBookList + */ +export interface PaginatedRecipeBookList { + /** + * + * @type {number} + * @memberof PaginatedRecipeBookList + */ + count?: number; + /** + * + * @type {string} + * @memberof PaginatedRecipeBookList + */ + next?: string; + /** + * + * @type {string} + * @memberof PaginatedRecipeBookList + */ + previous?: string; + /** + * + * @type {Array} + * @memberof PaginatedRecipeBookList + */ + results?: Array; +} + +/** + * Check if a given object implements the PaginatedRecipeBookList interface. + */ +export function instanceOfPaginatedRecipeBookList(value: object): boolean { + return true; +} + +export function PaginatedRecipeBookListFromJSON(json: any): PaginatedRecipeBookList { + return PaginatedRecipeBookListFromJSONTyped(json, false); +} + +export function PaginatedRecipeBookListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedRecipeBookList { + if (json == null) { + return json; + } + return { + + 'count': json['count'] == null ? undefined : json['count'], + 'next': json['next'] == null ? undefined : json['next'], + 'previous': json['previous'] == null ? undefined : json['previous'], + 'results': json['results'] == null ? undefined : ((json['results'] as Array).map(RecipeBookFromJSON)), + }; +} + +export function PaginatedRecipeBookListToJSON(value?: PaginatedRecipeBookList | null): any { + if (value == null) { + return value; + } + return { + + 'count': value['count'], + 'next': value['next'], + 'previous': value['previous'], + 'results': value['results'] == null ? undefined : ((value['results'] as Array).map(RecipeBookToJSON)), + }; +} + diff --git a/vue3/src/openapi/models/PaginatedShoppingListEntryList.ts b/vue3/src/openapi/models/PaginatedShoppingListEntryList.ts new file mode 100644 index 000000000..2f24e1583 --- /dev/null +++ b/vue3/src/openapi/models/PaginatedShoppingListEntryList.ts @@ -0,0 +1,91 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 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 + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { ShoppingListEntry } from './ShoppingListEntry'; +import { + ShoppingListEntryFromJSON, + ShoppingListEntryFromJSONTyped, + ShoppingListEntryToJSON, +} from './ShoppingListEntry'; + +/** + * + * @export + * @interface PaginatedShoppingListEntryList + */ +export interface PaginatedShoppingListEntryList { + /** + * + * @type {number} + * @memberof PaginatedShoppingListEntryList + */ + count?: number; + /** + * + * @type {string} + * @memberof PaginatedShoppingListEntryList + */ + next?: string; + /** + * + * @type {string} + * @memberof PaginatedShoppingListEntryList + */ + previous?: string; + /** + * + * @type {Array} + * @memberof PaginatedShoppingListEntryList + */ + results?: Array; +} + +/** + * Check if a given object implements the PaginatedShoppingListEntryList interface. + */ +export function instanceOfPaginatedShoppingListEntryList(value: object): boolean { + return true; +} + +export function PaginatedShoppingListEntryListFromJSON(json: any): PaginatedShoppingListEntryList { + return PaginatedShoppingListEntryListFromJSONTyped(json, false); +} + +export function PaginatedShoppingListEntryListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedShoppingListEntryList { + if (json == null) { + return json; + } + return { + + 'count': json['count'] == null ? undefined : json['count'], + 'next': json['next'] == null ? undefined : json['next'], + 'previous': json['previous'] == null ? undefined : json['previous'], + 'results': json['results'] == null ? undefined : ((json['results'] as Array).map(ShoppingListEntryFromJSON)), + }; +} + +export function PaginatedShoppingListEntryListToJSON(value?: PaginatedShoppingListEntryList | null): any { + if (value == null) { + return value; + } + return { + + 'count': value['count'], + 'next': value['next'], + 'previous': value['previous'], + 'results': value['results'] == null ? undefined : ((value['results'] as Array).map(ShoppingListEntryToJSON)), + }; +} + diff --git a/vue3/src/openapi/models/PaginatedShoppingListRecipeList.ts b/vue3/src/openapi/models/PaginatedShoppingListRecipeList.ts new file mode 100644 index 000000000..deb376592 --- /dev/null +++ b/vue3/src/openapi/models/PaginatedShoppingListRecipeList.ts @@ -0,0 +1,91 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 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 + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { ShoppingListRecipe } from './ShoppingListRecipe'; +import { + ShoppingListRecipeFromJSON, + ShoppingListRecipeFromJSONTyped, + ShoppingListRecipeToJSON, +} from './ShoppingListRecipe'; + +/** + * + * @export + * @interface PaginatedShoppingListRecipeList + */ +export interface PaginatedShoppingListRecipeList { + /** + * + * @type {number} + * @memberof PaginatedShoppingListRecipeList + */ + count?: number; + /** + * + * @type {string} + * @memberof PaginatedShoppingListRecipeList + */ + next?: string; + /** + * + * @type {string} + * @memberof PaginatedShoppingListRecipeList + */ + previous?: string; + /** + * + * @type {Array} + * @memberof PaginatedShoppingListRecipeList + */ + results?: Array; +} + +/** + * Check if a given object implements the PaginatedShoppingListRecipeList interface. + */ +export function instanceOfPaginatedShoppingListRecipeList(value: object): boolean { + return true; +} + +export function PaginatedShoppingListRecipeListFromJSON(json: any): PaginatedShoppingListRecipeList { + return PaginatedShoppingListRecipeListFromJSONTyped(json, false); +} + +export function PaginatedShoppingListRecipeListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedShoppingListRecipeList { + if (json == null) { + return json; + } + return { + + 'count': json['count'] == null ? undefined : json['count'], + 'next': json['next'] == null ? undefined : json['next'], + 'previous': json['previous'] == null ? undefined : json['previous'], + 'results': json['results'] == null ? undefined : ((json['results'] as Array).map(ShoppingListRecipeFromJSON)), + }; +} + +export function PaginatedShoppingListRecipeListToJSON(value?: PaginatedShoppingListRecipeList | null): any { + if (value == null) { + return value; + } + return { + + 'count': value['count'], + 'next': value['next'], + 'previous': value['previous'], + 'results': value['results'] == null ? undefined : ((value['results'] as Array).map(ShoppingListRecipeToJSON)), + }; +} + diff --git a/vue3/src/openapi/models/PaginatedSupermarketCategoryList.ts b/vue3/src/openapi/models/PaginatedSupermarketCategoryList.ts new file mode 100644 index 000000000..7d29f38a5 --- /dev/null +++ b/vue3/src/openapi/models/PaginatedSupermarketCategoryList.ts @@ -0,0 +1,91 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 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 + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { SupermarketCategory } from './SupermarketCategory'; +import { + SupermarketCategoryFromJSON, + SupermarketCategoryFromJSONTyped, + SupermarketCategoryToJSON, +} from './SupermarketCategory'; + +/** + * + * @export + * @interface PaginatedSupermarketCategoryList + */ +export interface PaginatedSupermarketCategoryList { + /** + * + * @type {number} + * @memberof PaginatedSupermarketCategoryList + */ + count?: number; + /** + * + * @type {string} + * @memberof PaginatedSupermarketCategoryList + */ + next?: string; + /** + * + * @type {string} + * @memberof PaginatedSupermarketCategoryList + */ + previous?: string; + /** + * + * @type {Array} + * @memberof PaginatedSupermarketCategoryList + */ + results?: Array; +} + +/** + * Check if a given object implements the PaginatedSupermarketCategoryList interface. + */ +export function instanceOfPaginatedSupermarketCategoryList(value: object): boolean { + return true; +} + +export function PaginatedSupermarketCategoryListFromJSON(json: any): PaginatedSupermarketCategoryList { + return PaginatedSupermarketCategoryListFromJSONTyped(json, false); +} + +export function PaginatedSupermarketCategoryListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedSupermarketCategoryList { + if (json == null) { + return json; + } + return { + + 'count': json['count'] == null ? undefined : json['count'], + 'next': json['next'] == null ? undefined : json['next'], + 'previous': json['previous'] == null ? undefined : json['previous'], + 'results': json['results'] == null ? undefined : ((json['results'] as Array).map(SupermarketCategoryFromJSON)), + }; +} + +export function PaginatedSupermarketCategoryListToJSON(value?: PaginatedSupermarketCategoryList | null): any { + if (value == null) { + return value; + } + return { + + 'count': value['count'], + 'next': value['next'], + 'previous': value['previous'], + 'results': value['results'] == null ? undefined : ((value['results'] as Array).map(SupermarketCategoryToJSON)), + }; +} + diff --git a/vue3/src/openapi/models/PaginatedSupermarketList.ts b/vue3/src/openapi/models/PaginatedSupermarketList.ts new file mode 100644 index 000000000..163884b37 --- /dev/null +++ b/vue3/src/openapi/models/PaginatedSupermarketList.ts @@ -0,0 +1,91 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 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 + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { Supermarket } from './Supermarket'; +import { + SupermarketFromJSON, + SupermarketFromJSONTyped, + SupermarketToJSON, +} from './Supermarket'; + +/** + * + * @export + * @interface PaginatedSupermarketList + */ +export interface PaginatedSupermarketList { + /** + * + * @type {number} + * @memberof PaginatedSupermarketList + */ + count?: number; + /** + * + * @type {string} + * @memberof PaginatedSupermarketList + */ + next?: string; + /** + * + * @type {string} + * @memberof PaginatedSupermarketList + */ + previous?: string; + /** + * + * @type {Array} + * @memberof PaginatedSupermarketList + */ + results?: Array; +} + +/** + * Check if a given object implements the PaginatedSupermarketList interface. + */ +export function instanceOfPaginatedSupermarketList(value: object): boolean { + return true; +} + +export function PaginatedSupermarketListFromJSON(json: any): PaginatedSupermarketList { + return PaginatedSupermarketListFromJSONTyped(json, false); +} + +export function PaginatedSupermarketListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedSupermarketList { + if (json == null) { + return json; + } + return { + + 'count': json['count'] == null ? undefined : json['count'], + 'next': json['next'] == null ? undefined : json['next'], + 'previous': json['previous'] == null ? undefined : json['previous'], + 'results': json['results'] == null ? undefined : ((json['results'] as Array).map(SupermarketFromJSON)), + }; +} + +export function PaginatedSupermarketListToJSON(value?: PaginatedSupermarketList | null): any { + if (value == null) { + return value; + } + return { + + 'count': value['count'], + 'next': value['next'], + 'previous': value['previous'], + 'results': value['results'] == null ? undefined : ((value['results'] as Array).map(SupermarketToJSON)), + }; +} + diff --git a/vue3/src/openapi/models/PaginatedSyncList.ts b/vue3/src/openapi/models/PaginatedSyncList.ts new file mode 100644 index 000000000..05bb3152a --- /dev/null +++ b/vue3/src/openapi/models/PaginatedSyncList.ts @@ -0,0 +1,91 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 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 + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { Sync } from './Sync'; +import { + SyncFromJSON, + SyncFromJSONTyped, + SyncToJSON, +} from './Sync'; + +/** + * + * @export + * @interface PaginatedSyncList + */ +export interface PaginatedSyncList { + /** + * + * @type {number} + * @memberof PaginatedSyncList + */ + count?: number; + /** + * + * @type {string} + * @memberof PaginatedSyncList + */ + next?: string; + /** + * + * @type {string} + * @memberof PaginatedSyncList + */ + previous?: string; + /** + * + * @type {Array} + * @memberof PaginatedSyncList + */ + results?: Array; +} + +/** + * Check if a given object implements the PaginatedSyncList interface. + */ +export function instanceOfPaginatedSyncList(value: object): boolean { + return true; +} + +export function PaginatedSyncListFromJSON(json: any): PaginatedSyncList { + return PaginatedSyncListFromJSONTyped(json, false); +} + +export function PaginatedSyncListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedSyncList { + if (json == null) { + return json; + } + return { + + 'count': json['count'] == null ? undefined : json['count'], + 'next': json['next'] == null ? undefined : json['next'], + 'previous': json['previous'] == null ? undefined : json['previous'], + 'results': json['results'] == null ? undefined : ((json['results'] as Array).map(SyncFromJSON)), + }; +} + +export function PaginatedSyncListToJSON(value?: PaginatedSyncList | null): any { + if (value == null) { + return value; + } + return { + + 'count': value['count'], + 'next': value['next'], + 'previous': value['previous'], + 'results': value['results'] == null ? undefined : ((value['results'] as Array).map(SyncToJSON)), + }; +} + diff --git a/vue3/src/openapi/models/PaginatedUnitConversionList.ts b/vue3/src/openapi/models/PaginatedUnitConversionList.ts new file mode 100644 index 000000000..0767ee18a --- /dev/null +++ b/vue3/src/openapi/models/PaginatedUnitConversionList.ts @@ -0,0 +1,91 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 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 + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { UnitConversion } from './UnitConversion'; +import { + UnitConversionFromJSON, + UnitConversionFromJSONTyped, + UnitConversionToJSON, +} from './UnitConversion'; + +/** + * + * @export + * @interface PaginatedUnitConversionList + */ +export interface PaginatedUnitConversionList { + /** + * + * @type {number} + * @memberof PaginatedUnitConversionList + */ + count?: number; + /** + * + * @type {string} + * @memberof PaginatedUnitConversionList + */ + next?: string; + /** + * + * @type {string} + * @memberof PaginatedUnitConversionList + */ + previous?: string; + /** + * + * @type {Array} + * @memberof PaginatedUnitConversionList + */ + results?: Array; +} + +/** + * Check if a given object implements the PaginatedUnitConversionList interface. + */ +export function instanceOfPaginatedUnitConversionList(value: object): boolean { + return true; +} + +export function PaginatedUnitConversionListFromJSON(json: any): PaginatedUnitConversionList { + return PaginatedUnitConversionListFromJSONTyped(json, false); +} + +export function PaginatedUnitConversionListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedUnitConversionList { + if (json == null) { + return json; + } + return { + + 'count': json['count'] == null ? undefined : json['count'], + 'next': json['next'] == null ? undefined : json['next'], + 'previous': json['previous'] == null ? undefined : json['previous'], + 'results': json['results'] == null ? undefined : ((json['results'] as Array).map(UnitConversionFromJSON)), + }; +} + +export function PaginatedUnitConversionListToJSON(value?: PaginatedUnitConversionList | null): any { + if (value == null) { + return value; + } + return { + + 'count': value['count'], + 'next': value['next'], + 'previous': value['previous'], + 'results': value['results'] == null ? undefined : ((value['results'] as Array).map(UnitConversionToJSON)), + }; +} + diff --git a/vue3/src/openapi/models/PaginatedUserFileList.ts b/vue3/src/openapi/models/PaginatedUserFileList.ts new file mode 100644 index 000000000..980766226 --- /dev/null +++ b/vue3/src/openapi/models/PaginatedUserFileList.ts @@ -0,0 +1,91 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 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 + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +import type { UserFile } from './UserFile'; +import { + UserFileFromJSON, + UserFileFromJSONTyped, + UserFileToJSON, +} from './UserFile'; + +/** + * + * @export + * @interface PaginatedUserFileList + */ +export interface PaginatedUserFileList { + /** + * + * @type {number} + * @memberof PaginatedUserFileList + */ + count?: number; + /** + * + * @type {string} + * @memberof PaginatedUserFileList + */ + next?: string; + /** + * + * @type {string} + * @memberof PaginatedUserFileList + */ + previous?: string; + /** + * + * @type {Array} + * @memberof PaginatedUserFileList + */ + results?: Array; +} + +/** + * Check if a given object implements the PaginatedUserFileList interface. + */ +export function instanceOfPaginatedUserFileList(value: object): boolean { + return true; +} + +export function PaginatedUserFileListFromJSON(json: any): PaginatedUserFileList { + return PaginatedUserFileListFromJSONTyped(json, false); +} + +export function PaginatedUserFileListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedUserFileList { + if (json == null) { + return json; + } + return { + + 'count': json['count'] == null ? undefined : json['count'], + 'next': json['next'] == null ? undefined : json['next'], + 'previous': json['previous'] == null ? undefined : json['previous'], + 'results': json['results'] == null ? undefined : ((json['results'] as Array).map(UserFileFromJSON)), + }; +} + +export function PaginatedUserFileListToJSON(value?: PaginatedUserFileList | null): any { + if (value == null) { + return value; + } + return { + + 'count': value['count'], + 'next': value['next'], + 'previous': value['previous'], + 'results': value['results'] == null ? undefined : ((value['results'] as Array).map(UserFileToJSON)), + }; +} + diff --git a/vue3/src/openapi/models/ParsedIngredient.ts b/vue3/src/openapi/models/ParsedIngredient.ts new file mode 100644 index 000000000..e469b6ddf --- /dev/null +++ b/vue3/src/openapi/models/ParsedIngredient.ts @@ -0,0 +1,88 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 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 + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface ParsedIngredient + */ +export interface ParsedIngredient { + /** + * + * @type {number} + * @memberof ParsedIngredient + */ + amount: number; + /** + * + * @type {string} + * @memberof ParsedIngredient + */ + unit: string; + /** + * + * @type {string} + * @memberof ParsedIngredient + */ + food: string; + /** + * + * @type {string} + * @memberof ParsedIngredient + */ + note: string; +} + +/** + * Check if a given object implements the ParsedIngredient interface. + */ +export function instanceOfParsedIngredient(value: object): boolean { + if (!('amount' in value)) return false; + if (!('unit' in value)) return false; + if (!('food' in value)) return false; + if (!('note' in value)) return false; + return true; +} + +export function ParsedIngredientFromJSON(json: any): ParsedIngredient { + return ParsedIngredientFromJSONTyped(json, false); +} + +export function ParsedIngredientFromJSONTyped(json: any, ignoreDiscriminator: boolean): ParsedIngredient { + if (json == null) { + return json; + } + return { + + 'amount': json['amount'], + 'unit': json['unit'], + 'food': json['food'], + 'note': json['note'], + }; +} + +export function ParsedIngredientToJSON(value?: ParsedIngredient | null): any { + if (value == null) { + return value; + } + return { + + 'amount': value['amount'], + 'unit': value['unit'], + 'food': value['food'], + 'note': value['note'], + }; +} + diff --git a/vue3/src/openapi/models/PatchedAutomationRequest.ts b/vue3/src/openapi/models/PatchedAutomationRequest.ts index cdc30c4b1..f1f583724 100644 --- a/vue3/src/openapi/models/PatchedAutomationRequest.ts +++ b/vue3/src/openapi/models/PatchedAutomationRequest.ts @@ -13,12 +13,12 @@ */ import { mapValues } from '../runtime'; -import type { AutomationTypeEnum } from './AutomationTypeEnum'; +import type { TypeEnum } from './TypeEnum'; import { - AutomationTypeEnumFromJSON, - AutomationTypeEnumFromJSONTyped, - AutomationTypeEnumToJSON, -} from './AutomationTypeEnum'; + TypeEnumFromJSON, + TypeEnumFromJSONTyped, + TypeEnumToJSON, +} from './TypeEnum'; /** * @@ -28,10 +28,10 @@ import { export interface PatchedAutomationRequest { /** * - * @type {AutomationTypeEnum} + * @type {TypeEnum} * @memberof PatchedAutomationRequest */ - type?: AutomationTypeEnum; + type?: TypeEnum; /** * * @type {string} @@ -99,7 +99,7 @@ export function PatchedAutomationRequestFromJSONTyped(json: any, ignoreDiscrimin } return { - 'type': json['type'] == null ? undefined : AutomationTypeEnumFromJSON(json['type']), + 'type': json['type'] == null ? undefined : TypeEnumFromJSON(json['type']), 'name': json['name'] == null ? undefined : json['name'], 'description': json['description'] == null ? undefined : json['description'], 'param1': json['param_1'] == null ? undefined : json['param_1'], @@ -117,7 +117,7 @@ export function PatchedAutomationRequestToJSON(value?: PatchedAutomationRequest } return { - 'type': AutomationTypeEnumToJSON(value['type']), + 'type': TypeEnumToJSON(value['type']), 'name': value['name'], 'description': value['description'], 'param_1': value['param1'], diff --git a/vue3/src/openapi/models/PatchedFoodRequest.ts b/vue3/src/openapi/models/PatchedFoodRequest.ts index 4b65f8973..9cb482f63 100644 --- a/vue3/src/openapi/models/PatchedFoodRequest.ts +++ b/vue3/src/openapi/models/PatchedFoodRequest.ts @@ -128,10 +128,10 @@ export interface PatchedFoodRequest { properties?: Array; /** * - * @type {string} + * @type {number} * @memberof PatchedFoodRequest */ - propertiesFoodAmount?: string; + propertiesFoodAmount?: number; /** * * @type {UnitRequest} @@ -146,10 +146,10 @@ export interface PatchedFoodRequest { fdcId?: number; /** * - * @type {string} + * @type {boolean} * @memberof PatchedFoodRequest */ - foodOnhand?: string; + foodOnhand?: boolean; /** * * @type {SupermarketCategoryRequest} diff --git a/vue3/src/openapi/models/PatchedIngredientRequest.ts b/vue3/src/openapi/models/PatchedIngredientRequest.ts index 116bb0810..cd32f9679 100644 --- a/vue3/src/openapi/models/PatchedIngredientRequest.ts +++ b/vue3/src/openapi/models/PatchedIngredientRequest.ts @@ -46,10 +46,10 @@ export interface PatchedIngredientRequest { unit?: UnitRequest; /** * - * @type {string} + * @type {number} * @memberof PatchedIngredientRequest */ - amount?: string; + amount?: number; /** * * @type {string} diff --git a/vue3/src/openapi/models/PatchedMealPlanRequest.ts b/vue3/src/openapi/models/PatchedMealPlanRequest.ts index 146e3fb30..654c75684 100644 --- a/vue3/src/openapi/models/PatchedMealPlanRequest.ts +++ b/vue3/src/openapi/models/PatchedMealPlanRequest.ts @@ -52,10 +52,10 @@ export interface PatchedMealPlanRequest { recipe?: RecipeOverviewRequest; /** * - * @type {string} + * @type {number} * @memberof PatchedMealPlanRequest */ - servings?: string; + servings?: number; /** * * @type {string} diff --git a/vue3/src/openapi/models/PatchedPropertyRequest.ts b/vue3/src/openapi/models/PatchedPropertyRequest.ts index 6aefe9e9d..70581b02d 100644 --- a/vue3/src/openapi/models/PatchedPropertyRequest.ts +++ b/vue3/src/openapi/models/PatchedPropertyRequest.ts @@ -62,10 +62,10 @@ import { export interface PatchedPropertyRequest { /** * - * @type {string} + * @type {number} * @memberof PatchedPropertyRequest */ - propertyAmount?: string; + propertyAmount?: number; /** * * @type {PropertyTypeRequest} diff --git a/vue3/src/openapi/models/PatchedShoppingListEntryRequest.ts b/vue3/src/openapi/models/PatchedShoppingListEntryRequest.ts index d212e4941..fd1ec671b 100644 --- a/vue3/src/openapi/models/PatchedShoppingListEntryRequest.ts +++ b/vue3/src/openapi/models/PatchedShoppingListEntryRequest.ts @@ -52,10 +52,10 @@ export interface PatchedShoppingListEntryRequest { unit?: UnitRequest; /** * - * @type {string} + * @type {number} * @memberof PatchedShoppingListEntryRequest */ - amount?: string; + amount?: number; /** * * @type {number} diff --git a/vue3/src/openapi/models/PatchedShoppingListRecipeRequest.ts b/vue3/src/openapi/models/PatchedShoppingListRecipeRequest.ts index e8386b9ef..af0fea2d8 100644 --- a/vue3/src/openapi/models/PatchedShoppingListRecipeRequest.ts +++ b/vue3/src/openapi/models/PatchedShoppingListRecipeRequest.ts @@ -33,10 +33,10 @@ export interface PatchedShoppingListRecipeRequest { mealplan?: number; /** * - * @type {string} + * @type {number} * @memberof PatchedShoppingListRecipeRequest */ - servings?: string; + servings?: number; /** * * @type {number} diff --git a/vue3/src/openapi/models/PatchedUnitConversionRequest.ts b/vue3/src/openapi/models/PatchedUnitConversionRequest.ts index bc4168c2e..35cb095ee 100644 --- a/vue3/src/openapi/models/PatchedUnitConversionRequest.ts +++ b/vue3/src/openapi/models/PatchedUnitConversionRequest.ts @@ -34,10 +34,10 @@ import { export interface PatchedUnitConversionRequest { /** * - * @type {string} + * @type {number} * @memberof PatchedUnitConversionRequest */ - baseAmount?: string; + baseAmount?: number; /** * * @type {UnitRequest} @@ -46,10 +46,10 @@ export interface PatchedUnitConversionRequest { baseUnit?: UnitRequest; /** * - * @type {string} + * @type {number} * @memberof PatchedUnitConversionRequest */ - convertedAmount?: string; + convertedAmount?: number; /** * * @type {UnitRequest} diff --git a/vue3/src/openapi/models/Property.ts b/vue3/src/openapi/models/Property.ts index 2dd050128..c13dc5a1e 100644 --- a/vue3/src/openapi/models/Property.ts +++ b/vue3/src/openapi/models/Property.ts @@ -68,10 +68,10 @@ export interface Property { readonly id: number; /** * - * @type {string} + * @type {number} * @memberof Property */ - propertyAmount: string | null; + propertyAmount: number | null; /** * * @type {PropertyType} diff --git a/vue3/src/openapi/models/PropertyRequest.ts b/vue3/src/openapi/models/PropertyRequest.ts index 9f8655fa5..d0ecef45a 100644 --- a/vue3/src/openapi/models/PropertyRequest.ts +++ b/vue3/src/openapi/models/PropertyRequest.ts @@ -62,10 +62,10 @@ import { export interface PropertyRequest { /** * - * @type {string} + * @type {number} * @memberof PropertyRequest */ - propertyAmount: string | null; + propertyAmount: number | null; /** * * @type {PropertyTypeRequest} diff --git a/vue3/src/openapi/models/Recipe.ts b/vue3/src/openapi/models/Recipe.ts index 208b60654..3c0faeaef 100644 --- a/vue3/src/openapi/models/Recipe.ts +++ b/vue3/src/openapi/models/Recipe.ts @@ -148,10 +148,10 @@ export interface Recipe { properties?: Array; /** * - * @type {string} + * @type {any} * @memberof Recipe */ - readonly foodProperties: string; + readonly foodProperties: any | null; /** * * @type {number} @@ -172,10 +172,10 @@ export interface Recipe { servingsText?: string; /** * - * @type {string} + * @type {number} * @memberof Recipe */ - readonly rating: string | null; + readonly rating: number | null; /** * * @type {Date} diff --git a/vue3/src/openapi/models/RecipeBookEntry.ts b/vue3/src/openapi/models/RecipeBookEntry.ts index adfe16150..b1bbdd950 100644 --- a/vue3/src/openapi/models/RecipeBookEntry.ts +++ b/vue3/src/openapi/models/RecipeBookEntry.ts @@ -13,6 +13,19 @@ */ import { mapValues } from '../runtime'; +import type { RecipeBook } from './RecipeBook'; +import { + RecipeBookFromJSON, + RecipeBookFromJSONTyped, + RecipeBookToJSON, +} from './RecipeBook'; +import type { RecipeOverview } from './RecipeOverview'; +import { + RecipeOverviewFromJSON, + RecipeOverviewFromJSONTyped, + RecipeOverviewToJSON, +} from './RecipeOverview'; + /** * * @export @@ -33,10 +46,10 @@ export interface RecipeBookEntry { book: number; /** * - * @type {string} + * @type {RecipeBook} * @memberof RecipeBookEntry */ - readonly bookContent: string; + readonly bookContent: RecipeBook; /** * * @type {number} @@ -45,10 +58,10 @@ export interface RecipeBookEntry { recipe: number; /** * - * @type {string} + * @type {RecipeOverview} * @memberof RecipeBookEntry */ - readonly recipeContent: string; + readonly recipeContent: RecipeOverview; } /** @@ -75,9 +88,9 @@ export function RecipeBookEntryFromJSONTyped(json: any, ignoreDiscriminator: boo 'id': json['id'], 'book': json['book'], - 'bookContent': json['book_content'], + 'bookContent': RecipeBookFromJSON(json['book_content']), 'recipe': json['recipe'], - 'recipeContent': json['recipe_content'], + 'recipeContent': RecipeOverviewFromJSON(json['recipe_content']), }; } diff --git a/vue3/src/openapi/models/RecipeOverview.ts b/vue3/src/openapi/models/RecipeOverview.ts index c41c09ba9..1adf5c87f 100644 --- a/vue3/src/openapi/models/RecipeOverview.ts +++ b/vue3/src/openapi/models/RecipeOverview.ts @@ -106,10 +106,10 @@ export interface RecipeOverview { readonly servingsText: string; /** * - * @type {string} + * @type {number} * @memberof RecipeOverview */ - readonly rating: string | null; + readonly rating: number | null; /** * * @type {Date} @@ -118,10 +118,10 @@ export interface RecipeOverview { readonly lastCooked: Date | null; /** * - * @type {string} + * @type {boolean} * @memberof RecipeOverview */ - readonly _new: string; + readonly _new: boolean; /** * * @type {string} diff --git a/vue3/src/openapi/models/ShareLink.ts b/vue3/src/openapi/models/ShareLink.ts new file mode 100644 index 000000000..c3cf09bff --- /dev/null +++ b/vue3/src/openapi/models/ShareLink.ts @@ -0,0 +1,79 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * 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 + * Do not edit the class manually. + */ + +import { mapValues } from '../runtime'; +/** + * + * @export + * @interface ShareLink + */ +export interface ShareLink { + /** + * + * @type {number} + * @memberof ShareLink + */ + pk: number; + /** + * + * @type {string} + * @memberof ShareLink + */ + share: string; + /** + * + * @type {string} + * @memberof ShareLink + */ + link: string; +} + +/** + * Check if a given object implements the ShareLink interface. + */ +export function instanceOfShareLink(value: object): boolean { + if (!('pk' in value)) return false; + if (!('share' in value)) return false; + if (!('link' in value)) return false; + return true; +} + +export function ShareLinkFromJSON(json: any): ShareLink { + return ShareLinkFromJSONTyped(json, false); +} + +export function ShareLinkFromJSONTyped(json: any, ignoreDiscriminator: boolean): ShareLink { + if (json == null) { + return json; + } + return { + + 'pk': json['pk'], + 'share': json['share'], + 'link': json['link'], + }; +} + +export function ShareLinkToJSON(value?: ShareLink | null): any { + if (value == null) { + return value; + } + return { + + 'pk': value['pk'], + 'share': value['share'], + 'link': value['link'], + }; +} + diff --git a/vue3/src/openapi/models/ShoppingListEntry.ts b/vue3/src/openapi/models/ShoppingListEntry.ts index 30fd69eca..9ff61d0ec 100644 --- a/vue3/src/openapi/models/ShoppingListEntry.ts +++ b/vue3/src/openapi/models/ShoppingListEntry.ts @@ -70,10 +70,10 @@ export interface ShoppingListEntry { unit?: Unit; /** * - * @type {string} + * @type {number} * @memberof ShoppingListEntry */ - amount: string; + amount: number; /** * * @type {number} diff --git a/vue3/src/openapi/models/ShoppingListEntryRequest.ts b/vue3/src/openapi/models/ShoppingListEntryRequest.ts index ee2989e45..70d03682a 100644 --- a/vue3/src/openapi/models/ShoppingListEntryRequest.ts +++ b/vue3/src/openapi/models/ShoppingListEntryRequest.ts @@ -52,10 +52,10 @@ export interface ShoppingListEntryRequest { unit?: UnitRequest; /** * - * @type {string} + * @type {number} * @memberof ShoppingListEntryRequest */ - amount: string; + amount: number; /** * * @type {number} diff --git a/vue3/src/openapi/models/ShoppingListRecipe.ts b/vue3/src/openapi/models/ShoppingListRecipe.ts index b183421c2..87b8aaed8 100644 --- a/vue3/src/openapi/models/ShoppingListRecipe.ts +++ b/vue3/src/openapi/models/ShoppingListRecipe.ts @@ -51,10 +51,10 @@ export interface ShoppingListRecipe { mealplan?: number; /** * - * @type {string} + * @type {number} * @memberof ShoppingListRecipe */ - servings: string; + servings: number; /** * * @type {string} diff --git a/vue3/src/openapi/models/ShoppingListRecipeRequest.ts b/vue3/src/openapi/models/ShoppingListRecipeRequest.ts index 72e774d6d..a157509be 100644 --- a/vue3/src/openapi/models/ShoppingListRecipeRequest.ts +++ b/vue3/src/openapi/models/ShoppingListRecipeRequest.ts @@ -33,10 +33,10 @@ export interface ShoppingListRecipeRequest { mealplan?: number; /** * - * @type {string} + * @type {number} * @memberof ShoppingListRecipeRequest */ - servings: string; + servings: number; /** * * @type {number} diff --git a/vue3/src/openapi/models/Space.ts b/vue3/src/openapi/models/Space.ts index 3e3a52934..17b1c0c25 100644 --- a/vue3/src/openapi/models/Space.ts +++ b/vue3/src/openapi/models/Space.ts @@ -112,22 +112,22 @@ export interface Space { foodInherit: Array; /** * - * @type {string} + * @type {number} * @memberof Space */ - readonly userCount: string; + readonly userCount: number; /** * - * @type {string} + * @type {number} * @memberof Space */ - readonly recipeCount: string; + readonly recipeCount: number; /** * - * @type {string} + * @type {number} * @memberof Space */ - readonly fileSizeMb: string; + readonly fileSizeMb: number; /** * * @type {UserFileView} diff --git a/vue3/src/openapi/models/Step.ts b/vue3/src/openapi/models/Step.ts index dc220d91b..ea210352b 100644 --- a/vue3/src/openapi/models/Step.ts +++ b/vue3/src/openapi/models/Step.ts @@ -94,16 +94,16 @@ export interface Step { stepRecipe?: number; /** * - * @type {string} + * @type {any} * @memberof Step */ - readonly stepRecipeData: string; + readonly stepRecipeData: any | null; /** * - * @type {string} + * @type {number} * @memberof Step */ - readonly numrecipe: string; + readonly numrecipe: number; /** * * @type {boolean} diff --git a/vue3/src/openapi/models/UnitConversion.ts b/vue3/src/openapi/models/UnitConversion.ts index c2e369462..ed270eea7 100644 --- a/vue3/src/openapi/models/UnitConversion.ts +++ b/vue3/src/openapi/models/UnitConversion.ts @@ -46,10 +46,10 @@ export interface UnitConversion { readonly name: string; /** * - * @type {string} + * @type {number} * @memberof UnitConversion */ - baseAmount: string; + baseAmount: number; /** * * @type {Unit} @@ -58,10 +58,10 @@ export interface UnitConversion { baseUnit: Unit; /** * - * @type {string} + * @type {number} * @memberof UnitConversion */ - convertedAmount: string; + convertedAmount: number; /** * * @type {Unit} diff --git a/vue3/src/openapi/models/UnitConversionRequest.ts b/vue3/src/openapi/models/UnitConversionRequest.ts index 2238a04a2..0f4c50a4d 100644 --- a/vue3/src/openapi/models/UnitConversionRequest.ts +++ b/vue3/src/openapi/models/UnitConversionRequest.ts @@ -34,10 +34,10 @@ import { export interface UnitConversionRequest { /** * - * @type {string} + * @type {number} * @memberof UnitConversionRequest */ - baseAmount: string; + baseAmount: number; /** * * @type {UnitRequest} @@ -46,10 +46,10 @@ export interface UnitConversionRequest { baseUnit: UnitRequest; /** * - * @type {string} + * @type {number} * @memberof UnitConversionRequest */ - convertedAmount: string; + convertedAmount: number; /** * * @type {UnitRequest} diff --git a/vue3/src/openapi/models/UserPreference.ts b/vue3/src/openapi/models/UserPreference.ts index 41fae8290..ea2b61153 100644 --- a/vue3/src/openapi/models/UserPreference.ts +++ b/vue3/src/openapi/models/UserPreference.ts @@ -19,6 +19,12 @@ import { DefaultPageEnumFromJSONTyped, DefaultPageEnumToJSON, } from './DefaultPageEnum'; +import type { FoodInheritField } from './FoodInheritField'; +import { + FoodInheritFieldFromJSON, + FoodInheritFieldFromJSONTyped, + FoodInheritFieldToJSON, +} from './FoodInheritField'; import type { ThemeEnum } from './ThemeEnum'; import { ThemeEnumFromJSON, @@ -148,10 +154,10 @@ export interface UserPreference { mealplanAutoaddShopping?: boolean; /** * - * @type {string} + * @type {FoodInheritField} * @memberof UserPreference */ - readonly foodInheritDefault: string; + readonly foodInheritDefault: FoodInheritField; /** * * @type {number} @@ -220,10 +226,10 @@ export interface UserPreference { showStepIngredients?: boolean; /** * - * @type {string} + * @type {boolean} * @memberof UserPreference */ - readonly foodChildrenExist: string; + readonly foodChildrenExist: boolean; } /** @@ -262,7 +268,7 @@ export function UserPreferenceFromJSONTyped(json: any, ignoreDiscriminator: bool 'comments': json['comments'] == null ? undefined : json['comments'], 'shoppingAutoSync': json['shopping_auto_sync'] == null ? undefined : json['shopping_auto_sync'], 'mealplanAutoaddShopping': json['mealplan_autoadd_shopping'] == null ? undefined : json['mealplan_autoadd_shopping'], - 'foodInheritDefault': json['food_inherit_default'], + 'foodInheritDefault': FoodInheritFieldFromJSON(json['food_inherit_default']), 'defaultDelay': json['default_delay'] == null ? undefined : json['default_delay'], 'mealplanAutoincludeRelated': json['mealplan_autoinclude_related'] == null ? undefined : json['mealplan_autoinclude_related'], 'mealplanAutoexcludeOnhand': json['mealplan_autoexclude_onhand'] == null ? undefined : json['mealplan_autoexclude_onhand'], diff --git a/vue3/src/openapi/models/index.ts b/vue3/src/openapi/models/index.ts index f6e4f67b4..5008d8589 100644 --- a/vue3/src/openapi/models/index.ts +++ b/vue3/src/openapi/models/index.ts @@ -4,10 +4,10 @@ export * from './AccessToken'; export * from './AccessTokenRequest'; export * from './AuthToken'; export * from './AuthTokenRequest'; +export * from './AutoMealPlan'; +export * from './AutoMealPlanRequest'; export * from './Automation'; export * from './AutomationRequest'; -export * from './AutomationTypeEnum'; -export * from './BaseUnitEnum'; export * from './BookmarkletImport'; export * from './BookmarkletImportList'; export * from './BookmarkletImportRequest'; @@ -35,6 +35,7 @@ export * from './ImportLog'; export * from './ImportLogRequest'; export * from './Ingredient'; export * from './IngredientRequest'; +export * from './IngredientStringRequest'; export * from './InviteLink'; export * from './InviteLinkRequest'; export * from './Keyword'; @@ -47,40 +48,37 @@ export * from './MealTypeRequest'; export * from './MethodEnum'; export * from './NutritionInformation'; export * from './NutritionInformationRequest'; -export * from './OpenDataCategory'; -export * from './OpenDataCategoryRequest'; -export * from './OpenDataConversion'; -export * from './OpenDataConversionRequest'; -export * from './OpenDataFood'; -export * from './OpenDataFoodProperty'; -export * from './OpenDataFoodPropertyRequest'; -export * from './OpenDataFoodRequest'; -export * from './OpenDataProperty'; -export * from './OpenDataPropertyRequest'; -export * from './OpenDataStore'; -export * from './OpenDataStoreCategory'; -export * from './OpenDataStoreCategoryRequest'; -export * from './OpenDataStoreRequest'; -export * from './OpenDataUnit'; -export * from './OpenDataUnitRequest'; -export * from './OpenDataUnitTypeEnum'; -export * from './OpenDataVersion'; -export * from './OpenDataVersionRequest'; export * from './PaginatedAutomationList'; +export * from './PaginatedBookmarkletImportListList'; export * from './PaginatedCookLogList'; export * from './PaginatedCustomFilterList'; export * from './PaginatedExportLogList'; export * from './PaginatedFoodList'; export * from './PaginatedImportLogList'; export * from './PaginatedIngredientList'; +export * from './PaginatedInviteLinkList'; export * from './PaginatedKeywordList'; +export * from './PaginatedMealPlanList'; +export * from './PaginatedMealTypeList'; +export * from './PaginatedPropertyList'; +export * from './PaginatedPropertyTypeList'; +export * from './PaginatedRecipeBookEntryList'; +export * from './PaginatedRecipeBookList'; export * from './PaginatedRecipeOverviewList'; +export * from './PaginatedShoppingListEntryList'; +export * from './PaginatedShoppingListRecipeList'; export * from './PaginatedStepList'; +export * from './PaginatedSupermarketCategoryList'; export * from './PaginatedSupermarketCategoryRelationList'; +export * from './PaginatedSupermarketList'; +export * from './PaginatedSyncList'; export * from './PaginatedSyncLogList'; +export * from './PaginatedUnitConversionList'; export * from './PaginatedUnitList'; +export * from './PaginatedUserFileList'; export * from './PaginatedUserSpaceList'; export * from './PaginatedViewLogList'; +export * from './ParsedIngredient'; export * from './PatchedAccessTokenRequest'; export * from './PatchedAutomationRequest'; export * from './PatchedBookmarkletImportRequest'; @@ -95,13 +93,6 @@ export * from './PatchedInviteLinkRequest'; export * from './PatchedKeywordRequest'; export * from './PatchedMealPlanRequest'; export * from './PatchedMealTypeRequest'; -export * from './PatchedOpenDataCategoryRequest'; -export * from './PatchedOpenDataConversionRequest'; -export * from './PatchedOpenDataFoodRequest'; -export * from './PatchedOpenDataPropertyRequest'; -export * from './PatchedOpenDataStoreRequest'; -export * from './PatchedOpenDataUnitRequest'; -export * from './PatchedOpenDataVersionRequest'; export * from './PatchedPropertyRequest'; export * from './PatchedPropertyTypeRequest'; export * from './PatchedRecipeBookEntryRequest'; @@ -140,6 +131,7 @@ export * from './RecipeShoppingUpdate'; export * from './RecipeShoppingUpdateRequest'; export * from './RecipeSimple'; export * from './RecipeSimpleRequest'; +export * from './ShareLink'; export * from './ShoppingListEntry'; export * from './ShoppingListEntryBulk'; export * from './ShoppingListEntryBulkRequest'; @@ -163,6 +155,7 @@ export * from './Sync'; export * from './SyncLog'; export * from './SyncRequest'; export * from './ThemeEnum'; +export * from './TypeEnum'; export * from './Unit'; export * from './UnitConversion'; export * from './UnitConversionRequest'; diff --git a/vue3/src/openapi/update.bat b/vue3/src/openapi/update.bat index 4eb61fddc..b1746ff9e 100755 --- a/vue3/src/openapi/update.bat +++ b/vue3/src/openapi/update.bat @@ -1 +1,4 @@ -openapi-generator-cli generate -g typescript-fetch -i http://127.0.0.1:8000/openapi/ \ No newline at end of file +openapi-generator-cli generate -g typescript-fetch -i http://127.0.0.1:8000/openapi/ + +cd ../../../vue/src/utils/openapi/ +openapi-generator-cli generate -g typescript-axios -i http://127.0.0.1:8000/openapi/ \ No newline at end of file