diff --git a/cookbook/tests/api/test_api_meal_plan.py b/cookbook/tests/api/test_api_meal_plan.py index 73dcc40f..3faebf19 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/views/api.py b/cookbook/views/api.py index e0f5cffa..80e5f827 100644 --- a/cookbook/views/api.py +++ b/cookbook/views/api.py @@ -26,7 +26,7 @@ from django.db.models import Case, Count, Exists, OuterRef, ProtectedError, Q, S 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 @@ -70,12 +70,13 @@ from cookbook.helper.recipe_url_import import (clean_dict, get_from_youtube_scra 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 @@ -640,9 +641,9 @@ class FoodViewSet(viewsets.ModelViewSet, TreeMixin): 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.'), qtype='int'), + ] + schema = QueryParamAutoSchema() def get_queryset(self): queryset = self.queryset.filter( @@ -717,6 +725,11 @@ class MealPlanViewSet(viewsets.ModelViewSet): 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.get('meal_type', None) + if meal_type is not None: + queryset = queryset.filter(meal_type__id=meal_type) + return queryset diff --git a/vue/src/utils/openapi/api.ts b/vue/src/utils/openapi/api.ts index 064297c4..c3fa5339 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 @@ -5826,237 +4875,6 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) options: localVarRequestOptions, }; }, - /** - * - * @param {OpenDataCategory} [openDataCategory] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createOpenDataCategory: async (openDataCategory?: OpenDataCategory, options: any = {}): Promise => { - const localVarPath = `/api/open-data-category/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(openDataCategory, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {OpenDataConversion} [openDataConversion] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createOpenDataConversion: async (openDataConversion?: OpenDataConversion, options: any = {}): Promise => { - const localVarPath = `/api/open-data-conversion/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(openDataConversion, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {OpenDataFood} [openDataFood] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createOpenDataFood: async (openDataFood?: OpenDataFood, options: any = {}): Promise => { - const localVarPath = `/api/open-data-food/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(openDataFood, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {OpenDataProperty} [openDataProperty] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createOpenDataProperty: async (openDataProperty?: OpenDataProperty, options: any = {}): Promise => { - const localVarPath = `/api/open-data-property/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(openDataProperty, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {OpenDataStore} [openDataStore] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createOpenDataStore: async (openDataStore?: OpenDataStore, options: any = {}): Promise => { - const localVarPath = `/api/open-data-store/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(openDataStore, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {OpenDataUnit} [openDataUnit] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createOpenDataUnit: async (openDataUnit?: OpenDataUnit, options: any = {}): Promise => { - const localVarPath = `/api/open-data-unit/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(openDataUnit, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {OpenDataVersion} [openDataVersion] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - createOpenDataVersion: async (openDataVersion?: OpenDataVersion, options: any = {}): Promise => { - const localVarPath = `/api/open-data-version/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(openDataVersion, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, /** * * @param {Property} [property] @@ -7171,237 +5989,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 A unique integer value identifying this open data category. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyOpenDataCategory: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('destroyOpenDataCategory', 'id', id) - const localVarPath = `/api/open-data-category/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this open data conversion. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyOpenDataConversion: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('destroyOpenDataConversion', 'id', id) - const localVarPath = `/api/open-data-conversion/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this open data food. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyOpenDataFood: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('destroyOpenDataFood', 'id', id) - const localVarPath = `/api/open-data-food/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this open data property. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyOpenDataProperty: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('destroyOpenDataProperty', 'id', id) - const localVarPath = `/api/open-data-property/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this open data store. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyOpenDataStore: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('destroyOpenDataStore', 'id', id) - const localVarPath = `/api/open-data-store/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this open data unit. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyOpenDataUnit: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('destroyOpenDataUnit', 'id', id) - const localVarPath = `/api/open-data-unit/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this open data version. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - destroyOpenDataVersion: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('destroyOpenDataVersion', 'id', id) - const localVarPath = `/api/open-data-version/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -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. @@ -8590,11 +7177,14 @@ 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 + * 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: async (options: any = {}): Promise => { + 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); @@ -8607,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); @@ -8638,238 +7240,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 {*} [options] Override http request option. - * @throws {RequiredError} - */ - listOpenDataCategorys: async (options: any = {}): Promise => { - const localVarPath = `/api/open-data-category/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listOpenDataConversions: async (options: any = {}): Promise => { - const localVarPath = `/api/open-data-conversion/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listOpenDataFoods: async (options: any = {}): Promise => { - const localVarPath = `/api/open-data-food/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listOpenDataPropertys: async (options: any = {}): Promise => { - const localVarPath = `/api/open-data-property/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listOpenDataStatisticsViewSets: async (options: any = {}): Promise => { - const localVarPath = `/api/open-data-stats/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listOpenDataStores: async (options: any = {}): Promise => { - const localVarPath = `/api/open-data-store/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listOpenDataUnits: async (options: any = {}): Promise => { - const localVarPath = `/api/open-data-unit/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - listOpenDataVersions: async (options: any = {}): Promise => { - const localVarPath = `/api/open-data-version/`; - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -10506,265 +8876,6 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) 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 {*} [options] Override http request option. - * @throws {RequiredError} - */ - partialUpdateOpenDataStore: async (id: string, openDataStore?: OpenDataStore, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('partialUpdateOpenDataStore', '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: '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(openDataStore, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this open data unit. - * @param {OpenDataUnit} [openDataUnit] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - partialUpdateOpenDataUnit: async (id: string, openDataUnit?: OpenDataUnit, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('partialUpdateOpenDataUnit', 'id', id) - const localVarPath = `/api/open-data-unit/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the 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(openDataUnit, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this open data version. - * @param {OpenDataVersion} [openDataVersion] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - partialUpdateOpenDataVersion: async (id: string, openDataVersion?: OpenDataVersion, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('partialUpdateOpenDataVersion', 'id', id) - const localVarPath = `/api/open-data-version/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the 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(openDataVersion, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, /** * * @param {string} id A unique integer value identifying this property. @@ -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}; @@ -12165,237 +10243,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 A unique integer value identifying this open data category. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveOpenDataCategory: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('retrieveOpenDataCategory', 'id', id) - const localVarPath = `/api/open-data-category/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this open data conversion. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveOpenDataConversion: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('retrieveOpenDataConversion', 'id', id) - const localVarPath = `/api/open-data-conversion/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this open data food. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveOpenDataFood: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('retrieveOpenDataFood', 'id', id) - const localVarPath = `/api/open-data-food/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this open data property. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveOpenDataProperty: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('retrieveOpenDataProperty', 'id', id) - const localVarPath = `/api/open-data-property/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this open data store. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveOpenDataStore: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('retrieveOpenDataStore', 'id', id) - const localVarPath = `/api/open-data-store/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this open data unit. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveOpenDataUnit: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('retrieveOpenDataUnit', 'id', id) - const localVarPath = `/api/open-data-unit/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this open data version. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - retrieveOpenDataVersion: async (id: string, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('retrieveOpenDataVersion', 'id', id) - const localVarPath = `/api/open-data-version/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; @@ -13818,265 +11665,6 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration) options: localVarRequestOptions, }; }, - /** - * - * @param {string} id A unique integer value identifying this open data category. - * @param {OpenDataCategory} [openDataCategory] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updateOpenDataCategory: async (id: string, openDataCategory?: OpenDataCategory, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('updateOpenDataCategory', 'id', id) - const localVarPath = `/api/open-data-category/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(openDataCategory, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this open data conversion. - * @param {OpenDataConversion} [openDataConversion] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updateOpenDataConversion: async (id: string, openDataConversion?: OpenDataConversion, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('updateOpenDataConversion', 'id', id) - const localVarPath = `/api/open-data-conversion/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(openDataConversion, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this open data food. - * @param {OpenDataFood} [openDataFood] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updateOpenDataFood: async (id: string, openDataFood?: OpenDataFood, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('updateOpenDataFood', 'id', id) - const localVarPath = `/api/open-data-food/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(openDataFood, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this open data property. - * @param {OpenDataProperty} [openDataProperty] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updateOpenDataProperty: async (id: string, openDataProperty?: OpenDataProperty, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('updateOpenDataProperty', 'id', id) - const localVarPath = `/api/open-data-property/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(openDataProperty, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this open data store. - * @param {OpenDataStore} [openDataStore] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updateOpenDataStore: async (id: string, openDataStore?: OpenDataStore, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('updateOpenDataStore', 'id', id) - const localVarPath = `/api/open-data-store/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(openDataStore, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this open data unit. - * @param {OpenDataUnit} [openDataUnit] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updateOpenDataUnit: async (id: string, openDataUnit?: OpenDataUnit, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('updateOpenDataUnit', 'id', id) - const localVarPath = `/api/open-data-unit/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(openDataUnit, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, - /** - * - * @param {string} id A unique integer value identifying this open data version. - * @param {OpenDataVersion} [openDataVersion] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - updateOpenDataVersion: async (id: string, openDataVersion?: OpenDataVersion, options: any = {}): Promise => { - // verify required parameter 'id' is not null or undefined - assertParamExists('updateOpenDataVersion', 'id', id) - const localVarPath = `/api/open-data-version/{id}/` - .replace(`{${"id"}}`, encodeURIComponent(String(id))); - // use dummy base URL string because the URL constructor only accepts absolute URLs. - const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); - let baseOptions; - if (configuration) { - baseOptions = configuration.baseOptions; - } - - const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options}; - const localVarHeaderParameter = {} as any; - const localVarQueryParameter = {} as any; - - - - localVarHeaderParameter['Content-Type'] = 'application/json'; - - setSearchParams(localVarUrlObj, localVarQueryParameter, options.query); - let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; - localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; - localVarRequestOptions.data = serializeDataIfNeeded(openDataVersion, localVarRequestOptions, configuration) - - return { - url: toPathString(localVarUrlObj), - options: localVarRequestOptions, - }; - }, /** * * @param {string} id A unique integer value identifying this property. @@ -14927,76 +12515,6 @@ export const ApiApiFp = function(configuration?: Configuration) { const localVarAxiosArgs = await localVarAxiosParamCreator.createMealType(mealType, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, - /** - * - * @param {OpenDataCategory} [openDataCategory] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createOpenDataCategory(openDataCategory?: OpenDataCategory, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createOpenDataCategory(openDataCategory, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {OpenDataConversion} [openDataConversion] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createOpenDataConversion(openDataConversion?: OpenDataConversion, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createOpenDataConversion(openDataConversion, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {OpenDataFood} [openDataFood] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createOpenDataFood(openDataFood?: OpenDataFood, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createOpenDataFood(openDataFood, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {OpenDataProperty} [openDataProperty] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createOpenDataProperty(openDataProperty?: OpenDataProperty, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createOpenDataProperty(openDataProperty, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {OpenDataStore} [openDataStore] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createOpenDataStore(openDataStore?: OpenDataStore, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createOpenDataStore(openDataStore, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {OpenDataUnit} [openDataUnit] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createOpenDataUnit(openDataUnit?: OpenDataUnit, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createOpenDataUnit(openDataUnit, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {OpenDataVersion} [openDataVersion] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async createOpenDataVersion(openDataVersion?: OpenDataVersion, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createOpenDataVersion(openDataVersion, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, /** * * @param {Property} [property] @@ -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. @@ -16802,76 +14094,6 @@ export const ApiApiFp = function(configuration?: Configuration) { const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveMealType(id, options); return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); }, - /** - * - * @param {string} id A unique integer value identifying this open data category. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async retrieveOpenDataCategory(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveOpenDataCategory(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this open data conversion. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async retrieveOpenDataConversion(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveOpenDataConversion(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this open data food. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async retrieveOpenDataFood(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveOpenDataFood(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this open data property. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async retrieveOpenDataProperty(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveOpenDataProperty(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this open data store. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async retrieveOpenDataStore(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveOpenDataStore(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this open data unit. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async retrieveOpenDataUnit(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveOpenDataUnit(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, - /** - * - * @param {string} id A unique integer value identifying this open data version. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - async retrieveOpenDataVersion(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveOpenDataVersion(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); - }, /** * * @param {string} id A unique integer value identifying this property. @@ -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. @@ -18961,76 +15919,6 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?: partialUpdateMealType(id: string, mealType?: MealType, options?: any): AxiosPromise { return localVarFp.partialUpdateMealType(id, mealType, options).then((request) => request(axios, basePath)); }, - /** - * - * @param {string} id A unique integer value identifying this open data category. - * @param {OpenDataCategory} [openDataCategory] - * @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)); - }, - /** - * - * @param {string} id A unique integer value identifying this open data conversion. - * @param {OpenDataConversion} [openDataConversion] - * @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)); - }, - /** - * - * @param {string} id A unique integer value identifying this open data food. - * @param {OpenDataFood} [openDataFood] - * @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)); - }, - /** - * - * @param {string} id A unique integer value identifying this open data property. - * @param {OpenDataProperty} [openDataProperty] - * @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)); - }, - /** - * - * @param {string} id A unique integer value identifying this open data store. - * @param {OpenDataStore} [openDataStore] - * @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)); - }, - /** - * - * @param {string} id A unique integer value identifying this open data unit. - * @param {OpenDataUnit} [openDataUnit] - * @param {*} [options] Override http request option. - * @throws {RequiredError} - */ - partialUpdateOpenDataUnit(id: string, openDataUnit?: OpenDataUnit, options?: any): AxiosPromise { - return localVarFp.partialUpdateOpenDataUnit(id, openDataUnit, options).then((request) => request(axios, basePath)); - }, - /** - * - * @param {string} id A unique integer value identifying this open data version. - * @param {OpenDataVersion} [openDataVersion] - * @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)); - }, /** * * @param {string} id A unique integer value identifying this property. @@ -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] @@ -20720,83 +17389,6 @@ export class ApiApi extends BaseAPI { return ApiApiFp(this.configuration).destroyMealType(id, options).then((request) => request(this.axios, this.basePath)); } - /** - * - * @param {string} id A unique integer value identifying this open data category. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public destroyOpenDataCategory(id: string, options?: any) { - return ApiApiFp(this.configuration).destroyOpenDataCategory(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this open data conversion. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public destroyOpenDataConversion(id: string, options?: any) { - return ApiApiFp(this.configuration).destroyOpenDataConversion(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this open data food. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public destroyOpenDataFood(id: string, options?: any) { - return ApiApiFp(this.configuration).destroyOpenDataFood(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this open data property. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public destroyOpenDataProperty(id: string, options?: any) { - return ApiApiFp(this.configuration).destroyOpenDataProperty(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this open data store. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public destroyOpenDataStore(id: string, options?: any) { - return ApiApiFp(this.configuration).destroyOpenDataStore(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this open data unit. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public destroyOpenDataUnit(id: string, options?: any) { - return ApiApiFp(this.configuration).destroyOpenDataUnit(id, options).then((request) => request(this.axios, this.basePath)); - } - - /** - * - * @param {string} id A unique integer value identifying this open data version. - * @param {*} [options] Override http request option. - * @throws {RequiredError} - * @memberof ApiApi - */ - public destroyOpenDataVersion(id: string, options?: any) { - return ApiApiFp(this.configuration).destroyOpenDataVersion(id, options).then((request) => request(this.axios, this.basePath)); - } - /** * * @param {string} id A unique integer value identifying this property. @@ -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.