working search with flat endpoint

This commit is contained in:
vabene1111
2024-02-29 20:08:37 +01:00
committed by smilerz
parent 4a8ad3db1e
commit 17f875863c
143 changed files with 18624 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,21 +13,21 @@
*/
import { exists, mapValues } from '../runtime';
import type { CustomFilterSharedInner } from './CustomFilterSharedInner';
import type { CustomFilter } from './CustomFilter';
import {
CustomFilterSharedInnerFromJSON,
CustomFilterSharedInnerFromJSONTyped,
CustomFilterSharedInnerToJSON,
} from './CustomFilterSharedInner';
import type { RecipeBookFilter } from './RecipeBookFilter';
CustomFilterFromJSON,
CustomFilterFromJSONTyped,
CustomFilterToJSON,
} from './CustomFilter';
import type { User } from './User';
import {
RecipeBookFilterFromJSON,
RecipeBookFilterFromJSONTyped,
RecipeBookFilterToJSON,
} from './RecipeBookFilter';
UserFromJSON,
UserFromJSONTyped,
UserToJSON,
} from './User';
/**
*
* Adds nested create feature
* @export
* @interface RecipeBook
*/
@@ -37,7 +37,7 @@ export interface RecipeBook {
* @type {number}
* @memberof RecipeBook
*/
readonly id?: number;
readonly id: number;
/**
*
* @type {string}
@@ -52,22 +52,22 @@ export interface RecipeBook {
description?: string;
/**
*
* @type {Array<CustomFilterSharedInner>}
* @type {Array<User>}
* @memberof RecipeBook
*/
shared: Array<CustomFilterSharedInner>;
shared: Array<User>;
/**
*
* @type {string}
* @type {number}
* @memberof RecipeBook
*/
readonly createdBy?: string;
readonly createdBy: number;
/**
*
* @type {RecipeBookFilter}
* @type {CustomFilter}
* @memberof RecipeBook
*/
filter?: RecipeBookFilter | null;
filter?: CustomFilter | null;
/**
*
* @type {number}
@@ -81,8 +81,10 @@ export interface RecipeBook {
*/
export function instanceOfRecipeBook(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "id" in value;
isInstance = isInstance && "name" in value;
isInstance = isInstance && "shared" in value;
isInstance = isInstance && "createdBy" in value;
return isInstance;
}
@@ -97,12 +99,12 @@ export function RecipeBookFromJSONTyped(json: any, ignoreDiscriminator: boolean)
}
return {
'id': !exists(json, 'id') ? undefined : json['id'],
'id': json['id'],
'name': json['name'],
'description': !exists(json, 'description') ? undefined : json['description'],
'shared': ((json['shared'] as Array<any>).map(CustomFilterSharedInnerFromJSON)),
'createdBy': !exists(json, 'created_by') ? undefined : json['created_by'],
'filter': !exists(json, 'filter') ? undefined : RecipeBookFilterFromJSON(json['filter']),
'shared': ((json['shared'] as Array<any>).map(UserFromJSON)),
'createdBy': json['created_by'],
'filter': !exists(json, 'filter') ? undefined : CustomFilterFromJSON(json['filter']),
'order': !exists(json, 'order') ? undefined : json['order'],
};
}
@@ -118,8 +120,8 @@ export function RecipeBookToJSON(value?: RecipeBook | null): any {
'name': value.name,
'description': value.description,
'shared': ((value.shared as Array<any>).map(CustomFilterSharedInnerToJSON)),
'filter': RecipeBookFilterToJSON(value.filter),
'shared': ((value.shared as Array<any>).map(UserToJSON)),
'filter': CustomFilterToJSON(value.filter),
'order': value.order,
};
}