mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-02 12:49:02 -05:00
search tweaking
This commit is contained in:
@@ -8,6 +8,7 @@ models/AuthToken.ts
|
||||
models/Automation.ts
|
||||
models/BookmarkletImport.ts
|
||||
models/BookmarkletImportList.ts
|
||||
models/ConnectorConfigConfig.ts
|
||||
models/CookLog.ts
|
||||
models/CookLogCreatedBy.ts
|
||||
models/CustomFilter.ts
|
||||
@@ -31,7 +32,9 @@ models/IngredientFood.ts
|
||||
models/InviteLink.ts
|
||||
models/InviteLinkGroup.ts
|
||||
models/Keyword.ts
|
||||
models/ListAutomations200Response.ts
|
||||
models/ListCookLogs200Response.ts
|
||||
models/ListCustomFilters200Response.ts
|
||||
models/ListExportLogs200Response.ts
|
||||
models/ListFoods200Response.ts
|
||||
models/ListImportLogs200Response.ts
|
||||
@@ -70,6 +73,7 @@ models/Recipe.ts
|
||||
models/RecipeBook.ts
|
||||
models/RecipeBookEntry.ts
|
||||
models/RecipeBookFilter.ts
|
||||
models/RecipeFlat.ts
|
||||
models/RecipeImage.ts
|
||||
models/RecipeKeywordsInner.ts
|
||||
models/RecipeNutrition.ts
|
||||
@@ -79,22 +83,18 @@ models/RecipeSimple.ts
|
||||
models/RecipeStepsInner.ts
|
||||
models/RecipeStepsInnerFile.ts
|
||||
models/RecipeStepsInnerIngredientsInner.ts
|
||||
models/ShoppingList.ts
|
||||
models/ShoppingListEntriesInner.ts
|
||||
models/ShoppingListEntriesInnerRecipeMealplan.ts
|
||||
models/ShoppingListEntry.ts
|
||||
models/ShoppingListEntryBulk.ts
|
||||
models/ShoppingListEntryRecipeMealplan.ts
|
||||
models/ShoppingListRecipe.ts
|
||||
models/ShoppingListRecipesInner.ts
|
||||
models/ShoppingListSupermarket.ts
|
||||
models/ShoppingListSupermarketCategoryToSupermarketInner.ts
|
||||
models/ShoppingListSupermarketCategoryToSupermarketInnerCategory.ts
|
||||
models/Space.ts
|
||||
models/Step.ts
|
||||
models/Storage.ts
|
||||
models/Supermarket.ts
|
||||
models/SupermarketCategory.ts
|
||||
models/SupermarketCategoryRelation.ts
|
||||
models/SupermarketCategoryToSupermarketInner.ts
|
||||
models/SupermarketCategoryToSupermarketInnerCategory.ts
|
||||
models/Sync.ts
|
||||
models/SyncLog.ts
|
||||
models/Unit.ts
|
||||
|
||||
@@ -19,6 +19,7 @@ import type {
|
||||
Automation,
|
||||
BookmarkletImport,
|
||||
BookmarkletImportList,
|
||||
ConnectorConfigConfig,
|
||||
CookLog,
|
||||
CustomFilter,
|
||||
ExportLog,
|
||||
@@ -30,7 +31,9 @@ import type {
|
||||
Ingredient,
|
||||
InviteLink,
|
||||
Keyword,
|
||||
ListAutomations200Response,
|
||||
ListCookLogs200Response,
|
||||
ListCustomFilters200Response,
|
||||
ListExportLogs200Response,
|
||||
ListFoods200Response,
|
||||
ListImportLogs200Response,
|
||||
@@ -57,10 +60,10 @@ import type {
|
||||
Recipe,
|
||||
RecipeBook,
|
||||
RecipeBookEntry,
|
||||
RecipeFlat,
|
||||
RecipeImage,
|
||||
RecipeShoppingUpdate,
|
||||
RecipeSimple,
|
||||
ShoppingList,
|
||||
ShoppingListEntry,
|
||||
ShoppingListEntryBulk,
|
||||
ShoppingListRecipe,
|
||||
@@ -89,6 +92,8 @@ import {
|
||||
BookmarkletImportToJSON,
|
||||
BookmarkletImportListFromJSON,
|
||||
BookmarkletImportListToJSON,
|
||||
ConnectorConfigConfigFromJSON,
|
||||
ConnectorConfigConfigToJSON,
|
||||
CookLogFromJSON,
|
||||
CookLogToJSON,
|
||||
CustomFilterFromJSON,
|
||||
@@ -111,8 +116,12 @@ import {
|
||||
InviteLinkToJSON,
|
||||
KeywordFromJSON,
|
||||
KeywordToJSON,
|
||||
ListAutomations200ResponseFromJSON,
|
||||
ListAutomations200ResponseToJSON,
|
||||
ListCookLogs200ResponseFromJSON,
|
||||
ListCookLogs200ResponseToJSON,
|
||||
ListCustomFilters200ResponseFromJSON,
|
||||
ListCustomFilters200ResponseToJSON,
|
||||
ListExportLogs200ResponseFromJSON,
|
||||
ListExportLogs200ResponseToJSON,
|
||||
ListFoods200ResponseFromJSON,
|
||||
@@ -165,14 +174,14 @@ import {
|
||||
RecipeBookToJSON,
|
||||
RecipeBookEntryFromJSON,
|
||||
RecipeBookEntryToJSON,
|
||||
RecipeFlatFromJSON,
|
||||
RecipeFlatToJSON,
|
||||
RecipeImageFromJSON,
|
||||
RecipeImageToJSON,
|
||||
RecipeShoppingUpdateFromJSON,
|
||||
RecipeShoppingUpdateToJSON,
|
||||
RecipeSimpleFromJSON,
|
||||
RecipeSimpleToJSON,
|
||||
ShoppingListFromJSON,
|
||||
ShoppingListToJSON,
|
||||
ShoppingListEntryFromJSON,
|
||||
ShoppingListEntryToJSON,
|
||||
ShoppingListEntryBulkFromJSON,
|
||||
@@ -231,6 +240,10 @@ export interface CreateBookmarkletImportRequest {
|
||||
bookmarkletImport?: BookmarkletImport;
|
||||
}
|
||||
|
||||
export interface CreateConnectorConfigRequest {
|
||||
connectorConfigConfig?: ConnectorConfigConfig;
|
||||
}
|
||||
|
||||
export interface CreateCookLogRequest {
|
||||
cookLog?: CookLog;
|
||||
}
|
||||
@@ -323,10 +336,6 @@ export interface CreateRecipeUrlImportRequest {
|
||||
body?: any | null;
|
||||
}
|
||||
|
||||
export interface CreateShoppingListRequest {
|
||||
shoppingList?: ShoppingList;
|
||||
}
|
||||
|
||||
export interface CreateShoppingListEntryRequest {
|
||||
shoppingListEntry?: ShoppingListEntry;
|
||||
}
|
||||
@@ -396,6 +405,10 @@ export interface DestroyBookmarkletImportRequest {
|
||||
id: string;
|
||||
}
|
||||
|
||||
export interface DestroyConnectorConfigRequest {
|
||||
id: string;
|
||||
}
|
||||
|
||||
export interface DestroyCookLogRequest {
|
||||
id: string;
|
||||
}
|
||||
@@ -484,10 +497,6 @@ export interface DestroyRecipeBookEntryRequest {
|
||||
id: string;
|
||||
}
|
||||
|
||||
export interface DestroyShoppingListRequest {
|
||||
id: string;
|
||||
}
|
||||
|
||||
export interface DestroyShoppingListEntryRequest {
|
||||
id: string;
|
||||
}
|
||||
@@ -551,11 +560,22 @@ export interface ImageRecipeRequest {
|
||||
imageUrl?: string | null;
|
||||
}
|
||||
|
||||
export interface ListAutomationsRequest {
|
||||
automationType?: string;
|
||||
page?: number;
|
||||
pageSize?: number;
|
||||
}
|
||||
|
||||
export interface ListCookLogsRequest {
|
||||
page?: number;
|
||||
pageSize?: number;
|
||||
}
|
||||
|
||||
export interface ListCustomFiltersRequest {
|
||||
page?: number;
|
||||
pageSize?: number;
|
||||
}
|
||||
|
||||
export interface ListExportLogsRequest {
|
||||
page?: number;
|
||||
pageSize?: number;
|
||||
@@ -731,6 +751,11 @@ export interface PartialUpdateBookmarkletImportRequest {
|
||||
bookmarkletImport?: BookmarkletImport;
|
||||
}
|
||||
|
||||
export interface PartialUpdateConnectorConfigRequest {
|
||||
id: string;
|
||||
connectorConfigConfig?: ConnectorConfigConfig;
|
||||
}
|
||||
|
||||
export interface PartialUpdateCookLogRequest {
|
||||
id: string;
|
||||
cookLog?: CookLog;
|
||||
@@ -841,11 +866,6 @@ export interface PartialUpdateRecipeBookEntryRequest {
|
||||
recipeBookEntry?: RecipeBookEntry;
|
||||
}
|
||||
|
||||
export interface PartialUpdateShoppingListRequest {
|
||||
id: string;
|
||||
shoppingList?: ShoppingList;
|
||||
}
|
||||
|
||||
export interface PartialUpdateShoppingListEntryRequest {
|
||||
id: string;
|
||||
shoppingListEntry?: ShoppingListEntry;
|
||||
@@ -947,6 +967,10 @@ export interface RetrieveBookmarkletImportRequest {
|
||||
id: string;
|
||||
}
|
||||
|
||||
export interface RetrieveConnectorConfigRequest {
|
||||
id: string;
|
||||
}
|
||||
|
||||
export interface RetrieveCookLogRequest {
|
||||
id: string;
|
||||
}
|
||||
@@ -1047,10 +1071,6 @@ export interface RetrieveRecipeBookEntryRequest {
|
||||
id: string;
|
||||
}
|
||||
|
||||
export interface RetrieveShoppingListRequest {
|
||||
id: string;
|
||||
}
|
||||
|
||||
export interface RetrieveShoppingListEntryRequest {
|
||||
id: string;
|
||||
}
|
||||
@@ -1156,6 +1176,11 @@ export interface UpdateBookmarkletImportRequest {
|
||||
bookmarkletImport?: BookmarkletImport;
|
||||
}
|
||||
|
||||
export interface UpdateConnectorConfigRequest {
|
||||
id: string;
|
||||
connectorConfigConfig?: ConnectorConfigConfig;
|
||||
}
|
||||
|
||||
export interface UpdateCookLogRequest {
|
||||
id: string;
|
||||
cookLog?: CookLog;
|
||||
@@ -1266,11 +1291,6 @@ export interface UpdateRecipeBookEntryRequest {
|
||||
recipeBookEntry?: RecipeBookEntry;
|
||||
}
|
||||
|
||||
export interface UpdateShoppingListRequest {
|
||||
id: string;
|
||||
shoppingList?: ShoppingList;
|
||||
}
|
||||
|
||||
export interface UpdateShoppingListEntryRequest {
|
||||
id: string;
|
||||
shoppingListEntry?: ShoppingListEntry;
|
||||
@@ -1490,6 +1510,35 @@ export class ApiApi extends runtime.BaseAPI {
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
async createConnectorConfigRaw(requestParameters: CreateConnectorConfigRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConnectorConfigConfig>> {
|
||||
const queryParameters: any = {};
|
||||
|
||||
const headerParameters: runtime.HTTPHeaders = {};
|
||||
|
||||
headerParameters['Content-Type'] = 'application/json';
|
||||
|
||||
const response = await this.request({
|
||||
path: `/api/connector-config/`,
|
||||
method: 'POST',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
body: ConnectorConfigConfigToJSON(requestParameters.connectorConfigConfig),
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => ConnectorConfigConfigFromJSON(jsonValue));
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
async createConnectorConfig(requestParameters: CreateConnectorConfigRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConnectorConfigConfig> {
|
||||
const response = await this.createConnectorConfigRaw(requestParameters, initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@@ -2161,35 +2210,6 @@ export class ApiApi extends runtime.BaseAPI {
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
async createShoppingListRaw(requestParameters: CreateShoppingListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ShoppingList>> {
|
||||
const queryParameters: any = {};
|
||||
|
||||
const headerParameters: runtime.HTTPHeaders = {};
|
||||
|
||||
headerParameters['Content-Type'] = 'application/json';
|
||||
|
||||
const response = await this.request({
|
||||
path: `/api/shopping-list/`,
|
||||
method: 'POST',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
body: ShoppingListToJSON(requestParameters.shoppingList),
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => ShoppingListFromJSON(jsonValue));
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
async createShoppingList(requestParameters: CreateShoppingListRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ShoppingList> {
|
||||
const response = await this.createShoppingListRaw(requestParameters, initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@@ -2704,6 +2724,35 @@ export class ApiApi extends runtime.BaseAPI {
|
||||
await this.destroyBookmarkletImportRaw(requestParameters, initOverrides);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
async destroyConnectorConfigRaw(requestParameters: DestroyConnectorConfigRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
||||
if (requestParameters.id === null || requestParameters.id === undefined) {
|
||||
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling destroyConnectorConfig.');
|
||||
}
|
||||
|
||||
const queryParameters: any = {};
|
||||
|
||||
const headerParameters: runtime.HTTPHeaders = {};
|
||||
|
||||
const response = await this.request({
|
||||
path: `/api/connector-config/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
||||
method: 'DELETE',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.VoidApiResponse(response);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
async destroyConnectorConfig(requestParameters: DestroyConnectorConfigRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
||||
await this.destroyConnectorConfigRaw(requestParameters, initOverrides);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@@ -3342,35 +3391,6 @@ export class ApiApi extends runtime.BaseAPI {
|
||||
await this.destroyRecipeBookEntryRaw(requestParameters, initOverrides);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
async destroyShoppingListRaw(requestParameters: DestroyShoppingListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
||||
if (requestParameters.id === null || requestParameters.id === undefined) {
|
||||
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling destroyShoppingList.');
|
||||
}
|
||||
|
||||
const queryParameters: any = {};
|
||||
|
||||
const headerParameters: runtime.HTTPHeaders = {};
|
||||
|
||||
const response = await this.request({
|
||||
path: `/api/shopping-list/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
||||
method: 'DELETE',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.VoidApiResponse(response);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
async destroyShoppingList(requestParameters: DestroyShoppingListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
||||
await this.destroyShoppingListRaw(requestParameters, initOverrides);
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@@ -3784,7 +3804,7 @@ export class ApiApi extends runtime.BaseAPI {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
async flatRecipeRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Recipe>> {
|
||||
async flatRecipeRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<RecipeFlat>> {
|
||||
const queryParameters: any = {};
|
||||
|
||||
const headerParameters: runtime.HTTPHeaders = {};
|
||||
@@ -3796,13 +3816,13 @@ export class ApiApi extends runtime.BaseAPI {
|
||||
query: queryParameters,
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => RecipeFromJSON(jsonValue));
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => RecipeFlatFromJSON(jsonValue));
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
async flatRecipe(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Recipe> {
|
||||
async flatRecipe(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<RecipeFlat> {
|
||||
const response = await this.flatRecipeRaw(initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
@@ -3889,11 +3909,23 @@ export class ApiApi extends runtime.BaseAPI {
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* optional parameters - **automation_type**: Return the Automations matching the automation type. Multiple values allowed. *Automation Types:* - FS: Food Alias - UA: Unit Alias - KA: Keyword Alias - DR: Description Replace - IR: Instruction Replace - NU: Never Unit - TW: Transpose Words - FR: Food Replace - UR: Unit Replace - NR: Name Replace
|
||||
*/
|
||||
async listAutomationsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<Automation>>> {
|
||||
async listAutomationsRaw(requestParameters: ListAutomationsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListAutomations200Response>> {
|
||||
const queryParameters: any = {};
|
||||
|
||||
if (requestParameters.automationType !== undefined) {
|
||||
queryParameters['automation_type'] = requestParameters.automationType;
|
||||
}
|
||||
|
||||
if (requestParameters.page !== undefined) {
|
||||
queryParameters['page'] = requestParameters.page;
|
||||
}
|
||||
|
||||
if (requestParameters.pageSize !== undefined) {
|
||||
queryParameters['page_size'] = requestParameters.pageSize;
|
||||
}
|
||||
|
||||
const headerParameters: runtime.HTTPHeaders = {};
|
||||
|
||||
const response = await this.request({
|
||||
@@ -3903,14 +3935,14 @@ export class ApiApi extends runtime.BaseAPI {
|
||||
query: queryParameters,
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(AutomationFromJSON));
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => ListAutomations200ResponseFromJSON(jsonValue));
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* optional parameters - **automation_type**: Return the Automations matching the automation type. Multiple values allowed. *Automation Types:* - FS: Food Alias - UA: Unit Alias - KA: Keyword Alias - DR: Description Replace - IR: Instruction Replace - NU: Never Unit - TW: Transpose Words - FR: Food Replace - UR: Unit Replace - NR: Name Replace
|
||||
*/
|
||||
async listAutomations(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<Automation>> {
|
||||
const response = await this.listAutomationsRaw(initOverrides);
|
||||
async listAutomations(requestParameters: ListAutomationsRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListAutomations200Response> {
|
||||
const response = await this.listAutomationsRaw(requestParameters, initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
@@ -3940,6 +3972,32 @@ export class ApiApi extends runtime.BaseAPI {
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
async listConnectorConfigsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ConnectorConfigConfig>>> {
|
||||
const queryParameters: any = {};
|
||||
|
||||
const headerParameters: runtime.HTTPHeaders = {};
|
||||
|
||||
const response = await this.request({
|
||||
path: `/api/connector-config/`,
|
||||
method: 'GET',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ConnectorConfigConfigFromJSON));
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
async listConnectorConfigs(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ConnectorConfigConfig>> {
|
||||
const response = await this.listConnectorConfigsRaw(initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@@ -3977,9 +4035,17 @@ export class ApiApi extends runtime.BaseAPI {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
async listCustomFiltersRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<CustomFilter>>> {
|
||||
async listCustomFiltersRaw(requestParameters: ListCustomFiltersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ListCustomFilters200Response>> {
|
||||
const queryParameters: any = {};
|
||||
|
||||
if (requestParameters.page !== undefined) {
|
||||
queryParameters['page'] = requestParameters.page;
|
||||
}
|
||||
|
||||
if (requestParameters.pageSize !== undefined) {
|
||||
queryParameters['page_size'] = requestParameters.pageSize;
|
||||
}
|
||||
|
||||
const headerParameters: runtime.HTTPHeaders = {};
|
||||
|
||||
const response = await this.request({
|
||||
@@ -3989,14 +4055,14 @@ export class ApiApi extends runtime.BaseAPI {
|
||||
query: queryParameters,
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(CustomFilterFromJSON));
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => ListCustomFilters200ResponseFromJSON(jsonValue));
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
async listCustomFilters(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<CustomFilter>> {
|
||||
const response = await this.listCustomFiltersRaw(initOverrides);
|
||||
async listCustomFilters(requestParameters: ListCustomFiltersRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ListCustomFilters200Response> {
|
||||
const response = await this.listCustomFiltersRaw(requestParameters, initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
@@ -4854,32 +4920,6 @@ export class ApiApi extends runtime.BaseAPI {
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
async listShoppingListsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ShoppingList>>> {
|
||||
const queryParameters: any = {};
|
||||
|
||||
const headerParameters: runtime.HTTPHeaders = {};
|
||||
|
||||
const response = await this.request({
|
||||
path: `/api/shopping-list/`,
|
||||
method: 'GET',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(ShoppingListFromJSON));
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
async listShoppingLists(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ShoppingList>> {
|
||||
const response = await this.listShoppingListsRaw(initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@@ -5693,6 +5733,39 @@ export class ApiApi extends runtime.BaseAPI {
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
async partialUpdateConnectorConfigRaw(requestParameters: PartialUpdateConnectorConfigRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConnectorConfigConfig>> {
|
||||
if (requestParameters.id === null || requestParameters.id === undefined) {
|
||||
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling partialUpdateConnectorConfig.');
|
||||
}
|
||||
|
||||
const queryParameters: any = {};
|
||||
|
||||
const headerParameters: runtime.HTTPHeaders = {};
|
||||
|
||||
headerParameters['Content-Type'] = 'application/json';
|
||||
|
||||
const response = await this.request({
|
||||
path: `/api/connector-config/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
||||
method: 'PATCH',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
body: ConnectorConfigConfigToJSON(requestParameters.connectorConfigConfig),
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => ConnectorConfigConfigFromJSON(jsonValue));
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
async partialUpdateConnectorConfig(requestParameters: PartialUpdateConnectorConfigRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConnectorConfigConfig> {
|
||||
const response = await this.partialUpdateConnectorConfigRaw(requestParameters, initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@@ -6419,39 +6492,6 @@ export class ApiApi extends runtime.BaseAPI {
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
async partialUpdateShoppingListRaw(requestParameters: PartialUpdateShoppingListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ShoppingList>> {
|
||||
if (requestParameters.id === null || requestParameters.id === undefined) {
|
||||
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling partialUpdateShoppingList.');
|
||||
}
|
||||
|
||||
const queryParameters: any = {};
|
||||
|
||||
const headerParameters: runtime.HTTPHeaders = {};
|
||||
|
||||
headerParameters['Content-Type'] = 'application/json';
|
||||
|
||||
const response = await this.request({
|
||||
path: `/api/shopping-list/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
||||
method: 'PATCH',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
body: ShoppingListToJSON(requestParameters.shoppingList),
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => ShoppingListFromJSON(jsonValue));
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
async partialUpdateShoppingList(requestParameters: PartialUpdateShoppingListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ShoppingList> {
|
||||
const response = await this.partialUpdateShoppingListRaw(requestParameters, initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@@ -7146,6 +7186,36 @@ export class ApiApi extends runtime.BaseAPI {
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
async retrieveConnectorConfigRaw(requestParameters: RetrieveConnectorConfigRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConnectorConfigConfig>> {
|
||||
if (requestParameters.id === null || requestParameters.id === undefined) {
|
||||
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling retrieveConnectorConfig.');
|
||||
}
|
||||
|
||||
const queryParameters: any = {};
|
||||
|
||||
const headerParameters: runtime.HTTPHeaders = {};
|
||||
|
||||
const response = await this.request({
|
||||
path: `/api/connector-config/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
||||
method: 'GET',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => ConnectorConfigConfigFromJSON(jsonValue));
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
async retrieveConnectorConfig(requestParameters: RetrieveConnectorConfigRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConnectorConfigConfig> {
|
||||
const response = await this.retrieveConnectorConfigRaw(requestParameters, initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@@ -7900,36 +7970,6 @@ export class ApiApi extends runtime.BaseAPI {
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
async retrieveShoppingListRaw(requestParameters: RetrieveShoppingListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ShoppingList>> {
|
||||
if (requestParameters.id === null || requestParameters.id === undefined) {
|
||||
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling retrieveShoppingList.');
|
||||
}
|
||||
|
||||
const queryParameters: any = {};
|
||||
|
||||
const headerParameters: runtime.HTTPHeaders = {};
|
||||
|
||||
const response = await this.request({
|
||||
path: `/api/shopping-list/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
||||
method: 'GET',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => ShoppingListFromJSON(jsonValue));
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
async retrieveShoppingList(requestParameters: RetrieveShoppingListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ShoppingList> {
|
||||
const response = await this.retrieveShoppingListRaw(requestParameters, initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@@ -8707,6 +8747,39 @@ export class ApiApi extends runtime.BaseAPI {
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
async updateConnectorConfigRaw(requestParameters: UpdateConnectorConfigRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ConnectorConfigConfig>> {
|
||||
if (requestParameters.id === null || requestParameters.id === undefined) {
|
||||
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling updateConnectorConfig.');
|
||||
}
|
||||
|
||||
const queryParameters: any = {};
|
||||
|
||||
const headerParameters: runtime.HTTPHeaders = {};
|
||||
|
||||
headerParameters['Content-Type'] = 'application/json';
|
||||
|
||||
const response = await this.request({
|
||||
path: `/api/connector-config/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
||||
method: 'PUT',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
body: ConnectorConfigConfigToJSON(requestParameters.connectorConfigConfig),
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => ConnectorConfigConfigFromJSON(jsonValue));
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
async updateConnectorConfig(requestParameters: UpdateConnectorConfigRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ConnectorConfigConfig> {
|
||||
const response = await this.updateConnectorConfigRaw(requestParameters, initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
@@ -9433,39 +9506,6 @@ export class ApiApi extends runtime.BaseAPI {
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
async updateShoppingListRaw(requestParameters: UpdateShoppingListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ShoppingList>> {
|
||||
if (requestParameters.id === null || requestParameters.id === undefined) {
|
||||
throw new runtime.RequiredError('id','Required parameter requestParameters.id was null or undefined when calling updateShoppingList.');
|
||||
}
|
||||
|
||||
const queryParameters: any = {};
|
||||
|
||||
const headerParameters: runtime.HTTPHeaders = {};
|
||||
|
||||
headerParameters['Content-Type'] = 'application/json';
|
||||
|
||||
const response = await this.request({
|
||||
path: `/api/shopping-list/{id}/`.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters.id))),
|
||||
method: 'PUT',
|
||||
headers: headerParameters,
|
||||
query: queryParameters,
|
||||
body: ShoppingListToJSON(requestParameters.shoppingList),
|
||||
}, initOverrides);
|
||||
|
||||
return new runtime.JSONApiResponse(response, (jsonValue) => ShoppingListFromJSON(jsonValue));
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
async updateShoppingList(requestParameters: UpdateShoppingListRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ShoppingList> {
|
||||
const response = await this.updateShoppingListRaw(requestParameters, initOverrides);
|
||||
return await response.value();
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*/
|
||||
|
||||
136
vue3/src/openapi/models/ConnectorConfigConfig.ts
Normal file
136
vue3/src/openapi/models/ConnectorConfigConfig.ts
Normal file
@@ -0,0 +1,136 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* Django Recipes
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* The version of the OpenAPI document:
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import { exists, mapValues } from '../runtime';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface ConnectorConfigConfig
|
||||
*/
|
||||
export interface ConnectorConfigConfig {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof ConnectorConfigConfig
|
||||
*/
|
||||
readonly id?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ConnectorConfigConfig
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ConnectorConfigConfig
|
||||
*/
|
||||
url?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ConnectorConfigConfig
|
||||
*/
|
||||
token?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ConnectorConfigConfig
|
||||
*/
|
||||
todoEntity?: string | null;
|
||||
/**
|
||||
* Is Connector Enabled
|
||||
* @type {boolean}
|
||||
* @memberof ConnectorConfigConfig
|
||||
*/
|
||||
enabled?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof ConnectorConfigConfig
|
||||
*/
|
||||
onShoppingListEntryCreatedEnabled?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof ConnectorConfigConfig
|
||||
*/
|
||||
onShoppingListEntryUpdatedEnabled?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {boolean}
|
||||
* @memberof ConnectorConfigConfig
|
||||
*/
|
||||
onShoppingListEntryDeletedEnabled?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ConnectorConfigConfig
|
||||
*/
|
||||
readonly createdBy?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the ConnectorConfigConfig interface.
|
||||
*/
|
||||
export function instanceOfConnectorConfigConfig(value: object): boolean {
|
||||
let isInstance = true;
|
||||
isInstance = isInstance && "name" in value;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function ConnectorConfigConfigFromJSON(json: any): ConnectorConfigConfig {
|
||||
return ConnectorConfigConfigFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ConnectorConfigConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): ConnectorConfigConfig {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
||||
'name': json['name'],
|
||||
'url': !exists(json, 'url') ? undefined : json['url'],
|
||||
'token': !exists(json, 'token') ? undefined : json['token'],
|
||||
'todoEntity': !exists(json, 'todo_entity') ? undefined : json['todo_entity'],
|
||||
'enabled': !exists(json, 'enabled') ? undefined : json['enabled'],
|
||||
'onShoppingListEntryCreatedEnabled': !exists(json, 'on_shopping_list_entry_created_enabled') ? undefined : json['on_shopping_list_entry_created_enabled'],
|
||||
'onShoppingListEntryUpdatedEnabled': !exists(json, 'on_shopping_list_entry_updated_enabled') ? undefined : json['on_shopping_list_entry_updated_enabled'],
|
||||
'onShoppingListEntryDeletedEnabled': !exists(json, 'on_shopping_list_entry_deleted_enabled') ? undefined : json['on_shopping_list_entry_deleted_enabled'],
|
||||
'createdBy': !exists(json, 'created_by') ? undefined : json['created_by'],
|
||||
};
|
||||
}
|
||||
|
||||
export function ConnectorConfigConfigToJSON(value?: ConnectorConfigConfig | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'name': value.name,
|
||||
'url': value.url,
|
||||
'token': value.token,
|
||||
'todo_entity': value.todoEntity,
|
||||
'enabled': value.enabled,
|
||||
'on_shopping_list_entry_created_enabled': value.onShoppingListEntryCreatedEnabled,
|
||||
'on_shopping_list_entry_updated_enabled': value.onShoppingListEntryUpdatedEnabled,
|
||||
'on_shopping_list_entry_deleted_enabled': value.onShoppingListEntryDeletedEnabled,
|
||||
};
|
||||
}
|
||||
|
||||
96
vue3/src/openapi/models/ListAutomations200Response.ts
Normal file
96
vue3/src/openapi/models/ListAutomations200Response.ts
Normal file
@@ -0,0 +1,96 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* Django Recipes
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* The version of the OpenAPI document:
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import { exists, mapValues } from '../runtime';
|
||||
import type { Automation } from './Automation';
|
||||
import {
|
||||
AutomationFromJSON,
|
||||
AutomationFromJSONTyped,
|
||||
AutomationToJSON,
|
||||
} from './Automation';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface ListAutomations200Response
|
||||
*/
|
||||
export interface ListAutomations200Response {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof ListAutomations200Response
|
||||
*/
|
||||
count?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ListAutomations200Response
|
||||
*/
|
||||
next?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ListAutomations200Response
|
||||
*/
|
||||
previous?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {Array<Automation>}
|
||||
* @memberof ListAutomations200Response
|
||||
*/
|
||||
results?: Array<Automation>;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the ListAutomations200Response interface.
|
||||
*/
|
||||
export function instanceOfListAutomations200Response(value: object): boolean {
|
||||
let isInstance = true;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function ListAutomations200ResponseFromJSON(json: any): ListAutomations200Response {
|
||||
return ListAutomations200ResponseFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ListAutomations200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListAutomations200Response {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'count': !exists(json, 'count') ? undefined : json['count'],
|
||||
'next': !exists(json, 'next') ? undefined : json['next'],
|
||||
'previous': !exists(json, 'previous') ? undefined : json['previous'],
|
||||
'results': !exists(json, 'results') ? undefined : ((json['results'] as Array<any>).map(AutomationFromJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
export function ListAutomations200ResponseToJSON(value?: ListAutomations200Response | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'count': value.count,
|
||||
'next': value.next,
|
||||
'previous': value.previous,
|
||||
'results': value.results === undefined ? undefined : ((value.results as Array<any>).map(AutomationToJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
96
vue3/src/openapi/models/ListCustomFilters200Response.ts
Normal file
96
vue3/src/openapi/models/ListCustomFilters200Response.ts
Normal file
@@ -0,0 +1,96 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* Django Recipes
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* The version of the OpenAPI document:
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import { exists, mapValues } from '../runtime';
|
||||
import type { CustomFilter } from './CustomFilter';
|
||||
import {
|
||||
CustomFilterFromJSON,
|
||||
CustomFilterFromJSONTyped,
|
||||
CustomFilterToJSON,
|
||||
} from './CustomFilter';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface ListCustomFilters200Response
|
||||
*/
|
||||
export interface ListCustomFilters200Response {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof ListCustomFilters200Response
|
||||
*/
|
||||
count?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ListCustomFilters200Response
|
||||
*/
|
||||
next?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ListCustomFilters200Response
|
||||
*/
|
||||
previous?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {Array<CustomFilter>}
|
||||
* @memberof ListCustomFilters200Response
|
||||
*/
|
||||
results?: Array<CustomFilter>;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the ListCustomFilters200Response interface.
|
||||
*/
|
||||
export function instanceOfListCustomFilters200Response(value: object): boolean {
|
||||
let isInstance = true;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function ListCustomFilters200ResponseFromJSON(json: any): ListCustomFilters200Response {
|
||||
return ListCustomFilters200ResponseFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ListCustomFilters200ResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): ListCustomFilters200Response {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'count': !exists(json, 'count') ? undefined : json['count'],
|
||||
'next': !exists(json, 'next') ? undefined : json['next'],
|
||||
'previous': !exists(json, 'previous') ? undefined : json['previous'],
|
||||
'results': !exists(json, 'results') ? undefined : ((json['results'] as Array<any>).map(CustomFilterFromJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
export function ListCustomFilters200ResponseToJSON(value?: ListCustomFilters200Response | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'count': value.count,
|
||||
'next': value.next,
|
||||
'previous': value.previous,
|
||||
'results': value.results === undefined ? undefined : ((value.results as Array<any>).map(CustomFilterToJSON)),
|
||||
};
|
||||
}
|
||||
|
||||
@@ -79,7 +79,7 @@ export interface Recipe {
|
||||
* @type {Array<RecipeKeywordsInner>}
|
||||
* @memberof Recipe
|
||||
*/
|
||||
keywords: Array<RecipeKeywordsInner>;
|
||||
keywords?: Array<RecipeKeywordsInner>;
|
||||
/**
|
||||
*
|
||||
* @type {Array<RecipeStepsInner>}
|
||||
@@ -202,7 +202,6 @@ export interface Recipe {
|
||||
export function instanceOfRecipe(value: object): boolean {
|
||||
let isInstance = true;
|
||||
isInstance = isInstance && "name" in value;
|
||||
isInstance = isInstance && "keywords" in value;
|
||||
isInstance = isInstance && "steps" in value;
|
||||
|
||||
return isInstance;
|
||||
@@ -222,7 +221,7 @@ export function RecipeFromJSONTyped(json: any, ignoreDiscriminator: boolean): Re
|
||||
'name': json['name'],
|
||||
'description': !exists(json, 'description') ? undefined : json['description'],
|
||||
'image': !exists(json, 'image') ? undefined : json['image'],
|
||||
'keywords': ((json['keywords'] as Array<any>).map(RecipeKeywordsInnerFromJSON)),
|
||||
'keywords': !exists(json, 'keywords') ? undefined : ((json['keywords'] as Array<any>).map(RecipeKeywordsInnerFromJSON)),
|
||||
'steps': ((json['steps'] as Array<any>).map(RecipeStepsInnerFromJSON)),
|
||||
'workingTime': !exists(json, 'working_time') ? undefined : json['working_time'],
|
||||
'waitingTime': !exists(json, 'waiting_time') ? undefined : json['waiting_time'],
|
||||
@@ -256,7 +255,7 @@ export function RecipeToJSON(value?: Recipe | null): any {
|
||||
|
||||
'name': value.name,
|
||||
'description': value.description,
|
||||
'keywords': ((value.keywords as Array<any>).map(RecipeKeywordsInnerToJSON)),
|
||||
'keywords': value.keywords === undefined ? undefined : ((value.keywords as Array<any>).map(RecipeKeywordsInnerToJSON)),
|
||||
'steps': ((value.steps as Array<any>).map(RecipeStepsInnerToJSON)),
|
||||
'working_time': value.workingTime,
|
||||
'waiting_time': value.waitingTime,
|
||||
|
||||
81
vue3/src/openapi/models/RecipeFlat.ts
Normal file
81
vue3/src/openapi/models/RecipeFlat.ts
Normal file
@@ -0,0 +1,81 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* Django Recipes
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* The version of the OpenAPI document:
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import { exists, mapValues } from '../runtime';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface RecipeFlat
|
||||
*/
|
||||
export interface RecipeFlat {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof RecipeFlat
|
||||
*/
|
||||
readonly id?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof RecipeFlat
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
*
|
||||
* @type {Blob}
|
||||
* @memberof RecipeFlat
|
||||
*/
|
||||
image?: Blob | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the RecipeFlat interface.
|
||||
*/
|
||||
export function instanceOfRecipeFlat(value: object): boolean {
|
||||
let isInstance = true;
|
||||
isInstance = isInstance && "name" in value;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function RecipeFlatFromJSON(json: any): RecipeFlat {
|
||||
return RecipeFlatFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function RecipeFlatFromJSONTyped(json: any, ignoreDiscriminator: boolean): RecipeFlat {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
||||
'name': json['name'],
|
||||
'image': !exists(json, 'image') ? undefined : json['image'],
|
||||
};
|
||||
}
|
||||
|
||||
export function RecipeFlatToJSON(value?: RecipeFlat | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'name': value.name,
|
||||
'image': value.image,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -31,12 +31,12 @@ import {
|
||||
IngredientFoodFromJSONTyped,
|
||||
IngredientFoodToJSON,
|
||||
} from './IngredientFood';
|
||||
import type { ShoppingListEntriesInnerRecipeMealplan } from './ShoppingListEntriesInnerRecipeMealplan';
|
||||
import type { ShoppingListEntryRecipeMealplan } from './ShoppingListEntryRecipeMealplan';
|
||||
import {
|
||||
ShoppingListEntriesInnerRecipeMealplanFromJSON,
|
||||
ShoppingListEntriesInnerRecipeMealplanFromJSONTyped,
|
||||
ShoppingListEntriesInnerRecipeMealplanToJSON,
|
||||
} from './ShoppingListEntriesInnerRecipeMealplan';
|
||||
ShoppingListEntryRecipeMealplanFromJSON,
|
||||
ShoppingListEntryRecipeMealplanFromJSONTyped,
|
||||
ShoppingListEntryRecipeMealplanToJSON,
|
||||
} from './ShoppingListEntryRecipeMealplan';
|
||||
|
||||
/**
|
||||
*
|
||||
@@ -88,10 +88,10 @@ export interface ShoppingListEntry {
|
||||
checked?: boolean;
|
||||
/**
|
||||
*
|
||||
* @type {ShoppingListEntriesInnerRecipeMealplan}
|
||||
* @type {ShoppingListEntryRecipeMealplan}
|
||||
* @memberof ShoppingListEntry
|
||||
*/
|
||||
recipeMealplan?: ShoppingListEntriesInnerRecipeMealplan;
|
||||
recipeMealplan?: ShoppingListEntryRecipeMealplan;
|
||||
/**
|
||||
*
|
||||
* @type {CookLogCreatedBy}
|
||||
@@ -152,7 +152,7 @@ export function ShoppingListEntryFromJSONTyped(json: any, ignoreDiscriminator: b
|
||||
'amount': json['amount'],
|
||||
'order': !exists(json, 'order') ? undefined : json['order'],
|
||||
'checked': !exists(json, 'checked') ? undefined : json['checked'],
|
||||
'recipeMealplan': !exists(json, 'recipe_mealplan') ? undefined : ShoppingListEntriesInnerRecipeMealplanFromJSON(json['recipe_mealplan']),
|
||||
'recipeMealplan': !exists(json, 'recipe_mealplan') ? undefined : ShoppingListEntryRecipeMealplanFromJSON(json['recipe_mealplan']),
|
||||
'createdBy': !exists(json, 'created_by') ? undefined : CookLogCreatedByFromJSON(json['created_by']),
|
||||
'createdAt': !exists(json, 'created_at') ? undefined : (new Date(json['created_at'])),
|
||||
'updatedAt': !exists(json, 'updated_at') ? undefined : (new Date(json['updated_at'])),
|
||||
@@ -176,7 +176,7 @@ export function ShoppingListEntryToJSON(value?: ShoppingListEntry | null): any {
|
||||
'amount': value.amount,
|
||||
'order': value.order,
|
||||
'checked': value.checked,
|
||||
'recipe_mealplan': ShoppingListEntriesInnerRecipeMealplanToJSON(value.recipeMealplan),
|
||||
'recipe_mealplan': ShoppingListEntryRecipeMealplanToJSON(value.recipeMealplan),
|
||||
'created_by': CookLogCreatedByToJSON(value.createdBy),
|
||||
'completed_at': value.completedAt === undefined ? undefined : (value.completedAt === null ? null : value.completedAt.toISOString()),
|
||||
'delay_until': value.delayUntil === undefined ? undefined : (value.delayUntil === null ? null : value.delayUntil.toISOString()),
|
||||
|
||||
124
vue3/src/openapi/models/ShoppingListEntryRecipeMealplan.ts
Normal file
124
vue3/src/openapi/models/ShoppingListEntryRecipeMealplan.ts
Normal file
@@ -0,0 +1,124 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* Django Recipes
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* The version of the OpenAPI document:
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import { exists, mapValues } from '../runtime';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface ShoppingListEntryRecipeMealplan
|
||||
*/
|
||||
export interface ShoppingListEntryRecipeMealplan {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof ShoppingListEntryRecipeMealplan
|
||||
*/
|
||||
readonly id?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ShoppingListEntryRecipeMealplan
|
||||
*/
|
||||
readonly recipeName?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ShoppingListEntryRecipeMealplan
|
||||
*/
|
||||
readonly name?: string;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof ShoppingListEntryRecipeMealplan
|
||||
*/
|
||||
recipe?: number | null;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof ShoppingListEntryRecipeMealplan
|
||||
*/
|
||||
mealplan?: number | null;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ShoppingListEntryRecipeMealplan
|
||||
*/
|
||||
servings: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ShoppingListEntryRecipeMealplan
|
||||
*/
|
||||
readonly mealplanNote?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ShoppingListEntryRecipeMealplan
|
||||
*/
|
||||
readonly mealplanFromDate?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof ShoppingListEntryRecipeMealplan
|
||||
*/
|
||||
readonly mealplanType?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the ShoppingListEntryRecipeMealplan interface.
|
||||
*/
|
||||
export function instanceOfShoppingListEntryRecipeMealplan(value: object): boolean {
|
||||
let isInstance = true;
|
||||
isInstance = isInstance && "servings" in value;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function ShoppingListEntryRecipeMealplanFromJSON(json: any): ShoppingListEntryRecipeMealplan {
|
||||
return ShoppingListEntryRecipeMealplanFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function ShoppingListEntryRecipeMealplanFromJSONTyped(json: any, ignoreDiscriminator: boolean): ShoppingListEntryRecipeMealplan {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
||||
'recipeName': !exists(json, 'recipe_name') ? undefined : json['recipe_name'],
|
||||
'name': !exists(json, 'name') ? undefined : json['name'],
|
||||
'recipe': !exists(json, 'recipe') ? undefined : json['recipe'],
|
||||
'mealplan': !exists(json, 'mealplan') ? undefined : json['mealplan'],
|
||||
'servings': json['servings'],
|
||||
'mealplanNote': !exists(json, 'mealplan_note') ? undefined : json['mealplan_note'],
|
||||
'mealplanFromDate': !exists(json, 'mealplan_from_date') ? undefined : json['mealplan_from_date'],
|
||||
'mealplanType': !exists(json, 'mealplan_type') ? undefined : json['mealplan_type'],
|
||||
};
|
||||
}
|
||||
|
||||
export function ShoppingListEntryRecipeMealplanToJSON(value?: ShoppingListEntryRecipeMealplan | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'recipe': value.recipe,
|
||||
'mealplan': value.mealplan,
|
||||
'servings': value.servings,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -13,12 +13,12 @@
|
||||
*/
|
||||
|
||||
import { exists, mapValues } from '../runtime';
|
||||
import type { ShoppingListSupermarketCategoryToSupermarketInner } from './ShoppingListSupermarketCategoryToSupermarketInner';
|
||||
import type { SupermarketCategoryToSupermarketInner } from './SupermarketCategoryToSupermarketInner';
|
||||
import {
|
||||
ShoppingListSupermarketCategoryToSupermarketInnerFromJSON,
|
||||
ShoppingListSupermarketCategoryToSupermarketInnerFromJSONTyped,
|
||||
ShoppingListSupermarketCategoryToSupermarketInnerToJSON,
|
||||
} from './ShoppingListSupermarketCategoryToSupermarketInner';
|
||||
SupermarketCategoryToSupermarketInnerFromJSON,
|
||||
SupermarketCategoryToSupermarketInnerFromJSONTyped,
|
||||
SupermarketCategoryToSupermarketInnerToJSON,
|
||||
} from './SupermarketCategoryToSupermarketInner';
|
||||
|
||||
/**
|
||||
*
|
||||
@@ -46,10 +46,10 @@ export interface Supermarket {
|
||||
description?: string | null;
|
||||
/**
|
||||
*
|
||||
* @type {Array<ShoppingListSupermarketCategoryToSupermarketInner>}
|
||||
* @type {Array<SupermarketCategoryToSupermarketInner>}
|
||||
* @memberof Supermarket
|
||||
*/
|
||||
readonly categoryToSupermarket?: Array<ShoppingListSupermarketCategoryToSupermarketInner>;
|
||||
readonly categoryToSupermarket?: Array<SupermarketCategoryToSupermarketInner>;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
@@ -81,7 +81,7 @@ export function SupermarketFromJSONTyped(json: any, ignoreDiscriminator: boolean
|
||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
||||
'name': json['name'],
|
||||
'description': !exists(json, 'description') ? undefined : json['description'],
|
||||
'categoryToSupermarket': !exists(json, 'category_to_supermarket') ? undefined : ((json['category_to_supermarket'] as Array<any>).map(ShoppingListSupermarketCategoryToSupermarketInnerFromJSON)),
|
||||
'categoryToSupermarket': !exists(json, 'category_to_supermarket') ? undefined : ((json['category_to_supermarket'] as Array<any>).map(SupermarketCategoryToSupermarketInnerFromJSON)),
|
||||
'openDataSlug': !exists(json, 'open_data_slug') ? undefined : json['open_data_slug'],
|
||||
};
|
||||
}
|
||||
|
||||
@@ -13,12 +13,12 @@
|
||||
*/
|
||||
|
||||
import { exists, mapValues } from '../runtime';
|
||||
import type { ShoppingListSupermarketCategoryToSupermarketInnerCategory } from './ShoppingListSupermarketCategoryToSupermarketInnerCategory';
|
||||
import type { SupermarketCategoryToSupermarketInnerCategory } from './SupermarketCategoryToSupermarketInnerCategory';
|
||||
import {
|
||||
ShoppingListSupermarketCategoryToSupermarketInnerCategoryFromJSON,
|
||||
ShoppingListSupermarketCategoryToSupermarketInnerCategoryFromJSONTyped,
|
||||
ShoppingListSupermarketCategoryToSupermarketInnerCategoryToJSON,
|
||||
} from './ShoppingListSupermarketCategoryToSupermarketInnerCategory';
|
||||
SupermarketCategoryToSupermarketInnerCategoryFromJSON,
|
||||
SupermarketCategoryToSupermarketInnerCategoryFromJSONTyped,
|
||||
SupermarketCategoryToSupermarketInnerCategoryToJSON,
|
||||
} from './SupermarketCategoryToSupermarketInnerCategory';
|
||||
|
||||
/**
|
||||
*
|
||||
@@ -34,10 +34,10 @@ export interface SupermarketCategoryRelation {
|
||||
readonly id?: number;
|
||||
/**
|
||||
*
|
||||
* @type {ShoppingListSupermarketCategoryToSupermarketInnerCategory}
|
||||
* @type {SupermarketCategoryToSupermarketInnerCategory}
|
||||
* @memberof SupermarketCategoryRelation
|
||||
*/
|
||||
category: ShoppingListSupermarketCategoryToSupermarketInnerCategory;
|
||||
category: SupermarketCategoryToSupermarketInnerCategory;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
@@ -74,7 +74,7 @@ export function SupermarketCategoryRelationFromJSONTyped(json: any, ignoreDiscri
|
||||
return {
|
||||
|
||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
||||
'category': ShoppingListSupermarketCategoryToSupermarketInnerCategoryFromJSON(json['category']),
|
||||
'category': SupermarketCategoryToSupermarketInnerCategoryFromJSON(json['category']),
|
||||
'supermarket': json['supermarket'],
|
||||
'order': !exists(json, 'order') ? undefined : json['order'],
|
||||
};
|
||||
@@ -89,7 +89,7 @@ export function SupermarketCategoryRelationToJSON(value?: SupermarketCategoryRel
|
||||
}
|
||||
return {
|
||||
|
||||
'category': ShoppingListSupermarketCategoryToSupermarketInnerCategoryToJSON(value.category),
|
||||
'category': SupermarketCategoryToSupermarketInnerCategoryToJSON(value.category),
|
||||
'supermarket': value.supermarket,
|
||||
'order': value.order,
|
||||
};
|
||||
|
||||
@@ -0,0 +1,97 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* Django Recipes
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* The version of the OpenAPI document:
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import { exists, mapValues } from '../runtime';
|
||||
import type { SupermarketCategoryToSupermarketInnerCategory } from './SupermarketCategoryToSupermarketInnerCategory';
|
||||
import {
|
||||
SupermarketCategoryToSupermarketInnerCategoryFromJSON,
|
||||
SupermarketCategoryToSupermarketInnerCategoryFromJSONTyped,
|
||||
SupermarketCategoryToSupermarketInnerCategoryToJSON,
|
||||
} from './SupermarketCategoryToSupermarketInnerCategory';
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface SupermarketCategoryToSupermarketInner
|
||||
*/
|
||||
export interface SupermarketCategoryToSupermarketInner {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof SupermarketCategoryToSupermarketInner
|
||||
*/
|
||||
readonly id?: number;
|
||||
/**
|
||||
*
|
||||
* @type {SupermarketCategoryToSupermarketInnerCategory}
|
||||
* @memberof SupermarketCategoryToSupermarketInner
|
||||
*/
|
||||
category: SupermarketCategoryToSupermarketInnerCategory;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof SupermarketCategoryToSupermarketInner
|
||||
*/
|
||||
supermarket: number;
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof SupermarketCategoryToSupermarketInner
|
||||
*/
|
||||
order?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the SupermarketCategoryToSupermarketInner interface.
|
||||
*/
|
||||
export function instanceOfSupermarketCategoryToSupermarketInner(value: object): boolean {
|
||||
let isInstance = true;
|
||||
isInstance = isInstance && "category" in value;
|
||||
isInstance = isInstance && "supermarket" in value;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function SupermarketCategoryToSupermarketInnerFromJSON(json: any): SupermarketCategoryToSupermarketInner {
|
||||
return SupermarketCategoryToSupermarketInnerFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function SupermarketCategoryToSupermarketInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupermarketCategoryToSupermarketInner {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
||||
'category': SupermarketCategoryToSupermarketInnerCategoryFromJSON(json['category']),
|
||||
'supermarket': json['supermarket'],
|
||||
'order': !exists(json, 'order') ? undefined : json['order'],
|
||||
};
|
||||
}
|
||||
|
||||
export function SupermarketCategoryToSupermarketInnerToJSON(value?: SupermarketCategoryToSupermarketInner | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'category': SupermarketCategoryToSupermarketInnerCategoryToJSON(value.category),
|
||||
'supermarket': value.supermarket,
|
||||
'order': value.order,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -0,0 +1,81 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* Django Recipes
|
||||
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
*
|
||||
* The version of the OpenAPI document:
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import { exists, mapValues } from '../runtime';
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface SupermarketCategoryToSupermarketInnerCategory
|
||||
*/
|
||||
export interface SupermarketCategoryToSupermarketInnerCategory {
|
||||
/**
|
||||
*
|
||||
* @type {number}
|
||||
* @memberof SupermarketCategoryToSupermarketInnerCategory
|
||||
*/
|
||||
readonly id?: number;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof SupermarketCategoryToSupermarketInnerCategory
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof SupermarketCategoryToSupermarketInnerCategory
|
||||
*/
|
||||
description?: string | null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if a given object implements the SupermarketCategoryToSupermarketInnerCategory interface.
|
||||
*/
|
||||
export function instanceOfSupermarketCategoryToSupermarketInnerCategory(value: object): boolean {
|
||||
let isInstance = true;
|
||||
isInstance = isInstance && "name" in value;
|
||||
|
||||
return isInstance;
|
||||
}
|
||||
|
||||
export function SupermarketCategoryToSupermarketInnerCategoryFromJSON(json: any): SupermarketCategoryToSupermarketInnerCategory {
|
||||
return SupermarketCategoryToSupermarketInnerCategoryFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function SupermarketCategoryToSupermarketInnerCategoryFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupermarketCategoryToSupermarketInnerCategory {
|
||||
if ((json === undefined) || (json === null)) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'id': !exists(json, 'id') ? undefined : json['id'],
|
||||
'name': json['name'],
|
||||
'description': !exists(json, 'description') ? undefined : json['description'],
|
||||
};
|
||||
}
|
||||
|
||||
export function SupermarketCategoryToSupermarketInnerCategoryToJSON(value?: SupermarketCategoryToSupermarketInnerCategory | null): any {
|
||||
if (value === undefined) {
|
||||
return undefined;
|
||||
}
|
||||
if (value === null) {
|
||||
return null;
|
||||
}
|
||||
return {
|
||||
|
||||
'name': value.name,
|
||||
'description': value.description,
|
||||
};
|
||||
}
|
||||
|
||||
@@ -5,6 +5,7 @@ export * from './AuthToken';
|
||||
export * from './Automation';
|
||||
export * from './BookmarkletImport';
|
||||
export * from './BookmarkletImportList';
|
||||
export * from './ConnectorConfigConfig';
|
||||
export * from './CookLog';
|
||||
export * from './CookLogCreatedBy';
|
||||
export * from './CustomFilter';
|
||||
@@ -28,7 +29,9 @@ export * from './IngredientFood';
|
||||
export * from './InviteLink';
|
||||
export * from './InviteLinkGroup';
|
||||
export * from './Keyword';
|
||||
export * from './ListAutomations200Response';
|
||||
export * from './ListCookLogs200Response';
|
||||
export * from './ListCustomFilters200Response';
|
||||
export * from './ListExportLogs200Response';
|
||||
export * from './ListFoods200Response';
|
||||
export * from './ListImportLogs200Response';
|
||||
@@ -67,6 +70,7 @@ export * from './Recipe';
|
||||
export * from './RecipeBook';
|
||||
export * from './RecipeBookEntry';
|
||||
export * from './RecipeBookFilter';
|
||||
export * from './RecipeFlat';
|
||||
export * from './RecipeImage';
|
||||
export * from './RecipeKeywordsInner';
|
||||
export * from './RecipeNutrition';
|
||||
@@ -76,22 +80,18 @@ export * from './RecipeSimple';
|
||||
export * from './RecipeStepsInner';
|
||||
export * from './RecipeStepsInnerFile';
|
||||
export * from './RecipeStepsInnerIngredientsInner';
|
||||
export * from './ShoppingList';
|
||||
export * from './ShoppingListEntriesInner';
|
||||
export * from './ShoppingListEntriesInnerRecipeMealplan';
|
||||
export * from './ShoppingListEntry';
|
||||
export * from './ShoppingListEntryBulk';
|
||||
export * from './ShoppingListEntryRecipeMealplan';
|
||||
export * from './ShoppingListRecipe';
|
||||
export * from './ShoppingListRecipesInner';
|
||||
export * from './ShoppingListSupermarket';
|
||||
export * from './ShoppingListSupermarketCategoryToSupermarketInner';
|
||||
export * from './ShoppingListSupermarketCategoryToSupermarketInnerCategory';
|
||||
export * from './Space';
|
||||
export * from './Step';
|
||||
export * from './Storage';
|
||||
export * from './Supermarket';
|
||||
export * from './SupermarketCategory';
|
||||
export * from './SupermarketCategoryRelation';
|
||||
export * from './SupermarketCategoryToSupermarketInner';
|
||||
export * from './SupermarketCategoryToSupermarketInnerCategory';
|
||||
export * from './Sync';
|
||||
export * from './SyncLog';
|
||||
export * from './Unit';
|
||||
|
||||
Reference in New Issue
Block a user