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,122 @@
/* 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';
/**
* Moves `UniqueValidator`'s from the validation stage to the save stage.
* It solves the problem with nested validation for unique fields on update.
*
* If you want more details, you can read related issues and articles:
* https://github.com/beda-software/drf-writable-nested/issues/1
* http://www.django-rest-framework.org/api-guide/validators/#updating-nested-serializers
*
* Example of usage:
* ```
* class Child(models.Model):
* field = models.CharField(unique=True)
*
*
* class Parent(models.Model):
* child = models.ForeignKey('Child')
*
*
* class ChildSerializer(UniqueFieldsMixin, serializers.ModelSerializer):
* class Meta:
* model = Child
*
*
* class ParentSerializer(NestedUpdateMixin, serializers.ModelSerializer):
* child = ChildSerializer()
*
* class Meta:
* model = Parent
* ```
*
* Note: `UniqueFieldsMixin` must be applied only on the serializer
* which has unique fields.
*
* Note: When you are using both mixins
* (`UniqueFieldsMixin` and `NestedCreateMixin` or `NestedUpdateMixin`)
* you should put `UniqueFieldsMixin` ahead.
* @export
* @interface PatchedOpenDataVersion
*/
export interface PatchedOpenDataVersion {
/**
*
* @type {number}
* @memberof PatchedOpenDataVersion
*/
readonly id?: number;
/**
*
* @type {string}
* @memberof PatchedOpenDataVersion
*/
name?: string;
/**
*
* @type {string}
* @memberof PatchedOpenDataVersion
*/
code?: string;
/**
*
* @type {string}
* @memberof PatchedOpenDataVersion
*/
comment?: string;
}
/**
* Check if a given object implements the PatchedOpenDataVersion interface.
*/
export function instanceOfPatchedOpenDataVersion(value: object): boolean {
let isInstance = true;
return isInstance;
}
export function PatchedOpenDataVersionFromJSON(json: any): PatchedOpenDataVersion {
return PatchedOpenDataVersionFromJSONTyped(json, false);
}
export function PatchedOpenDataVersionFromJSONTyped(json: any, ignoreDiscriminator: boolean): PatchedOpenDataVersion {
if ((json === undefined) || (json === null)) {
return json;
}
return {
'id': !exists(json, 'id') ? undefined : json['id'],
'name': !exists(json, 'name') ? undefined : json['name'],
'code': !exists(json, 'code') ? undefined : json['code'],
'comment': !exists(json, 'comment') ? undefined : json['comment'],
};
}
export function PatchedOpenDataVersionToJSON(value?: PatchedOpenDataVersion | null): any {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
'name': value.name,
'code': value.code,
'comment': value.comment,
};
}