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,12 +13,12 @@
*/
import { exists, mapValues } from '../runtime';
import type { ImportLogKeyword } from './ImportLogKeyword';
import type { Keyword } from './Keyword';
import {
ImportLogKeywordFromJSON,
ImportLogKeywordFromJSONTyped,
ImportLogKeywordToJSON,
} from './ImportLogKeyword';
KeywordFromJSON,
KeywordFromJSONTyped,
KeywordToJSON,
} from './Keyword';
/**
*
@@ -31,7 +31,7 @@ export interface ImportLog {
* @type {number}
* @memberof ImportLog
*/
readonly id?: number;
readonly id: number;
/**
*
* @type {string}
@@ -52,10 +52,10 @@ export interface ImportLog {
running?: boolean;
/**
*
* @type {ImportLogKeyword}
* @type {Keyword}
* @memberof ImportLog
*/
keyword?: ImportLogKeyword;
readonly keyword: Keyword;
/**
*
* @type {number}
@@ -70,16 +70,16 @@ export interface ImportLog {
importedRecipes?: number;
/**
*
* @type {string}
* @type {number}
* @memberof ImportLog
*/
readonly createdBy?: string;
readonly createdBy: number;
/**
*
* @type {Date}
* @memberof ImportLog
*/
readonly createdAt?: Date;
readonly createdAt: Date;
}
/**
@@ -87,7 +87,11 @@ export interface ImportLog {
*/
export function instanceOfImportLog(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "id" in value;
isInstance = isInstance && "type" in value;
isInstance = isInstance && "keyword" in value;
isInstance = isInstance && "createdBy" in value;
isInstance = isInstance && "createdAt" in value;
return isInstance;
}
@@ -102,15 +106,15 @@ export function ImportLogFromJSONTyped(json: any, ignoreDiscriminator: boolean):
}
return {
'id': !exists(json, 'id') ? undefined : json['id'],
'id': json['id'],
'type': json['type'],
'msg': !exists(json, 'msg') ? undefined : json['msg'],
'running': !exists(json, 'running') ? undefined : json['running'],
'keyword': !exists(json, 'keyword') ? undefined : ImportLogKeywordFromJSON(json['keyword']),
'keyword': KeywordFromJSON(json['keyword']),
'totalRecipes': !exists(json, 'total_recipes') ? undefined : json['total_recipes'],
'importedRecipes': !exists(json, 'imported_recipes') ? undefined : json['imported_recipes'],
'createdBy': !exists(json, 'created_by') ? undefined : json['created_by'],
'createdAt': !exists(json, 'created_at') ? undefined : (new Date(json['created_at'])),
'createdBy': json['created_by'],
'createdAt': (new Date(json['created_at'])),
};
}
@@ -126,7 +130,6 @@ export function ImportLogToJSON(value?: ImportLog | null): any {
'type': value.type,
'msg': value.msg,
'running': value.running,
'keyword': ImportLogKeywordToJSON(value.keyword),
'total_recipes': value.totalRecipes,
'imported_recipes': value.importedRecipes,
};