mirror of
https://github.com/TandoorRecipes/recipes.git
synced 2026-01-02 04:39:54 -05:00
search tweaking
This commit is contained in:
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