/* tslint:disable */ /* eslint-disable */ /** * My API * API documentation for my Laravel app * * The version of the OpenAPI document: 1.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 { mapValues } from '../runtime'; /** * * @export * @interface SearchAllAttributeValuesRequest */ export interface SearchAllAttributeValuesRequest { /** * * @type {string} * @memberof SearchAllAttributeValuesRequest */ search?: string | null; /** * * @type {string} * @memberof SearchAllAttributeValuesRequest */ sortBy?: SearchAllAttributeValuesRequestSortByEnum; /** * * @type {string} * @memberof SearchAllAttributeValuesRequest */ sortDirection?: SearchAllAttributeValuesRequestSortDirectionEnum; /** * * @type {number} * @memberof SearchAllAttributeValuesRequest */ relatedId?: number; /** * * @type {string} * @memberof SearchAllAttributeValuesRequest */ relatedType?: SearchAllAttributeValuesRequestRelatedTypeEnum; /** * * @type {boolean} * @memberof SearchAllAttributeValuesRequest */ includesRelations?: boolean; /** * * @type {Array} * @memberof SearchAllAttributeValuesRequest */ attributeId?: Array; } /** * @export */ export const SearchAllAttributeValuesRequestSortByEnum = { Id: 'id', Value: 'value', CreatedAt: 'created_at', UpdatedAt: 'updated_at' } as const; export type SearchAllAttributeValuesRequestSortByEnum = typeof SearchAllAttributeValuesRequestSortByEnum[keyof typeof SearchAllAttributeValuesRequestSortByEnum]; /** * @export */ export const SearchAllAttributeValuesRequestSortDirectionEnum = { Asc: 'asc', Desc: 'desc' } as const; export type SearchAllAttributeValuesRequestSortDirectionEnum = typeof SearchAllAttributeValuesRequestSortDirectionEnum[keyof typeof SearchAllAttributeValuesRequestSortDirectionEnum]; /** * @export */ export const SearchAllAttributeValuesRequestRelatedTypeEnum = { Attribute: 'attribute' } as const; export type SearchAllAttributeValuesRequestRelatedTypeEnum = typeof SearchAllAttributeValuesRequestRelatedTypeEnum[keyof typeof SearchAllAttributeValuesRequestRelatedTypeEnum]; /** * Check if a given object implements the SearchAllAttributeValuesRequest interface. */ export function instanceOfSearchAllAttributeValuesRequest(value: object): value is SearchAllAttributeValuesRequest { return true; } export function SearchAllAttributeValuesRequestFromJSON(json: any): SearchAllAttributeValuesRequest { return SearchAllAttributeValuesRequestFromJSONTyped(json, false); } export function SearchAllAttributeValuesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchAllAttributeValuesRequest { if (json == null) { return json; } return { 'search': json['search'] == null ? undefined : json['search'], 'sortBy': json['sortBy'] == null ? undefined : json['sortBy'], 'sortDirection': json['sortDirection'] == null ? undefined : json['sortDirection'], 'relatedId': json['related_id'] == null ? undefined : json['related_id'], 'relatedType': json['related_type'] == null ? undefined : json['related_type'], 'includesRelations': json['includes_relations'] == null ? undefined : json['includes_relations'], 'attributeId': json['attribute_id'] == null ? undefined : json['attribute_id'], }; } export function SearchAllAttributeValuesRequestToJSON(json: any): SearchAllAttributeValuesRequest { return SearchAllAttributeValuesRequestToJSONTyped(json, false); } export function SearchAllAttributeValuesRequestToJSONTyped(value?: SearchAllAttributeValuesRequest | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'search': value['search'], 'sortBy': value['sortBy'], 'sortDirection': value['sortDirection'], 'related_id': value['relatedId'], 'related_type': value['relatedType'], 'includes_relations': value['includesRelations'], 'attribute_id': value['attributeId'], }; }