@@ -853,24 +863,23 @@
diff --git a/vue/src/components/MealPlanEditModal.vue b/vue/src/components/MealPlanEditModal.vue
index c950f6d5ae..6be3505965 100644
--- a/vue/src/components/MealPlanEditModal.vue
+++ b/vue/src/components/MealPlanEditModal.vue
@@ -27,7 +27,7 @@
-
+
@@ -38,7 +38,7 @@
-
+
{{ $t("EndDate") }}
@@ -209,8 +209,14 @@ export default {
},
deep: true,
},
- entryEditing: {
- handler(newVal) {
+ 'entryEditing.from_date': {
+ handler(newVal, oldVal) {
+ if (newVal !== undefined && oldVal !== undefined) {
+ if (newVal !== oldVal) {
+ let change = Math.abs(moment(oldVal).diff(moment(this.entryEditing.to_date), 'days')) // even though negative numbers might be correct, they would be illogical as to needs to always be larger than from
+ this.entryEditing.to_date = moment(newVal).add(change, 'd').format("YYYY-MM-DD")
+ }
+ }
},
deep: true,
},
@@ -312,7 +318,7 @@ export default {
this.entryEditing.servings = 1
}
},
- changeDate(date, change){
+ changeDate(date, change) {
return moment(date).add(change, 'd').format("YYYY-MM-DD")
}
},
diff --git a/vue/src/locales/fr.json b/vue/src/locales/fr.json
index e7a0482dce..be5ccec3b7 100644
--- a/vue/src/locales/fr.json
+++ b/vue/src/locales/fr.json
@@ -487,5 +487,39 @@
"PinnedConfirmation": "{recipe} a été épinglée.",
"Back": "Retour",
"Open_Data_Import": "Import Open Data",
- "Data_Import_Info": "Améliorez votre groupe en important des données partagées par la communauté afin d'améliorer vos collections de recettes : listes d'aliments, unités et plus encore."
+ "Data_Import_Info": "Améliorez votre groupe en important des données partagées par la communauté afin d'améliorer vos collections de recettes : listes d'aliments, unités et plus encore.",
+ "Nav_Color": "Couleur de la Navigation",
+ "Nav_Color_Help": "Changer la couleur de la navigation.",
+ "reset_food_inheritance_info": "Réinitialiser tous les champs d'héritage des aliments par les valeurs de leurs parents.",
+ "last_viewed": "Vu dernièrement",
+ "substitute_children_help": "Tout aliment étant enfant de cet aliment est considéré comme substitut.",
+ "show_step_ingredients": "Afficher les ingrédients de l'étape",
+ "FDC_ID": "ID FCD",
+ "FDC_ID_help": "ID de base de données FDC",
+ "reset_food_inheritance": "Réinitialiser l'héritage",
+ "kg": "kilogramme [kg] (métrique, poids)",
+ "ounce": "once [oz] (poids)",
+ "pound": "livre (poids)",
+ "base_amount": "Quantité de base",
+ "hide_step_ingredients": "Cacher les ingrédients de l'étape",
+ "show_ingredients_table": "Afficher une table des ingrédients à coté du texte de l'étape",
+ "Bookmarklet": "Signet",
+ "l": "litre [l] (métrique, volume)",
+ "Choose_Category": "Choisir une catégorie",
+ "err_importing_recipe": "Une erreur s'est produite lors de l'importation de cette recette !",
+ "Properties_Food_Amount": "Propriété Quantité de nourriture",
+ "Properties_Food_Unit": "Propriété Unité de nourriture",
+ "FDC_Search": "Recherche dans le FDC",
+ "property_type_fdc_hint": "Seules les propriétés avec un ID FDC peuvent être mises à jour automatiquement depuis la base FDC",
+ "Property_Editor": "Editeur de propriétés",
+ "warning_duplicate_filter": "Attention : en raison de limitations techniques, l'emploi de multiples filtres (and/or/not) peut mener à des résultats inattendus.",
+ "Social_Authentication": "Authentification Sociale",
+ "total": "total",
+ "g": "gramme [g] (métrique, poids)",
+ "ml": "millilitre [ml] (métrique, volume)",
+ "Never_Unit": "Ne pas mettre d'unité",
+ "Transpose_Words": "Transposer les mots",
+ "Name_Replace": "Remplacer le Nom",
+ "Food_Replace": "Remplacer l'aliment",
+ "Unit_Replace": "Remplacer l'Unité"
}
diff --git a/vue/src/locales/hu.json b/vue/src/locales/hu.json
index 2d0199d235..339c3a4be1 100644
--- a/vue/src/locales/hu.json
+++ b/vue/src/locales/hu.json
@@ -61,7 +61,7 @@
"Step_Name": "Lépés neve",
"Step_Type": "Lépés típusa",
"Make_Header": "Átalakítás címsorra",
- "Make_Ingredient": "",
+ "Make_Ingredient": "Összetevő létrehozása",
"Enable_Amount": "Összeg bekapcsolása",
"Disable_Amount": "Összeg kikapcsolása",
"Ingredient Editor": "Hozzávalók szerkesztője",
@@ -172,7 +172,7 @@
"and_down": "& le",
"Instructions": "Elkészítés",
"Unrated": "Nem értékelt",
- "Automate": "",
+ "Automate": "Automatizálás",
"Empty": "Üres",
"Key_Ctrl": "Ctrl",
"Key_Shift": "Shift",
@@ -187,7 +187,7 @@
"OnHand": "Jelenleg készleten",
"FoodOnHand": "Önnek {food} van készleten.",
"FoodNotOnHand": "Önnek {food} nincs készleten.",
- "Undefined": "",
+ "Undefined": "Meghatározatlan",
"Create_Meal_Plan_Entry": "Menüterv bejegyzés létrehozása",
"Edit_Meal_Plan_Entry": "Menüterv bejegyzés szerkesztése",
"Title": "Cím",
@@ -233,7 +233,7 @@
"ShowUncategorizedFood": "",
"GroupBy": "Csoportosítva",
"SupermarketCategoriesOnly": "Csak a szupermarket kategóriák",
- "MoveCategory": "",
+ "MoveCategory": "Áthelyezés ide: ",
"CountMore": "",
"IgnoreThis": "",
"DelayFor": "Késleltetés {hours} óráig",
@@ -241,7 +241,7 @@
"NoCategory": "Nincs kategória kiválasztva.",
"InheritWarning": "",
"ShowDelayed": "",
- "Completed": "",
+ "Completed": "Kész",
"OfflineAlert": "Ön éppen offline állapotban van, a bevásárlólista nem biztos, hogy szinkronizálódik.",
"shopping_share": "Bevásárlólista megosztása",
"shopping_auto_sync": "Automatikus szinkronizáció",
@@ -265,7 +265,7 @@
"err_move_self": "",
"nothing": "",
"err_merge_self": "",
- "show_sql": "",
+ "show_sql": "SQL megjelenítése",
"filter_to_supermarket_desc": "Alapértelmezés szerint a bevásárlólista szűrése csak a kiválasztott szupermarket kategóriáit tartalmazza.",
"CategoryName": "Kategória neve",
"SupermarketName": "Szupermarket neve",
@@ -281,10 +281,10 @@
"csv_prefix_help": "A lista vágólapra másolásakor hozzáadandó előtag.",
"csv_prefix_label": "",
"copy_markdown_table": "",
- "in_shopping": "",
+ "in_shopping": "Bevásárlólistában",
"DelayUntil": "",
"Pin": "Kitűzés",
- "mark_complete": "",
+ "mark_complete": "Késznek jelölés",
"QuickEntry": "Gyors bevitel",
"shopping_add_onhand_desc": "",
"shopping_add_onhand": "",
@@ -322,8 +322,8 @@
"desc": "Csökkenő",
"date_viewed": "Utoljára megtekintve",
"last_cooked": "Utoljára elkészítve",
- "times_cooked": "",
- "date_created": "",
+ "times_cooked": "szor elkészítve",
+ "date_created": "Létrehozás dátuma",
"show_sortby": "",
"search_rank": "Keresési rangsor",
"make_now": "",
@@ -333,7 +333,7 @@
"view_recipe": "Recept megtekintése",
"copy_to_new": "Másolás új receptbe",
"recipe_name": "Recept neve",
- "paste_ingredients_placeholder": "",
+ "paste_ingredients_placeholder": "Az összetevők listájának beillesztése ide...",
"paste_ingredients": "Hozzávalók beillesztése",
"ingredient_list": "Hozzávalók listája",
"explain": "Magyarázat",
@@ -370,19 +370,19 @@
"no_pinned_recipes": "Nincsenek kitűzött receptjei!",
"Planned": "Tervezett",
"Pinned": "Kitűzve",
- "Imported": "",
+ "Imported": "Importálva",
"Quick actions": "Gyors parancsok",
"Ratings": "Értékelések",
"Internal": "Belső",
"Units": "Mennyiségi egységek",
- "Random Recipes": "",
+ "Random Recipes": "Véletlenszerű receptek",
"parameter_count": "Paraméter {count}",
"select_keyword": "Kulcsszó kiválasztása",
"add_keyword": "Kulcsszó hozzáadása",
- "select_file": "",
+ "select_file": "Fájl kiválasztása",
"select_recipe": "Recept kiválasztása",
- "select_unit": "",
- "select_food": "",
+ "select_unit": "Egység kiválasztása",
+ "select_food": "Étel kiválasztása",
"remove_selection": "Kijelölés törlése",
"empty_list": "A lista üres.",
"Select": "Kiválasztás",
@@ -391,13 +391,13 @@
"Keyword": "Kulcsszó",
"Advanced": "Haladó",
"Page": "Oldal",
- "Single": "",
+ "Single": "Egyetlen",
"Multiple": "Több",
"Reset": "Visszaállítás",
"Options": "Opciók",
"Create Food": "Alapanyag létrehozása",
"create_food_desc": "",
- "additional_options": "",
+ "additional_options": "További lehetőségek",
"Importer_Help": "",
"Documentation": "Dokumentáció",
"Select_App_To_Import": "Kérjük, válasszon ki egy alkalmazást, amelyből importálni szeretne",
@@ -415,9 +415,9 @@
"Are_You_Sure": "Biztos benne?",
"Plural": "Többes szám",
"plural_short": "többes szám",
- "Use_Plural_Unit_Always": "",
+ "Use_Plural_Unit_Always": "Mindig többes számot használjon az mértékegységhez",
"Use_Plural_Unit_Simple": "A mértékegység többes számának dinamikus beállítása",
- "Use_Plural_Food_Always": "",
+ "Use_Plural_Food_Always": "Mindig többes számot használjon az ételhez",
"Use_Plural_Food_Simple": "Alapanyag többes számának dinamikus használata",
"plural_usage_info": "",
"Back": "Vissza",
@@ -516,5 +516,10 @@
"API": "API",
"Account": "Fiók",
"show_step_ingredients_setting": "Hozzávalók megjelenítése a recept lépései mellett",
- "Disable": "Letiltás"
+ "Disable": "Letiltás",
+ "Name_Replace": "Név cseréje",
+ "make_now_count": "Leginkább hiányzó összetevők",
+ "Combine_All_Steps": "Egyesítse az összes lépést egyetlen mezőbe.",
+ "Food_Replace": "Étel cseréje",
+ "err_importing_recipe": "Hiba történt a recept importálásakor!"
}
diff --git a/vue/src/stores/MealPlanStore.js b/vue/src/stores/MealPlanStore.js
index d4bef67bc8..daac0cb935 100644
--- a/vue/src/stores/MealPlanStore.js
+++ b/vue/src/stores/MealPlanStore.js
@@ -1,14 +1,14 @@
-import {defineStore} from 'pinia'
-import {ApiApiFactory} from "@/utils/openapi/api";
-
-const _STORE_ID = 'meal_plan_store'
-const _LOCAL_STORAGE_KEY = 'MEAL_PLAN_CLIENT_SETTINGS'
+import { ApiApiFactory } from "@/utils/openapi/api"
+import { StandardToasts } from "@/utils/utils"
+import { defineStore } from "pinia"
import Vue from "vue"
-import {StandardToasts} from "@/utils/utils";
+
+const _STORE_ID = "meal_plan_store"
+const _LOCAL_STORAGE_KEY = "MEAL_PLAN_CLIENT_SETTINGS"
/*
-* test store to play around with pinia and see if it can work for my usecases
-* dont trust that all mealplans are in store as there is no cache validation logic, its just a shared data holder
-* */
+ * test store to play around with pinia and see if it can work for my usecases
+ * dont trust that all mealplans are in store as there is no cache validation logic, its just a shared data holder
+ * */
export const useMealPlanStore = defineStore(_STORE_ID, {
state: () => ({
plans: {},
@@ -19,7 +19,7 @@ export const useMealPlanStore = defineStore(_STORE_ID, {
plan_list: function () {
let plan_list = []
for (let key in this.plans) {
- plan_list.push(this.plans[key]);
+ plan_list.push(this.plans[key])
}
return plan_list
},
@@ -35,7 +35,7 @@ export const useMealPlanStore = defineStore(_STORE_ID, {
servings: 1,
shared: [],
title: "",
- title_placeholder: 'Title', // meal plan edit modal should be improved to not need this
+ title_placeholder: "Title", // meal plan edit modal should be improved to not need this
}
},
client_settings: function () {
@@ -43,22 +43,15 @@ export const useMealPlanStore = defineStore(_STORE_ID, {
this.settings = this.loadClientSettings()
}
return this.settings
- }
+ },
},
actions: {
refreshFromAPI(from_date, to_date) {
if (this.currently_updating !== [from_date, to_date]) {
this.currently_updating = [from_date, to_date] // certainly no perfect check but better than nothing
- let options = {
- query: {
- from_date: from_date,
- to_date: to_date,
- },
- }
-
let apiClient = new ApiApiFactory()
- apiClient.listMealPlans(options).then(r => {
+ apiClient.listMealPlans(from_date, to_date).then((r) => {
r.data.forEach((p) => {
Vue.set(this.plans, p.id, p)
})
@@ -68,31 +61,40 @@ export const useMealPlanStore = defineStore(_STORE_ID, {
},
createObject(object) {
let apiClient = new ApiApiFactory()
- return apiClient.createMealPlan(object).then(r => {
- //StandardToasts.makeStandardToast(this, StandardToasts.SUCCESS_CREATE)
- Vue.set(this.plans, r.data.id, r.data)
- return r
- }).catch(err => {
- StandardToasts.makeStandardToast(this, StandardToasts.FAIL_CREATE, err)
- })
+ return apiClient
+ .createMealPlan(object)
+ .then((r) => {
+ //StandardToasts.makeStandardToast(this, StandardToasts.SUCCESS_CREATE)
+ Vue.set(this.plans, r.data.id, r.data)
+ return r
+ })
+ .catch((err) => {
+ StandardToasts.makeStandardToast(this, StandardToasts.FAIL_CREATE, err)
+ })
},
updateObject(object) {
let apiClient = new ApiApiFactory()
- return apiClient.updateMealPlan(object.id, object).then(r => {
- //StandardToasts.makeStandardToast(this, StandardToasts.SUCCESS_UPDATE)
- Vue.set(this.plans, object.id, object)
- }).catch(err => {
- StandardToasts.makeStandardToast(this, StandardToasts.FAIL_UPDATE, err)
- })
+ return apiClient
+ .updateMealPlan(object.id, object)
+ .then((r) => {
+ //StandardToasts.makeStandardToast(this, StandardToasts.SUCCESS_UPDATE)
+ Vue.set(this.plans, object.id, object)
+ })
+ .catch((err) => {
+ StandardToasts.makeStandardToast(this, StandardToasts.FAIL_UPDATE, err)
+ })
},
deleteObject(object) {
let apiClient = new ApiApiFactory()
- return apiClient.destroyMealPlan(object.id).then(r => {
- //StandardToasts.makeStandardToast(this, StandardToasts.SUCCESS_DELETE)
- Vue.delete(this.plans, object.id)
- }).catch(err => {
- StandardToasts.makeStandardToast(this, StandardToasts.FAIL_DELETE, err)
- })
+ return apiClient
+ .destroyMealPlan(object.id)
+ .then((r) => {
+ //StandardToasts.makeStandardToast(this, StandardToasts.SUCCESS_DELETE)
+ Vue.delete(this.plans, object.id)
+ })
+ .catch((err) => {
+ StandardToasts.makeStandardToast(this, StandardToasts.FAIL_DELETE, err)
+ })
},
updateClientSettings(settings) {
this.settings = settings
@@ -110,6 +112,6 @@ export const useMealPlanStore = defineStore(_STORE_ID, {
} else {
return JSON.parse(s)
}
- }
+ },
},
-})
\ No newline at end of file
+})
diff --git a/vue/src/utils/cm-widgets.ts b/vue/src/utils/cm-widgets.ts
new file mode 100644
index 0000000000..be5f6a6b23
--- /dev/null
+++ b/vue/src/utils/cm-widgets.ts
@@ -0,0 +1,27 @@
+import {WidgetType} from "@codemirror/view";
+
+class PlaceholderWidget extends WidgetType {
+ constructor(readonly name: string) {
+ super()
+ }
+
+ eq(other: PlaceholderWidget) {
+ return this.name == other.name
+ }
+
+ toDOM() {
+ const elt = document.createElement("span")
+ elt.style.cssText = `
+ border: 1px solid blue;
+ border-radius: 4px;
+ padding: 0 3px;
+ background: lightblue;`
+ console.log('reading name', this.name)
+ elt.textContent = this.name
+ return elt
+ }
+
+ ignoreEvent() {
+ return false
+ }
+}
\ No newline at end of file
diff --git a/vue/src/utils/openapi/api.ts b/vue/src/utils/openapi/api.ts
index 064297c498..c3fa53392c 100644
--- a/vue/src/utils/openapi/api.ts
+++ b/vue/src/utils/openapi/api.ts
@@ -1839,7 +1839,7 @@ export interface MealPlan {
* @type {string}
* @memberof MealPlan
*/
- to_date: string;
+ to_date?: string;
/**
*
* @type {MealPlanMealType}
@@ -2091,957 +2091,6 @@ export interface MealType {
*/
created_by?: string;
}
-/**
- *
- * @export
- * @interface OpenDataCategory
- */
-export interface OpenDataCategory {
- /**
- *
- * @type {number}
- * @memberof OpenDataCategory
- */
- id?: number;
- /**
- *
- * @type {OpenDataUnitVersion}
- * @memberof OpenDataCategory
- */
- version: OpenDataUnitVersion;
- /**
- *
- * @type {string}
- * @memberof OpenDataCategory
- */
- slug: string;
- /**
- *
- * @type {string}
- * @memberof OpenDataCategory
- */
- name: string;
- /**
- *
- * @type {string}
- * @memberof OpenDataCategory
- */
- description?: string;
- /**
- *
- * @type {string}
- * @memberof OpenDataCategory
- */
- comment?: string;
- /**
- *
- * @type {string}
- * @memberof OpenDataCategory
- */
- created_by?: string;
-}
-/**
- *
- * @export
- * @interface OpenDataConversion
- */
-export interface OpenDataConversion {
- /**
- *
- * @type {number}
- * @memberof OpenDataConversion
- */
- id?: number;
- /**
- *
- * @type {OpenDataUnitVersion}
- * @memberof OpenDataConversion
- */
- version: OpenDataUnitVersion;
- /**
- *
- * @type {string}
- * @memberof OpenDataConversion
- */
- slug: string;
- /**
- *
- * @type {OpenDataConversionFood}
- * @memberof OpenDataConversion
- */
- food: OpenDataConversionFood;
- /**
- *
- * @type {string}
- * @memberof OpenDataConversion
- */
- base_amount: string;
- /**
- *
- * @type {OpenDataConversionFoodPropertiesFoodUnit}
- * @memberof OpenDataConversion
- */
- base_unit: OpenDataConversionFoodPropertiesFoodUnit;
- /**
- *
- * @type {string}
- * @memberof OpenDataConversion
- */
- converted_amount: string;
- /**
- *
- * @type {OpenDataConversionFoodPropertiesFoodUnit}
- * @memberof OpenDataConversion
- */
- converted_unit: OpenDataConversionFoodPropertiesFoodUnit;
- /**
- *
- * @type {string}
- * @memberof OpenDataConversion
- */
- source: string;
- /**
- *
- * @type {string}
- * @memberof OpenDataConversion
- */
- comment?: string;
- /**
- *
- * @type {string}
- * @memberof OpenDataConversion
- */
- created_by?: string;
-}
-/**
- *
- * @export
- * @interface OpenDataConversionFood
- */
-export interface OpenDataConversionFood {
- /**
- *
- * @type {number}
- * @memberof OpenDataConversionFood
- */
- id?: number;
- /**
- *
- * @type {OpenDataUnitVersion}
- * @memberof OpenDataConversionFood
- */
- version: OpenDataUnitVersion;
- /**
- *
- * @type {string}
- * @memberof OpenDataConversionFood
- */
- slug: string;
- /**
- *
- * @type {string}
- * @memberof OpenDataConversionFood
- */
- name: string;
- /**
- *
- * @type {string}
- * @memberof OpenDataConversionFood
- */
- plural_name: string;
- /**
- *
- * @type {OpenDataStoreCategory}
- * @memberof OpenDataConversionFood
- */
- store_category: OpenDataStoreCategory;
- /**
- *
- * @type {OpenDataConversionFoodPreferredUnitMetric}
- * @memberof OpenDataConversionFood
- */
- preferred_unit_metric?: OpenDataConversionFoodPreferredUnitMetric | null;
- /**
- *
- * @type {OpenDataConversionFoodPreferredUnitMetric}
- * @memberof OpenDataConversionFood
- */
- preferred_shopping_unit_metric?: OpenDataConversionFoodPreferredUnitMetric | null;
- /**
- *
- * @type {OpenDataConversionFoodPreferredUnitMetric}
- * @memberof OpenDataConversionFood
- */
- preferred_unit_imperial?: OpenDataConversionFoodPreferredUnitMetric | null;
- /**
- *
- * @type {OpenDataConversionFoodPreferredUnitMetric}
- * @memberof OpenDataConversionFood
- */
- preferred_shopping_unit_imperial?: OpenDataConversionFoodPreferredUnitMetric | null;
- /**
- *
- * @type {Array
}
- * @memberof OpenDataConversionFood
- */
- properties: Array | null;
- /**
- *
- * @type {number}
- * @memberof OpenDataConversionFood
- */
- properties_food_amount?: number;
- /**
- *
- * @type {OpenDataConversionFoodPropertiesFoodUnit}
- * @memberof OpenDataConversionFood
- */
- properties_food_unit: OpenDataConversionFoodPropertiesFoodUnit;
- /**
- *
- * @type {string}
- * @memberof OpenDataConversionFood
- */
- properties_source?: string;
- /**
- *
- * @type {string}
- * @memberof OpenDataConversionFood
- */
- fdc_id: string;
- /**
- *
- * @type {string}
- * @memberof OpenDataConversionFood
- */
- comment?: string;
- /**
- *
- * @type {string}
- * @memberof OpenDataConversionFood
- */
- created_by?: string;
-}
-/**
- *
- * @export
- * @interface OpenDataConversionFoodPreferredUnitMetric
- */
-export interface OpenDataConversionFoodPreferredUnitMetric {
- /**
- *
- * @type {number}
- * @memberof OpenDataConversionFoodPreferredUnitMetric
- */
- id?: number;
- /**
- *
- * @type {OpenDataUnitVersion}
- * @memberof OpenDataConversionFoodPreferredUnitMetric
- */
- version: OpenDataUnitVersion;
- /**
- *
- * @type {string}
- * @memberof OpenDataConversionFoodPreferredUnitMetric
- */
- slug: string;
- /**
- *
- * @type {string}
- * @memberof OpenDataConversionFoodPreferredUnitMetric
- */
- name: string;
- /**
- *
- * @type {string}
- * @memberof OpenDataConversionFoodPreferredUnitMetric
- */
- plural_name?: string;
- /**
- *
- * @type {string}
- * @memberof OpenDataConversionFoodPreferredUnitMetric
- */
- base_unit?: OpenDataConversionFoodPreferredUnitMetricBaseUnitEnum;
- /**
- *
- * @type {string}
- * @memberof OpenDataConversionFoodPreferredUnitMetric
- */
- type: OpenDataConversionFoodPreferredUnitMetricTypeEnum;
- /**
- *
- * @type {string}
- * @memberof OpenDataConversionFoodPreferredUnitMetric
- */
- comment?: string;
- /**
- *
- * @type {string}
- * @memberof OpenDataConversionFoodPreferredUnitMetric
- */
- created_by?: string;
-}
-
-/**
- * @export
- * @enum {string}
- */
-export enum OpenDataConversionFoodPreferredUnitMetricBaseUnitEnum {
- G = 'G',
- Kg = 'KG',
- Ml = 'ML',
- L = 'L',
- Ounce = 'OUNCE',
- Pound = 'POUND',
- FluidOunce = 'FLUID_OUNCE',
- Tsp = 'TSP',
- Tbsp = 'TBSP',
- Cup = 'CUP',
- Pint = 'PINT',
- Quart = 'QUART',
- Gallon = 'GALLON',
- ImperialFluidOunce = 'IMPERIAL_FLUID_OUNCE',
- ImperialPint = 'IMPERIAL_PINT',
- ImperialQuart = 'IMPERIAL_QUART',
- ImperialGallon = 'IMPERIAL_GALLON'
-}
-/**
- * @export
- * @enum {string}
- */
-export enum OpenDataConversionFoodPreferredUnitMetricTypeEnum {
- Weight = 'WEIGHT',
- Volume = 'VOLUME',
- Other = 'OTHER'
-}
-
-/**
- *
- * @export
- * @interface OpenDataConversionFoodProperties
- */
-export interface OpenDataConversionFoodProperties {
- /**
- *
- * @type {number}
- * @memberof OpenDataConversionFoodProperties
- */
- id?: number;
- /**
- *
- * @type {OpenDataConversionFoodProperty}
- * @memberof OpenDataConversionFoodProperties
- */
- property: OpenDataConversionFoodProperty;
- /**
- *
- * @type {string}
- * @memberof OpenDataConversionFoodProperties
- */
- property_amount: string;
-}
-/**
- *
- * @export
- * @interface OpenDataConversionFoodPropertiesFoodUnit
- */
-export interface OpenDataConversionFoodPropertiesFoodUnit {
- /**
- *
- * @type {number}
- * @memberof OpenDataConversionFoodPropertiesFoodUnit
- */
- id?: number;
- /**
- *
- * @type {OpenDataUnitVersion}
- * @memberof OpenDataConversionFoodPropertiesFoodUnit
- */
- version: OpenDataUnitVersion;
- /**
- *
- * @type {string}
- * @memberof OpenDataConversionFoodPropertiesFoodUnit
- */
- slug: string;
- /**
- *
- * @type {string}
- * @memberof OpenDataConversionFoodPropertiesFoodUnit
- */
- name: string;
- /**
- *
- * @type {string}
- * @memberof OpenDataConversionFoodPropertiesFoodUnit
- */
- plural_name?: string;
- /**
- *
- * @type {string}
- * @memberof OpenDataConversionFoodPropertiesFoodUnit
- */
- base_unit?: OpenDataConversionFoodPropertiesFoodUnitBaseUnitEnum;
- /**
- *
- * @type {string}
- * @memberof OpenDataConversionFoodPropertiesFoodUnit
- */
- type: OpenDataConversionFoodPropertiesFoodUnitTypeEnum;
- /**
- *
- * @type {string}
- * @memberof OpenDataConversionFoodPropertiesFoodUnit
- */
- comment?: string;
- /**
- *
- * @type {string}
- * @memberof OpenDataConversionFoodPropertiesFoodUnit
- */
- created_by?: string;
-}
-
-/**
- * @export
- * @enum {string}
- */
-export enum OpenDataConversionFoodPropertiesFoodUnitBaseUnitEnum {
- G = 'G',
- Kg = 'KG',
- Ml = 'ML',
- L = 'L',
- Ounce = 'OUNCE',
- Pound = 'POUND',
- FluidOunce = 'FLUID_OUNCE',
- Tsp = 'TSP',
- Tbsp = 'TBSP',
- Cup = 'CUP',
- Pint = 'PINT',
- Quart = 'QUART',
- Gallon = 'GALLON',
- ImperialFluidOunce = 'IMPERIAL_FLUID_OUNCE',
- ImperialPint = 'IMPERIAL_PINT',
- ImperialQuart = 'IMPERIAL_QUART',
- ImperialGallon = 'IMPERIAL_GALLON'
-}
-/**
- * @export
- * @enum {string}
- */
-export enum OpenDataConversionFoodPropertiesFoodUnitTypeEnum {
- Weight = 'WEIGHT',
- Volume = 'VOLUME',
- Other = 'OTHER'
-}
-
-/**
- *
- * @export
- * @interface OpenDataConversionFoodProperty
- */
-export interface OpenDataConversionFoodProperty {
- /**
- *
- * @type {number}
- * @memberof OpenDataConversionFoodProperty
- */
- id?: number;
- /**
- *
- * @type {OpenDataUnitVersion}
- * @memberof OpenDataConversionFoodProperty
- */
- version: OpenDataUnitVersion;
- /**
- *
- * @type {string}
- * @memberof OpenDataConversionFoodProperty
- */
- slug: string;
- /**
- *
- * @type {string}
- * @memberof OpenDataConversionFoodProperty
- */
- name: string;
- /**
- *
- * @type {string}
- * @memberof OpenDataConversionFoodProperty
- */
- unit?: string;
- /**
- *
- * @type {number}
- * @memberof OpenDataConversionFoodProperty
- */
- fdc_id?: number | null;
- /**
- *
- * @type {string}
- * @memberof OpenDataConversionFoodProperty
- */
- comment?: string;
- /**
- *
- * @type {string}
- * @memberof OpenDataConversionFoodProperty
- */
- created_by?: string;
-}
-/**
- *
- * @export
- * @interface OpenDataFood
- */
-export interface OpenDataFood {
- /**
- *
- * @type {number}
- * @memberof OpenDataFood
- */
- id?: number;
- /**
- *
- * @type {OpenDataUnitVersion}
- * @memberof OpenDataFood
- */
- version: OpenDataUnitVersion;
- /**
- *
- * @type {string}
- * @memberof OpenDataFood
- */
- slug: string;
- /**
- *
- * @type {string}
- * @memberof OpenDataFood
- */
- name: string;
- /**
- *
- * @type {string}
- * @memberof OpenDataFood
- */
- plural_name: string;
- /**
- *
- * @type {OpenDataStoreCategory}
- * @memberof OpenDataFood
- */
- store_category: OpenDataStoreCategory;
- /**
- *
- * @type {OpenDataConversionFoodPreferredUnitMetric}
- * @memberof OpenDataFood
- */
- preferred_unit_metric?: OpenDataConversionFoodPreferredUnitMetric | null;
- /**
- *
- * @type {OpenDataConversionFoodPreferredUnitMetric}
- * @memberof OpenDataFood
- */
- preferred_shopping_unit_metric?: OpenDataConversionFoodPreferredUnitMetric | null;
- /**
- *
- * @type {OpenDataConversionFoodPreferredUnitMetric}
- * @memberof OpenDataFood
- */
- preferred_unit_imperial?: OpenDataConversionFoodPreferredUnitMetric | null;
- /**
- *
- * @type {OpenDataConversionFoodPreferredUnitMetric}
- * @memberof OpenDataFood
- */
- preferred_shopping_unit_imperial?: OpenDataConversionFoodPreferredUnitMetric | null;
- /**
- *
- * @type {Array}
- * @memberof OpenDataFood
- */
- properties: Array | null;
- /**
- *
- * @type {number}
- * @memberof OpenDataFood
- */
- properties_food_amount?: number;
- /**
- *
- * @type {OpenDataConversionFoodPropertiesFoodUnit}
- * @memberof OpenDataFood
- */
- properties_food_unit: OpenDataConversionFoodPropertiesFoodUnit;
- /**
- *
- * @type {string}
- * @memberof OpenDataFood
- */
- properties_source?: string;
- /**
- *
- * @type {string}
- * @memberof OpenDataFood
- */
- fdc_id: string;
- /**
- *
- * @type {string}
- * @memberof OpenDataFood
- */
- comment?: string;
- /**
- *
- * @type {string}
- * @memberof OpenDataFood
- */
- created_by?: string;
-}
-/**
- *
- * @export
- * @interface OpenDataProperty
- */
-export interface OpenDataProperty {
- /**
- *
- * @type {number}
- * @memberof OpenDataProperty
- */
- id?: number;
- /**
- *
- * @type {OpenDataUnitVersion}
- * @memberof OpenDataProperty
- */
- version: OpenDataUnitVersion;
- /**
- *
- * @type {string}
- * @memberof OpenDataProperty
- */
- slug: string;
- /**
- *
- * @type {string}
- * @memberof OpenDataProperty
- */
- name: string;
- /**
- *
- * @type {string}
- * @memberof OpenDataProperty
- */
- unit?: string;
- /**
- *
- * @type {number}
- * @memberof OpenDataProperty
- */
- fdc_id?: number | null;
- /**
- *
- * @type {string}
- * @memberof OpenDataProperty
- */
- comment?: string;
- /**
- *
- * @type {string}
- * @memberof OpenDataProperty
- */
- created_by?: string;
-}
-/**
- *
- * @export
- * @interface OpenDataStore
- */
-export interface OpenDataStore {
- /**
- *
- * @type {number}
- * @memberof OpenDataStore
- */
- id?: number;
- /**
- *
- * @type {OpenDataUnitVersion}
- * @memberof OpenDataStore
- */
- version: OpenDataUnitVersion;
- /**
- *
- * @type {string}
- * @memberof OpenDataStore
- */
- slug: string;
- /**
- *
- * @type {string}
- * @memberof OpenDataStore
- */
- name: string;
- /**
- *
- * @type {Array}
- * @memberof OpenDataStore
- */
- category_to_store: Array | null;
- /**
- *
- * @type {string}
- * @memberof OpenDataStore
- */
- comment?: string;
- /**
- *
- * @type {string}
- * @memberof OpenDataStore
- */
- created_by?: string;
-}
-/**
- *
- * @export
- * @interface OpenDataStoreCategory
- */
-export interface OpenDataStoreCategory {
- /**
- *
- * @type {number}
- * @memberof OpenDataStoreCategory
- */
- id?: number;
- /**
- *
- * @type {OpenDataUnitVersion}
- * @memberof OpenDataStoreCategory
- */
- version: OpenDataUnitVersion;
- /**
- *
- * @type {string}
- * @memberof OpenDataStoreCategory
- */
- slug: string;
- /**
- *
- * @type {string}
- * @memberof OpenDataStoreCategory
- */
- name: string;
- /**
- *
- * @type {string}
- * @memberof OpenDataStoreCategory
- */
- description?: string;
- /**
- *
- * @type {string}
- * @memberof OpenDataStoreCategory
- */
- comment?: string;
- /**
- *
- * @type {string}
- * @memberof OpenDataStoreCategory
- */
- created_by?: string;
-}
-/**
- *
- * @export
- * @interface OpenDataStoreCategoryToStore
- */
-export interface OpenDataStoreCategoryToStore {
- /**
- *
- * @type {number}
- * @memberof OpenDataStoreCategoryToStore
- */
- id?: number;
- /**
- *
- * @type {OpenDataStoreCategory}
- * @memberof OpenDataStoreCategoryToStore
- */
- category: OpenDataStoreCategory;
- /**
- *
- * @type {number}
- * @memberof OpenDataStoreCategoryToStore
- */
- store: number;
- /**
- *
- * @type {number}
- * @memberof OpenDataStoreCategoryToStore
- */
- order?: number;
-}
-/**
- *
- * @export
- * @interface OpenDataUnit
- */
-export interface OpenDataUnit {
- /**
- *
- * @type {number}
- * @memberof OpenDataUnit
- */
- id?: number;
- /**
- *
- * @type {OpenDataUnitVersion}
- * @memberof OpenDataUnit
- */
- version: OpenDataUnitVersion;
- /**
- *
- * @type {string}
- * @memberof OpenDataUnit
- */
- slug: string;
- /**
- *
- * @type {string}
- * @memberof OpenDataUnit
- */
- name: string;
- /**
- *
- * @type {string}
- * @memberof OpenDataUnit
- */
- plural_name?: string;
- /**
- *
- * @type {string}
- * @memberof OpenDataUnit
- */
- base_unit?: OpenDataUnitBaseUnitEnum;
- /**
- *
- * @type {string}
- * @memberof OpenDataUnit
- */
- type: OpenDataUnitTypeEnum;
- /**
- *
- * @type {string}
- * @memberof OpenDataUnit
- */
- comment?: string;
- /**
- *
- * @type {string}
- * @memberof OpenDataUnit
- */
- created_by?: string;
-}
-
-/**
- * @export
- * @enum {string}
- */
-export enum OpenDataUnitBaseUnitEnum {
- G = 'G',
- Kg = 'KG',
- Ml = 'ML',
- L = 'L',
- Ounce = 'OUNCE',
- Pound = 'POUND',
- FluidOunce = 'FLUID_OUNCE',
- Tsp = 'TSP',
- Tbsp = 'TBSP',
- Cup = 'CUP',
- Pint = 'PINT',
- Quart = 'QUART',
- Gallon = 'GALLON',
- ImperialFluidOunce = 'IMPERIAL_FLUID_OUNCE',
- ImperialPint = 'IMPERIAL_PINT',
- ImperialQuart = 'IMPERIAL_QUART',
- ImperialGallon = 'IMPERIAL_GALLON'
-}
-/**
- * @export
- * @enum {string}
- */
-export enum OpenDataUnitTypeEnum {
- Weight = 'WEIGHT',
- Volume = 'VOLUME',
- Other = 'OTHER'
-}
-
-/**
- *
- * @export
- * @interface OpenDataUnitVersion
- */
-export interface OpenDataUnitVersion {
- /**
- *
- * @type {number}
- * @memberof OpenDataUnitVersion
- */
- id?: number;
- /**
- *
- * @type {string}
- * @memberof OpenDataUnitVersion
- */
- name: string;
- /**
- *
- * @type {string}
- * @memberof OpenDataUnitVersion
- */
- code: string;
- /**
- *
- * @type {string}
- * @memberof OpenDataUnitVersion
- */
- comment?: string;
-}
-/**
- *
- * @export
- * @interface OpenDataVersion
- */
-export interface OpenDataVersion {
- /**
- *
- * @type {number}
- * @memberof OpenDataVersion
- */
- id?: number;
- /**
- *
- * @type {string}
- * @memberof OpenDataVersion
- */
- name: string;
- /**
- *
- * @type {string}
- * @memberof OpenDataVersion
- */
- code: string;
- /**
- *
- * @type {string}
- * @memberof OpenDataVersion
- */
- comment?: string;
-}
/**
*
* @export
@@ -5634,239 +4683,8 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- createImportLog: async (importLog?: ImportLog, options: any = {}): Promise => {
- const localVarPath = `/api/import-log/`;
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
-
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
-
-
-
- localVarHeaderParameter['Content-Type'] = 'application/json';
-
- setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
- localVarRequestOptions.data = serializeDataIfNeeded(importLog, localVarRequestOptions, configuration)
-
- return {
- url: toPathString(localVarUrlObj),
- options: localVarRequestOptions,
- };
- },
- /**
- *
- * @param {Ingredient} [ingredient]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- createIngredient: async (ingredient?: Ingredient, options: any = {}): Promise => {
- const localVarPath = `/api/ingredient/`;
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
-
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
-
-
-
- localVarHeaderParameter['Content-Type'] = 'application/json';
-
- setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
- localVarRequestOptions.data = serializeDataIfNeeded(ingredient, localVarRequestOptions, configuration)
-
- return {
- url: toPathString(localVarUrlObj),
- options: localVarRequestOptions,
- };
- },
- /**
- *
- * @param {InviteLink} [inviteLink]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- createInviteLink: async (inviteLink?: InviteLink, options: any = {}): Promise => {
- const localVarPath = `/api/invite-link/`;
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
-
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
-
-
-
- localVarHeaderParameter['Content-Type'] = 'application/json';
-
- setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
- localVarRequestOptions.data = serializeDataIfNeeded(inviteLink, localVarRequestOptions, configuration)
-
- return {
- url: toPathString(localVarUrlObj),
- options: localVarRequestOptions,
- };
- },
- /**
- *
- * @param {Keyword} [keyword]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- createKeyword: async (keyword?: Keyword, options: any = {}): Promise => {
- const localVarPath = `/api/keyword/`;
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
-
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
-
-
-
- localVarHeaderParameter['Content-Type'] = 'application/json';
-
- setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
- localVarRequestOptions.data = serializeDataIfNeeded(keyword, localVarRequestOptions, configuration)
-
- return {
- url: toPathString(localVarUrlObj),
- options: localVarRequestOptions,
- };
- },
- /**
- *
- * @param {MealPlan} [mealPlan]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- createMealPlan: async (mealPlan?: MealPlan, options: any = {}): Promise => {
- const localVarPath = `/api/meal-plan/`;
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
-
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
-
-
-
- localVarHeaderParameter['Content-Type'] = 'application/json';
-
- setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
- localVarRequestOptions.data = serializeDataIfNeeded(mealPlan, localVarRequestOptions, configuration)
-
- return {
- url: toPathString(localVarUrlObj),
- options: localVarRequestOptions,
- };
- },
- /**
- * returns list of meal types created by the requesting user ordered by the order field.
- * @param {MealType} [mealType]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- createMealType: async (mealType?: MealType, options: any = {}): Promise => {
- const localVarPath = `/api/meal-type/`;
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
-
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
-
-
-
- localVarHeaderParameter['Content-Type'] = 'application/json';
-
- setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
- localVarRequestOptions.data = serializeDataIfNeeded(mealType, localVarRequestOptions, configuration)
-
- return {
- url: toPathString(localVarUrlObj),
- options: localVarRequestOptions,
- };
- },
- /**
- *
- * @param {OpenDataCategory} [openDataCategory]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- createOpenDataCategory: async (openDataCategory?: OpenDataCategory, options: any = {}): Promise => {
- const localVarPath = `/api/open-data-category/`;
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
-
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
-
-
-
- localVarHeaderParameter['Content-Type'] = 'application/json';
-
- setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
- localVarRequestOptions.data = serializeDataIfNeeded(openDataCategory, localVarRequestOptions, configuration)
-
- return {
- url: toPathString(localVarUrlObj),
- options: localVarRequestOptions,
- };
- },
- /**
- *
- * @param {OpenDataConversion} [openDataConversion]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- createOpenDataConversion: async (openDataConversion?: OpenDataConversion, options: any = {}): Promise => {
- const localVarPath = `/api/open-data-conversion/`;
+ createImportLog: async (importLog?: ImportLog, options: any = {}): Promise => {
+ const localVarPath = `/api/import-log/`;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
let baseOptions;
@@ -5885,7 +4703,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
- localVarRequestOptions.data = serializeDataIfNeeded(openDataConversion, localVarRequestOptions, configuration)
+ localVarRequestOptions.data = serializeDataIfNeeded(importLog, localVarRequestOptions, configuration)
return {
url: toPathString(localVarUrlObj),
@@ -5894,12 +4712,12 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
},
/**
*
- * @param {OpenDataFood} [openDataFood]
+ * @param {Ingredient} [ingredient]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- createOpenDataFood: async (openDataFood?: OpenDataFood, options: any = {}): Promise => {
- const localVarPath = `/api/open-data-food/`;
+ createIngredient: async (ingredient?: Ingredient, options: any = {}): Promise => {
+ const localVarPath = `/api/ingredient/`;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
let baseOptions;
@@ -5918,7 +4736,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
- localVarRequestOptions.data = serializeDataIfNeeded(openDataFood, localVarRequestOptions, configuration)
+ localVarRequestOptions.data = serializeDataIfNeeded(ingredient, localVarRequestOptions, configuration)
return {
url: toPathString(localVarUrlObj),
@@ -5927,12 +4745,12 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
},
/**
*
- * @param {OpenDataProperty} [openDataProperty]
+ * @param {InviteLink} [inviteLink]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- createOpenDataProperty: async (openDataProperty?: OpenDataProperty, options: any = {}): Promise => {
- const localVarPath = `/api/open-data-property/`;
+ createInviteLink: async (inviteLink?: InviteLink, options: any = {}): Promise => {
+ const localVarPath = `/api/invite-link/`;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
let baseOptions;
@@ -5951,7 +4769,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
- localVarRequestOptions.data = serializeDataIfNeeded(openDataProperty, localVarRequestOptions, configuration)
+ localVarRequestOptions.data = serializeDataIfNeeded(inviteLink, localVarRequestOptions, configuration)
return {
url: toPathString(localVarUrlObj),
@@ -5960,12 +4778,12 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
},
/**
*
- * @param {OpenDataStore} [openDataStore]
+ * @param {Keyword} [keyword]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- createOpenDataStore: async (openDataStore?: OpenDataStore, options: any = {}): Promise => {
- const localVarPath = `/api/open-data-store/`;
+ createKeyword: async (keyword?: Keyword, options: any = {}): Promise => {
+ const localVarPath = `/api/keyword/`;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
let baseOptions;
@@ -5984,7 +4802,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
- localVarRequestOptions.data = serializeDataIfNeeded(openDataStore, localVarRequestOptions, configuration)
+ localVarRequestOptions.data = serializeDataIfNeeded(keyword, localVarRequestOptions, configuration)
return {
url: toPathString(localVarUrlObj),
@@ -5993,12 +4811,12 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
},
/**
*
- * @param {OpenDataUnit} [openDataUnit]
+ * @param {MealPlan} [mealPlan]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- createOpenDataUnit: async (openDataUnit?: OpenDataUnit, options: any = {}): Promise => {
- const localVarPath = `/api/open-data-unit/`;
+ createMealPlan: async (mealPlan?: MealPlan, options: any = {}): Promise => {
+ const localVarPath = `/api/meal-plan/`;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
let baseOptions;
@@ -6017,7 +4835,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
- localVarRequestOptions.data = serializeDataIfNeeded(openDataUnit, localVarRequestOptions, configuration)
+ localVarRequestOptions.data = serializeDataIfNeeded(mealPlan, localVarRequestOptions, configuration)
return {
url: toPathString(localVarUrlObj),
@@ -6025,13 +4843,13 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
};
},
/**
- *
- * @param {OpenDataVersion} [openDataVersion]
+ * returns list of meal types created by the requesting user ordered by the order field.
+ * @param {MealType} [mealType]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- createOpenDataVersion: async (openDataVersion?: OpenDataVersion, options: any = {}): Promise => {
- const localVarPath = `/api/open-data-version/`;
+ createMealType: async (mealType?: MealType, options: any = {}): Promise => {
+ const localVarPath = `/api/meal-type/`;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
let baseOptions;
@@ -6050,7 +4868,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
- localVarRequestOptions.data = serializeDataIfNeeded(openDataVersion, localVarRequestOptions, configuration)
+ localVarRequestOptions.data = serializeDataIfNeeded(mealType, localVarRequestOptions, configuration)
return {
url: toPathString(localVarUrlObj),
@@ -6924,239 +5742,8 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
*/
destroyExportLog: async (id: string, options: any = {}): Promise => {
// verify required parameter 'id' is not null or undefined
- assertParamExists('destroyExportLog', 'id', id)
- const localVarPath = `/api/export-log/{id}/`
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
-
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
-
-
-
- setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
-
- return {
- url: toPathString(localVarUrlObj),
- options: localVarRequestOptions,
- };
- },
- /**
- *
- * @param {string} id A unique integer value identifying this food.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- destroyFood: async (id: string, options: any = {}): Promise => {
- // verify required parameter 'id' is not null or undefined
- assertParamExists('destroyFood', 'id', id)
- const localVarPath = `/api/food/{id}/`
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
-
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
-
-
-
- setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
-
- return {
- url: toPathString(localVarUrlObj),
- options: localVarRequestOptions,
- };
- },
- /**
- *
- * @param {string} id A unique integer value identifying this import log.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- destroyImportLog: async (id: string, options: any = {}): Promise => {
- // verify required parameter 'id' is not null or undefined
- assertParamExists('destroyImportLog', 'id', id)
- const localVarPath = `/api/import-log/{id}/`
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
-
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
-
-
-
- setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
-
- return {
- url: toPathString(localVarUrlObj),
- options: localVarRequestOptions,
- };
- },
- /**
- *
- * @param {string} id A unique integer value identifying this ingredient.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- destroyIngredient: async (id: string, options: any = {}): Promise => {
- // verify required parameter 'id' is not null or undefined
- assertParamExists('destroyIngredient', 'id', id)
- const localVarPath = `/api/ingredient/{id}/`
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
-
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
-
-
-
- setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
-
- return {
- url: toPathString(localVarUrlObj),
- options: localVarRequestOptions,
- };
- },
- /**
- *
- * @param {string} id A unique integer value identifying this invite link.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- destroyInviteLink: async (id: string, options: any = {}): Promise => {
- // verify required parameter 'id' is not null or undefined
- assertParamExists('destroyInviteLink', 'id', id)
- const localVarPath = `/api/invite-link/{id}/`
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
-
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
-
-
-
- setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
-
- return {
- url: toPathString(localVarUrlObj),
- options: localVarRequestOptions,
- };
- },
- /**
- *
- * @param {string} id A unique integer value identifying this keyword.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- destroyKeyword: async (id: string, options: any = {}): Promise => {
- // verify required parameter 'id' is not null or undefined
- assertParamExists('destroyKeyword', 'id', id)
- const localVarPath = `/api/keyword/{id}/`
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
-
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
-
-
-
- setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
-
- return {
- url: toPathString(localVarUrlObj),
- options: localVarRequestOptions,
- };
- },
- /**
- *
- * @param {string} id A unique integer value identifying this meal plan.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- destroyMealPlan: async (id: string, options: any = {}): Promise => {
- // verify required parameter 'id' is not null or undefined
- assertParamExists('destroyMealPlan', 'id', id)
- const localVarPath = `/api/meal-plan/{id}/`
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
-
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
-
-
-
- setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
-
- return {
- url: toPathString(localVarUrlObj),
- options: localVarRequestOptions,
- };
- },
- /**
- * returns list of meal types created by the requesting user ordered by the order field.
- * @param {string} id A unique integer value identifying this meal type.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- destroyMealType: async (id: string, options: any = {}): Promise => {
- // verify required parameter 'id' is not null or undefined
- assertParamExists('destroyMealType', 'id', id)
- const localVarPath = `/api/meal-type/{id}/`
+ assertParamExists('destroyExportLog', 'id', id)
+ const localVarPath = `/api/export-log/{id}/`
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -7182,14 +5769,14 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
},
/**
*
- * @param {string} id A unique integer value identifying this open data category.
+ * @param {string} id A unique integer value identifying this food.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- destroyOpenDataCategory: async (id: string, options: any = {}): Promise => {
+ destroyFood: async (id: string, options: any = {}): Promise => {
// verify required parameter 'id' is not null or undefined
- assertParamExists('destroyOpenDataCategory', 'id', id)
- const localVarPath = `/api/open-data-category/{id}/`
+ assertParamExists('destroyFood', 'id', id)
+ const localVarPath = `/api/food/{id}/`
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -7215,14 +5802,14 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
},
/**
*
- * @param {string} id A unique integer value identifying this open data conversion.
+ * @param {string} id A unique integer value identifying this import log.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- destroyOpenDataConversion: async (id: string, options: any = {}): Promise => {
+ destroyImportLog: async (id: string, options: any = {}): Promise => {
// verify required parameter 'id' is not null or undefined
- assertParamExists('destroyOpenDataConversion', 'id', id)
- const localVarPath = `/api/open-data-conversion/{id}/`
+ assertParamExists('destroyImportLog', 'id', id)
+ const localVarPath = `/api/import-log/{id}/`
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -7248,14 +5835,14 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
},
/**
*
- * @param {string} id A unique integer value identifying this open data food.
+ * @param {string} id A unique integer value identifying this ingredient.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- destroyOpenDataFood: async (id: string, options: any = {}): Promise => {
+ destroyIngredient: async (id: string, options: any = {}): Promise => {
// verify required parameter 'id' is not null or undefined
- assertParamExists('destroyOpenDataFood', 'id', id)
- const localVarPath = `/api/open-data-food/{id}/`
+ assertParamExists('destroyIngredient', 'id', id)
+ const localVarPath = `/api/ingredient/{id}/`
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -7281,14 +5868,14 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
},
/**
*
- * @param {string} id A unique integer value identifying this open data property.
+ * @param {string} id A unique integer value identifying this invite link.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- destroyOpenDataProperty: async (id: string, options: any = {}): Promise => {
+ destroyInviteLink: async (id: string, options: any = {}): Promise => {
// verify required parameter 'id' is not null or undefined
- assertParamExists('destroyOpenDataProperty', 'id', id)
- const localVarPath = `/api/open-data-property/{id}/`
+ assertParamExists('destroyInviteLink', 'id', id)
+ const localVarPath = `/api/invite-link/{id}/`
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -7314,14 +5901,14 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
},
/**
*
- * @param {string} id A unique integer value identifying this open data store.
+ * @param {string} id A unique integer value identifying this keyword.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- destroyOpenDataStore: async (id: string, options: any = {}): Promise => {
+ destroyKeyword: async (id: string, options: any = {}): Promise => {
// verify required parameter 'id' is not null or undefined
- assertParamExists('destroyOpenDataStore', 'id', id)
- const localVarPath = `/api/open-data-store/{id}/`
+ assertParamExists('destroyKeyword', 'id', id)
+ const localVarPath = `/api/keyword/{id}/`
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -7347,14 +5934,14 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
},
/**
*
- * @param {string} id A unique integer value identifying this open data unit.
+ * @param {string} id A unique integer value identifying this meal plan.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- destroyOpenDataUnit: async (id: string, options: any = {}): Promise => {
+ destroyMealPlan: async (id: string, options: any = {}): Promise => {
// verify required parameter 'id' is not null or undefined
- assertParamExists('destroyOpenDataUnit', 'id', id)
- const localVarPath = `/api/open-data-unit/{id}/`
+ assertParamExists('destroyMealPlan', 'id', id)
+ const localVarPath = `/api/meal-plan/{id}/`
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -7379,15 +5966,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
};
},
/**
- *
- * @param {string} id A unique integer value identifying this open data version.
+ * returns list of meal types created by the requesting user ordered by the order field.
+ * @param {string} id A unique integer value identifying this meal type.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- destroyOpenDataVersion: async (id: string, options: any = {}): Promise => {
+ destroyMealType: async (id: string, options: any = {}): Promise => {
// verify required parameter 'id' is not null or undefined
- assertParamExists('destroyOpenDataVersion', 'id', id)
- const localVarPath = `/api/open-data-version/{id}/`
+ assertParamExists('destroyMealType', 'id', id)
+ const localVarPath = `/api/meal-type/{id}/`
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -8039,7 +6626,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
};
},
/**
- * updates the food with all possible data from the FDC Api (only adds new, does not change existing properties)
+ * updates the food with all possible data from the FDC Api if properties with a fdc_id already exist they will be overridden, if existing properties don\'t have a fdc_id they won\'t be changed
* @param {string} id A unique integer value identifying this food.
* @param {Food} [food]
* @param {*} [options] Override http request option.
@@ -8570,245 +7157,13 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
localVarQueryParameter['tree'] = tree;
}
- if (page !== undefined) {
- localVarQueryParameter['page'] = page;
- }
-
- if (pageSize !== undefined) {
- localVarQueryParameter['page_size'] = pageSize;
- }
-
-
-
- setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
-
- return {
- url: toPathString(localVarUrlObj),
- options: localVarRequestOptions,
- };
- },
- /**
- * optional parameters - **from_date**: filter from (inclusive) a certain date onward - **to_date**: filter upward to (inclusive) certain date
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- listMealPlans: async (options: any = {}): Promise => {
- const localVarPath = `/api/meal-plan/`;
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
-
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
-
-
-
- setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
-
- return {
- url: toPathString(localVarUrlObj),
- options: localVarRequestOptions,
- };
- },
- /**
- * returns list of meal types created by the requesting user ordered by the order field.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- listMealTypes: async (options: any = {}): Promise => {
- const localVarPath = `/api/meal-type/`;
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
-
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
-
-
-
- setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
-
- return {
- url: toPathString(localVarUrlObj),
- options: localVarRequestOptions,
- };
- },
- /**
- *
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- listOpenDataCategorys: async (options: any = {}): Promise => {
- const localVarPath = `/api/open-data-category/`;
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
-
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
-
-
-
- setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
-
- return {
- url: toPathString(localVarUrlObj),
- options: localVarRequestOptions,
- };
- },
- /**
- *
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- listOpenDataConversions: async (options: any = {}): Promise => {
- const localVarPath = `/api/open-data-conversion/`;
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
-
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
-
-
-
- setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
-
- return {
- url: toPathString(localVarUrlObj),
- options: localVarRequestOptions,
- };
- },
- /**
- *
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- listOpenDataFoods: async (options: any = {}): Promise => {
- const localVarPath = `/api/open-data-food/`;
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
-
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
-
-
-
- setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
-
- return {
- url: toPathString(localVarUrlObj),
- options: localVarRequestOptions,
- };
- },
- /**
- *
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- listOpenDataPropertys: async (options: any = {}): Promise => {
- const localVarPath = `/api/open-data-property/`;
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
-
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
-
-
-
- setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
-
- return {
- url: toPathString(localVarUrlObj),
- options: localVarRequestOptions,
- };
- },
- /**
- *
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- listOpenDataStatisticsViewSets: async (options: any = {}): Promise => {
- const localVarPath = `/api/open-data-stats/`;
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
-
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
-
-
-
- setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
-
- return {
- url: toPathString(localVarUrlObj),
- options: localVarRequestOptions,
- };
- },
- /**
- *
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- listOpenDataStores: async (options: any = {}): Promise => {
- const localVarPath = `/api/open-data-store/`;
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
-
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
+ if (page !== undefined) {
+ localVarQueryParameter['page'] = page;
+ }
+
+ if (pageSize !== undefined) {
+ localVarQueryParameter['page_size'] = pageSize;
+ }
@@ -8822,12 +7177,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
};
},
/**
- *
+ * optional parameters - **from_date**: filter from (inclusive) a certain date onward - **to_date**: filter upward to (inclusive) certain date - **meal_type**: filter meal plans based on meal_type ID
+ * @param {string} [fromDate] Filter meal plans from date (inclusive) in the format of YYYY-MM-DD.
+ * @param {string} [toDate] Filter meal plans to date (inclusive) in the format of YYYY-MM-DD.
+ * @param {number} [mealType] Query string matched (fuzzy) against object name.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- listOpenDataUnits: async (options: any = {}): Promise => {
- const localVarPath = `/api/open-data-unit/`;
+ listMealPlans: async (fromDate?: string, toDate?: string, mealType?: number, options: any = {}): Promise => {
+ const localVarPath = `/api/meal-plan/`;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
let baseOptions;
@@ -8839,6 +7197,18 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
const localVarHeaderParameter = {} as any;
const localVarQueryParameter = {} as any;
+ if (fromDate !== undefined) {
+ localVarQueryParameter['from_date'] = fromDate;
+ }
+
+ if (toDate !== undefined) {
+ localVarQueryParameter['to_date'] = toDate;
+ }
+
+ if (mealType !== undefined) {
+ localVarQueryParameter['meal_type'] = mealType;
+ }
+
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
@@ -8851,12 +7221,12 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
};
},
/**
- *
+ * returns list of meal types created by the requesting user ordered by the order field.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- listOpenDataVersions: async (options: any = {}): Promise => {
- const localVarPath = `/api/open-data-version/`;
+ listMealTypes: async (options: any = {}): Promise => {
+ const localVarPath = `/api/meal-type/`;
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
let baseOptions;
@@ -10398,273 +8768,14 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
/**
*
* @param {string} id A unique integer value identifying this keyword.
- * @param {Keyword} [keyword]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- partialUpdateKeyword: async (id: string, keyword?: Keyword, options: any = {}): Promise => {
- // verify required parameter 'id' is not null or undefined
- assertParamExists('partialUpdateKeyword', 'id', id)
- const localVarPath = `/api/keyword/{id}/`
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
-
- const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
-
-
-
- localVarHeaderParameter['Content-Type'] = 'application/json';
-
- setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
- localVarRequestOptions.data = serializeDataIfNeeded(keyword, localVarRequestOptions, configuration)
-
- return {
- url: toPathString(localVarUrlObj),
- options: localVarRequestOptions,
- };
- },
- /**
- *
- * @param {string} id A unique integer value identifying this meal plan.
- * @param {MealPlan} [mealPlan]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- partialUpdateMealPlan: async (id: string, mealPlan?: MealPlan, options: any = {}): Promise => {
- // verify required parameter 'id' is not null or undefined
- assertParamExists('partialUpdateMealPlan', 'id', id)
- const localVarPath = `/api/meal-plan/{id}/`
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
-
- const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
-
-
-
- localVarHeaderParameter['Content-Type'] = 'application/json';
-
- setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
- localVarRequestOptions.data = serializeDataIfNeeded(mealPlan, localVarRequestOptions, configuration)
-
- return {
- url: toPathString(localVarUrlObj),
- options: localVarRequestOptions,
- };
- },
- /**
- * returns list of meal types created by the requesting user ordered by the order field.
- * @param {string} id A unique integer value identifying this meal type.
- * @param {MealType} [mealType]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- partialUpdateMealType: async (id: string, mealType?: MealType, options: any = {}): Promise => {
- // verify required parameter 'id' is not null or undefined
- assertParamExists('partialUpdateMealType', 'id', id)
- const localVarPath = `/api/meal-type/{id}/`
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
-
- const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
-
-
-
- localVarHeaderParameter['Content-Type'] = 'application/json';
-
- setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
- localVarRequestOptions.data = serializeDataIfNeeded(mealType, localVarRequestOptions, configuration)
-
- return {
- url: toPathString(localVarUrlObj),
- options: localVarRequestOptions,
- };
- },
- /**
- *
- * @param {string} id A unique integer value identifying this open data category.
- * @param {OpenDataCategory} [openDataCategory]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- partialUpdateOpenDataCategory: async (id: string, openDataCategory?: OpenDataCategory, options: any = {}): Promise => {
- // verify required parameter 'id' is not null or undefined
- assertParamExists('partialUpdateOpenDataCategory', 'id', id)
- const localVarPath = `/api/open-data-category/{id}/`
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
-
- const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
-
-
-
- localVarHeaderParameter['Content-Type'] = 'application/json';
-
- setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
- localVarRequestOptions.data = serializeDataIfNeeded(openDataCategory, localVarRequestOptions, configuration)
-
- return {
- url: toPathString(localVarUrlObj),
- options: localVarRequestOptions,
- };
- },
- /**
- *
- * @param {string} id A unique integer value identifying this open data conversion.
- * @param {OpenDataConversion} [openDataConversion]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- partialUpdateOpenDataConversion: async (id: string, openDataConversion?: OpenDataConversion, options: any = {}): Promise => {
- // verify required parameter 'id' is not null or undefined
- assertParamExists('partialUpdateOpenDataConversion', 'id', id)
- const localVarPath = `/api/open-data-conversion/{id}/`
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
-
- const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
-
-
-
- localVarHeaderParameter['Content-Type'] = 'application/json';
-
- setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
- localVarRequestOptions.data = serializeDataIfNeeded(openDataConversion, localVarRequestOptions, configuration)
-
- return {
- url: toPathString(localVarUrlObj),
- options: localVarRequestOptions,
- };
- },
- /**
- *
- * @param {string} id A unique integer value identifying this open data food.
- * @param {OpenDataFood} [openDataFood]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- partialUpdateOpenDataFood: async (id: string, openDataFood?: OpenDataFood, options: any = {}): Promise => {
- // verify required parameter 'id' is not null or undefined
- assertParamExists('partialUpdateOpenDataFood', 'id', id)
- const localVarPath = `/api/open-data-food/{id}/`
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
-
- const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
-
-
-
- localVarHeaderParameter['Content-Type'] = 'application/json';
-
- setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
- localVarRequestOptions.data = serializeDataIfNeeded(openDataFood, localVarRequestOptions, configuration)
-
- return {
- url: toPathString(localVarUrlObj),
- options: localVarRequestOptions,
- };
- },
- /**
- *
- * @param {string} id A unique integer value identifying this open data property.
- * @param {OpenDataProperty} [openDataProperty]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- partialUpdateOpenDataProperty: async (id: string, openDataProperty?: OpenDataProperty, options: any = {}): Promise => {
- // verify required parameter 'id' is not null or undefined
- assertParamExists('partialUpdateOpenDataProperty', 'id', id)
- const localVarPath = `/api/open-data-property/{id}/`
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
-
- const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
-
-
-
- localVarHeaderParameter['Content-Type'] = 'application/json';
-
- setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
- localVarRequestOptions.data = serializeDataIfNeeded(openDataProperty, localVarRequestOptions, configuration)
-
- return {
- url: toPathString(localVarUrlObj),
- options: localVarRequestOptions,
- };
- },
- /**
- *
- * @param {string} id A unique integer value identifying this open data store.
- * @param {OpenDataStore} [openDataStore]
+ * @param {Keyword} [keyword]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- partialUpdateOpenDataStore: async (id: string, openDataStore?: OpenDataStore, options: any = {}): Promise => {
+ partialUpdateKeyword: async (id: string, keyword?: Keyword, options: any = {}): Promise => {
// verify required parameter 'id' is not null or undefined
- assertParamExists('partialUpdateOpenDataStore', 'id', id)
- const localVarPath = `/api/open-data-store/{id}/`
+ assertParamExists('partialUpdateKeyword', 'id', id)
+ const localVarPath = `/api/keyword/{id}/`
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -10684,7 +8795,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
- localVarRequestOptions.data = serializeDataIfNeeded(openDataStore, localVarRequestOptions, configuration)
+ localVarRequestOptions.data = serializeDataIfNeeded(keyword, localVarRequestOptions, configuration)
return {
url: toPathString(localVarUrlObj),
@@ -10693,15 +8804,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
},
/**
*
- * @param {string} id A unique integer value identifying this open data unit.
- * @param {OpenDataUnit} [openDataUnit]
+ * @param {string} id A unique integer value identifying this meal plan.
+ * @param {MealPlan} [mealPlan]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- partialUpdateOpenDataUnit: async (id: string, openDataUnit?: OpenDataUnit, options: any = {}): Promise => {
+ partialUpdateMealPlan: async (id: string, mealPlan?: MealPlan, options: any = {}): Promise => {
// verify required parameter 'id' is not null or undefined
- assertParamExists('partialUpdateOpenDataUnit', 'id', id)
- const localVarPath = `/api/open-data-unit/{id}/`
+ assertParamExists('partialUpdateMealPlan', 'id', id)
+ const localVarPath = `/api/meal-plan/{id}/`
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -10721,7 +8832,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
- localVarRequestOptions.data = serializeDataIfNeeded(openDataUnit, localVarRequestOptions, configuration)
+ localVarRequestOptions.data = serializeDataIfNeeded(mealPlan, localVarRequestOptions, configuration)
return {
url: toPathString(localVarUrlObj),
@@ -10729,16 +8840,16 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
};
},
/**
- *
- * @param {string} id A unique integer value identifying this open data version.
- * @param {OpenDataVersion} [openDataVersion]
+ * returns list of meal types created by the requesting user ordered by the order field.
+ * @param {string} id A unique integer value identifying this meal type.
+ * @param {MealType} [mealType]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- partialUpdateOpenDataVersion: async (id: string, openDataVersion?: OpenDataVersion, options: any = {}): Promise => {
+ partialUpdateMealType: async (id: string, mealType?: MealType, options: any = {}): Promise => {
// verify required parameter 'id' is not null or undefined
- assertParamExists('partialUpdateOpenDataVersion', 'id', id)
- const localVarPath = `/api/open-data-version/{id}/`
+ assertParamExists('partialUpdateMealType', 'id', id)
+ const localVarPath = `/api/meal-type/{id}/`
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -10758,7 +8869,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
- localVarRequestOptions.data = serializeDataIfNeeded(openDataVersion, localVarRequestOptions, configuration)
+ localVarRequestOptions.data = serializeDataIfNeeded(mealType, localVarRequestOptions, configuration)
return {
url: toPathString(localVarUrlObj),
@@ -11835,39 +9946,6 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
- setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
-
- return {
- url: toPathString(localVarUrlObj),
- options: localVarRequestOptions,
- };
- },
- /**
- *
- * @param {string} id
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- retrieveFDCViewSet: async (id: string, options: any = {}): Promise => {
- // verify required parameter 'id' is not null or undefined
- assertParamExists('retrieveFDCViewSet', 'id', id)
- const localVarPath = `/api/open-data-FDC/{id}/`
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
-
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
-
-
-
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -12143,245 +10221,14 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
},
/**
* returns list of meal types created by the requesting user ordered by the order field.
- * @param {string} id A unique integer value identifying this meal type.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- retrieveMealType: async (id: string, options: any = {}): Promise => {
- // verify required parameter 'id' is not null or undefined
- assertParamExists('retrieveMealType', 'id', id)
- const localVarPath = `/api/meal-type/{id}/`
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
-
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
-
-
-
- setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
-
- return {
- url: toPathString(localVarUrlObj),
- options: localVarRequestOptions,
- };
- },
- /**
- *
- * @param {string} id A unique integer value identifying this open data category.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- retrieveOpenDataCategory: async (id: string, options: any = {}): Promise => {
- // verify required parameter 'id' is not null or undefined
- assertParamExists('retrieveOpenDataCategory', 'id', id)
- const localVarPath = `/api/open-data-category/{id}/`
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
-
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
-
-
-
- setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
-
- return {
- url: toPathString(localVarUrlObj),
- options: localVarRequestOptions,
- };
- },
- /**
- *
- * @param {string} id A unique integer value identifying this open data conversion.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- retrieveOpenDataConversion: async (id: string, options: any = {}): Promise => {
- // verify required parameter 'id' is not null or undefined
- assertParamExists('retrieveOpenDataConversion', 'id', id)
- const localVarPath = `/api/open-data-conversion/{id}/`
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
-
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
-
-
-
- setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
-
- return {
- url: toPathString(localVarUrlObj),
- options: localVarRequestOptions,
- };
- },
- /**
- *
- * @param {string} id A unique integer value identifying this open data food.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- retrieveOpenDataFood: async (id: string, options: any = {}): Promise => {
- // verify required parameter 'id' is not null or undefined
- assertParamExists('retrieveOpenDataFood', 'id', id)
- const localVarPath = `/api/open-data-food/{id}/`
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
-
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
-
-
-
- setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
-
- return {
- url: toPathString(localVarUrlObj),
- options: localVarRequestOptions,
- };
- },
- /**
- *
- * @param {string} id A unique integer value identifying this open data property.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- retrieveOpenDataProperty: async (id: string, options: any = {}): Promise => {
- // verify required parameter 'id' is not null or undefined
- assertParamExists('retrieveOpenDataProperty', 'id', id)
- const localVarPath = `/api/open-data-property/{id}/`
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
-
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
-
-
-
- setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
-
- return {
- url: toPathString(localVarUrlObj),
- options: localVarRequestOptions,
- };
- },
- /**
- *
- * @param {string} id A unique integer value identifying this open data store.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- retrieveOpenDataStore: async (id: string, options: any = {}): Promise => {
- // verify required parameter 'id' is not null or undefined
- assertParamExists('retrieveOpenDataStore', 'id', id)
- const localVarPath = `/api/open-data-store/{id}/`
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
-
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
-
-
-
- setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
-
- return {
- url: toPathString(localVarUrlObj),
- options: localVarRequestOptions,
- };
- },
- /**
- *
- * @param {string} id A unique integer value identifying this open data unit.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- retrieveOpenDataUnit: async (id: string, options: any = {}): Promise => {
- // verify required parameter 'id' is not null or undefined
- assertParamExists('retrieveOpenDataUnit', 'id', id)
- const localVarPath = `/api/open-data-unit/{id}/`
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
-
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
-
-
-
- setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
-
- return {
- url: toPathString(localVarUrlObj),
- options: localVarRequestOptions,
- };
- },
- /**
- *
- * @param {string} id A unique integer value identifying this open data version.
+ * @param {string} id A unique integer value identifying this meal type.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- retrieveOpenDataVersion: async (id: string, options: any = {}): Promise => {
+ retrieveMealType: async (id: string, options: any = {}): Promise => {
// verify required parameter 'id' is not null or undefined
- assertParamExists('retrieveOpenDataVersion', 'id', id)
- const localVarPath = `/api/open-data-version/{id}/`
+ assertParamExists('retrieveMealType', 'id', id)
+ const localVarPath = `/api/meal-type/{id}/`
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -13171,258 +11018,10 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
* @throws {RequiredError}
*/
retrievedownloadFile: async (fileId: string, options: any = {}): Promise => {
- // verify required parameter 'fileId' is not null or undefined
- assertParamExists('retrievedownloadFile', 'fileId', fileId)
- const localVarPath = `/api/download-file/{file_id}/`
- .replace(`{${"file_id"}}`, encodeURIComponent(String(fileId)));
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
-
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
-
-
-
- setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
-
- return {
- url: toPathString(localVarUrlObj),
- options: localVarRequestOptions,
- };
- },
- /**
- *
- * @param {string} id
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- retrieveshareLink: async (id: string, options: any = {}): Promise => {
- // verify required parameter 'id' is not null or undefined
- assertParamExists('retrieveshareLink', 'id', id)
- const localVarPath = `/api/share-link/{id}`
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
-
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
-
-
-
- setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
-
- return {
- url: toPathString(localVarUrlObj),
- options: localVarRequestOptions,
- };
- },
- /**
- * api endpoint to switch space function
- * @param {string} spaceId
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- retrieveswitchActiveSpace: async (spaceId: string, options: any = {}): Promise => {
- // verify required parameter 'spaceId' is not null or undefined
- assertParamExists('retrieveswitchActiveSpace', 'spaceId', spaceId)
- const localVarPath = `/api/switch-active-space/{space_id}/`
- .replace(`{${"space_id"}}`, encodeURIComponent(String(spaceId)));
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
-
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
-
-
-
- setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
-
- return {
- url: toPathString(localVarUrlObj),
- options: localVarRequestOptions,
- };
- },
- /**
- *
- * @param {string} id A unique integer value identifying this food.
- * @param {FoodShoppingUpdate} [foodShoppingUpdate]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- shoppingFood: async (id: string, foodShoppingUpdate?: FoodShoppingUpdate, options: any = {}): Promise => {
- // verify required parameter 'id' is not null or undefined
- assertParamExists('shoppingFood', 'id', id)
- const localVarPath = `/api/food/{id}/shopping/`
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
-
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
-
-
-
- localVarHeaderParameter['Content-Type'] = 'application/json';
-
- setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
- localVarRequestOptions.data = serializeDataIfNeeded(foodShoppingUpdate, localVarRequestOptions, configuration)
-
- return {
- url: toPathString(localVarUrlObj),
- options: localVarRequestOptions,
- };
- },
- /**
- *
- * @param {string} id A unique integer value identifying this recipe.
- * @param {RecipeShoppingUpdate} [recipeShoppingUpdate]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- shoppingRecipe: async (id: string, recipeShoppingUpdate?: RecipeShoppingUpdate, options: any = {}): Promise => {
- // verify required parameter 'id' is not null or undefined
- assertParamExists('shoppingRecipe', 'id', id)
- const localVarPath = `/api/recipe/{id}/shopping/`
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
-
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
-
-
-
- localVarHeaderParameter['Content-Type'] = 'application/json';
-
- setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
- localVarRequestOptions.data = serializeDataIfNeeded(recipeShoppingUpdate, localVarRequestOptions, configuration)
-
- return {
- url: toPathString(localVarUrlObj),
- options: localVarRequestOptions,
- };
- },
- /**
- *
- * @param {string} id A unique integer value identifying this access token.
- * @param {AccessToken} [accessToken]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- updateAccessToken: async (id: string, accessToken?: AccessToken, options: any = {}): Promise => {
- // verify required parameter 'id' is not null or undefined
- assertParamExists('updateAccessToken', 'id', id)
- const localVarPath = `/api/access-token/{id}/`
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
-
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
-
-
-
- localVarHeaderParameter['Content-Type'] = 'application/json';
-
- setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
- localVarRequestOptions.data = serializeDataIfNeeded(accessToken, localVarRequestOptions, configuration)
-
- return {
- url: toPathString(localVarUrlObj),
- options: localVarRequestOptions,
- };
- },
- /**
- *
- * @param {string} id A unique integer value identifying this automation.
- * @param {Automation} [automation]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- updateAutomation: async (id: string, automation?: Automation, options: any = {}): Promise => {
- // verify required parameter 'id' is not null or undefined
- assertParamExists('updateAutomation', 'id', id)
- const localVarPath = `/api/automation/{id}/`
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
- let baseOptions;
- if (configuration) {
- baseOptions = configuration.baseOptions;
- }
-
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
- const localVarHeaderParameter = {} as any;
- const localVarQueryParameter = {} as any;
-
-
-
- localVarHeaderParameter['Content-Type'] = 'application/json';
-
- setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
- localVarRequestOptions.data = serializeDataIfNeeded(automation, localVarRequestOptions, configuration)
-
- return {
- url: toPathString(localVarUrlObj),
- options: localVarRequestOptions,
- };
- },
- /**
- *
- * @param {string} id A unique integer value identifying this bookmarklet import.
- * @param {BookmarkletImport} [bookmarkletImport]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- updateBookmarkletImport: async (id: string, bookmarkletImport?: BookmarkletImport, options: any = {}): Promise => {
- // verify required parameter 'id' is not null or undefined
- assertParamExists('updateBookmarkletImport', 'id', id)
- const localVarPath = `/api/bookmarklet-import/{id}/`
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
+ // verify required parameter 'fileId' is not null or undefined
+ assertParamExists('retrievedownloadFile', 'fileId', fileId)
+ const localVarPath = `/api/download-file/{file_id}/`
+ .replace(`{${"file_id"}}`, encodeURIComponent(String(fileId)));
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
let baseOptions;
@@ -13430,18 +11029,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
baseOptions = configuration.baseOptions;
}
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
const localVarHeaderParameter = {} as any;
const localVarQueryParameter = {} as any;
- localVarHeaderParameter['Content-Type'] = 'application/json';
-
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
- localVarRequestOptions.data = serializeDataIfNeeded(bookmarkletImport, localVarRequestOptions, configuration)
return {
url: toPathString(localVarUrlObj),
@@ -13450,15 +11046,14 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
},
/**
*
- * @param {string} id A unique integer value identifying this cook log.
- * @param {CookLog} [cookLog]
+ * @param {string} id
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- updateCookLog: async (id: string, cookLog?: CookLog, options: any = {}): Promise => {
+ retrieveshareLink: async (id: string, options: any = {}): Promise => {
// verify required parameter 'id' is not null or undefined
- assertParamExists('updateCookLog', 'id', id)
- const localVarPath = `/api/cook-log/{id}/`
+ assertParamExists('retrieveshareLink', 'id', id)
+ const localVarPath = `/api/share-link/{id}`
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -13467,18 +11062,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
baseOptions = configuration.baseOptions;
}
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
const localVarHeaderParameter = {} as any;
const localVarQueryParameter = {} as any;
- localVarHeaderParameter['Content-Type'] = 'application/json';
-
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
- localVarRequestOptions.data = serializeDataIfNeeded(cookLog, localVarRequestOptions, configuration)
return {
url: toPathString(localVarUrlObj),
@@ -13486,17 +11078,16 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
};
},
/**
- *
- * @param {string} id A unique integer value identifying this custom filter.
- * @param {CustomFilter} [customFilter]
+ * api endpoint to switch space function
+ * @param {string} spaceId
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- updateCustomFilter: async (id: string, customFilter?: CustomFilter, options: any = {}): Promise => {
- // verify required parameter 'id' is not null or undefined
- assertParamExists('updateCustomFilter', 'id', id)
- const localVarPath = `/api/custom-filter/{id}/`
- .replace(`{${"id"}}`, encodeURIComponent(String(id)));
+ retrieveswitchActiveSpace: async (spaceId: string, options: any = {}): Promise => {
+ // verify required parameter 'spaceId' is not null or undefined
+ assertParamExists('retrieveswitchActiveSpace', 'spaceId', spaceId)
+ const localVarPath = `/api/switch-active-space/{space_id}/`
+ .replace(`{${"space_id"}}`, encodeURIComponent(String(spaceId)));
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
let baseOptions;
@@ -13504,18 +11095,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
baseOptions = configuration.baseOptions;
}
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
const localVarHeaderParameter = {} as any;
const localVarQueryParameter = {} as any;
- localVarHeaderParameter['Content-Type'] = 'application/json';
-
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
- localVarRequestOptions.data = serializeDataIfNeeded(customFilter, localVarRequestOptions, configuration)
return {
url: toPathString(localVarUrlObj),
@@ -13524,15 +11112,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
},
/**
*
- * @param {string} id A unique integer value identifying this export log.
- * @param {ExportLog} [exportLog]
+ * @param {string} id A unique integer value identifying this food.
+ * @param {FoodShoppingUpdate} [foodShoppingUpdate]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- updateExportLog: async (id: string, exportLog?: ExportLog, options: any = {}): Promise => {
+ shoppingFood: async (id: string, foodShoppingUpdate?: FoodShoppingUpdate, options: any = {}): Promise => {
// verify required parameter 'id' is not null or undefined
- assertParamExists('updateExportLog', 'id', id)
- const localVarPath = `/api/export-log/{id}/`
+ assertParamExists('shoppingFood', 'id', id)
+ const localVarPath = `/api/food/{id}/shopping/`
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -13552,7 +11140,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
- localVarRequestOptions.data = serializeDataIfNeeded(exportLog, localVarRequestOptions, configuration)
+ localVarRequestOptions.data = serializeDataIfNeeded(foodShoppingUpdate, localVarRequestOptions, configuration)
return {
url: toPathString(localVarUrlObj),
@@ -13561,15 +11149,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
},
/**
*
- * @param {string} id A unique integer value identifying this food.
- * @param {Food} [food]
+ * @param {string} id A unique integer value identifying this recipe.
+ * @param {RecipeShoppingUpdate} [recipeShoppingUpdate]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- updateFood: async (id: string, food?: Food, options: any = {}): Promise => {
+ shoppingRecipe: async (id: string, recipeShoppingUpdate?: RecipeShoppingUpdate, options: any = {}): Promise => {
// verify required parameter 'id' is not null or undefined
- assertParamExists('updateFood', 'id', id)
- const localVarPath = `/api/food/{id}/`
+ assertParamExists('shoppingRecipe', 'id', id)
+ const localVarPath = `/api/recipe/{id}/shopping/`
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -13589,7 +11177,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
- localVarRequestOptions.data = serializeDataIfNeeded(food, localVarRequestOptions, configuration)
+ localVarRequestOptions.data = serializeDataIfNeeded(recipeShoppingUpdate, localVarRequestOptions, configuration)
return {
url: toPathString(localVarUrlObj),
@@ -13598,15 +11186,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
},
/**
*
- * @param {string} id A unique integer value identifying this import log.
- * @param {ImportLog} [importLog]
+ * @param {string} id A unique integer value identifying this access token.
+ * @param {AccessToken} [accessToken]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- updateImportLog: async (id: string, importLog?: ImportLog, options: any = {}): Promise => {
+ updateAccessToken: async (id: string, accessToken?: AccessToken, options: any = {}): Promise => {
// verify required parameter 'id' is not null or undefined
- assertParamExists('updateImportLog', 'id', id)
- const localVarPath = `/api/import-log/{id}/`
+ assertParamExists('updateAccessToken', 'id', id)
+ const localVarPath = `/api/access-token/{id}/`
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -13626,7 +11214,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
- localVarRequestOptions.data = serializeDataIfNeeded(importLog, localVarRequestOptions, configuration)
+ localVarRequestOptions.data = serializeDataIfNeeded(accessToken, localVarRequestOptions, configuration)
return {
url: toPathString(localVarUrlObj),
@@ -13635,15 +11223,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
},
/**
*
- * @param {string} id A unique integer value identifying this ingredient.
- * @param {Ingredient} [ingredient]
+ * @param {string} id A unique integer value identifying this automation.
+ * @param {Automation} [automation]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- updateIngredient: async (id: string, ingredient?: Ingredient, options: any = {}): Promise => {
+ updateAutomation: async (id: string, automation?: Automation, options: any = {}): Promise => {
// verify required parameter 'id' is not null or undefined
- assertParamExists('updateIngredient', 'id', id)
- const localVarPath = `/api/ingredient/{id}/`
+ assertParamExists('updateAutomation', 'id', id)
+ const localVarPath = `/api/automation/{id}/`
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -13663,7 +11251,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
- localVarRequestOptions.data = serializeDataIfNeeded(ingredient, localVarRequestOptions, configuration)
+ localVarRequestOptions.data = serializeDataIfNeeded(automation, localVarRequestOptions, configuration)
return {
url: toPathString(localVarUrlObj),
@@ -13672,15 +11260,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
},
/**
*
- * @param {string} id A unique integer value identifying this invite link.
- * @param {InviteLink} [inviteLink]
+ * @param {string} id A unique integer value identifying this bookmarklet import.
+ * @param {BookmarkletImport} [bookmarkletImport]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- updateInviteLink: async (id: string, inviteLink?: InviteLink, options: any = {}): Promise => {
+ updateBookmarkletImport: async (id: string, bookmarkletImport?: BookmarkletImport, options: any = {}): Promise => {
// verify required parameter 'id' is not null or undefined
- assertParamExists('updateInviteLink', 'id', id)
- const localVarPath = `/api/invite-link/{id}/`
+ assertParamExists('updateBookmarkletImport', 'id', id)
+ const localVarPath = `/api/bookmarklet-import/{id}/`
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -13700,7 +11288,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
- localVarRequestOptions.data = serializeDataIfNeeded(inviteLink, localVarRequestOptions, configuration)
+ localVarRequestOptions.data = serializeDataIfNeeded(bookmarkletImport, localVarRequestOptions, configuration)
return {
url: toPathString(localVarUrlObj),
@@ -13709,15 +11297,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
},
/**
*
- * @param {string} id A unique integer value identifying this keyword.
- * @param {Keyword} [keyword]
+ * @param {string} id A unique integer value identifying this cook log.
+ * @param {CookLog} [cookLog]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- updateKeyword: async (id: string, keyword?: Keyword, options: any = {}): Promise => {
+ updateCookLog: async (id: string, cookLog?: CookLog, options: any = {}): Promise => {
// verify required parameter 'id' is not null or undefined
- assertParamExists('updateKeyword', 'id', id)
- const localVarPath = `/api/keyword/{id}/`
+ assertParamExists('updateCookLog', 'id', id)
+ const localVarPath = `/api/cook-log/{id}/`
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -13737,7 +11325,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
- localVarRequestOptions.data = serializeDataIfNeeded(keyword, localVarRequestOptions, configuration)
+ localVarRequestOptions.data = serializeDataIfNeeded(cookLog, localVarRequestOptions, configuration)
return {
url: toPathString(localVarUrlObj),
@@ -13746,15 +11334,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
},
/**
*
- * @param {string} id A unique integer value identifying this meal plan.
- * @param {MealPlan} [mealPlan]
+ * @param {string} id A unique integer value identifying this custom filter.
+ * @param {CustomFilter} [customFilter]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- updateMealPlan: async (id: string, mealPlan?: MealPlan, options: any = {}): Promise => {
+ updateCustomFilter: async (id: string, customFilter?: CustomFilter, options: any = {}): Promise => {
// verify required parameter 'id' is not null or undefined
- assertParamExists('updateMealPlan', 'id', id)
- const localVarPath = `/api/meal-plan/{id}/`
+ assertParamExists('updateCustomFilter', 'id', id)
+ const localVarPath = `/api/custom-filter/{id}/`
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -13774,7 +11362,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
- localVarRequestOptions.data = serializeDataIfNeeded(mealPlan, localVarRequestOptions, configuration)
+ localVarRequestOptions.data = serializeDataIfNeeded(customFilter, localVarRequestOptions, configuration)
return {
url: toPathString(localVarUrlObj),
@@ -13782,16 +11370,16 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
};
},
/**
- * returns list of meal types created by the requesting user ordered by the order field.
- * @param {string} id A unique integer value identifying this meal type.
- * @param {MealType} [mealType]
+ *
+ * @param {string} id A unique integer value identifying this export log.
+ * @param {ExportLog} [exportLog]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- updateMealType: async (id: string, mealType?: MealType, options: any = {}): Promise => {
+ updateExportLog: async (id: string, exportLog?: ExportLog, options: any = {}): Promise => {
// verify required parameter 'id' is not null or undefined
- assertParamExists('updateMealType', 'id', id)
- const localVarPath = `/api/meal-type/{id}/`
+ assertParamExists('updateExportLog', 'id', id)
+ const localVarPath = `/api/export-log/{id}/`
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -13811,7 +11399,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
- localVarRequestOptions.data = serializeDataIfNeeded(mealType, localVarRequestOptions, configuration)
+ localVarRequestOptions.data = serializeDataIfNeeded(exportLog, localVarRequestOptions, configuration)
return {
url: toPathString(localVarUrlObj),
@@ -13820,15 +11408,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
},
/**
*
- * @param {string} id A unique integer value identifying this open data category.
- * @param {OpenDataCategory} [openDataCategory]
+ * @param {string} id A unique integer value identifying this food.
+ * @param {Food} [food]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- updateOpenDataCategory: async (id: string, openDataCategory?: OpenDataCategory, options: any = {}): Promise => {
+ updateFood: async (id: string, food?: Food, options: any = {}): Promise => {
// verify required parameter 'id' is not null or undefined
- assertParamExists('updateOpenDataCategory', 'id', id)
- const localVarPath = `/api/open-data-category/{id}/`
+ assertParamExists('updateFood', 'id', id)
+ const localVarPath = `/api/food/{id}/`
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -13848,7 +11436,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
- localVarRequestOptions.data = serializeDataIfNeeded(openDataCategory, localVarRequestOptions, configuration)
+ localVarRequestOptions.data = serializeDataIfNeeded(food, localVarRequestOptions, configuration)
return {
url: toPathString(localVarUrlObj),
@@ -13857,15 +11445,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
},
/**
*
- * @param {string} id A unique integer value identifying this open data conversion.
- * @param {OpenDataConversion} [openDataConversion]
+ * @param {string} id A unique integer value identifying this import log.
+ * @param {ImportLog} [importLog]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- updateOpenDataConversion: async (id: string, openDataConversion?: OpenDataConversion, options: any = {}): Promise => {
+ updateImportLog: async (id: string, importLog?: ImportLog, options: any = {}): Promise => {
// verify required parameter 'id' is not null or undefined
- assertParamExists('updateOpenDataConversion', 'id', id)
- const localVarPath = `/api/open-data-conversion/{id}/`
+ assertParamExists('updateImportLog', 'id', id)
+ const localVarPath = `/api/import-log/{id}/`
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -13885,7 +11473,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
- localVarRequestOptions.data = serializeDataIfNeeded(openDataConversion, localVarRequestOptions, configuration)
+ localVarRequestOptions.data = serializeDataIfNeeded(importLog, localVarRequestOptions, configuration)
return {
url: toPathString(localVarUrlObj),
@@ -13894,15 +11482,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
},
/**
*
- * @param {string} id A unique integer value identifying this open data food.
- * @param {OpenDataFood} [openDataFood]
+ * @param {string} id A unique integer value identifying this ingredient.
+ * @param {Ingredient} [ingredient]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- updateOpenDataFood: async (id: string, openDataFood?: OpenDataFood, options: any = {}): Promise => {
+ updateIngredient: async (id: string, ingredient?: Ingredient, options: any = {}): Promise => {
// verify required parameter 'id' is not null or undefined
- assertParamExists('updateOpenDataFood', 'id', id)
- const localVarPath = `/api/open-data-food/{id}/`
+ assertParamExists('updateIngredient', 'id', id)
+ const localVarPath = `/api/ingredient/{id}/`
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -13922,7 +11510,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
- localVarRequestOptions.data = serializeDataIfNeeded(openDataFood, localVarRequestOptions, configuration)
+ localVarRequestOptions.data = serializeDataIfNeeded(ingredient, localVarRequestOptions, configuration)
return {
url: toPathString(localVarUrlObj),
@@ -13931,15 +11519,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
},
/**
*
- * @param {string} id A unique integer value identifying this open data property.
- * @param {OpenDataProperty} [openDataProperty]
+ * @param {string} id A unique integer value identifying this invite link.
+ * @param {InviteLink} [inviteLink]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- updateOpenDataProperty: async (id: string, openDataProperty?: OpenDataProperty, options: any = {}): Promise => {
+ updateInviteLink: async (id: string, inviteLink?: InviteLink, options: any = {}): Promise => {
// verify required parameter 'id' is not null or undefined
- assertParamExists('updateOpenDataProperty', 'id', id)
- const localVarPath = `/api/open-data-property/{id}/`
+ assertParamExists('updateInviteLink', 'id', id)
+ const localVarPath = `/api/invite-link/{id}/`
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -13959,7 +11547,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
- localVarRequestOptions.data = serializeDataIfNeeded(openDataProperty, localVarRequestOptions, configuration)
+ localVarRequestOptions.data = serializeDataIfNeeded(inviteLink, localVarRequestOptions, configuration)
return {
url: toPathString(localVarUrlObj),
@@ -13968,15 +11556,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
},
/**
*
- * @param {string} id A unique integer value identifying this open data store.
- * @param {OpenDataStore} [openDataStore]
+ * @param {string} id A unique integer value identifying this keyword.
+ * @param {Keyword} [keyword]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- updateOpenDataStore: async (id: string, openDataStore?: OpenDataStore, options: any = {}): Promise => {
+ updateKeyword: async (id: string, keyword?: Keyword, options: any = {}): Promise => {
// verify required parameter 'id' is not null or undefined
- assertParamExists('updateOpenDataStore', 'id', id)
- const localVarPath = `/api/open-data-store/{id}/`
+ assertParamExists('updateKeyword', 'id', id)
+ const localVarPath = `/api/keyword/{id}/`
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -13996,7 +11584,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
- localVarRequestOptions.data = serializeDataIfNeeded(openDataStore, localVarRequestOptions, configuration)
+ localVarRequestOptions.data = serializeDataIfNeeded(keyword, localVarRequestOptions, configuration)
return {
url: toPathString(localVarUrlObj),
@@ -14005,15 +11593,15 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
},
/**
*
- * @param {string} id A unique integer value identifying this open data unit.
- * @param {OpenDataUnit} [openDataUnit]
+ * @param {string} id A unique integer value identifying this meal plan.
+ * @param {MealPlan} [mealPlan]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- updateOpenDataUnit: async (id: string, openDataUnit?: OpenDataUnit, options: any = {}): Promise => {
+ updateMealPlan: async (id: string, mealPlan?: MealPlan, options: any = {}): Promise => {
// verify required parameter 'id' is not null or undefined
- assertParamExists('updateOpenDataUnit', 'id', id)
- const localVarPath = `/api/open-data-unit/{id}/`
+ assertParamExists('updateMealPlan', 'id', id)
+ const localVarPath = `/api/meal-plan/{id}/`
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -14033,7 +11621,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
- localVarRequestOptions.data = serializeDataIfNeeded(openDataUnit, localVarRequestOptions, configuration)
+ localVarRequestOptions.data = serializeDataIfNeeded(mealPlan, localVarRequestOptions, configuration)
return {
url: toPathString(localVarUrlObj),
@@ -14041,16 +11629,16 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
};
},
/**
- *
- * @param {string} id A unique integer value identifying this open data version.
- * @param {OpenDataVersion} [openDataVersion]
+ * returns list of meal types created by the requesting user ordered by the order field.
+ * @param {string} id A unique integer value identifying this meal type.
+ * @param {MealType} [mealType]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- updateOpenDataVersion: async (id: string, openDataVersion?: OpenDataVersion, options: any = {}): Promise => {
+ updateMealType: async (id: string, mealType?: MealType, options: any = {}): Promise => {
// verify required parameter 'id' is not null or undefined
- assertParamExists('updateOpenDataVersion', 'id', id)
- const localVarPath = `/api/open-data-version/{id}/`
+ assertParamExists('updateMealType', 'id', id)
+ const localVarPath = `/api/meal-type/{id}/`
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
// use dummy base URL string because the URL constructor only accepts absolute URLs.
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
@@ -14070,7 +11658,7 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
- localVarRequestOptions.data = serializeDataIfNeeded(openDataVersion, localVarRequestOptions, configuration)
+ localVarRequestOptions.data = serializeDataIfNeeded(mealType, localVarRequestOptions, configuration)
return {
url: toPathString(localVarUrlObj),
@@ -14829,172 +12417,102 @@ export const ApiApiFp = function(configuration?: Configuration) {
},
/**
*
- * @param {CookLog} [cookLog]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async createCookLog(cookLog?: CookLog, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
- const localVarAxiosArgs = await localVarAxiosParamCreator.createCookLog(cookLog, options);
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
- },
- /**
- *
- * @param {CustomFilter} [customFilter]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async createCustomFilter(customFilter?: CustomFilter, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
- const localVarAxiosArgs = await localVarAxiosParamCreator.createCustomFilter(customFilter, options);
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
- },
- /**
- *
- * @param {ExportLog} [exportLog]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async createExportLog(exportLog?: ExportLog, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
- const localVarAxiosArgs = await localVarAxiosParamCreator.createExportLog(exportLog, options);
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
- },
- /**
- *
- * @param {Food} [food]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async createFood(food?: Food, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
- const localVarAxiosArgs = await localVarAxiosParamCreator.createFood(food, options);
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
- },
- /**
- *
- * @param {ImportLog} [importLog]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async createImportLog(importLog?: ImportLog, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
- const localVarAxiosArgs = await localVarAxiosParamCreator.createImportLog(importLog, options);
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
- },
- /**
- *
- * @param {Ingredient} [ingredient]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async createIngredient(ingredient?: Ingredient, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
- const localVarAxiosArgs = await localVarAxiosParamCreator.createIngredient(ingredient, options);
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
- },
- /**
- *
- * @param {InviteLink} [inviteLink]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async createInviteLink(inviteLink?: InviteLink, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
- const localVarAxiosArgs = await localVarAxiosParamCreator.createInviteLink(inviteLink, options);
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
- },
- /**
- *
- * @param {Keyword} [keyword]
+ * @param {CookLog} [cookLog]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- async createKeyword(keyword?: Keyword, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
- const localVarAxiosArgs = await localVarAxiosParamCreator.createKeyword(keyword, options);
+ async createCookLog(cookLog?: CookLog, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createCookLog(cookLog, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
/**
*
- * @param {MealPlan} [mealPlan]
+ * @param {CustomFilter} [customFilter]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- async createMealPlan(mealPlan?: MealPlan, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
- const localVarAxiosArgs = await localVarAxiosParamCreator.createMealPlan(mealPlan, options);
+ async createCustomFilter(customFilter?: CustomFilter, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createCustomFilter(customFilter, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
/**
- * returns list of meal types created by the requesting user ordered by the order field.
- * @param {MealType} [mealType]
+ *
+ * @param {ExportLog} [exportLog]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- async createMealType(mealType?: MealType, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
- const localVarAxiosArgs = await localVarAxiosParamCreator.createMealType(mealType, options);
+ async createExportLog(exportLog?: ExportLog, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createExportLog(exportLog, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
/**
*
- * @param {OpenDataCategory} [openDataCategory]
+ * @param {Food} [food]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- async createOpenDataCategory(openDataCategory?: OpenDataCategory, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
- const localVarAxiosArgs = await localVarAxiosParamCreator.createOpenDataCategory(openDataCategory, options);
+ async createFood(food?: Food, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createFood(food, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
/**
*
- * @param {OpenDataConversion} [openDataConversion]
+ * @param {ImportLog} [importLog]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- async createOpenDataConversion(openDataConversion?: OpenDataConversion, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
- const localVarAxiosArgs = await localVarAxiosParamCreator.createOpenDataConversion(openDataConversion, options);
+ async createImportLog(importLog?: ImportLog, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createImportLog(importLog, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
/**
*
- * @param {OpenDataFood} [openDataFood]
+ * @param {Ingredient} [ingredient]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- async createOpenDataFood(openDataFood?: OpenDataFood, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
- const localVarAxiosArgs = await localVarAxiosParamCreator.createOpenDataFood(openDataFood, options);
+ async createIngredient(ingredient?: Ingredient, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createIngredient(ingredient, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
/**
*
- * @param {OpenDataProperty} [openDataProperty]
+ * @param {InviteLink} [inviteLink]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- async createOpenDataProperty(openDataProperty?: OpenDataProperty, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
- const localVarAxiosArgs = await localVarAxiosParamCreator.createOpenDataProperty(openDataProperty, options);
+ async createInviteLink(inviteLink?: InviteLink, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createInviteLink(inviteLink, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
/**
*
- * @param {OpenDataStore} [openDataStore]
+ * @param {Keyword} [keyword]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- async createOpenDataStore(openDataStore?: OpenDataStore, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
- const localVarAxiosArgs = await localVarAxiosParamCreator.createOpenDataStore(openDataStore, options);
+ async createKeyword(keyword?: Keyword, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createKeyword(keyword, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
/**
*
- * @param {OpenDataUnit} [openDataUnit]
+ * @param {MealPlan} [mealPlan]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- async createOpenDataUnit(openDataUnit?: OpenDataUnit, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
- const localVarAxiosArgs = await localVarAxiosParamCreator.createOpenDataUnit(openDataUnit, options);
+ async createMealPlan(mealPlan?: MealPlan, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createMealPlan(mealPlan, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
/**
- *
- * @param {OpenDataVersion} [openDataVersion]
+ * returns list of meal types created by the requesting user ordered by the order field.
+ * @param {MealType} [mealType]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- async createOpenDataVersion(openDataVersion?: OpenDataVersion, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
- const localVarAxiosArgs = await localVarAxiosParamCreator.createOpenDataVersion(openDataVersion, options);
+ async createMealType(mealType?: MealType, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createMealType(mealType, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
/**
@@ -15332,76 +12850,6 @@ export const ApiApiFp = function(configuration?: Configuration) {
const localVarAxiosArgs = await localVarAxiosParamCreator.destroyMealType(id, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
- /**
- *
- * @param {string} id A unique integer value identifying this open data category.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async destroyOpenDataCategory(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
- const localVarAxiosArgs = await localVarAxiosParamCreator.destroyOpenDataCategory(id, options);
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
- },
- /**
- *
- * @param {string} id A unique integer value identifying this open data conversion.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async destroyOpenDataConversion(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
- const localVarAxiosArgs = await localVarAxiosParamCreator.destroyOpenDataConversion(id, options);
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
- },
- /**
- *
- * @param {string} id A unique integer value identifying this open data food.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async destroyOpenDataFood(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
- const localVarAxiosArgs = await localVarAxiosParamCreator.destroyOpenDataFood(id, options);
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
- },
- /**
- *
- * @param {string} id A unique integer value identifying this open data property.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async destroyOpenDataProperty(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
- const localVarAxiosArgs = await localVarAxiosParamCreator.destroyOpenDataProperty(id, options);
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
- },
- /**
- *
- * @param {string} id A unique integer value identifying this open data store.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async destroyOpenDataStore(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
- const localVarAxiosArgs = await localVarAxiosParamCreator.destroyOpenDataStore(id, options);
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
- },
- /**
- *
- * @param {string} id A unique integer value identifying this open data unit.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async destroyOpenDataUnit(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
- const localVarAxiosArgs = await localVarAxiosParamCreator.destroyOpenDataUnit(id, options);
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
- },
- /**
- *
- * @param {string} id A unique integer value identifying this open data version.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async destroyOpenDataVersion(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
- const localVarAxiosArgs = await localVarAxiosParamCreator.destroyOpenDataVersion(id, options);
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
- },
/**
*
* @param {string} id A unique integer value identifying this property.
@@ -15593,7 +13041,7 @@ export const ApiApiFp = function(configuration?: Configuration) {
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
/**
- * updates the food with all possible data from the FDC Api (only adds new, does not change existing properties)
+ * updates the food with all possible data from the FDC Api if properties with a fdc_id already exist they will be overridden, if existing properties don\'t have a fdc_id they won\'t be changed
* @param {string} id A unique integer value identifying this food.
* @param {Food} [food]
* @param {*} [options] Override http request option.
@@ -15751,12 +13199,15 @@ export const ApiApiFp = function(configuration?: Configuration) {
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
/**
- * optional parameters - **from_date**: filter from (inclusive) a certain date onward - **to_date**: filter upward to (inclusive) certain date
+ * optional parameters - **from_date**: filter from (inclusive) a certain date onward - **to_date**: filter upward to (inclusive) certain date - **meal_type**: filter meal plans based on meal_type ID
+ * @param {string} [fromDate] Filter meal plans from date (inclusive) in the format of YYYY-MM-DD.
+ * @param {string} [toDate] Filter meal plans to date (inclusive) in the format of YYYY-MM-DD.
+ * @param {number} [mealType] Query string matched (fuzzy) against object name.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- async listMealPlans(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> {
- const localVarAxiosArgs = await localVarAxiosParamCreator.listMealPlans(options);
+ async listMealPlans(fromDate?: string, toDate?: string, mealType?: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listMealPlans(fromDate, toDate, mealType, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
/**
@@ -15768,78 +13219,6 @@ export const ApiApiFp = function(configuration?: Configuration) {
const localVarAxiosArgs = await localVarAxiosParamCreator.listMealTypes(options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
- /**
- *
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async listOpenDataCategorys(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> {
- const localVarAxiosArgs = await localVarAxiosParamCreator.listOpenDataCategorys(options);
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
- },
- /**
- *
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async listOpenDataConversions(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> {
- const localVarAxiosArgs = await localVarAxiosParamCreator.listOpenDataConversions(options);
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
- },
- /**
- *
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async listOpenDataFoods(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> {
- const localVarAxiosArgs = await localVarAxiosParamCreator.listOpenDataFoods(options);
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
- },
- /**
- *
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async listOpenDataPropertys(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> {
- const localVarAxiosArgs = await localVarAxiosParamCreator.listOpenDataPropertys(options);
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
- },
- /**
- *
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async listOpenDataStatisticsViewSets(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> {
- const localVarAxiosArgs = await localVarAxiosParamCreator.listOpenDataStatisticsViewSets(options);
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
- },
- /**
- *
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async listOpenDataStores(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> {
- const localVarAxiosArgs = await localVarAxiosParamCreator.listOpenDataStores(options);
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
- },
- /**
- *
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async listOpenDataUnits(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> {
- const localVarAxiosArgs = await localVarAxiosParamCreator.listOpenDataUnits(options);
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
- },
- /**
- *
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async listOpenDataVersions(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> {
- const localVarAxiosArgs = await localVarAxiosParamCreator.listOpenDataVersions(options);
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
- },
/**
*
* @param {*} [options] Override http request option.
@@ -16308,83 +13687,6 @@ export const ApiApiFp = function(configuration?: Configuration) {
const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateMealType(id, mealType, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
- /**
- *
- * @param {string} id A unique integer value identifying this open data category.
- * @param {OpenDataCategory} [openDataCategory]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async partialUpdateOpenDataCategory(id: string, openDataCategory?: OpenDataCategory, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
- const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateOpenDataCategory(id, openDataCategory, options);
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
- },
- /**
- *
- * @param {string} id A unique integer value identifying this open data conversion.
- * @param {OpenDataConversion} [openDataConversion]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async partialUpdateOpenDataConversion(id: string, openDataConversion?: OpenDataConversion, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
- const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateOpenDataConversion(id, openDataConversion, options);
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
- },
- /**
- *
- * @param {string} id A unique integer value identifying this open data food.
- * @param {OpenDataFood} [openDataFood]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async partialUpdateOpenDataFood(id: string, openDataFood?: OpenDataFood, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
- const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateOpenDataFood(id, openDataFood, options);
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
- },
- /**
- *
- * @param {string} id A unique integer value identifying this open data property.
- * @param {OpenDataProperty} [openDataProperty]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async partialUpdateOpenDataProperty(id: string, openDataProperty?: OpenDataProperty, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
- const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateOpenDataProperty(id, openDataProperty, options);
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
- },
- /**
- *
- * @param {string} id A unique integer value identifying this open data store.
- * @param {OpenDataStore} [openDataStore]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async partialUpdateOpenDataStore(id: string, openDataStore?: OpenDataStore, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
- const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateOpenDataStore(id, openDataStore, options);
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
- },
- /**
- *
- * @param {string} id A unique integer value identifying this open data unit.
- * @param {OpenDataUnit} [openDataUnit]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async partialUpdateOpenDataUnit(id: string, openDataUnit?: OpenDataUnit, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
- const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateOpenDataUnit(id, openDataUnit, options);
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
- },
- /**
- *
- * @param {string} id A unique integer value identifying this open data version.
- * @param {OpenDataVersion} [openDataVersion]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async partialUpdateOpenDataVersion(id: string, openDataVersion?: OpenDataVersion, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
- const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateOpenDataVersion(id, openDataVersion, options);
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
- },
/**
*
* @param {string} id A unique integer value identifying this property.
@@ -16702,16 +14004,6 @@ export const ApiApiFp = function(configuration?: Configuration) {
const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveExportLog(id, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
- /**
- *
- * @param {string} id
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async retrieveFDCViewSet(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
- const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveFDCViewSet(id, options);
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
- },
/**
*
* @param {string} id A unique integer value identifying this food.
@@ -16793,83 +14085,13 @@ export const ApiApiFp = function(configuration?: Configuration) {
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
/**
- * returns list of meal types created by the requesting user ordered by the order field.
- * @param {string} id A unique integer value identifying this meal type.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async retrieveMealType(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
- const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveMealType(id, options);
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
- },
- /**
- *
- * @param {string} id A unique integer value identifying this open data category.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async retrieveOpenDataCategory(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
- const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveOpenDataCategory(id, options);
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
- },
- /**
- *
- * @param {string} id A unique integer value identifying this open data conversion.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async retrieveOpenDataConversion(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
- const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveOpenDataConversion(id, options);
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
- },
- /**
- *
- * @param {string} id A unique integer value identifying this open data food.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async retrieveOpenDataFood(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
- const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveOpenDataFood(id, options);
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
- },
- /**
- *
- * @param {string} id A unique integer value identifying this open data property.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async retrieveOpenDataProperty(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
- const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveOpenDataProperty(id, options);
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
- },
- /**
- *
- * @param {string} id A unique integer value identifying this open data store.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async retrieveOpenDataStore(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
- const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveOpenDataStore(id, options);
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
- },
- /**
- *
- * @param {string} id A unique integer value identifying this open data unit.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async retrieveOpenDataUnit(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
- const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveOpenDataUnit(id, options);
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
- },
- /**
- *
- * @param {string} id A unique integer value identifying this open data version.
+ * returns list of meal types created by the requesting user ordered by the order field.
+ * @param {string} id A unique integer value identifying this meal type.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- async retrieveOpenDataVersion(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
- const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveOpenDataVersion(id, options);
+ async retrieveMealType(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveMealType(id, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
/**
@@ -17297,83 +14519,6 @@ export const ApiApiFp = function(configuration?: Configuration) {
const localVarAxiosArgs = await localVarAxiosParamCreator.updateMealType(id, mealType, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
- /**
- *
- * @param {string} id A unique integer value identifying this open data category.
- * @param {OpenDataCategory} [openDataCategory]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async updateOpenDataCategory(id: string, openDataCategory?: OpenDataCategory, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateOpenDataCategory(id, openDataCategory, options);
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
- },
- /**
- *
- * @param {string} id A unique integer value identifying this open data conversion.
- * @param {OpenDataConversion} [openDataConversion]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async updateOpenDataConversion(id: string, openDataConversion?: OpenDataConversion, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateOpenDataConversion(id, openDataConversion, options);
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
- },
- /**
- *
- * @param {string} id A unique integer value identifying this open data food.
- * @param {OpenDataFood} [openDataFood]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async updateOpenDataFood(id: string, openDataFood?: OpenDataFood, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateOpenDataFood(id, openDataFood, options);
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
- },
- /**
- *
- * @param {string} id A unique integer value identifying this open data property.
- * @param {OpenDataProperty} [openDataProperty]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async updateOpenDataProperty(id: string, openDataProperty?: OpenDataProperty, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateOpenDataProperty(id, openDataProperty, options);
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
- },
- /**
- *
- * @param {string} id A unique integer value identifying this open data store.
- * @param {OpenDataStore} [openDataStore]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async updateOpenDataStore(id: string, openDataStore?: OpenDataStore, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateOpenDataStore(id, openDataStore, options);
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
- },
- /**
- *
- * @param {string} id A unique integer value identifying this open data unit.
- * @param {OpenDataUnit} [openDataUnit]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async updateOpenDataUnit(id: string, openDataUnit?: OpenDataUnit, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateOpenDataUnit(id, openDataUnit, options);
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
- },
- /**
- *
- * @param {string} id A unique integer value identifying this open data version.
- * @param {OpenDataVersion} [openDataVersion]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- async updateOpenDataVersion(id: string, openDataVersion?: OpenDataVersion, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateOpenDataVersion(id, openDataVersion, options);
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
- },
/**
*
* @param {string} id A unique integer value identifying this property.
@@ -17713,69 +14858,6 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?:
createMealType(mealType?: MealType, options?: any): AxiosPromise {
return localVarFp.createMealType(mealType, options).then((request) => request(axios, basePath));
},
- /**
- *
- * @param {OpenDataCategory} [openDataCategory]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- createOpenDataCategory(openDataCategory?: OpenDataCategory, options?: any): AxiosPromise {
- return localVarFp.createOpenDataCategory(openDataCategory, options).then((request) => request(axios, basePath));
- },
- /**
- *
- * @param {OpenDataConversion} [openDataConversion]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- createOpenDataConversion(openDataConversion?: OpenDataConversion, options?: any): AxiosPromise {
- return localVarFp.createOpenDataConversion(openDataConversion, options).then((request) => request(axios, basePath));
- },
- /**
- *
- * @param {OpenDataFood} [openDataFood]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- createOpenDataFood(openDataFood?: OpenDataFood, options?: any): AxiosPromise {
- return localVarFp.createOpenDataFood(openDataFood, options).then((request) => request(axios, basePath));
- },
- /**
- *
- * @param {OpenDataProperty} [openDataProperty]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- createOpenDataProperty(openDataProperty?: OpenDataProperty, options?: any): AxiosPromise {
- return localVarFp.createOpenDataProperty(openDataProperty, options).then((request) => request(axios, basePath));
- },
- /**
- *
- * @param {OpenDataStore} [openDataStore]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- createOpenDataStore(openDataStore?: OpenDataStore, options?: any): AxiosPromise {
- return localVarFp.createOpenDataStore(openDataStore, options).then((request) => request(axios, basePath));
- },
- /**
- *
- * @param {OpenDataUnit} [openDataUnit]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- createOpenDataUnit(openDataUnit?: OpenDataUnit, options?: any): AxiosPromise {
- return localVarFp.createOpenDataUnit(openDataUnit, options).then((request) => request(axios, basePath));
- },
- /**
- *
- * @param {OpenDataVersion} [openDataVersion]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- createOpenDataVersion(openDataVersion?: OpenDataVersion, options?: any): AxiosPromise {
- return localVarFp.createOpenDataVersion(openDataVersion, options).then((request) => request(axios, basePath));
- },
/**
*
* @param {Property} [property]
@@ -18078,69 +15160,6 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?:
destroyMealType(id: string, options?: any): AxiosPromise {
return localVarFp.destroyMealType(id, options).then((request) => request(axios, basePath));
},
- /**
- *
- * @param {string} id A unique integer value identifying this open data category.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- destroyOpenDataCategory(id: string, options?: any): AxiosPromise {
- return localVarFp.destroyOpenDataCategory(id, options).then((request) => request(axios, basePath));
- },
- /**
- *
- * @param {string} id A unique integer value identifying this open data conversion.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- destroyOpenDataConversion(id: string, options?: any): AxiosPromise {
- return localVarFp.destroyOpenDataConversion(id, options).then((request) => request(axios, basePath));
- },
- /**
- *
- * @param {string} id A unique integer value identifying this open data food.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- destroyOpenDataFood(id: string, options?: any): AxiosPromise {
- return localVarFp.destroyOpenDataFood(id, options).then((request) => request(axios, basePath));
- },
- /**
- *
- * @param {string} id A unique integer value identifying this open data property.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- destroyOpenDataProperty(id: string, options?: any): AxiosPromise {
- return localVarFp.destroyOpenDataProperty(id, options).then((request) => request(axios, basePath));
- },
- /**
- *
- * @param {string} id A unique integer value identifying this open data store.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- destroyOpenDataStore(id: string, options?: any): AxiosPromise {
- return localVarFp.destroyOpenDataStore(id, options).then((request) => request(axios, basePath));
- },
- /**
- *
- * @param {string} id A unique integer value identifying this open data unit.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- destroyOpenDataUnit(id: string, options?: any): AxiosPromise {
- return localVarFp.destroyOpenDataUnit(id, options).then((request) => request(axios, basePath));
- },
- /**
- *
- * @param {string} id A unique integer value identifying this open data version.
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- destroyOpenDataVersion(id: string, options?: any): AxiosPromise {
- return localVarFp.destroyOpenDataVersion(id, options).then((request) => request(axios, basePath));
- },
/**
*
* @param {string} id A unique integer value identifying this property.
@@ -18313,7 +15332,7 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?:
return localVarFp.destroyViewLog(id, options).then((request) => request(axios, basePath));
},
/**
- * updates the food with all possible data from the FDC Api (only adds new, does not change existing properties)
+ * updates the food with all possible data from the FDC Api if properties with a fdc_id already exist they will be overridden, if existing properties don\'t have a fdc_id they won\'t be changed
* @param {string} id A unique integer value identifying this food.
* @param {Food} [food]
* @param {*} [options] Override http request option.
@@ -18456,12 +15475,15 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?:
return localVarFp.listKeywords(query, root, tree, page, pageSize, options).then((request) => request(axios, basePath));
},
/**
- * optional parameters - **from_date**: filter from (inclusive) a certain date onward - **to_date**: filter upward to (inclusive) certain date
+ * optional parameters - **from_date**: filter from (inclusive) a certain date onward - **to_date**: filter upward to (inclusive) certain date - **meal_type**: filter meal plans based on meal_type ID
+ * @param {string} [fromDate] Filter meal plans from date (inclusive) in the format of YYYY-MM-DD.
+ * @param {string} [toDate] Filter meal plans to date (inclusive) in the format of YYYY-MM-DD.
+ * @param {number} [mealType] Query string matched (fuzzy) against object name.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- listMealPlans(options?: any): AxiosPromise> {
- return localVarFp.listMealPlans(options).then((request) => request(axios, basePath));
+ listMealPlans(fromDate?: string, toDate?: string, mealType?: number, options?: any): AxiosPromise> {
+ return localVarFp.listMealPlans(fromDate, toDate, mealType, options).then((request) => request(axios, basePath));
},
/**
* returns list of meal types created by the requesting user ordered by the order field.
@@ -18471,70 +15493,6 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?:
listMealTypes(options?: any): AxiosPromise> {
return localVarFp.listMealTypes(options).then((request) => request(axios, basePath));
},
- /**
- *
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- listOpenDataCategorys(options?: any): AxiosPromise> {
- return localVarFp.listOpenDataCategorys(options).then((request) => request(axios, basePath));
- },
- /**
- *
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- listOpenDataConversions(options?: any): AxiosPromise> {
- return localVarFp.listOpenDataConversions(options).then((request) => request(axios, basePath));
- },
- /**
- *
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- listOpenDataFoods(options?: any): AxiosPromise> {
- return localVarFp.listOpenDataFoods(options).then((request) => request(axios, basePath));
- },
- /**
- *
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- listOpenDataPropertys(options?: any): AxiosPromise> {
- return localVarFp.listOpenDataPropertys(options).then((request) => request(axios, basePath));
- },
- /**
- *
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- listOpenDataStatisticsViewSets(options?: any): AxiosPromise> {
- return localVarFp.listOpenDataStatisticsViewSets(options).then((request) => request(axios, basePath));
- },
- /**
- *
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- listOpenDataStores(options?: any): AxiosPromise> {
- return localVarFp.listOpenDataStores(options).then((request) => request(axios, basePath));
- },
- /**
- *
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- listOpenDataUnits(options?: any): AxiosPromise> {
- return localVarFp.listOpenDataUnits(options).then((request) => request(axios, basePath));
- },
- /**
- *
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- listOpenDataVersions(options?: any): AxiosPromise> {
- return localVarFp.listOpenDataVersions(options).then((request) => request(axios, basePath));
- },
/**
*
* @param {*} [options] Override http request option.
@@ -18882,154 +15840,84 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?:
return localVarFp.partialUpdateCustomFilter(id, customFilter, options).then((request) => request(axios, basePath));
},
/**
- *
- * @param {string} id A unique integer value identifying this export log.
- * @param {ExportLog} [exportLog]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- partialUpdateExportLog(id: string, exportLog?: ExportLog, options?: any): AxiosPromise {
- return localVarFp.partialUpdateExportLog(id, exportLog, options).then((request) => request(axios, basePath));
- },
- /**
- *
- * @param {string} id A unique integer value identifying this food.
- * @param {Food} [food]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- partialUpdateFood(id: string, food?: Food, options?: any): AxiosPromise {
- return localVarFp.partialUpdateFood(id, food, options).then((request) => request(axios, basePath));
- },
- /**
- *
- * @param {string} id A unique integer value identifying this import log.
- * @param {ImportLog} [importLog]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- partialUpdateImportLog(id: string, importLog?: ImportLog, options?: any): AxiosPromise {
- return localVarFp.partialUpdateImportLog(id, importLog, options).then((request) => request(axios, basePath));
- },
- /**
- *
- * @param {string} id A unique integer value identifying this ingredient.
- * @param {Ingredient} [ingredient]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- partialUpdateIngredient(id: string, ingredient?: Ingredient, options?: any): AxiosPromise {
- return localVarFp.partialUpdateIngredient(id, ingredient, options).then((request) => request(axios, basePath));
- },
- /**
- *
- * @param {string} id A unique integer value identifying this invite link.
- * @param {InviteLink} [inviteLink]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- partialUpdateInviteLink(id: string, inviteLink?: InviteLink, options?: any): AxiosPromise {
- return localVarFp.partialUpdateInviteLink(id, inviteLink, options).then((request) => request(axios, basePath));
- },
- /**
- *
- * @param {string} id A unique integer value identifying this keyword.
- * @param {Keyword} [keyword]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- partialUpdateKeyword(id: string, keyword?: Keyword, options?: any): AxiosPromise {
- return localVarFp.partialUpdateKeyword(id, keyword, options).then((request) => request(axios, basePath));
- },
- /**
- *
- * @param {string} id A unique integer value identifying this meal plan.
- * @param {MealPlan} [mealPlan]
- * @param {*} [options] Override http request option.
- * @throws {RequiredError}
- */
- partialUpdateMealPlan(id: string, mealPlan?: MealPlan, options?: any): AxiosPromise {
- return localVarFp.partialUpdateMealPlan(id, mealPlan, options).then((request) => request(axios, basePath));
- },
- /**
- * returns list of meal types created by the requesting user ordered by the order field.
- * @param {string} id A unique integer value identifying this meal type.
- * @param {MealType} [mealType]
+ *
+ * @param {string} id A unique integer value identifying this export log.
+ * @param {ExportLog} [exportLog]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- partialUpdateMealType(id: string, mealType?: MealType, options?: any): AxiosPromise {
- return localVarFp.partialUpdateMealType(id, mealType, options).then((request) => request(axios, basePath));
+ partialUpdateExportLog(id: string, exportLog?: ExportLog, options?: any): AxiosPromise {
+ return localVarFp.partialUpdateExportLog(id, exportLog, options).then((request) => request(axios, basePath));
},
/**
*
- * @param {string} id A unique integer value identifying this open data category.
- * @param {OpenDataCategory} [openDataCategory]
+ * @param {string} id A unique integer value identifying this food.
+ * @param {Food} [food]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- partialUpdateOpenDataCategory(id: string, openDataCategory?: OpenDataCategory, options?: any): AxiosPromise {
- return localVarFp.partialUpdateOpenDataCategory(id, openDataCategory, options).then((request) => request(axios, basePath));
+ partialUpdateFood(id: string, food?: Food, options?: any): AxiosPromise {
+ return localVarFp.partialUpdateFood(id, food, options).then((request) => request(axios, basePath));
},
/**
*
- * @param {string} id A unique integer value identifying this open data conversion.
- * @param {OpenDataConversion} [openDataConversion]
+ * @param {string} id A unique integer value identifying this import log.
+ * @param {ImportLog} [importLog]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- partialUpdateOpenDataConversion(id: string, openDataConversion?: OpenDataConversion, options?: any): AxiosPromise {
- return localVarFp.partialUpdateOpenDataConversion(id, openDataConversion, options).then((request) => request(axios, basePath));
+ partialUpdateImportLog(id: string, importLog?: ImportLog, options?: any): AxiosPromise {
+ return localVarFp.partialUpdateImportLog(id, importLog, options).then((request) => request(axios, basePath));
},
/**
*
- * @param {string} id A unique integer value identifying this open data food.
- * @param {OpenDataFood} [openDataFood]
+ * @param {string} id A unique integer value identifying this ingredient.
+ * @param {Ingredient} [ingredient]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- partialUpdateOpenDataFood(id: string, openDataFood?: OpenDataFood, options?: any): AxiosPromise {
- return localVarFp.partialUpdateOpenDataFood(id, openDataFood, options).then((request) => request(axios, basePath));
+ partialUpdateIngredient(id: string, ingredient?: Ingredient, options?: any): AxiosPromise {
+ return localVarFp.partialUpdateIngredient(id, ingredient, options).then((request) => request(axios, basePath));
},
/**
*
- * @param {string} id A unique integer value identifying this open data property.
- * @param {OpenDataProperty} [openDataProperty]
+ * @param {string} id A unique integer value identifying this invite link.
+ * @param {InviteLink} [inviteLink]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
- partialUpdateOpenDataProperty(id: string, openDataProperty?: OpenDataProperty, options?: any): AxiosPromise {
- return localVarFp.partialUpdateOpenDataProperty(id, openDataProperty, options).then((request) => request(axios, basePath));
+ partialUpdateInviteLink(id: string, inviteLink?: InviteLink, options?: any): AxiosPromise