diff --git a/cookbook/admin.py b/cookbook/admin.py
index 9578e70ee..43d21019b 100644
--- a/cookbook/admin.py
+++ b/cookbook/admin.py
@@ -15,7 +15,7 @@ from .models import (BookmarkletImport, Comment, CookLog, Food, FoodInheritField
Recipe, RecipeBook, RecipeBookEntry, RecipeImport, SearchPreference, ShareLink,
ShoppingList, ShoppingListEntry, ShoppingListRecipe, Space, Step, Storage,
Supermarket, SupermarketCategory, SupermarketCategoryRelation, Sync, SyncLog,
- TelegramBot, Unit, UserFile, UserPreference, ViewLog, Automation, UserSpace, UnitConversion, PropertyType, FoodProperty, RecipeProperty)
+ TelegramBot, Unit, UserFile, UserPreference, ViewLog, Automation, UserSpace, UnitConversion, PropertyType, Property)
class CustomUserAdmin(UserAdmin):
@@ -334,18 +334,11 @@ class PropertyTypeAdmin(admin.ModelAdmin):
admin.site.register(PropertyType, PropertyTypeAdmin)
-class FoodPropertyAdmin(admin.ModelAdmin):
- list_display = ('id', 'food_amount', 'food_unit', 'food', 'property_amount', 'property_type')
+class PropertyAdmin(admin.ModelAdmin):
+ list_display = ('property_amount', 'property_type')
-admin.site.register(FoodProperty, FoodPropertyAdmin)
-
-
-class RecipePropertyAdmin(admin.ModelAdmin):
- list_display = ('id', 'property_type', 'property_amount',)
-
-
-admin.site.register(RecipeProperty, RecipePropertyAdmin)
+admin.site.register(Property, PropertyAdmin)
class NutritionInformationAdmin(admin.ModelAdmin):
diff --git a/cookbook/helper/open_data_importer.py b/cookbook/helper/open_data_importer.py
index a8f6cfa53..7b10ab945 100644
--- a/cookbook/helper/open_data_importer.py
+++ b/cookbook/helper/open_data_importer.py
@@ -1,6 +1,6 @@
from django.db.models import Q
-from cookbook.models import Unit, SupermarketCategory, FoodProperty, PropertyType, Supermarket, SupermarketCategoryRelation, Food, Automation, UnitConversion
+from cookbook.models import Unit, SupermarketCategory, Property, PropertyType, Supermarket, SupermarketCategoryRelation, Food, Automation, UnitConversion
class OpenDataImporter:
@@ -169,10 +169,7 @@ class OpenDataImporter:
alias_list = []
for k in list(self.data[datatype].keys()):
for fp in self.data[datatype][k]['properties']['type_values']:
- food_property_list.append(FoodProperty(
- food_id=self.slug_id_cache['food'][k],
- food_amount=self.data[datatype][k]['properties']['food_amount'],
- food_unit_id=self.slug_id_cache['unit'][self.data[datatype][k]['properties']['food_unit']],
+ food_property_list.append(Property(
property_type_id=self.slug_id_cache['property'][fp['property_type']],
property_amount=fp['property_value'],
space=self.request.space,
@@ -186,7 +183,7 @@ class OpenDataImporter:
created_by=self.request.user,
))
- FoodProperty.objects.bulk_create(food_property_list, ignore_conflicts=True, unique_fields=('space', 'food', 'property_type',))
+ Property.objects.bulk_create(food_property_list, ignore_conflicts=True, unique_fields=('space', 'food', 'property_type',))
Automation.objects.bulk_create(alias_list, ignore_conflicts=True, unique_fields=('space', 'param_1', 'param_2',))
return insert_list + update_list
diff --git a/cookbook/helper/property_helper.py b/cookbook/helper/property_helper.py
index 20ec463ae..d34a306bf 100644
--- a/cookbook/helper/property_helper.py
+++ b/cookbook/helper/property_helper.py
@@ -2,7 +2,7 @@ from django.core.cache import caches
from cookbook.helper.cache_helper import CacheHelper
from cookbook.helper.unit_conversion_helper import UnitConversionHelper
-from cookbook.models import PropertyType, Unit, Food, FoodProperty, Recipe, Step
+from cookbook.models import PropertyType, Unit, Food, Property, Recipe, Step
class FoodPropertyHelper:
@@ -42,13 +42,13 @@ class FoodPropertyHelper:
conversions = uch.get_conversions(i)
for pt in property_types:
found_property = False
- for p in i.food.foodproperty_set.all():
+ for p in i.food.properties.all():
if p.property_type == pt:
for c in conversions:
- if c.unit == p.food_unit:
+ if c.unit == i.food.properties_food_unit:
found_property = True
- computed_properties[pt.id]['total_value'] += (c.amount / p.food_amount) * p.property_amount
- computed_properties[pt.id]['food_values'] = self.add_or_create(computed_properties[p.property_type.id]['food_values'], c.food.id, (c.amount / p.food_amount) * p.property_amount, c.food)
+ computed_properties[pt.id]['total_value'] += (c.amount / i.food.properties_food_amount) * p.property_amount
+ computed_properties[pt.id]['food_values'] = self.add_or_create(computed_properties[p.property_type.id]['food_values'], c.food.id, (c.amount / i.food.properties_food_amount) * p.property_amount, c.food)
if not found_property:
computed_properties[pt.id]['missing_value'] = True
computed_properties[pt.id]['food_values'][i.food.id] = {'id': i.food.id, 'food': i.food.name, 'value': 0}
diff --git a/cookbook/migrations/0189_foodproperty_propertytype_recipeproperty_and_more.py b/cookbook/migrations/0189_property_propertytype_unitconversion_food_fdc_id_and_more.py
similarity index 81%
rename from cookbook/migrations/0189_foodproperty_propertytype_recipeproperty_and_more.py
rename to cookbook/migrations/0189_property_propertytype_unitconversion_food_fdc_id_and_more.py
index 4cf22a46d..710b5b08c 100644
--- a/cookbook/migrations/0189_foodproperty_propertytype_recipeproperty_and_more.py
+++ b/cookbook/migrations/0189_property_propertytype_unitconversion_food_fdc_id_and_more.py
@@ -1,4 +1,4 @@
-# Generated by Django 4.1.7 on 2023-05-06 19:16
+# Generated by Django 4.1.9 on 2023-05-25 13:05
import cookbook.models
from django.conf import settings
@@ -16,10 +16,9 @@ class Migration(migrations.Migration):
operations = [
migrations.CreateModel(
- name='FoodProperty',
+ name='Property',
fields=[
('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
- ('food_amount', models.DecimalField(decimal_places=2, default=0, max_digits=32)),
('property_amount', models.DecimalField(decimal_places=4, default=0, max_digits=32)),
],
bases=(models.Model, cookbook.models.PermissionModelMixin),
@@ -37,14 +36,6 @@ class Migration(migrations.Migration):
],
bases=(models.Model, cookbook.models.PermissionModelMixin),
),
- migrations.CreateModel(
- name='RecipeProperty',
- fields=[
- ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
- ('property_amount', models.DecimalField(decimal_places=4, default=0, max_digits=32)),
- ],
- bases=(models.Model, cookbook.models.PermissionModelMixin),
- ),
migrations.CreateModel(
name='UnitConversion',
fields=[
@@ -77,6 +68,16 @@ class Migration(migrations.Migration):
name='preferred_unit',
field=models.ForeignKey(blank=True, default=None, null=True, on_delete=django.db.models.deletion.SET_NULL, related_name='preferred_unit', to='cookbook.unit'),
),
+ migrations.AddField(
+ model_name='food',
+ name='properties_food_amount',
+ field=models.IntegerField(blank=True, default=100),
+ ),
+ migrations.AddField(
+ model_name='food',
+ name='properties_food_unit',
+ field=models.ForeignKey(blank=True, null=True, on_delete=django.db.models.deletion.PROTECT, to='cookbook.unit'),
+ ),
migrations.AddField(
model_name='supermarket',
name='open_data_slug',
@@ -126,45 +127,30 @@ class Migration(migrations.Migration):
name='space',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='cookbook.space'),
),
- migrations.AddField(
- model_name='recipeproperty',
- name='property_type',
- field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='cookbook.propertytype'),
- ),
- migrations.AddField(
- model_name='recipeproperty',
- name='space',
- field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='cookbook.space'),
- ),
migrations.AddField(
model_name='propertytype',
name='space',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='cookbook.space'),
),
migrations.AddField(
- model_name='foodproperty',
- name='food',
- field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='cookbook.food'),
- ),
- migrations.AddField(
- model_name='foodproperty',
- name='food_unit',
- field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='cookbook.unit'),
- ),
- migrations.AddField(
- model_name='foodproperty',
+ model_name='property',
name='property_type',
field=models.ForeignKey(on_delete=django.db.models.deletion.PROTECT, to='cookbook.propertytype'),
),
migrations.AddField(
- model_name='foodproperty',
+ model_name='property',
name='space',
field=models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='cookbook.space'),
),
+ migrations.AddField(
+ model_name='food',
+ name='properties',
+ field=models.ManyToManyField(blank=True, to='cookbook.property'),
+ ),
migrations.AddField(
model_name='recipe',
name='properties',
- field=models.ManyToManyField(blank=True, to='cookbook.recipeproperty'),
+ field=models.ManyToManyField(blank=True, to='cookbook.property'),
),
migrations.AddConstraint(
model_name='unitconversion',
@@ -174,8 +160,4 @@ class Migration(migrations.Migration):
model_name='propertytype',
constraint=models.UniqueConstraint(fields=('space', 'name'), name='property_type_unique_name_per_space'),
),
- migrations.AddConstraint(
- model_name='foodproperty',
- constraint=models.UniqueConstraint(fields=('food', 'property_type', 'space'), name='food_property_unique_per_space'),
- ),
]
diff --git a/cookbook/migrations/0190_auto_20230506_2239.py b/cookbook/migrations/0190_auto_20230525_1506.py
similarity index 90%
rename from cookbook/migrations/0190_auto_20230506_2239.py
rename to cookbook/migrations/0190_auto_20230525_1506.py
index c0b334558..af34cdd6c 100644
--- a/cookbook/migrations/0190_auto_20230506_2239.py
+++ b/cookbook/migrations/0190_auto_20230525_1506.py
@@ -1,15 +1,14 @@
-# Generated by Django 4.1.7 on 2023-05-06 20:39
+# Generated by Django 4.1.9 on 2023-05-25 13:06
from django.db import migrations
from django_scopes import scopes_disabled
from gettext import gettext as _
-
def migrate_old_nutrition_data(apps, schema_editor):
print('Transforming nutrition information, this might take a while on large databases')
with scopes_disabled():
PropertyType = apps.get_model('cookbook', 'PropertyType')
- RecipeProperty = apps.get_model('cookbook', 'RecipeProperty')
+ RecipeProperty = apps.get_model('cookbook', 'Property')
Recipe = apps.get_model('cookbook', 'Recipe')
Space = apps.get_model('cookbook', 'Space')
@@ -28,11 +27,10 @@ def migrate_old_nutrition_data(apps, schema_editor):
r.properties.add(rp_fat, rp_carbohydrates, rp_proteins, rp_calories)
r.nutrition = None
r.save()
-
-
class Migration(migrations.Migration):
+
dependencies = [
- ('cookbook', '0189_foodproperty_propertytype_recipeproperty_and_more'),
+ ('cookbook', '0189_property_propertytype_unitconversion_food_fdc_id_and_more'),
]
operations = [
diff --git a/cookbook/models.py b/cookbook/models.py
index a84b943ce..06a93868b 100644
--- a/cookbook/models.py
+++ b/cookbook/models.py
@@ -579,6 +579,10 @@ class Food(ExportModelOperationsMixin('food'), TreeModel, PermissionModelMixin):
substitute_children = models.BooleanField(default=False)
child_inherit_fields = models.ManyToManyField(FoodInheritField, blank=True, related_name='child_inherit')
+ properties = models.ManyToManyField("Property", blank=True)
+ properties_food_amount = models.IntegerField(default=100, blank=True)
+ properties_food_unit = models.ForeignKey(Unit, on_delete=models.PROTECT, blank=True, null=True)
+
preferred_unit = models.ForeignKey(Unit, on_delete=models.SET_NULL, null=True, blank=True, default=None, related_name='preferred_unit')
preferred_shopping_unit = models.ForeignKey(Unit, on_delete=models.SET_NULL, null=True, blank=True, default=None, related_name='preferred_shopping_unit')
fdc_id = models.CharField(max_length=128, null=True, blank=True, default=None)
@@ -787,26 +791,7 @@ class PropertyType(models.Model, PermissionModelMixin):
]
-class FoodProperty(models.Model, PermissionModelMixin):
- food_amount = models.DecimalField(default=0, decimal_places=2, max_digits=32)
- food_unit = models.ForeignKey(Unit, on_delete=models.CASCADE)
- food = models.ForeignKey(Food, on_delete=models.CASCADE)
- property_amount = models.DecimalField(default=0, decimal_places=4, max_digits=32)
- property_type = models.ForeignKey(PropertyType, on_delete=models.PROTECT)
-
- space = models.ForeignKey(Space, on_delete=models.CASCADE)
- objects = ScopedManager(space='space')
-
- def __str__(self):
- return f'{self.food_amount} {self.food_unit} {self.food}: {self.property_amount} {self.property_type.unit} {self.property_type.name}'
-
- class Meta:
- constraints = [
- models.UniqueConstraint(fields=['food', 'property_type', 'space'], name='food_property_unique_per_space')
- ]
-
-
-class RecipeProperty(models.Model, PermissionModelMixin):
+class Property(models.Model, PermissionModelMixin):
property_amount = models.DecimalField(default=0, decimal_places=4, max_digits=32)
property_type = models.ForeignKey(PropertyType, on_delete=models.PROTECT)
@@ -855,7 +840,7 @@ class Recipe(ExportModelOperationsMixin('recipe'), models.Model, PermissionModel
waiting_time = models.IntegerField(default=0)
internal = models.BooleanField(default=False)
nutrition = models.ForeignKey(NutritionInformation, blank=True, null=True, on_delete=models.CASCADE)
- properties = models.ManyToManyField(RecipeProperty, blank=True)
+ properties = models.ManyToManyField(Property, blank=True)
show_ingredient_overview = models.BooleanField(default=True)
private = models.BooleanField(default=False)
shared = models.ManyToManyField(User, blank=True, related_name='recipe_shared_with')
diff --git a/cookbook/serializer.py b/cookbook/serializer.py
index 15dc9e140..af871288a 100644
--- a/cookbook/serializer.py
+++ b/cookbook/serializer.py
@@ -32,8 +32,8 @@ from cookbook.models import (Automation, BookmarkletImport, Comment, CookLog, Cu
RecipeBookEntry, RecipeImport, ShareLink, ShoppingList,
ShoppingListEntry, ShoppingListRecipe, Space, Step, Storage,
Supermarket, SupermarketCategory, SupermarketCategoryRelation, Sync,
- SyncLog, Unit, UserFile, UserPreference, UserSpace, ViewLog, UnitConversion, FoodProperty,
- PropertyType, RecipeProperty)
+ SyncLog, Unit, UserFile, UserPreference, UserSpace, ViewLog, UnitConversion, Property,
+ PropertyType, Property)
from cookbook.templatetags.custom_tags import markdown
from recipes.settings import AWS_ENABLED, MEDIA_URL
@@ -502,6 +502,36 @@ class SupermarketSerializer(UniqueFieldsMixin, SpacedModelSerializer):
fields = ('id', 'name', 'description', 'category_to_supermarket', 'open_data_slug')
+class PropertyTypeSerializer(serializers.ModelSerializer):
+ def create(self, validated_data):
+ validated_data['space'] = self.context['request'].space
+
+ if property_type := PropertyType.objects.filter(Q(name=validated_data['name'])).first():
+ return property_type
+
+ return super().create(validated_data)
+
+ class Meta:
+ model = PropertyType
+ fields = ('id', 'name', 'icon', 'unit', 'description', 'open_data_slug')
+
+
+class PropertySerializer(UniqueFieldsMixin, WritableNestedModelSerializer):
+ property_type = PropertyTypeSerializer()
+ property_amount = CustomDecimalField()
+
+ # TODO prevent updates
+
+ def create(self, validated_data):
+ validated_data['space'] = self.context['request'].space
+ return super().create(validated_data)
+
+ class Meta:
+ model = Property
+ fields = ('id', 'property_amount', 'property_type')
+ read_only_fields = ('id',)
+
+
class RecipeSimpleSerializer(WritableNestedModelSerializer):
url = serializers.SerializerMethodField('get_url')
@@ -538,6 +568,9 @@ class FoodSerializer(UniqueFieldsMixin, WritableNestedModelSerializer, ExtendedR
substitute_onhand = serializers.SerializerMethodField('get_substitute_onhand')
substitute = FoodSimpleSerializer(many=True, allow_null=True, required=False)
+ properties = PropertySerializer(many=True, allow_null=True, required=False)
+ properties_food_unit = UnitSerializer(allow_null=True, required=False)
+
recipe_filter = 'steps__ingredients__food'
images = ['recipe__image']
@@ -569,7 +602,7 @@ class FoodSerializer(UniqueFieldsMixin, WritableNestedModelSerializer, ExtendedR
# return ShoppingListEntry.objects.filter(space=obj.space, food=obj, checked=False).count() > 0
def create(self, validated_data):
- name = validated_data.pop('name').strip()
+ name = validated_data['name'].strip()
if plural_name := validated_data.pop('plural_name', None):
plural_name = plural_name.strip()
@@ -629,7 +662,9 @@ class FoodSerializer(UniqueFieldsMixin, WritableNestedModelSerializer, ExtendedR
class Meta:
model = Food
fields = (
- 'id', 'name', 'plural_name', 'description', 'shopping', 'recipe', 'food_onhand', 'supermarket_category',
+ 'id', 'name', 'plural_name', 'description', 'shopping', 'recipe',
+ 'properties', 'properties_food_amount', 'properties_food_unit',
+ 'food_onhand', 'supermarket_category',
'image', 'parent', 'numchild', 'numrecipe', 'inherit_fields', 'full_name', 'ignore_shopping',
'substitute', 'substitute_siblings', 'substitute_children', 'substitute_onhand', 'child_inherit_fields', 'open_data_slug',
)
@@ -751,53 +786,6 @@ class UnitConversionSerializer(WritableNestedModelSerializer):
fields = ('id', 'name', 'base_amount', 'base_unit', 'converted_amount', 'converted_unit', 'food', 'open_data_slug')
-class PropertyTypeSerializer(serializers.ModelSerializer):
- def create(self, validated_data):
- validated_data['space'] = self.context['request'].space
-
- if property_type := PropertyType.objects.filter(Q(name=validated_data['name']) ).first():
- return property_type
-
- return super().create(validated_data)
-
- class Meta:
- model = PropertyType
- fields = ('id', 'name', 'icon', 'unit', 'description', 'open_data_slug')
-
-
-class FoodPropertySerializer(UniqueFieldsMixin, WritableNestedModelSerializer):
- property_type = PropertyTypeSerializer()
- food = FoodSimpleSerializer()
- food_unit = UnitSerializer()
- food_amount = CustomDecimalField()
- property_amount = CustomDecimalField()
-
- # TODO prevent updates
-
- def create(self, validated_data):
- validated_data['space'] = self.context['request'].space
- return super().create(validated_data)
-
- class Meta:
- model = FoodProperty
- fields = ('id', 'food_amount', 'food_unit', 'food', 'property_amount', 'property_type')
- read_only_fields = ('id',)
-
-
-class RecipePropertySerializer(UniqueFieldsMixin, WritableNestedModelSerializer):
- property_type = PropertyTypeSerializer()
- property_amount = CustomDecimalField()
-
- def create(self, validated_data):
- validated_data['space'] = self.context['request'].space
- return super().create(validated_data)
-
- class Meta:
- model = RecipeProperty
- fields = ('id', 'property_type', 'property_amount',)
- read_only_fields = ('id',)
-
-
class NutritionInformationSerializer(serializers.ModelSerializer):
carbohydrates = CustomDecimalField()
fats = CustomDecimalField()
@@ -848,7 +836,7 @@ class RecipeOverviewSerializer(RecipeBaseSerializer):
class RecipeSerializer(RecipeBaseSerializer):
nutrition = NutritionInformationSerializer(allow_null=True, required=False)
- properties = RecipePropertySerializer(many=True, required=False)
+ properties = PropertySerializer(many=True, required=False)
steps = StepSerializer(many=True)
keywords = KeywordSerializer(many=True)
shared = UserSerializer(many=True, required=False)
diff --git a/cookbook/tests/other/test_food_property.py b/cookbook/tests/other/test_food_property.py
index 4b2653dd3..aa3bd1145 100644
--- a/cookbook/tests/other/test_food_property.py
+++ b/cookbook/tests/other/test_food_property.py
@@ -5,7 +5,7 @@ from decimal import Decimal
from cookbook.helper.cache_helper import CacheHelper
from cookbook.helper.property_helper import FoodPropertyHelper
-from cookbook.models import Unit, Food, PropertyType, FoodProperty, Recipe, Step, UnitConversion
+from cookbook.models import Unit, Food, PropertyType, Property, Recipe, Step, UnitConversion, Property
def test_food_property(space_1, space_2, u1_s1):
@@ -17,21 +17,23 @@ def test_food_property(space_1, space_2, u1_s1):
unit_floz2 = Unit.objects.create(name='fl. oz 2', base_unit='fluid_ounce', space=space_1)
unit_fantasy = Unit.objects.create(name='Fantasy Unit', base_unit='', space=space_1)
- food_1 = Food.objects.create(name='food_1', space=space_1)
- food_2 = Food.objects.create(name='food_2', space=space_1)
+ food_1 = Food.objects.create(name='food_1', space=space_1, properties_food_unit=unit_gram, properties_food_amount=100)
+ food_2 = Food.objects.create(name='food_2', space=space_1, properties_food_unit=unit_gram, properties_food_amount=100)
property_fat = PropertyType.objects.create(name='property_fat', space=space_1)
property_calories = PropertyType.objects.create(name='property_calories', space=space_1)
property_nuts = PropertyType.objects.create(name='property_nuts', space=space_1)
property_price = PropertyType.objects.create(name='property_price', space=space_1)
- food_1_property_fat = FoodProperty.objects.create(food_amount=100, food_unit=unit_gram, food=food_1, property_amount=50, property_type=property_fat, space=space_1)
- food_1_property_nuts = FoodProperty.objects.create(food_amount=100, food_unit=unit_gram, food=food_1, property_amount=1, property_type=property_nuts, space=space_1)
- food_1_property_price = FoodProperty.objects.create(food_amount=100, food_unit=unit_gram, food=food_1, property_amount=7.50, property_type=property_price, space=space_1)
+ food_1_property_fat = Property.objects.create(property_amount=50, property_type=property_fat, space=space_1)
+ food_1_property_nuts = Property.objects.create(property_amount=1, property_type=property_nuts, space=space_1)
+ food_1_property_price = Property.objects.create(property_amount=7.50, property_type=property_price, space=space_1)
+ food_1.properties.add(food_1_property_fat, food_1_property_nuts, food_1_property_price)
- food_2_property_fat = FoodProperty.objects.create(food_amount=100, food_unit=unit_gram, food=food_2, property_amount=25, property_type=property_fat, space=space_1)
- food_2_property_nuts = FoodProperty.objects.create(food_amount=100, food_unit=unit_gram, food=food_2, property_amount=0, property_type=property_nuts, space=space_1)
- food_2_property_price = FoodProperty.objects.create(food_amount=100, food_unit=unit_gram, food=food_2, property_amount=2.50, property_type=property_price, space=space_1)
+ food_2_property_fat = Property.objects.create(property_amount=25, property_type=property_fat, space=space_1)
+ food_2_property_nuts = Property.objects.create(property_amount=0, property_type=property_nuts, space=space_1)
+ food_2_property_price = Property.objects.create(property_amount=2.50, property_type=property_price, space=space_1)
+ food_2.properties.add(food_2_property_fat, food_2_property_nuts, food_2_property_price)
print('\n----------- TEST PROPERTY - PROPERTY CALCULATION MULTI STEP IDENTICAL UNIT ---------------')
recipe_1 = Recipe.objects.create(name='recipe_1', waiting_time=0, working_time=0, space=space_1, created_by=auth.get_user(u1_s1))
diff --git a/cookbook/urls.py b/cookbook/urls.py
index 976a95e0c..123a5083b 100644
--- a/cookbook/urls.py
+++ b/cookbook/urls.py
@@ -42,7 +42,7 @@ router.register(r'recipe-book', api.RecipeBookViewSet)
router.register(r'recipe-book-entry', api.RecipeBookEntryViewSet)
router.register(r'unit-conversion', api.UnitConversionViewSet)
router.register(r'food-property-type', api.PropertyTypeViewSet)
-router.register(r'food-property', api.FoodPropertyViewSet)
+router.register(r'food-property', api.PropertyViewSet)
router.register(r'shopping-list', api.ShoppingListViewSet)
router.register(r'shopping-list-entry', api.ShoppingListEntryViewSet)
router.register(r'shopping-list-recipe', api.ShoppingListRecipeViewSet)
diff --git a/cookbook/views/api.py b/cookbook/views/api.py
index d87a8ade4..027e76935 100644
--- a/cookbook/views/api.py
+++ b/cookbook/views/api.py
@@ -70,7 +70,7 @@ from cookbook.models import (Automation, BookmarkletImport, CookLog, CustomFilte
MealType, Recipe, RecipeBook, RecipeBookEntry, ShareLink, ShoppingList,
ShoppingListEntry, ShoppingListRecipe, Space, Step, Storage,
Supermarket, SupermarketCategory, SupermarketCategoryRelation, Sync,
- SyncLog, Unit, UserFile, UserPreference, UserSpace, ViewLog, UnitConversion, PropertyType, FoodProperty)
+ SyncLog, Unit, UserFile, UserPreference, UserSpace, ViewLog, UnitConversion, PropertyType, Property)
from cookbook.provider.dropbox import Dropbox
from cookbook.provider.local import Local
from cookbook.provider.nextcloud import Nextcloud
@@ -94,7 +94,7 @@ from cookbook.serializer import (AutomationSerializer, BookmarkletImportListSeri
SyncLogSerializer, SyncSerializer, UnitSerializer,
UserFileSerializer, UserSerializer, UserPreferenceSerializer,
UserSpaceSerializer, ViewLogSerializer, AccessTokenSerializer, FoodSimpleSerializer,
- RecipeExportSerializer, UnitConversionSerializer, PropertyTypeSerializer, FoodPropertySerializer)
+ RecipeExportSerializer, UnitConversionSerializer, PropertyTypeSerializer, PropertySerializer)
from cookbook.views.import_export import get_integration
from recipes import settings
@@ -251,7 +251,7 @@ class MergeMixin(ViewSetMixin):
try:
if isinstance(source, Food):
- FoodProperty.objects.filter(food=source).delete()
+ source.properties.through.objects.all().delete()
for link in [field for field in source._meta.get_fields() if issubclass(type(field), ForeignObjectRel)]:
linkManager = getattr(source, link.get_accessor_name())
@@ -825,8 +825,8 @@ class RecipeViewSet(viewsets.ModelViewSet):
'steps__ingredients__step_set',
'steps__ingredients__step_set__recipe_set',
'steps__ingredients__food',
- 'steps__ingredients__food__foodproperty_set',
- 'steps__ingredients__food__foodproperty_set__property_type',
+ 'steps__ingredients__food__properties',
+ 'steps__ingredients__food__properties__property_type',
'steps__ingredients__food__inherit_fields',
'steps__ingredients__food__supermarket_category',
'steps__ingredients__food__onhand_users',
@@ -987,22 +987,12 @@ class PropertyTypeViewSet(viewsets.ModelViewSet):
return self.queryset.filter(space=self.request.space)
-class FoodPropertyViewSet(viewsets.ModelViewSet):
- queryset = FoodProperty.objects
- serializer_class = FoodPropertySerializer
+class PropertyViewSet(viewsets.ModelViewSet):
+ queryset = Property.objects
+ serializer_class = PropertySerializer
permission_classes = [CustomIsUser & CustomTokenHasReadWriteScope]
- query_params = [
- QueryParam(name='food',
- description=_('ID of food to return properties for.'),
- qtype='int'),
- ]
- schema = QueryParamAutoSchema()
-
def get_queryset(self):
- if food := self.request.query_params.get('food', None):
- self.queryset = self.queryset.filter(food__id=food)
-
return self.queryset.filter(space=self.request.space)
diff --git a/cookbook/views/views.py b/cookbook/views/views.py
index 42927f79a..f36ef1a07 100644
--- a/cookbook/views/views.py
+++ b/cookbook/views/views.py
@@ -1,14 +1,11 @@
import os
import re
-import uuid
from datetime import datetime
from uuid import UUID
from django.conf import settings
from django.contrib import messages
-from django.contrib.auth import update_session_auth_hash
from django.contrib.auth.decorators import login_required
-from django.contrib.auth.forms import PasswordChangeForm
from django.contrib.auth.models import Group
from django.contrib.auth.password_validation import validate_password
from django.core.exceptions import ValidationError
@@ -18,12 +15,9 @@ from django.urls import reverse, reverse_lazy
from django.utils import timezone
from django.utils.translation import gettext as _
from django_scopes import scopes_disabled
-from oauth2_provider.models import AccessToken
-from cookbook.forms import (CommentForm, Recipe, SearchPreferenceForm, ShoppingPreferenceForm,
- SpaceCreateForm, SpaceJoinForm, User,
- UserCreateForm, UserNameForm, UserPreference, UserPreferenceForm)
-from cookbook.helper.property_helper import FoodPropertyHelper
+from cookbook.forms import (CommentForm, Recipe, SearchPreferenceForm, SpaceCreateForm, SpaceJoinForm, User,
+ UserCreateForm, UserPreference)
from cookbook.helper.permission_helper import group_required, has_group_permission, share_link_valid, switch_user_active_space
from cookbook.models import (Comment, CookLog, InviteLink, SearchFields, SearchPreference, ShareLink,
Space, ViewLog, UserSpace)
diff --git a/vue/src/components/FoodEditor.vue b/vue/src/components/FoodEditor.vue
index ad84bd71d..1c781b28a 100644
--- a/vue/src/components/FoodEditor.vue
+++ b/vue/src/components/FoodEditor.vue
@@ -28,25 +28,77 @@
{{ $t('Properties') }}
-
-
- | {{ fp.property_type.unit }} |
- {{ fp.property_type.name }} |
- / |
- |
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -74,18 +126,6 @@
-
-
-
-
@@ -191,7 +231,6 @@ export default {
data() {
return {
food: undefined,
- food_properties: [],
}
},
mounted() {
@@ -212,6 +251,9 @@ export default {
description: "",
shopping: false,
recipe: null,
+ properties: [],
+ properties_food_amount: 100,
+ properties_food_unit: null,
food_onhand: false,
supermarket_category: null,
parent: null,
@@ -225,85 +267,41 @@ export default {
child_inherit_fields: [],
}
}
-
- Promise.allSettled([pf]).then(r => {
- let property_types = []
- let property_values = []
-
- let p1 = apiClient.listPropertyTypes().then((r) => {
- property_types = r.data
- })
-
- let p2
- if (this.food.id !== undefined) {
- p2 = apiClient.listFoodPropertys(this.food.id).then((r) => {
- property_values = r.data
- })
- }
-
- Promise.allSettled([p1, p2]).then(r => {
- property_types.forEach(fpt => {
- let food_property = {
- 'food_amount': 100,
- 'food_unit': {'name': 'g'},
- 'food': this.food,
- 'property_amount': 0,
- 'property_type': fpt,
- }
-
- property_values.forEach(fpv => {
- if (fpv.property_type.id === fpt.id) {
- food_property.id = fpv.id
- food_property.food_amount = fpv.food_amount
- food_property.food_unit = fpv.food_unit
- food_property.property_amount = fpv.property_amount
- }
- })
-
- this.food_properties.push(food_property)
- })
- })
- })
},
methods: {
updateFood: function () {
let apiClient = new ApiApiFactory()
- let p
if (this.food.id !== undefined) {
- p = apiClient.updateFood(this.food.id, this.food).then((r) => {
+ apiClient.updateFood(this.food.id, this.food).then((r) => {
this.food = r.data
StandardToasts.makeStandardToast(this, StandardToasts.SUCCESS_UPDATE)
}).catch(err => {
StandardToasts.makeStandardToast(this, StandardToasts.FAIL_UPDATE, err)
})
} else {
- p = apiClient.createFood(this.food).then((r) => {
+ apiClient.createFood(this.food).then((r) => {
this.food = r.data
StandardToasts.makeStandardToast(this, StandardToasts.SUCCESS_CREATE)
}).catch(err => {
StandardToasts.makeStandardToast(this, StandardToasts.FAIL_UPDATE, err)
})
}
-
- Promise.allSettled([p]).then(r => {
- this.food_properties.forEach(fp => {
- fp.food = this.food
- if (fp.id === undefined) {
- apiClient.createFoodProperty(fp).then((r) => {
- fp = r.data
- }).catch(err => {
- StandardToasts.makeStandardToast(this, StandardToasts.FAIL_UPDATE, err)
- })
- } else {
- apiClient.updateFoodProperty(fp.id, fp).then((r) => {
- fp = r.data
- }).catch(err => {
- StandardToasts.makeStandardToast(this, StandardToasts.FAIL_UPDATE, err)
- })
- }
+ },
+ addProperty: function () {
+ this.food.properties.push({property_type: null, property_amount: 0})
+ },
+ addAllProperties: function () {
+ let apiClient = new ApiApiFactory()
+ apiClient.listPropertyTypes().then(r => {
+ r.data.forEach(x => {
+ this.food.properties.push({property_type: x, property_amount: 0})
})
+ }).catch(err => {
+ StandardToasts.makeStandardToast(this, StandardToasts.FAIL_FETCH, err)
})
-
+ },
+ deleteProperty: function (p) {
+ this.food.properties = this.food.properties.filter(x => x !== p)
},
cancelAction: function () {
this.$emit("hidden", "")
diff --git a/vue/src/utils/openapi/api.ts b/vue/src/utils/openapi/api.ts
index aa28e3d80..fbcb98fd0 100644
--- a/vue/src/utils/openapi/api.ts
+++ b/vue/src/utils/openapi/api.ts
@@ -354,6 +354,25 @@ export interface CustomFilterShared {
*/
display_name?: string;
}
+/**
+ *
+ * @export
+ * @interface EnterpriseSpace
+ */
+export interface EnterpriseSpace {
+ /**
+ *
+ * @type {number}
+ * @memberof EnterpriseSpace
+ */
+ space: number;
+ /**
+ *
+ * @type {string}
+ * @memberof EnterpriseSpace
+ */
+ licensed_modules: string;
+}
/**
*
* @export
@@ -463,6 +482,24 @@ export interface Food {
* @memberof Food
*/
recipe?: FoodRecipe | null;
+ /**
+ *
+ * @type {Array}
+ * @memberof Food
+ */
+ properties?: Array | null;
+ /**
+ *
+ * @type {number}
+ * @memberof Food
+ */
+ properties_food_amount?: number;
+ /**
+ *
+ * @type {FoodPropertiesFoodUnit}
+ * @memberof Food
+ */
+ properties_food_unit: FoodPropertiesFoodUnit;
/**
*
* @type {string}
@@ -595,45 +632,107 @@ export interface FoodInheritFields {
/**
*
* @export
- * @interface FoodProperty
+ * @interface FoodProperties
*/
-export interface FoodProperty {
+export interface FoodProperties {
/**
*
* @type {number}
- * @memberof FoodProperty
+ * @memberof FoodProperties
*/
id?: number;
/**
*
* @type {string}
- * @memberof FoodProperty
- */
- food_amount: string;
- /**
- *
- * @type {UnitConversionBaseUnit}
- * @memberof FoodProperty
- */
- food_unit: UnitConversionBaseUnit;
- /**
- *
- * @type {FoodSubstitute}
- * @memberof FoodProperty
- */
- food: FoodSubstitute;
- /**
- *
- * @type {string}
- * @memberof FoodProperty
+ * @memberof FoodProperties
*/
property_amount: string;
/**
*
- * @type {RecipePropertyType}
- * @memberof FoodProperty
+ * @type {FoodPropertyType}
+ * @memberof FoodProperties
*/
- property_type: RecipePropertyType;
+ property_type: FoodPropertyType;
+}
+/**
+ *
+ * @export
+ * @interface FoodPropertiesFoodUnit
+ */
+export interface FoodPropertiesFoodUnit {
+ /**
+ *
+ * @type {number}
+ * @memberof FoodPropertiesFoodUnit
+ */
+ id?: number;
+ /**
+ *
+ * @type {string}
+ * @memberof FoodPropertiesFoodUnit
+ */
+ name: string;
+ /**
+ *
+ * @type {string}
+ * @memberof FoodPropertiesFoodUnit
+ */
+ plural_name?: string | null;
+ /**
+ *
+ * @type {string}
+ * @memberof FoodPropertiesFoodUnit
+ */
+ description?: string | null;
+ /**
+ *
+ * @type {string}
+ * @memberof FoodPropertiesFoodUnit
+ */
+ open_data_slug?: string | null;
+}
+/**
+ *
+ * @export
+ * @interface FoodPropertyType
+ */
+export interface FoodPropertyType {
+ /**
+ *
+ * @type {number}
+ * @memberof FoodPropertyType
+ */
+ id?: number;
+ /**
+ *
+ * @type {string}
+ * @memberof FoodPropertyType
+ */
+ name: string;
+ /**
+ *
+ * @type {string}
+ * @memberof FoodPropertyType
+ */
+ icon?: string | null;
+ /**
+ *
+ * @type {string}
+ * @memberof FoodPropertyType
+ */
+ unit?: string | null;
+ /**
+ *
+ * @type {string}
+ * @memberof FoodPropertyType
+ */
+ description?: string | null;
+ /**
+ *
+ * @type {string}
+ * @memberof FoodPropertyType
+ */
+ open_data_slug?: string | null;
}
/**
*
@@ -1024,6 +1123,24 @@ export interface IngredientFood {
* @memberof IngredientFood
*/
recipe?: FoodRecipe | null;
+ /**
+ *
+ * @type {Array}
+ * @memberof IngredientFood
+ */
+ properties?: Array | null;
+ /**
+ *
+ * @type {number}
+ * @memberof IngredientFood
+ */
+ properties_food_amount?: number;
+ /**
+ *
+ * @type {FoodPropertiesFoodUnit}
+ * @memberof IngredientFood
+ */
+ properties_food_unit: FoodPropertiesFoodUnit;
/**
*
* @type {string}
@@ -1970,6 +2087,863 @@ 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
+ */
+ 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 {OpenDataConversionFoodPreferredUnitMetric}
+ * @memberof OpenDataConversion
+ */
+ base_unit: OpenDataConversionFoodPreferredUnitMetric;
+ /**
+ *
+ * @type {string}
+ * @memberof OpenDataConversion
+ */
+ converted_amount: string;
+ /**
+ *
+ * @type {OpenDataConversionFoodPreferredUnitMetric}
+ * @memberof OpenDataConversion
+ */
+ converted_unit: OpenDataConversionFoodPreferredUnitMetric;
+ /**
+ *
+ * @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;
+ /**
+ *
+ * @type {OpenDataConversionFoodPreferredUnitMetric}
+ * @memberof OpenDataConversionFood
+ */
+ preferred_shopping_unit_metric: OpenDataConversionFoodPreferredUnitMetric;
+ /**
+ *
+ * @type {OpenDataConversionFoodPreferredUnitMetric}
+ * @memberof OpenDataConversionFood
+ */
+ preferred_unit_imperial: OpenDataConversionFoodPreferredUnitMetric;
+ /**
+ *
+ * @type {OpenDataConversionFoodPreferredUnitMetric}
+ * @memberof OpenDataConversionFood
+ */
+ preferred_shopping_unit_imperial: OpenDataConversionFoodPreferredUnitMetric;
+ /**
+ *
+ * @type {Array}
+ * @memberof OpenDataConversionFood
+ */
+ properties: Array | null;
+ /**
+ *
+ * @type {number}
+ * @memberof OpenDataConversionFood
+ */
+ properties_food_amount?: number;
+ /**
+ *
+ * @type {OpenDataConversionFoodPreferredUnitMetric}
+ * @memberof OpenDataConversionFood
+ */
+ properties_food_unit: OpenDataConversionFoodPreferredUnitMetric;
+ /**
+ *
+ * @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 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 {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;
+ /**
+ *
+ * @type {OpenDataConversionFoodPreferredUnitMetric}
+ * @memberof OpenDataFood
+ */
+ preferred_shopping_unit_metric: OpenDataConversionFoodPreferredUnitMetric;
+ /**
+ *
+ * @type {OpenDataConversionFoodPreferredUnitMetric}
+ * @memberof OpenDataFood
+ */
+ preferred_unit_imperial: OpenDataConversionFoodPreferredUnitMetric;
+ /**
+ *
+ * @type {OpenDataConversionFoodPreferredUnitMetric}
+ * @memberof OpenDataFood
+ */
+ preferred_shopping_unit_imperial: OpenDataConversionFoodPreferredUnitMetric;
+ /**
+ *
+ * @type {Array}
+ * @memberof OpenDataFood
+ */
+ properties: Array | null;
+ /**
+ *
+ * @type {number}
+ * @memberof OpenDataFood
+ */
+ properties_food_amount?: number;
+ /**
+ *
+ * @type {OpenDataConversionFoodPreferredUnitMetric}
+ * @memberof OpenDataFood
+ */
+ properties_food_unit: OpenDataConversionFoodPreferredUnitMetric;
+ /**
+ *
+ * @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 {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
+ */
+ 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
+ * @interface Property
+ */
+export interface Property {
+ /**
+ *
+ * @type {number}
+ * @memberof Property
+ */
+ id?: number;
+ /**
+ *
+ * @type {string}
+ * @memberof Property
+ */
+ property_amount: string;
+ /**
+ *
+ * @type {FoodPropertyType}
+ * @memberof Property
+ */
+ property_type: FoodPropertyType;
+}
/**
*
* @export
@@ -2111,10 +3085,10 @@ export interface Recipe {
nutrition?: RecipeNutrition | null;
/**
*
- * @type {Array}
+ * @type {Array}
* @memberof Recipe
*/
- properties?: Array;
+ properties?: Array;
/**
*
* @type {string}
@@ -2641,74 +3615,6 @@ export interface RecipeOverview {
*/
recent?: string;
}
-/**
- *
- * @export
- * @interface RecipeProperties
- */
-export interface RecipeProperties {
- /**
- *
- * @type {number}
- * @memberof RecipeProperties
- */
- id?: number;
- /**
- *
- * @type {RecipePropertyType}
- * @memberof RecipeProperties
- */
- property_type: RecipePropertyType;
- /**
- *
- * @type {string}
- * @memberof RecipeProperties
- */
- property_amount: string;
-}
-/**
- *
- * @export
- * @interface RecipePropertyType
- */
-export interface RecipePropertyType {
- /**
- *
- * @type {number}
- * @memberof RecipePropertyType
- */
- id?: number;
- /**
- *
- * @type {string}
- * @memberof RecipePropertyType
- */
- name: string;
- /**
- *
- * @type {string}
- * @memberof RecipePropertyType
- */
- icon?: string | null;
- /**
- *
- * @type {string}
- * @memberof RecipePropertyType
- */
- unit?: string | null;
- /**
- *
- * @type {string}
- * @memberof RecipePropertyType
- */
- description?: string | null;
- /**
- *
- * @type {string}
- * @memberof RecipePropertyType
- */
- open_data_slug?: string | null;
-}
/**
*
* @export
@@ -3872,10 +4778,10 @@ export interface UnitConversion {
base_amount: string;
/**
*
- * @type {UnitConversionBaseUnit}
+ * @type {FoodPropertiesFoodUnit}
* @memberof UnitConversion
*/
- base_unit: UnitConversionBaseUnit;
+ base_unit: FoodPropertiesFoodUnit;
/**
*
* @type {string}
@@ -3884,10 +4790,10 @@ export interface UnitConversion {
converted_amount: string;
/**
*
- * @type {UnitConversionBaseUnit}
+ * @type {FoodPropertiesFoodUnit}
* @memberof UnitConversion
*/
- converted_unit: UnitConversionBaseUnit;
+ converted_unit: FoodPropertiesFoodUnit;
/**
*
* @type {IngredientFood}
@@ -3901,43 +4807,6 @@ export interface UnitConversion {
*/
open_data_slug?: string | null;
}
-/**
- *
- * @export
- * @interface UnitConversionBaseUnit
- */
-export interface UnitConversionBaseUnit {
- /**
- *
- * @type {number}
- * @memberof UnitConversionBaseUnit
- */
- id?: number;
- /**
- *
- * @type {string}
- * @memberof UnitConversionBaseUnit
- */
- name: string;
- /**
- *
- * @type {string}
- * @memberof UnitConversionBaseUnit
- */
- plural_name?: string | null;
- /**
- *
- * @type {string}
- * @memberof UnitConversionBaseUnit
- */
- description?: string | null;
- /**
- *
- * @type {string}
- * @memberof UnitConversionBaseUnit
- */
- open_data_slug?: string | null;
-}
/**
*
* @export
@@ -4469,6 +5338,39 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
options: localVarRequestOptions,
};
},
+ /**
+ *
+ * @param {EnterpriseSpace} [enterpriseSpace]
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ createEnterpriseSpace: async (enterpriseSpace?: EnterpriseSpace, options: any = {}): Promise => {
+ const localVarPath = `/api/enterprise-space/`;
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: '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(enterpriseSpace, localVarRequestOptions, configuration)
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
/**
*
* @param {ExportLog} [exportLog]
@@ -4535,39 +5437,6 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
options: localVarRequestOptions,
};
},
- /**
- *
- * @param {FoodProperty} [foodProperty]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- createFoodProperty: async (foodProperty?: FoodProperty, options: any = {}): Promise => {
- const localVarPath = `/api/food-property/`;
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
-
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
-
-
-
- localVarHeaderParameter['Content-Type'] = 'application/json';
-
- setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
- localVarRequestOptions.data = serializeDataIfNeeded(foodProperty, localVarRequestOptions, configuration)
-
- return {
- url: toPathString(localVarUrlObj),
- options: localVarRequestOptions,
- };
- },
/**
*
* @param {ImportLog} [importLog]
@@ -4766,6 +5635,270 @@ 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]
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ createProperty: async (property?: Property, options: any = {}): Promise => {
+ const localVarPath = `/api/food-property/`;
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+
+
+ localVarHeaderParameter['Content-Type'] = 'application/json';
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
+ localVarRequestOptions.data = serializeDataIfNeeded(property, localVarRequestOptions, configuration)
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
/**
*
* @param {PropertyType} [propertyType]
@@ -5583,6 +6716,39 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
+ setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ /**
+ *
+ * @param {string} space A unique value identifying this enterprise space.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ destroyEnterpriseSpace: async (space: string, options: any = {}): Promise => {
+ // verify required parameter 'space' is not null or undefined
+ assertParamExists('destroyEnterpriseSpace', 'space', space)
+ const localVarPath = `/api/enterprise-space/{space}/`
+ .replace(`{${"space"}}`, encodeURIComponent(String(space)));
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: '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};
@@ -5649,39 +6815,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 food property.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- destroyFoodProperty: async (id: string, options: any = {}): Promise => {
- // verify required parameter 'id' is not null or undefined
- assertParamExists('destroyFoodProperty', 'id', id)
- const localVarPath = `/api/food-property/{id}/`
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
-
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
-
-
-
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -5880,6 +7013,270 @@ 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};
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ /**
+ *
+ * @param {string} id A unique integer value identifying this property.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ destroyProperty: async (id: string, options: any = {}): Promise => {
+ // verify required parameter 'id' is not null or undefined
+ assertParamExists('destroyProperty', 'id', id)
+ const localVarPath = `/api/food-property/{id}/`
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+
+
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -6676,6 +8073,35 @@ 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}
+ */
+ listEnterpriseSpaces: async (options: any = {}): Promise => {
+ const localVarPath = `/api/enterprise-space/`;
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+
+
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -6744,40 +8170,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 {number} [food] ID of food to return properties for.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- listFoodPropertys: async (food?: number, options: any = {}): Promise => {
- const localVarPath = `/api/food-property/`;
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
-
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
-
- if (food !== undefined) {
- localVarQueryParameter['food'] = food;
- }
-
-
-
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -7080,6 +8472,209 @@ 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}
+ */
+ 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};
@@ -7109,6 +8704,35 @@ 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}
+ */
+ listPropertys: async (options: any = {}): Promise => {
+ const localVarPath = `/api/food-property/`;
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+
+
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -8376,6 +10000,43 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
options: localVarRequestOptions,
};
},
+ /**
+ *
+ * @param {string} space A unique value identifying this enterprise space.
+ * @param {EnterpriseSpace} [enterpriseSpace]
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ partialUpdateEnterpriseSpace: async (space: string, enterpriseSpace?: EnterpriseSpace, options: any = {}): Promise => {
+ // verify required parameter 'space' is not null or undefined
+ assertParamExists('partialUpdateEnterpriseSpace', 'space', space)
+ const localVarPath = `/api/enterprise-space/{space}/`
+ .replace(`{${"space"}}`, encodeURIComponent(String(space)));
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: '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(enterpriseSpace, localVarRequestOptions, configuration)
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
/**
*
* @param {string} id A unique integer value identifying this export log.
@@ -8450,43 +10111,6 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
options: localVarRequestOptions,
};
},
- /**
- *
- * @param {string} id A unique integer value identifying this food property.
- * @param {FoodProperty} [foodProperty]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- partialUpdateFoodProperty: async (id: string, foodProperty?: FoodProperty, options: any = {}): Promise => {
- // verify required parameter 'id' is not null or undefined
- assertParamExists('partialUpdateFoodProperty', 'id', id)
- const localVarPath = `/api/food-property/{id}/`
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
-
- const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
-
-
-
- localVarHeaderParameter['Content-Type'] = 'application/json';
-
- setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
- localVarRequestOptions.data = serializeDataIfNeeded(foodProperty, localVarRequestOptions, configuration)
-
- return {
- url: toPathString(localVarUrlObj),
- options: localVarRequestOptions,
- };
- },
/**
*
* @param {string} id A unique integer value identifying this import log.
@@ -8709,6 +10333,302 @@ 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.
+ * @param {Property} [property]
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ partialUpdateProperty: async (id: string, property?: Property, options: any = {}): Promise => {
+ // verify required parameter 'id' is not null or undefined
+ assertParamExists('partialUpdateProperty', 'id', id)
+ const localVarPath = `/api/food-property/{id}/`
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+
+
+ localVarHeaderParameter['Content-Type'] = 'application/json';
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
+ localVarRequestOptions.data = serializeDataIfNeeded(property, localVarRequestOptions, configuration)
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
/**
*
* @param {string} id A unique integer value identifying this property type.
@@ -9709,6 +11629,39 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
+ setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ /**
+ *
+ * @param {string} space A unique value identifying this enterprise space.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ retrieveEnterpriseSpace: async (space: string, options: any = {}): Promise => {
+ // verify required parameter 'space' is not null or undefined
+ assertParamExists('retrieveEnterpriseSpace', 'space', space)
+ const localVarPath = `/api/enterprise-space/{space}/`
+ .replace(`{${"space"}}`, encodeURIComponent(String(space)));
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+
+
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -9742,6 +11695,39 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
+ setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
+
+ 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};
@@ -9808,39 +11794,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 food property.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- retrieveFoodProperty: async (id: string, options: any = {}): Promise => {
- // verify required parameter 'id' is not null or undefined
- assertParamExists('retrieveFoodProperty', 'id', id)
- const localVarPath = `/api/food-property/{id}/`
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
-
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
-
-
-
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -10072,6 +12025,270 @@ 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};
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ /**
+ *
+ * @param {string} id A unique integer value identifying this property.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ retrieveProperty: async (id: string, options: any = {}): Promise => {
+ // verify required parameter 'id' is not null or undefined
+ assertParamExists('retrieveProperty', 'id', id)
+ const localVarPath = `/api/food-property/{id}/`
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+
+
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -11165,6 +13382,43 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
options: localVarRequestOptions,
};
},
+ /**
+ *
+ * @param {string} space A unique value identifying this enterprise space.
+ * @param {EnterpriseSpace} [enterpriseSpace]
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ updateEnterpriseSpace: async (space: string, enterpriseSpace?: EnterpriseSpace, options: any = {}): Promise => {
+ // verify required parameter 'space' is not null or undefined
+ assertParamExists('updateEnterpriseSpace', 'space', space)
+ const localVarPath = `/api/enterprise-space/{space}/`
+ .replace(`{${"space"}}`, encodeURIComponent(String(space)));
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: '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(enterpriseSpace, localVarRequestOptions, configuration)
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
/**
*
* @param {string} id A unique integer value identifying this export log.
@@ -11239,43 +13493,6 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
options: localVarRequestOptions,
};
},
- /**
- *
- * @param {string} id A unique integer value identifying this food property.
- * @param {FoodProperty} [foodProperty]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- updateFoodProperty: async (id: string, foodProperty?: FoodProperty, options: any = {}): Promise => {
- // verify required parameter 'id' is not null or undefined
- assertParamExists('updateFoodProperty', 'id', id)
- const localVarPath = `/api/food-property/{id}/`
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
-
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
-
-
-
- localVarHeaderParameter['Content-Type'] = 'application/json';
-
- setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
- localVarRequestOptions.data = serializeDataIfNeeded(foodProperty, localVarRequestOptions, configuration)
-
- return {
- url: toPathString(localVarUrlObj),
- options: localVarRequestOptions,
- };
- },
/**
*
* @param {string} id A unique integer value identifying this import log.
@@ -11498,6 +13715,302 @@ 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.
+ * @param {Property} [property]
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ updateProperty: async (id: string, property?: Property, options: any = {}): Promise => {
+ // verify required parameter 'id' is not null or undefined
+ assertParamExists('updateProperty', 'id', id)
+ const localVarPath = `/api/food-property/{id}/`
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+
+
+ localVarHeaderParameter['Content-Type'] = 'application/json';
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
+ localVarRequestOptions.data = serializeDataIfNeeded(property, localVarRequestOptions, configuration)
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
/**
*
* @param {string} id A unique integer value identifying this property type.
@@ -12221,6 +14734,16 @@ export const ApiApiFp = function(configuration?: Configuration) {
const localVarAxiosArgs = await localVarAxiosParamCreator.createCustomFilter(customFilter, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
+ /**
+ *
+ * @param {EnterpriseSpace} [enterpriseSpace]
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async createEnterpriseSpace(enterpriseSpace?: EnterpriseSpace, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createEnterpriseSpace(enterpriseSpace, options);
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
+ },
/**
*
* @param {ExportLog} [exportLog]
@@ -12241,16 +14764,6 @@ export const ApiApiFp = function(configuration?: Configuration) {
const localVarAxiosArgs = await localVarAxiosParamCreator.createFood(food, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
- /**
- *
- * @param {FoodProperty} [foodProperty]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async createFoodProperty(foodProperty?: FoodProperty, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
- const localVarAxiosArgs = await localVarAxiosParamCreator.createFoodProperty(foodProperty, options);
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
- },
/**
*
* @param {ImportLog} [importLog]
@@ -12311,6 +14824,86 @@ 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]
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async createProperty(property?: Property, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createProperty(property, options);
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
+ },
/**
*
* @param {PropertyType} [propertyType]
@@ -12556,6 +15149,16 @@ export const ApiApiFp = function(configuration?: Configuration) {
const localVarAxiosArgs = await localVarAxiosParamCreator.destroyCustomFilter(id, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
+ /**
+ *
+ * @param {string} space A unique value identifying this enterprise space.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async destroyEnterpriseSpace(space: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.destroyEnterpriseSpace(space, options);
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
+ },
/**
*
* @param {string} id A unique integer value identifying this export log.
@@ -12576,16 +15179,6 @@ export const ApiApiFp = function(configuration?: Configuration) {
const localVarAxiosArgs = await localVarAxiosParamCreator.destroyFood(id, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
- /**
- *
- * @param {string} id A unique integer value identifying this food property.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async destroyFoodProperty(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
- const localVarAxiosArgs = await localVarAxiosParamCreator.destroyFoodProperty(id, options);
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
- },
/**
*
* @param {string} id A unique integer value identifying this import log.
@@ -12646,6 +15239,86 @@ 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.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async destroyProperty(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.destroyProperty(id, options);
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
+ },
/**
*
* @param {string} id A unique integer value identifying this property type.
@@ -12885,6 +15558,15 @@ export const ApiApiFp = function(configuration?: Configuration) {
const localVarAxiosArgs = await localVarAxiosParamCreator.listCustomFilters(options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
+ /**
+ *
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async listEnterpriseSpaces(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listEnterpriseSpaces(options);
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
+ },
/**
*
* @param {number} [page] A page number within the paginated result set.
@@ -12905,16 +15587,6 @@ export const ApiApiFp = function(configuration?: Configuration) {
const localVarAxiosArgs = await localVarAxiosParamCreator.listFoodInheritFields(options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
- /**
- *
- * @param {number} [food] ID of food to return properties for.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async listFoodPropertys(food?: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> {
- const localVarAxiosArgs = await localVarAxiosParamCreator.listFoodPropertys(food, options);
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
- },
/**
*
* @param {string} [query] Query string matched against food name.
@@ -13001,6 +15673,69 @@ 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 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.
@@ -13010,6 +15745,15 @@ export const ApiApiFp = function(configuration?: Configuration) {
const localVarAxiosArgs = await localVarAxiosParamCreator.listPropertyTypes(options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
+ /**
+ *
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async listPropertys(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listPropertys(options);
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
+ },
/**
* optional parameters - **recipe**: id of recipe - only return books for that recipe - **book**: id of book - only return recipes in that book
* @param {*} [options] Override http request option.
@@ -13369,6 +16113,17 @@ export const ApiApiFp = function(configuration?: Configuration) {
const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateCustomFilter(id, customFilter, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
+ /**
+ *
+ * @param {string} space A unique value identifying this enterprise space.
+ * @param {EnterpriseSpace} [enterpriseSpace]
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async partialUpdateEnterpriseSpace(space: string, enterpriseSpace?: EnterpriseSpace, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateEnterpriseSpace(space, enterpriseSpace, options);
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
+ },
/**
*
* @param {string} id A unique integer value identifying this export log.
@@ -13391,17 +16146,6 @@ export const ApiApiFp = function(configuration?: Configuration) {
const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateFood(id, food, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
- /**
- *
- * @param {string} id A unique integer value identifying this food property.
- * @param {FoodProperty} [foodProperty]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async partialUpdateFoodProperty(id: string, foodProperty?: FoodProperty, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
- const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateFoodProperty(id, foodProperty, options);
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
- },
/**
*
* @param {string} id A unique integer value identifying this import log.
@@ -13468,6 +16212,94 @@ 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.
+ * @param {Property} [property]
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async partialUpdateProperty(id: string, property?: Property, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateProperty(id, property, options);
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
+ },
/**
*
* @param {string} id A unique integer value identifying this property type.
@@ -13764,6 +16596,16 @@ export const ApiApiFp = function(configuration?: Configuration) {
const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveCustomFilter(id, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
+ /**
+ *
+ * @param {string} space A unique value identifying this enterprise space.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async retrieveEnterpriseSpace(space: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveEnterpriseSpace(space, options);
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
+ },
/**
*
* @param {string} id A unique integer value identifying this export log.
@@ -13774,6 +16616,16 @@ 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.
@@ -13794,16 +16646,6 @@ export const ApiApiFp = function(configuration?: Configuration) {
const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveFoodInheritField(id, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
- /**
- *
- * @param {string} id A unique integer value identifying this food property.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async retrieveFoodProperty(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
- const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveFoodProperty(id, options);
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
- },
/**
*
* @param {string} id A unique integer value identifying this group.
@@ -13874,6 +16716,86 @@ 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.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async retrieveProperty(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveProperty(id, options);
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
+ },
/**
*
* @param {string} id A unique integer value identifying this property type.
@@ -14201,6 +17123,17 @@ export const ApiApiFp = function(configuration?: Configuration) {
const localVarAxiosArgs = await localVarAxiosParamCreator.updateCustomFilter(id, customFilter, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
+ /**
+ *
+ * @param {string} space A unique value identifying this enterprise space.
+ * @param {EnterpriseSpace} [enterpriseSpace]
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async updateEnterpriseSpace(space: string, enterpriseSpace?: EnterpriseSpace, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateEnterpriseSpace(space, enterpriseSpace, options);
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
+ },
/**
*
* @param {string} id A unique integer value identifying this export log.
@@ -14223,17 +17156,6 @@ export const ApiApiFp = function(configuration?: Configuration) {
const localVarAxiosArgs = await localVarAxiosParamCreator.updateFood(id, food, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
- /**
- *
- * @param {string} id A unique integer value identifying this food property.
- * @param {FoodProperty} [foodProperty]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async updateFoodProperty(id: string, foodProperty?: FoodProperty, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateFoodProperty(id, foodProperty, options);
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
- },
/**
*
* @param {string} id A unique integer value identifying this import log.
@@ -14300,6 +17222,94 @@ 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.
+ * @param {Property} [property]
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async updateProperty(id: string, property?: Property, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateProperty(id, property, options);
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
+ },
/**
*
* @param {string} id A unique integer value identifying this property type.
@@ -14547,6 +17557,15 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?:
createCustomFilter(customFilter?: CustomFilter, options?: any): AxiosPromise {
return localVarFp.createCustomFilter(customFilter, options).then((request) => request(axios, basePath));
},
+ /**
+ *
+ * @param {EnterpriseSpace} [enterpriseSpace]
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ createEnterpriseSpace(enterpriseSpace?: EnterpriseSpace, options?: any): AxiosPromise {
+ return localVarFp.createEnterpriseSpace(enterpriseSpace, options).then((request) => request(axios, basePath));
+ },
/**
*
* @param {ExportLog} [exportLog]
@@ -14565,15 +17584,6 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?:
createFood(food?: Food, options?: any): AxiosPromise {
return localVarFp.createFood(food, options).then((request) => request(axios, basePath));
},
- /**
- *
- * @param {FoodProperty} [foodProperty]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- createFoodProperty(foodProperty?: FoodProperty, options?: any): AxiosPromise {
- return localVarFp.createFoodProperty(foodProperty, options).then((request) => request(axios, basePath));
- },
/**
*
* @param {ImportLog} [importLog]
@@ -14628,6 +17638,78 @@ 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]
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ createProperty(property?: Property, options?: any): AxiosPromise {
+ return localVarFp.createProperty(property, options).then((request) => request(axios, basePath));
+ },
/**
*
* @param {PropertyType} [propertyType]
@@ -14849,6 +17931,15 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?:
destroyCustomFilter(id: string, options?: any): AxiosPromise {
return localVarFp.destroyCustomFilter(id, options).then((request) => request(axios, basePath));
},
+ /**
+ *
+ * @param {string} space A unique value identifying this enterprise space.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ destroyEnterpriseSpace(space: string, options?: any): AxiosPromise {
+ return localVarFp.destroyEnterpriseSpace(space, options).then((request) => request(axios, basePath));
+ },
/**
*
* @param {string} id A unique integer value identifying this export log.
@@ -14867,15 +17958,6 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?:
destroyFood(id: string, options?: any): AxiosPromise {
return localVarFp.destroyFood(id, options).then((request) => request(axios, basePath));
},
- /**
- *
- * @param {string} id A unique integer value identifying this food property.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- destroyFoodProperty(id: string, options?: any): AxiosPromise {
- return localVarFp.destroyFoodProperty(id, options).then((request) => request(axios, basePath));
- },
/**
*
* @param {string} id A unique integer value identifying this import log.
@@ -14930,6 +18012,78 @@ 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.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ destroyProperty(id: string, options?: any): AxiosPromise {
+ return localVarFp.destroyProperty(id, options).then((request) => request(axios, basePath));
+ },
/**
*
* @param {string} id A unique integer value identifying this property type.
@@ -15145,6 +18299,14 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?:
listCustomFilters(options?: any): AxiosPromise> {
return localVarFp.listCustomFilters(options).then((request) => request(axios, basePath));
},
+ /**
+ *
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ listEnterpriseSpaces(options?: any): AxiosPromise> {
+ return localVarFp.listEnterpriseSpaces(options).then((request) => request(axios, basePath));
+ },
/**
*
* @param {number} [page] A page number within the paginated result set.
@@ -15163,15 +18325,6 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?:
listFoodInheritFields(options?: any): AxiosPromise> {
return localVarFp.listFoodInheritFields(options).then((request) => request(axios, basePath));
},
- /**
- *
- * @param {number} [food] ID of food to return properties for.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- listFoodPropertys(food?: number, options?: any): AxiosPromise> {
- return localVarFp.listFoodPropertys(food, options).then((request) => request(axios, basePath));
- },
/**
*
* @param {string} [query] Query string matched against food name.
@@ -15250,6 +18403,62 @@ 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}
+ */
+ 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.
@@ -15258,6 +18467,14 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?:
listPropertyTypes(options?: any): AxiosPromise> {
return localVarFp.listPropertyTypes(options).then((request) => request(axios, basePath));
},
+ /**
+ *
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ listPropertys(options?: any): AxiosPromise> {
+ return localVarFp.listPropertys(options).then((request) => request(axios, basePath));
+ },
/**
* optional parameters - **recipe**: id of recipe - only return books for that recipe - **book**: id of book - only return recipes in that book
* @param {*} [options] Override http request option.
@@ -15585,6 +18802,16 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?:
partialUpdateCustomFilter(id: string, customFilter?: CustomFilter, options?: any): AxiosPromise {
return localVarFp.partialUpdateCustomFilter(id, customFilter, options).then((request) => request(axios, basePath));
},
+ /**
+ *
+ * @param {string} space A unique value identifying this enterprise space.
+ * @param {EnterpriseSpace} [enterpriseSpace]
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ partialUpdateEnterpriseSpace(space: string, enterpriseSpace?: EnterpriseSpace, options?: any): AxiosPromise {
+ return localVarFp.partialUpdateEnterpriseSpace(space, enterpriseSpace, options).then((request) => request(axios, basePath));
+ },
/**
*
* @param {string} id A unique integer value identifying this export log.
@@ -15605,16 +18832,6 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?:
partialUpdateFood(id: string, food?: Food, options?: any): AxiosPromise {
return localVarFp.partialUpdateFood(id, food, options).then((request) => request(axios, basePath));
},
- /**
- *
- * @param {string} id A unique integer value identifying this food property.
- * @param {FoodProperty} [foodProperty]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- partialUpdateFoodProperty(id: string, foodProperty?: FoodProperty, options?: any): AxiosPromise {
- return localVarFp.partialUpdateFoodProperty(id, foodProperty, options).then((request) => request(axios, basePath));
- },
/**
*
* @param {string} id A unique integer value identifying this import log.
@@ -15675,6 +18892,86 @@ 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.
+ * @param {Property} [property]
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ partialUpdateProperty(id: string, property?: Property, options?: any): AxiosPromise {
+ return localVarFp.partialUpdateProperty(id, property, options).then((request) => request(axios, basePath));
+ },
/**
*
* @param {string} id A unique integer value identifying this property type.
@@ -15944,6 +19241,15 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?:
retrieveCustomFilter(id: string, options?: any): AxiosPromise {
return localVarFp.retrieveCustomFilter(id, options).then((request) => request(axios, basePath));
},
+ /**
+ *
+ * @param {string} space A unique value identifying this enterprise space.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ retrieveEnterpriseSpace(space: string, options?: any): AxiosPromise {
+ return localVarFp.retrieveEnterpriseSpace(space, options).then((request) => request(axios, basePath));
+ },
/**
*
* @param {string} id A unique integer value identifying this export log.
@@ -15953,6 +19259,15 @@ 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.
@@ -15971,15 +19286,6 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?:
retrieveFoodInheritField(id: string, options?: any): AxiosPromise {
return localVarFp.retrieveFoodInheritField(id, options).then((request) => request(axios, basePath));
},
- /**
- *
- * @param {string} id A unique integer value identifying this food property.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- retrieveFoodProperty(id: string, options?: any): AxiosPromise {
- return localVarFp.retrieveFoodProperty(id, options).then((request) => request(axios, basePath));
- },
/**
*
* @param {string} id A unique integer value identifying this group.
@@ -16043,6 +19349,78 @@ 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.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ retrieveProperty(id: string, options?: any): AxiosPromise {
+ return localVarFp.retrieveProperty(id, options).then((request) => request(axios, basePath));
+ },
/**
*
* @param {string} id A unique integer value identifying this property type.
@@ -16338,6 +19716,16 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?:
updateCustomFilter(id: string, customFilter?: CustomFilter, options?: any): AxiosPromise {
return localVarFp.updateCustomFilter(id, customFilter, options).then((request) => request(axios, basePath));
},
+ /**
+ *
+ * @param {string} space A unique value identifying this enterprise space.
+ * @param {EnterpriseSpace} [enterpriseSpace]
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ updateEnterpriseSpace(space: string, enterpriseSpace?: EnterpriseSpace, options?: any): AxiosPromise {
+ return localVarFp.updateEnterpriseSpace(space, enterpriseSpace, options).then((request) => request(axios, basePath));
+ },
/**
*
* @param {string} id A unique integer value identifying this export log.
@@ -16358,16 +19746,6 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?:
updateFood(id: string, food?: Food, options?: any): AxiosPromise {
return localVarFp.updateFood(id, food, options).then((request) => request(axios, basePath));
},
- /**
- *
- * @param {string} id A unique integer value identifying this food property.
- * @param {FoodProperty} [foodProperty]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- updateFoodProperty(id: string, foodProperty?: FoodProperty, options?: any): AxiosPromise {
- return localVarFp.updateFoodProperty(id, foodProperty, options).then((request) => request(axios, basePath));
- },
/**
*
* @param {string} id A unique integer value identifying this import log.
@@ -16428,6 +19806,86 @@ 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.
+ * @param {Property} [property]
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ updateProperty(id: string, property?: Property, options?: any): AxiosPromise {
+ return localVarFp.updateProperty(id, property, options).then((request) => request(axios, basePath));
+ },
/**
*
* @param {string} id A unique integer value identifying this property type.
@@ -16668,6 +20126,17 @@ export class ApiApi extends BaseAPI {
return ApiApiFp(this.configuration).createCustomFilter(customFilter, options).then((request) => request(this.axios, this.basePath));
}
+ /**
+ *
+ * @param {EnterpriseSpace} [enterpriseSpace]
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ * @memberof ApiApi
+ */
+ public createEnterpriseSpace(enterpriseSpace?: EnterpriseSpace, options?: any) {
+ return ApiApiFp(this.configuration).createEnterpriseSpace(enterpriseSpace, options).then((request) => request(this.axios, this.basePath));
+ }
+
/**
*
* @param {ExportLog} [exportLog]
@@ -16690,17 +20159,6 @@ export class ApiApi extends BaseAPI {
return ApiApiFp(this.configuration).createFood(food, options).then((request) => request(this.axios, this.basePath));
}
- /**
- *
- * @param {FoodProperty} [foodProperty]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- * @memberof ApiApi
- */
- public createFoodProperty(foodProperty?: FoodProperty, options?: any) {
- return ApiApiFp(this.configuration).createFoodProperty(foodProperty, options).then((request) => request(this.axios, this.basePath));
- }
-
/**
*
* @param {ImportLog} [importLog]
@@ -16767,6 +20225,94 @@ 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]
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ * @memberof ApiApi
+ */
+ public createProperty(property?: Property, options?: any) {
+ return ApiApiFp(this.configuration).createProperty(property, options).then((request) => request(this.axios, this.basePath));
+ }
+
/**
*
* @param {PropertyType} [propertyType]
@@ -17036,6 +20582,17 @@ export class ApiApi extends BaseAPI {
return ApiApiFp(this.configuration).destroyCustomFilter(id, options).then((request) => request(this.axios, this.basePath));
}
+ /**
+ *
+ * @param {string} space A unique value identifying this enterprise space.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ * @memberof ApiApi
+ */
+ public destroyEnterpriseSpace(space: string, options?: any) {
+ return ApiApiFp(this.configuration).destroyEnterpriseSpace(space, options).then((request) => request(this.axios, this.basePath));
+ }
+
/**
*
* @param {string} id A unique integer value identifying this export log.
@@ -17058,17 +20615,6 @@ export class ApiApi extends BaseAPI {
return ApiApiFp(this.configuration).destroyFood(id, options).then((request) => request(this.axios, this.basePath));
}
- /**
- *
- * @param {string} id A unique integer value identifying this food property.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- * @memberof ApiApi
- */
- public destroyFoodProperty(id: string, options?: any) {
- return ApiApiFp(this.configuration).destroyFoodProperty(id, options).then((request) => request(this.axios, this.basePath));
- }
-
/**
*
* @param {string} id A unique integer value identifying this import log.
@@ -17135,6 +20681,94 @@ 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.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ * @memberof ApiApi
+ */
+ public destroyProperty(id: string, options?: any) {
+ return ApiApiFp(this.configuration).destroyProperty(id, options).then((request) => request(this.axios, this.basePath));
+ }
+
/**
*
* @param {string} id A unique integer value identifying this property type.
@@ -17398,6 +21032,16 @@ export class ApiApi extends BaseAPI {
return ApiApiFp(this.configuration).listCustomFilters(options).then((request) => request(this.axios, this.basePath));
}
+ /**
+ *
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ * @memberof ApiApi
+ */
+ public listEnterpriseSpaces(options?: any) {
+ return ApiApiFp(this.configuration).listEnterpriseSpaces(options).then((request) => request(this.axios, this.basePath));
+ }
+
/**
*
* @param {number} [page] A page number within the paginated result set.
@@ -17420,17 +21064,6 @@ export class ApiApi extends BaseAPI {
return ApiApiFp(this.configuration).listFoodInheritFields(options).then((request) => request(this.axios, this.basePath));
}
- /**
- *
- * @param {number} [food] ID of food to return properties for.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- * @memberof ApiApi
- */
- public listFoodPropertys(food?: number, options?: any) {
- return ApiApiFp(this.configuration).listFoodPropertys(food, options).then((request) => request(this.axios, this.basePath));
- }
-
/**
*
* @param {string} [query] Query string matched against food name.
@@ -17525,6 +21158,76 @@ 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 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.
@@ -17535,6 +21238,16 @@ export class ApiApi extends BaseAPI {
return ApiApiFp(this.configuration).listPropertyTypes(options).then((request) => request(this.axios, this.basePath));
}
+ /**
+ *
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ * @memberof ApiApi
+ */
+ public listPropertys(options?: any) {
+ return ApiApiFp(this.configuration).listPropertys(options).then((request) => request(this.axios, this.basePath));
+ }
+
/**
* optional parameters - **recipe**: id of recipe - only return books for that recipe - **book**: id of book - only return recipes in that book
* @param {*} [options] Override http request option.
@@ -17926,6 +21639,18 @@ export class ApiApi extends BaseAPI {
return ApiApiFp(this.configuration).partialUpdateCustomFilter(id, customFilter, options).then((request) => request(this.axios, this.basePath));
}
+ /**
+ *
+ * @param {string} space A unique value identifying this enterprise space.
+ * @param {EnterpriseSpace} [enterpriseSpace]
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ * @memberof ApiApi
+ */
+ public partialUpdateEnterpriseSpace(space: string, enterpriseSpace?: EnterpriseSpace, options?: any) {
+ return ApiApiFp(this.configuration).partialUpdateEnterpriseSpace(space, enterpriseSpace, options).then((request) => request(this.axios, this.basePath));
+ }
+
/**
*
* @param {string} id A unique integer value identifying this export log.
@@ -17950,18 +21675,6 @@ export class ApiApi extends BaseAPI {
return ApiApiFp(this.configuration).partialUpdateFood(id, food, options).then((request) => request(this.axios, this.basePath));
}
- /**
- *
- * @param {string} id A unique integer value identifying this food property.
- * @param {FoodProperty} [foodProperty]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- * @memberof ApiApi
- */
- public partialUpdateFoodProperty(id: string, foodProperty?: FoodProperty, options?: any) {
- return ApiApiFp(this.configuration).partialUpdateFoodProperty(id, foodProperty, options).then((request) => request(this.axios, this.basePath));
- }
-
/**
*
* @param {string} id A unique integer value identifying this import log.
@@ -18034,6 +21747,102 @@ 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.
+ * @param {Property} [property]
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ * @memberof ApiApi
+ */
+ public partialUpdateProperty(id: string, property?: Property, options?: any) {
+ return ApiApiFp(this.configuration).partialUpdateProperty(id, property, options).then((request) => request(this.axios, this.basePath));
+ }
+
/**
*
* @param {string} id A unique integer value identifying this property type.
@@ -18357,6 +22166,17 @@ export class ApiApi extends BaseAPI {
return ApiApiFp(this.configuration).retrieveCustomFilter(id, options).then((request) => request(this.axios, this.basePath));
}
+ /**
+ *
+ * @param {string} space A unique value identifying this enterprise space.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ * @memberof ApiApi
+ */
+ public retrieveEnterpriseSpace(space: string, options?: any) {
+ return ApiApiFp(this.configuration).retrieveEnterpriseSpace(space, options).then((request) => request(this.axios, this.basePath));
+ }
+
/**
*
* @param {string} id A unique integer value identifying this export log.
@@ -18368,6 +22188,17 @@ 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.
@@ -18390,17 +22221,6 @@ export class ApiApi extends BaseAPI {
return ApiApiFp(this.configuration).retrieveFoodInheritField(id, options).then((request) => request(this.axios, this.basePath));
}
- /**
- *
- * @param {string} id A unique integer value identifying this food property.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- * @memberof ApiApi
- */
- public retrieveFoodProperty(id: string, options?: any) {
- return ApiApiFp(this.configuration).retrieveFoodProperty(id, options).then((request) => request(this.axios, this.basePath));
- }
-
/**
*
* @param {string} id A unique integer value identifying this group.
@@ -18478,6 +22298,94 @@ 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.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ * @memberof ApiApi
+ */
+ public retrieveProperty(id: string, options?: any) {
+ return ApiApiFp(this.configuration).retrieveProperty(id, options).then((request) => request(this.axios, this.basePath));
+ }
+
/**
*
* @param {string} id A unique integer value identifying this property type.
@@ -18837,6 +22745,18 @@ export class ApiApi extends BaseAPI {
return ApiApiFp(this.configuration).updateCustomFilter(id, customFilter, options).then((request) => request(this.axios, this.basePath));
}
+ /**
+ *
+ * @param {string} space A unique value identifying this enterprise space.
+ * @param {EnterpriseSpace} [enterpriseSpace]
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ * @memberof ApiApi
+ */
+ public updateEnterpriseSpace(space: string, enterpriseSpace?: EnterpriseSpace, options?: any) {
+ return ApiApiFp(this.configuration).updateEnterpriseSpace(space, enterpriseSpace, options).then((request) => request(this.axios, this.basePath));
+ }
+
/**
*
* @param {string} id A unique integer value identifying this export log.
@@ -18861,18 +22781,6 @@ export class ApiApi extends BaseAPI {
return ApiApiFp(this.configuration).updateFood(id, food, options).then((request) => request(this.axios, this.basePath));
}
- /**
- *
- * @param {string} id A unique integer value identifying this food property.
- * @param {FoodProperty} [foodProperty]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- * @memberof ApiApi
- */
- public updateFoodProperty(id: string, foodProperty?: FoodProperty, options?: any) {
- return ApiApiFp(this.configuration).updateFoodProperty(id, foodProperty, options).then((request) => request(this.axios, this.basePath));
- }
-
/**
*
* @param {string} id A unique integer value identifying this import log.
@@ -18945,6 +22853,102 @@ 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.
+ * @param {Property} [property]
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ * @memberof ApiApi
+ */
+ public updateProperty(id: string, property?: Property, options?: any) {
+ return ApiApiFp(this.configuration).updateProperty(id, property, options).then((request) => request(this.axios, this.basePath));
+ }
+
/**
*
* @param {string} id A unique integer value identifying this property type.