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

@@ -0,0 +1,118 @@
/* 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 { MethodEnum } from './MethodEnum';
import {
MethodEnumFromJSON,
MethodEnumFromJSONTyped,
MethodEnumToJSON,
} from './MethodEnum';
/**
*
* @export
* @interface PatchedStorage
*/
export interface PatchedStorage {
/**
*
* @type {number}
* @memberof PatchedStorage
*/
readonly id?: number;
/**
*
* @type {string}
* @memberof PatchedStorage
*/
name?: string;
/**
*
* @type {MethodEnum}
* @memberof PatchedStorage
*/
method?: MethodEnum;
/**
*
* @type {string}
* @memberof PatchedStorage
*/
username?: string | null;
/**
*
* @type {string}
* @memberof PatchedStorage
*/
password?: string | null;
/**
*
* @type {string}
* @memberof PatchedStorage
*/
token?: string | null;
/**
*
* @type {number}
* @memberof PatchedStorage
*/
readonly createdBy?: number;
}
/**
* Check if a given object implements the PatchedStorage interface.
*/
export function instanceOfPatchedStorage(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function PatchedStorageFromJSON(json: any): PatchedStorage {
return PatchedStorageFromJSONTyped(json, false);
}
export function PatchedStorageFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedStorage {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'id': !exists(json, 'id') ? undefined : json['id'],
'name': !exists(json, 'name') ? undefined : json['name'],
'method': !exists(json, 'method') ? undefined : MethodEnumFromJSON(json['method']),
'username': !exists(json, 'username') ? undefined : json['username'],
'password': !exists(json, 'password') ? undefined : json['password'],
'token': !exists(json, 'token') ? undefined : json['token'],
'createdBy': !exists(json, 'created_by') ? undefined : json['created_by'],
};
}
export function PatchedStorageToJSON(value?: PatchedStorage | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'name': value.name,
'method': MethodEnumToJSON(value.method),
'username': value.username,
'password': value.password,
'token': value.token,
};
}