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,134 @@
/* 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';
/**
*
* @export
* @interface PatchedExportLog
*/
export interface PatchedExportLog {
/**
*
* @type {number}
* @memberof PatchedExportLog
*/
readonly id?: number;
/**
*
* @type {string}
* @memberof PatchedExportLog
*/
type?: string;
/**
*
* @type {string}
* @memberof PatchedExportLog
*/
msg?: string;
/**
*
* @type {boolean}
* @memberof PatchedExportLog
*/
running?: boolean;
/**
*
* @type {number}
* @memberof PatchedExportLog
*/
totalRecipes?: number;
/**
*
* @type {number}
* @memberof PatchedExportLog
*/
exportedRecipes?: number;
/**
*
* @type {number}
* @memberof PatchedExportLog
*/
cacheDuration?: number;
/**
*
* @type {boolean}
* @memberof PatchedExportLog
*/
possiblyNotExpired?: boolean;
/**
*
* @type {number}
* @memberof PatchedExportLog
*/
readonly createdBy?: number;
/**
*
* @type {Date}
* @memberof PatchedExportLog
*/
readonly createdAt?: Date;
}
/**
* Check if a given object implements the PatchedExportLog interface.
*/
export function instanceOfPatchedExportLog(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function PatchedExportLogFromJSON(json: any): PatchedExportLog {
return PatchedExportLogFromJSONTyped(json, false);
}
export function PatchedExportLogFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedExportLog {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'id': !exists(json, 'id') ? undefined : json['id'],
'type': !exists(json, 'type') ? undefined : json['type'],
'msg': !exists(json, 'msg') ? undefined : json['msg'],
'running': !exists(json, 'running') ? undefined : json['running'],
'totalRecipes': !exists(json, 'total_recipes') ? undefined : json['total_recipes'],
'exportedRecipes': !exists(json, 'exported_recipes') ? undefined : json['exported_recipes'],
'cacheDuration': !exists(json, 'cache_duration') ? undefined : json['cache_duration'],
'possiblyNotExpired': !exists(json, 'possibly_not_expired') ? undefined : json['possibly_not_expired'],
'createdBy': !exists(json, 'created_by') ? undefined : json['created_by'],
'createdAt': !exists(json, 'created_at') ? undefined : (new Date(json['created_at'])),
};
}
export function PatchedExportLogToJSON(value?: PatchedExportLog | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'type': value.type,
'msg': value.msg,
'running': value.running,
'total_recipes': value.totalRecipes,
'exported_recipes': value.exportedRecipes,
'cache_duration': value.cacheDuration,
'possibly_not_expired': value.possiblyNotExpired,
};
}