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

@@ -0,0 +1,124 @@
/* tslint:disable */
/* eslint-disable */
/**
*
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: 0.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { exists, mapValues } from '../runtime';
import type { CustomFilter } from './CustomFilter';
import {
CustomFilterFromJSON,
CustomFilterFromJSONTyped,
CustomFilterToJSON,
} from './CustomFilter';
import type { User } from './User';
import {
UserFromJSON,
UserFromJSONTyped,
UserToJSON,
} from './User';
/**
* Adds nested create feature
* @export
* @interface PatchedRecipeBook
*/
export interface PatchedRecipeBook {
/**
*
* @type {number}
* @memberof PatchedRecipeBook
*/
readonly id?: number;
/**
*
* @type {string}
* @memberof PatchedRecipeBook
*/
name?: string;
/**
*
* @type {string}
* @memberof PatchedRecipeBook
*/
description?: string;
/**
*
* @type {Array<User>}
* @memberof PatchedRecipeBook
*/
shared?: Array<User>;
/**
*
* @type {number}
* @memberof PatchedRecipeBook
*/
readonly createdBy?: number;
/**
*
* @type {CustomFilter}
* @memberof PatchedRecipeBook
*/
filter?: CustomFilter | null;
/**
*
* @type {number}
* @memberof PatchedRecipeBook
*/
order?: number;
}
/**
* Check if a given object implements the PatchedRecipeBook interface.
*/
export function instanceOfPatchedRecipeBook(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function PatchedRecipeBookFromJSON(json: any): PatchedRecipeBook {
return PatchedRecipeBookFromJSONTyped(json, false);
}
export function PatchedRecipeBookFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedRecipeBook {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'id': !exists(json, 'id') ? undefined : json['id'],
'name': !exists(json, 'name') ? undefined : json['name'],
'description': !exists(json, 'description') ? undefined : json['description'],
'shared': !exists(json, 'shared') ? undefined : ((json['shared'] as Array<any>).map(UserFromJSON)),
'createdBy': !exists(json, 'created_by') ? undefined : json['created_by'],
'filter': !exists(json, 'filter') ? undefined : CustomFilterFromJSON(json['filter']),
'order': !exists(json, 'order') ? undefined : json['order'],
};
}
export function PatchedRecipeBookToJSON(value?: PatchedRecipeBook | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'name': value.name,
'description': value.description,
'shared': value.shared === undefined ? undefined : ((value.shared as Array<any>).map(UserToJSON)),
'filter': CustomFilterToJSON(value.filter),
'order': value.order,
};
}