working search with flat endpoint

This commit is contained in:
vabene1111
2024-02-29 20:08:37 +01:00
parent e47bdd043e
commit 1cac34d2a0
143 changed files with 18623 additions and 9992 deletions

View File

@@ -1,10 +1,10 @@
/* 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:
* The version of the OpenAPI document: 0.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -13,15 +13,15 @@
*/
import { exists, mapValues } from '../runtime';
import type { MealPlanRecipeKeywordsInner } from './MealPlanRecipeKeywordsInner';
import type { KeywordLabel } from './KeywordLabel';
import {
MealPlanRecipeKeywordsInnerFromJSON,
MealPlanRecipeKeywordsInnerFromJSONTyped,
MealPlanRecipeKeywordsInnerToJSON,
} from './MealPlanRecipeKeywordsInner';
KeywordLabelFromJSON,
KeywordLabelFromJSONTyped,
KeywordLabelToJSON,
} from './KeywordLabel';
/**
*
* Adds nested create feature
* @export
* @interface RecipeOverview
*/
@@ -31,7 +31,7 @@ export interface RecipeOverview {
* @type {number}
* @memberof RecipeOverview
*/
readonly id?: number;
readonly id: number;
/**
*
* @type {string}
@@ -46,16 +46,16 @@ export interface RecipeOverview {
description?: string | null;
/**
*
* @type {Blob}
* @type {string}
* @memberof RecipeOverview
*/
readonly image?: Blob | null;
readonly image: string | null;
/**
*
* @type {Array<MealPlanRecipeKeywordsInner>}
* @type {Array<KeywordLabel>}
* @memberof RecipeOverview
*/
keywords: Array<MealPlanRecipeKeywordsInner>;
keywords: Array<KeywordLabel>;
/**
*
* @type {number}
@@ -70,22 +70,22 @@ export interface RecipeOverview {
waitingTime?: number;
/**
*
* @type {string}
* @type {number}
* @memberof RecipeOverview
*/
readonly createdBy?: string;
readonly createdBy: number;
/**
*
* @type {Date}
* @memberof RecipeOverview
*/
readonly createdAt?: Date;
readonly createdAt: Date;
/**
*
* @type {Date}
* @memberof RecipeOverview
*/
readonly updatedAt?: Date;
readonly updatedAt: Date;
/**
*
* @type {boolean}
@@ -121,13 +121,13 @@ export interface RecipeOverview {
* @type {string}
* @memberof RecipeOverview
*/
readonly _new?: string;
readonly _new: string;
/**
*
* @type {string}
* @memberof RecipeOverview
*/
readonly recent?: string;
readonly recent: string;
}
/**
@@ -135,8 +135,15 @@ export interface RecipeOverview {
*/
export function instanceOfRecipeOverview(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "id" in value;
isInstance = isInstance && "name" in value;
isInstance = isInstance && "image" in value;
isInstance = isInstance && "keywords" in value;
isInstance = isInstance && "createdBy" in value;
isInstance = isInstance && "createdAt" in value;
isInstance = isInstance && "updatedAt" in value;
isInstance = isInstance && "_new" in value;
isInstance = isInstance && "recent" in value;
return isInstance;
}
@@ -151,23 +158,23 @@ export function RecipeOverviewFromJSONTyped(json: any, ignoreDiscriminator: bool
}
return {
'id': !exists(json, 'id') ? undefined : json['id'],
'id': json['id'],
'name': json['name'],
'description': !exists(json, 'description') ? undefined : json['description'],
'image': !exists(json, 'image') ? undefined : json['image'],
'keywords': ((json['keywords'] as Array<any>).map(MealPlanRecipeKeywordsInnerFromJSON)),
'image': json['image'],
'keywords': ((json['keywords'] as Array<any>).map(KeywordLabelFromJSON)),
'workingTime': !exists(json, 'working_time') ? undefined : json['working_time'],
'waitingTime': !exists(json, 'waiting_time') ? undefined : json['waiting_time'],
'createdBy': !exists(json, 'created_by') ? undefined : 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'])),
'createdBy': json['created_by'],
'createdAt': (new Date(json['created_at'])),
'updatedAt': (new Date(json['updated_at'])),
'internal': !exists(json, 'internal') ? undefined : json['internal'],
'servings': !exists(json, 'servings') ? undefined : json['servings'],
'servingsText': !exists(json, 'servings_text') ? undefined : json['servings_text'],
'rating': !exists(json, 'rating') ? undefined : json['rating'],
'lastCooked': !exists(json, 'last_cooked') ? undefined : (json['last_cooked'] === null ? null : new Date(json['last_cooked'])),
'_new': !exists(json, 'new') ? undefined : json['new'],
'recent': !exists(json, 'recent') ? undefined : json['recent'],
'_new': json['new'],
'recent': json['recent'],
};
}
@@ -182,7 +189,7 @@ export function RecipeOverviewToJSON(value?: RecipeOverview | null): any {
'name': value.name,
'description': value.description,
'keywords': ((value.keywords as Array<any>).map(MealPlanRecipeKeywordsInnerToJSON)),
'keywords': ((value.keywords as Array<any>).map(KeywordLabelToJSON)),
'working_time': value.workingTime,
'waiting_time': value.waitingTime,
'internal': value.internal,