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).
@@ -24,7 +24,7 @@ export interface UserFile {
* @type {number}
* @memberof UserFile
*/
readonly id?: number;
readonly id: number;
/**
*
* @type {string}
@@ -33,28 +33,28 @@ export interface UserFile {
name: string;
/**
*
* @type {Blob}
* @type {string}
* @memberof UserFile
*/
file: Blob;
file: string;
/**
*
* @type {string}
* @memberof UserFile
*/
readonly fileDownload?: string;
readonly fileDownload: string;
/**
*
* @type {string}
* @memberof UserFile
*/
readonly preview?: string;
readonly preview: string;
/**
*
* @type {number}
* @memberof UserFile
*/
readonly fileSizeKb?: number;
readonly fileSizeKb: number;
}
/**
@@ -62,8 +62,12 @@ export interface UserFile {
*/
export function instanceOfUserFile(value: object): boolean {
let isInstance = true;
isInstance = isInstance && "id" in value;
isInstance = isInstance && "name" in value;
isInstance = isInstance && "file" in value;
isInstance = isInstance && "fileDownload" in value;
isInstance = isInstance && "preview" in value;
isInstance = isInstance && "fileSizeKb" in value;
return isInstance;
}
@@ -78,12 +82,12 @@ export function UserFileFromJSONTyped(json: any, ignoreDiscriminator: boolean):
}
return {
'id': !exists(json, 'id') ? undefined : json['id'],
'id': json['id'],
'name': json['name'],
'file': json['file'],
'fileDownload': !exists(json, 'file_download') ? undefined : json['file_download'],
'preview': !exists(json, 'preview') ? undefined : json['preview'],
'fileSizeKb': !exists(json, 'file_size_kb') ? undefined : json['file_size_kb'],
'fileDownload': json['file_download'],
'preview': json['preview'],
'fileSizeKb': json['file_size_kb'],
};
}