diff --git a/.env.template b/.env.template index 1e57b4a12d..3c91b3195e 100644 --- a/.env.template +++ b/.env.template @@ -184,4 +184,8 @@ REMOTE_USER_AUTH=0 # EXPORT_FILE_CACHE_DURATION=600 # if you want to do many requests to the FDC API you need to get a (free) API key. Demo key is limited to 30 requests / hour or 50 requests / day -#FDC_API_KEY=DEMO_KEY \ No newline at end of file +#FDC_API_KEY=DEMO_KEY + +# API throttle limits +# you may use X per second, minute, hour or day +# DRF_THROTTLE_RECIPE_URL_IMPORT=60/hour \ No newline at end of file diff --git a/.idea/dictionaries/vaben.xml b/.idea/dictionaries/vaben.xml index 3568ee84f9..e910c82d28 100644 --- a/.idea/dictionaries/vaben.xml +++ b/.idea/dictionaries/vaben.xml @@ -3,6 +3,7 @@ pinia selfhosted + unapplied \ No newline at end of file diff --git a/.idea/inspectionProfiles/profiles_settings.xml b/.idea/inspectionProfiles/profiles_settings.xml index 105ce2da2d..dd4c951ef4 100644 --- a/.idea/inspectionProfiles/profiles_settings.xml +++ b/.idea/inspectionProfiles/profiles_settings.xml @@ -1,5 +1,6 @@ + diff --git a/cookbook/helper/HelperFunctions.py b/cookbook/helper/HelperFunctions.py index e2971c2ed2..94f46ee8c9 100644 --- a/cookbook/helper/HelperFunctions.py +++ b/cookbook/helper/HelperFunctions.py @@ -7,7 +7,7 @@ class Round(Func): def str2bool(v): - if type(v) == bool or v is None: + if isinstance(v, bool) or v is None: return v else: return v.lower() in ("yes", "true", "1") diff --git a/cookbook/helper/ingredient_parser.py b/cookbook/helper/ingredient_parser.py index f944e4164b..be53c21a2f 100644 --- a/cookbook/helper/ingredient_parser.py +++ b/cookbook/helper/ingredient_parser.py @@ -169,6 +169,9 @@ def parse(self, ingredient): if len(ingredient) == 0: raise ValueError('string to parse cannot be empty') + if len(ingredient) > 512: + raise ValueError('cannot parse ingredients with more than 512 characters') + # some people/languages put amount and unit at the end of the ingredient string # if something like this is detected move it to the beginning so the parser can handle it if len(ingredient) < 1000 and re.search(r'^([^\W\d_])+(.)*[1-9](\d)*\s*([^\W\d_])+', ingredient): diff --git a/cookbook/helper/recipe_search.py b/cookbook/helper/recipe_search.py index 2b70808e31..e3b0b506fc 100644 --- a/cookbook/helper/recipe_search.py +++ b/cookbook/helper/recipe_search.py @@ -309,7 +309,7 @@ def _recently_viewed(self, num_recent=None): def _favorite_recipes(self, times_cooked=None): if self._sort_includes('favorite') or times_cooked: - less_than = '-' in (times_cooked or []) and not self._sort_includes('-favorite') + less_than = '-' in (str(times_cooked) or []) and not self._sort_includes('-favorite') if less_than: default = 1000 else: diff --git a/cookbook/helper/recipe_url_import.py b/cookbook/helper/recipe_url_import.py index fbbc23c9cd..416bb54a11 100644 --- a/cookbook/helper/recipe_url_import.py +++ b/cookbook/helper/recipe_url_import.py @@ -415,8 +415,8 @@ def parse_keywords(keyword_json, request): # if alias exists use that instead if len(kw) != 0: - automation_engine.apply_keyword_automation(kw) - if k := Keyword.objects.filter(name=kw, space=request.space).first(): + kw = automation_engine.apply_keyword_automation(kw) + if k := Keyword.objects.filter(name__iexact=kw, space=request.space).first(): keywords.append({'label': str(k), 'name': k.name, 'id': k.id}) else: keywords.append({'label': kw, 'name': kw}) diff --git a/cookbook/locale/fr/LC_MESSAGES/django.po b/cookbook/locale/fr/LC_MESSAGES/django.po index 6ee174e0d0..5f1830a33f 100644 --- a/cookbook/locale/fr/LC_MESSAGES/django.po +++ b/cookbook/locale/fr/LC_MESSAGES/django.po @@ -14,8 +14,8 @@ msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2023-05-18 14:28+0200\n" -"PO-Revision-Date: 2023-10-12 20:19+0000\n" -"Last-Translator: pharok \n" +"PO-Revision-Date: 2023-12-10 14:19+0000\n" +"Last-Translator: Robin Wilmet \n" "Language-Team: French \n" "Language: fr\n" @@ -551,7 +551,7 @@ msgstr "sens inverse" #: .\cookbook\helper\recipe_url_import.py:267 msgid "careful rotation" -msgstr "" +msgstr "sens horloger" #: .\cookbook\helper\recipe_url_import.py:268 msgid "knead" diff --git a/cookbook/locale/hu_HU/LC_MESSAGES/django.po b/cookbook/locale/hu_HU/LC_MESSAGES/django.po index 85b1deeb66..79cf5df8a8 100644 --- a/cookbook/locale/hu_HU/LC_MESSAGES/django.po +++ b/cookbook/locale/hu_HU/LC_MESSAGES/django.po @@ -11,7 +11,7 @@ msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" "POT-Creation-Date: 2023-05-18 14:28+0200\n" -"PO-Revision-Date: 2023-10-20 14:05+0000\n" +"PO-Revision-Date: 2023-12-05 09:15+0000\n" "Last-Translator: Ferenc \n" "Language-Team: Hungarian \n" @@ -282,16 +282,12 @@ msgstr "" "hibát figyelmen kívül hagynak)." #: .\cookbook\forms.py:461 -#, fuzzy -#| msgid "" -#| "Select type method of search. Click here " -#| "for full desciption of choices." msgid "" "Select type method of search. Click here for " "full description of choices." msgstr "" -"Válassza ki a keresés típusát. Kattintson ide " -"a lehetőségek teljes leírásáért." +"Válassza ki a keresés típusát. Kattintson ide a lehetőségek teljes leírásáért." #: .\cookbook\forms.py:462 msgid "" @@ -536,10 +532,8 @@ msgid "One of queryset or hash_key must be provided" msgstr "A queryset vagy a hash_key valamelyikét meg kell adni" #: .\cookbook\helper\recipe_url_import.py:266 -#, fuzzy -#| msgid "Use fractions" msgid "reverse rotation" -msgstr "Törtek használata" +msgstr "Ellentétes irány" #: .\cookbook\helper\recipe_url_import.py:267 msgid "careful rotation" @@ -770,7 +764,7 @@ msgstr "Elérte a fájlfeltöltési limitet." #: .\cookbook\serializer.py:291 msgid "Cannot modify Space owner permission." -msgstr "" +msgstr "A Hely tulajdonosi engedélye nem módosítható." #: .\cookbook\serializer.py:1093 msgid "Hello" @@ -1226,10 +1220,8 @@ msgstr "Admin" #: .\cookbook\templates\base.html:312 #: .\cookbook\templates\space_overview.html:25 -#, fuzzy -#| msgid "No Space" msgid "Your Spaces" -msgstr "Nincs hely" +msgstr "Ön Helye" #: .\cookbook\templates\base.html:323 #: .\cookbook\templates\space_overview.html:6 @@ -2132,6 +2124,8 @@ msgstr "Csatlakozás %(provider)s" #, python-format msgid "You are about to connect a new third party account from %(provider)s." msgstr "" +"Ön egy új, harmadik féltől származó fiókot készül csatlakoztatni " +"a%(provider)-tól/től." #: .\cookbook\templates\socialaccount\login.html:13 #, python-format diff --git a/cookbook/templates/system.html b/cookbook/templates/system.html index 18e56fa754..873d466535 100644 --- a/cookbook/templates/system.html +++ b/cookbook/templates/system.html @@ -83,23 +83,94 @@

{% trans 'Debug Mode' %} {% trans 'Database' %} {% if postgres %} - {% trans 'Info' %}{% else %}{% trans 'Ok' %}{% endif %}

- {% if postgres %} +

{% trans 'Database' %} + + {% if postgres_status == 'warning' %} + {% trans 'Info' %} + {% elif postgres_status == 'danger' %} + {% trans 'Warning' %} + {% else %} + {% trans 'Ok' %} + {% endif %} + +

+ {{ postgres_message }} + +

{% trans 'Migrations' %} + {% if missing_migration %} + {% trans 'Warning' %}{% else %}{% trans 'Ok' %}{% endif %}

+ +

{% blocktrans %} - This application is not running with a Postgres database backend. This is ok but not recommended as some - features only work with postgres databases. + Migrations should never fail! + Failed migrations will likely cause major parts of the app to not function correctly. + If a migration fails make sure you are on the latest version and if so please post the migration log and the overview below in a GitHub issue. {% endblocktrans %} - {% else %} - {% trans 'Everything is fine!' %} - {% endif %} +

