diff --git a/.gitignore b/.gitignore
index 16ceed730..b477c0675 100644
--- a/.gitignore
+++ b/.gitignore
@@ -91,3 +91,4 @@ cookbook/static/vue3
vue3/node_modules
cookbook/tests/other/docs/reports/tests/tests.html
cookbook/tests/other/docs/reports/tests/pytest.xml
+vue3/src/plugins
diff --git a/vue3/src/components/display/KeywordsBar.vue b/vue3/src/components/display/KeywordsBar.vue
index 9f9485066..279d5bf45 100644
--- a/vue3/src/components/display/KeywordsBar.vue
+++ b/vue3/src/components/display/KeywordsBar.vue
@@ -3,7 +3,7 @@
{{ k.label }}
+ :to="useUserPreferenceStore().isAuthenticated ? {name: 'SearchPage', query: {keywords: k.id}} : undefined"> {{ k.label }}
@@ -15,6 +15,7 @@
import {Keyword, KeywordLabel} from "@/openapi";
import {computed, PropType} from "vue";
+import {useUserPreferenceStore} from "@/stores/UserPreferenceStore.ts";
const props = defineProps({
keywords: Array as PropType | Array | undefined>,
diff --git a/vue3/src/components/display/RecipeActivity.vue b/vue3/src/components/display/RecipeActivity.vue
index 7c1869f80..050727531 100644
--- a/vue3/src/components/display/RecipeActivity.vue
+++ b/vue3/src/components/display/RecipeActivity.vue
@@ -29,7 +29,7 @@
-
+
@@ -62,6 +62,7 @@ import {ApiApi, CookLog, Recipe} from "@/openapi";
import {DateTime} from "luxon";
import {ErrorMessageType, useMessageStore} from "@/stores/MessageStore";
import {VDateInput} from 'vuetify/labs/VDateInput'
+import {useUserPreferenceStore} from "@/stores/UserPreferenceStore.ts";
const props = defineProps({
recipe: {
diff --git a/vue3/src/components/display/RecipeCard.vue b/vue3/src/components/display/RecipeCard.vue
index 6f4f74902..e1c91df95 100644
--- a/vue3/src/components/display/RecipeCard.vue
+++ b/vue3/src/components/display/RecipeCard.vue
@@ -13,14 +13,14 @@
-
+
-
+
+ v-if="props.recipe.internal == false">
{{ $t('External') }}
-
+
, required: true,},
loading: {type: Boolean, required: false},
- show_keywords: {type: Boolean, required: false},
+ showKeywords: {type: Boolean, default: true, required: false},
show_description: {type: Boolean, required: false},
height: {type: String, required: false, default: '15vh'},
- linkTarget: {type: String, required: false, default: ''}
+ linkTarget: {type: String, required: false, default: ''},
+ showMenu: {type: Boolean, default: true, required: false}
})
const router = useRouter()
diff --git a/vue3/src/composables/useNavigation.ts b/vue3/src/composables/useNavigation.ts
index c276ffe4a..d0284dfc8 100644
--- a/vue3/src/composables/useNavigation.ts
+++ b/vue3/src/composables/useNavigation.ts
@@ -25,7 +25,9 @@ export function useNavigation() {
TANDOOR_PLUGINS.forEach(plugin => {
plugin.navigationDrawer.forEach(navEntry => {
let navEntryCopy = Object.assign({}, navEntry)
- navEntryCopy.title = t(navEntryCopy.title)
+ if ('title' in navEntryCopy) {
+ navEntryCopy.title = t(navEntryCopy.title)
+ }
navigation.push(navEntryCopy)
})
})
@@ -44,7 +46,9 @@ export function useNavigation() {
TANDOOR_PLUGINS.forEach(plugin => {
plugin.bottomNavigation.forEach(navEntry => {
let navEntryCopy = Object.assign({}, navEntry)
- navEntryCopy.title = t(navEntryCopy.title)
+ if ('title' in navEntryCopy) {
+ navEntryCopy.title = t(navEntryCopy.title)
+ }
navigation.push(navEntryCopy)
})
})
@@ -80,7 +84,9 @@ export function useNavigation() {
TANDOOR_PLUGINS.forEach(plugin => {
plugin.userNavigation.forEach(navEntry => {
let navEntryCopy = Object.assign({}, navEntry)
- navEntryCopy.title = t(navEntryCopy.title)
+ if ('title' in navEntryCopy) {
+ navEntryCopy.title = t(navEntryCopy.title)
+ }
navigation.push(navEntryCopy)
})
})
diff --git a/vue3/src/openapi/.openapi-generator/FILES b/vue3/src/openapi/.openapi-generator/FILES
index d41793271..f7730ffea 100644
--- a/vue3/src/openapi/.openapi-generator/FILES
+++ b/vue3/src/openapi/.openapi-generator/FILES
@@ -3,6 +3,7 @@ apis/ApiTokenAuthApi.ts
apis/index.ts
index.ts
models/AccessToken.ts
+models/AlignmentEnum.ts
models/AuthToken.ts
models/AutoMealPlan.ts
models/Automation.ts
@@ -16,6 +17,10 @@ models/CookLog.ts
models/CustomFilter.ts
models/DefaultPageEnum.ts
models/DeleteEnum.ts
+models/EnterpriseKeyword.ts
+models/EnterpriseSocialEmbed.ts
+models/EnterpriseSocialEmbedTypeEnum.ts
+models/EnterpriseSocialRecipeSearch.ts
models/ExportLog.ts
models/ExportRequest.ts
models/FdcQuery.ts
@@ -56,6 +61,8 @@ models/PaginatedBookmarkletImportListList.ts
models/PaginatedConnectorConfigList.ts
models/PaginatedCookLogList.ts
models/PaginatedCustomFilterList.ts
+models/PaginatedEnterpriseSocialEmbedList.ts
+models/PaginatedEnterpriseSocialRecipeSearchList.ts
models/PaginatedExportLogList.ts
models/PaginatedFoodList.ts
models/PaginatedImportLogList.ts
@@ -64,6 +71,13 @@ models/PaginatedInviteLinkList.ts
models/PaginatedKeywordList.ts
models/PaginatedMealPlanList.ts
models/PaginatedMealTypeList.ts
+models/PaginatedOpenDataCategoryList.ts
+models/PaginatedOpenDataConversionList.ts
+models/PaginatedOpenDataFoodList.ts
+models/PaginatedOpenDataPropertyList.ts
+models/PaginatedOpenDataStoreList.ts
+models/PaginatedOpenDataUnitList.ts
+models/PaginatedOpenDataVersionList.ts
models/PaginatedPropertyList.ts
models/PaginatedPropertyTypeList.ts
models/PaginatedRecipeBookEntryList.ts
@@ -92,6 +106,7 @@ models/PatchedBookmarkletImport.ts
models/PatchedConnectorConfig.ts
models/PatchedCookLog.ts
models/PatchedCustomFilter.ts
+models/PatchedEnterpriseSocialEmbed.ts
models/PatchedExportLog.ts
models/PatchedFood.ts
models/PatchedImportLog.ts
diff --git a/vue3/src/openapi/apis/ApiApi.ts b/vue3/src/openapi/apis/ApiApi.ts
index 438b3f0f2..cc4910fa0 100644
--- a/vue3/src/openapi/apis/ApiApi.ts
+++ b/vue3/src/openapi/apis/ApiApi.ts
@@ -22,6 +22,7 @@ import type {
ConnectorConfig,
CookLog,
CustomFilter,
+ EnterpriseSocialEmbed,
ExportLog,
ExportRequest,
FdcQuery,
@@ -52,6 +53,8 @@ import type {
PaginatedConnectorConfigList,
PaginatedCookLogList,
PaginatedCustomFilterList,
+ PaginatedEnterpriseSocialEmbedList,
+ PaginatedEnterpriseSocialRecipeSearchList,
PaginatedExportLogList,
PaginatedFoodList,
PaginatedImportLogList,
@@ -60,6 +63,13 @@ import type {
PaginatedKeywordList,
PaginatedMealPlanList,
PaginatedMealTypeList,
+ PaginatedOpenDataCategoryList,
+ PaginatedOpenDataConversionList,
+ PaginatedOpenDataFoodList,
+ PaginatedOpenDataPropertyList,
+ PaginatedOpenDataStoreList,
+ PaginatedOpenDataUnitList,
+ PaginatedOpenDataVersionList,
PaginatedPropertyList,
PaginatedPropertyTypeList,
PaginatedRecipeBookEntryList,
@@ -88,6 +98,7 @@ import type {
PatchedConnectorConfig,
PatchedCookLog,
PatchedCustomFilter,
+ PatchedEnterpriseSocialEmbed,
PatchedExportLog,
PatchedFood,
PatchedImportLog,
@@ -176,6 +187,8 @@ import {
CookLogToJSON,
CustomFilterFromJSON,
CustomFilterToJSON,
+ EnterpriseSocialEmbedFromJSON,
+ EnterpriseSocialEmbedToJSON,
ExportLogFromJSON,
ExportLogToJSON,
ExportRequestFromJSON,
@@ -236,6 +249,10 @@ import {
PaginatedCookLogListToJSON,
PaginatedCustomFilterListFromJSON,
PaginatedCustomFilterListToJSON,
+ PaginatedEnterpriseSocialEmbedListFromJSON,
+ PaginatedEnterpriseSocialEmbedListToJSON,
+ PaginatedEnterpriseSocialRecipeSearchListFromJSON,
+ PaginatedEnterpriseSocialRecipeSearchListToJSON,
PaginatedExportLogListFromJSON,
PaginatedExportLogListToJSON,
PaginatedFoodListFromJSON,
@@ -252,6 +269,20 @@ import {
PaginatedMealPlanListToJSON,
PaginatedMealTypeListFromJSON,
PaginatedMealTypeListToJSON,
+ PaginatedOpenDataCategoryListFromJSON,
+ PaginatedOpenDataCategoryListToJSON,
+ PaginatedOpenDataConversionListFromJSON,
+ PaginatedOpenDataConversionListToJSON,
+ PaginatedOpenDataFoodListFromJSON,
+ PaginatedOpenDataFoodListToJSON,
+ PaginatedOpenDataPropertyListFromJSON,
+ PaginatedOpenDataPropertyListToJSON,
+ PaginatedOpenDataStoreListFromJSON,
+ PaginatedOpenDataStoreListToJSON,
+ PaginatedOpenDataUnitListFromJSON,
+ PaginatedOpenDataUnitListToJSON,
+ PaginatedOpenDataVersionListFromJSON,
+ PaginatedOpenDataVersionListToJSON,
PaginatedPropertyListFromJSON,
PaginatedPropertyListToJSON,
PaginatedPropertyTypeListFromJSON,
@@ -308,6 +339,8 @@ import {
PatchedCookLogToJSON,
PatchedCustomFilterFromJSON,
PatchedCustomFilterToJSON,
+ PatchedEnterpriseSocialEmbedFromJSON,
+ PatchedEnterpriseSocialEmbedToJSON,
PatchedExportLogFromJSON,
PatchedExportLogToJSON,
PatchedFoodFromJSON,
@@ -632,6 +665,166 @@ export interface ApiDownloadFileRetrieveRequest {
fileId: number;
}
+export interface ApiEnterpriseSocialEmbedCreateRequest {
+ enterpriseSocialEmbed: EnterpriseSocialEmbed;
+}
+
+export interface ApiEnterpriseSocialEmbedDestroyRequest {
+ id: number;
+}
+
+export interface ApiEnterpriseSocialEmbedListRequest {
+ page?: number;
+ pageSize?: number;
+ token?: string;
+}
+
+export interface ApiEnterpriseSocialEmbedPartialUpdateRequest {
+ id: number;
+ patchedEnterpriseSocialEmbed?: PatchedEnterpriseSocialEmbed;
+}
+
+export interface ApiEnterpriseSocialEmbedRetrieveRequest {
+ id: number;
+}
+
+export interface ApiEnterpriseSocialEmbedUpdateRequest {
+ id: number;
+ enterpriseSocialEmbed: EnterpriseSocialEmbed;
+}
+
+export interface ApiEnterpriseSocialKeywordCreateRequest {
+ keyword: Omit;
+}
+
+export interface ApiEnterpriseSocialKeywordDestroyRequest {
+ id: number;
+}
+
+export interface ApiEnterpriseSocialKeywordListRequest {
+ limit?: string;
+ page?: number;
+ pageSize?: number;
+ query?: string;
+ random?: string;
+ root?: number;
+ tree?: number;
+ updatedAt?: string;
+}
+
+export interface ApiEnterpriseSocialKeywordMergeUpdateRequest {
+ id: number;
+ target: number;
+ keyword: Omit;
+}
+
+export interface ApiEnterpriseSocialKeywordMoveUpdateRequest {
+ id: number;
+ parent: number;
+ keyword: Omit;
+}
+
+export interface ApiEnterpriseSocialKeywordPartialUpdateRequest {
+ id: number;
+ patchedKeyword?: Omit;
+}
+
+export interface ApiEnterpriseSocialKeywordRetrieveRequest {
+ id: number;
+}
+
+export interface ApiEnterpriseSocialKeywordUpdateRequest {
+ id: number;
+ keyword: Omit;
+}
+
+export interface ApiEnterpriseSocialRecipeCreateRequest {
+ recipe: Omit;
+}
+
+export interface ApiEnterpriseSocialRecipeDestroyRequest {
+ id: number;
+}
+
+export interface ApiEnterpriseSocialRecipeImageUpdateRequest {
+ id: number;
+ image?: string;
+ imageUrl?: string;
+}
+
+export interface ApiEnterpriseSocialRecipeListRequest {
+ books?: Array;
+ booksAnd?: Array;
+ booksAndNot?: Array;
+ booksOr?: Array;
+ booksOrNot?: Array;
+ cookedonGte?: Date;
+ cookedonLte?: Date;
+ createdby?: number;
+ createdon?: Date;
+ createdonGte?: Date;
+ createdonLte?: Date;
+ filter?: number;
+ foods?: Array;
+ foodsAnd?: Array;
+ foodsAndNot?: Array;
+ foodsOr?: Array;
+ foodsOrNot?: Array;
+ internal?: boolean;
+ keyword?: number;
+ keywords?: Array;
+ keywordsAnd?: Array;
+ keywordsAndNot?: Array;
+ keywordsOr?: Array;
+ keywordsOrNot?: Array;
+ makenow?: boolean;
+ _new?: boolean;
+ numRecent?: number;
+ page?: number;
+ pageSize?: number;
+ query?: string;
+ random?: boolean;
+ rating?: number;
+ ratingGte?: number;
+ ratingLte?: number;
+ sortOrder?: string;
+ timescooked?: number;
+ timescookedGte?: number;
+ timescookedLte?: number;
+ token?: string;
+ units?: number;
+ updatedon?: Date;
+ updatedonGte?: Date;
+ updatedonLte?: Date;
+ viewedonGte?: Date;
+ viewedonLte?: Date;
+}
+
+export interface ApiEnterpriseSocialRecipePartialUpdateRequest {
+ id: number;
+ patchedRecipe?: Omit;
+}
+
+export interface ApiEnterpriseSocialRecipeRelatedListRequest {
+ id: number;
+}
+
+export interface ApiEnterpriseSocialRecipeRetrieveRequest {
+ id: number;
+ share?: string;
+ token?: string;
+}
+
+export interface ApiEnterpriseSocialRecipeShoppingUpdateRequest {
+ id: number;
+ recipeShoppingUpdate: RecipeShoppingUpdate;
+}
+
+export interface ApiEnterpriseSocialRecipeUpdateRequest {
+ id: number;
+ recipe: Omit;
+}
+
export interface ApiExportCreateRequest {
exportRequest: ExportRequest;
}
@@ -958,6 +1151,11 @@ export interface ApiOpenDataCategoryDestroyRequest {
id: number;
}
+export interface ApiOpenDataCategoryListRequest {
+ page?: number;
+ pageSize?: number;
+}
+
export interface ApiOpenDataCategoryPartialUpdateRequest {
id: number;
patchedOpenDataCategory?: Omit;
@@ -980,6 +1178,11 @@ export interface ApiOpenDataConversionDestroyRequest {
id: number;
}
+export interface ApiOpenDataConversionListRequest {
+ page?: number;
+ pageSize?: number;
+}
+
export interface ApiOpenDataConversionPartialUpdateRequest {
id: number;
patchedOpenDataConversion?: Omit;
@@ -1006,6 +1209,16 @@ export interface ApiOpenDataFoodDestroyRequest {
id: number;
}
+export interface ApiOpenDataFoodFdcCreateRequest {
+ id: number;
+ openDataFood: Omit;
+}
+
+export interface ApiOpenDataFoodListRequest {
+ page?: number;
+ pageSize?: number;
+}
+
export interface ApiOpenDataFoodPartialUpdateRequest {
id: number;
patchedOpenDataFood?: Omit;
@@ -1028,6 +1241,11 @@ export interface ApiOpenDataPropertyDestroyRequest {
id: number;
}
+export interface ApiOpenDataPropertyListRequest {
+ page?: number;
+ pageSize?: number;
+}
+
export interface ApiOpenDataPropertyPartialUpdateRequest {
id: number;
patchedOpenDataProperty?: Omit;
@@ -1050,6 +1268,11 @@ export interface ApiOpenDataStoreDestroyRequest {
id: number;
}
+export interface ApiOpenDataStoreListRequest {
+ page?: number;
+ pageSize?: number;
+}
+
export interface ApiOpenDataStorePartialUpdateRequest {
id: number;
patchedOpenDataStore?: Omit;
@@ -1072,6 +1295,11 @@ export interface ApiOpenDataUnitDestroyRequest {
id: number;
}
+export interface ApiOpenDataUnitListRequest {
+ page?: number;
+ pageSize?: number;
+}
+
export interface ApiOpenDataUnitPartialUpdateRequest {
id: number;
patchedOpenDataUnit?: Omit;
@@ -1094,6 +1322,11 @@ export interface ApiOpenDataVersionDestroyRequest {
id: number;
}
+export interface ApiOpenDataVersionListRequest {
+ page?: number;
+ pageSize?: number;
+}
+
export interface ApiOpenDataVersionPartialUpdateRequest {
id: number;
patchedOpenDataVersion?: PatchedOpenDataVersion;
@@ -3443,6 +3676,1198 @@ export class ApiApi extends runtime.BaseAPI {
await this.apiDownloadFileRetrieveRaw(requestParameters, initOverrides);
}
+ /**
+ */
+ async apiEnterpriseSocialEmbedCreateRaw(requestParameters: ApiEnterpriseSocialEmbedCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> {
+ if (requestParameters['enterpriseSocialEmbed'] == null) {
+ throw new runtime.RequiredError(
+ 'enterpriseSocialEmbed',
+ 'Required parameter "enterpriseSocialEmbed" was null or undefined when calling apiEnterpriseSocialEmbedCreate().'
+ );
+ }
+
+ const queryParameters: any = {};
+
+ const headerParameters: runtime.HTTPHeaders = {};
+
+ headerParameters['Content-Type'] = 'application/json';
+
+ if (this.configuration && this.configuration.apiKey) {
+ headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication
+ }
+
+ const response = await this.request({
+ path: `/api/enterprise-social-embed/`,
+ method: 'POST',
+ headers: headerParameters,
+ query: queryParameters,
+ body: EnterpriseSocialEmbedToJSON(requestParameters['enterpriseSocialEmbed']),
+ }, initOverrides);
+
+ return new runtime.JSONApiResponse(response, (jsonValue) => EnterpriseSocialEmbedFromJSON(jsonValue));
+ }
+
+ /**
+ */
+ async apiEnterpriseSocialEmbedCreate(requestParameters: ApiEnterpriseSocialEmbedCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise {
+ const response = await this.apiEnterpriseSocialEmbedCreateRaw(requestParameters, initOverrides);
+ return await response.value();
+ }
+
+ /**
+ */
+ async apiEnterpriseSocialEmbedDestroyRaw(requestParameters: ApiEnterpriseSocialEmbedDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> {
+ if (requestParameters['id'] == null) {
+ throw new runtime.RequiredError(
+ 'id',
+ 'Required parameter "id" was null or undefined when calling apiEnterpriseSocialEmbedDestroy().'
+ );
+ }
+
+ const queryParameters: any = {};
+
+ const headerParameters: runtime.HTTPHeaders = {};
+
+ if (this.configuration && this.configuration.apiKey) {
+ headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication
+ }
+
+ const response = await this.request({
+ path: `/api/enterprise-social-embed/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
+ method: 'DELETE',
+ headers: headerParameters,
+ query: queryParameters,
+ }, initOverrides);
+
+ return new runtime.VoidApiResponse(response);
+ }
+
+ /**
+ */
+ async apiEnterpriseSocialEmbedDestroy(requestParameters: ApiEnterpriseSocialEmbedDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise {
+ await this.apiEnterpriseSocialEmbedDestroyRaw(requestParameters, initOverrides);
+ }
+
+ /**
+ */
+ async apiEnterpriseSocialEmbedListRaw(requestParameters: ApiEnterpriseSocialEmbedListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> {
+ const queryParameters: any = {};
+
+ if (requestParameters['page'] != null) {
+ queryParameters['page'] = requestParameters['page'];
+ }
+
+ if (requestParameters['pageSize'] != null) {
+ queryParameters['page_size'] = requestParameters['pageSize'];
+ }
+
+ if (requestParameters['token'] != null) {
+ queryParameters['token'] = requestParameters['token'];
+ }
+
+ const headerParameters: runtime.HTTPHeaders = {};
+
+ if (this.configuration && this.configuration.apiKey) {
+ headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication
+ }
+
+ const response = await this.request({
+ path: `/api/enterprise-social-embed/`,
+ method: 'GET',
+ headers: headerParameters,
+ query: queryParameters,
+ }, initOverrides);
+
+ return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedEnterpriseSocialEmbedListFromJSON(jsonValue));
+ }
+
+ /**
+ */
+ async apiEnterpriseSocialEmbedList(requestParameters: ApiEnterpriseSocialEmbedListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise {
+ const response = await this.apiEnterpriseSocialEmbedListRaw(requestParameters, initOverrides);
+ return await response.value();
+ }
+
+ /**
+ */
+ async apiEnterpriseSocialEmbedPartialUpdateRaw(requestParameters: ApiEnterpriseSocialEmbedPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> {
+ if (requestParameters['id'] == null) {
+ throw new runtime.RequiredError(
+ 'id',
+ 'Required parameter "id" was null or undefined when calling apiEnterpriseSocialEmbedPartialUpdate().'
+ );
+ }
+
+ const queryParameters: any = {};
+
+ const headerParameters: runtime.HTTPHeaders = {};
+
+ headerParameters['Content-Type'] = 'application/json';
+
+ if (this.configuration && this.configuration.apiKey) {
+ headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication
+ }
+
+ const response = await this.request({
+ path: `/api/enterprise-social-embed/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
+ method: 'PATCH',
+ headers: headerParameters,
+ query: queryParameters,
+ body: PatchedEnterpriseSocialEmbedToJSON(requestParameters['patchedEnterpriseSocialEmbed']),
+ }, initOverrides);
+
+ return new runtime.JSONApiResponse(response, (jsonValue) => EnterpriseSocialEmbedFromJSON(jsonValue));
+ }
+
+ /**
+ */
+ async apiEnterpriseSocialEmbedPartialUpdate(requestParameters: ApiEnterpriseSocialEmbedPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise {
+ const response = await this.apiEnterpriseSocialEmbedPartialUpdateRaw(requestParameters, initOverrides);
+ return await response.value();
+ }
+
+ /**
+ */
+ async apiEnterpriseSocialEmbedRetrieveRaw(requestParameters: ApiEnterpriseSocialEmbedRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> {
+ if (requestParameters['id'] == null) {
+ throw new runtime.RequiredError(
+ 'id',
+ 'Required parameter "id" was null or undefined when calling apiEnterpriseSocialEmbedRetrieve().'
+ );
+ }
+
+ const queryParameters: any = {};
+
+ const headerParameters: runtime.HTTPHeaders = {};
+
+ if (this.configuration && this.configuration.apiKey) {
+ headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication
+ }
+
+ const response = await this.request({
+ path: `/api/enterprise-social-embed/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
+ method: 'GET',
+ headers: headerParameters,
+ query: queryParameters,
+ }, initOverrides);
+
+ return new runtime.JSONApiResponse(response, (jsonValue) => EnterpriseSocialEmbedFromJSON(jsonValue));
+ }
+
+ /**
+ */
+ async apiEnterpriseSocialEmbedRetrieve(requestParameters: ApiEnterpriseSocialEmbedRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise {
+ const response = await this.apiEnterpriseSocialEmbedRetrieveRaw(requestParameters, initOverrides);
+ return await response.value();
+ }
+
+ /**
+ */
+ async apiEnterpriseSocialEmbedUpdateRaw(requestParameters: ApiEnterpriseSocialEmbedUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> {
+ if (requestParameters['id'] == null) {
+ throw new runtime.RequiredError(
+ 'id',
+ 'Required parameter "id" was null or undefined when calling apiEnterpriseSocialEmbedUpdate().'
+ );
+ }
+
+ if (requestParameters['enterpriseSocialEmbed'] == null) {
+ throw new runtime.RequiredError(
+ 'enterpriseSocialEmbed',
+ 'Required parameter "enterpriseSocialEmbed" was null or undefined when calling apiEnterpriseSocialEmbedUpdate().'
+ );
+ }
+
+ const queryParameters: any = {};
+
+ const headerParameters: runtime.HTTPHeaders = {};
+
+ headerParameters['Content-Type'] = 'application/json';
+
+ if (this.configuration && this.configuration.apiKey) {
+ headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication
+ }
+
+ const response = await this.request({
+ path: `/api/enterprise-social-embed/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
+ method: 'PUT',
+ headers: headerParameters,
+ query: queryParameters,
+ body: EnterpriseSocialEmbedToJSON(requestParameters['enterpriseSocialEmbed']),
+ }, initOverrides);
+
+ return new runtime.JSONApiResponse(response, (jsonValue) => EnterpriseSocialEmbedFromJSON(jsonValue));
+ }
+
+ /**
+ */
+ async apiEnterpriseSocialEmbedUpdate(requestParameters: ApiEnterpriseSocialEmbedUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise {
+ const response = await this.apiEnterpriseSocialEmbedUpdateRaw(requestParameters, initOverrides);
+ return await response.value();
+ }
+
+ /**
+ * logs request counts to redis cache total/per user/
+ */
+ async apiEnterpriseSocialKeywordCreateRaw(requestParameters: ApiEnterpriseSocialKeywordCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> {
+ if (requestParameters['keyword'] == null) {
+ throw new runtime.RequiredError(
+ 'keyword',
+ 'Required parameter "keyword" was null or undefined when calling apiEnterpriseSocialKeywordCreate().'
+ );
+ }
+
+ const queryParameters: any = {};
+
+ const headerParameters: runtime.HTTPHeaders = {};
+
+ headerParameters['Content-Type'] = 'application/json';
+
+ if (this.configuration && this.configuration.apiKey) {
+ headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication
+ }
+
+ const response = await this.request({
+ path: `/api/enterprise-social-keyword/`,
+ method: 'POST',
+ headers: headerParameters,
+ query: queryParameters,
+ body: KeywordToJSON(requestParameters['keyword']),
+ }, initOverrides);
+
+ return new runtime.JSONApiResponse(response, (jsonValue) => KeywordFromJSON(jsonValue));
+ }
+
+ /**
+ * logs request counts to redis cache total/per user/
+ */
+ async apiEnterpriseSocialKeywordCreate(requestParameters: ApiEnterpriseSocialKeywordCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise {
+ const response = await this.apiEnterpriseSocialKeywordCreateRaw(requestParameters, initOverrides);
+ return await response.value();
+ }
+
+ /**
+ * logs request counts to redis cache total/per user/
+ */
+ async apiEnterpriseSocialKeywordDestroyRaw(requestParameters: ApiEnterpriseSocialKeywordDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> {
+ if (requestParameters['id'] == null) {
+ throw new runtime.RequiredError(
+ 'id',
+ 'Required parameter "id" was null or undefined when calling apiEnterpriseSocialKeywordDestroy().'
+ );
+ }
+
+ const queryParameters: any = {};
+
+ const headerParameters: runtime.HTTPHeaders = {};
+
+ if (this.configuration && this.configuration.apiKey) {
+ headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication
+ }
+
+ const response = await this.request({
+ path: `/api/enterprise-social-keyword/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
+ method: 'DELETE',
+ headers: headerParameters,
+ query: queryParameters,
+ }, initOverrides);
+
+ return new runtime.VoidApiResponse(response);
+ }
+
+ /**
+ * logs request counts to redis cache total/per user/
+ */
+ async apiEnterpriseSocialKeywordDestroy(requestParameters: ApiEnterpriseSocialKeywordDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise {
+ await this.apiEnterpriseSocialKeywordDestroyRaw(requestParameters, initOverrides);
+ }
+
+ /**
+ * logs request counts to redis cache total/per user/
+ */
+ async apiEnterpriseSocialKeywordListRaw(requestParameters: ApiEnterpriseSocialKeywordListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> {
+ const queryParameters: any = {};
+
+ if (requestParameters['limit'] != null) {
+ queryParameters['limit'] = requestParameters['limit'];
+ }
+
+ if (requestParameters['page'] != null) {
+ queryParameters['page'] = requestParameters['page'];
+ }
+
+ if (requestParameters['pageSize'] != null) {
+ queryParameters['page_size'] = requestParameters['pageSize'];
+ }
+
+ if (requestParameters['query'] != null) {
+ queryParameters['query'] = requestParameters['query'];
+ }
+
+ if (requestParameters['random'] != null) {
+ queryParameters['random'] = requestParameters['random'];
+ }
+
+ if (requestParameters['root'] != null) {
+ queryParameters['root'] = requestParameters['root'];
+ }
+
+ if (requestParameters['tree'] != null) {
+ queryParameters['tree'] = requestParameters['tree'];
+ }
+
+ if (requestParameters['updatedAt'] != null) {
+ queryParameters['updated_at'] = requestParameters['updatedAt'];
+ }
+
+ const headerParameters: runtime.HTTPHeaders = {};
+
+ if (this.configuration && this.configuration.apiKey) {
+ headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication
+ }
+
+ const response = await this.request({
+ path: `/api/enterprise-social-keyword/`,
+ method: 'GET',
+ headers: headerParameters,
+ query: queryParameters,
+ }, initOverrides);
+
+ return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedKeywordListFromJSON(jsonValue));
+ }
+
+ /**
+ * logs request counts to redis cache total/per user/
+ */
+ async apiEnterpriseSocialKeywordList(requestParameters: ApiEnterpriseSocialKeywordListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise {
+ const response = await this.apiEnterpriseSocialKeywordListRaw(requestParameters, initOverrides);
+ return await response.value();
+ }
+
+ /**
+ * logs request counts to redis cache total/per user/
+ */
+ async apiEnterpriseSocialKeywordMergeUpdateRaw(requestParameters: ApiEnterpriseSocialKeywordMergeUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> {
+ if (requestParameters['id'] == null) {
+ throw new runtime.RequiredError(
+ 'id',
+ 'Required parameter "id" was null or undefined when calling apiEnterpriseSocialKeywordMergeUpdate().'
+ );
+ }
+
+ if (requestParameters['target'] == null) {
+ throw new runtime.RequiredError(
+ 'target',
+ 'Required parameter "target" was null or undefined when calling apiEnterpriseSocialKeywordMergeUpdate().'
+ );
+ }
+
+ if (requestParameters['keyword'] == null) {
+ throw new runtime.RequiredError(
+ 'keyword',
+ 'Required parameter "keyword" was null or undefined when calling apiEnterpriseSocialKeywordMergeUpdate().'
+ );
+ }
+
+ const queryParameters: any = {};
+
+ const headerParameters: runtime.HTTPHeaders = {};
+
+ headerParameters['Content-Type'] = 'application/json';
+
+ if (this.configuration && this.configuration.apiKey) {
+ headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication
+ }
+
+ const response = await this.request({
+ path: `/api/enterprise-social-keyword/{id}/merge/{target}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))).replace(`{${"target"}}`, encodeURIComponent(String(requestParameters['target']))),
+ method: 'PUT',
+ headers: headerParameters,
+ query: queryParameters,
+ body: KeywordToJSON(requestParameters['keyword']),
+ }, initOverrides);
+
+ return new runtime.JSONApiResponse(response, (jsonValue) => KeywordFromJSON(jsonValue));
+ }
+
+ /**
+ * logs request counts to redis cache total/per user/
+ */
+ async apiEnterpriseSocialKeywordMergeUpdate(requestParameters: ApiEnterpriseSocialKeywordMergeUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise {
+ const response = await this.apiEnterpriseSocialKeywordMergeUpdateRaw(requestParameters, initOverrides);
+ return await response.value();
+ }
+
+ /**
+ * logs request counts to redis cache total/per user/
+ */
+ async apiEnterpriseSocialKeywordMoveUpdateRaw(requestParameters: ApiEnterpriseSocialKeywordMoveUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> {
+ if (requestParameters['id'] == null) {
+ throw new runtime.RequiredError(
+ 'id',
+ 'Required parameter "id" was null or undefined when calling apiEnterpriseSocialKeywordMoveUpdate().'
+ );
+ }
+
+ if (requestParameters['parent'] == null) {
+ throw new runtime.RequiredError(
+ 'parent',
+ 'Required parameter "parent" was null or undefined when calling apiEnterpriseSocialKeywordMoveUpdate().'
+ );
+ }
+
+ if (requestParameters['keyword'] == null) {
+ throw new runtime.RequiredError(
+ 'keyword',
+ 'Required parameter "keyword" was null or undefined when calling apiEnterpriseSocialKeywordMoveUpdate().'
+ );
+ }
+
+ const queryParameters: any = {};
+
+ const headerParameters: runtime.HTTPHeaders = {};
+
+ headerParameters['Content-Type'] = 'application/json';
+
+ if (this.configuration && this.configuration.apiKey) {
+ headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication
+ }
+
+ const response = await this.request({
+ path: `/api/enterprise-social-keyword/{id}/move/{parent}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))).replace(`{${"parent"}}`, encodeURIComponent(String(requestParameters['parent']))),
+ method: 'PUT',
+ headers: headerParameters,
+ query: queryParameters,
+ body: KeywordToJSON(requestParameters['keyword']),
+ }, initOverrides);
+
+ return new runtime.JSONApiResponse(response, (jsonValue) => KeywordFromJSON(jsonValue));
+ }
+
+ /**
+ * logs request counts to redis cache total/per user/
+ */
+ async apiEnterpriseSocialKeywordMoveUpdate(requestParameters: ApiEnterpriseSocialKeywordMoveUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise {
+ const response = await this.apiEnterpriseSocialKeywordMoveUpdateRaw(requestParameters, initOverrides);
+ return await response.value();
+ }
+
+ /**
+ * logs request counts to redis cache total/per user/
+ */
+ async apiEnterpriseSocialKeywordPartialUpdateRaw(requestParameters: ApiEnterpriseSocialKeywordPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> {
+ if (requestParameters['id'] == null) {
+ throw new runtime.RequiredError(
+ 'id',
+ 'Required parameter "id" was null or undefined when calling apiEnterpriseSocialKeywordPartialUpdate().'
+ );
+ }
+
+ const queryParameters: any = {};
+
+ const headerParameters: runtime.HTTPHeaders = {};
+
+ headerParameters['Content-Type'] = 'application/json';
+
+ if (this.configuration && this.configuration.apiKey) {
+ headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication
+ }
+
+ const response = await this.request({
+ path: `/api/enterprise-social-keyword/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
+ method: 'PATCH',
+ headers: headerParameters,
+ query: queryParameters,
+ body: PatchedKeywordToJSON(requestParameters['patchedKeyword']),
+ }, initOverrides);
+
+ return new runtime.JSONApiResponse(response, (jsonValue) => KeywordFromJSON(jsonValue));
+ }
+
+ /**
+ * logs request counts to redis cache total/per user/
+ */
+ async apiEnterpriseSocialKeywordPartialUpdate(requestParameters: ApiEnterpriseSocialKeywordPartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise {
+ const response = await this.apiEnterpriseSocialKeywordPartialUpdateRaw(requestParameters, initOverrides);
+ return await response.value();
+ }
+
+ /**
+ * logs request counts to redis cache total/per user/
+ */
+ async apiEnterpriseSocialKeywordRetrieveRaw(requestParameters: ApiEnterpriseSocialKeywordRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> {
+ if (requestParameters['id'] == null) {
+ throw new runtime.RequiredError(
+ 'id',
+ 'Required parameter "id" was null or undefined when calling apiEnterpriseSocialKeywordRetrieve().'
+ );
+ }
+
+ const queryParameters: any = {};
+
+ const headerParameters: runtime.HTTPHeaders = {};
+
+ if (this.configuration && this.configuration.apiKey) {
+ headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication
+ }
+
+ const response = await this.request({
+ path: `/api/enterprise-social-keyword/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
+ method: 'GET',
+ headers: headerParameters,
+ query: queryParameters,
+ }, initOverrides);
+
+ return new runtime.JSONApiResponse(response, (jsonValue) => KeywordFromJSON(jsonValue));
+ }
+
+ /**
+ * logs request counts to redis cache total/per user/
+ */
+ async apiEnterpriseSocialKeywordRetrieve(requestParameters: ApiEnterpriseSocialKeywordRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise {
+ const response = await this.apiEnterpriseSocialKeywordRetrieveRaw(requestParameters, initOverrides);
+ return await response.value();
+ }
+
+ /**
+ * logs request counts to redis cache total/per user/
+ */
+ async apiEnterpriseSocialKeywordUpdateRaw(requestParameters: ApiEnterpriseSocialKeywordUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> {
+ if (requestParameters['id'] == null) {
+ throw new runtime.RequiredError(
+ 'id',
+ 'Required parameter "id" was null or undefined when calling apiEnterpriseSocialKeywordUpdate().'
+ );
+ }
+
+ if (requestParameters['keyword'] == null) {
+ throw new runtime.RequiredError(
+ 'keyword',
+ 'Required parameter "keyword" was null or undefined when calling apiEnterpriseSocialKeywordUpdate().'
+ );
+ }
+
+ const queryParameters: any = {};
+
+ const headerParameters: runtime.HTTPHeaders = {};
+
+ headerParameters['Content-Type'] = 'application/json';
+
+ if (this.configuration && this.configuration.apiKey) {
+ headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication
+ }
+
+ const response = await this.request({
+ path: `/api/enterprise-social-keyword/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
+ method: 'PUT',
+ headers: headerParameters,
+ query: queryParameters,
+ body: KeywordToJSON(requestParameters['keyword']),
+ }, initOverrides);
+
+ return new runtime.JSONApiResponse(response, (jsonValue) => KeywordFromJSON(jsonValue));
+ }
+
+ /**
+ * logs request counts to redis cache total/per user/
+ */
+ async apiEnterpriseSocialKeywordUpdate(requestParameters: ApiEnterpriseSocialKeywordUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise {
+ const response = await this.apiEnterpriseSocialKeywordUpdateRaw(requestParameters, initOverrides);
+ return await response.value();
+ }
+
+ /**
+ * logs request counts to redis cache total/per user/
+ */
+ async apiEnterpriseSocialRecipeCreateRaw(requestParameters: ApiEnterpriseSocialRecipeCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> {
+ if (requestParameters['recipe'] == null) {
+ throw new runtime.RequiredError(
+ 'recipe',
+ 'Required parameter "recipe" was null or undefined when calling apiEnterpriseSocialRecipeCreate().'
+ );
+ }
+
+ const queryParameters: any = {};
+
+ const headerParameters: runtime.HTTPHeaders = {};
+
+ headerParameters['Content-Type'] = 'application/json';
+
+ if (this.configuration && this.configuration.apiKey) {
+ headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication
+ }
+
+ const response = await this.request({
+ path: `/api/enterprise-social-recipe/`,
+ method: 'POST',
+ headers: headerParameters,
+ query: queryParameters,
+ body: RecipeToJSON(requestParameters['recipe']),
+ }, initOverrides);
+
+ return new runtime.JSONApiResponse(response, (jsonValue) => RecipeFromJSON(jsonValue));
+ }
+
+ /**
+ * logs request counts to redis cache total/per user/
+ */
+ async apiEnterpriseSocialRecipeCreate(requestParameters: ApiEnterpriseSocialRecipeCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise {
+ const response = await this.apiEnterpriseSocialRecipeCreateRaw(requestParameters, initOverrides);
+ return await response.value();
+ }
+
+ /**
+ * logs request counts to redis cache total/per user/
+ */
+ async apiEnterpriseSocialRecipeDestroyRaw(requestParameters: ApiEnterpriseSocialRecipeDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> {
+ if (requestParameters['id'] == null) {
+ throw new runtime.RequiredError(
+ 'id',
+ 'Required parameter "id" was null or undefined when calling apiEnterpriseSocialRecipeDestroy().'
+ );
+ }
+
+ const queryParameters: any = {};
+
+ const headerParameters: runtime.HTTPHeaders = {};
+
+ if (this.configuration && this.configuration.apiKey) {
+ headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication
+ }
+
+ const response = await this.request({
+ path: `/api/enterprise-social-recipe/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
+ method: 'DELETE',
+ headers: headerParameters,
+ query: queryParameters,
+ }, initOverrides);
+
+ return new runtime.VoidApiResponse(response);
+ }
+
+ /**
+ * logs request counts to redis cache total/per user/
+ */
+ async apiEnterpriseSocialRecipeDestroy(requestParameters: ApiEnterpriseSocialRecipeDestroyRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise {
+ await this.apiEnterpriseSocialRecipeDestroyRaw(requestParameters, initOverrides);
+ }
+
+ /**
+ * logs request counts to redis cache total/per user/
+ */
+ async apiEnterpriseSocialRecipeFlatListRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> {
+ const queryParameters: any = {};
+
+ const headerParameters: runtime.HTTPHeaders = {};
+
+ if (this.configuration && this.configuration.apiKey) {
+ headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication
+ }
+
+ const response = await this.request({
+ path: `/api/enterprise-social-recipe/flat/`,
+ method: 'GET',
+ headers: headerParameters,
+ query: queryParameters,
+ }, initOverrides);
+
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(RecipeFlatFromJSON));
+ }
+
+ /**
+ * logs request counts to redis cache total/per user/
+ */
+ async apiEnterpriseSocialRecipeFlatList(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> {
+ const response = await this.apiEnterpriseSocialRecipeFlatListRaw(initOverrides);
+ return await response.value();
+ }
+
+ /**
+ * logs request counts to redis cache total/per user/
+ */
+ async apiEnterpriseSocialRecipeImageUpdateRaw(requestParameters: ApiEnterpriseSocialRecipeImageUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> {
+ if (requestParameters['id'] == null) {
+ throw new runtime.RequiredError(
+ 'id',
+ 'Required parameter "id" was null or undefined when calling apiEnterpriseSocialRecipeImageUpdate().'
+ );
+ }
+
+ const queryParameters: any = {};
+
+ const headerParameters: runtime.HTTPHeaders = {};
+
+ if (this.configuration && this.configuration.apiKey) {
+ headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication
+ }
+
+ const consumes: runtime.Consume[] = [
+ { contentType: 'multipart/form-data' },
+ ];
+ // @ts-ignore: canConsumeForm may be unused
+ const canConsumeForm = runtime.canConsumeForm(consumes);
+
+ let formParams: { append(param: string, value: any): any };
+ let useForm = false;
+ if (useForm) {
+ formParams = new FormData();
+ } else {
+ formParams = new URLSearchParams();
+ }
+
+ if (requestParameters['image'] != null) {
+ formParams.append('image', requestParameters['image'] as any);
+ }
+
+ if (requestParameters['imageUrl'] != null) {
+ formParams.append('image_url', requestParameters['imageUrl'] as any);
+ }
+
+ const response = await this.request({
+ path: `/api/enterprise-social-recipe/{id}/image/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
+ method: 'PUT',
+ headers: headerParameters,
+ query: queryParameters,
+ body: formParams,
+ }, initOverrides);
+
+ return new runtime.JSONApiResponse(response, (jsonValue) => RecipeImageFromJSON(jsonValue));
+ }
+
+ /**
+ * logs request counts to redis cache total/per user/
+ */
+ async apiEnterpriseSocialRecipeImageUpdate(requestParameters: ApiEnterpriseSocialRecipeImageUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise {
+ const response = await this.apiEnterpriseSocialRecipeImageUpdateRaw(requestParameters, initOverrides);
+ return await response.value();
+ }
+
+ /**
+ * logs request counts to redis cache total/per user/
+ */
+ async apiEnterpriseSocialRecipeListRaw(requestParameters: ApiEnterpriseSocialRecipeListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> {
+ const queryParameters: any = {};
+
+ if (requestParameters['books'] != null) {
+ queryParameters['books'] = requestParameters['books'];
+ }
+
+ if (requestParameters['booksAnd'] != null) {
+ queryParameters['books_and'] = requestParameters['booksAnd'];
+ }
+
+ if (requestParameters['booksAndNot'] != null) {
+ queryParameters['books_and_not'] = requestParameters['booksAndNot'];
+ }
+
+ if (requestParameters['booksOr'] != null) {
+ queryParameters['books_or'] = requestParameters['booksOr'];
+ }
+
+ if (requestParameters['booksOrNot'] != null) {
+ queryParameters['books_or_not'] = requestParameters['booksOrNot'];
+ }
+
+ if (requestParameters['cookedonGte'] != null) {
+ queryParameters['cookedon_gte'] = (requestParameters['cookedonGte'] as any).toISOString().substring(0,10);
+ }
+
+ if (requestParameters['cookedonLte'] != null) {
+ queryParameters['cookedon_lte'] = (requestParameters['cookedonLte'] as any).toISOString().substring(0,10);
+ }
+
+ if (requestParameters['createdby'] != null) {
+ queryParameters['createdby'] = requestParameters['createdby'];
+ }
+
+ if (requestParameters['createdon'] != null) {
+ queryParameters['createdon'] = (requestParameters['createdon'] as any).toISOString().substring(0,10);
+ }
+
+ if (requestParameters['createdonGte'] != null) {
+ queryParameters['createdon_gte'] = (requestParameters['createdonGte'] as any).toISOString().substring(0,10);
+ }
+
+ if (requestParameters['createdonLte'] != null) {
+ queryParameters['createdon_lte'] = (requestParameters['createdonLte'] as any).toISOString().substring(0,10);
+ }
+
+ if (requestParameters['filter'] != null) {
+ queryParameters['filter'] = requestParameters['filter'];
+ }
+
+ if (requestParameters['foods'] != null) {
+ queryParameters['foods'] = requestParameters['foods'];
+ }
+
+ if (requestParameters['foodsAnd'] != null) {
+ queryParameters['foods_and'] = requestParameters['foodsAnd'];
+ }
+
+ if (requestParameters['foodsAndNot'] != null) {
+ queryParameters['foods_and_not'] = requestParameters['foodsAndNot'];
+ }
+
+ if (requestParameters['foodsOr'] != null) {
+ queryParameters['foods_or'] = requestParameters['foodsOr'];
+ }
+
+ if (requestParameters['foodsOrNot'] != null) {
+ queryParameters['foods_or_not'] = requestParameters['foodsOrNot'];
+ }
+
+ if (requestParameters['internal'] != null) {
+ queryParameters['internal'] = requestParameters['internal'];
+ }
+
+ if (requestParameters['keyword'] != null) {
+ queryParameters['keyword'] = requestParameters['keyword'];
+ }
+
+ if (requestParameters['keywords'] != null) {
+ queryParameters['keywords'] = requestParameters['keywords'];
+ }
+
+ if (requestParameters['keywordsAnd'] != null) {
+ queryParameters['keywords_and'] = requestParameters['keywordsAnd'];
+ }
+
+ if (requestParameters['keywordsAndNot'] != null) {
+ queryParameters['keywords_and_not'] = requestParameters['keywordsAndNot'];
+ }
+
+ if (requestParameters['keywordsOr'] != null) {
+ queryParameters['keywords_or'] = requestParameters['keywordsOr'];
+ }
+
+ if (requestParameters['keywordsOrNot'] != null) {
+ queryParameters['keywords_or_not'] = requestParameters['keywordsOrNot'];
+ }
+
+ if (requestParameters['makenow'] != null) {
+ queryParameters['makenow'] = requestParameters['makenow'];
+ }
+
+ if (requestParameters['_new'] != null) {
+ queryParameters['new'] = requestParameters['_new'];
+ }
+
+ if (requestParameters['numRecent'] != null) {
+ queryParameters['num_recent'] = requestParameters['numRecent'];
+ }
+
+ if (requestParameters['page'] != null) {
+ queryParameters['page'] = requestParameters['page'];
+ }
+
+ if (requestParameters['pageSize'] != null) {
+ queryParameters['page_size'] = requestParameters['pageSize'];
+ }
+
+ if (requestParameters['query'] != null) {
+ queryParameters['query'] = requestParameters['query'];
+ }
+
+ if (requestParameters['random'] != null) {
+ queryParameters['random'] = requestParameters['random'];
+ }
+
+ if (requestParameters['rating'] != null) {
+ queryParameters['rating'] = requestParameters['rating'];
+ }
+
+ if (requestParameters['ratingGte'] != null) {
+ queryParameters['rating_gte'] = requestParameters['ratingGte'];
+ }
+
+ if (requestParameters['ratingLte'] != null) {
+ queryParameters['rating_lte'] = requestParameters['ratingLte'];
+ }
+
+ if (requestParameters['sortOrder'] != null) {
+ queryParameters['sort_order'] = requestParameters['sortOrder'];
+ }
+
+ if (requestParameters['timescooked'] != null) {
+ queryParameters['timescooked'] = requestParameters['timescooked'];
+ }
+
+ if (requestParameters['timescookedGte'] != null) {
+ queryParameters['timescooked_gte'] = requestParameters['timescookedGte'];
+ }
+
+ if (requestParameters['timescookedLte'] != null) {
+ queryParameters['timescooked_lte'] = requestParameters['timescookedLte'];
+ }
+
+ if (requestParameters['token'] != null) {
+ queryParameters['token'] = requestParameters['token'];
+ }
+
+ if (requestParameters['units'] != null) {
+ queryParameters['units'] = requestParameters['units'];
+ }
+
+ if (requestParameters['updatedon'] != null) {
+ queryParameters['updatedon'] = (requestParameters['updatedon'] as any).toISOString().substring(0,10);
+ }
+
+ if (requestParameters['updatedonGte'] != null) {
+ queryParameters['updatedon_gte'] = (requestParameters['updatedonGte'] as any).toISOString().substring(0,10);
+ }
+
+ if (requestParameters['updatedonLte'] != null) {
+ queryParameters['updatedon_lte'] = (requestParameters['updatedonLte'] as any).toISOString().substring(0,10);
+ }
+
+ if (requestParameters['viewedonGte'] != null) {
+ queryParameters['viewedon_gte'] = (requestParameters['viewedonGte'] as any).toISOString().substring(0,10);
+ }
+
+ if (requestParameters['viewedonLte'] != null) {
+ queryParameters['viewedon_lte'] = (requestParameters['viewedonLte'] as any).toISOString().substring(0,10);
+ }
+
+ const headerParameters: runtime.HTTPHeaders = {};
+
+ if (this.configuration && this.configuration.apiKey) {
+ headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication
+ }
+
+ const response = await this.request({
+ path: `/api/enterprise-social-recipe/`,
+ method: 'GET',
+ headers: headerParameters,
+ query: queryParameters,
+ }, initOverrides);
+
+ return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedEnterpriseSocialRecipeSearchListFromJSON(jsonValue));
+ }
+
+ /**
+ * logs request counts to redis cache total/per user/
+ */
+ async apiEnterpriseSocialRecipeList(requestParameters: ApiEnterpriseSocialRecipeListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise {
+ const response = await this.apiEnterpriseSocialRecipeListRaw(requestParameters, initOverrides);
+ return await response.value();
+ }
+
+ /**
+ * logs request counts to redis cache total/per user/
+ */
+ async apiEnterpriseSocialRecipePartialUpdateRaw(requestParameters: ApiEnterpriseSocialRecipePartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> {
+ if (requestParameters['id'] == null) {
+ throw new runtime.RequiredError(
+ 'id',
+ 'Required parameter "id" was null or undefined when calling apiEnterpriseSocialRecipePartialUpdate().'
+ );
+ }
+
+ const queryParameters: any = {};
+
+ const headerParameters: runtime.HTTPHeaders = {};
+
+ headerParameters['Content-Type'] = 'application/json';
+
+ if (this.configuration && this.configuration.apiKey) {
+ headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication
+ }
+
+ const response = await this.request({
+ path: `/api/enterprise-social-recipe/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
+ method: 'PATCH',
+ headers: headerParameters,
+ query: queryParameters,
+ body: PatchedRecipeToJSON(requestParameters['patchedRecipe']),
+ }, initOverrides);
+
+ return new runtime.JSONApiResponse(response, (jsonValue) => RecipeFromJSON(jsonValue));
+ }
+
+ /**
+ * logs request counts to redis cache total/per user/
+ */
+ async apiEnterpriseSocialRecipePartialUpdate(requestParameters: ApiEnterpriseSocialRecipePartialUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise {
+ const response = await this.apiEnterpriseSocialRecipePartialUpdateRaw(requestParameters, initOverrides);
+ return await response.value();
+ }
+
+ /**
+ * logs request counts to redis cache total/per user/
+ */
+ async apiEnterpriseSocialRecipeRelatedListRaw(requestParameters: ApiEnterpriseSocialRecipeRelatedListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> {
+ if (requestParameters['id'] == null) {
+ throw new runtime.RequiredError(
+ 'id',
+ 'Required parameter "id" was null or undefined when calling apiEnterpriseSocialRecipeRelatedList().'
+ );
+ }
+
+ const queryParameters: any = {};
+
+ const headerParameters: runtime.HTTPHeaders = {};
+
+ if (this.configuration && this.configuration.apiKey) {
+ headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication
+ }
+
+ const response = await this.request({
+ path: `/api/enterprise-social-recipe/{id}/related/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
+ method: 'GET',
+ headers: headerParameters,
+ query: queryParameters,
+ }, initOverrides);
+
+ return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(RecipeSimpleFromJSON));
+ }
+
+ /**
+ * logs request counts to redis cache total/per user/
+ */
+ async apiEnterpriseSocialRecipeRelatedList(requestParameters: ApiEnterpriseSocialRecipeRelatedListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> {
+ const response = await this.apiEnterpriseSocialRecipeRelatedListRaw(requestParameters, initOverrides);
+ return await response.value();
+ }
+
+ /**
+ * logs request counts to redis cache total/per user/
+ */
+ async apiEnterpriseSocialRecipeRetrieveRaw(requestParameters: ApiEnterpriseSocialRecipeRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> {
+ if (requestParameters['id'] == null) {
+ throw new runtime.RequiredError(
+ 'id',
+ 'Required parameter "id" was null or undefined when calling apiEnterpriseSocialRecipeRetrieve().'
+ );
+ }
+
+ const queryParameters: any = {};
+
+ if (requestParameters['share'] != null) {
+ queryParameters['share'] = requestParameters['share'];
+ }
+
+ if (requestParameters['token'] != null) {
+ queryParameters['token'] = requestParameters['token'];
+ }
+
+ const headerParameters: runtime.HTTPHeaders = {};
+
+ if (this.configuration && this.configuration.apiKey) {
+ headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication
+ }
+
+ const response = await this.request({
+ path: `/api/enterprise-social-recipe/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
+ method: 'GET',
+ headers: headerParameters,
+ query: queryParameters,
+ }, initOverrides);
+
+ return new runtime.JSONApiResponse(response, (jsonValue) => RecipeFromJSON(jsonValue));
+ }
+
+ /**
+ * logs request counts to redis cache total/per user/
+ */
+ async apiEnterpriseSocialRecipeRetrieve(requestParameters: ApiEnterpriseSocialRecipeRetrieveRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise {
+ const response = await this.apiEnterpriseSocialRecipeRetrieveRaw(requestParameters, initOverrides);
+ return await response.value();
+ }
+
+ /**
+ * logs request counts to redis cache total/per user/
+ */
+ async apiEnterpriseSocialRecipeShoppingUpdateRaw(requestParameters: ApiEnterpriseSocialRecipeShoppingUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> {
+ if (requestParameters['id'] == null) {
+ throw new runtime.RequiredError(
+ 'id',
+ 'Required parameter "id" was null or undefined when calling apiEnterpriseSocialRecipeShoppingUpdate().'
+ );
+ }
+
+ if (requestParameters['recipeShoppingUpdate'] == null) {
+ throw new runtime.RequiredError(
+ 'recipeShoppingUpdate',
+ 'Required parameter "recipeShoppingUpdate" was null or undefined when calling apiEnterpriseSocialRecipeShoppingUpdate().'
+ );
+ }
+
+ const queryParameters: any = {};
+
+ const headerParameters: runtime.HTTPHeaders = {};
+
+ headerParameters['Content-Type'] = 'application/json';
+
+ if (this.configuration && this.configuration.apiKey) {
+ headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication
+ }
+
+ const response = await this.request({
+ path: `/api/enterprise-social-recipe/{id}/shopping/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
+ method: 'PUT',
+ headers: headerParameters,
+ query: queryParameters,
+ body: RecipeShoppingUpdateToJSON(requestParameters['recipeShoppingUpdate']),
+ }, initOverrides);
+
+ return new runtime.JSONApiResponse(response, (jsonValue) => RecipeShoppingUpdateFromJSON(jsonValue));
+ }
+
+ /**
+ * logs request counts to redis cache total/per user/
+ */
+ async apiEnterpriseSocialRecipeShoppingUpdate(requestParameters: ApiEnterpriseSocialRecipeShoppingUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise {
+ const response = await this.apiEnterpriseSocialRecipeShoppingUpdateRaw(requestParameters, initOverrides);
+ return await response.value();
+ }
+
+ /**
+ * logs request counts to redis cache total/per user/
+ */
+ async apiEnterpriseSocialRecipeUpdateRaw(requestParameters: ApiEnterpriseSocialRecipeUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> {
+ if (requestParameters['id'] == null) {
+ throw new runtime.RequiredError(
+ 'id',
+ 'Required parameter "id" was null or undefined when calling apiEnterpriseSocialRecipeUpdate().'
+ );
+ }
+
+ if (requestParameters['recipe'] == null) {
+ throw new runtime.RequiredError(
+ 'recipe',
+ 'Required parameter "recipe" was null or undefined when calling apiEnterpriseSocialRecipeUpdate().'
+ );
+ }
+
+ const queryParameters: any = {};
+
+ const headerParameters: runtime.HTTPHeaders = {};
+
+ headerParameters['Content-Type'] = 'application/json';
+
+ if (this.configuration && this.configuration.apiKey) {
+ headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication
+ }
+
+ const response = await this.request({
+ path: `/api/enterprise-social-recipe/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
+ method: 'PUT',
+ headers: headerParameters,
+ query: queryParameters,
+ body: RecipeToJSON(requestParameters['recipe']),
+ }, initOverrides);
+
+ return new runtime.JSONApiResponse(response, (jsonValue) => RecipeFromJSON(jsonValue));
+ }
+
+ /**
+ * logs request counts to redis cache total/per user/
+ */
+ async apiEnterpriseSocialRecipeUpdate(requestParameters: ApiEnterpriseSocialRecipeUpdateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise {
+ const response = await this.apiEnterpriseSocialRecipeUpdateRaw(requestParameters, initOverrides);
+ return await response.value();
+ }
+
/**
*/
async apiExportCreateRaw(requestParameters: ApiExportCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> {
@@ -6353,9 +7778,17 @@ export class ApiApi extends runtime.BaseAPI {
/**
*/
- async apiOpenDataCategoryListRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> {
+ async apiOpenDataCategoryListRaw(requestParameters: ApiOpenDataCategoryListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> {
const queryParameters: any = {};
+ if (requestParameters['page'] != null) {
+ queryParameters['page'] = requestParameters['page'];
+ }
+
+ if (requestParameters['pageSize'] != null) {
+ queryParameters['page_size'] = requestParameters['pageSize'];
+ }
+
const headerParameters: runtime.HTTPHeaders = {};
if (this.configuration && this.configuration.apiKey) {
@@ -6369,13 +7802,13 @@ export class ApiApi extends runtime.BaseAPI {
query: queryParameters,
}, initOverrides);
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(OpenDataCategoryFromJSON));
+ return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedOpenDataCategoryListFromJSON(jsonValue));
}
/**
*/
- async apiOpenDataCategoryList(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> {
- const response = await this.apiOpenDataCategoryListRaw(initOverrides);
+ async apiOpenDataCategoryList(requestParameters: ApiOpenDataCategoryListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise {
+ const response = await this.apiOpenDataCategoryListRaw(requestParameters, initOverrides);
return await response.value();
}
@@ -6571,9 +8004,17 @@ export class ApiApi extends runtime.BaseAPI {
/**
*/
- async apiOpenDataConversionListRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> {
+ async apiOpenDataConversionListRaw(requestParameters: ApiOpenDataConversionListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> {
const queryParameters: any = {};
+ if (requestParameters['page'] != null) {
+ queryParameters['page'] = requestParameters['page'];
+ }
+
+ if (requestParameters['pageSize'] != null) {
+ queryParameters['page_size'] = requestParameters['pageSize'];
+ }
+
const headerParameters: runtime.HTTPHeaders = {};
if (this.configuration && this.configuration.apiKey) {
@@ -6587,13 +8028,13 @@ export class ApiApi extends runtime.BaseAPI {
query: queryParameters,
}, initOverrides);
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(OpenDataConversionFromJSON));
+ return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedOpenDataConversionListFromJSON(jsonValue));
}
/**
*/
- async apiOpenDataConversionList(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> {
- const response = await this.apiOpenDataConversionListRaw(initOverrides);
+ async apiOpenDataConversionList(requestParameters: ApiOpenDataConversionListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise {
+ const response = await this.apiOpenDataConversionListRaw(requestParameters, initOverrides);
return await response.value();
}
@@ -6822,12 +8263,67 @@ export class ApiApi extends runtime.BaseAPI {
}
/**
+ * 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
*/
- async apiOpenDataFoodListRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> {
+ async apiOpenDataFoodFdcCreateRaw(requestParameters: ApiOpenDataFoodFdcCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> {
+ if (requestParameters['id'] == null) {
+ throw new runtime.RequiredError(
+ 'id',
+ 'Required parameter "id" was null or undefined when calling apiOpenDataFoodFdcCreate().'
+ );
+ }
+
+ if (requestParameters['openDataFood'] == null) {
+ throw new runtime.RequiredError(
+ 'openDataFood',
+ 'Required parameter "openDataFood" was null or undefined when calling apiOpenDataFoodFdcCreate().'
+ );
+ }
+
const queryParameters: any = {};
const headerParameters: runtime.HTTPHeaders = {};
+ headerParameters['Content-Type'] = 'application/json';
+
+ if (this.configuration && this.configuration.apiKey) {
+ headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication
+ }
+
+ const response = await this.request({
+ path: `/api/open-data-food/{id}/fdc/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id']))),
+ method: 'POST',
+ headers: headerParameters,
+ query: queryParameters,
+ body: OpenDataFoodToJSON(requestParameters['openDataFood']),
+ }, initOverrides);
+
+ return new runtime.JSONApiResponse(response, (jsonValue) => OpenDataFoodFromJSON(jsonValue));
+ }
+
+ /**
+ * 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
+ */
+ async apiOpenDataFoodFdcCreate(requestParameters: ApiOpenDataFoodFdcCreateRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise {
+ const response = await this.apiOpenDataFoodFdcCreateRaw(requestParameters, initOverrides);
+ return await response.value();
+ }
+
+ /**
+ */
+ async apiOpenDataFoodListRaw(requestParameters: ApiOpenDataFoodListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> {
+ const queryParameters: any = {};
+
+ if (requestParameters['page'] != null) {
+ queryParameters['page'] = requestParameters['page'];
+ }
+
+ if (requestParameters['pageSize'] != null) {
+ queryParameters['page_size'] = requestParameters['pageSize'];
+ }
+
+ const headerParameters: runtime.HTTPHeaders = {};
+
if (this.configuration && this.configuration.apiKey) {
headerParameters["Authorization"] = await this.configuration.apiKey("Authorization"); // ApiKeyAuth authentication
}
@@ -6839,13 +8335,13 @@ export class ApiApi extends runtime.BaseAPI {
query: queryParameters,
}, initOverrides);
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(OpenDataFoodFromJSON));
+ return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedOpenDataFoodListFromJSON(jsonValue));
}
/**
*/
- async apiOpenDataFoodList(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> {
- const response = await this.apiOpenDataFoodListRaw(initOverrides);
+ async apiOpenDataFoodList(requestParameters: ApiOpenDataFoodListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise {
+ const response = await this.apiOpenDataFoodListRaw(requestParameters, initOverrides);
return await response.value();
}
@@ -7041,9 +8537,17 @@ export class ApiApi extends runtime.BaseAPI {
/**
*/
- async apiOpenDataPropertyListRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> {
+ async apiOpenDataPropertyListRaw(requestParameters: ApiOpenDataPropertyListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> {
const queryParameters: any = {};
+ if (requestParameters['page'] != null) {
+ queryParameters['page'] = requestParameters['page'];
+ }
+
+ if (requestParameters['pageSize'] != null) {
+ queryParameters['page_size'] = requestParameters['pageSize'];
+ }
+
const headerParameters: runtime.HTTPHeaders = {};
if (this.configuration && this.configuration.apiKey) {
@@ -7057,13 +8561,13 @@ export class ApiApi extends runtime.BaseAPI {
query: queryParameters,
}, initOverrides);
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(OpenDataPropertyFromJSON));
+ return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedOpenDataPropertyListFromJSON(jsonValue));
}
/**
*/
- async apiOpenDataPropertyList(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> {
- const response = await this.apiOpenDataPropertyListRaw(initOverrides);
+ async apiOpenDataPropertyList(requestParameters: ApiOpenDataPropertyListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise {
+ const response = await this.apiOpenDataPropertyListRaw(requestParameters, initOverrides);
return await response.value();
}
@@ -7286,9 +8790,17 @@ export class ApiApi extends runtime.BaseAPI {
/**
*/
- async apiOpenDataStoreListRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> {
+ async apiOpenDataStoreListRaw(requestParameters: ApiOpenDataStoreListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> {
const queryParameters: any = {};
+ if (requestParameters['page'] != null) {
+ queryParameters['page'] = requestParameters['page'];
+ }
+
+ if (requestParameters['pageSize'] != null) {
+ queryParameters['page_size'] = requestParameters['pageSize'];
+ }
+
const headerParameters: runtime.HTTPHeaders = {};
if (this.configuration && this.configuration.apiKey) {
@@ -7302,13 +8814,13 @@ export class ApiApi extends runtime.BaseAPI {
query: queryParameters,
}, initOverrides);
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(OpenDataStoreFromJSON));
+ return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedOpenDataStoreListFromJSON(jsonValue));
}
/**
*/
- async apiOpenDataStoreList(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> {
- const response = await this.apiOpenDataStoreListRaw(initOverrides);
+ async apiOpenDataStoreList(requestParameters: ApiOpenDataStoreListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise {
+ const response = await this.apiOpenDataStoreListRaw(requestParameters, initOverrides);
return await response.value();
}
@@ -7504,9 +9016,17 @@ export class ApiApi extends runtime.BaseAPI {
/**
*/
- async apiOpenDataUnitListRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> {
+ async apiOpenDataUnitListRaw(requestParameters: ApiOpenDataUnitListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> {
const queryParameters: any = {};
+ if (requestParameters['page'] != null) {
+ queryParameters['page'] = requestParameters['page'];
+ }
+
+ if (requestParameters['pageSize'] != null) {
+ queryParameters['page_size'] = requestParameters['pageSize'];
+ }
+
const headerParameters: runtime.HTTPHeaders = {};
if (this.configuration && this.configuration.apiKey) {
@@ -7520,13 +9040,13 @@ export class ApiApi extends runtime.BaseAPI {
query: queryParameters,
}, initOverrides);
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(OpenDataUnitFromJSON));
+ return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedOpenDataUnitListFromJSON(jsonValue));
}
/**
*/
- async apiOpenDataUnitList(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> {
- const response = await this.apiOpenDataUnitListRaw(initOverrides);
+ async apiOpenDataUnitList(requestParameters: ApiOpenDataUnitListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise {
+ const response = await this.apiOpenDataUnitListRaw(requestParameters, initOverrides);
return await response.value();
}
@@ -7722,9 +9242,17 @@ export class ApiApi extends runtime.BaseAPI {
/**
*/
- async apiOpenDataVersionListRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>> {
+ async apiOpenDataVersionListRaw(requestParameters: ApiOpenDataVersionListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> {
const queryParameters: any = {};
+ if (requestParameters['page'] != null) {
+ queryParameters['page'] = requestParameters['page'];
+ }
+
+ if (requestParameters['pageSize'] != null) {
+ queryParameters['page_size'] = requestParameters['pageSize'];
+ }
+
const headerParameters: runtime.HTTPHeaders = {};
if (this.configuration && this.configuration.apiKey) {
@@ -7738,13 +9266,13 @@ export class ApiApi extends runtime.BaseAPI {
query: queryParameters,
}, initOverrides);
- return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(OpenDataVersionFromJSON));
+ return new runtime.JSONApiResponse(response, (jsonValue) => PaginatedOpenDataVersionListFromJSON(jsonValue));
}
/**
*/
- async apiOpenDataVersionList(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise> {
- const response = await this.apiOpenDataVersionListRaw(initOverrides);
+ async apiOpenDataVersionList(requestParameters: ApiOpenDataVersionListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise {
+ const response = await this.apiOpenDataVersionListRaw(requestParameters, initOverrides);
return await response.value();
}
diff --git a/vue3/src/openapi/models/AlignmentEnum.ts b/vue3/src/openapi/models/AlignmentEnum.ts
new file mode 100644
index 000000000..c41e46a12
--- /dev/null
+++ b/vue3/src/openapi/models/AlignmentEnum.ts
@@ -0,0 +1,52 @@
+/* tslint:disable */
+/* eslint-disable */
+/**
+ * Tandoor
+ * Tandoor API Docs
+ *
+ * The version of the OpenAPI document: 0.0.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ */
+
+
+/**
+ * * `start` - start
+ * * `center` - center
+ * * `end` - end
+ * @export
+ */
+export const AlignmentEnum = {
+ Start: 'start',
+ Center: 'center',
+ End: 'end'
+} as const;
+export type AlignmentEnum = typeof AlignmentEnum[keyof typeof AlignmentEnum];
+
+
+export function instanceOfAlignmentEnum(value: any): boolean {
+ for (const key in AlignmentEnum) {
+ if (Object.prototype.hasOwnProperty.call(AlignmentEnum, key)) {
+ if (AlignmentEnum[key] === value) {
+ return true;
+ }
+ }
+ }
+ return false;
+}
+
+export function AlignmentEnumFromJSON(json: any): AlignmentEnum {
+ return AlignmentEnumFromJSONTyped(json, false);
+}
+
+export function AlignmentEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): AlignmentEnum {
+ return json as AlignmentEnum;
+}
+
+export function AlignmentEnumToJSON(value?: AlignmentEnum | null): any {
+ return value as any;
+}
+
diff --git a/vue3/src/openapi/models/BaseUnitEnum.ts b/vue3/src/openapi/models/BaseUnitEnum.ts
index 6688a9bfc..a269ab200 100644
--- a/vue3/src/openapi/models/BaseUnitEnum.ts
+++ b/vue3/src/openapi/models/BaseUnitEnum.ts
@@ -14,43 +14,47 @@
/**
- * * `G` - g
- * * `KG` - kg
- * * `ML` - ml
- * * `L` - l
- * * `OUNCE` - ounce
- * * `POUND` - pound
- * * `FLUID_OUNCE` - fluid_ounce
- * * `TSP` - tsp
- * * `TBSP` - tbsp
- * * `CUP` - cup
- * * `PINT` - pint
- * * `QUART` - quart
- * * `GALLON` - gallon
- * * `IMPERIAL_FLUID_OUNCE` - imperial fluid ounce
- * * `IMPERIAL_PINT` - imperial pint
- * * `IMPERIAL_QUART` - imperial quart
- * * `IMPERIAL_GALLON` - imperial gallon
+ * * `g` - g
+ * * `kg` - kg
+ * * `ounce` - ounce
+ * * `pound` - pound
+ * * `ml` - ml
+ * * `l` - l
+ * * `fluid_ounce` - fluid_ounce
+ * * `pint` - pint
+ * * `quart` - quart
+ * * `gallon` - gallon
+ * * `tbsp` - tbsp
+ * * `tsp` - tsp
+ * * `us_cup` - US Cup
+ * * `imperial_fluid_ounce` - imperial fluid ounce
+ * * `imperial_pint` - imperial pint
+ * * `imperial_quart` - imperial quart
+ * * `imperial_gallon` - imperial gallon
+ * * `imperial_tbsp` - imperial tbsp
+ * * `imperial_tsp` - imperial tsp
* @export
*/
export const BaseUnitEnum = {
- 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'
+ G: 'g',
+ Kg: 'kg',
+ Ounce: 'ounce',
+ Pound: 'pound',
+ Ml: 'ml',
+ L: 'l',
+ FluidOunce: 'fluid_ounce',
+ Pint: 'pint',
+ Quart: 'quart',
+ Gallon: 'gallon',
+ Tbsp: 'tbsp',
+ Tsp: 'tsp',
+ UsCup: 'us_cup',
+ ImperialFluidOunce: 'imperial_fluid_ounce',
+ ImperialPint: 'imperial_pint',
+ ImperialQuart: 'imperial_quart',
+ ImperialGallon: 'imperial_gallon',
+ ImperialTbsp: 'imperial_tbsp',
+ ImperialTsp: 'imperial_tsp'
} as const;
export type BaseUnitEnum = typeof BaseUnitEnum[keyof typeof BaseUnitEnum];
diff --git a/vue3/src/openapi/models/EnterpriseKeyword.ts b/vue3/src/openapi/models/EnterpriseKeyword.ts
new file mode 100644
index 000000000..eecc6e551
--- /dev/null
+++ b/vue3/src/openapi/models/EnterpriseKeyword.ts
@@ -0,0 +1,85 @@
+/* tslint:disable */
+/* eslint-disable */
+/**
+ * Tandoor
+ * Tandoor API Docs
+ *
+ * The version of the OpenAPI document: 0.0.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ */
+
+import { mapValues } from '../runtime';
+/**
+ *
+ * @export
+ * @interface EnterpriseKeyword
+ */
+export interface EnterpriseKeyword {
+ /**
+ *
+ * @type {number}
+ * @memberof EnterpriseKeyword
+ */
+ id?: number;
+ /**
+ *
+ * @type {string}
+ * @memberof EnterpriseKeyword
+ */
+ name: string;
+ /**
+ *
+ * @type {string}
+ * @memberof EnterpriseKeyword
+ */
+ readonly label: string;
+ /**
+ *
+ * @type {string}
+ * @memberof EnterpriseKeyword
+ */
+ description?: string;
+}
+
+/**
+ * Check if a given object implements the EnterpriseKeyword interface.
+ */
+export function instanceOfEnterpriseKeyword(value: object): value is EnterpriseKeyword {
+ if (!('name' in value) || value['name'] === undefined) return false;
+ if (!('label' in value) || value['label'] === undefined) return false;
+ return true;
+}
+
+export function EnterpriseKeywordFromJSON(json: any): EnterpriseKeyword {
+ return EnterpriseKeywordFromJSONTyped(json, false);
+}
+
+export function EnterpriseKeywordFromJSONTyped(json: any, ignoreDiscriminator: boolean): EnterpriseKeyword {
+ if (json == null) {
+ return json;
+ }
+ return {
+
+ 'id': json['id'] == null ? undefined : json['id'],
+ 'name': json['name'],
+ 'label': json['label'],
+ 'description': json['description'] == null ? undefined : json['description'],
+ };
+}
+
+export function EnterpriseKeywordToJSON(value?: Omit | null): any {
+ if (value == null) {
+ return value;
+ }
+ return {
+
+ 'id': value['id'],
+ 'name': value['name'],
+ 'description': value['description'],
+ };
+}
+
diff --git a/vue3/src/openapi/models/EnterpriseSocialEmbed.ts b/vue3/src/openapi/models/EnterpriseSocialEmbed.ts
new file mode 100644
index 000000000..c08f15f86
--- /dev/null
+++ b/vue3/src/openapi/models/EnterpriseSocialEmbed.ts
@@ -0,0 +1,138 @@
+/* tslint:disable */
+/* eslint-disable */
+/**
+ * Tandoor
+ * Tandoor API Docs
+ *
+ * The version of the OpenAPI document: 0.0.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ */
+
+import { mapValues } from '../runtime';
+import type { AlignmentEnum } from './AlignmentEnum';
+import {
+ AlignmentEnumFromJSON,
+ AlignmentEnumFromJSONTyped,
+ AlignmentEnumToJSON,
+} from './AlignmentEnum';
+import type { EnterpriseSocialEmbedTypeEnum } from './EnterpriseSocialEmbedTypeEnum';
+import {
+ EnterpriseSocialEmbedTypeEnumFromJSON,
+ EnterpriseSocialEmbedTypeEnumFromJSONTyped,
+ EnterpriseSocialEmbedTypeEnumToJSON,
+} from './EnterpriseSocialEmbedTypeEnum';
+import type { Keyword } from './Keyword';
+import {
+ KeywordFromJSON,
+ KeywordFromJSONTyped,
+ KeywordToJSON,
+} from './Keyword';
+
+/**
+ * Adds nested create feature
+ * @export
+ * @interface EnterpriseSocialEmbed
+ */
+export interface EnterpriseSocialEmbed {
+ /**
+ *
+ * @type {number}
+ * @memberof EnterpriseSocialEmbed
+ */
+ id?: number;
+ /**
+ *
+ * @type {string}
+ * @memberof EnterpriseSocialEmbed
+ */
+ name: string;
+ /**
+ *
+ * @type {EnterpriseSocialEmbedTypeEnum}
+ * @memberof EnterpriseSocialEmbed
+ */
+ type: EnterpriseSocialEmbedTypeEnum;
+ /**
+ *
+ * @type {Array}
+ * @memberof EnterpriseSocialEmbed
+ */
+ keywords: Array;
+ /**
+ *
+ * @type {AlignmentEnum}
+ * @memberof EnterpriseSocialEmbed
+ */
+ alignment?: AlignmentEnum;
+ /**
+ *
+ * @type {string}
+ * @memberof EnterpriseSocialEmbed
+ */
+ backgroundColor?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof EnterpriseSocialEmbed
+ */
+ accentColor?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof EnterpriseSocialEmbed
+ */
+ uuid?: string;
+}
+
+/**
+ * Check if a given object implements the EnterpriseSocialEmbed interface.
+ */
+export function instanceOfEnterpriseSocialEmbed(value: object): value is EnterpriseSocialEmbed {
+ if (!('name' in value) || value['name'] === undefined) return false;
+ if (!('type' in value) || value['type'] === undefined) return false;
+ if (!('keywords' in value) || value['keywords'] === undefined) return false;
+ return true;
+}
+
+export function EnterpriseSocialEmbedFromJSON(json: any): EnterpriseSocialEmbed {
+ return EnterpriseSocialEmbedFromJSONTyped(json, false);
+}
+
+export function EnterpriseSocialEmbedFromJSONTyped(json: any, ignoreDiscriminator: boolean): EnterpriseSocialEmbed {
+ if (json == null) {
+ return json;
+ }
+ return {
+
+ 'id': json['id'] == null ? undefined : json['id'],
+ 'name': json['name'],
+ 'type': EnterpriseSocialEmbedTypeEnumFromJSON(json['type']),
+ 'keywords': ((json['keywords'] as Array).map(KeywordFromJSON)),
+ 'alignment': json['alignment'] == null ? undefined : AlignmentEnumFromJSON(json['alignment']),
+ 'backgroundColor': json['background_color'] == null ? undefined : json['background_color'],
+ 'accentColor': json['accent_color'] == null ? undefined : json['accent_color'],
+ 'uuid': json['uuid'] == null ? undefined : json['uuid'],
+ };
+}
+
+export function EnterpriseSocialEmbedToJSON(value?: EnterpriseSocialEmbed | null): any {
+ if (value == null) {
+ return value;
+ }
+ return {
+
+ 'id': value['id'],
+ 'name': value['name'],
+ 'type': EnterpriseSocialEmbedTypeEnumToJSON(value['type']),
+ 'keywords': ((value['keywords'] as Array).map(KeywordToJSON)),
+ 'alignment': AlignmentEnumToJSON(value['alignment']),
+ 'background_color': value['backgroundColor'],
+ 'accent_color': value['accentColor'],
+ 'uuid': value['uuid'],
+ };
+}
+
diff --git a/vue3/src/openapi/models/EnterpriseSocialEmbedTypeEnum.ts b/vue3/src/openapi/models/EnterpriseSocialEmbedTypeEnum.ts
new file mode 100644
index 000000000..42e2ea352
--- /dev/null
+++ b/vue3/src/openapi/models/EnterpriseSocialEmbedTypeEnum.ts
@@ -0,0 +1,56 @@
+/* tslint:disable */
+/* eslint-disable */
+/**
+ * Tandoor
+ * Tandoor API Docs
+ *
+ * The version of the OpenAPI document: 0.0.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ */
+
+
+/**
+ * * `RECIPE` - Recipe
+ * * `RECIPE_KEYWORD` - Recipe Keyword
+ * * `MEAL_PLAN` - Meal Plan
+ * * `SHOPPING` - Shopping
+ * * `BOOK` - Book
+ * @export
+ */
+export const EnterpriseSocialEmbedTypeEnum = {
+ Recipe: 'RECIPE',
+ RecipeKeyword: 'RECIPE_KEYWORD',
+ MealPlan: 'MEAL_PLAN',
+ Shopping: 'SHOPPING',
+ Book: 'BOOK'
+} as const;
+export type EnterpriseSocialEmbedTypeEnum = typeof EnterpriseSocialEmbedTypeEnum[keyof typeof EnterpriseSocialEmbedTypeEnum];
+
+
+export function instanceOfEnterpriseSocialEmbedTypeEnum(value: any): boolean {
+ for (const key in EnterpriseSocialEmbedTypeEnum) {
+ if (Object.prototype.hasOwnProperty.call(EnterpriseSocialEmbedTypeEnum, key)) {
+ if (EnterpriseSocialEmbedTypeEnum[key] === value) {
+ return true;
+ }
+ }
+ }
+ return false;
+}
+
+export function EnterpriseSocialEmbedTypeEnumFromJSON(json: any): EnterpriseSocialEmbedTypeEnum {
+ return EnterpriseSocialEmbedTypeEnumFromJSONTyped(json, false);
+}
+
+export function EnterpriseSocialEmbedTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): EnterpriseSocialEmbedTypeEnum {
+ return json as EnterpriseSocialEmbedTypeEnum;
+}
+
+export function EnterpriseSocialEmbedTypeEnumToJSON(value?: EnterpriseSocialEmbedTypeEnum | null): any {
+ return value as any;
+}
+
diff --git a/vue3/src/openapi/models/EnterpriseSocialRecipeSearch.ts b/vue3/src/openapi/models/EnterpriseSocialRecipeSearch.ts
new file mode 100644
index 000000000..69cb4685f
--- /dev/null
+++ b/vue3/src/openapi/models/EnterpriseSocialRecipeSearch.ts
@@ -0,0 +1,91 @@
+/* tslint:disable */
+/* eslint-disable */
+/**
+ * Tandoor
+ * Tandoor API Docs
+ *
+ * The version of the OpenAPI document: 0.0.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ */
+
+import { mapValues } from '../runtime';
+import type { EnterpriseKeyword } from './EnterpriseKeyword';
+import {
+ EnterpriseKeywordFromJSON,
+ EnterpriseKeywordFromJSONTyped,
+ EnterpriseKeywordToJSON,
+} from './EnterpriseKeyword';
+
+/**
+ *
+ * @export
+ * @interface EnterpriseSocialRecipeSearch
+ */
+export interface EnterpriseSocialRecipeSearch {
+ /**
+ *
+ * @type {number}
+ * @memberof EnterpriseSocialRecipeSearch
+ */
+ id?: number;
+ /**
+ *
+ * @type {string}
+ * @memberof EnterpriseSocialRecipeSearch
+ */
+ readonly name: string;
+ /**
+ *
+ * @type {string}
+ * @memberof EnterpriseSocialRecipeSearch
+ */
+ readonly image: string | null;
+ /**
+ *
+ * @type {Array}
+ * @memberof EnterpriseSocialRecipeSearch
+ */
+ readonly keywords: Array;
+}
+
+/**
+ * Check if a given object implements the EnterpriseSocialRecipeSearch interface.
+ */
+export function instanceOfEnterpriseSocialRecipeSearch(value: object): value is EnterpriseSocialRecipeSearch {
+ if (!('name' in value) || value['name'] === undefined) return false;
+ if (!('image' in value) || value['image'] === undefined) return false;
+ if (!('keywords' in value) || value['keywords'] === undefined) return false;
+ return true;
+}
+
+export function EnterpriseSocialRecipeSearchFromJSON(json: any): EnterpriseSocialRecipeSearch {
+ return EnterpriseSocialRecipeSearchFromJSONTyped(json, false);
+}
+
+export function EnterpriseSocialRecipeSearchFromJSONTyped(json: any, ignoreDiscriminator: boolean): EnterpriseSocialRecipeSearch {
+ if (json == null) {
+ return json;
+ }
+ return {
+
+ 'id': json['id'] == null ? undefined : json['id'],
+ 'name': json['name'],
+ 'image': json['image'],
+ 'keywords': ((json['keywords'] as Array).map(EnterpriseKeywordFromJSON)),
+ };
+}
+
+export function EnterpriseSocialRecipeSearchToJSON(value?: Omit | null): any {
+ if (value == null) {
+ return value;
+ }
+ return {
+
+ 'id': value['id'],
+ };
+}
+
diff --git a/vue3/src/openapi/models/OpenDataFood.ts b/vue3/src/openapi/models/OpenDataFood.ts
index d11a147e9..d9780f860 100644
--- a/vue3/src/openapi/models/OpenDataFood.ts
+++ b/vue3/src/openapi/models/OpenDataFood.ts
@@ -164,10 +164,10 @@ export interface OpenDataFood {
propertiesSource?: string;
/**
*
- * @type {string}
+ * @type {number}
* @memberof OpenDataFood
*/
- fdcId: string;
+ fdcId?: number;
/**
*
* @type {string}
@@ -193,7 +193,6 @@ export function instanceOfOpenDataFood(value: object): value is OpenDataFood {
if (!('storeCategory' in value) || value['storeCategory'] === undefined) return false;
if (!('properties' in value) || value['properties'] === undefined) return false;
if (!('propertiesFoodUnit' in value) || value['propertiesFoodUnit'] === undefined) return false;
- if (!('fdcId' in value) || value['fdcId'] === undefined) return false;
if (!('createdBy' in value) || value['createdBy'] === undefined) return false;
return true;
}
@@ -222,7 +221,7 @@ export function OpenDataFoodFromJSONTyped(json: any, ignoreDiscriminator: boolea
'propertiesFoodAmount': json['properties_food_amount'] == null ? undefined : json['properties_food_amount'],
'propertiesFoodUnit': OpenDataUnitFromJSON(json['properties_food_unit']),
'propertiesSource': json['properties_source'] == null ? undefined : json['properties_source'],
- 'fdcId': json['fdc_id'],
+ 'fdcId': json['fdc_id'] == null ? undefined : json['fdc_id'],
'comment': json['comment'] == null ? undefined : json['comment'],
'createdBy': json['created_by'],
};
diff --git a/vue3/src/openapi/models/PaginatedEnterpriseSocialEmbedList.ts b/vue3/src/openapi/models/PaginatedEnterpriseSocialEmbedList.ts
new file mode 100644
index 000000000..d222d2531
--- /dev/null
+++ b/vue3/src/openapi/models/PaginatedEnterpriseSocialEmbedList.ts
@@ -0,0 +1,101 @@
+/* tslint:disable */
+/* eslint-disable */
+/**
+ * Tandoor
+ * Tandoor API Docs
+ *
+ * The version of the OpenAPI document: 0.0.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ */
+
+import { mapValues } from '../runtime';
+import type { EnterpriseSocialEmbed } from './EnterpriseSocialEmbed';
+import {
+ EnterpriseSocialEmbedFromJSON,
+ EnterpriseSocialEmbedFromJSONTyped,
+ EnterpriseSocialEmbedToJSON,
+} from './EnterpriseSocialEmbed';
+
+/**
+ *
+ * @export
+ * @interface PaginatedEnterpriseSocialEmbedList
+ */
+export interface PaginatedEnterpriseSocialEmbedList {
+ /**
+ *
+ * @type {number}
+ * @memberof PaginatedEnterpriseSocialEmbedList
+ */
+ count: number;
+ /**
+ *
+ * @type {string}
+ * @memberof PaginatedEnterpriseSocialEmbedList
+ */
+ next?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof PaginatedEnterpriseSocialEmbedList
+ */
+ previous?: string;
+ /**
+ *
+ * @type {Array}
+ * @memberof PaginatedEnterpriseSocialEmbedList
+ */
+ results: Array;
+ /**
+ *
+ * @type {Date}
+ * @memberof PaginatedEnterpriseSocialEmbedList
+ */
+ timestamp?: Date;
+}
+
+/**
+ * Check if a given object implements the PaginatedEnterpriseSocialEmbedList interface.
+ */
+export function instanceOfPaginatedEnterpriseSocialEmbedList(value: object): value is PaginatedEnterpriseSocialEmbedList {
+ if (!('count' in value) || value['count'] === undefined) return false;
+ if (!('results' in value) || value['results'] === undefined) return false;
+ return true;
+}
+
+export function PaginatedEnterpriseSocialEmbedListFromJSON(json: any): PaginatedEnterpriseSocialEmbedList {
+ return PaginatedEnterpriseSocialEmbedListFromJSONTyped(json, false);
+}
+
+export function PaginatedEnterpriseSocialEmbedListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedEnterpriseSocialEmbedList {
+ if (json == null) {
+ return json;
+ }
+ return {
+
+ 'count': json['count'],
+ 'next': json['next'] == null ? undefined : json['next'],
+ 'previous': json['previous'] == null ? undefined : json['previous'],
+ 'results': ((json['results'] as Array).map(EnterpriseSocialEmbedFromJSON)),
+ 'timestamp': json['timestamp'] == null ? undefined : (new Date(json['timestamp'])),
+ };
+}
+
+export function PaginatedEnterpriseSocialEmbedListToJSON(value?: PaginatedEnterpriseSocialEmbedList | null): any {
+ if (value == null) {
+ return value;
+ }
+ return {
+
+ 'count': value['count'],
+ 'next': value['next'],
+ 'previous': value['previous'],
+ 'results': ((value['results'] as Array).map(EnterpriseSocialEmbedToJSON)),
+ 'timestamp': value['timestamp'] == null ? undefined : ((value['timestamp']).toISOString()),
+ };
+}
+
diff --git a/vue3/src/openapi/models/PaginatedEnterpriseSocialRecipeSearchList.ts b/vue3/src/openapi/models/PaginatedEnterpriseSocialRecipeSearchList.ts
new file mode 100644
index 000000000..525dff73c
--- /dev/null
+++ b/vue3/src/openapi/models/PaginatedEnterpriseSocialRecipeSearchList.ts
@@ -0,0 +1,101 @@
+/* tslint:disable */
+/* eslint-disable */
+/**
+ * Tandoor
+ * Tandoor API Docs
+ *
+ * The version of the OpenAPI document: 0.0.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ */
+
+import { mapValues } from '../runtime';
+import type { EnterpriseSocialRecipeSearch } from './EnterpriseSocialRecipeSearch';
+import {
+ EnterpriseSocialRecipeSearchFromJSON,
+ EnterpriseSocialRecipeSearchFromJSONTyped,
+ EnterpriseSocialRecipeSearchToJSON,
+} from './EnterpriseSocialRecipeSearch';
+
+/**
+ *
+ * @export
+ * @interface PaginatedEnterpriseSocialRecipeSearchList
+ */
+export interface PaginatedEnterpriseSocialRecipeSearchList {
+ /**
+ *
+ * @type {number}
+ * @memberof PaginatedEnterpriseSocialRecipeSearchList
+ */
+ count: number;
+ /**
+ *
+ * @type {string}
+ * @memberof PaginatedEnterpriseSocialRecipeSearchList
+ */
+ next?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof PaginatedEnterpriseSocialRecipeSearchList
+ */
+ previous?: string;
+ /**
+ *
+ * @type {Array}
+ * @memberof PaginatedEnterpriseSocialRecipeSearchList
+ */
+ results: Array;
+ /**
+ *
+ * @type {Date}
+ * @memberof PaginatedEnterpriseSocialRecipeSearchList
+ */
+ timestamp?: Date;
+}
+
+/**
+ * Check if a given object implements the PaginatedEnterpriseSocialRecipeSearchList interface.
+ */
+export function instanceOfPaginatedEnterpriseSocialRecipeSearchList(value: object): value is PaginatedEnterpriseSocialRecipeSearchList {
+ if (!('count' in value) || value['count'] === undefined) return false;
+ if (!('results' in value) || value['results'] === undefined) return false;
+ return true;
+}
+
+export function PaginatedEnterpriseSocialRecipeSearchListFromJSON(json: any): PaginatedEnterpriseSocialRecipeSearchList {
+ return PaginatedEnterpriseSocialRecipeSearchListFromJSONTyped(json, false);
+}
+
+export function PaginatedEnterpriseSocialRecipeSearchListFromJSONTyped(json: any, ignoreDiscriminator: boolean): PaginatedEnterpriseSocialRecipeSearchList {
+ if (json == null) {
+ return json;
+ }
+ return {
+
+ 'count': json['count'],
+ 'next': json['next'] == null ? undefined : json['next'],
+ 'previous': json['previous'] == null ? undefined : json['previous'],
+ 'results': ((json['results'] as Array).map(EnterpriseSocialRecipeSearchFromJSON)),
+ 'timestamp': json['timestamp'] == null ? undefined : (new Date(json['timestamp'])),
+ };
+}
+
+export function PaginatedEnterpriseSocialRecipeSearchListToJSON(value?: PaginatedEnterpriseSocialRecipeSearchList | null): any {
+ if (value == null) {
+ return value;
+ }
+ return {
+
+ 'count': value['count'],
+ 'next': value['next'],
+ 'previous': value['previous'],
+ 'results': ((value['results'] as Array).map(EnterpriseSocialRecipeSearchToJSON)),
+ 'timestamp': value['timestamp'] == null ? undefined : ((value['timestamp']).toISOString()),
+ };
+}
+
diff --git a/vue3/src/openapi/models/PatchedEnterpriseSocialEmbed.ts b/vue3/src/openapi/models/PatchedEnterpriseSocialEmbed.ts
new file mode 100644
index 000000000..eb2a455fa
--- /dev/null
+++ b/vue3/src/openapi/models/PatchedEnterpriseSocialEmbed.ts
@@ -0,0 +1,135 @@
+/* tslint:disable */
+/* eslint-disable */
+/**
+ * Tandoor
+ * Tandoor API Docs
+ *
+ * The version of the OpenAPI document: 0.0.0
+ *
+ *
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
+ * https://openapi-generator.tech
+ * Do not edit the class manually.
+ */
+
+import { mapValues } from '../runtime';
+import type { AlignmentEnum } from './AlignmentEnum';
+import {
+ AlignmentEnumFromJSON,
+ AlignmentEnumFromJSONTyped,
+ AlignmentEnumToJSON,
+} from './AlignmentEnum';
+import type { EnterpriseSocialEmbedTypeEnum } from './EnterpriseSocialEmbedTypeEnum';
+import {
+ EnterpriseSocialEmbedTypeEnumFromJSON,
+ EnterpriseSocialEmbedTypeEnumFromJSONTyped,
+ EnterpriseSocialEmbedTypeEnumToJSON,
+} from './EnterpriseSocialEmbedTypeEnum';
+import type { Keyword } from './Keyword';
+import {
+ KeywordFromJSON,
+ KeywordFromJSONTyped,
+ KeywordToJSON,
+} from './Keyword';
+
+/**
+ * Adds nested create feature
+ * @export
+ * @interface PatchedEnterpriseSocialEmbed
+ */
+export interface PatchedEnterpriseSocialEmbed {
+ /**
+ *
+ * @type {number}
+ * @memberof PatchedEnterpriseSocialEmbed
+ */
+ id?: number;
+ /**
+ *
+ * @type {string}
+ * @memberof PatchedEnterpriseSocialEmbed
+ */
+ name?: string;
+ /**
+ *
+ * @type {EnterpriseSocialEmbedTypeEnum}
+ * @memberof PatchedEnterpriseSocialEmbed
+ */
+ type?: EnterpriseSocialEmbedTypeEnum;
+ /**
+ *
+ * @type {Array}
+ * @memberof PatchedEnterpriseSocialEmbed
+ */
+ keywords?: Array;
+ /**
+ *
+ * @type {AlignmentEnum}
+ * @memberof PatchedEnterpriseSocialEmbed
+ */
+ alignment?: AlignmentEnum;
+ /**
+ *
+ * @type {string}
+ * @memberof PatchedEnterpriseSocialEmbed
+ */
+ backgroundColor?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof PatchedEnterpriseSocialEmbed
+ */
+ accentColor?: string;
+ /**
+ *
+ * @type {string}
+ * @memberof PatchedEnterpriseSocialEmbed
+ */
+ uuid?: string;
+}
+
+/**
+ * Check if a given object implements the PatchedEnterpriseSocialEmbed interface.
+ */
+export function instanceOfPatchedEnterpriseSocialEmbed(value: object): value is PatchedEnterpriseSocialEmbed {
+ return true;
+}
+
+export function PatchedEnterpriseSocialEmbedFromJSON(json: any): PatchedEnterpriseSocialEmbed {
+ return PatchedEnterpriseSocialEmbedFromJSONTyped(json, false);
+}
+
+export function PatchedEnterpriseSocialEmbedFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedEnterpriseSocialEmbed {
+ if (json == null) {
+ return json;
+ }
+ return {
+
+ 'id': json['id'] == null ? undefined : json['id'],
+ 'name': json['name'] == null ? undefined : json['name'],
+ 'type': json['type'] == null ? undefined : EnterpriseSocialEmbedTypeEnumFromJSON(json['type']),
+ 'keywords': json['keywords'] == null ? undefined : ((json['keywords'] as Array).map(KeywordFromJSON)),
+ 'alignment': json['alignment'] == null ? undefined : AlignmentEnumFromJSON(json['alignment']),
+ 'backgroundColor': json['background_color'] == null ? undefined : json['background_color'],
+ 'accentColor': json['accent_color'] == null ? undefined : json['accent_color'],
+ 'uuid': json['uuid'] == null ? undefined : json['uuid'],
+ };
+}
+
+export function PatchedEnterpriseSocialEmbedToJSON(value?: PatchedEnterpriseSocialEmbed | null): any {
+ if (value == null) {
+ return value;
+ }
+ return {
+
+ 'id': value['id'],
+ 'name': value['name'],
+ 'type': EnterpriseSocialEmbedTypeEnumToJSON(value['type']),
+ 'keywords': value['keywords'] == null ? undefined : ((value['keywords'] as Array).map(KeywordToJSON)),
+ 'alignment': AlignmentEnumToJSON(value['alignment']),
+ 'background_color': value['backgroundColor'],
+ 'accent_color': value['accentColor'],
+ 'uuid': value['uuid'],
+ };
+}
+
diff --git a/vue3/src/openapi/models/PatchedOpenDataFood.ts b/vue3/src/openapi/models/PatchedOpenDataFood.ts
index 127bf5a05..a84b70e39 100644
--- a/vue3/src/openapi/models/PatchedOpenDataFood.ts
+++ b/vue3/src/openapi/models/PatchedOpenDataFood.ts
@@ -164,10 +164,10 @@ export interface PatchedOpenDataFood {
propertiesSource?: string;
/**
*
- * @type {string}
+ * @type {number}
* @memberof PatchedOpenDataFood
*/
- fdcId?: string;
+ fdcId?: number;
/**
*
* @type {string}
diff --git a/vue3/src/openapi/models/index.ts b/vue3/src/openapi/models/index.ts
index 47002d8cd..e0955cce8 100644
--- a/vue3/src/openapi/models/index.ts
+++ b/vue3/src/openapi/models/index.ts
@@ -1,6 +1,7 @@
/* tslint:disable */
/* eslint-disable */
export * from './AccessToken';
+export * from './AlignmentEnum';
export * from './AuthToken';
export * from './AutoMealPlan';
export * from './Automation';
@@ -14,6 +15,10 @@ export * from './CookLog';
export * from './CustomFilter';
export * from './DefaultPageEnum';
export * from './DeleteEnum';
+export * from './EnterpriseKeyword';
+export * from './EnterpriseSocialEmbed';
+export * from './EnterpriseSocialEmbedTypeEnum';
+export * from './EnterpriseSocialRecipeSearch';
export * from './ExportLog';
export * from './ExportRequest';
export * from './FdcQuery';
@@ -54,6 +59,8 @@ export * from './PaginatedBookmarkletImportListList';
export * from './PaginatedConnectorConfigList';
export * from './PaginatedCookLogList';
export * from './PaginatedCustomFilterList';
+export * from './PaginatedEnterpriseSocialEmbedList';
+export * from './PaginatedEnterpriseSocialRecipeSearchList';
export * from './PaginatedExportLogList';
export * from './PaginatedFoodList';
export * from './PaginatedImportLogList';
@@ -62,6 +69,13 @@ export * from './PaginatedInviteLinkList';
export * from './PaginatedKeywordList';
export * from './PaginatedMealPlanList';
export * from './PaginatedMealTypeList';
+export * from './PaginatedOpenDataCategoryList';
+export * from './PaginatedOpenDataConversionList';
+export * from './PaginatedOpenDataFoodList';
+export * from './PaginatedOpenDataPropertyList';
+export * from './PaginatedOpenDataStoreList';
+export * from './PaginatedOpenDataUnitList';
+export * from './PaginatedOpenDataVersionList';
export * from './PaginatedPropertyList';
export * from './PaginatedPropertyTypeList';
export * from './PaginatedRecipeBookEntryList';
@@ -90,6 +104,7 @@ export * from './PatchedBookmarkletImport';
export * from './PatchedConnectorConfig';
export * from './PatchedCookLog';
export * from './PatchedCustomFilter';
+export * from './PatchedEnterpriseSocialEmbed';
export * from './PatchedExportLog';
export * from './PatchedFood';
export * from './PatchedImportLog';
diff --git a/vue3/src/pages/DatabasePage.vue b/vue3/src/pages/DatabasePage.vue
index 99b5ce4a3..e887f2249 100644
--- a/vue3/src/pages/DatabasePage.vue
+++ b/vue3/src/pages/DatabasePage.vue
@@ -35,6 +35,10 @@
+
+
+
+
{{ $t('Miscellaneous') }}
@@ -47,8 +51,8 @@
-
-
@@ -77,6 +81,7 @@
import DatabaseModelCol from "@/components/display/DatabaseModelCol.vue";
import DatabaseLinkCol from "@/components/display/DatabaseLinkCol.vue";
+import {TANDOOR_PLUGINS} from "@/types/Plugins.ts";
diff --git a/vue3/src/types/Plugins.ts b/vue3/src/types/Plugins.ts
index a60712768..bf508efe2 100644
--- a/vue3/src/types/Plugins.ts
+++ b/vue3/src/types/Plugins.ts
@@ -1,4 +1,5 @@
import {RouteRecordRaw} from "vue-router";
+import {Component} from "vue";
export type TandoorPlugin = {
name: string,
@@ -11,6 +12,8 @@ export type TandoorPlugin = {
bottomNavigation: any[],
userNavigation: any[],
+ databasePageComponent?: Component,
+
disabled?: boolean
}
diff --git a/vue3/vite.config.ts b/vue3/vite.config.ts
index 727befdc7..e5e4ebc7e 100644
--- a/vue3/vite.config.ts
+++ b/vue3/vite.config.ts
@@ -7,7 +7,6 @@ import {VitePWA} from "vite-plugin-pwa";
// https://vitejs.dev/config/
export default defineConfig(({command, mode, isSsrBuild, isPreview}) => {
- console.log('MODE: ', mode)
return {
base: mode == 'development' ? '/static/vue3/' : './',
plugins: [
@@ -30,6 +29,7 @@ export default defineConfig(({command, mode, isSsrBuild, isPreview}) => {
vue: fileURLToPath(new URL("./node_modules/vue/dist/vue.esm-bundler.js", import.meta.url)),
},
extensions: ['.js', '.json', '.jsx', '.mjs', '.ts', '.tsx', '.vue',],
+ preserveSymlinks: true
},
clearScreen: false,
build: {