@@ -42,6 +43,7 @@ import { ApiMixin, StandardToasts, ToastMixin, getUserPreference } from "@/utils
import CheckboxInput from "@/components/Modals/CheckboxInput"
import LookupInput from "@/components/Modals/LookupInput"
import TextInput from "@/components/Modals/TextInput"
+import DateInput from "@/components/Modals/DateInput"
import EmojiInput from "@/components/Modals/EmojiInput"
import ChoiceInput from "@/components/Modals/ChoiceInput"
import FileInput from "@/components/Modals/FileInput"
@@ -50,7 +52,7 @@ import HelpBadge from "@/components/Badges/Help"
export default {
name: "GenericModalForm",
- components: { FileInput, CheckboxInput, LookupInput, TextInput, EmojiInput, ChoiceInput, SmallText, HelpBadge },
+ components: { FileInput, CheckboxInput, LookupInput, TextInput, EmojiInput, ChoiceInput, SmallText, HelpBadge,DateInput },
mixins: [ApiMixin, ToastMixin],
props: {
model: { required: true, type: Object },
diff --git a/vue/src/locales/en.json b/vue/src/locales/en.json
index 5f550d8d..e2baea25 100644
--- a/vue/src/locales/en.json
+++ b/vue/src/locales/en.json
@@ -14,6 +14,9 @@
"success_moving_resource": "Successfully moved a resource!",
"success_merging_resource": "Successfully merged a resource!",
"file_upload_disabled": "File upload is not enabled for your space.",
+ "warning_space_delete": "You can delete your space including all recipes, shopping lists, meal plans and whatever else you have created. This cannot be undone! Are you sure you want to do this ?",
+ "food_inherit_info": "Fields on food that should be inherited by default.",
+ "facet_count_info": "Show recipe counts on search filters.",
"step_time_minutes": "Step time in minutes",
"confirm_delete": "Are you sure you want to delete this {object}?",
"import_running": "Import running, please wait!",
@@ -125,6 +128,8 @@
"Move": "Move",
"Merge": "Merge",
"Parent": "Parent",
+ "Copy Link": "Copy Link",
+ "Copy Token": "Copy Token",
"delete_confirmation": "Are you sure that you want to delete {source}?",
"move_confirmation": "Move
{child} to parent
{parent}",
"merge_confirmation": "Replace
{source} with
{target}",
@@ -262,6 +267,8 @@
"New_Cookbook": "New cookbook",
"Hide_Keyword": "Hide keywords",
"Clear": "Clear",
+ "Users": "Users",
+ "Invites": "Invites",
"err_move_self": "Cannot move item to itself",
"nothing": "Nothing to do",
"err_merge_self": "Cannot merge item with itself",
@@ -340,6 +347,7 @@
"filter": "Filter",
"Website": "Website",
"App": "App",
+ "Message": "Message",
"Bookmarklet": "Bookmarklet",
"click_image_import": "Click the image you want to import for this recipe",
"no_more_images_found": "No additional images found on Website.",
@@ -351,7 +359,9 @@
"search_create_help_text": "Create a new recipe directly in Tandoor.",
"warning_duplicate_filter": "Warning: Due to technical limitations having multiple filters of the same combination (and/or/not) might yield unexpected results.",
"reset_children": "Reset Child Inheritance",
- "reset_children_help": "Overwrite all children with values from inherited fields. Inheritted fields of children will be set to Inherit Fields unless Children Inherit Fields is set.",
+ "reset_children_help": "Overwrite all children with values from inherited fields. Inherited fields of children will be set to Inherit Fields unless Children Inherit Fields is set.",
+ "reset_food_inheritance": "Reset Inheritance",
+ "reset_food_inheritance_info": "Reset all foods to default inherited fields and their parent values.",
"substitute_help": "Substitutes are considered when searching for recipes that can be made with onhand ingredients.",
"substitute_siblings_help": "All food that share a parent of this food are considered substitutes.",
"substitute_children_help": "All food that are children of this food are considered substitutes.",
@@ -360,7 +370,7 @@
"SubstituteOnHand": "You have a substitute on hand.",
"ChildInheritFields": "Children Inherit Fields",
"ChildInheritFields_help": "Children will inherit these fields by default.",
- "InheritFields_help": "The values of these fields will be inheritted from parent (Exception: blank shopping categories are not inheritted)",
+ "InheritFields_help": "The values of these fields will be inherited from parent (Exception: blank shopping categories are not inherited)",
"last_viewed": "Last Viewed",
"created_on": "Created On",
"updatedon": "Updated On",
@@ -412,5 +422,6 @@
"Warning_Delete_Supermarket_Category": "Deleting a supermarket category will also delete all relations to foods. Are you sure?",
"New_Supermarket": "Create new supermarket",
"New_Supermarket_Category": "Create new supermarket category",
- "Are_You_Sure": "Are you sure?"
+ "Are_You_Sure": "Are you sure?",
+ "Valid Until": "Valid Until"
}
diff --git a/vue/src/utils/models.js b/vue/src/utils/models.js
index 77562b57..53b72097 100644
--- a/vue/src/utils/models.js
+++ b/vue/src/utils/models.js
@@ -23,7 +23,7 @@ export class Models {
false: undefined,
},
},
- tree: { default: undefined },
+ tree: {default: undefined},
},
},
delete: {
@@ -50,7 +50,7 @@ export class Models {
type: "lookup",
field: "target",
list: "self",
- sticky_options: [{ id: 0, name: "tree_root" }],
+ sticky_options: [{id: 0, name: "tree_root"}],
},
},
},
@@ -71,7 +71,7 @@ export class Models {
food_onhand: true,
shopping: true,
},
- tags: [{ field: "supermarket_category", label: "name", color: "info" }],
+ tags: [{field: "supermarket_category", label: "name", color: "info"}],
// REQUIRED: unordered array of fields that can be set during create
create: {
// if not defined partialUpdate will use the same parameters, prepending 'id'
@@ -159,7 +159,7 @@ export class Models {
field: "substitute_siblings",
label: "substitute_siblings", // form.label always translated in utils.getForm()
help_text: "substitute_siblings_help", // form.help_text always translated
- condition: { field: "parent", value: true, condition: "field_exists" },
+ condition: {field: "parent", value: true, condition: "field_exists"},
},
substitute_children: {
form_field: true,
@@ -168,7 +168,7 @@ export class Models {
field: "substitute_children",
label: "substitute_children",
help_text: "substitute_children_help",
- condition: { field: "numchild", value: 0, condition: "gt" },
+ condition: {field: "numchild", value: 0, condition: "gt"},
},
inherit_fields: {
form_field: true,
@@ -178,7 +178,7 @@ export class Models {
field: "inherit_fields",
list: "FOOD_INHERIT_FIELDS",
label: "InheritFields",
- condition: { field: "food_children_exist", value: true, condition: "preference_equals" },
+ condition: {field: "food_children_exist", value: true, condition: "preference_equals"},
help_text: "InheritFields_help",
},
child_inherit_fields: {
@@ -189,7 +189,7 @@ export class Models {
field: "child_inherit_fields",
list: "FOOD_INHERIT_FIELDS",
label: "ChildInheritFields", // form.label always translated in utils.getForm()
- condition: { field: "numchild", value: 0, condition: "gt" },
+ condition: {field: "numchild", value: 0, condition: "gt"},
help_text: "ChildInheritFields_help", // form.help_text always translated
},
reset_inherit: {
@@ -199,7 +199,7 @@ export class Models {
field: "reset_inherit",
label: "reset_children",
help_text: "reset_children_help",
- condition: { field: "numchild", value: 0, condition: "gt" },
+ condition: {field: "numchild", value: 0, condition: "gt"},
},
form_function: "FoodCreateDefault",
},
@@ -399,7 +399,7 @@ export class Models {
static SUPERMARKET = {
name: "Supermarket",
apiName: "Supermarket",
- ordered_tags: [{ field: "category_to_supermarket", label: "category::name", color: "info" }],
+ ordered_tags: [{field: "category_to_supermarket", label: "category::name", color: "info"}],
create: {
params: [["name", "description", "category_to_supermarket"]],
form: {
@@ -469,9 +469,9 @@ export class Models {
form_field: true,
type: "choice",
options: [
- { value: "FOOD_ALIAS", text: "Food_Alias" },
- { value: "UNIT_ALIAS", text: "Unit_Alias" },
- { value: "KEYWORD_ALIAS", text: "Keyword_Alias" },
+ {value: "FOOD_ALIAS", text: "Food_Alias"},
+ {value: "UNIT_ALIAS", text: "Unit_Alias"},
+ {value: "KEYWORD_ALIAS", text: "Keyword_Alias"},
],
field: "type",
label: "Type",
@@ -663,12 +663,53 @@ export class Models {
},
},
}
+
+ static INVITE_LINK = {
+ name: "InviteLink",
+ apiName: "InviteLink",
+ paginated: false,
+ create: {
+ params: [["email", "group", "valid_until"]],
+ form: {
+ email: {
+ form_field: true,
+ type: "text",
+ field: "email",
+ label: "Email",
+ placeholder: "",
+ },
+ group: {
+ form_field: true,
+ type: "lookup",
+ field: "group",
+ list: "GROUP",
+ list_label: "name",
+ label: "Group",
+ placeholder: "",
+ },
+ valid_until: {
+ form_field: true,
+ type: "date",
+ field: "valid_until",
+ label: "Valid Until",
+ placeholder: "",
+ },
+ },
+ },
+ }
+
static USER = {
name: "User",
apiName: "User",
paginated: false,
}
+ static GROUP = {
+ name: "Group",
+ apiName: "Group",
+ paginated: false,
+ }
+
static STEP = {
name: "Step",
apiName: "Step",
@@ -694,7 +735,7 @@ export class Actions {
},
],
},
- ok_label: { function: "translate", phrase: "Save" },
+ ok_label: {function: "translate", phrase: "Save"},
},
}
static UPDATE = {
@@ -729,7 +770,7 @@ export class Actions {
},
],
},
- ok_label: { function: "translate", phrase: "Delete" },
+ ok_label: {function: "translate", phrase: "Delete"},
instruction: {
form_field: true,
type: "instruction",
@@ -756,17 +797,17 @@ export class Actions {
suffix: "s",
params: ["query", "page", "pageSize", "options"],
config: {
- query: { default: undefined },
- page: { default: 1 },
- pageSize: { default: 25 },
+ query: {default: undefined},
+ page: {default: 1},
+ pageSize: {default: 25},
},
}
static MERGE = {
function: "merge",
params: ["source", "target"],
config: {
- source: { type: "string" },
- target: { type: "string" },
+ source: {type: "string"},
+ target: {type: "string"},
},
form: {
title: {
@@ -781,7 +822,7 @@ export class Actions {
},
],
},
- ok_label: { function: "translate", phrase: "Merge" },
+ ok_label: {function: "translate", phrase: "Merge"},
instruction: {
form_field: true,
type: "instruction",
@@ -815,8 +856,8 @@ export class Actions {
function: "move",
params: ["source", "target"],
config: {
- source: { type: "string" },
- target: { type: "string" },
+ source: {type: "string"},
+ target: {type: "string"},
},
form: {
title: {
@@ -831,7 +872,7 @@ export class Actions {
},
],
},
- ok_label: { function: "translate", phrase: "Move" },
+ ok_label: {function: "translate", phrase: "Move"},
instruction: {
form_field: true,
type: "instruction",
diff --git a/vue/src/utils/openapi/api.ts b/vue/src/utils/openapi/api.ts
index 0ec1cee4..43ec95f1 100644
--- a/vue/src/utils/openapi/api.ts
+++ b/vue/src/utils/openapi/api.ts
@@ -21,6 +21,31 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
// @ts-ignore
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base';
+/**
+ *
+ * @export
+ * @interface AuthToken
+ */
+export interface AuthToken {
+ /**
+ *
+ * @type {string}
+ * @memberof AuthToken
+ */
+ username: string;
+ /**
+ *
+ * @type {string}
+ * @memberof AuthToken
+ */
+ password: string;
+ /**
+ *
+ * @type {string}
+ * @memberof AuthToken
+ */
+ token?: string;
+}
/**
*
* @export
@@ -595,6 +620,25 @@ export interface FoodSupermarketCategory {
*/
description?: string | null;
}
+/**
+ *
+ * @export
+ * @interface Group
+ */
+export interface Group {
+ /**
+ *
+ * @type {number}
+ * @memberof Group
+ */
+ id?: number;
+ /**
+ *
+ * @type {string}
+ * @memberof Group
+ */
+ name: string;
+}
/**
*
* @export
@@ -1271,6 +1315,61 @@ export interface InlineResponse2009 {
*/
results?: Array
;
}
+/**
+ *
+ * @export
+ * @interface InviteLink
+ */
+export interface InviteLink {
+ /**
+ *
+ * @type {number}
+ * @memberof InviteLink
+ */
+ id?: number;
+ /**
+ *
+ * @type {string}
+ * @memberof InviteLink
+ */
+ uuid?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof InviteLink
+ */
+ email?: string;
+ /**
+ *
+ * @type {number}
+ * @memberof InviteLink
+ */
+ group: number;
+ /**
+ *
+ * @type {string}
+ * @memberof InviteLink
+ */
+ valid_until?: string;
+ /**
+ *
+ * @type {number}
+ * @memberof InviteLink
+ */
+ used_by?: number | null;
+ /**
+ *
+ * @type {string}
+ * @memberof InviteLink
+ */
+ created_by?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof InviteLink
+ */
+ created_at?: string;
+}
/**
*
* @export
@@ -2866,6 +2965,103 @@ export interface ShoppingListSupermarketCategoryToSupermarket {
*/
order?: number;
}
+/**
+ *
+ * @export
+ * @interface Space
+ */
+export interface Space {
+ /**
+ *
+ * @type {number}
+ * @memberof Space
+ */
+ id?: number;
+ /**
+ *
+ * @type {string}
+ * @memberof Space
+ */
+ name?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof Space
+ */
+ created_by?: string | null;
+ /**
+ *
+ * @type {string}
+ * @memberof Space
+ */
+ created_at?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof Space
+ */
+ message?: string;
+ /**
+ *
+ * @type {number}
+ * @memberof Space
+ */
+ max_recipes?: number;
+ /**
+ * Maximum file storage for space in MB. 0 for unlimited, -1 to disable file upload.
+ * @type {number}
+ * @memberof Space
+ */
+ max_file_storage_mb?: number;
+ /**
+ *
+ * @type {number}
+ * @memberof Space
+ */
+ max_users?: number;
+ /**
+ *
+ * @type {boolean}
+ * @memberof Space
+ */
+ allow_sharing?: boolean;
+ /**
+ *
+ * @type {boolean}
+ * @memberof Space
+ */
+ demo?: boolean;
+ /**
+ *
+ * @type {Array}
+ * @memberof Space
+ */
+ food_inherit?: Array;
+ /**
+ *
+ * @type {boolean}
+ * @memberof Space
+ */
+ show_facet_count?: boolean;
+ /**
+ *
+ * @type {string}
+ * @memberof Space
+ */
+ user_count?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof Space
+ */
+ recipe_count?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof Space
+ */
+ file_size_mb?: string;
+}
/**
*
* @export
@@ -3467,6 +3663,68 @@ export enum UserPreferenceSearchStyleEnum {
New = 'NEW'
}
+/**
+ *
+ * @export
+ * @interface UserSpace
+ */
+export interface UserSpace {
+ /**
+ *
+ * @type {number}
+ * @memberof UserSpace
+ */
+ id?: number;
+ /**
+ *
+ * @type {ShoppingListCreatedBy}
+ * @memberof UserSpace
+ */
+ user?: ShoppingListCreatedBy;
+ /**
+ *
+ * @type {string}
+ * @memberof UserSpace
+ */
+ space?: string;
+ /**
+ *
+ * @type {Array}
+ * @memberof UserSpace
+ */
+ groups: Array;
+ /**
+ *
+ * @type {string}
+ * @memberof UserSpace
+ */
+ created_at?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof UserSpace
+ */
+ updated_at?: string;
+}
+/**
+ *
+ * @export
+ * @interface UserSpaceGroups
+ */
+export interface UserSpaceGroups {
+ /**
+ *
+ * @type {number}
+ * @memberof UserSpaceGroups
+ */
+ id?: number;
+ /**
+ *
+ * @type {string}
+ * @memberof UserSpaceGroups
+ */
+ name: string;
+}
/**
*
* @export
@@ -3769,6 +4027,39 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
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]
@@ -4418,6 +4709,39 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
options: localVarRequestOptions,
};
},
+ /**
+ * function to retrieve a recipe from a given url or source string :param request: standard request with additional post parameters - url: url to use for importing recipe - data: if no url is given recipe is imported from provided source data - (optional) bookmarklet: id of bookmarklet import to use, overrides URL and data attributes :return: JsonResponse containing the parsed json, original html,json and images
+ * @param {any} [body]
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ createrecipeFromSource: async (body?: any, options: any = {}): Promise => {
+ const localVarPath = `/api/recipe-from-source/`;
+ // 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(body, localVarRequestOptions, configuration)
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
/**
*
* @param {string} id A unique integer value identifying this automation.
@@ -4673,6 +4997,39 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
+ setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ /**
+ *
+ * @param {string} id 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};
@@ -5267,6 +5624,39 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
+ setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ /**
+ *
+ * @param {string} id A unique integer value identifying this user space.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ destroyUserSpace: async (id: string, options: any = {}): Promise => {
+ // verify required parameter 'id' is not null or undefined
+ assertParamExists('destroyUserSpace', 'id', id)
+ const localVarPath = `/api/user-space/{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};
@@ -5595,6 +5985,35 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
+ setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ /**
+ *
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ listGroups: async (options: any = {}): Promise => {
+ const localVarPath = `/api/group/`;
+ // 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};
@@ -5673,6 +6092,35 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
+ setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ /**
+ *
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ listInviteLinks: async (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: '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};
@@ -6119,6 +6567,35 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
+ setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ /**
+ *
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ listSpaces: async (options: any = {}): Promise => {
+ const localVarPath = `/api/space/`;
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+
+
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -6464,6 +6941,35 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
+ setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ /**
+ *
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ listUserSpaces: async (options: any = {}): Promise => {
+ const localVarPath = `/api/user-space/`;
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
+ let baseOptions;
+ if (configuration) {
+ baseOptions = configuration.baseOptions;
+ }
+
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
+ const localVarHeaderParameter = {} as any;
+ const localVarQueryParameter = {} as any;
+
+
+
setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -7042,6 +7548,43 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
options: localVarRequestOptions,
};
},
+ /**
+ *
+ * @param {string} id A unique integer value identifying this invite link.
+ * @param {InviteLink} [inviteLink]
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ partialUpdateInviteLink: async (id: string, inviteLink?: InviteLink, options: any = {}): Promise => {
+ // verify required parameter 'id' is not null or undefined
+ assertParamExists('partialUpdateInviteLink', '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: '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(inviteLink, localVarRequestOptions, configuration)
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
/**
*
* @param {string} id A unique integer value identifying this keyword.
@@ -7375,6 +7918,43 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
options: localVarRequestOptions,
};
},
+ /**
+ *
+ * @param {string} id A unique integer value identifying this space.
+ * @param {Space} [space]
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ partialUpdateSpace: async (id: string, space?: Space, options: any = {}): Promise => {
+ // verify required parameter 'id' is not null or undefined
+ assertParamExists('partialUpdateSpace', 'id', id)
+ const localVarPath = `/api/space/{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(space, localVarRequestOptions, configuration)
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
/**
*
* @param {string} id A unique integer value identifying this step.
@@ -7730,6 +8310,43 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
options: localVarRequestOptions,
};
},
+ /**
+ *
+ * @param {string} id A unique integer value identifying this user space.
+ * @param {UserSpace} [userSpace]
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ partialUpdateUserSpace: async (id: string, userSpace?: UserSpace, options: any = {}): Promise => {
+ // verify required parameter 'id' is not null or undefined
+ assertParamExists('partialUpdateUserSpace', 'id', id)
+ const localVarPath = `/api/user-space/{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(userSpace, localVarRequestOptions, configuration)
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
/**
*
* @param {string} id A unique integer value identifying this view log.
@@ -8022,6 +8639,39 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
+ setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ /**
+ *
+ * @param {string} id A unique integer value identifying this group.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ retrieveGroup: async (id: string, options: any = {}): Promise => {
+ // verify required parameter 'id' is not null or undefined
+ assertParamExists('retrieveGroup', 'id', id)
+ const localVarPath = `/api/group/{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};
@@ -8088,6 +8738,39 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
+ setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ /**
+ *
+ * @param {string} id A unique integer value identifying this invite link.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ retrieveInviteLink: async (id: string, options: any = {}): Promise => {
+ // verify required parameter 'id' is not null or undefined
+ assertParamExists('retrieveInviteLink', '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: '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};
@@ -8385,6 +9068,39 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
+ setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ /**
+ *
+ * @param {string} id A unique integer value identifying this space.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ retrieveSpace: async (id: string, options: any = {}): Promise => {
+ // verify required parameter 'id' is not null or undefined
+ assertParamExists('retrieveSpace', 'id', id)
+ const localVarPath = `/api/space/{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};
@@ -8748,6 +9464,39 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
+ setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ /**
+ *
+ * @param {string} id A unique integer value identifying this user space.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ retrieveUserSpace: async (id: string, options: any = {}): Promise => {
+ // verify required parameter 'id' is not null or undefined
+ assertParamExists('retrieveUserSpace', 'id', id)
+ const localVarPath = `/api/user-space/{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};
@@ -9160,6 +9909,43 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
options: localVarRequestOptions,
};
},
+ /**
+ *
+ * @param {string} id A unique integer value identifying this invite link.
+ * @param {InviteLink} [inviteLink]
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ updateInviteLink: async (id: string, inviteLink?: InviteLink, options: any = {}): Promise => {
+ // verify required parameter 'id' is not null or undefined
+ 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);
+ 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(inviteLink, localVarRequestOptions, configuration)
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
/**
*
* @param {string} id A unique integer value identifying this keyword.
@@ -9848,6 +10634,43 @@ export const ApiApiAxiosParamCreator = function (configuration?: Configuration)
options: localVarRequestOptions,
};
},
+ /**
+ *
+ * @param {string} id A unique integer value identifying this user space.
+ * @param {UserSpace} [userSpace]
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ updateUserSpace: async (id: string, userSpace?: UserSpace, options: any = {}): Promise => {
+ // verify required parameter 'id' is not null or undefined
+ assertParamExists('updateUserSpace', 'id', id)
+ const localVarPath = `/api/user-space/{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(userSpace, localVarRequestOptions, configuration)
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
/**
*
* @param {string} id A unique integer value identifying this view log.
@@ -9975,6 +10798,16 @@ export const ApiApiFp = function(configuration?: Configuration) {
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]
@@ -10168,6 +11001,16 @@ export const ApiApiFp = function(configuration?: Configuration) {
const localVarAxiosArgs = await localVarAxiosParamCreator.createViewLog(viewLog, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
+ /**
+ * function to retrieve a recipe from a given url or source string :param request: standard request with additional post parameters - url: url to use for importing recipe - data: if no url is given recipe is imported from provided source data - (optional) bookmarklet: id of bookmarklet import to use, overrides URL and data attributes :return: JsonResponse containing the parsed json, original html,json and images
+ * @param {any} [body]
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async createrecipeFromSource(body?: any, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createrecipeFromSource(body, options);
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
+ },
/**
*
* @param {string} id A unique integer value identifying this automation.
@@ -10248,6 +11091,16 @@ export const ApiApiFp = function(configuration?: Configuration) {
const localVarAxiosArgs = await localVarAxiosParamCreator.destroyIngredient(id, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
+ /**
+ *
+ * @param {string} id A unique integer value identifying this invite link.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async destroyInviteLink(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.destroyInviteLink(id, options);
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
+ },
/**
*
* @param {string} id A unique integer value identifying this keyword.
@@ -10428,6 +11281,16 @@ export const ApiApiFp = function(configuration?: Configuration) {
const localVarAxiosArgs = await localVarAxiosParamCreator.destroyUserPreference(user, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
+ /**
+ *
+ * @param {string} id A unique integer value identifying this user space.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async destroyUserSpace(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.destroyUserSpace(id, options);
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
+ },
/**
*
* @param {string} id A unique integer value identifying this view log.
@@ -10522,6 +11385,15 @@ export const ApiApiFp = function(configuration?: Configuration) {
const localVarAxiosArgs = await localVarAxiosParamCreator.listFoods(query, root, tree, page, pageSize, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
+ /**
+ *
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async listGroups(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listGroups(options);
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
+ },
/**
*
* @param {number} [page] A page number within the paginated result set.
@@ -10544,6 +11416,15 @@ export const ApiApiFp = function(configuration?: Configuration) {
const localVarAxiosArgs = await localVarAxiosParamCreator.listIngredients(page, pageSize, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
+ /**
+ *
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async listInviteLinks(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listInviteLinks(options);
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
+ },
/**
*
* @param {string} [query] Query string matched against keyword name.
@@ -10662,6 +11543,15 @@ export const ApiApiFp = function(configuration?: Configuration) {
const localVarAxiosArgs = await localVarAxiosParamCreator.listShoppingLists(options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
+ /**
+ *
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async listSpaces(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listSpaces(options);
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
+ },
/**
*
* @param {number} [recipe] ID of recipe a step is part of. For multiple repeat parameter.
@@ -10763,6 +11653,15 @@ export const ApiApiFp = function(configuration?: Configuration) {
const localVarAxiosArgs = await localVarAxiosParamCreator.listUserPreferences(options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
+ /**
+ *
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async listUserSpaces(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listUserSpaces(options);
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
+ },
/**
* optional parameters - **filter_list**: array of user id\'s to get names for
* @param {*} [options] Override http request option.
@@ -10931,6 +11830,17 @@ export const ApiApiFp = function(configuration?: Configuration) {
const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateIngredient(id, ingredient, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
+ /**
+ *
+ * @param {string} id A unique integer value identifying this invite link.
+ * @param {InviteLink} [inviteLink]
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async partialUpdateInviteLink(id: string, inviteLink?: InviteLink, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateInviteLink(id, inviteLink, options);
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
+ },
/**
*
* @param {string} id A unique integer value identifying this keyword.
@@ -11030,6 +11940,17 @@ export const ApiApiFp = function(configuration?: Configuration) {
const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateShoppingListRecipe(id, shoppingListRecipe, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
+ /**
+ *
+ * @param {string} id A unique integer value identifying this space.
+ * @param {Space} [space]
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async partialUpdateSpace(id: string, space?: Space, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateSpace(id, space, options);
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
+ },
/**
*
* @param {string} id A unique integer value identifying this step.
@@ -11132,6 +12053,17 @@ export const ApiApiFp = function(configuration?: Configuration) {
const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateUserPreference(user, userPreference, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
+ /**
+ *
+ * @param {string} id A unique integer value identifying this user space.
+ * @param {UserSpace} [userSpace]
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async partialUpdateUserSpace(id: string, userSpace?: UserSpace, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.partialUpdateUserSpace(id, userSpace, options);
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
+ },
/**
*
* @param {string} id A unique integer value identifying this view log.
@@ -11223,6 +12155,16 @@ export const ApiApiFp = function(configuration?: Configuration) {
const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveFoodInheritField(id, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
+ /**
+ *
+ * @param {string} id A unique integer value identifying this group.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async retrieveGroup(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveGroup(id, options);
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
+ },
/**
*
* @param {string} id A unique integer value identifying this import log.
@@ -11243,6 +12185,16 @@ export const ApiApiFp = function(configuration?: Configuration) {
const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveIngredient(id, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
+ /**
+ *
+ * @param {string} id A unique integer value identifying this invite link.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async retrieveInviteLink(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveInviteLink(id, options);
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
+ },
/**
*
* @param {string} id A unique integer value identifying this keyword.
@@ -11333,6 +12285,16 @@ export const ApiApiFp = function(configuration?: Configuration) {
const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveShoppingListRecipe(id, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
+ /**
+ *
+ * @param {string} id A unique integer value identifying this space.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async retrieveSpace(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveSpace(id, options);
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
+ },
/**
*
* @param {string} id A unique integer value identifying this step.
@@ -11443,6 +12405,16 @@ export const ApiApiFp = function(configuration?: Configuration) {
const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveUserPreference(user, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
+ /**
+ *
+ * @param {string} id A unique integer value identifying this user space.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async retrieveUserSpace(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.retrieveUserSpace(id, options);
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
+ },
/**
*
* @param {string} id A unique integer value identifying this view log.
@@ -11563,6 +12535,17 @@ export const ApiApiFp = function(configuration?: Configuration) {
const localVarAxiosArgs = await localVarAxiosParamCreator.updateIngredient(id, ingredient, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
+ /**
+ *
+ * @param {string} id A unique integer value identifying this invite link.
+ * @param {InviteLink} [inviteLink]
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async updateInviteLink(id: string, inviteLink?: InviteLink, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateInviteLink(id, inviteLink, options);
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
+ },
/**
*
* @param {string} id A unique integer value identifying this keyword.
@@ -11764,6 +12747,17 @@ export const ApiApiFp = function(configuration?: Configuration) {
const localVarAxiosArgs = await localVarAxiosParamCreator.updateUserPreference(user, userPreference, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
},
+ /**
+ *
+ * @param {string} id A unique integer value identifying this user space.
+ * @param {UserSpace} [userSpace]
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async updateUserSpace(id: string, userSpace?: UserSpace, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateUserSpace(id, userSpace, options);
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
+ },
/**
*
* @param {string} id A unique integer value identifying this view log.
@@ -11857,6 +12851,15 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?:
createIngredient(ingredient?: Ingredient, options?: any): AxiosPromise {
return localVarFp.createIngredient(ingredient, options).then((request) => request(axios, basePath));
},
+ /**
+ *
+ * @param {InviteLink} [inviteLink]
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ createInviteLink(inviteLink?: InviteLink, options?: any): AxiosPromise {
+ return localVarFp.createInviteLink(inviteLink, options).then((request) => request(axios, basePath));
+ },
/**
*
* @param {Keyword} [keyword]
@@ -12031,6 +13034,15 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?:
createViewLog(viewLog?: ViewLog, options?: any): AxiosPromise {
return localVarFp.createViewLog(viewLog, options).then((request) => request(axios, basePath));
},
+ /**
+ * function to retrieve a recipe from a given url or source string :param request: standard request with additional post parameters - url: url to use for importing recipe - data: if no url is given recipe is imported from provided source data - (optional) bookmarklet: id of bookmarklet import to use, overrides URL and data attributes :return: JsonResponse containing the parsed json, original html,json and images
+ * @param {any} [body]
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ createrecipeFromSource(body?: any, options?: any): AxiosPromise {
+ return localVarFp.createrecipeFromSource(body, options).then((request) => request(axios, basePath));
+ },
/**
*
* @param {string} id A unique integer value identifying this automation.
@@ -12103,6 +13115,15 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?:
destroyIngredient(id: string, options?: any): AxiosPromise {
return localVarFp.destroyIngredient(id, options).then((request) => request(axios, basePath));
},
+ /**
+ *
+ * @param {string} id A unique integer value identifying this invite link.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ destroyInviteLink(id: string, options?: any): AxiosPromise {
+ return localVarFp.destroyInviteLink(id, options).then((request) => request(axios, basePath));
+ },
/**
*
* @param {string} id A unique integer value identifying this keyword.
@@ -12265,6 +13286,15 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?:
destroyUserPreference(user: string, options?: any): AxiosPromise {
return localVarFp.destroyUserPreference(user, options).then((request) => request(axios, basePath));
},
+ /**
+ *
+ * @param {string} id A unique integer value identifying this user space.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ destroyUserSpace(id: string, options?: any): AxiosPromise {
+ return localVarFp.destroyUserSpace(id, options).then((request) => request(axios, basePath));
+ },
/**
*
* @param {string} id A unique integer value identifying this view log.
@@ -12350,6 +13380,14 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?:
listFoods(query?: string, root?: number, tree?: number, page?: number, pageSize?: number, options?: any): AxiosPromise {
return localVarFp.listFoods(query, root, tree, page, pageSize, options).then((request) => request(axios, basePath));
},
+ /**
+ *
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ listGroups(options?: any): AxiosPromise> {
+ return localVarFp.listGroups(options).then((request) => request(axios, basePath));
+ },
/**
*
* @param {number} [page] A page number within the paginated result set.
@@ -12370,6 +13408,14 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?:
listIngredients(page?: number, pageSize?: number, options?: any): AxiosPromise {
return localVarFp.listIngredients(page, pageSize, options).then((request) => request(axios, basePath));
},
+ /**
+ *
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ listInviteLinks(options?: any): AxiosPromise> {
+ return localVarFp.listInviteLinks(options).then((request) => request(axios, basePath));
+ },
/**
*
* @param {string} [query] Query string matched against keyword name.
@@ -12479,6 +13525,14 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?:
listShoppingLists(options?: any): AxiosPromise> {
return localVarFp.listShoppingLists(options).then((request) => request(axios, basePath));
},
+ /**
+ *
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ listSpaces(options?: any): AxiosPromise> {
+ return localVarFp.listSpaces(options).then((request) => request(axios, basePath));
+ },
/**
*
* @param {number} [recipe] ID of recipe a step is part of. For multiple repeat parameter.
@@ -12570,6 +13624,14 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?:
listUserPreferences(options?: any): AxiosPromise> {
return localVarFp.listUserPreferences(options).then((request) => request(axios, basePath));
},
+ /**
+ *
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ listUserSpaces(options?: any): AxiosPromise> {
+ return localVarFp.listUserSpaces(options).then((request) => request(axios, basePath));
+ },
/**
* optional parameters - **filter_list**: array of user id\'s to get names for
* @param {*} [options] Override http request option.
@@ -12723,6 +13785,16 @@ export const ApiApiFactory = function (configuration?: Configuration, 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 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.
@@ -12813,6 +13885,16 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?:
partialUpdateShoppingListRecipe(id: string, shoppingListRecipe?: ShoppingListRecipe, options?: any): AxiosPromise {
return localVarFp.partialUpdateShoppingListRecipe(id, shoppingListRecipe, options).then((request) => request(axios, basePath));
},
+ /**
+ *
+ * @param {string} id A unique integer value identifying this space.
+ * @param {Space} [space]
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ partialUpdateSpace(id: string, space?: Space, options?: any): AxiosPromise {
+ return localVarFp.partialUpdateSpace(id, space, options).then((request) => request(axios, basePath));
+ },
/**
*
* @param {string} id A unique integer value identifying this step.
@@ -12906,6 +13988,16 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?:
partialUpdateUserPreference(user: string, userPreference?: UserPreference, options?: any): AxiosPromise {
return localVarFp.partialUpdateUserPreference(user, userPreference, options).then((request) => request(axios, basePath));
},
+ /**
+ *
+ * @param {string} id A unique integer value identifying this user space.
+ * @param {UserSpace} [userSpace]
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ partialUpdateUserSpace(id: string, userSpace?: UserSpace, options?: any): AxiosPromise {
+ return localVarFp.partialUpdateUserSpace(id, userSpace, options).then((request) => request(axios, basePath));
+ },
/**
*
* @param {string} id A unique integer value identifying this view log.
@@ -12988,6 +14080,15 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?:
retrieveFoodInheritField(id: string, options?: any): AxiosPromise {
return localVarFp.retrieveFoodInheritField(id, options).then((request) => request(axios, basePath));
},
+ /**
+ *
+ * @param {string} id A unique integer value identifying this group.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ retrieveGroup(id: string, options?: any): AxiosPromise {
+ return localVarFp.retrieveGroup(id, options).then((request) => request(axios, basePath));
+ },
/**
*
* @param {string} id A unique integer value identifying this import log.
@@ -13006,6 +14107,15 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?:
retrieveIngredient(id: string, options?: any): AxiosPromise {
return localVarFp.retrieveIngredient(id, options).then((request) => request(axios, basePath));
},
+ /**
+ *
+ * @param {string} id A unique integer value identifying this invite link.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ retrieveInviteLink(id: string, options?: any): AxiosPromise {
+ return localVarFp.retrieveInviteLink(id, options).then((request) => request(axios, basePath));
+ },
/**
*
* @param {string} id A unique integer value identifying this keyword.
@@ -13087,6 +14197,15 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?:
retrieveShoppingListRecipe(id: string, options?: any): AxiosPromise {
return localVarFp.retrieveShoppingListRecipe(id, options).then((request) => request(axios, basePath));
},
+ /**
+ *
+ * @param {string} id A unique integer value identifying this space.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ retrieveSpace(id: string, options?: any): AxiosPromise {
+ return localVarFp.retrieveSpace(id, options).then((request) => request(axios, basePath));
+ },
/**
*
* @param {string} id A unique integer value identifying this step.
@@ -13186,6 +14305,15 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?:
retrieveUserPreference(user: string, options?: any): AxiosPromise {
return localVarFp.retrieveUserPreference(user, options).then((request) => request(axios, basePath));
},
+ /**
+ *
+ * @param {string} id A unique integer value identifying this user space.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ retrieveUserSpace(id: string, options?: any): AxiosPromise {
+ return localVarFp.retrieveUserSpace(id, options).then((request) => request(axios, basePath));
+ },
/**
*
* @param {string} id A unique integer value identifying this view log.
@@ -13295,6 +14423,16 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?:
updateIngredient(id: string, ingredient?: Ingredient, options?: any): AxiosPromise {
return localVarFp.updateIngredient(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}
+ */
+ updateInviteLink(id: string, inviteLink?: InviteLink, options?: any): AxiosPromise {
+ return localVarFp.updateInviteLink(id, inviteLink, options).then((request) => request(axios, basePath));
+ },
/**
*
* @param {string} id A unique integer value identifying this keyword.
@@ -13478,6 +14616,16 @@ export const ApiApiFactory = function (configuration?: Configuration, basePath?:
updateUserPreference(user: string, userPreference?: UserPreference, options?: any): AxiosPromise {
return localVarFp.updateUserPreference(user, userPreference, options).then((request) => request(axios, basePath));
},
+ /**
+ *
+ * @param {string} id A unique integer value identifying this user space.
+ * @param {UserSpace} [userSpace]
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ updateUserSpace(id: string, userSpace?: UserSpace, options?: any): AxiosPromise {
+ return localVarFp.updateUserSpace(id, userSpace, options).then((request) => request(axios, basePath));
+ },
/**
*
* @param {string} id A unique integer value identifying this view log.
@@ -13586,6 +14734,17 @@ export class ApiApi extends BaseAPI {
return ApiApiFp(this.configuration).createIngredient(ingredient, options).then((request) => request(this.axios, this.basePath));
}
+ /**
+ *
+ * @param {InviteLink} [inviteLink]
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ * @memberof ApiApi
+ */
+ public createInviteLink(inviteLink?: InviteLink, options?: any) {
+ return ApiApiFp(this.configuration).createInviteLink(inviteLink, options).then((request) => request(this.axios, this.basePath));
+ }
+
/**
*
* @param {Keyword} [keyword]
@@ -13798,6 +14957,17 @@ export class ApiApi extends BaseAPI {
return ApiApiFp(this.configuration).createViewLog(viewLog, options).then((request) => request(this.axios, this.basePath));
}
+ /**
+ * function to retrieve a recipe from a given url or source string :param request: standard request with additional post parameters - url: url to use for importing recipe - data: if no url is given recipe is imported from provided source data - (optional) bookmarklet: id of bookmarklet import to use, overrides URL and data attributes :return: JsonResponse containing the parsed json, original html,json and images
+ * @param {any} [body]
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ * @memberof ApiApi
+ */
+ public createrecipeFromSource(body?: any, options?: any) {
+ return ApiApiFp(this.configuration).createrecipeFromSource(body, options).then((request) => request(this.axios, this.basePath));
+ }
+
/**
*
* @param {string} id A unique integer value identifying this automation.
@@ -13886,6 +15056,17 @@ export class ApiApi extends BaseAPI {
return ApiApiFp(this.configuration).destroyIngredient(id, options).then((request) => request(this.axios, this.basePath));
}
+ /**
+ *
+ * @param {string} id A unique integer value identifying this invite link.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ * @memberof ApiApi
+ */
+ public destroyInviteLink(id: string, options?: any) {
+ return ApiApiFp(this.configuration).destroyInviteLink(id, options).then((request) => request(this.axios, this.basePath));
+ }
+
/**
*
* @param {string} id A unique integer value identifying this keyword.
@@ -14084,6 +15265,17 @@ export class ApiApi extends BaseAPI {
return ApiApiFp(this.configuration).destroyUserPreference(user, options).then((request) => request(this.axios, this.basePath));
}
+ /**
+ *
+ * @param {string} id A unique integer value identifying this user space.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ * @memberof ApiApi
+ */
+ public destroyUserSpace(id: string, options?: any) {
+ return ApiApiFp(this.configuration).destroyUserSpace(id, options).then((request) => request(this.axios, this.basePath));
+ }
+
/**
*
* @param {string} id A unique integer value identifying this view log.
@@ -14187,6 +15379,16 @@ export class ApiApi extends BaseAPI {
return ApiApiFp(this.configuration).listFoods(query, root, tree, page, pageSize, options).then((request) => request(this.axios, this.basePath));
}
+ /**
+ *
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ * @memberof ApiApi
+ */
+ public listGroups(options?: any) {
+ return ApiApiFp(this.configuration).listGroups(options).then((request) => request(this.axios, this.basePath));
+ }
+
/**
*
* @param {number} [page] A page number within the paginated result set.
@@ -14211,6 +15413,16 @@ export class ApiApi extends BaseAPI {
return ApiApiFp(this.configuration).listIngredients(page, pageSize, options).then((request) => request(this.axios, this.basePath));
}
+ /**
+ *
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ * @memberof ApiApi
+ */
+ public listInviteLinks(options?: any) {
+ return ApiApiFp(this.configuration).listInviteLinks(options).then((request) => request(this.axios, this.basePath));
+ }
+
/**
*
* @param {string} [query] Query string matched against keyword name.
@@ -14338,6 +15550,16 @@ export class ApiApi extends BaseAPI {
return ApiApiFp(this.configuration).listShoppingLists(options).then((request) => request(this.axios, this.basePath));
}
+ /**
+ *
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ * @memberof ApiApi
+ */
+ public listSpaces(options?: any) {
+ return ApiApiFp(this.configuration).listSpaces(options).then((request) => request(this.axios, this.basePath));
+ }
+
/**
*
* @param {number} [recipe] ID of recipe a step is part of. For multiple repeat parameter.
@@ -14449,6 +15671,16 @@ export class ApiApi extends BaseAPI {
return ApiApiFp(this.configuration).listUserPreferences(options).then((request) => request(this.axios, this.basePath));
}
+ /**
+ *
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ * @memberof ApiApi
+ */
+ public listUserSpaces(options?: any) {
+ return ApiApiFp(this.configuration).listUserSpaces(options).then((request) => request(this.axios, this.basePath));
+ }
+
/**
* optional parameters - **filter_list**: array of user id\'s to get names for
* @param {*} [options] Override http request option.
@@ -14632,6 +15864,18 @@ export class ApiApi extends BaseAPI {
return ApiApiFp(this.configuration).partialUpdateIngredient(id, ingredient, options).then((request) => request(this.axios, this.basePath));
}
+ /**
+ *
+ * @param {string} id A unique integer value identifying this invite link.
+ * @param {InviteLink} [inviteLink]
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ * @memberof ApiApi
+ */
+ public partialUpdateInviteLink(id: string, inviteLink?: InviteLink, options?: any) {
+ return ApiApiFp(this.configuration).partialUpdateInviteLink(id, inviteLink, options).then((request) => request(this.axios, this.basePath));
+ }
+
/**
*
* @param {string} id A unique integer value identifying this keyword.
@@ -14740,6 +15984,18 @@ export class ApiApi extends BaseAPI {
return ApiApiFp(this.configuration).partialUpdateShoppingListRecipe(id, shoppingListRecipe, options).then((request) => request(this.axios, this.basePath));
}
+ /**
+ *
+ * @param {string} id A unique integer value identifying this space.
+ * @param {Space} [space]
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ * @memberof ApiApi
+ */
+ public partialUpdateSpace(id: string, space?: Space, options?: any) {
+ return ApiApiFp(this.configuration).partialUpdateSpace(id, space, options).then((request) => request(this.axios, this.basePath));
+ }
+
/**
*
* @param {string} id A unique integer value identifying this step.
@@ -14851,6 +16107,18 @@ export class ApiApi extends BaseAPI {
return ApiApiFp(this.configuration).partialUpdateUserPreference(user, userPreference, options).then((request) => request(this.axios, this.basePath));
}
+ /**
+ *
+ * @param {string} id A unique integer value identifying this user space.
+ * @param {UserSpace} [userSpace]
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ * @memberof ApiApi
+ */
+ public partialUpdateUserSpace(id: string, userSpace?: UserSpace, options?: any) {
+ return ApiApiFp(this.configuration).partialUpdateUserSpace(id, userSpace, options).then((request) => request(this.axios, this.basePath));
+ }
+
/**
*
* @param {string} id A unique integer value identifying this view log.
@@ -14951,6 +16219,17 @@ export class ApiApi extends BaseAPI {
return ApiApiFp(this.configuration).retrieveFoodInheritField(id, options).then((request) => request(this.axios, this.basePath));
}
+ /**
+ *
+ * @param {string} id A unique integer value identifying this group.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ * @memberof ApiApi
+ */
+ public retrieveGroup(id: string, options?: any) {
+ return ApiApiFp(this.configuration).retrieveGroup(id, options).then((request) => request(this.axios, this.basePath));
+ }
+
/**
*
* @param {string} id A unique integer value identifying this import log.
@@ -14973,6 +16252,17 @@ export class ApiApi extends BaseAPI {
return ApiApiFp(this.configuration).retrieveIngredient(id, options).then((request) => request(this.axios, this.basePath));
}
+ /**
+ *
+ * @param {string} id A unique integer value identifying this invite link.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ * @memberof ApiApi
+ */
+ public retrieveInviteLink(id: string, options?: any) {
+ return ApiApiFp(this.configuration).retrieveInviteLink(id, options).then((request) => request(this.axios, this.basePath));
+ }
+
/**
*
* @param {string} id A unique integer value identifying this keyword.
@@ -15072,6 +16362,17 @@ export class ApiApi extends BaseAPI {
return ApiApiFp(this.configuration).retrieveShoppingListRecipe(id, options).then((request) => request(this.axios, this.basePath));
}
+ /**
+ *
+ * @param {string} id A unique integer value identifying this space.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ * @memberof ApiApi
+ */
+ public retrieveSpace(id: string, options?: any) {
+ return ApiApiFp(this.configuration).retrieveSpace(id, options).then((request) => request(this.axios, this.basePath));
+ }
+
/**
*
* @param {string} id A unique integer value identifying this step.
@@ -15193,6 +16494,17 @@ export class ApiApi extends BaseAPI {
return ApiApiFp(this.configuration).retrieveUserPreference(user, options).then((request) => request(this.axios, this.basePath));
}
+ /**
+ *
+ * @param {string} id A unique integer value identifying this user space.
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ * @memberof ApiApi
+ */
+ public retrieveUserSpace(id: string, options?: any) {
+ return ApiApiFp(this.configuration).retrieveUserSpace(id, options).then((request) => request(this.axios, this.basePath));
+ }
+
/**
*
* @param {string} id A unique integer value identifying this view log.
@@ -15324,6 +16636,18 @@ export class ApiApi extends BaseAPI {
return ApiApiFp(this.configuration).updateIngredient(id, ingredient, options).then((request) => request(this.axios, this.basePath));
}
+ /**
+ *
+ * @param {string} id A unique integer value identifying this invite link.
+ * @param {InviteLink} [inviteLink]
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ * @memberof ApiApi
+ */
+ public updateInviteLink(id: string, inviteLink?: InviteLink, options?: any) {
+ return ApiApiFp(this.configuration).updateInviteLink(id, inviteLink, options).then((request) => request(this.axios, this.basePath));
+ }
+
/**
*
* @param {string} id A unique integer value identifying this keyword.
@@ -15543,6 +16867,18 @@ export class ApiApi extends BaseAPI {
return ApiApiFp(this.configuration).updateUserPreference(user, userPreference, options).then((request) => request(this.axios, this.basePath));
}
+ /**
+ *
+ * @param {string} id A unique integer value identifying this user space.
+ * @param {UserSpace} [userSpace]
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ * @memberof ApiApi
+ */
+ public updateUserSpace(id: string, userSpace?: UserSpace, options?: any) {
+ return ApiApiFp(this.configuration).updateUserSpace(id, userSpace, options).then((request) => request(this.axios, this.basePath));
+ }
+
/**
*
* @param {string} id A unique integer value identifying this view log.
@@ -15557,3 +16893,129 @@ export class ApiApi extends BaseAPI {
}
+/**
+ * ApiTokenAuthApi - axios parameter creator
+ * @export
+ */
+export const ApiTokenAuthApiAxiosParamCreator = function (configuration?: Configuration) {
+ return {
+ /**
+ *
+ * @param {string} username
+ * @param {string} password
+ * @param {string} [token]
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ createAuthToken: async (username: string, password: string, token?: string, options: any = {}): Promise => {
+ // verify required parameter 'username' is not null or undefined
+ assertParamExists('createAuthToken', 'username', username)
+ // verify required parameter 'password' is not null or undefined
+ assertParamExists('createAuthToken', 'password', password)
+ const localVarPath = `/api-token-auth/`;
+ // 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;
+ const localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
+
+
+ if (username !== undefined) {
+ localVarFormParams.append('username', username as any);
+ }
+
+ if (password !== undefined) {
+ localVarFormParams.append('password', password as any);
+ }
+
+ if (token !== undefined) {
+ localVarFormParams.append('token', token as any);
+ }
+
+
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
+
+ setSearchParams(localVarUrlObj, localVarQueryParameter, options.query);
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
+ localVarRequestOptions.data = localVarFormParams;
+
+ return {
+ url: toPathString(localVarUrlObj),
+ options: localVarRequestOptions,
+ };
+ },
+ }
+};
+
+/**
+ * ApiTokenAuthApi - functional programming interface
+ * @export
+ */
+export const ApiTokenAuthApiFp = function(configuration?: Configuration) {
+ const localVarAxiosParamCreator = ApiTokenAuthApiAxiosParamCreator(configuration)
+ return {
+ /**
+ *
+ * @param {string} username
+ * @param {string} password
+ * @param {string} [token]
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ async createAuthToken(username: string, password: string, token?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> {
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createAuthToken(username, password, token, options);
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
+ },
+ }
+};
+
+/**
+ * ApiTokenAuthApi - factory interface
+ * @export
+ */
+export const ApiTokenAuthApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
+ const localVarFp = ApiTokenAuthApiFp(configuration)
+ return {
+ /**
+ *
+ * @param {string} username
+ * @param {string} password
+ * @param {string} [token]
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ */
+ createAuthToken(username: string, password: string, token?: string, options?: any): AxiosPromise {
+ return localVarFp.createAuthToken(username, password, token, options).then((request) => request(axios, basePath));
+ },
+ };
+};
+
+/**
+ * ApiTokenAuthApi - object-oriented interface
+ * @export
+ * @class ApiTokenAuthApi
+ * @extends {BaseAPI}
+ */
+export class ApiTokenAuthApi extends BaseAPI {
+ /**
+ *
+ * @param {string} username
+ * @param {string} password
+ * @param {string} [token]
+ * @param {*} [options] Override http request option.
+ * @throws {RequiredError}
+ * @memberof ApiTokenAuthApi
+ */
+ public createAuthToken(username: string, password: string, token?: string, options?: any) {
+ return ApiTokenAuthApiFp(this.configuration).createAuthToken(username, password, token, options).then((request) => request(this.axios, this.basePath));
+ }
+}
+
+
diff --git a/vue/vue.config.js b/vue/vue.config.js
index 6e0707a1..884bafeb 100644
--- a/vue/vue.config.js
+++ b/vue/vue.config.js
@@ -57,6 +57,10 @@ const pages = {
entry: "./src/apps/ShoppingListView/main.js",
chunks: ["chunk-vendors"],
},
+ space_manage_view: {
+ entry: "./src/apps/SpaceManageView/main.js",
+ chunks: ["chunk-vendors"],
+ },
}
module.exports = {