+ + + + + + + + + {% for key,value in migration_info.items %} + + + + + + {% for u in value.unapplied_migrations %} + + + + + {% endfor %} + + {% endfor %} +
App{% trans 'Migrations' %}
{{ value.app }} + + {{ value.applied_migrations|length }} / {{ value.total }} + +
+ {{ u }} +
+ + + {#

#} + {# {% trans 'Orphaned Files' %}#} + {##} + {# #} + {# {% if orphans|length == 0 %}{% trans 'Success' %}#} + {# {% elif orphans|length <= 25 %}{% trans 'Warning' %}#} + {# {% else %}{% trans 'Danger' %}#} + {# {% endif %}#} + {# #} + {#

#} + + {# {% if orphans|length == 0 %}#} + {# {% trans 'Everything is fine!' %}#} + {# {% else %}#} + {# {% blocktrans with orphan_count=orphans|length %}#} + {# There are currently {{ orphan_count }} orphaned files.#} + {# {% endblocktrans %}#} + {#
#} + {# #} + {# #} + {# {% endif %}#} + {# #}

Debug



-{% endblock %} \ No newline at end of file +
+ {% csrf_token %} + +
+ {% block script %} + + {% endblock script %} +{% endblock %} + + diff --git a/cookbook/tests/api/test_api_meal_plan.py b/cookbook/tests/api/test_api_meal_plan.py index 73dcc40fb8..3faebf19e3 100644 --- a/cookbook/tests/api/test_api_meal_plan.py +++ b/cookbook/tests/api/test_api_meal_plan.py @@ -61,6 +61,12 @@ def test_list_filter(obj_1, u1_s1): response = json.loads(r.content) assert len(response) == 1 + response = json.loads(u1_s1.get(f'{reverse(LIST_URL)}?meal_type={response[0]["meal_type"]["id"]}').content) + assert len(response) == 1 + + response = json.loads(u1_s1.get(f'{reverse(LIST_URL)}?meal_type=0').content) + assert len(response) == 0 + response = json.loads( u1_s1.get(f'{reverse(LIST_URL)}?from_date={(datetime.now() + timedelta(days=2)).strftime("%Y-%m-%d")}').content) assert len(response) == 0 diff --git a/cookbook/urls.py b/cookbook/urls.py index db8680e5ef..1b1e6548f0 100644 --- a/cookbook/urls.py +++ b/cookbook/urls.py @@ -129,7 +129,7 @@ def extend(self, r): path('api/sync_all/', api.sync_all, name='api_sync'), path('api/log_cooking//', api.log_cooking, name='api_log_cooking'), path('api/plan-ical///', api.get_plan_ical, name='api_get_plan_ical'), - path('api/recipe-from-source/', api.recipe_from_source, name='api_recipe_from_source'), + path('api/recipe-from-source/', api.RecipeUrlImportView.as_view(), name='api_recipe_from_source'), path('api/backup/', api.get_backup, name='api_backup'), path('api/ingredient-from-string/', api.ingredient_from_string, name='api_ingredient_from_string'), path('api/share-link/', api.share_link, name='api_share_link'), diff --git a/cookbook/views/api.py b/cookbook/views/api.py index d97d5f739c..189d04fd86 100644 --- a/cookbook/views/api.py +++ b/cookbook/views/api.py @@ -26,7 +26,7 @@ from django.db.models.fields.related import ForeignObjectRel from django.db.models.functions import Coalesce, Lower from django.db.models.signals import post_save -from django.http import FileResponse, HttpResponse, JsonResponse, HttpResponseRedirect +from django.http import FileResponse, HttpResponse, JsonResponse from django.shortcuts import get_object_or_404, redirect from django.urls import reverse from django.utils import timezone @@ -46,7 +46,7 @@ from rest_framework.parsers import MultiPartParser from rest_framework.renderers import JSONRenderer, TemplateHTMLRenderer from rest_framework.response import Response -from rest_framework.throttling import AnonRateThrottle +from rest_framework.throttling import AnonRateThrottle, UserRateThrottle from rest_framework.views import APIView from rest_framework.viewsets import ViewSetMixin from treebeard.exceptions import InvalidMoveToDescendant, InvalidPosition, PathOverflow @@ -70,12 +70,13 @@ from cookbook.helper.scrapers.scrapers import text_scraper from cookbook.helper.shopping_helper import RecipeShoppingEditor, shopping_helper from cookbook.models import (Automation, BookmarkletImport, CookLog, CustomFilter, ExportLog, Food, - FoodInheritField, ImportLog, Ingredient, InviteLink, Keyword, MealPlan, - MealType, Property, PropertyType, Recipe, RecipeBook, RecipeBookEntry, - ShareLink, ShoppingList, ShoppingListEntry, ShoppingListRecipe, Space, - Step, Storage, Supermarket, SupermarketCategory, - SupermarketCategoryRelation, Sync, SyncLog, Unit, UnitConversion, - UserFile, UserPreference, UserSpace, ViewLog, FoodProperty) + FoodInheritField, FoodProperty, ImportLog, Ingredient, InviteLink, + Keyword, MealPlan, MealType, Property, PropertyType, Recipe, + RecipeBook, RecipeBookEntry, ShareLink, ShoppingList, + ShoppingListEntry, ShoppingListRecipe, Space, Step, Storage, + Supermarket, SupermarketCategory, SupermarketCategoryRelation, Sync, + SyncLog, Unit, UnitConversion, UserFile, UserPreference, UserSpace, + ViewLog) from cookbook.provider.dropbox import Dropbox from cookbook.provider.local import Local from cookbook.provider.nextcloud import Nextcloud @@ -104,7 +105,7 @@ UserSerializer, UserSpaceSerializer, ViewLogSerializer) from cookbook.views.import_export import get_integration from recipes import settings -from recipes.settings import FDC_API_KEY +from recipes.settings import FDC_API_KEY, DRF_THROTTLE_RECIPE_URL_IMPORT class StandardFilterMixin(ViewSetMixin): @@ -640,9 +641,9 @@ def fdc(self, request, pk): Property.objects.filter(space=self.request.space, import_food_id=food.id).update(import_food_id=None) return self.retrieve(request, pk) - except Exception as e: + except Exception: traceback.print_exc() - return JsonResponse({'msg': f'there was an error parsing the FDC data, please check the server logs'}, status=500, json_dumps_params={'indent': 4}) + return JsonResponse({'msg': 'there was an error parsing the FDC data, please check the server logs'}, status=500, json_dumps_params={'indent': 4}) def destroy(self, *args, **kwargs): try: @@ -698,11 +699,18 @@ class MealPlanViewSet(viewsets.ModelViewSet): - **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 """ queryset = MealPlan.objects serializer_class = MealPlanSerializer permission_classes = [(CustomIsOwner | CustomIsShared) & CustomTokenHasReadWriteScope] + query_params = [ + QueryParam(name='from_date', description=_('Filter meal plans from date (inclusive) in the format of YYYY-MM-DD.'), qtype='string'), + QueryParam(name='to_date', description=_('Filter meal plans to date (inclusive) in the format of YYYY-MM-DD.'), qtype='string'), + QueryParam(name='meal_type', description=_('Filter meal plans with MealType ID. For multiple repeat parameter.'), qtype='int'), + ] + schema = QueryParamAutoSchema() def get_queryset(self): queryset = self.queryset.filter( @@ -717,6 +725,11 @@ def get_queryset(self): to_date = self.request.query_params.get('to_date', None) if to_date is not None: queryset = queryset.filter(to_date__lte=to_date) + + meal_type = self.request.query_params.getlist('meal_type', []) + if meal_type: + queryset = queryset.filter(meal_type__in=meal_type) + return queryset @@ -1298,6 +1311,10 @@ class AuthTokenThrottle(AnonRateThrottle): rate = '10/day' +class RecipeImportThrottle(UserRateThrottle): + rate = DRF_THROTTLE_RECIPE_URL_IMPORT + + class CustomAuthToken(ObtainAuthToken): throttle_classes = [AuthTokenThrottle] @@ -1323,114 +1340,114 @@ def post(self, request, *args, **kwargs): }) -@api_view(['POST']) -# @schema(AutoSchema()) #TODO add proper schema -@permission_classes([CustomIsUser & CustomTokenHasReadWriteScope]) -# TODO add rate limiting -def recipe_from_source(request): - """ - function to retrieve a recipe from a given url or source string - :param request: standard request with additional post parameters - - url: url to use for importing recipe - - data: if no url is given recipe is imported from provided source data - - (optional) bookmarklet: id of bookmarklet import to use, overrides URL and data attributes - :return: JsonResponse containing the parsed json and images - """ - scrape = None - serializer = RecipeFromSourceSerializer(data=request.data) - if serializer.is_valid(): - - if (b_pk := serializer.validated_data.get('bookmarklet', None)) and ( - bookmarklet := BookmarkletImport.objects.filter(pk=b_pk).first()): - serializer.validated_data['url'] = bookmarklet.url - serializer.validated_data['data'] = bookmarklet.html - bookmarklet.delete() - - url = serializer.validated_data.get('url', None) - data = unquote(serializer.validated_data.get('data', None)) - if not url and not data: - return Response({ - 'error': True, - 'msg': _('Nothing to do.') - }, status=status.HTTP_400_BAD_REQUEST) - - elif url and not data: - if re.match('^(https?://)?(www\\.youtube\\.com|youtu\\.be)/.+$', url): - if validators.url(url, public=True): - return Response({ - 'recipe_json': get_from_youtube_scraper(url, request), - 'recipe_images': [], - }, status=status.HTTP_200_OK) - if re.match( - '^(.)*/view/recipe/[0-9]+/[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$', - url): - recipe_json = requests.get( - url.replace('/view/recipe/', '/api/recipe/').replace(re.split('/view/recipe/[0-9]+', url)[1], - '') + '?share=' + - re.split('/view/recipe/[0-9]+', url)[1].replace('/', '')).json() - recipe_json = clean_dict(recipe_json, 'id') - serialized_recipe = RecipeExportSerializer(data=recipe_json, context={'request': request}) - if serialized_recipe.is_valid(): - recipe = serialized_recipe.save() - if validators.url(recipe_json['image'], public=True): - recipe.image = File(handle_image(request, - File(io.BytesIO(requests.get(recipe_json['image']).content), - name='image'), - filetype=pathlib.Path(recipe_json['image']).suffix), - name=f'{uuid.uuid4()}_{recipe.pk}{pathlib.Path(recipe_json["image"]).suffix}') - recipe.save() - return Response({ - 'link': request.build_absolute_uri(reverse('view_recipe', args={recipe.pk})) - }, status=status.HTTP_201_CREATED) - else: - try: - if validators.url(url, public=True): - scrape = scrape_me(url_path=url, wild_mode=True) +class RecipeUrlImportView(ObtainAuthToken): + throttle_classes = [RecipeImportThrottle] + permission_classes = [CustomIsUser & CustomTokenHasReadWriteScope] - else: + def post(self, request, *args, **kwargs): + """ + function to retrieve a recipe from a given url or source string + :param request: standard request with additional post parameters + - url: url to use for importing recipe + - data: if no url is given recipe is imported from provided source data + - (optional) bookmarklet: id of bookmarklet import to use, overrides URL and data attributes + :return: JsonResponse containing the parsed json and images + """ + scrape = None + serializer = RecipeFromSourceSerializer(data=request.data) + if serializer.is_valid(): + + if (b_pk := serializer.validated_data.get('bookmarklet', None)) and ( + bookmarklet := BookmarkletImport.objects.filter(pk=b_pk).first()): + serializer.validated_data['url'] = bookmarklet.url + serializer.validated_data['data'] = bookmarklet.html + bookmarklet.delete() + + url = serializer.validated_data.get('url', None) + data = unquote(serializer.validated_data.get('data', None)) + if not url and not data: + return Response({ + 'error': True, + 'msg': _('Nothing to do.') + }, status=status.HTTP_400_BAD_REQUEST) + + elif url and not data: + if re.match('^(https?://)?(www\\.youtube\\.com|youtu\\.be)/.+$', url): + if validators.url(url, public=True): + return Response({ + 'recipe_json': get_from_youtube_scraper(url, request), + 'recipe_images': [], + }, status=status.HTTP_200_OK) + if re.match( + '^(.)*/view/recipe/[0-9]+/[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$', + url): + recipe_json = requests.get( + url.replace('/view/recipe/', '/api/recipe/').replace(re.split('/view/recipe/[0-9]+', url)[1], + '') + '?share=' + + re.split('/view/recipe/[0-9]+', url)[1].replace('/', '')).json() + recipe_json = clean_dict(recipe_json, 'id') + serialized_recipe = RecipeExportSerializer(data=recipe_json, context={'request': request}) + if serialized_recipe.is_valid(): + recipe = serialized_recipe.save() + if validators.url(recipe_json['image'], public=True): + recipe.image = File(handle_image(request, + File(io.BytesIO(requests.get(recipe_json['image']).content), + name='image'), + filetype=pathlib.Path(recipe_json['image']).suffix), + name=f'{uuid.uuid4()}_{recipe.pk}{pathlib.Path(recipe_json["image"]).suffix}') + recipe.save() + return Response({ + 'link': request.build_absolute_uri(reverse('view_recipe', args={recipe.pk})) + }, status=status.HTTP_201_CREATED) + else: + try: + if validators.url(url, public=True): + scrape = scrape_me(url_path=url, wild_mode=True) + + else: + return Response({ + 'error': True, + 'msg': _('Invalid Url') + }, status=status.HTTP_400_BAD_REQUEST) + except NoSchemaFoundInWildMode: + pass + except requests.exceptions.ConnectionError: + return Response({ + 'error': True, + 'msg': _('Connection Refused.') + }, status=status.HTTP_400_BAD_REQUEST) + except requests.exceptions.MissingSchema: return Response({ 'error': True, - 'msg': _('Invalid Url') + 'msg': _('Bad URL Schema.') }, status=status.HTTP_400_BAD_REQUEST) - except NoSchemaFoundInWildMode: + else: + try: + data_json = json.loads(data) + if '@context' not in data_json: + data_json['@context'] = 'https://schema.org' + if '@type' not in data_json: + data_json['@type'] = 'Recipe' + data = "" + except JSONDecodeError: pass - except requests.exceptions.ConnectionError: - return Response({ - 'error': True, - 'msg': _('Connection Refused.') - }, status=status.HTTP_400_BAD_REQUEST) - except requests.exceptions.MissingSchema: - return Response({ - 'error': True, - 'msg': _('Bad URL Schema.') - }, status=status.HTTP_400_BAD_REQUEST) - else: - try: - data_json = json.loads(data) - if '@context' not in data_json: - data_json['@context'] = 'https://schema.org' - if '@type' not in data_json: - data_json['@type'] = 'Recipe' - data = "" - except JSONDecodeError: - pass - scrape = text_scraper(text=data, url=url) - if not url and (found_url := scrape.schema.data.get('url', None)): - scrape = text_scraper(text=data, url=found_url) + scrape = text_scraper(text=data, url=url) + if not url and (found_url := scrape.schema.data.get('url', None)): + scrape = text_scraper(text=data, url=found_url) - if scrape: - return Response({ - 'recipe_json': helper.get_from_scraper(scrape, request), - 'recipe_images': list(dict.fromkeys(get_images_from_soup(scrape.soup, url))), - }, status=status.HTTP_200_OK) + if scrape: + return Response({ + 'recipe_json': helper.get_from_scraper(scrape, request), + 'recipe_images': list(dict.fromkeys(get_images_from_soup(scrape.soup, url))), + }, status=status.HTTP_200_OK) + else: + return Response({ + 'error': True, + 'msg': _('No usable data could be found.') + }, status=status.HTTP_400_BAD_REQUEST) else: - return Response({ - 'error': True, - 'msg': _('No usable data could be found.') - }, status=status.HTTP_400_BAD_REQUEST) - else: - return Response(serializer.errors, status=status.HTTP_400_BAD_REQUEST) + return Response(serializer.errors, status=status.HTTP_400_BAD_REQUEST) @api_view(['GET']) diff --git a/cookbook/views/views.py b/cookbook/views/views.py index 92c55789e7..dc8d9f102e 100644 --- a/cookbook/views/views.py +++ b/cookbook/views/views.py @@ -1,14 +1,19 @@ import os import re from datetime import datetime +from io import StringIO from uuid import UUID +import subprocess +from django.apps import apps from django.conf import settings from django.contrib import messages from django.contrib.auth.decorators import login_required from django.contrib.auth.models import Group from django.contrib.auth.password_validation import validate_password from django.core.exceptions import ValidationError +from django.core.management import call_command +from django.db import models from django.http import HttpResponseRedirect from django.shortcuts import get_object_or_404, redirect, render from django.urls import reverse, reverse_lazy @@ -18,13 +23,14 @@ from cookbook.forms import (CommentForm, Recipe, SearchPreferenceForm, SpaceCreateForm, SpaceJoinForm, User, UserCreateForm, UserPreference) +from cookbook.helper.HelperFunctions import str2bool from cookbook.helper.permission_helper import (group_required, has_group_permission, share_link_valid, switch_user_active_space) from cookbook.models import (Comment, CookLog, InviteLink, SearchFields, SearchPreference, ShareLink, Space, UserSpace, ViewLog) from cookbook.tables import CookLogTable, ViewLogTable from cookbook.version_info import VERSION_INFO -from recipes.settings import PLUGINS +from recipes.settings import PLUGINS, BASE_DIR def index(request): @@ -314,17 +320,70 @@ def system(request): if not request.user.is_superuser: return HttpResponseRedirect(reverse('index')) + postgres_ver = None postgres = settings.DATABASES['default']['ENGINE'] == 'django.db.backends.postgresql' + if postgres: + postgres_current = 16 # will need to be updated as PostgreSQL releases new major versions + from decimal import Decimal + + from django.db import connection + + postgres_ver = Decimal(str(connection.pg_version).replace('00', '.')) + if postgres_ver >= postgres_current: + database_status = 'success' + database_message = _('Everything is fine!') + elif postgres_ver < postgres_current - 2: + database_status = 'danger' + database_message = _('PostgreSQL %(v)s is deprecated. Upgrade to a fully supported version!') % {'v': postgres_ver} + else: + database_status = 'info' + database_message = _('You are running PostgreSQL %(v1)s. PostgreSQL %(v2)s is recommended') % {'v1': postgres_ver, 'v2': postgres_current} + else: + database_status = 'info' + database_message = _('This application is not running with a Postgres database backend. This is ok but not recommended as some features only work with postgres databases.') + secret_key = False if os.getenv('SECRET_KEY') else True + if request.method == "POST": + del_orphans = request.POST.get('delete_orphans') + orphans = get_orphan_files(delete_orphans=str2bool(del_orphans)) + else: + orphans = get_orphan_files() + + out = StringIO() + call_command('showmigrations', stdout=out) + missing_migration = False + migration_info = {} + current_app = None + for row in out.getvalue().splitlines(): + if '[ ]' in row and current_app: + migration_info[current_app]['unapplied_migrations'].append(row.replace('[ ]', '')) + missing_migration = True + elif '[X]' in row and current_app: + migration_info[current_app]['applied_migrations'].append(row.replace('[x]', '')) + elif '(no migrations)' in row and current_app: + pass + else: + current_app = row + migration_info[current_app] = {'app': current_app, 'unapplied_migrations': [], 'applied_migrations': [], 'total': 0} + + for key in migration_info.keys(): + migration_info[key]['total'] = len(migration_info[key]['unapplied_migrations']) + len(migration_info[key]['applied_migrations']) + return render(request, 'system.html', { 'gunicorn_media': settings.GUNICORN_MEDIA, 'debug': settings.DEBUG, 'postgres': postgres, + 'postgres_version': postgres_ver, + 'postgres_status': database_status, + 'postgres_message': database_message, 'version_info': VERSION_INFO, 'plugins': PLUGINS, - 'secret_key': secret_key + 'secret_key': secret_key, + 'orphans': orphans, + 'migration_info': migration_info, + 'missing_migration': missing_migration, }) @@ -448,3 +507,48 @@ def test(request): def test2(request): if not settings.DEBUG: return HttpResponseRedirect(reverse('index')) + + +def get_orphan_files(delete_orphans=False): + # Get list of all image files in media folder + media_dir = settings.MEDIA_ROOT + + def find_orphans(): + image_files = [] + for root, dirs, files in os.walk(media_dir): + for file in files: + + if not file.lower().endswith(('.db')) and not root.lower().endswith(('@eadir')): + full_path = os.path.join(root, file) + relative_path = os.path.relpath(full_path, media_dir) + image_files.append((relative_path, full_path)) + + # Get list of all image fields in models + image_fields = [] + for model in apps.get_models(): + for field in model._meta.get_fields(): + if isinstance(field, models.ImageField) or isinstance(field, models.FileField): + image_fields.append((model, field.name)) + + # get all images in the database + # TODO I don't know why, but this completely bypasses scope limitations + image_paths = [] + for model, field in image_fields: + image_field_paths = model.objects.values_list(field, flat=True) + image_paths.extend(image_field_paths) + + # Check each image file against model image fields + return [img for img in image_files if img[0] not in image_paths] + + orphans = find_orphans() + if delete_orphans: + for f in [img[1] for img in orphans]: + try: + os.remove(f) + except FileNotFoundError: + print(f"File not found: {f}") + except Exception as e: + print(f"Error deleting file {f}: {e}") + orphans = find_orphans() + + return [img[1] for img in orphans] diff --git a/docs/faq.md b/docs/faq.md index bd38eaa236..6c8e5aa5e6 100644 --- a/docs/faq.md +++ b/docs/faq.md @@ -117,6 +117,21 @@ that I can spend on this project besides work, family and other life things. Due to the countless problems that can occur when manually installing I simply do not have the time to help solving each one. -You can install Tandoor manually but please do not expect me or anyone to help you with that. -As a general advice: If you do it manually do NOT change anything at first and slowly work yourself +You can install Tandoor manually but please do not expect me or anyone to help you with that. +As a general advice: If you do it manually do NOT change anything at first and slowly work yourself to your dream setup. + +## How can I upgrade postgres (major versions)? +Postgres requires manual intervention when updating from one major version to another. The steps are roughly + +1. use `pg_dumpall` to dump your database into SQL (for Docker `docker-compose exec -T pg_dumpall -U -f /path/to/dump.sql`) +2. stop the DB / down the container +3. move your postgres directory in order to keep it as a backup (e.g. `mv postgres postgres_old`) +4. update postgres to the new major version (for Docker just change the version number and pull) +5. start the db / up the container (do not start tandoor as it will automatically perform the database migrations which will conflict with loading the dump) +6. if not using docker, you might need to create the same postgres user you had in the old database +7. load the postgres dump (for Docker `'/usr/local/bin/docker-compose exec -T psql -U postgres < /path/to/dump.sql`) + +If anything fails, go back to the old postgres version and data directory and try again. + +There are many articles and tools online that might provide a good starting point to help you upgrade [1](https://thomasbandt.com/postgres-docker-major-version-upgrade), [2](https://github.com/tianon/docker-postgres-upgrade), [3](https://github.com/vabene1111/DockerPostgresBackups). diff --git a/docs/install/docker.md b/docs/install/docker.md index 0a7eaba8ea..7d32ab4dd7 100644 --- a/docs/install/docker.md +++ b/docs/install/docker.md @@ -349,10 +349,9 @@ ProxyPassReverse / http://localhost:8080/ # replace port !!!info Always wait at least 2-3 minutes after the very first start, since migrations will take some time! -!!!warning - If you want to use Tandoor on a Raspberry Pi running a 32-bit operating system you will need to use the following - docker image tags: `latest-raspi`, `beta-raspi` and the versioned `-raspi` - We strongly recommend using the new 64-bit Raspian image as the 32-bit version is not tested. +!!!info + In the past there was a special `*-raspi` version of the image. This no longer exists. The normal Tags all support Arm/v7 architectures which should work on all Raspberry Pi's above Version 1 and the first generation Zero. + See [Wikipedia Raspberry Pi specifications](https://en.wikipedia.org/wiki/Raspberry_Pi#Specifications). If you're having issues with installing Tandoor on your Raspberry Pi or similar device, follow these instructions: diff --git a/recipes/settings.py b/recipes/settings.py index 86739628f3..2f5b95e7e6 100644 --- a/recipes/settings.py +++ b/recipes/settings.py @@ -96,6 +96,8 @@ ACCOUNT_SIGNUP_FORM_CLASS = 'cookbook.forms.AllAuthSignupForm' +DRF_THROTTLE_RECIPE_URL_IMPORT = os.getenv('DRF_THROTTLE_RECIPE_URL_IMPORT', '60/hour') + TERMS_URL = os.getenv('TERMS_URL', '') PRIVACY_URL = os.getenv('PRIVACY_URL', '') IMPRINT_URL = os.getenv('IMPRINT_URL', '') @@ -218,6 +220,7 @@ 'django.middleware.locale.LocaleMiddleware', 'django.middleware.clickjacking.XFrameOptionsMiddleware', 'cookbook.helper.scope_middleware.ScopeMiddleware', + 'allauth.account.middleware.AccountMiddleware', ] if DEBUG_TOOLBAR: @@ -438,7 +441,7 @@ if p['bundle_name'] != '': WEBPACK_LOADER[p['bundle_name']] = { 'CACHE': not DEBUG, - 'BUNDLE_DIR_NAME': f'vue/', # must end with slash + 'BUNDLE_DIR_NAME': 'vue/', # must end with slash 'STATS_FILE': os.path.join(p["base_path"], 'vue', 'webpack-stats.json'), 'POLL_INTERVAL': 0.1, 'TIMEOUT': None, diff --git a/requirements.txt b/requirements.txt index 0ebb387529..9cf4efdfb9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -9,7 +9,7 @@ django-tables2==2.5.3 djangorestframework==3.14.0 drf-writable-nested==0.7.0 django-oauth-toolkit==2.3.0 -django-debug-toolbar==3.8.1 +django-debug-toolbar==4.2.0 bleach==6.0.0 gunicorn==20.1.0 lxml==4.9.3 @@ -29,7 +29,7 @@ microdata==0.8.0 Jinja2==3.1.2 django-webpack-loader==1.8.1 git+https://github.com/BITSOLVER/django-js-reverse@071e304fd600107bc64bbde6f2491f1fe049ec82 -django-allauth==0.54.0 +django-allauth==0.58.1 recipe-scrapers==14.52.0 django-scopes==2.0.0 pytest==7.4.3 diff --git a/version.py b/version.py index ae46b42eb6..aacd8c1a87 100644 --- a/version.py +++ b/version.py @@ -13,12 +13,11 @@ try: print('getting tandoor version') r = subprocess.check_output(['git', 'show', '-s'], cwd=BASE_DIR).decode() - tandoor_branch = subprocess.check_output(['git', 'rev-parse', '--abbrev-ref', 'HEAD'], cwd=BASE_DIR).decode() + tandoor_branch = subprocess.check_output(['git', 'rev-parse', '--abbrev-ref', 'HEAD'], cwd=BASE_DIR).decode().replace('\n', '') tandoor_hash = r.split('\n')[0].split(' ')[1] try: - tandoor_tag = subprocess.check_output(['git', 'describe', '--exact-match', tandoor_hash], cwd=BASE_DIR).decode().replace('\n', '') - except: - + tandoor_tag = subprocess.check_output(['git', 'describe', '--exact-match', '--tags', tandoor_hash], cwd=BASE_DIR).decode().replace('\n', '') + except BaseException: pass version_info.append({ @@ -47,8 +46,9 @@ commit_hash = r.split('\n')[0].split(' ')[1] try: print('running describe') - tag = subprocess.check_output(['git', 'describe', '--exact-match', commit_hash], cwd=os.path.join(BASE_DIR, 'recipes', 'plugins', d)).decode().replace('\n', '') - except: + tag = subprocess.check_output(['git', 'describe', '--exact-match', commit_hash], + cwd=os.path.join(BASE_DIR, 'recipes', 'plugins', d)).decode().replace('\n', '') + except BaseException: tag = '' version_info.append({ @@ -66,9 +66,11 @@ traceback.print_exc() except subprocess.CalledProcessError as e: print("command '{}' return with error (code {}): {}".format(e.cmd, e.returncode, e.output)) -except: +except BaseException: traceback.print_exc() with open('cookbook/version_info.py', 'w+', encoding='UTF-8') as f: print(f"writing version info {version_info}") + if not tandoor_tag: + tandoor_tag = tandoor_hash f.write(f'TANDOOR_VERSION = "{tandoor_tag}"\nTANDOOR_REF = "{tandoor_hash}"\nVERSION_INFO = {version_info}') diff --git a/vue/package.json b/vue/package.json index d1339fedf0..f90fbc7ffd 100644 --- a/vue/package.json +++ b/vue/package.json @@ -9,6 +9,11 @@ }, "dependencies": { "@babel/eslint-parser": "^7.21.3", + "@codemirror/autocomplete": "^6.11.1", + "@codemirror/commands": "^6.3.2", + "@codemirror/lang-markdown": "^6.2.3", + "@codemirror/state": "^6.3.3", + "@codemirror/view": "^6.22.2", "@popperjs/core": "^2.11.7", "@vue/cli": "^5.0.8", "@vue/composition-api": "1.7.1", diff --git a/vue/src/apps/MealPlanView/MealPlanView.vue b/vue/src/apps/MealPlanView/MealPlanView.vue index 2f60ae01fc..f870ee96d3 100644 --- a/vue/src/apps/MealPlanView/MealPlanView.vue +++ b/vue/src/apps/MealPlanView/MealPlanView.vue @@ -363,20 +363,26 @@ export default { } }, mobileSimpleGrid() { - let grid = [] - - if (this.current_period !== null) { - for (const x of Array(7).keys()) { - let moment_date = moment(this.current_period.periodStart).add(x, "d") - grid.push({ - date: moment_date, - create_default_date: moment_date.format("YYYY-MM-DD"), // improve meal plan edit modal to do formatting itself and accept dates - date_label: moment_date.format("dd") + " " + moment_date.format("ll"), - plan_entries: this.plan_items.filter((m) => moment_date.isBetween(moment(m.startDate), moment(m.endDate), 'day', '[]')) - }) - } + let grid = []; + let currentDate = moment(); + for (let x = 0; x < 7; x++) { + let moment_date = currentDate.clone().add(x, "d"); + grid.push({ + date: moment_date, + create_default_date: moment_date.format("YYYY-MM-DD"), + date_label: moment_date.format("dd") + " " + moment_date.format("ll"), + plan_entries: this.plan_items.filter( + (m) => + moment_date.isBetween( + moment(m.startDate), + moment(m.endDate), + 'day', + '[]' + ) + ), + }); } - return grid + return grid; } }, mounted() { diff --git a/vue/src/apps/RecipeEditView/RecipeEditView.vue b/vue/src/apps/RecipeEditView/RecipeEditView.vue index ffe4ceeb7f..2649c0371c 100644 --- a/vue/src/apps/RecipeEditView/RecipeEditView.vue +++ b/vue/src/apps/RecipeEditView/RecipeEditView.vue @@ -425,7 +425,6 @@ v-if="!ingredient.is_header"> { this.$set(s, "time_visible", s.time !== 0) - // ingredients_visible determines whether or not the ingredients UI is shown in the edit view - // show_ingredients_table determine whether the ingredients table is shown in the read view - // these are seperate as one might want to add ingredients but not want the step-level view - this.$set(s, "ingredients_visible", s.show_ingredients_table && (s.ingredients.length > 0 || this.recipe.steps.length === 1)) + this.$set(s, "ingredients_visible", (s.ingredients.length > 0 || this.recipe.steps.length === 1)) this.$set(s, "instruction_visible", s.instruction !== "" || this.recipe.steps.length === 1) this.$set(s, "step_recipe_visible", s.step_recipe !== null) this.$set(s, "file_visible", s.file !== null) diff --git a/vue/src/apps/RecipeSearchView/RecipeSearchView.vue b/vue/src/apps/RecipeSearchView/RecipeSearchView.vue index 6f0a901b7a..2705b5e3d6 100644 --- a/vue/src/apps/RecipeSearchView/RecipeSearchView.vue +++ b/vue/src/apps/RecipeSearchView/RecipeSearchView.vue @@ -1,6 +1,6 @@ @@ -642,38 +652,38 @@ contain anyall of the following books: {{ k.items.flatMap((x) => x.name).join(", ") }} -
+
- and you can make right now (based on the on hand flag)
+ and you can make right now (based on the on hand flag)
and contain anyall of the following units: {{ search.search_units.flatMap((x) => x.name).join(", ") }}
+ >
and have a rating or equal to {{ search.search_rating }}
+ > or equal to {{ search.search_rating }}
and have been last cooked {{ search.lastcooked }}
+ > {{ search.lastcooked }}
and have been cooked or equal to{{ search.timescooked }} times
+ > or equal to{{ search.timescooked }} times
order by {{ search.sort_order.flatMap((x) => x.text).join(", ") }} -
+
@@ -709,19 +719,19 @@ {{ search.pagination_page }}/{{ Math.ceil(pagination_count / ui.page_size) }} {{ $t("Reset") }} + > {{ search.pagination_page }}/{{ Math.ceil(pagination_count / ui.page_size) }} {{ $t("Reset") }} {{ $t("Random") }} + > {{ $t("Random") }}
@@ -853,24 +863,23 @@ diff --git a/vue/src/components/MealPlanEditModal.vue b/vue/src/components/MealPlanEditModal.vue index c950f6d5ae..6be3505965 100644 --- a/vue/src/components/MealPlanEditModal.vue +++ b/vue/src/components/MealPlanEditModal.vue @@ -27,7 +27,7 @@ - + @@ -38,7 +38,7 @@ - + {{ $t("EndDate") }} @@ -209,8 +209,14 @@ export default { }, deep: true, }, - entryEditing: { - handler(newVal) { + 'entryEditing.from_date': { + handler(newVal, oldVal) { + if (newVal !== undefined && oldVal !== undefined) { + if (newVal !== oldVal) { + let change = Math.abs(moment(oldVal).diff(moment(this.entryEditing.to_date), 'days')) // even though negative numbers might be correct, they would be illogical as to needs to always be larger than from + this.entryEditing.to_date = moment(newVal).add(change, 'd').format("YYYY-MM-DD") + } + } }, deep: true, }, @@ -312,7 +318,7 @@ export default { this.entryEditing.servings = 1 } }, - changeDate(date, change){ + changeDate(date, change) { return moment(date).add(change, 'd').format("YYYY-MM-DD") } }, diff --git a/vue/src/locales/fr.json b/vue/src/locales/fr.json index e7a0482dce..be5ccec3b7 100644 --- a/vue/src/locales/fr.json +++ b/vue/src/locales/fr.json @@ -487,5 +487,39 @@ "PinnedConfirmation": "{recipe} a été épinglée.", "Back": "Retour", "Open_Data_Import": "Import Open Data", - "Data_Import_Info": "Améliorez votre groupe en important des données partagées par la communauté afin d'améliorer vos collections de recettes : listes d'aliments, unités et plus encore." + "Data_Import_Info": "Améliorez votre groupe en important des données partagées par la communauté afin d'améliorer vos collections de recettes : listes d'aliments, unités et plus encore.", + "Nav_Color": "Couleur de la Navigation", + "Nav_Color_Help": "Changer la couleur de la navigation.", + "reset_food_inheritance_info": "Réinitialiser tous les champs d'héritage des aliments par les valeurs de leurs parents.", + "last_viewed": "Vu dernièrement", + "substitute_children_help": "Tout aliment étant enfant de cet aliment est considéré comme substitut.", + "show_step_ingredients": "Afficher les ingrédients de l'étape", + "FDC_ID": "ID FCD", + "FDC_ID_help": "ID de base de données FDC", + "reset_food_inheritance": "Réinitialiser l'héritage", + "kg": "kilogramme [kg] (métrique, poids)", + "ounce": "once [oz] (poids)", + "pound": "livre (poids)", + "base_amount": "Quantité de base", + "hide_step_ingredients": "Cacher les ingrédients de l'étape", + "show_ingredients_table": "Afficher une table des ingrédients à coté du texte de l'étape", + "Bookmarklet": "Signet", + "l": "litre [l] (métrique, volume)", + "Choose_Category": "Choisir une catégorie", + "err_importing_recipe": "Une erreur s'est produite lors de l'importation de cette recette !", + "Properties_Food_Amount": "Propriété Quantité de nourriture", + "Properties_Food_Unit": "Propriété Unité de nourriture", + "FDC_Search": "Recherche dans le FDC", + "property_type_fdc_hint": "Seules les propriétés avec un ID FDC peuvent être mises à jour automatiquement depuis la base FDC", + "Property_Editor": "Editeur de propriétés", + "warning_duplicate_filter": "Attention : en raison de limitations techniques, l'emploi de multiples filtres (and/or/not) peut mener à des résultats inattendus.", + "Social_Authentication": "Authentification Sociale", + "total": "total", + "g": "gramme [g] (métrique, poids)", + "ml": "millilitre [ml] (métrique, volume)", + "Never_Unit": "Ne pas mettre d'unité", + "Transpose_Words": "Transposer les mots", + "Name_Replace": "Remplacer le Nom", + "Food_Replace": "Remplacer l'aliment", + "Unit_Replace": "Remplacer l'Unité" } diff --git a/vue/src/locales/hu.json b/vue/src/locales/hu.json index 2d0199d235..339c3a4be1 100644 --- a/vue/src/locales/hu.json +++ b/vue/src/locales/hu.json @@ -61,7 +61,7 @@ "Step_Name": "Lépés neve", "Step_Type": "Lépés típusa", "Make_Header": "Átalakítás címsorra", - "Make_Ingredient": "", + "Make_Ingredient": "Összetevő létrehozása", "Enable_Amount": "Összeg bekapcsolása", "Disable_Amount": "Összeg kikapcsolása", "Ingredient Editor": "Hozzávalók szerkesztője", @@ -172,7 +172,7 @@ "and_down": "& le", "Instructions": "Elkészítés", "Unrated": "Nem értékelt", - "Automate": "", + "Automate": "Automatizálás", "Empty": "Üres", "Key_Ctrl": "Ctrl", "Key_Shift": "Shift", @@ -187,7 +187,7 @@ "OnHand": "Jelenleg készleten", "FoodOnHand": "Önnek {food} van készleten.", "FoodNotOnHand": "Önnek {food} nincs készleten.", - "Undefined": "", + "Undefined": "Meghatározatlan", "Create_Meal_Plan_Entry": "Menüterv bejegyzés létrehozása", "Edit_Meal_Plan_Entry": "Menüterv bejegyzés szerkesztése", "Title": "Cím", @@ -233,7 +233,7 @@ "ShowUncategorizedFood": "", "GroupBy": "Csoportosítva", "SupermarketCategoriesOnly": "Csak a szupermarket kategóriák", - "MoveCategory": "", + "MoveCategory": "Áthelyezés ide: ", "CountMore": "", "IgnoreThis": "", "DelayFor": "Késleltetés {hours} óráig", @@ -241,7 +241,7 @@ "NoCategory": "Nincs kategória kiválasztva.", "InheritWarning": "", "ShowDelayed": "", - "Completed": "", + "Completed": "Kész", "OfflineAlert": "Ön éppen offline állapotban van, a bevásárlólista nem biztos, hogy szinkronizálódik.", "shopping_share": "Bevásárlólista megosztása", "shopping_auto_sync": "Automatikus szinkronizáció", @@ -265,7 +265,7 @@ "err_move_self": "", "nothing": "", "err_merge_self": "", - "show_sql": "", + "show_sql": "SQL megjelenítése", "filter_to_supermarket_desc": "Alapértelmezés szerint a bevásárlólista szűrése csak a kiválasztott szupermarket kategóriáit tartalmazza.", "CategoryName": "Kategória neve", "SupermarketName": "Szupermarket neve", @@ -281,10 +281,10 @@ "csv_prefix_help": "A lista vágólapra másolásakor hozzáadandó előtag.", "csv_prefix_label": "", "copy_markdown_table": "", - "in_shopping": "", + "in_shopping": "Bevásárlólistában", "DelayUntil": "", "Pin": "Kitűzés", - "mark_complete": "", + "mark_complete": "Késznek jelölés", "QuickEntry": "Gyors bevitel", "shopping_add_onhand_desc": "", "shopping_add_onhand": "", @@ -322,8 +322,8 @@ "desc": "Csökkenő", "date_viewed": "Utoljára megtekintve", "last_cooked": "Utoljára elkészítve", - "times_cooked": "", - "date_created": "", + "times_cooked": "szor elkészítve", + "date_created": "Létrehozás dátuma", "show_sortby": "", "search_rank": "Keresési rangsor", "make_now": "", @@ -333,7 +333,7 @@ "view_recipe": "Recept megtekintése", "copy_to_new": "Másolás új receptbe", "recipe_name": "Recept neve", - "paste_ingredients_placeholder": "", + "paste_ingredients_placeholder": "Az összetevők listájának beillesztése ide...", "paste_ingredients": "Hozzávalók beillesztése", "ingredient_list": "Hozzávalók listája", "explain": "Magyarázat", @@ -370,19 +370,19 @@ "no_pinned_recipes": "Nincsenek kitűzött receptjei!", "Planned": "Tervezett", "Pinned": "Kitűzve", - "Imported": "", + "Imported": "Importálva", "Quick actions": "Gyors parancsok", "Ratings": "Értékelések", "Internal": "Belső", "Units": "Mennyiségi egységek", - "Random Recipes": "", + "Random Recipes": "Véletlenszerű receptek", "parameter_count": "Paraméter {count}", "select_keyword": "Kulcsszó kiválasztása", "add_keyword": "Kulcsszó hozzáadása", - "select_file": "", + "select_file": "Fájl kiválasztása", "select_recipe": "Recept kiválasztása", - "select_unit": "", - "select_food": "", + "select_unit": "Egység kiválasztása", + "select_food": "Étel kiválasztása", "remove_selection": "Kijelölés törlése", "empty_list": "A lista üres.", "Select": "Kiválasztás", @@ -391,13 +391,13 @@ "Keyword": "Kulcsszó", "Advanced": "Haladó", "Page": "Oldal", - "Single": "", + "Single": "Egyetlen", "Multiple": "Több", "Reset": "Visszaállítás", "Options": "Opciók", "Create Food": "Alapanyag létrehozása", "create_food_desc": "", - "additional_options": "", + "additional_options": "További lehetőségek", "Importer_Help": "", "Documentation": "Dokumentáció", "Select_App_To_Import": "Kérjük, válasszon ki egy alkalmazást, amelyből importálni szeretne", @@ -415,9 +415,9 @@ "Are_You_Sure": "Biztos benne?", "Plural": "Többes szám", "plural_short": "többes szám", - "Use_Plural_Unit_Always": "", + "Use_Plural_Unit_Always": "Mindig többes számot használjon az mértékegységhez", "Use_Plural_Unit_Simple": "A mértékegység többes számának dinamikus beállítása", - "Use_Plural_Food_Always": "", + "Use_Plural_Food_Always": "Mindig többes számot használjon az ételhez", "Use_Plural_Food_Simple": "Alapanyag többes számának dinamikus használata", "plural_usage_info": "", "Back": "Vissza", @@ -516,5 +516,10 @@ "API": "API", "Account": "Fiók", "show_step_ingredients_setting": "Hozzávalók megjelenítése a recept lépései mellett", - "Disable": "Letiltás" + "Disable": "Letiltás", + "Name_Replace": "Név cseréje", + "make_now_count": "Leginkább hiányzó összetevők", + "Combine_All_Steps": "Egyesítse az összes lépést egyetlen mezőbe.", + "Food_Replace": "Étel cseréje", + "err_importing_recipe": "Hiba történt a recept importálásakor!" } diff --git a/vue/src/stores/MealPlanStore.js b/vue/src/stores/MealPlanStore.js index d4bef67bc8..daac0cb935 100644 --- a/vue/src/stores/MealPlanStore.js +++ b/vue/src/stores/MealPlanStore.js @@ -1,14 +1,14 @@ -import {defineStore} from 'pinia' -import {ApiApiFactory} from "@/utils/openapi/api"; - -const _STORE_ID = 'meal_plan_store' -const _LOCAL_STORAGE_KEY = 'MEAL_PLAN_CLIENT_SETTINGS' +import { ApiApiFactory } from "@/utils/openapi/api" +import { StandardToasts } from "@/utils/utils" +import { defineStore } from "pinia" import Vue from "vue" -import {StandardToasts} from "@/utils/utils"; + +const _STORE_ID = "meal_plan_store" +const _LOCAL_STORAGE_KEY = "MEAL_PLAN_CLIENT_SETTINGS" /* -* test store to play around with pinia and see if it can work for my usecases -* dont trust that all mealplans are in store as there is no cache validation logic, its just a shared data holder -* */ + * test store to play around with pinia and see if it can work for my usecases + * dont trust that all mealplans are in store as there is no cache validation logic, its just a shared data holder + * */ export const useMealPlanStore = defineStore(_STORE_ID, { state: () => ({ plans: {}, @@ -19,7 +19,7 @@ export const useMealPlanStore = defineStore(_STORE_ID, { plan_list: function () { let plan_list = [] for (let key in this.plans) { - plan_list.push(this.plans[key]); + plan_list.push(this.plans[key]) } return plan_list }, @@ -35,7 +35,7 @@ export const useMealPlanStore = defineStore(_STORE_ID, { servings: 1, shared: [], title: "", - title_placeholder: 'Title', // meal plan edit modal should be improved to not need this + title_placeholder: "Title", // meal plan edit modal should be improved to not need this } }, client_settings: function () { @@ -43,22 +43,15 @@ export const useMealPlanStore = defineStore(_STORE_ID, { this.settings = this.loadClientSettings() } return this.settings - } + }, }, actions: { refreshFromAPI(from_date, to_date) { if (this.currently_updating !== [from_date, to_date]) { this.currently_updating = [from_date, to_date] // certainly no perfect check but better than nothing - let options = { - query: { - from_date: from_date, - to_date: to_date, - }, - } - let apiClient = new ApiApiFactory() - apiClient.listMealPlans(options).then(r => { + apiClient.listMealPlans(from_date, to_date).then((r) => { r.data.forEach((p) => { Vue.set(this.plans, p.id, p) }) @@ -68,31 +61,40 @@ export const useMealPlanStore = defineStore(_STORE_ID, { }, createObject(object) { let apiClient = new ApiApiFactory() - return apiClient.createMealPlan(object).then(r => { - //StandardToasts.makeStandardToast(this, StandardToasts.SUCCESS_CREATE) - Vue.set(this.plans, r.data.id, r.data) - return r - }).catch(err => { - StandardToasts.makeStandardToast(this, StandardToasts.FAIL_CREATE, err) - }) + return apiClient + .createMealPlan(object) + .then((r) => { + //StandardToasts.makeStandardToast(this, StandardToasts.SUCCESS_CREATE) + Vue.set(this.plans, r.data.id, r.data) + return r + }) + .catch((err) => { + StandardToasts.makeStandardToast(this, StandardToasts.FAIL_CREATE, err) + }) }, updateObject(object) { let apiClient = new ApiApiFactory() - return apiClient.updateMealPlan(object.id, object).then(r => { - //StandardToasts.makeStandardToast(this, StandardToasts.SUCCESS_UPDATE) - Vue.set(this.plans, object.id, object) - }).catch(err => { - StandardToasts.makeStandardToast(this, StandardToasts.FAIL_UPDATE, err) - }) + return apiClient + .updateMealPlan(object.id, object) + .then((r) => { + //StandardToasts.makeStandardToast(this, StandardToasts.SUCCESS_UPDATE) + Vue.set(this.plans, object.id, object) + }) + .catch((err) => { + StandardToasts.makeStandardToast(this, StandardToasts.FAIL_UPDATE, err) + }) }, deleteObject(object) { let apiClient = new ApiApiFactory() - return apiClient.destroyMealPlan(object.id).then(r => { - //StandardToasts.makeStandardToast(this, StandardToasts.SUCCESS_DELETE) - Vue.delete(this.plans, object.id) - }).catch(err => { - StandardToasts.makeStandardToast(this, StandardToasts.FAIL_DELETE, err) - }) + return apiClient + .destroyMealPlan(object.id) + .then((r) => { + //StandardToasts.makeStandardToast(this, StandardToasts.SUCCESS_DELETE) + Vue.delete(this.plans, object.id) + }) + .catch((err) => { + StandardToasts.makeStandardToast(this, StandardToasts.FAIL_DELETE, err) + }) }, updateClientSettings(settings) { this.settings = settings @@ -110,6 +112,6 @@ export const useMealPlanStore = defineStore(_STORE_ID, { } else { return JSON.parse(s) } - } + }, }, -}) \ No newline at end of file +}) diff --git a/vue/src/utils/cm-widgets.ts b/vue/src/utils/cm-widgets.ts new file mode 100644 index 0000000000..be5f6a6b23 --- /dev/null +++ b/vue/src/utils/cm-widgets.ts @@ -0,0 +1,27 @@ +import {WidgetType} from "@codemirror/view"; + +class PlaceholderWidget extends WidgetType { + constructor(readonly name: string) { + super() + } + + eq(other: PlaceholderWidget) { + return this.name == other.name + } + + toDOM() { + const elt = document.createElement("span") + elt.style.cssText = ` + border: 1px solid blue; + border-radius: 4px; + padding: 0 3px; + background: lightblue;` + console.log('reading name', this.name) + elt.textContent = this.name + return elt + } + + ignoreEvent() { + return false + } +} \ No newline at end of file diff --git a/vue/src/utils/openapi/api.ts b/vue/src/utils/openapi/api.ts index 064297c498..c3fa53392c 100644 --- a/vue/src/utils/openapi/api.ts +++ b/vue/src/utils/openapi/api.ts @@ -1839,7 +1839,7 @@ export interface MealPlan { * @type {string} * @memberof MealPlan */ - to_date: string; + to_date?: string; /** * * @type {MealPlanMealType} @@ -2091,957 +2091,6 @@ export interface MealType { */ created_by?: string; } -/** - * - * @export - * @interface OpenDataCategory - */ -export interface OpenDataCategory { - /** - * - * @type {number} - * @memberof OpenDataCategory - */ - id?: number; - /** - * - * @type {OpenDataUnitVersion} - * @memberof OpenDataCategory - */ - version: OpenDataUnitVersion; - /** - * - * @type {string} - * @memberof OpenDataCategory - */ - slug: string; - /** - * - * @type {string} - * @memberof OpenDataCategory - */ - name: string; - /** - * - * @type {string} - * @memberof OpenDataCategory - */ - description?: string; - /** - * - * @type {string} - * @memberof OpenDataCategory - */ - comment?: string; - /** - * - * @type {string} - * @memberof OpenDataCategory - */ - created_by?: string; -} -/** - * - * @export - * @interface OpenDataConversion - */ -export interface OpenDataConversion { - /** - * - * @type {number} - * @memberof OpenDataConversion - */ - id?: number; - /** - * - * @type {OpenDataUnitVersion} - * @memberof OpenDataConversion - */ - version: OpenDataUnitVersion; - /** - * - * @type {string} - * @memberof OpenDataConversion - */ - slug: string; - /** - * - * @type {OpenDataConversionFood} - * @memberof OpenDataConversion - */ - food: OpenDataConversionFood; - /** - * - * @type {string} - * @memberof OpenDataConversion - */ - base_amount: string; - /** - * - * @type {OpenDataConversionFoodPropertiesFoodUnit} - * @memberof OpenDataConversion - */ - base_unit: OpenDataConversionFoodPropertiesFoodUnit; - /** - * - * @type {string} - * @memberof OpenDataConversion - */ - converted_amount: string; - /** - * - * @type {OpenDataConversionFoodPropertiesFoodUnit} - * @memberof OpenDataConversion - */ - converted_unit: OpenDataConversionFoodPropertiesFoodUnit; - /** - * - * @type {string} - * @memberof OpenDataConversion - */ - source: string; - /** - * - * @type {string} - * @memberof OpenDataConversion - */ - comment?: string; - /** - * - * @type {string} - * @memberof OpenDataConversion - */ - created_by?: string; -} -/** - * - * @export - * @interface OpenDataConversionFood - */ -export interface OpenDataConversionFood { - /** - * - * @type {number} - * @memberof OpenDataConversionFood - */ - id?: number; - /** - * - * @type {OpenDataUnitVersion} - * @memberof OpenDataConversionFood - */ - version: OpenDataUnitVersion; - /** - * - * @type {string} - * @memberof OpenDataConversionFood - */ - slug: string; - /** - * - * @type {string} - * @memberof OpenDataConversionFood - */ - name: string; - /** - * - * @type {string} - * @memberof OpenDataConversionFood - */ - plural_name: string; - /** - * - * @type {OpenDataStoreCategory} - * @memberof OpenDataConversionFood - */ - store_category: OpenDataStoreCategory; - /** - * - * @type {OpenDataConversionFoodPreferredUnitMetric} - * @memberof OpenDataConversionFood - */ - preferred_unit_metric?: OpenDataConversionFoodPreferredUnitMetric | null; - /** - * - * @type {OpenDataConversionFoodPreferredUnitMetric} - * @memberof OpenDataConversionFood - */ - preferred_shopping_unit_metric?: OpenDataConversionFoodPreferredUnitMetric | null; - /** - * - * @type {OpenDataConversionFoodPreferredUnitMetric} - * @memberof OpenDataConversionFood - */ - preferred_unit_imperial?: OpenDataConversionFoodPreferredUnitMetric | null; - /** - * - * @type {OpenDataConversionFoodPreferredUnitMetric} - * @memberof OpenDataConversionFood - */ - preferred_shopping_unit_imperial?: OpenDataConversionFoodPreferredUnitMetric | null; - /** - * - * @type {Array} - * @memberof OpenDataConversionFood - */ - properties: Array | null; - /** - * - * @type {number} - * @memberof OpenDataConversionFood - */ - properties_food_amount?: number; - /** - * - * @type {OpenDataConversionFoodPropertiesFoodUnit} - * @memberof OpenDataConversionFood - */ - properties_food_unit: OpenDataConversionFoodPropertiesFoodUnit; - /** - * - * @type {string} - * @memberof OpenDataConversionFood - */ - properties_source?: string; - /** - * - * @type {string} - * @memberof OpenDataConversionFood - */ - fdc_id: string; - /** - * - * @type {string} - * @memberof OpenDataConversionFood - */ - comment?: string; - /** - * - * @type {string} - * @memberof OpenDataConversionFood - */ - created_by?: string; -} -/** - * - * @export - * @interface OpenDataConversionFoodPreferredUnitMetric - */ -export interface OpenDataConversionFoodPreferredUnitMetric { - /** - * - * @type {number} - * @memberof OpenDataConversionFoodPreferredUnitMetric - */ - id?: number; - /** - * - * @type {OpenDataUnitVersion} - * @memberof OpenDataConversionFoodPreferredUnitMetric - */ - version: OpenDataUnitVersion; - /** - * - * @type {string} - * @memberof OpenDataConversionFoodPreferredUnitMetric - */ - slug: string; - /** - * - * @type {string} - * @memberof OpenDataConversionFoodPreferredUnitMetric - */ - name: string; - /** - * - * @type {string} - * @memberof OpenDataConversionFoodPreferredUnitMetric - */ - plural_name?: string; - /** - * - * @type {string} - * @memberof OpenDataConversionFoodPreferredUnitMetric - */ - base_unit?: OpenDataConversionFoodPreferredUnitMetricBaseUnitEnum; - /** - * - * @type {string} - * @memberof OpenDataConversionFoodPreferredUnitMetric - */ - type: OpenDataConversionFoodPreferredUnitMetricTypeEnum; - /** - * - * @type {string} - * @memberof OpenDataConversionFoodPreferredUnitMetric - */ - comment?: string; - /** - * - * @type {string} - * @memberof OpenDataConversionFoodPreferredUnitMetric - */ - created_by?: string; -} - -/** - * @export - * @enum {string} - */ -export enum OpenDataConversionFoodPreferredUnitMetricBaseUnitEnum { - G = 'G', - Kg = 'KG', - Ml = 'ML', - L = 'L', - Ounce = 'OUNCE', - Pound = 'POUND', - FluidOunce = 'FLUID_OUNCE', - Tsp = 'TSP', - Tbsp = 'TBSP', - Cup = 'CUP', - Pint = 'PINT', - Quart = 'QUART', - Gallon = 'GALLON', - ImperialFluidOunce = 'IMPERIAL_FLUID_OUNCE', - ImperialPint = 'IMPERIAL_PINT', - ImperialQuart = 'IMPERIAL_QUART', - ImperialGallon = 'IMPERIAL_GALLON' -} -/** - * @export - * @enum {string} - */ -export enum OpenDataConversionFoodPreferredUnitMetricTypeEnum { - Weight = 'WEIGHT', - Volume = 'VOLUME', - Other = 'OTHER' -} - -/** - * - * @export - * @interface OpenDataConversionFoodProperties - */ -export interface OpenDataConversionFoodProperties { - /** - * - * @type {number} - * @memberof OpenDataConversionFoodProperties - */ - id?: number; - /** - * - * @type {OpenDataConversionFoodProperty} - * @memberof OpenDataConversionFoodProperties - */ - property: OpenDataConversionFoodProperty; - /** - * - * @type {string} - * @memberof OpenDataConversionFoodProperties - */ - property_amount: string; -} -/** - * - * @export - * @interface OpenDataConversionFoodPropertiesFoodUnit - */ -export interface OpenDataConversionFoodPropertiesFoodUnit { - /** - * - * @type {number} - * @memberof OpenDataConversionFoodPropertiesFoodUnit - */ - id?: number; - /** - * - * @type {OpenDataUnitVersion} - * @memberof OpenDataConversionFoodPropertiesFoodUnit - */ - version: OpenDataUnitVersion; - /** - * - * @type {string} - * @memberof OpenDataConversionFoodPropertiesFoodUnit - */ - slug: string; - /** - * - * @type {string} - * @memberof OpenDataConversionFoodPropertiesFoodUnit - */ - name: string; - /** - * - * @type {string} - * @memberof OpenDataConversionFoodPropertiesFoodUnit - */ - plural_name?: string; - /** - * - * @type {string} - * @memberof OpenDataConversionFoodPropertiesFoodUnit - */ - base_unit?: OpenDataConversionFoodPropertiesFoodUnitBaseUnitEnum; - /** - * - * @type {string} - * @memberof OpenDataConversionFoodPropertiesFoodUnit - */ - type: OpenDataConversionFoodPropertiesFoodUnitTypeEnum; - /** - * - * @type {string} - * @memberof OpenDataConversionFoodPropertiesFoodUnit - */ - comment?: string; - /** - * - * @type {string} - * @memberof OpenDataConversionFoodPropertiesFoodUnit - */ - created_by?: string; -} - -/** - * @export - * @enum {string} - */ -export enum OpenDataConversionFoodPropertiesFoodUnitBaseUnitEnum { - G = 'G', - Kg = 'KG', - Ml = 'ML', - L = 'L', - Ounce = 'OUNCE', - Pound = 'POUND', - FluidOunce = 'FLUID_OUNCE', - Tsp = 'TSP', - Tbsp = 'TBSP', - Cup = 'CUP', - Pint = 'PINT', - Quart = 'QUART', - Gallon = 'GALLON', - ImperialFluidOunce = 'IMPERIAL_FLUID_OUNCE', - ImperialPint = 'IMPERIAL_PINT', - ImperialQuart = 'IMPERIAL_QUART', - ImperialGallon = 'IMPERIAL_GALLON' -} -/** - * @export - * @enum {string} - */ -export enum OpenDataConversionFoodPropertiesFoodUnitTypeEnum { - Weight = 'WEIGHT', - Volume = 'VOLUME', - Other = 'OTHER' -} - -/** - * - * @export - * @interface OpenDataConversionFoodProperty - */ -export interface OpenDataConversionFoodProperty { - /** - * - * @type {number} - * @memberof OpenDataConversionFoodProperty - */ - id?: number; - /** - * - * @type {OpenDataUnitVersion} - * @memberof OpenDataConversionFoodProperty - */ - version: OpenDataUnitVersion; - /** - * - * @type {string} - * @memberof OpenDataConversionFoodProperty - */ - slug: string; - /** - * - * @type {string} - * @memberof OpenDataConversionFoodProperty - */ - name: string; - /** - * - * @type {string} - * @memberof OpenDataConversionFoodProperty - */ - unit?: string; - /** - * - * @type {number} - * @memberof OpenDataConversionFoodProperty - */ - fdc_id?: number | null; - /** - * - * @type {string} - * @memberof OpenDataConversionFoodProperty - */ - comment?: string; - /** - * - * @type {string} - * @memberof OpenDataConversionFoodProperty - */ - created_by?: string; -} -/** - * - * @export - * @interface OpenDataFood - */ -export interface OpenDataFood { - /** - * - * @type {number} - * @memberof OpenDataFood - */ - id?: number; - /** - * - * @type {OpenDataUnitVersion} - * @memberof OpenDataFood - */ - version: OpenDataUnitVersion; - /** - * - * @type {string} - * @memberof OpenDataFood - */ - slug: string; - /** - * - * @type {string} - * @memberof OpenDataFood - */ - name: string; - /** - * - * @type {string} - * @memberof OpenDataFood - */ - plural_name: string; - /** - * - * @type {OpenDataStoreCategory} - * @memberof OpenDataFood - */ - store_category: OpenDataStoreCategory; - /** - * - * @type {OpenDataConversionFoodPreferredUnitMetric} - * @memberof OpenDataFood - */ - preferred_unit_metric?: OpenDataConversionFoodPreferredUnitMetric | null; - /** - * - * @type {OpenDataConversionFoodPreferredUnitMetric} - * @memberof OpenDataFood - */ - preferred_shopping_unit_metric?: OpenDataConversionFoodPreferredUnitMetric | null; - /** - * - * @type {OpenDataConversionFoodPreferredUnitMetric} - * @memberof OpenDataFood - */ - preferred_unit_imperial?: OpenDataConversionFoodPreferredUnitMetric | null; - /** - * - * @type {OpenDataConversionFoodPreferredUnitMetric} - * @memberof OpenDataFood - */ - preferred_shopping_unit_imperial?: OpenDataConversionFoodPreferredUnitMetric | null; - /** - * - * @type {Array} - * @memberof OpenDataFood - */ - properties: Array | null; - /** - * - * @type {number} - * @memberof OpenDataFood - */ - properties_food_amount?: number; - /** - * - * @type {OpenDataConversionFoodPropertiesFoodUnit} - * @memberof OpenDataFood - */ - properties_food_unit: OpenDataConversionFoodPropertiesFoodUnit; - /** - * - * @type {string} - * @memberof OpenDataFood - */ - properties_source?: string; - /** - * - * @type {string} - * @memberof OpenDataFood - */ - fdc_id: string; - /** - * - * @type {string} - * @memberof OpenDataFood - */ - comment?: string; - /** - * - * @type {string} - * @memberof OpenDataFood - */ - created_by?: string; -} -/** - * - * @export - * @interface OpenDataProperty - */ -export interface OpenDataProperty { - /** - * - * @type {number} - * @memberof OpenDataProperty - */ - id?: number; - /** - * - * @type {OpenDataUnitVersion} - * @memberof OpenDataProperty - */ - version: OpenDataUnitVersion; - /** - * - * @type {string} - * @memberof OpenDataProperty - */ - slug: string; - /** - * - * @type {string} - * @memberof OpenDataProperty - */ - name: string; - /** - * - * @type {string} - * @memberof OpenDataProperty - */ - unit?: string; - /** - * - * @type {number} - * @memberof OpenDataProperty - */ - fdc_id?: number | null; - /** - * - * @type {string} - * @memberof OpenDataProperty - */ - comment?: string; - /** - * - * @type {string} - * @memberof OpenDataProperty - */ - created_by?: string; -} -/** - * - * @export - * @interface OpenDataStore - */ -export interface OpenDataStore { - /** - * - * @type {number} - * @memberof OpenDataStore - */ - id?: number; - /** - * - * @type {OpenDataUnitVersion} - * @memberof OpenDataStore - */ - version: OpenDataUnitVersion; - /** - * - * @type {string} - * @memberof OpenDataStore - */ - slug: string; - /** - * - * @type {string} - * @memberof OpenDataStore - */ - name: string; - /** - * - * @type {Array} - * @memberof OpenDataStore - */ - category_to_store: Array | null; - /** - * - * @type {string} - * @memberof OpenDataStore - */ - comment?: string; - /** - * - * @type {string} - * @memberof OpenDataStore - */ - created_by?: string; -} -/** - * - * @export - * @interface OpenDataStoreCategory - */ -export interface OpenDataStoreCategory { - /** - * - * @type {number} - * @memberof OpenDataStoreCategory - */ - id?: number; - /** - * - * @type {OpenDataUnitVersion} - * @memberof OpenDataStoreCategory - */ - version: OpenDataUnitVersion; - /** - * - * @type {string} - * @memberof OpenDataStoreCategory - */ - slug: string; - /** - * - * @type {string} - * @memberof OpenDataStoreCategory - */ - name: string; - /** - * - * @type {string} - * @memberof OpenDataStoreCategory - */ - description?: string; - /** - * - * @type {string} - * @memberof OpenDataStoreCategory - */ - comment?: string; - /** - * - * @type {string} - * @memberof OpenDataStoreCategory - */ - created_by?: string; -} -/** - * - * @export - * @interface OpenDataStoreCategoryToStore - */ -export interface OpenDataStoreCategoryToStore { - /** - * - * @type {number} - * @memberof OpenDataStoreCategoryToStore - */ - id?: number; - /** - * - * @type {OpenDataStoreCategory} - * @memberof OpenDataStoreCategoryToStore - */ - category: OpenDataStoreCategory; - /** - * - * @type {number} - * @memberof OpenDataStoreCategoryToStore - */ - store: number; - /** - * - * @type {number} - * @memberof OpenDataStoreCategoryToStore - */ - order?: number; -} -/** - * - * @export - * @interface OpenDataUnit - */ -export interface OpenDataUnit { - /** - * - * @type {number} - * @memberof OpenDataUnit - */ - id?: number; - /** - * - * @type {OpenDataUnitVersion} - * @memberof OpenDataUnit - */ - version: OpenDataUnitVersion; - /** - * - * @type {string} - * @memberof OpenDataUnit - */ - slug: string; - /** - * - * @type {string} - * @memberof OpenDataUnit - */ - name: string; - /** - * - * @type {string} - * @memberof OpenDataUnit - */ - plural_name?: string; - /** - * - * @type {string} - * @memberof OpenDataUnit - */ - base_unit?: OpenDataUnitBaseUnitEnum; - /** - * - * @type {string} - * @memberof OpenDataUnit - */ - type: OpenDataUnitTypeEnum; - /** - * - * @type {string} - * @memberof OpenDataUnit - */ - comment?: string; - /** - * - * @type {string} - * @memberof OpenDataUnit - */ - created_by?: string; -} - -/** - * @export - * @enum {string} - */ -export enum OpenDataUnitBaseUnitEnum { - G = 'G', - Kg = 'KG', - Ml = 'ML', - L = 'L', - Ounce = 'OUNCE', - Pound = 'POUND', - FluidOunce = 'FLUID_OUNCE', - Tsp = 'TSP', - Tbsp = 'TBSP', - Cup = 'CUP', - Pint = 'PINT', - Quart = 'QUART', - Gallon = 'GALLON', - ImperialFluidOunce = 'IMPERIAL_FLUID_OUNCE', - ImperialPint = 'IMPERIAL_PINT', - ImperialQuart = 'IMPERIAL_QUART', - ImperialGallon = 'IMPERIAL_GALLON' -} -/** - * @export - * @enum {string} - */ -export enum OpenDataUnitTypeEnum { - Weight = 'WEIGHT', - Volume = 'VOLUME', - Other = 'OTHER' -} - -/** - * - * @export - * @interface OpenDataUnitVersion - */ -export interface OpenDataUnitVersion { - /** - * - * @type {number} - * @memberof OpenDataUnitVersion - */ - id?: number; - /** - * - * @type {string} - * @memberof OpenDataUnitVersion - */ - name: string; - /** - * - * @type {string} - * @memberof OpenDataUnitVersion - */ - code: string; - /** - * - * @type {string} - * @memberof OpenDataUnitVersion - */ - comment?: string; -} -/** - * - * @export - * @interface OpenDataVersion - */ -export interface OpenDataVersion { - /** - * - * @type {number} - * @memberof OpenDataVersion - */ - id?: number; - /** - * - * @type {string} - * @memberof OpenDataVersion - */ - name: string; - /** - * - * @type {string} - * @memberof OpenDataVersion - */ - code: string; - /** - * - * @type {string} - * @memberof OpenDataVersion - */ - comment?: string; -} /** * * @export @@ -5634,239 +4683,8 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createImportLog: async (importLog?: ImportLog, options: any = {}): Promise => { - const localVarPath = `/api/import-log/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(importLog, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {Ingredient} [ingredient] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createIngredient: async (ingredient?: Ingredient, options: any = {}): Promise => { - const localVarPath = `/api/ingredient/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(ingredient, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {InviteLink} [inviteLink] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createInviteLink: async (inviteLink?: InviteLink, options: any = {}): Promise => { - const localVarPath = `/api/invite-link/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(inviteLink, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {Keyword} [keyword] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createKeyword: async (keyword?: Keyword, options: any = {}): Promise => { - const localVarPath = `/api/keyword/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(keyword, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {MealPlan} [mealPlan] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createMealPlan: async (mealPlan?: MealPlan, options: any = {}): Promise => { - const localVarPath = `/api/meal-plan/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(mealPlan, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * returns list of meal types created by the requesting user ordered by the order field. - * @param {MealType} [mealType] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createMealType: async (mealType?: MealType, options: any = {}): Promise => { - const localVarPath = `/api/meal-type/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(mealType, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {OpenDataCategory} [openDataCategory] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createOpenDataCategory: async (openDataCategory?: OpenDataCategory, options: any = {}): Promise => { - const localVarPath = `/api/open-data-category/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(openDataCategory, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {OpenDataConversion} [openDataConversion] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createOpenDataConversion: async (openDataConversion?: OpenDataConversion, options: any = {}): Promise => { - const localVarPath = `/api/open-data-conversion/`; + createImportLog: async (importLog?: ImportLog, options: any = {}): Promise => { + const localVarPath = `/api/import-log/`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -5885,7 +4703,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(openDataConversion, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(importLog, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -5894,12 +4712,12 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }, /** * - * @param {OpenDataFood} [openDataFood] + * @param {Ingredient} [ingredient] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createOpenDataFood: async (openDataFood?: OpenDataFood, options: any = {}): Promise => { - const localVarPath = `/api/open-data-food/`; + createIngredient: async (ingredient?: Ingredient, options: any = {}): Promise => { + const localVarPath = `/api/ingredient/`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -5918,7 +4736,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(openDataFood, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(ingredient, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -5927,12 +4745,12 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }, /** * - * @param {OpenDataProperty} [openDataProperty] + * @param {InviteLink} [inviteLink] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createOpenDataProperty: async (openDataProperty?: OpenDataProperty, options: any = {}): Promise => { - const localVarPath = `/api/open-data-property/`; + createInviteLink: async (inviteLink?: InviteLink, options: any = {}): Promise => { + const localVarPath = `/api/invite-link/`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -5951,7 +4769,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(openDataProperty, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(inviteLink, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -5960,12 +4778,12 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }, /** * - * @param {OpenDataStore} [openDataStore] + * @param {Keyword} [keyword] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createOpenDataStore: async (openDataStore?: OpenDataStore, options: any = {}): Promise => { - const localVarPath = `/api/open-data-store/`; + createKeyword: async (keyword?: Keyword, options: any = {}): Promise => { + const localVarPath = `/api/keyword/`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -5984,7 +4802,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(openDataStore, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(keyword, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -5993,12 +4811,12 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }, /** * - * @param {OpenDataUnit} [openDataUnit] + * @param {MealPlan} [mealPlan] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createOpenDataUnit: async (openDataUnit?: OpenDataUnit, options: any = {}): Promise => { - const localVarPath = `/api/open-data-unit/`; + createMealPlan: async (mealPlan?: MealPlan, options: any = {}): Promise => { + const localVarPath = `/api/meal-plan/`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -6017,7 +4835,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(openDataUnit, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(mealPlan, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -6025,13 +4843,13 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }; }, /** - * - * @param {OpenDataVersion} [openDataVersion] + * returns list of meal types created by the requesting user ordered by the order field. + * @param {MealType} [mealType] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createOpenDataVersion: async (openDataVersion?: OpenDataVersion, options: any = {}): Promise => { - const localVarPath = `/api/open-data-version/`; + createMealType: async (mealType?: MealType, options: any = {}): Promise => { + const localVarPath = `/api/meal-type/`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -6050,7 +4868,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(openDataVersion, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(mealType, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -6924,239 +5742,8 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) */ destroyExportLog: async (id: string, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined - assertParamExists('destroyExportLog', 'id', id) - const localVarPath = `/api/export-log/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this food. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyFood: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('destroyFood', 'id', id) - const localVarPath = `/api/food/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this import log. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyImportLog: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('destroyImportLog', 'id', id) - const localVarPath = `/api/import-log/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this ingredient. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyIngredient: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('destroyIngredient', 'id', id) - const localVarPath = `/api/ingredient/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this invite link. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyInviteLink: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('destroyInviteLink', 'id', id) - const localVarPath = `/api/invite-link/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this keyword. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyKeyword: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('destroyKeyword', 'id', id) - const localVarPath = `/api/keyword/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this meal plan. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyMealPlan: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('destroyMealPlan', 'id', id) - const localVarPath = `/api/meal-plan/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * returns list of meal types created by the requesting user ordered by the order field. - * @param {string} id A unique integer value identifying this meal type. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyMealType: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('destroyMealType', 'id', id) - const localVarPath = `/api/meal-type/{id}/` + assertParamExists('destroyExportLog', 'id', id) + const localVarPath = `/api/export-log/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -7182,14 +5769,14 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }, /** * - * @param {string} id A unique integer value identifying this open data category. + * @param {string} id A unique integer value identifying this food. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - destroyOpenDataCategory: async (id: string, options: any = {}): Promise => { + destroyFood: async (id: string, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined - assertParamExists('destroyOpenDataCategory', 'id', id) - const localVarPath = `/api/open-data-category/{id}/` + assertParamExists('destroyFood', 'id', id) + const localVarPath = `/api/food/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -7215,14 +5802,14 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }, /** * - * @param {string} id A unique integer value identifying this open data conversion. + * @param {string} id A unique integer value identifying this import log. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - destroyOpenDataConversion: async (id: string, options: any = {}): Promise => { + destroyImportLog: async (id: string, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined - assertParamExists('destroyOpenDataConversion', 'id', id) - const localVarPath = `/api/open-data-conversion/{id}/` + assertParamExists('destroyImportLog', 'id', id) + const localVarPath = `/api/import-log/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -7248,14 +5835,14 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }, /** * - * @param {string} id A unique integer value identifying this open data food. + * @param {string} id A unique integer value identifying this ingredient. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - destroyOpenDataFood: async (id: string, options: any = {}): Promise => { + destroyIngredient: async (id: string, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined - assertParamExists('destroyOpenDataFood', 'id', id) - const localVarPath = `/api/open-data-food/{id}/` + assertParamExists('destroyIngredient', 'id', id) + const localVarPath = `/api/ingredient/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -7281,14 +5868,14 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }, /** * - * @param {string} id A unique integer value identifying this open data property. + * @param {string} id A unique integer value identifying this invite link. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - destroyOpenDataProperty: async (id: string, options: any = {}): Promise => { + destroyInviteLink: async (id: string, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined - assertParamExists('destroyOpenDataProperty', 'id', id) - const localVarPath = `/api/open-data-property/{id}/` + assertParamExists('destroyInviteLink', 'id', id) + const localVarPath = `/api/invite-link/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -7314,14 +5901,14 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }, /** * - * @param {string} id A unique integer value identifying this open data store. + * @param {string} id A unique integer value identifying this keyword. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - destroyOpenDataStore: async (id: string, options: any = {}): Promise => { + destroyKeyword: async (id: string, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined - assertParamExists('destroyOpenDataStore', 'id', id) - const localVarPath = `/api/open-data-store/{id}/` + assertParamExists('destroyKeyword', 'id', id) + const localVarPath = `/api/keyword/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -7347,14 +5934,14 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }, /** * - * @param {string} id A unique integer value identifying this open data unit. + * @param {string} id A unique integer value identifying this meal plan. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - destroyOpenDataUnit: async (id: string, options: any = {}): Promise => { + destroyMealPlan: async (id: string, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined - assertParamExists('destroyOpenDataUnit', 'id', id) - const localVarPath = `/api/open-data-unit/{id}/` + assertParamExists('destroyMealPlan', 'id', id) + const localVarPath = `/api/meal-plan/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -7379,15 +5966,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }; }, /** - * - * @param {string} id A unique integer value identifying this open data version. + * returns list of meal types created by the requesting user ordered by the order field. + * @param {string} id A unique integer value identifying this meal type. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - destroyOpenDataVersion: async (id: string, options: any = {}): Promise => { + destroyMealType: async (id: string, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined - assertParamExists('destroyOpenDataVersion', 'id', id) - const localVarPath = `/api/open-data-version/{id}/` + assertParamExists('destroyMealType', 'id', id) + const localVarPath = `/api/meal-type/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -8039,7 +6626,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }; }, /** - * updates the food with all possible data from the FDC Api (only adds new, does not change existing properties) + * updates the food with all possible data from the FDC Api if properties with a fdc_id already exist they will be overridden, if existing properties don\'t have a fdc_id they won\'t be changed * @param {string} id A unique integer value identifying this food. * @param {Food} [food] * @param {*} [options] Override http request option. @@ -8570,245 +7157,13 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) localVarQueryParameter['tree'] = tree; } - if (page !== undefined) { - localVarQueryParameter['page'] = page; - } - - if (pageSize !== undefined) { - localVarQueryParameter['page_size'] = pageSize; - } - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * optional parameters - **from_date**: filter from (inclusive) a certain date onward - **to_date**: filter upward to (inclusive) certain date - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listMealPlans: async (options: any = {}): Promise => { - const localVarPath = `/api/meal-plan/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * returns list of meal types created by the requesting user ordered by the order field. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listMealTypes: async (options: any = {}): Promise => { - const localVarPath = `/api/meal-type/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listOpenDataCategorys: async (options: any = {}): Promise => { - const localVarPath = `/api/open-data-category/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listOpenDataConversions: async (options: any = {}): Promise => { - const localVarPath = `/api/open-data-conversion/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listOpenDataFoods: async (options: any = {}): Promise => { - const localVarPath = `/api/open-data-food/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listOpenDataPropertys: async (options: any = {}): Promise => { - const localVarPath = `/api/open-data-property/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listOpenDataStatisticsViewSets: async (options: any = {}): Promise => { - const localVarPath = `/api/open-data-stats/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listOpenDataStores: async (options: any = {}): Promise => { - const localVarPath = `/api/open-data-store/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; + if (page !== undefined) { + localVarQueryParameter['page'] = page; + } + + if (pageSize !== undefined) { + localVarQueryParameter['page_size'] = pageSize; + } @@ -8822,12 +7177,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }; }, /** - * + * optional parameters - **from_date**: filter from (inclusive) a certain date onward - **to_date**: filter upward to (inclusive) certain date - **meal_type**: filter meal plans based on meal_type ID + * @param {string} [fromDate] Filter meal plans from date (inclusive) in the format of YYYY-MM-DD. + * @param {string} [toDate] Filter meal plans to date (inclusive) in the format of YYYY-MM-DD. + * @param {number} [mealType] Query string matched (fuzzy) against object name. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listOpenDataUnits: async (options: any = {}): Promise => { - const localVarPath = `/api/open-data-unit/`; + listMealPlans: async (fromDate?: string, toDate?: string, mealType?: number, options: any = {}): Promise => { + const localVarPath = `/api/meal-plan/`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -8839,6 +7197,18 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; + if (fromDate !== undefined) { + localVarQueryParameter['from_date'] = fromDate; + } + + if (toDate !== undefined) { + localVarQueryParameter['to_date'] = toDate; + } + + if (mealType !== undefined) { + localVarQueryParameter['meal_type'] = mealType; + } + setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); @@ -8851,12 +7221,12 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }; }, /** - * + * returns list of meal types created by the requesting user ordered by the order field. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listOpenDataVersions: async (options: any = {}): Promise => { - const localVarPath = `/api/open-data-version/`; + listMealTypes: async (options: any = {}): Promise => { + const localVarPath = `/api/meal-type/`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -10398,273 +8768,14 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) /** * * @param {string} id A unique integer value identifying this keyword. - * @param {Keyword} [keyword] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - partialUpdateKeyword: async (id: string, keyword?: Keyword, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('partialUpdateKeyword', 'id', id) - const localVarPath = `/api/keyword/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(keyword, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this meal plan. - * @param {MealPlan} [mealPlan] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - partialUpdateMealPlan: async (id: string, mealPlan?: MealPlan, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('partialUpdateMealPlan', 'id', id) - const localVarPath = `/api/meal-plan/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(mealPlan, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * returns list of meal types created by the requesting user ordered by the order field. - * @param {string} id A unique integer value identifying this meal type. - * @param {MealType} [mealType] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - partialUpdateMealType: async (id: string, mealType?: MealType, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('partialUpdateMealType', 'id', id) - const localVarPath = `/api/meal-type/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(mealType, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this open data category. - * @param {OpenDataCategory} [openDataCategory] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - partialUpdateOpenDataCategory: async (id: string, openDataCategory?: OpenDataCategory, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('partialUpdateOpenDataCategory', 'id', id) - const localVarPath = `/api/open-data-category/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(openDataCategory, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this open data conversion. - * @param {OpenDataConversion} [openDataConversion] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - partialUpdateOpenDataConversion: async (id: string, openDataConversion?: OpenDataConversion, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('partialUpdateOpenDataConversion', 'id', id) - const localVarPath = `/api/open-data-conversion/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(openDataConversion, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this open data food. - * @param {OpenDataFood} [openDataFood] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - partialUpdateOpenDataFood: async (id: string, openDataFood?: OpenDataFood, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('partialUpdateOpenDataFood', 'id', id) - const localVarPath = `/api/open-data-food/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(openDataFood, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this open data property. - * @param {OpenDataProperty} [openDataProperty] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - partialUpdateOpenDataProperty: async (id: string, openDataProperty?: OpenDataProperty, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('partialUpdateOpenDataProperty', 'id', id) - const localVarPath = `/api/open-data-property/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(openDataProperty, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this open data store. - * @param {OpenDataStore} [openDataStore] + * @param {Keyword} [keyword] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - partialUpdateOpenDataStore: async (id: string, openDataStore?: OpenDataStore, options: any = {}): Promise => { + partialUpdateKeyword: async (id: string, keyword?: Keyword, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined - assertParamExists('partialUpdateOpenDataStore', 'id', id) - const localVarPath = `/api/open-data-store/{id}/` + assertParamExists('partialUpdateKeyword', 'id', id) + const localVarPath = `/api/keyword/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -10684,7 +8795,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(openDataStore, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(keyword, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -10693,15 +8804,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }, /** * - * @param {string} id A unique integer value identifying this open data unit. - * @param {OpenDataUnit} [openDataUnit] + * @param {string} id A unique integer value identifying this meal plan. + * @param {MealPlan} [mealPlan] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - partialUpdateOpenDataUnit: async (id: string, openDataUnit?: OpenDataUnit, options: any = {}): Promise => { + partialUpdateMealPlan: async (id: string, mealPlan?: MealPlan, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined - assertParamExists('partialUpdateOpenDataUnit', 'id', id) - const localVarPath = `/api/open-data-unit/{id}/` + assertParamExists('partialUpdateMealPlan', 'id', id) + const localVarPath = `/api/meal-plan/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -10721,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(openDataUnit, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(mealPlan, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -10729,16 +8840,16 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }; }, /** - * - * @param {string} id A unique integer value identifying this open data version. - * @param {OpenDataVersion} [openDataVersion] + * returns list of meal types created by the requesting user ordered by the order field. + * @param {string} id A unique integer value identifying this meal type. + * @param {MealType} [mealType] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - partialUpdateOpenDataVersion: async (id: string, openDataVersion?: OpenDataVersion, options: any = {}): Promise => { + partialUpdateMealType: async (id: string, mealType?: MealType, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined - assertParamExists('partialUpdateOpenDataVersion', 'id', id) - const localVarPath = `/api/open-data-version/{id}/` + assertParamExists('partialUpdateMealType', 'id', id) + const localVarPath = `/api/meal-type/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -10758,7 +8869,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(openDataVersion, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(mealType, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -11835,39 +9946,6 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveFDCViewSet: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('retrieveFDCViewSet', 'id', id) - const localVarPath = `/api/open-data-FDC/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -12143,245 +10221,14 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }, /** * returns list of meal types created by the requesting user ordered by the order field. - * @param {string} id A unique integer value identifying this meal type. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveMealType: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('retrieveMealType', 'id', id) - const localVarPath = `/api/meal-type/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this open data category. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveOpenDataCategory: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('retrieveOpenDataCategory', 'id', id) - const localVarPath = `/api/open-data-category/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this open data conversion. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveOpenDataConversion: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('retrieveOpenDataConversion', 'id', id) - const localVarPath = `/api/open-data-conversion/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this open data food. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveOpenDataFood: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('retrieveOpenDataFood', 'id', id) - const localVarPath = `/api/open-data-food/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this open data property. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveOpenDataProperty: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('retrieveOpenDataProperty', 'id', id) - const localVarPath = `/api/open-data-property/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this open data store. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveOpenDataStore: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('retrieveOpenDataStore', 'id', id) - const localVarPath = `/api/open-data-store/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this open data unit. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveOpenDataUnit: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('retrieveOpenDataUnit', 'id', id) - const localVarPath = `/api/open-data-unit/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this open data version. + * @param {string} id A unique integer value identifying this meal type. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - retrieveOpenDataVersion: async (id: string, options: any = {}): Promise => { + retrieveMealType: async (id: string, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined - assertParamExists('retrieveOpenDataVersion', 'id', id) - const localVarPath = `/api/open-data-version/{id}/` + assertParamExists('retrieveMealType', 'id', id) + const localVarPath = `/api/meal-type/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -13171,258 +11018,10 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) * @throws {RequiredError} */ retrievedownloadFile: async (fileId: string, options: any = {}): Promise => { - // verify required parameter 'fileId' is not null or undefined - assertParamExists('retrievedownloadFile', 'fileId', fileId) - const localVarPath = `/api/download-file/{file_id}/` - .replace(`{${"file_id"}}`, encodeURIComponent(String(fileId))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveshareLink: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('retrieveshareLink', 'id', id) - const localVarPath = `/api/share-link/{id}` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * api endpoint to switch space function - * @param {string} spaceId - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveswitchActiveSpace: async (spaceId: string, options: any = {}): Promise => { - // verify required parameter 'spaceId' is not null or undefined - assertParamExists('retrieveswitchActiveSpace', 'spaceId', spaceId) - const localVarPath = `/api/switch-active-space/{space_id}/` - .replace(`{${"space_id"}}`, encodeURIComponent(String(spaceId))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this food. - * @param {FoodShoppingUpdate} [foodShoppingUpdate] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - shoppingFood: async (id: string, foodShoppingUpdate?: FoodShoppingUpdate, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('shoppingFood', 'id', id) - const localVarPath = `/api/food/{id}/shopping/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(foodShoppingUpdate, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this recipe. - * @param {RecipeShoppingUpdate} [recipeShoppingUpdate] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - shoppingRecipe: async (id: string, recipeShoppingUpdate?: RecipeShoppingUpdate, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('shoppingRecipe', 'id', id) - const localVarPath = `/api/recipe/{id}/shopping/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(recipeShoppingUpdate, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this access token. - * @param {AccessToken} [accessToken] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updateAccessToken: async (id: string, accessToken?: AccessToken, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('updateAccessToken', 'id', id) - const localVarPath = `/api/access-token/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(accessToken, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this automation. - * @param {Automation} [automation] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updateAutomation: async (id: string, automation?: Automation, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('updateAutomation', 'id', id) - const localVarPath = `/api/automation/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(automation, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this bookmarklet import. - * @param {BookmarkletImport} [bookmarkletImport] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updateBookmarkletImport: async (id: string, bookmarkletImport?: BookmarkletImport, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('updateBookmarkletImport', 'id', id) - const localVarPath = `/api/bookmarklet-import/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); + // verify required parameter 'fileId' is not null or undefined + assertParamExists('retrievedownloadFile', 'fileId', fileId) + const localVarPath = `/api/download-file/{file_id}/` + .replace(`{${"file_id"}}`, encodeURIComponent(String(fileId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -13430,18 +11029,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) baseOptions = configuration.baseOptions; } - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - localVarHeaderParameter['Content-Type'] = 'application/json'; - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(bookmarkletImport, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -13450,15 +11046,14 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }, /** * - * @param {string} id A unique integer value identifying this cook log. - * @param {CookLog} [cookLog] + * @param {string} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateCookLog: async (id: string, cookLog?: CookLog, options: any = {}): Promise => { + retrieveshareLink: async (id: string, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined - assertParamExists('updateCookLog', 'id', id) - const localVarPath = `/api/cook-log/{id}/` + assertParamExists('retrieveshareLink', 'id', id) + const localVarPath = `/api/share-link/{id}` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -13467,18 +11062,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) baseOptions = configuration.baseOptions; } - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - localVarHeaderParameter['Content-Type'] = 'application/json'; - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(cookLog, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -13486,17 +11078,16 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }; }, /** - * - * @param {string} id A unique integer value identifying this custom filter. - * @param {CustomFilter} [customFilter] + * api endpoint to switch space function + * @param {string} spaceId * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateCustomFilter: async (id: string, customFilter?: CustomFilter, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('updateCustomFilter', 'id', id) - const localVarPath = `/api/custom-filter/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); + retrieveswitchActiveSpace: async (spaceId: string, options: any = {}): Promise => { + // verify required parameter 'spaceId' is not null or undefined + assertParamExists('retrieveswitchActiveSpace', 'spaceId', spaceId) + const localVarPath = `/api/switch-active-space/{space_id}/` + .replace(`{${"space_id"}}`, encodeURIComponent(String(spaceId))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); let baseOptions; @@ -13504,18 +11095,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) baseOptions = configuration.baseOptions; } - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; const localVarHeaderParameter = {} as any; const localVarQueryParameter = {} as any; - localVarHeaderParameter['Content-Type'] = 'application/json'; - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(customFilter, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -13524,15 +11112,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }, /** * - * @param {string} id A unique integer value identifying this export log. - * @param {ExportLog} [exportLog] + * @param {string} id A unique integer value identifying this food. + * @param {FoodShoppingUpdate} [foodShoppingUpdate] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateExportLog: async (id: string, exportLog?: ExportLog, options: any = {}): Promise => { + shoppingFood: async (id: string, foodShoppingUpdate?: FoodShoppingUpdate, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined - assertParamExists('updateExportLog', 'id', id) - const localVarPath = `/api/export-log/{id}/` + assertParamExists('shoppingFood', 'id', id) + const localVarPath = `/api/food/{id}/shopping/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -13552,7 +11140,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(foodShoppingUpdate, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -13561,15 +11149,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }, /** * - * @param {string} id A unique integer value identifying this food. - * @param {Food} [food] + * @param {string} id A unique integer value identifying this recipe. + * @param {RecipeShoppingUpdate} [recipeShoppingUpdate] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateFood: async (id: string, food?: Food, options: any = {}): Promise => { + shoppingRecipe: async (id: string, recipeShoppingUpdate?: RecipeShoppingUpdate, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined - assertParamExists('updateFood', 'id', id) - const localVarPath = `/api/food/{id}/` + assertParamExists('shoppingRecipe', 'id', id) + const localVarPath = `/api/recipe/{id}/shopping/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -13589,7 +11177,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(recipeShoppingUpdate, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -13598,15 +11186,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }, /** * - * @param {string} id A unique integer value identifying this import log. - * @param {ImportLog} [importLog] + * @param {string} id A unique integer value identifying this access token. + * @param {AccessToken} [accessToken] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateImportLog: async (id: string, importLog?: ImportLog, options: any = {}): Promise => { + updateAccessToken: async (id: string, accessToken?: AccessToken, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined - assertParamExists('updateImportLog', 'id', id) - const localVarPath = `/api/import-log/{id}/` + assertParamExists('updateAccessToken', 'id', id) + const localVarPath = `/api/access-token/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -13626,7 +11214,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(accessToken, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -13635,15 +11223,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }, /** * - * @param {string} id A unique integer value identifying this ingredient. - * @param {Ingredient} [ingredient] + * @param {string} id A unique integer value identifying this automation. + * @param {Automation} [automation] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateIngredient: async (id: string, ingredient?: Ingredient, options: any = {}): Promise => { + updateAutomation: async (id: string, automation?: Automation, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined - assertParamExists('updateIngredient', 'id', id) - const localVarPath = `/api/ingredient/{id}/` + assertParamExists('updateAutomation', 'id', id) + const localVarPath = `/api/automation/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -13663,7 +11251,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(automation, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -13672,15 +11260,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }, /** * - * @param {string} id A unique integer value identifying this invite link. - * @param {InviteLink} [inviteLink] + * @param {string} id A unique integer value identifying this bookmarklet import. + * @param {BookmarkletImport} [bookmarkletImport] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateInviteLink: async (id: string, inviteLink?: InviteLink, options: any = {}): Promise => { + updateBookmarkletImport: async (id: string, bookmarkletImport?: BookmarkletImport, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined - assertParamExists('updateInviteLink', 'id', id) - const localVarPath = `/api/invite-link/{id}/` + assertParamExists('updateBookmarkletImport', 'id', id) + const localVarPath = `/api/bookmarklet-import/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -13700,7 +11288,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(bookmarkletImport, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -13709,15 +11297,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }, /** * - * @param {string} id A unique integer value identifying this keyword. - * @param {Keyword} [keyword] + * @param {string} id A unique integer value identifying this cook log. + * @param {CookLog} [cookLog] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateKeyword: async (id: string, keyword?: Keyword, options: any = {}): Promise => { + updateCookLog: async (id: string, cookLog?: CookLog, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined - assertParamExists('updateKeyword', 'id', id) - const localVarPath = `/api/keyword/{id}/` + assertParamExists('updateCookLog', 'id', id) + const localVarPath = `/api/cook-log/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -13737,7 +11325,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(cookLog, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -13746,15 +11334,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }, /** * - * @param {string} id A unique integer value identifying this meal plan. - * @param {MealPlan} [mealPlan] + * @param {string} id A unique integer value identifying this custom filter. + * @param {CustomFilter} [customFilter] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateMealPlan: async (id: string, mealPlan?: MealPlan, options: any = {}): Promise => { + updateCustomFilter: async (id: string, customFilter?: CustomFilter, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined - assertParamExists('updateMealPlan', 'id', id) - const localVarPath = `/api/meal-plan/{id}/` + assertParamExists('updateCustomFilter', 'id', id) + const localVarPath = `/api/custom-filter/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -13774,7 +11362,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(customFilter, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -13782,16 +11370,16 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }; }, /** - * returns list of meal types created by the requesting user ordered by the order field. - * @param {string} id A unique integer value identifying this meal type. - * @param {MealType} [mealType] + * + * @param {string} id A unique integer value identifying this export log. + * @param {ExportLog} [exportLog] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateMealType: async (id: string, mealType?: MealType, options: any = {}): Promise => { + updateExportLog: async (id: string, exportLog?: ExportLog, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined - assertParamExists('updateMealType', 'id', id) - const localVarPath = `/api/meal-type/{id}/` + assertParamExists('updateExportLog', 'id', id) + const localVarPath = `/api/export-log/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -13811,7 +11399,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(exportLog, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -13820,15 +11408,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }, /** * - * @param {string} id A unique integer value identifying this open data category. - * @param {OpenDataCategory} [openDataCategory] + * @param {string} id A unique integer value identifying this food. + * @param {Food} [food] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateOpenDataCategory: async (id: string, openDataCategory?: OpenDataCategory, options: any = {}): Promise => { + updateFood: async (id: string, food?: Food, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined - assertParamExists('updateOpenDataCategory', 'id', id) - const localVarPath = `/api/open-data-category/{id}/` + assertParamExists('updateFood', 'id', id) + const localVarPath = `/api/food/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -13848,7 +11436,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(openDataCategory, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(food, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -13857,15 +11445,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }, /** * - * @param {string} id A unique integer value identifying this open data conversion. - * @param {OpenDataConversion} [openDataConversion] + * @param {string} id A unique integer value identifying this import log. + * @param {ImportLog} [importLog] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateOpenDataConversion: async (id: string, openDataConversion?: OpenDataConversion, options: any = {}): Promise => { + updateImportLog: async (id: string, importLog?: ImportLog, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined - assertParamExists('updateOpenDataConversion', 'id', id) - const localVarPath = `/api/open-data-conversion/{id}/` + assertParamExists('updateImportLog', 'id', id) + const localVarPath = `/api/import-log/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -13885,7 +11473,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(openDataConversion, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(importLog, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -13894,15 +11482,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }, /** * - * @param {string} id A unique integer value identifying this open data food. - * @param {OpenDataFood} [openDataFood] + * @param {string} id A unique integer value identifying this ingredient. + * @param {Ingredient} [ingredient] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateOpenDataFood: async (id: string, openDataFood?: OpenDataFood, options: any = {}): Promise => { + updateIngredient: async (id: string, ingredient?: Ingredient, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined - assertParamExists('updateOpenDataFood', 'id', id) - const localVarPath = `/api/open-data-food/{id}/` + assertParamExists('updateIngredient', 'id', id) + const localVarPath = `/api/ingredient/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -13922,7 +11510,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(openDataFood, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(ingredient, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -13931,15 +11519,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }, /** * - * @param {string} id A unique integer value identifying this open data property. - * @param {OpenDataProperty} [openDataProperty] + * @param {string} id A unique integer value identifying this invite link. + * @param {InviteLink} [inviteLink] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateOpenDataProperty: async (id: string, openDataProperty?: OpenDataProperty, options: any = {}): Promise => { + updateInviteLink: async (id: string, inviteLink?: InviteLink, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined - assertParamExists('updateOpenDataProperty', 'id', id) - const localVarPath = `/api/open-data-property/{id}/` + assertParamExists('updateInviteLink', 'id', id) + const localVarPath = `/api/invite-link/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -13959,7 +11547,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(openDataProperty, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(inviteLink, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -13968,15 +11556,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }, /** * - * @param {string} id A unique integer value identifying this open data store. - * @param {OpenDataStore} [openDataStore] + * @param {string} id A unique integer value identifying this keyword. + * @param {Keyword} [keyword] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateOpenDataStore: async (id: string, openDataStore?: OpenDataStore, options: any = {}): Promise => { + updateKeyword: async (id: string, keyword?: Keyword, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined - assertParamExists('updateOpenDataStore', 'id', id) - const localVarPath = `/api/open-data-store/{id}/` + assertParamExists('updateKeyword', 'id', id) + const localVarPath = `/api/keyword/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -13996,7 +11584,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(openDataStore, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(keyword, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -14005,15 +11593,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }, /** * - * @param {string} id A unique integer value identifying this open data unit. - * @param {OpenDataUnit} [openDataUnit] + * @param {string} id A unique integer value identifying this meal plan. + * @param {MealPlan} [mealPlan] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateOpenDataUnit: async (id: string, openDataUnit?: OpenDataUnit, options: any = {}): Promise => { + updateMealPlan: async (id: string, mealPlan?: MealPlan, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined - assertParamExists('updateOpenDataUnit', 'id', id) - const localVarPath = `/api/open-data-unit/{id}/` + assertParamExists('updateMealPlan', 'id', id) + const localVarPath = `/api/meal-plan/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -14033,7 +11621,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(openDataUnit, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(mealPlan, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -14041,16 +11629,16 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) }; }, /** - * - * @param {string} id A unique integer value identifying this open data version. - * @param {OpenDataVersion} [openDataVersion] + * returns list of meal types created by the requesting user ordered by the order field. + * @param {string} id A unique integer value identifying this meal type. + * @param {MealType} [mealType] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateOpenDataVersion: async (id: string, openDataVersion?: OpenDataVersion, options: any = {}): Promise => { + updateMealType: async (id: string, mealType?: MealType, options: any = {}): Promise => { // verify required parameter 'id' is not null or undefined - assertParamExists('updateOpenDataVersion', 'id', id) - const localVarPath = `/api/open-data-version/{id}/` + assertParamExists('updateMealType', 'id', id) + const localVarPath = `/api/meal-type/{id}/` .replace(`{${"id"}}`, encodeURIComponent(String(id))); // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -14070,7 +11658,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(openDataVersion, localVarRequestOptions, configuration) + localVarRequestOptions.data = serializeDataIfNeeded(mealType, localVarRequestOptions, configuration) return { url: toPathString(localVarUrlObj), @@ -14829,172 +12417,102 @@ export const ApiApiFp = function(configuration?: Configuration) { }, /** * - * @param {CookLog} [cookLog] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createCookLog(cookLog?: CookLog, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createCookLog(cookLog, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {CustomFilter} [customFilter] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createCustomFilter(customFilter?: CustomFilter, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createCustomFilter(customFilter, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {ExportLog} [exportLog] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createExportLog(exportLog?: ExportLog, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createExportLog(exportLog, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {Food} [food] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createFood(food?: Food, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createFood(food, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {ImportLog} [importLog] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createImportLog(importLog?: ImportLog, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createImportLog(importLog, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {Ingredient} [ingredient] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createIngredient(ingredient?: Ingredient, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createIngredient(ingredient, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {InviteLink} [inviteLink] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createInviteLink(inviteLink?: InviteLink, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createInviteLink(inviteLink, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {Keyword} [keyword] + * @param {CookLog} [cookLog] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async createKeyword(keyword?: Keyword, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createKeyword(keyword, options); + async createCookLog(cookLog?: CookLog, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.createCookLog(cookLog, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * - * @param {MealPlan} [mealPlan] + * @param {CustomFilter} [customFilter] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async createMealPlan(mealPlan?: MealPlan, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createMealPlan(mealPlan, options); + async createCustomFilter(customFilter?: CustomFilter, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.createCustomFilter(customFilter, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * returns list of meal types created by the requesting user ordered by the order field. - * @param {MealType} [mealType] + * + * @param {ExportLog} [exportLog] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async createMealType(mealType?: MealType, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createMealType(mealType, options); + async createExportLog(exportLog?: ExportLog, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.createExportLog(exportLog, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * - * @param {OpenDataCategory} [openDataCategory] + * @param {Food} [food] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async createOpenDataCategory(openDataCategory?: OpenDataCategory, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createOpenDataCategory(openDataCategory, options); + async createFood(food?: Food, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.createFood(food, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * - * @param {OpenDataConversion} [openDataConversion] + * @param {ImportLog} [importLog] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async createOpenDataConversion(openDataConversion?: OpenDataConversion, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createOpenDataConversion(openDataConversion, options); + async createImportLog(importLog?: ImportLog, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.createImportLog(importLog, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * - * @param {OpenDataFood} [openDataFood] + * @param {Ingredient} [ingredient] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async createOpenDataFood(openDataFood?: OpenDataFood, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createOpenDataFood(openDataFood, options); + async createIngredient(ingredient?: Ingredient, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.createIngredient(ingredient, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * - * @param {OpenDataProperty} [openDataProperty] + * @param {InviteLink} [inviteLink] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async createOpenDataProperty(openDataProperty?: OpenDataProperty, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createOpenDataProperty(openDataProperty, options); + async createInviteLink(inviteLink?: InviteLink, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.createInviteLink(inviteLink, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * - * @param {OpenDataStore} [openDataStore] + * @param {Keyword} [keyword] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async createOpenDataStore(openDataStore?: OpenDataStore, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createOpenDataStore(openDataStore, options); + async createKeyword(keyword?: Keyword, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.createKeyword(keyword, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** * - * @param {OpenDataUnit} [openDataUnit] + * @param {MealPlan} [mealPlan] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async createOpenDataUnit(openDataUnit?: OpenDataUnit, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createOpenDataUnit(openDataUnit, options); + async createMealPlan(mealPlan?: MealPlan, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.createMealPlan(mealPlan, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * - * @param {OpenDataVersion} [openDataVersion] + * returns list of meal types created by the requesting user ordered by the order field. + * @param {MealType} [mealType] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async createOpenDataVersion(openDataVersion?: OpenDataVersion, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createOpenDataVersion(openDataVersion, options); + async createMealType(mealType?: MealType, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.createMealType(mealType, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** @@ -15332,76 +12850,6 @@ export const ApiApiFp = function(configuration?: Configuration) { const localVarAxiosArgs = await localVarAxiosParamCreator.destroyMealType(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, - /** - * - * @param {string} id A unique integer value identifying this open data category. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async destroyOpenDataCategory(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.destroyOpenDataCategory(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this open data conversion. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async destroyOpenDataConversion(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.destroyOpenDataConversion(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this open data food. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async destroyOpenDataFood(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.destroyOpenDataFood(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this open data property. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async destroyOpenDataProperty(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.destroyOpenDataProperty(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this open data store. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async destroyOpenDataStore(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.destroyOpenDataStore(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this open data unit. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async destroyOpenDataUnit(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.destroyOpenDataUnit(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this open data version. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async destroyOpenDataVersion(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.destroyOpenDataVersion(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, /** * * @param {string} id A unique integer value identifying this property. @@ -15593,7 +13041,7 @@ export const ApiApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * updates the food with all possible data from the FDC Api (only adds new, does not change existing properties) + * updates the food with all possible data from the FDC Api if properties with a fdc_id already exist they will be overridden, if existing properties don\'t have a fdc_id they won\'t be changed * @param {string} id A unique integer value identifying this food. * @param {Food} [food] * @param {*} [options] Override http request option. @@ -15751,12 +13199,15 @@ export const ApiApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * optional parameters - **from_date**: filter from (inclusive) a certain date onward - **to_date**: filter upward to (inclusive) certain date + * optional parameters - **from_date**: filter from (inclusive) a certain date onward - **to_date**: filter upward to (inclusive) certain date - **meal_type**: filter meal plans based on meal_type ID + * @param {string} [fromDate] Filter meal plans from date (inclusive) in the format of YYYY-MM-DD. + * @param {string} [toDate] Filter meal plans to date (inclusive) in the format of YYYY-MM-DD. + * @param {number} [mealType] Query string matched (fuzzy) against object name. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async listMealPlans(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await localVarAxiosParamCreator.listMealPlans(options); + async listMealPlans(fromDate?: string, toDate?: string, mealType?: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { + const localVarAxiosArgs = await localVarAxiosParamCreator.listMealPlans(fromDate, toDate, mealType, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** @@ -15768,78 +13219,6 @@ export const ApiApiFp = function(configuration?: Configuration) { const localVarAxiosArgs = await localVarAxiosParamCreator.listMealTypes(options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, - /** - * - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async listOpenDataCategorys(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await localVarAxiosParamCreator.listOpenDataCategorys(options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async listOpenDataConversions(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await localVarAxiosParamCreator.listOpenDataConversions(options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async listOpenDataFoods(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await localVarAxiosParamCreator.listOpenDataFoods(options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async listOpenDataPropertys(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await localVarAxiosParamCreator.listOpenDataPropertys(options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async listOpenDataStatisticsViewSets(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await localVarAxiosParamCreator.listOpenDataStatisticsViewSets(options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async listOpenDataStores(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await localVarAxiosParamCreator.listOpenDataStores(options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async listOpenDataUnits(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await localVarAxiosParamCreator.listOpenDataUnits(options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async listOpenDataVersions(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await localVarAxiosParamCreator.listOpenDataVersions(options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, /** * * @param {*} [options] Override http request option. @@ -16308,83 +13687,6 @@ export const ApiApiFp = function(configuration?: Configuration) { const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateMealType(id, mealType, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, - /** - * - * @param {string} id A unique integer value identifying this open data category. - * @param {OpenDataCategory} [openDataCategory] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async partialUpdateOpenDataCategory(id: string, openDataCategory?: OpenDataCategory, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateOpenDataCategory(id, openDataCategory, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this open data conversion. - * @param {OpenDataConversion} [openDataConversion] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async partialUpdateOpenDataConversion(id: string, openDataConversion?: OpenDataConversion, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateOpenDataConversion(id, openDataConversion, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this open data food. - * @param {OpenDataFood} [openDataFood] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async partialUpdateOpenDataFood(id: string, openDataFood?: OpenDataFood, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateOpenDataFood(id, openDataFood, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this open data property. - * @param {OpenDataProperty} [openDataProperty] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async partialUpdateOpenDataProperty(id: string, openDataProperty?: OpenDataProperty, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateOpenDataProperty(id, openDataProperty, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this open data store. - * @param {OpenDataStore} [openDataStore] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async partialUpdateOpenDataStore(id: string, openDataStore?: OpenDataStore, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateOpenDataStore(id, openDataStore, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this open data unit. - * @param {OpenDataUnit} [openDataUnit] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async partialUpdateOpenDataUnit(id: string, openDataUnit?: OpenDataUnit, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateOpenDataUnit(id, openDataUnit, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this open data version. - * @param {OpenDataVersion} [openDataVersion] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async partialUpdateOpenDataVersion(id: string, openDataVersion?: OpenDataVersion, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateOpenDataVersion(id, openDataVersion, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, /** * * @param {string} id A unique integer value identifying this property. @@ -16702,16 +14004,6 @@ export const ApiApiFp = function(configuration?: Configuration) { const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveExportLog(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, - /** - * - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async retrieveFDCViewSet(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveFDCViewSet(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, /** * * @param {string} id A unique integer value identifying this food. @@ -16793,83 +14085,13 @@ export const ApiApiFp = function(configuration?: Configuration) { return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** - * returns list of meal types created by the requesting user ordered by the order field. - * @param {string} id A unique integer value identifying this meal type. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async retrieveMealType(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveMealType(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this open data category. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async retrieveOpenDataCategory(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveOpenDataCategory(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this open data conversion. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async retrieveOpenDataConversion(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveOpenDataConversion(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this open data food. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async retrieveOpenDataFood(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveOpenDataFood(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this open data property. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async retrieveOpenDataProperty(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveOpenDataProperty(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this open data store. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async retrieveOpenDataStore(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveOpenDataStore(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this open data unit. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async retrieveOpenDataUnit(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveOpenDataUnit(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this open data version. + * returns list of meal types created by the requesting user ordered by the order field. + * @param {string} id A unique integer value identifying this meal type. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async retrieveOpenDataVersion(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveOpenDataVersion(id, options); + async retrieveMealType(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveMealType(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, /** @@ -17297,83 +14519,6 @@ export const ApiApiFp = function(configuration?: Configuration) { const localVarAxiosArgs = await localVarAxiosParamCreator.updateMealType(id, mealType, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, - /** - * - * @param {string} id A unique integer value identifying this open data category. - * @param {OpenDataCategory} [openDataCategory] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async updateOpenDataCategory(id: string, openDataCategory?: OpenDataCategory, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.updateOpenDataCategory(id, openDataCategory, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this open data conversion. - * @param {OpenDataConversion} [openDataConversion] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async updateOpenDataConversion(id: string, openDataConversion?: OpenDataConversion, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.updateOpenDataConversion(id, openDataConversion, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this open data food. - * @param {OpenDataFood} [openDataFood] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async updateOpenDataFood(id: string, openDataFood?: OpenDataFood, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.updateOpenDataFood(id, openDataFood, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this open data property. - * @param {OpenDataProperty} [openDataProperty] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async updateOpenDataProperty(id: string, openDataProperty?: OpenDataProperty, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.updateOpenDataProperty(id, openDataProperty, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this open data store. - * @param {OpenDataStore} [openDataStore] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async updateOpenDataStore(id: string, openDataStore?: OpenDataStore, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.updateOpenDataStore(id, openDataStore, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this open data unit. - * @param {OpenDataUnit} [openDataUnit] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async updateOpenDataUnit(id: string, openDataUnit?: OpenDataUnit, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.updateOpenDataUnit(id, openDataUnit, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this open data version. - * @param {OpenDataVersion} [openDataVersion] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async updateOpenDataVersion(id: string, openDataVersion?: OpenDataVersion, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.updateOpenDataVersion(id, openDataVersion, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, /** * * @param {string} id A unique integer value identifying this property. @@ -17713,69 +14858,6 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?: createMealType(mealType?: MealType, options?: any): AxiosPromise { return localVarFp.createMealType(mealType, options).then((request) => request(axios, basePath)); }, - /** - * - * @param {OpenDataCategory} [openDataCategory] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createOpenDataCategory(openDataCategory?: OpenDataCategory, options?: any): AxiosPromise { - return localVarFp.createOpenDataCategory(openDataCategory, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {OpenDataConversion} [openDataConversion] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createOpenDataConversion(openDataConversion?: OpenDataConversion, options?: any): AxiosPromise { - return localVarFp.createOpenDataConversion(openDataConversion, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {OpenDataFood} [openDataFood] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createOpenDataFood(openDataFood?: OpenDataFood, options?: any): AxiosPromise { - return localVarFp.createOpenDataFood(openDataFood, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {OpenDataProperty} [openDataProperty] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createOpenDataProperty(openDataProperty?: OpenDataProperty, options?: any): AxiosPromise { - return localVarFp.createOpenDataProperty(openDataProperty, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {OpenDataStore} [openDataStore] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createOpenDataStore(openDataStore?: OpenDataStore, options?: any): AxiosPromise { - return localVarFp.createOpenDataStore(openDataStore, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {OpenDataUnit} [openDataUnit] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createOpenDataUnit(openDataUnit?: OpenDataUnit, options?: any): AxiosPromise { - return localVarFp.createOpenDataUnit(openDataUnit, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {OpenDataVersion} [openDataVersion] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createOpenDataVersion(openDataVersion?: OpenDataVersion, options?: any): AxiosPromise { - return localVarFp.createOpenDataVersion(openDataVersion, options).then((request) => request(axios, basePath)); - }, /** * * @param {Property} [property] @@ -18078,69 +15160,6 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?: destroyMealType(id: string, options?: any): AxiosPromise { return localVarFp.destroyMealType(id, options).then((request) => request(axios, basePath)); }, - /** - * - * @param {string} id A unique integer value identifying this open data category. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyOpenDataCategory(id: string, options?: any): AxiosPromise { - return localVarFp.destroyOpenDataCategory(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this open data conversion. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyOpenDataConversion(id: string, options?: any): AxiosPromise { - return localVarFp.destroyOpenDataConversion(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this open data food. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyOpenDataFood(id: string, options?: any): AxiosPromise { - return localVarFp.destroyOpenDataFood(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this open data property. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyOpenDataProperty(id: string, options?: any): AxiosPromise { - return localVarFp.destroyOpenDataProperty(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this open data store. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyOpenDataStore(id: string, options?: any): AxiosPromise { - return localVarFp.destroyOpenDataStore(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this open data unit. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyOpenDataUnit(id: string, options?: any): AxiosPromise { - return localVarFp.destroyOpenDataUnit(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this open data version. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyOpenDataVersion(id: string, options?: any): AxiosPromise { - return localVarFp.destroyOpenDataVersion(id, options).then((request) => request(axios, basePath)); - }, /** * * @param {string} id A unique integer value identifying this property. @@ -18313,7 +15332,7 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?: return localVarFp.destroyViewLog(id, options).then((request) => request(axios, basePath)); }, /** - * updates the food with all possible data from the FDC Api (only adds new, does not change existing properties) + * updates the food with all possible data from the FDC Api if properties with a fdc_id already exist they will be overridden, if existing properties don\'t have a fdc_id they won\'t be changed * @param {string} id A unique integer value identifying this food. * @param {Food} [food] * @param {*} [options] Override http request option. @@ -18456,12 +15475,15 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?: return localVarFp.listKeywords(query, root, tree, page, pageSize, options).then((request) => request(axios, basePath)); }, /** - * optional parameters - **from_date**: filter from (inclusive) a certain date onward - **to_date**: filter upward to (inclusive) certain date + * optional parameters - **from_date**: filter from (inclusive) a certain date onward - **to_date**: filter upward to (inclusive) certain date - **meal_type**: filter meal plans based on meal_type ID + * @param {string} [fromDate] Filter meal plans from date (inclusive) in the format of YYYY-MM-DD. + * @param {string} [toDate] Filter meal plans to date (inclusive) in the format of YYYY-MM-DD. + * @param {number} [mealType] Query string matched (fuzzy) against object name. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listMealPlans(options?: any): AxiosPromise> { - return localVarFp.listMealPlans(options).then((request) => request(axios, basePath)); + listMealPlans(fromDate?: string, toDate?: string, mealType?: number, options?: any): AxiosPromise> { + return localVarFp.listMealPlans(fromDate, toDate, mealType, options).then((request) => request(axios, basePath)); }, /** * returns list of meal types created by the requesting user ordered by the order field. @@ -18471,70 +15493,6 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?: listMealTypes(options?: any): AxiosPromise> { return localVarFp.listMealTypes(options).then((request) => request(axios, basePath)); }, - /** - * - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listOpenDataCategorys(options?: any): AxiosPromise> { - return localVarFp.listOpenDataCategorys(options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listOpenDataConversions(options?: any): AxiosPromise> { - return localVarFp.listOpenDataConversions(options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listOpenDataFoods(options?: any): AxiosPromise> { - return localVarFp.listOpenDataFoods(options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listOpenDataPropertys(options?: any): AxiosPromise> { - return localVarFp.listOpenDataPropertys(options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listOpenDataStatisticsViewSets(options?: any): AxiosPromise> { - return localVarFp.listOpenDataStatisticsViewSets(options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listOpenDataStores(options?: any): AxiosPromise> { - return localVarFp.listOpenDataStores(options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listOpenDataUnits(options?: any): AxiosPromise> { - return localVarFp.listOpenDataUnits(options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listOpenDataVersions(options?: any): AxiosPromise> { - return localVarFp.listOpenDataVersions(options).then((request) => request(axios, basePath)); - }, /** * * @param {*} [options] Override http request option. @@ -18882,154 +15840,84 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?: return localVarFp.partialUpdateCustomFilter(id, customFilter, options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this export log. - * @param {ExportLog} [exportLog] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - partialUpdateExportLog(id: string, exportLog?: ExportLog, options?: any): AxiosPromise { - return localVarFp.partialUpdateExportLog(id, exportLog, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this food. - * @param {Food} [food] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - partialUpdateFood(id: string, food?: Food, options?: any): AxiosPromise { - return localVarFp.partialUpdateFood(id, food, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this import log. - * @param {ImportLog} [importLog] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - partialUpdateImportLog(id: string, importLog?: ImportLog, options?: any): AxiosPromise { - return localVarFp.partialUpdateImportLog(id, importLog, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this ingredient. - * @param {Ingredient} [ingredient] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - partialUpdateIngredient(id: string, ingredient?: Ingredient, options?: any): AxiosPromise { - return localVarFp.partialUpdateIngredient(id, ingredient, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this invite link. - * @param {InviteLink} [inviteLink] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - partialUpdateInviteLink(id: string, inviteLink?: InviteLink, options?: any): AxiosPromise { - return localVarFp.partialUpdateInviteLink(id, inviteLink, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this keyword. - * @param {Keyword} [keyword] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - partialUpdateKeyword(id: string, keyword?: Keyword, options?: any): AxiosPromise { - return localVarFp.partialUpdateKeyword(id, keyword, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this meal plan. - * @param {MealPlan} [mealPlan] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - partialUpdateMealPlan(id: string, mealPlan?: MealPlan, options?: any): AxiosPromise { - return localVarFp.partialUpdateMealPlan(id, mealPlan, options).then((request) => request(axios, basePath)); - }, - /** - * returns list of meal types created by the requesting user ordered by the order field. - * @param {string} id A unique integer value identifying this meal type. - * @param {MealType} [mealType] + * + * @param {string} id A unique integer value identifying this export log. + * @param {ExportLog} [exportLog] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - partialUpdateMealType(id: string, mealType?: MealType, options?: any): AxiosPromise { - return localVarFp.partialUpdateMealType(id, mealType, options).then((request) => request(axios, basePath)); + partialUpdateExportLog(id: string, exportLog?: ExportLog, options?: any): AxiosPromise { + return localVarFp.partialUpdateExportLog(id, exportLog, options).then((request) => request(axios, basePath)); }, /** * - * @param {string} id A unique integer value identifying this open data category. - * @param {OpenDataCategory} [openDataCategory] + * @param {string} id A unique integer value identifying this food. + * @param {Food} [food] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - partialUpdateOpenDataCategory(id: string, openDataCategory?: OpenDataCategory, options?: any): AxiosPromise { - return localVarFp.partialUpdateOpenDataCategory(id, openDataCategory, options).then((request) => request(axios, basePath)); + partialUpdateFood(id: string, food?: Food, options?: any): AxiosPromise { + return localVarFp.partialUpdateFood(id, food, options).then((request) => request(axios, basePath)); }, /** * - * @param {string} id A unique integer value identifying this open data conversion. - * @param {OpenDataConversion} [openDataConversion] + * @param {string} id A unique integer value identifying this import log. + * @param {ImportLog} [importLog] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - partialUpdateOpenDataConversion(id: string, openDataConversion?: OpenDataConversion, options?: any): AxiosPromise { - return localVarFp.partialUpdateOpenDataConversion(id, openDataConversion, options).then((request) => request(axios, basePath)); + partialUpdateImportLog(id: string, importLog?: ImportLog, options?: any): AxiosPromise { + return localVarFp.partialUpdateImportLog(id, importLog, options).then((request) => request(axios, basePath)); }, /** * - * @param {string} id A unique integer value identifying this open data food. - * @param {OpenDataFood} [openDataFood] + * @param {string} id A unique integer value identifying this ingredient. + * @param {Ingredient} [ingredient] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - partialUpdateOpenDataFood(id: string, openDataFood?: OpenDataFood, options?: any): AxiosPromise { - return localVarFp.partialUpdateOpenDataFood(id, openDataFood, options).then((request) => request(axios, basePath)); + partialUpdateIngredient(id: string, ingredient?: Ingredient, options?: any): AxiosPromise { + return localVarFp.partialUpdateIngredient(id, ingredient, options).then((request) => request(axios, basePath)); }, /** * - * @param {string} id A unique integer value identifying this open data property. - * @param {OpenDataProperty} [openDataProperty] + * @param {string} id A unique integer value identifying this invite link. + * @param {InviteLink} [inviteLink] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - partialUpdateOpenDataProperty(id: string, openDataProperty?: OpenDataProperty, options?: any): AxiosPromise { - return localVarFp.partialUpdateOpenDataProperty(id, openDataProperty, options).then((request) => request(axios, basePath)); + partialUpdateInviteLink(id: string, inviteLink?: InviteLink, options?: any): AxiosPromise { + return localVarFp.partialUpdateInviteLink(id, inviteLink, options).then((request) => request(axios, basePath)); }, /** * - * @param {string} id A unique integer value identifying this open data store. - * @param {OpenDataStore} [openDataStore] + * @param {string} id A unique integer value identifying this keyword. + * @param {Keyword} [keyword] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - partialUpdateOpenDataStore(id: string, openDataStore?: OpenDataStore, options?: any): AxiosPromise { - return localVarFp.partialUpdateOpenDataStore(id, openDataStore, options).then((request) => request(axios, basePath)); + partialUpdateKeyword(id: string, keyword?: Keyword, options?: any): AxiosPromise { + return localVarFp.partialUpdateKeyword(id, keyword, options).then((request) => request(axios, basePath)); }, /** * - * @param {string} id A unique integer value identifying this open data unit. - * @param {OpenDataUnit} [openDataUnit] + * @param {string} id A unique integer value identifying this meal plan. + * @param {MealPlan} [mealPlan] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - partialUpdateOpenDataUnit(id: string, openDataUnit?: OpenDataUnit, options?: any): AxiosPromise { - return localVarFp.partialUpdateOpenDataUnit(id, openDataUnit, options).then((request) => request(axios, basePath)); + partialUpdateMealPlan(id: string, mealPlan?: MealPlan, options?: any): AxiosPromise { + return localVarFp.partialUpdateMealPlan(id, mealPlan, options).then((request) => request(axios, basePath)); }, /** - * - * @param {string} id A unique integer value identifying this open data version. - * @param {OpenDataVersion} [openDataVersion] + * returns list of meal types created by the requesting user ordered by the order field. + * @param {string} id A unique integer value identifying this meal type. + * @param {MealType} [mealType] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - partialUpdateOpenDataVersion(id: string, openDataVersion?: OpenDataVersion, options?: any): AxiosPromise { - return localVarFp.partialUpdateOpenDataVersion(id, openDataVersion, options).then((request) => request(axios, basePath)); + partialUpdateMealType(id: string, mealType?: MealType, options?: any): AxiosPromise { + return localVarFp.partialUpdateMealType(id, mealType, options).then((request) => request(axios, basePath)); }, /** * @@ -19319,15 +16207,6 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?: retrieveExportLog(id: string, options?: any): AxiosPromise { return localVarFp.retrieveExportLog(id, options).then((request) => request(axios, basePath)); }, - /** - * - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveFDCViewSet(id: string, options?: any): AxiosPromise { - return localVarFp.retrieveFDCViewSet(id, options).then((request) => request(axios, basePath)); - }, /** * * @param {string} id A unique integer value identifying this food. @@ -19409,69 +16288,6 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?: retrieveMealType(id: string, options?: any): AxiosPromise { return localVarFp.retrieveMealType(id, options).then((request) => request(axios, basePath)); }, - /** - * - * @param {string} id A unique integer value identifying this open data category. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveOpenDataCategory(id: string, options?: any): AxiosPromise { - return localVarFp.retrieveOpenDataCategory(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this open data conversion. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveOpenDataConversion(id: string, options?: any): AxiosPromise { - return localVarFp.retrieveOpenDataConversion(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this open data food. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveOpenDataFood(id: string, options?: any): AxiosPromise { - return localVarFp.retrieveOpenDataFood(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this open data property. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveOpenDataProperty(id: string, options?: any): AxiosPromise { - return localVarFp.retrieveOpenDataProperty(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this open data store. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveOpenDataStore(id: string, options?: any): AxiosPromise { - return localVarFp.retrieveOpenDataStore(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this open data unit. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveOpenDataUnit(id: string, options?: any): AxiosPromise { - return localVarFp.retrieveOpenDataUnit(id, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this open data version. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveOpenDataVersion(id: string, options?: any): AxiosPromise { - return localVarFp.retrieveOpenDataVersion(id, options).then((request) => request(axios, basePath)); - }, /** * * @param {string} id A unique integer value identifying this property. @@ -19856,76 +16672,6 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?: updateMealType(id: string, mealType?: MealType, options?: any): AxiosPromise { return localVarFp.updateMealType(id, mealType, options).then((request) => request(axios, basePath)); }, - /** - * - * @param {string} id A unique integer value identifying this open data category. - * @param {OpenDataCategory} [openDataCategory] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updateOpenDataCategory(id: string, openDataCategory?: OpenDataCategory, options?: any): AxiosPromise { - return localVarFp.updateOpenDataCategory(id, openDataCategory, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this open data conversion. - * @param {OpenDataConversion} [openDataConversion] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updateOpenDataConversion(id: string, openDataConversion?: OpenDataConversion, options?: any): AxiosPromise { - return localVarFp.updateOpenDataConversion(id, openDataConversion, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this open data food. - * @param {OpenDataFood} [openDataFood] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updateOpenDataFood(id: string, openDataFood?: OpenDataFood, options?: any): AxiosPromise { - return localVarFp.updateOpenDataFood(id, openDataFood, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this open data property. - * @param {OpenDataProperty} [openDataProperty] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updateOpenDataProperty(id: string, openDataProperty?: OpenDataProperty, options?: any): AxiosPromise { - return localVarFp.updateOpenDataProperty(id, openDataProperty, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this open data store. - * @param {OpenDataStore} [openDataStore] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updateOpenDataStore(id: string, openDataStore?: OpenDataStore, options?: any): AxiosPromise { - return localVarFp.updateOpenDataStore(id, openDataStore, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this open data unit. - * @param {OpenDataUnit} [openDataUnit] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updateOpenDataUnit(id: string, openDataUnit?: OpenDataUnit, options?: any): AxiosPromise { - return localVarFp.updateOpenDataUnit(id, openDataUnit, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this open data version. - * @param {OpenDataVersion} [openDataVersion] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updateOpenDataVersion(id: string, openDataVersion?: OpenDataVersion, options?: any): AxiosPromise { - return localVarFp.updateOpenDataVersion(id, openDataVersion, options).then((request) => request(axios, basePath)); - }, /** * * @param {string} id A unique integer value identifying this property. @@ -20275,83 +17021,6 @@ export class ApiApi extends BaseAPI { return ApiApiFp(this.configuration).createMealType(mealType, options).then((request) => request(this.axios, this.basePath)); } - /** - * - * @param {OpenDataCategory} [openDataCategory] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public createOpenDataCategory(openDataCategory?: OpenDataCategory, options?: any) { - return ApiApiFp(this.configuration).createOpenDataCategory(openDataCategory, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {OpenDataConversion} [openDataConversion] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public createOpenDataConversion(openDataConversion?: OpenDataConversion, options?: any) { - return ApiApiFp(this.configuration).createOpenDataConversion(openDataConversion, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {OpenDataFood} [openDataFood] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public createOpenDataFood(openDataFood?: OpenDataFood, options?: any) { - return ApiApiFp(this.configuration).createOpenDataFood(openDataFood, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {OpenDataProperty} [openDataProperty] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public createOpenDataProperty(openDataProperty?: OpenDataProperty, options?: any) { - return ApiApiFp(this.configuration).createOpenDataProperty(openDataProperty, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {OpenDataStore} [openDataStore] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public createOpenDataStore(openDataStore?: OpenDataStore, options?: any) { - return ApiApiFp(this.configuration).createOpenDataStore(openDataStore, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {OpenDataUnit} [openDataUnit] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public createOpenDataUnit(openDataUnit?: OpenDataUnit, options?: any) { - return ApiApiFp(this.configuration).createOpenDataUnit(openDataUnit, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {OpenDataVersion} [openDataVersion] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public createOpenDataVersion(openDataVersion?: OpenDataVersion, options?: any) { - return ApiApiFp(this.configuration).createOpenDataVersion(openDataVersion, options).then((request) => request(this.axios, this.basePath)); - } - /** * * @param {Property} [property] @@ -20673,128 +17342,51 @@ export class ApiApi extends BaseAPI { * @memberof ApiApi */ public destroyIngredient(id: string, options?: any) { - return ApiApiFp(this.configuration).destroyIngredient(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this invite link. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public destroyInviteLink(id: string, options?: any) { - return ApiApiFp(this.configuration).destroyInviteLink(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this keyword. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public destroyKeyword(id: string, options?: any) { - return ApiApiFp(this.configuration).destroyKeyword(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this meal plan. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public destroyMealPlan(id: string, options?: any) { - return ApiApiFp(this.configuration).destroyMealPlan(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * returns list of meal types created by the requesting user ordered by the order field. - * @param {string} id A unique integer value identifying this meal type. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public destroyMealType(id: string, options?: any) { - return ApiApiFp(this.configuration).destroyMealType(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this open data category. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public destroyOpenDataCategory(id: string, options?: any) { - return ApiApiFp(this.configuration).destroyOpenDataCategory(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this open data conversion. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public destroyOpenDataConversion(id: string, options?: any) { - return ApiApiFp(this.configuration).destroyOpenDataConversion(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this open data food. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public destroyOpenDataFood(id: string, options?: any) { - return ApiApiFp(this.configuration).destroyOpenDataFood(id, options).then((request) => request(this.axios, this.basePath)); + return ApiApiFp(this.configuration).destroyIngredient(id, options).then((request) => request(this.axios, this.basePath)); } /** * - * @param {string} id A unique integer value identifying this open data property. + * @param {string} id A unique integer value identifying this invite link. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public destroyOpenDataProperty(id: string, options?: any) { - return ApiApiFp(this.configuration).destroyOpenDataProperty(id, options).then((request) => request(this.axios, this.basePath)); + public destroyInviteLink(id: string, options?: any) { + return ApiApiFp(this.configuration).destroyInviteLink(id, options).then((request) => request(this.axios, this.basePath)); } /** * - * @param {string} id A unique integer value identifying this open data store. + * @param {string} id A unique integer value identifying this keyword. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public destroyOpenDataStore(id: string, options?: any) { - return ApiApiFp(this.configuration).destroyOpenDataStore(id, options).then((request) => request(this.axios, this.basePath)); + public destroyKeyword(id: string, options?: any) { + return ApiApiFp(this.configuration).destroyKeyword(id, options).then((request) => request(this.axios, this.basePath)); } /** * - * @param {string} id A unique integer value identifying this open data unit. + * @param {string} id A unique integer value identifying this meal plan. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public destroyOpenDataUnit(id: string, options?: any) { - return ApiApiFp(this.configuration).destroyOpenDataUnit(id, options).then((request) => request(this.axios, this.basePath)); + public destroyMealPlan(id: string, options?: any) { + return ApiApiFp(this.configuration).destroyMealPlan(id, options).then((request) => request(this.axios, this.basePath)); } /** - * - * @param {string} id A unique integer value identifying this open data version. + * returns list of meal types created by the requesting user ordered by the order field. + * @param {string} id A unique integer value identifying this meal type. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public destroyOpenDataVersion(id: string, options?: any) { - return ApiApiFp(this.configuration).destroyOpenDataVersion(id, options).then((request) => request(this.axios, this.basePath)); + public destroyMealType(id: string, options?: any) { + return ApiApiFp(this.configuration).destroyMealType(id, options).then((request) => request(this.axios, this.basePath)); } /** @@ -21007,7 +17599,7 @@ export class ApiApi extends BaseAPI { } /** - * updates the food with all possible data from the FDC Api (only adds new, does not change existing properties) + * updates the food with all possible data from the FDC Api if properties with a fdc_id already exist they will be overridden, if existing properties don\'t have a fdc_id they won\'t be changed * @param {string} id A unique integer value identifying this food. * @param {Food} [food] * @param {*} [options] Override http request option. @@ -21180,13 +17772,16 @@ export class ApiApi extends BaseAPI { } /** - * optional parameters - **from_date**: filter from (inclusive) a certain date onward - **to_date**: filter upward to (inclusive) certain date + * optional parameters - **from_date**: filter from (inclusive) a certain date onward - **to_date**: filter upward to (inclusive) certain date - **meal_type**: filter meal plans based on meal_type ID + * @param {string} [fromDate] Filter meal plans from date (inclusive) in the format of YYYY-MM-DD. + * @param {string} [toDate] Filter meal plans to date (inclusive) in the format of YYYY-MM-DD. + * @param {number} [mealType] Query string matched (fuzzy) against object name. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof ApiApi */ - public listMealPlans(options?: any) { - return ApiApiFp(this.configuration).listMealPlans(options).then((request) => request(this.axios, this.basePath)); + public listMealPlans(fromDate?: string, toDate?: string, mealType?: number, options?: any) { + return ApiApiFp(this.configuration).listMealPlans(fromDate, toDate, mealType, options).then((request) => request(this.axios, this.basePath)); } /** @@ -21199,86 +17794,6 @@ export class ApiApi extends BaseAPI { return ApiApiFp(this.configuration).listMealTypes(options).then((request) => request(this.axios, this.basePath)); } - /** - * - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public listOpenDataCategorys(options?: any) { - return ApiApiFp(this.configuration).listOpenDataCategorys(options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public listOpenDataConversions(options?: any) { - return ApiApiFp(this.configuration).listOpenDataConversions(options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public listOpenDataFoods(options?: any) { - return ApiApiFp(this.configuration).listOpenDataFoods(options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public listOpenDataPropertys(options?: any) { - return ApiApiFp(this.configuration).listOpenDataPropertys(options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public listOpenDataStatisticsViewSets(options?: any) { - return ApiApiFp(this.configuration).listOpenDataStatisticsViewSets(options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public listOpenDataStores(options?: any) { - return ApiApiFp(this.configuration).listOpenDataStores(options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public listOpenDataUnits(options?: any) { - return ApiApiFp(this.configuration).listOpenDataUnits(options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public listOpenDataVersions(options?: any) { - return ApiApiFp(this.configuration).listOpenDataVersions(options).then((request) => request(this.axios, this.basePath)); - } - /** * * @param {*} [options] Override http request option. @@ -21789,90 +18304,6 @@ export class ApiApi extends BaseAPI { return ApiApiFp(this.configuration).partialUpdateMealType(id, mealType, options).then((request) => request(this.axios, this.basePath)); } - /** - * - * @param {string} id A unique integer value identifying this open data category. - * @param {OpenDataCategory} [openDataCategory] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public partialUpdateOpenDataCategory(id: string, openDataCategory?: OpenDataCategory, options?: any) { - return ApiApiFp(this.configuration).partialUpdateOpenDataCategory(id, openDataCategory, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this open data conversion. - * @param {OpenDataConversion} [openDataConversion] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public partialUpdateOpenDataConversion(id: string, openDataConversion?: OpenDataConversion, options?: any) { - return ApiApiFp(this.configuration).partialUpdateOpenDataConversion(id, openDataConversion, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this open data food. - * @param {OpenDataFood} [openDataFood] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public partialUpdateOpenDataFood(id: string, openDataFood?: OpenDataFood, options?: any) { - return ApiApiFp(this.configuration).partialUpdateOpenDataFood(id, openDataFood, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this open data property. - * @param {OpenDataProperty} [openDataProperty] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public partialUpdateOpenDataProperty(id: string, openDataProperty?: OpenDataProperty, options?: any) { - return ApiApiFp(this.configuration).partialUpdateOpenDataProperty(id, openDataProperty, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this open data store. - * @param {OpenDataStore} [openDataStore] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public partialUpdateOpenDataStore(id: string, openDataStore?: OpenDataStore, options?: any) { - return ApiApiFp(this.configuration).partialUpdateOpenDataStore(id, openDataStore, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this open data unit. - * @param {OpenDataUnit} [openDataUnit] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public partialUpdateOpenDataUnit(id: string, openDataUnit?: OpenDataUnit, options?: any) { - return ApiApiFp(this.configuration).partialUpdateOpenDataUnit(id, openDataUnit, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this open data version. - * @param {OpenDataVersion} [openDataVersion] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public partialUpdateOpenDataVersion(id: string, openDataVersion?: OpenDataVersion, options?: any) { - return ApiApiFp(this.configuration).partialUpdateOpenDataVersion(id, openDataVersion, options).then((request) => request(this.axios, this.basePath)); - } - /** * * @param {string} id A unique integer value identifying this property. @@ -22219,17 +18650,6 @@ export class ApiApi extends BaseAPI { return ApiApiFp(this.configuration).retrieveExportLog(id, options).then((request) => request(this.axios, this.basePath)); } - /** - * - * @param {string} id - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public retrieveFDCViewSet(id: string, options?: any) { - return ApiApiFp(this.configuration).retrieveFDCViewSet(id, options).then((request) => request(this.axios, this.basePath)); - } - /** * * @param {string} id A unique integer value identifying this food. @@ -22329,83 +18749,6 @@ export class ApiApi extends BaseAPI { return ApiApiFp(this.configuration).retrieveMealType(id, options).then((request) => request(this.axios, this.basePath)); } - /** - * - * @param {string} id A unique integer value identifying this open data category. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public retrieveOpenDataCategory(id: string, options?: any) { - return ApiApiFp(this.configuration).retrieveOpenDataCategory(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this open data conversion. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public retrieveOpenDataConversion(id: string, options?: any) { - return ApiApiFp(this.configuration).retrieveOpenDataConversion(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this open data food. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public retrieveOpenDataFood(id: string, options?: any) { - return ApiApiFp(this.configuration).retrieveOpenDataFood(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this open data property. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public retrieveOpenDataProperty(id: string, options?: any) { - return ApiApiFp(this.configuration).retrieveOpenDataProperty(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this open data store. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public retrieveOpenDataStore(id: string, options?: any) { - return ApiApiFp(this.configuration).retrieveOpenDataStore(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this open data unit. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public retrieveOpenDataUnit(id: string, options?: any) { - return ApiApiFp(this.configuration).retrieveOpenDataUnit(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this open data version. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public retrieveOpenDataVersion(id: string, options?: any) { - return ApiApiFp(this.configuration).retrieveOpenDataVersion(id, options).then((request) => request(this.axios, this.basePath)); - } - /** * * @param {string} id A unique integer value identifying this property. @@ -22872,90 +19215,6 @@ export class ApiApi extends BaseAPI { return ApiApiFp(this.configuration).updateMealType(id, mealType, options).then((request) => request(this.axios, this.basePath)); } - /** - * - * @param {string} id A unique integer value identifying this open data category. - * @param {OpenDataCategory} [openDataCategory] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public updateOpenDataCategory(id: string, openDataCategory?: OpenDataCategory, options?: any) { - return ApiApiFp(this.configuration).updateOpenDataCategory(id, openDataCategory, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this open data conversion. - * @param {OpenDataConversion} [openDataConversion] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public updateOpenDataConversion(id: string, openDataConversion?: OpenDataConversion, options?: any) { - return ApiApiFp(this.configuration).updateOpenDataConversion(id, openDataConversion, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this open data food. - * @param {OpenDataFood} [openDataFood] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public updateOpenDataFood(id: string, openDataFood?: OpenDataFood, options?: any) { - return ApiApiFp(this.configuration).updateOpenDataFood(id, openDataFood, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this open data property. - * @param {OpenDataProperty} [openDataProperty] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public updateOpenDataProperty(id: string, openDataProperty?: OpenDataProperty, options?: any) { - return ApiApiFp(this.configuration).updateOpenDataProperty(id, openDataProperty, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this open data store. - * @param {OpenDataStore} [openDataStore] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public updateOpenDataStore(id: string, openDataStore?: OpenDataStore, options?: any) { - return ApiApiFp(this.configuration).updateOpenDataStore(id, openDataStore, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this open data unit. - * @param {OpenDataUnit} [openDataUnit] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public updateOpenDataUnit(id: string, openDataUnit?: OpenDataUnit, options?: any) { - return ApiApiFp(this.configuration).updateOpenDataUnit(id, openDataUnit, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this open data version. - * @param {OpenDataVersion} [openDataVersion] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public updateOpenDataVersion(id: string, openDataVersion?: OpenDataVersion, options?: any) { - return ApiApiFp(this.configuration).updateOpenDataVersion(id, openDataVersion, options).then((request) => request(this.axios, this.basePath)); - } - /** * * @param {string} id A unique integer value identifying this property. diff --git a/vue/yarn.lock b/vue/yarn.lock index bd02d0d6b1..98f4108124 100644 --- a/vue/yarn.lock +++ b/vue/yarn.lock @@ -1248,6 +1248,122 @@ "@babel/helper-validator-identifier" "^7.22.20" to-fast-properties "^2.0.0" +"@codemirror/autocomplete@^6.0.0", "@codemirror/autocomplete@^6.11.1", "@codemirror/autocomplete@^6.7.1": + version "6.11.1" + resolved "https://registry.yarnpkg.com/@codemirror/autocomplete/-/autocomplete-6.11.1.tgz#c733900eee58ac2de817317b9fd1e91b857c4329" + integrity sha512-L5UInv8Ffd6BPw0P3EF7JLYAMeEbclY7+6Q11REt8vhih8RuLreKtPy/xk8wPxs4EQgYqzI7cdgpiYwWlbS/ow== + dependencies: + "@codemirror/language" "^6.0.0" + "@codemirror/state" "^6.0.0" + "@codemirror/view" "^6.17.0" + "@lezer/common" "^1.0.0" + +"@codemirror/commands@^6.0.0", "@codemirror/commands@^6.3.2": + version "6.3.2" + resolved "https://registry.yarnpkg.com/@codemirror/commands/-/commands-6.3.2.tgz#9fa47ccdacbea52fcddc6845089dfbf5be03f126" + integrity sha512-tjoi4MCWDNxgIpoLZ7+tezdS9OEB6pkiDKhfKx9ReJ/XBcs2G2RXIu+/FxXBlWsPTsz6C9q/r4gjzrsxpcnqCQ== + dependencies: + "@codemirror/language" "^6.0.0" + "@codemirror/state" "^6.2.0" + "@codemirror/view" "^6.0.0" + "@lezer/common" "^1.1.0" + +"@codemirror/lang-css@^6.0.0": + version "6.2.1" + resolved "https://registry.yarnpkg.com/@codemirror/lang-css/-/lang-css-6.2.1.tgz#5dc0a43b8e3c31f6af7aabd55ff07fe9aef2a227" + integrity sha512-/UNWDNV5Viwi/1lpr/dIXJNWiwDxpw13I4pTUAsNxZdg6E0mI2kTQb0P2iHczg1Tu+H4EBgJR+hYhKiHKko7qg== + dependencies: + "@codemirror/autocomplete" "^6.0.0" + "@codemirror/language" "^6.0.0" + "@codemirror/state" "^6.0.0" + "@lezer/common" "^1.0.2" + "@lezer/css" "^1.0.0" + +"@codemirror/lang-html@^6.0.0": + version "6.4.7" + resolved "https://registry.yarnpkg.com/@codemirror/lang-html/-/lang-html-6.4.7.tgz#e375e3c9ae898b5aca6e17b5055a3a76c7a8f5ff" + integrity sha512-y9hWSSO41XlcL4uYwWyk0lEgTHcelWWfRuqmvcAmxfCs0HNWZdriWo/EU43S63SxEZpc1Hd50Itw7ktfQvfkUg== + dependencies: + "@codemirror/autocomplete" "^6.0.0" + "@codemirror/lang-css" "^6.0.0" + "@codemirror/lang-javascript" "^6.0.0" + "@codemirror/language" "^6.4.0" + "@codemirror/state" "^6.0.0" + "@codemirror/view" "^6.17.0" + "@lezer/common" "^1.0.0" + "@lezer/css" "^1.1.0" + "@lezer/html" "^1.3.0" + +"@codemirror/lang-javascript@^6.0.0": + version "6.2.1" + resolved "https://registry.yarnpkg.com/@codemirror/lang-javascript/-/lang-javascript-6.2.1.tgz#8068d44365d13cdb044936fb4e3483301c12ef95" + integrity sha512-jlFOXTejVyiQCW3EQwvKH0m99bUYIw40oPmFjSX2VS78yzfe0HELZ+NEo9Yfo1MkGRpGlj3Gnu4rdxV1EnAs5A== + dependencies: + "@codemirror/autocomplete" "^6.0.0" + "@codemirror/language" "^6.6.0" + "@codemirror/lint" "^6.0.0" + "@codemirror/state" "^6.0.0" + "@codemirror/view" "^6.17.0" + "@lezer/common" "^1.0.0" + "@lezer/javascript" "^1.0.0" + +"@codemirror/lang-markdown@^6.2.3": + version "6.2.3" + resolved "https://registry.yarnpkg.com/@codemirror/lang-markdown/-/lang-markdown-6.2.3.tgz#ce572230a872e8eef88bce40213f26e66a7e4497" + integrity sha512-wCewRLWpdefWi7uVkHIDiE8+45Fe4buvMDZkihqEom5uRUQrl76Zb13emjeK3W+8pcRgRfAmwelURBbxNEKCIg== + dependencies: + "@codemirror/autocomplete" "^6.7.1" + "@codemirror/lang-html" "^6.0.0" + "@codemirror/language" "^6.3.0" + "@codemirror/state" "^6.0.0" + "@codemirror/view" "^6.0.0" + "@lezer/common" "^1.0.0" + "@lezer/markdown" "^1.0.0" + +"@codemirror/language@^6.0.0", "@codemirror/language@^6.3.0", "@codemirror/language@^6.4.0", "@codemirror/language@^6.6.0": + version "6.9.3" + resolved "https://registry.yarnpkg.com/@codemirror/language/-/language-6.9.3.tgz#1c127dc43e025d4c9b1ba1b79f4b1ba081d5aeaa" + integrity sha512-qq48pYzoi6ldYWV/52+Z9Ou6QouVI+8YwvxFbUypI33NbjG2UeRHKENRyhwljTTiOqjQ33FjyZj6EREQ9apAOQ== + dependencies: + "@codemirror/state" "^6.0.0" + "@codemirror/view" "^6.0.0" + "@lezer/common" "^1.1.0" + "@lezer/highlight" "^1.0.0" + "@lezer/lr" "^1.0.0" + style-mod "^4.0.0" + +"@codemirror/lint@^6.0.0": + version "6.4.2" + resolved "https://registry.yarnpkg.com/@codemirror/lint/-/lint-6.4.2.tgz#c13be5320bde9707efdc94e8bcd3c698abae0b92" + integrity sha512-wzRkluWb1ptPKdzlsrbwwjYCPLgzU6N88YBAmlZi8WFyuiEduSd05MnJYNogzyc8rPK7pj6m95ptUApc8sHKVA== + dependencies: + "@codemirror/state" "^6.0.0" + "@codemirror/view" "^6.0.0" + crelt "^1.0.5" + +"@codemirror/search@^6.0.0": + version "6.5.5" + resolved "https://registry.yarnpkg.com/@codemirror/search/-/search-6.5.5.tgz#cf97e201da364da2285c2a250167af25bbd2a4a2" + integrity sha512-PIEN3Ke1buPod2EHbJsoQwlbpkz30qGZKcnmH1eihq9+bPQx8gelauUwLYaY4vBOuBAuEhmpDLii4rj/uO0yMA== + dependencies: + "@codemirror/state" "^6.0.0" + "@codemirror/view" "^6.0.0" + crelt "^1.0.5" + +"@codemirror/state@^6.0.0", "@codemirror/state@^6.1.4", "@codemirror/state@^6.2.0", "@codemirror/state@^6.3.3": + version "6.3.3" + resolved "https://registry.yarnpkg.com/@codemirror/state/-/state-6.3.3.tgz#6a647c2fa62b68604187152de497e91aabf43f82" + integrity sha512-0wufKcTw2dEwEaADajjHf6hBy1sh3M6V0e+q4JKIhLuiMSe5td5HOWpUdvKth1fT1M9VYOboajoBHpkCd7PG7A== + +"@codemirror/view@^6.0.0", "@codemirror/view@^6.17.0", "@codemirror/view@^6.22.2": + version "6.22.2" + resolved "https://registry.yarnpkg.com/@codemirror/view/-/view-6.22.2.tgz#79a4b87f5bb3f057cb046295b102eb04fd31a50d" + integrity sha512-cJp64cPXm7QfSBWEXK+76+hsZCGHupUgy8JAbSzMG6Lr0rfK73c1CaWITVW6hZVkOnAFxJTxd0PIuynNbzxYPw== + dependencies: + "@codemirror/state" "^6.1.4" + style-mod "^4.1.0" + w3c-keyname "^2.2.4" + "@discoveryjs/json-ext@0.5.7": version "0.5.7" resolved "https://registry.yarnpkg.com/@discoveryjs/json-ext/-/json-ext-0.5.7.tgz#1d572bfbbe14b7704e0ba0f39b74815b84870d70" @@ -1472,6 +1588,58 @@ resolved "https://registry.yarnpkg.com/@leichtgewicht/ip-codec/-/ip-codec-2.0.4.tgz#b2ac626d6cb9c8718ab459166d4bb405b8ffa78b" integrity sha512-Hcv+nVC0kZnQ3tD9GVu5xSMR4VVYOteQIr/hwFPVEvPdlXqgGEuRjiheChHgdM+JyqdgNcmzZOX/tnl0JOiI7A== +"@lezer/common@^1.0.0", "@lezer/common@^1.0.2", "@lezer/common@^1.1.0": + version "1.1.2" + resolved "https://registry.yarnpkg.com/@lezer/common/-/common-1.1.2.tgz#2fc5cd6788094ffc816b539ab2bc55bafacd2abc" + integrity sha512-V+GqBsga5+cQJMfM0GdnHmg4DgWvLzgMWjbldBg0+jC3k9Gu6nJNZDLJxXEBT1Xj8KhRN4jmbC5CY7SIL++sVw== + +"@lezer/css@^1.0.0", "@lezer/css@^1.1.0": + version "1.1.4" + resolved "https://registry.yarnpkg.com/@lezer/css/-/css-1.1.4.tgz#428923881b102ee55e3bdc1e169639c942e71c24" + integrity sha512-CuUwjidrU7FOBokqASRJc72SmJ9g1PsHXDOWMoKg4md6+2u/Zxzwx5YsYrAFxRDsLrjLlsIyEF1rZHK3gFEJbw== + dependencies: + "@lezer/highlight" "^1.0.0" + "@lezer/lr" "^1.0.0" + +"@lezer/highlight@^1.0.0", "@lezer/highlight@^1.1.3": + version "1.2.0" + resolved "https://registry.yarnpkg.com/@lezer/highlight/-/highlight-1.2.0.tgz#e5898c3644208b4b589084089dceeea2966f7780" + integrity sha512-WrS5Mw51sGrpqjlh3d4/fOwpEV2Hd3YOkp9DBt4k8XZQcoTHZFB7sx030A6OcahF4J1nDQAa3jXlTVVYH50IFA== + dependencies: + "@lezer/common" "^1.0.0" + +"@lezer/html@^1.3.0": + version "1.3.7" + resolved "https://registry.yarnpkg.com/@lezer/html/-/html-1.3.7.tgz#d15fcdf441c8516bfe7411e283c1467a117fe9b1" + integrity sha512-Wo+rZ5UjLP0VqUTyXjzgmTYRW5bvTJUFn4Uw0K3HCQjX2/+f+zRo9GLN5BCAojwHQISPvaQk8BWSv2SSKx/UcQ== + dependencies: + "@lezer/common" "^1.0.0" + "@lezer/highlight" "^1.0.0" + "@lezer/lr" "^1.0.0" + +"@lezer/javascript@^1.0.0": + version "1.4.10" + resolved "https://registry.yarnpkg.com/@lezer/javascript/-/javascript-1.4.10.tgz#4a0db15004479517da8492b654f3e3ead0221732" + integrity sha512-XJu3fZjHVVjJcRS7kHdwBO50irXc4H8rQwgm6SmT3Y8IHWk7WzpaLsaR2vdr/jSk/J4pQhXc1WLul7jVdxC+0Q== + dependencies: + "@lezer/highlight" "^1.1.3" + "@lezer/lr" "^1.3.0" + +"@lezer/lr@^1.0.0", "@lezer/lr@^1.3.0": + version "1.3.14" + resolved "https://registry.yarnpkg.com/@lezer/lr/-/lr-1.3.14.tgz#59d4a3b25698bdac0ef182fa6eadab445fc4f29a" + integrity sha512-z5mY4LStlA3yL7aHT/rqgG614cfcvklS+8oFRFBYrs4YaWLJyKKM4+nN6KopToX0o9Hj6zmH6M5kinOYuy06ug== + dependencies: + "@lezer/common" "^1.0.0" + +"@lezer/markdown@^1.0.0": + version "1.1.2" + resolved "https://registry.yarnpkg.com/@lezer/markdown/-/markdown-1.1.2.tgz#1570740bc18d75da1b3d9b12f44ebcd481630ae8" + integrity sha512-PCla4SVSoxw95QvznrvQxC8c5Gw/sv7sMWLwJMsHsvUl6jsWeU4UneK7gtOq/fY1BaDTQIbzzSlxVuGLTSRScA== + dependencies: + "@lezer/common" "^1.0.0" + "@lezer/highlight" "^1.0.0" + "@nicolo-ribaudo/eslint-scope-5-internals@5.1.1-v1": version "5.1.1-v1" resolved "https://registry.yarnpkg.com/@nicolo-ribaudo/eslint-scope-5-internals/-/eslint-scope-5-internals-5.1.1-v1.tgz#dbf733a965ca47b1973177dc0bb6c889edcfb129" @@ -4190,6 +4358,19 @@ coa@2.0.2: chalk "^2.4.1" q "^1.1.2" +codemirror@^6.0.1: + version "6.0.1" + resolved "https://registry.yarnpkg.com/codemirror/-/codemirror-6.0.1.tgz#62b91142d45904547ee3e0e0e4c1a79158035a29" + integrity sha512-J8j+nZ+CdWmIeFIGXEFbFPtpiYacFMDR8GlHK3IyHQJMCaVRfGx9NT+Hxivv1ckLWPvNdZqndbr/7lVhrf/Svg== + dependencies: + "@codemirror/autocomplete" "^6.0.0" + "@codemirror/commands" "^6.0.0" + "@codemirror/language" "^6.0.0" + "@codemirror/lint" "^6.0.0" + "@codemirror/search" "^6.0.0" + "@codemirror/state" "^6.0.0" + "@codemirror/view" "^6.0.0" + collection-visit@^1.0.0: version "1.0.0" resolved "https://registry.yarnpkg.com/collection-visit/-/collection-visit-1.0.0.tgz#4bc0373c164bc3291b4d368c829cf1a80a59dca0" @@ -4498,6 +4679,11 @@ create-hmac@^1.1.0, create-hmac@^1.1.4, create-hmac@^1.1.7: safe-buffer "^5.0.1" sha.js "^2.4.8" +crelt@^1.0.5: + version "1.0.6" + resolved "https://registry.yarnpkg.com/crelt/-/crelt-1.0.6.tgz#7cc898ea74e190fb6ef9dae57f8f81cf7302df72" + integrity sha512-VQ2MBenTq1fWZUH9DJNGti7kKv6EeAuYr3cLwxUWhIu1baTaXh4Ib5W2CqHVqib4/MqbYGJqiL3Zb8GJZr3l4g== + cross-spawn@^5.0.1: version "5.1.0" resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-5.1.0.tgz#e8bd0efee58fcff6f8f94510a0a554bbfa235449" @@ -10440,6 +10626,11 @@ strip-outer@^1.0.0: dependencies: escape-string-regexp "^1.0.2" +style-mod@^4.0.0, style-mod@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/style-mod/-/style-mod-4.1.0.tgz#a313a14f4ae8bb4d52878c0053c4327fb787ec09" + integrity sha512-Ca5ib8HrFn+f+0n4N4ScTIA9iTOQ7MaGS1ylHcoVqW9J7w2w8PzN6g9gKmTYgGEBH8e120+RCmhpje6jC5uGWA== + stylehacks@^5.1.1: version "5.1.1" resolved "https://registry.yarnpkg.com/stylehacks/-/stylehacks-5.1.1.tgz#7934a34eb59d7152149fa69d6e9e56f2fc34bcc9" @@ -11359,6 +11550,11 @@ vuedraggable@^2.24.3: dependencies: sortablejs "1.10.2" +w3c-keyname@^2.2.4: + version "2.2.8" + resolved "https://registry.yarnpkg.com/w3c-keyname/-/w3c-keyname-2.2.8.tgz#7b17c8c6883d4e8b86ac8aba79d39e880f8869c5" + integrity sha512-dpojBhNsCNN7T82Tm7k26A6G9ML3NkhDsnw9n/eoxSRlVBB4CEtIQ/KTCLI2Fwf3ataSXRhYFkQi3SlnFwPvPQ== + watchpack-chokidar2@^2.0.1: version "2.0.1" resolved "https://registry.yarnpkg.com/watchpack-chokidar2/-/watchpack-chokidar2-2.0.1.tgz#38500072ee6ece66f3769936950ea1771be1c957"