diff --git a/cookbook/schemas.py b/cookbook/schemas.py
index e465de45..504ea971 100644
--- a/cookbook/schemas.py
+++ b/cookbook/schemas.py
@@ -44,12 +44,12 @@ class TreeSchema(AutoSchema):
"name": 'root', "in": "query", "required": False,
"description": 'Return first level children of {obj} with ID [int]. Integer 0 will return root {obj}s.'.format(
obj=api_name),
- 'schema': {'type': 'int', },
+ 'schema': {'type': 'integer', },
})
parameters.append({
"name": 'tree', "in": "query", "required": False,
"description": 'Return all self and children of {} with ID [int].'.format(api_name),
- 'schema': {'type': 'int', },
+ 'schema': {'type': 'integer', },
})
return parameters
diff --git a/cookbook/views/api.py b/cookbook/views/api.py
index 1173d747..aa6abbac 100644
--- a/cookbook/views/api.py
+++ b/cookbook/views/api.py
@@ -557,11 +557,8 @@ class FoodViewSet(viewsets.ModelViewSet, TreeMixin):
shared_users = c
else:
try:
- shared_users = [x.id for x in list(self.request.user.get_shopping_share())] + [
- self.request.user.id]
- caches['default'].set(
- f'shopping_shared_users_{self.request.space.id}_{self.request.user.id}',
- shared_users, timeout=5 * 60)
+ shared_users = [x.id for x in list(self.request.user.get_shopping_share())] + [self.request.user.id]
+ caches['default'].set(f'shopping_shared_users_{self.request.space.id}_{self.request.user.id}', shared_users, timeout=5 * 60)
# TODO ugly hack that improves API performance significantly, should be done properly
except AttributeError: # Anonymous users (using share links) don't have shared users
pass
@@ -740,7 +737,7 @@ class MealPlanViewSet(viewsets.ModelViewSet):
query_params = [
QueryParam(name='from_date', description=_('Filter meal plans from date (inclusive) in the format of YYYY-MM-DD.'), qtype='string'),
QueryParam(name='to_date', description=_('Filter meal plans to date (inclusive) in the format of YYYY-MM-DD.'), qtype='string'),
- QueryParam(name='meal_type', description=_('Filter meal plans with MealType ID. For multiple repeat parameter.'), qtype='int'),
+ QueryParam(name='meal_type', description=_('Filter meal plans with MealType ID. For multiple repeat parameter.'), qtype='integer'),
]
schema = QueryParamAutoSchema()
@@ -870,7 +867,7 @@ class StepViewSet(viewsets.ModelViewSet):
permission_classes = [CustomIsUser & CustomTokenHasReadWriteScope]
pagination_class = DefaultPagination
query_params = [
- QueryParam(name='recipe', description=_('ID of recipe a step is part of. For multiple repeat parameter.'), qtype='int'),
+ QueryParam(name='recipe', description=_('ID of recipe a step is part of. For multiple repeat parameter.'), qtype='integer'),
QueryParam(name='query', description=_('Query string matched (fuzzy) against object name.'), qtype='string'),
]
schema = QueryParamAutoSchema()
@@ -913,27 +910,27 @@ class RecipeViewSet(viewsets.ModelViewSet):
query_params = [
QueryParam(name='query', description=_('Query string matched (fuzzy) against recipe name. In the future also fulltext search.')),
- QueryParam(name='keywords', description=_('ID of keyword a recipe should have. For multiple repeat parameter. Equivalent to keywords_or'), qtype='int'),
- QueryParam(name='keywords_or', description=_('Keyword IDs, repeat for multiple. Return recipes with any of the keywords'), qtype='int'),
- QueryParam(name='keywords_and', description=_('Keyword IDs, repeat for multiple. Return recipes with all of the keywords.'), qtype='int'),
- QueryParam(name='keywords_or_not', description=_('Keyword IDs, repeat for multiple. Exclude recipes with any of the keywords.'), qtype='int'),
- QueryParam(name='keywords_and_not', description=_('Keyword IDs, repeat for multiple. Exclude recipes with all of the keywords.'), qtype='int'),
- QueryParam(name='foods', description=_('ID of food a recipe should have. For multiple repeat parameter.'), qtype='int'),
- QueryParam(name='foods_or', description=_('Food IDs, repeat for multiple. Return recipes with any of the foods'), qtype='int'),
- QueryParam(name='foods_and', description=_('Food IDs, repeat for multiple. Return recipes with all of the foods.'), qtype='int'),
- QueryParam(name='foods_or_not', description=_('Food IDs, repeat for multiple. Exclude recipes with any of the foods.'), qtype='int'),
- QueryParam(name='foods_and_not', description=_('Food IDs, repeat for multiple. Exclude recipes with all of the foods.'), qtype='int'),
- QueryParam(name='units', description=_('ID of unit a recipe should have.'), qtype='int'),
- QueryParam(name='rating', description=_('Rating a recipe should have or greater. [0 - 5] Negative value filters rating less than.'), qtype='int'),
+ QueryParam(name='keywords', description=_('ID of keyword a recipe should have. For multiple repeat parameter. Equivalent to keywords_or'), qtype='integer'),
+ QueryParam(name='keywords_or', description=_('Keyword IDs, repeat for multiple. Return recipes with any of the keywords'), qtype='integer'),
+ QueryParam(name='keywords_and', description=_('Keyword IDs, repeat for multiple. Return recipes with all of the keywords.'), qtype='integer'),
+ QueryParam(name='keywords_or_not', description=_('Keyword IDs, repeat for multiple. Exclude recipes with any of the keywords.'), qtype='integer'),
+ QueryParam(name='keywords_and_not', description=_('Keyword IDs, repeat for multiple. Exclude recipes with all of the keywords.'), qtype='integer'),
+ QueryParam(name='foods', description=_('ID of food a recipe should have. For multiple repeat parameter.'), qtype='integer'),
+ QueryParam(name='foods_or', description=_('Food IDs, repeat for multiple. Return recipes with any of the foods'), qtype='integer'),
+ QueryParam(name='foods_and', description=_('Food IDs, repeat for multiple. Return recipes with all of the foods.'), qtype='integer'),
+ QueryParam(name='foods_or_not', description=_('Food IDs, repeat for multiple. Exclude recipes with any of the foods.'), qtype='integer'),
+ QueryParam(name='foods_and_not', description=_('Food IDs, repeat for multiple. Exclude recipes with all of the foods.'), qtype='integer'),
+ QueryParam(name='units', description=_('ID of unit a recipe should have.'), qtype='integer'),
+ QueryParam(name='rating', description=_('Rating a recipe should have or greater. [0 - 5] Negative value filters rating less than.'), qtype='integer'),
QueryParam(name='books', description=_('ID of book a recipe should be in. For multiple repeat parameter.')),
- QueryParam(name='books_or', description=_('Book IDs, repeat for multiple. Return recipes with any of the books'), qtype='int'),
- QueryParam(name='books_and', description=_('Book IDs, repeat for multiple. Return recipes with all of the books.'), qtype='int'),
- QueryParam(name='books_or_not', description=_('Book IDs, repeat for multiple. Exclude recipes with any of the books.'), qtype='int'),
- QueryParam(name='books_and_not', description=_('Book IDs, repeat for multiple. Exclude recipes with all of the books.'), qtype='int'),
+ QueryParam(name='books_or', description=_('Book IDs, repeat for multiple. Return recipes with any of the books'), qtype='integer'),
+ QueryParam(name='books_and', description=_('Book IDs, repeat for multiple. Return recipes with all of the books.'), qtype='integer'),
+ QueryParam(name='books_or_not', description=_('Book IDs, repeat for multiple. Exclude recipes with any of the books.'), qtype='integer'),
+ QueryParam(name='books_and_not', description=_('Book IDs, repeat for multiple. Exclude recipes with all of the books.'), qtype='integer'),
QueryParam(name='internal', description=_('If only internal recipes should be returned. [''true''/''false'']')),
QueryParam(name='random', description=_('Returns the results in randomized order. [''true''/''false'']')),
QueryParam(name='new', description=_('Returns new results first in search results. [''true''/''false'']')),
- QueryParam(name='timescooked', description=_('Filter recipes cooked X times or more. Negative values returns cooked less than X times'), qtype='int'),
+ QueryParam(name='timescooked', description=_('Filter recipes cooked X times or more. Negative values returns cooked less than X times'), qtype='integer'),
QueryParam(name='cookedon', description=_('Filter recipes last cooked on or after YYYY-MM-DD. Prepending ''-'' filters on or before date.')),
QueryParam(name='createdon', description=_('Filter recipes created on or after YYYY-MM-DD. Prepending ''-'' filters on or before date.')),
QueryParam(name='updatedon', description=_('Filter recipes updated on or after YYYY-MM-DD. Prepending ''-'' filters on or before date.')),
@@ -1107,7 +1104,7 @@ class UnitConversionViewSet(viewsets.ModelViewSet):
serializer_class = UnitConversionSerializer
permission_classes = [CustomIsUser & CustomTokenHasReadWriteScope]
query_params = [
- QueryParam(name='food_id', description='ID of food to filter for', qtype='int'),
+ QueryParam(name='food_id', description='ID of food to filter for', qtype='integer'),
]
schema = QueryParamAutoSchema()
@@ -1158,10 +1155,10 @@ class ShoppingListEntryViewSet(viewsets.ModelViewSet):
serializer_class = ShoppingListEntrySerializer
permission_classes = [(CustomIsOwner | CustomIsShared) & CustomTokenHasReadWriteScope]
query_params = [
- QueryParam(name='id', description=_('Returns the shopping list entry with a primary key of id. Multiple values allowed.'), qtype='int'),
+ QueryParam(name='id', description=_('Returns the shopping list entry with a primary key of id. Multiple values allowed.'), qtype='integer'),
QueryParam(name='checked', description=_('Filter shopping list entries on checked. [''true'', ''false'', ''both'', ''recent'']
- ''recent'' includes unchecked items and recently completed items.')
),
- QueryParam(name='supermarket', description=_('Returns the shopping list entries sorted by supermarket category order.'), qtype='int'),
+ QueryParam(name='supermarket', description=_('Returns the shopping list entries sorted by supermarket category order.'), qtype='integer'),
]
schema = QueryParamAutoSchema()
diff --git a/vue/src/utils/openapi/api.ts b/vue/src/utils/openapi/api.ts
index 2c816e12..45749f4d 100644
--- a/vue/src/utils/openapi/api.ts
+++ b/vue/src/utils/openapi/api.ts
@@ -644,7 +644,7 @@ export interface FoodProperties {
* @type {string}
* @memberof FoodProperties
*/
- property_amount: string;
+ property_amount: string | null;
/**
*
* @type {FoodPropertyType}
@@ -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
@@ -3059,7 +2108,7 @@ export interface Property {
* @type {string}
* @memberof Property
*/
- property_amount: string;
+ property_amount: string | null;
/**
*
* @type {FoodPropertyType}
@@ -3309,6 +2358,12 @@ export interface RecipeBook {
* @memberof RecipeBook
*/
filter?: RecipeBookFilter | null;
+ /**
+ *
+ * @type {number}
+ * @memberof RecipeBook
+ */
+ order?: number;
}
/**
*
@@ -5998,237 +5053,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]
@@ -7343,237 +6167,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};
@@ -8825,238 +7418,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};
@@ -9172,13 +7533,6 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
const localVarQueryParameter = {} as any;
- if (options.order_field !== undefined) {
- localVarQueryParameter['order_field'] = options.order_field;
- }
-
- if (options.order_direction!== undefined) {
- localVarQueryParameter['order_direction'] = options.order_direction;
- }
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
@@ -10270,40 +8624,6 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
options: localVarRequestOptions,
};
},
- /**
- *
- * @param {string} id A unique integer value identifying the book.
- * @param {RecipeBook} [recipeBook]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- partialUpdateManualOrderBooks: async (id: string, recipeBook?: RecipeBook , options: any = {}): Promise => {
- const localVarPath = `/api/recipe-book/{id}/`
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
-
- const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
-
-
-
- localVarHeaderParameter['Content-Type'] = 'application/json';
-
- setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
- localVarRequestOptions.data = serializeDataIfNeeded(recipeBook , localVarRequestOptions, configuration)
- return {
- url: toPathString(localVarUrlObj),
- options: localVarRequestOptions,
- };
- },
/**
*
* @param {string} id A unique integer value identifying this access token.
@@ -10785,265 +9105,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.
@@ -12114,39 +10175,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};
@@ -12444,237 +10472,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};
@@ -14097,265 +11894,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.
@@ -15216,76 +12754,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]
@@ -15621,76 +13089,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.
@@ -16060,78 +13458,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.
@@ -16471,17 +13797,6 @@ export const ApiApiFp = function(configuration?: Configuration) {
const localVarAxiosArgs = await localVarAxiosParamCreator.moveKeyword(id, parent, keyword, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
- /**
- *
- * @param {string} id A unique integer value identifying this supermarket category relation.
- * @param {RecipeBook} [recipeBook]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async partialUpdateManualOrderBooks(id: string, recipeBook?: RecipeBook, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
- const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateManualOrderBooks(id, recipeBook, options);
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
- },
/**
*
* @param {string} id A unique integer value identifying this access token.
@@ -16625,83 +13940,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.
@@ -17019,16 +14257,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.
@@ -17119,76 +14347,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.
@@ -17614,83 +14772,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.
@@ -18039,69 +15120,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]
@@ -18404,69 +15422,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.
@@ -18800,70 +15755,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.
@@ -19173,16 +16064,6 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?:
moveKeyword(id: string, parent: string, keyword?: Keyword, options?: any): AxiosPromise {
return localVarFp.moveKeyword(id, parent, keyword, options).then((request) => request(axios, basePath));
},
- /**
- *
- * @param {string} id A unique integer value identifying this supermarket category relation.
- * @param {RecipeBook} [recipeBook]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- partialUpdateManualOrderBooks(id: string, recipeBook?: RecipeBook, options?: any): AxiosPromise {
- return localVarFp.partialUpdateManualOrderBooks(id, recipeBook, options).then((request) => request(axios, basePath));
- },
/**
*
* @param {string} id A unique integer value identifying this access token.
@@ -19313,76 +16194,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.
@@ -19671,15 +16482,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.
@@ -19761,69 +16563,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.
@@ -20208,76 +16947,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.
@@ -20638,83 +17307,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]
@@ -20769,6 +17361,7 @@ export class ApiApi extends BaseAPI {
public createRecipeBookEntry(recipeBookEntry?: RecipeBookEntry, options?: any) {
return ApiApiFp(this.configuration).createRecipeBookEntry(recipeBookEntry, options).then((request) => request(this.axios, this.basePath));
}
+
/**
* function to retrieve a recipe from a given url or source string :param request: standard request with additional post parameters - url: url to use for importing recipe - data: if no url is given recipe is imported from provided source data - (optional) bookmarklet: id of bookmarklet import to use, overrides URL and data attributes :return: JsonResponse containing the parsed json and images
* @param {any} [body]
@@ -21082,83 +17675,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.
@@ -21564,86 +18080,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.
@@ -22012,16 +18448,7 @@ export class ApiApi extends BaseAPI {
public moveKeyword(id: string, parent: string, keyword?: Keyword, options?: any) {
return ApiApiFp(this.configuration).moveKeyword(id, parent, keyword, options).then((request) => request(this.axios, this.basePath));
}
- /**
- *
- * @param {string} id A unique integer value identifying this supermarket category relation.
- * @param {RecipeBook} [recipeBook]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- public partialUpdateManualOrderBooks(id: string, recipeBook?: RecipeBook, options?: any) {
- return ApiApiFp(this.configuration).partialUpdateManualOrderBooks(id, recipeBook, options).then((request) => request(this.axios, this.basePath));
- }
+
/**
*
* @param {string} id A unique integer value identifying this access token.
@@ -22178,90 +18605,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.
@@ -22608,17 +18951,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.
@@ -22718,83 +19050,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.
@@ -23261,90 +19516,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.