/* 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 SearchAttributeValuesRequest */ export interface SearchAttributeValuesRequest { /** * * @type {string} * @memberof SearchAttributeValuesRequest */ search?: string | null; /** * * @type {string} * @memberof SearchAttributeValuesRequest */ sortBy?: SearchAttributeValuesRequestSortByEnum; /** * * @type {string} * @memberof SearchAttributeValuesRequest */ sortDirection?: SearchAttributeValuesRequestSortDirectionEnum; /** * * @type {number} * @memberof SearchAttributeValuesRequest */ perPage?: number; /** * * @type {number} * @memberof SearchAttributeValuesRequest */ page?: number; /** * * @type {Array} * @memberof SearchAttributeValuesRequest */ attributeId?: Array; /** * * @type {number} * @memberof SearchAttributeValuesRequest */ relatedId?: number; /** * * @type {string} * @memberof SearchAttributeValuesRequest */ relatedType?: SearchAttributeValuesRequestRelatedTypeEnum; /** * * @type {boolean} * @memberof SearchAttributeValuesRequest */ includesRelations?: boolean; } /** * @export */ export const SearchAttributeValuesRequestSortByEnum = { Id: 'id', Value: 'value', CreatedAt: 'created_at', UpdatedAt: 'updated_at' } as const; export type SearchAttributeValuesRequestSortByEnum = typeof SearchAttributeValuesRequestSortByEnum[keyof typeof SearchAttributeValuesRequestSortByEnum]; /** * @export */ export const SearchAttributeValuesRequestSortDirectionEnum = { Asc: 'asc', Desc: 'desc' } as const; export type SearchAttributeValuesRequestSortDirectionEnum = typeof SearchAttributeValuesRequestSortDirectionEnum[keyof typeof SearchAttributeValuesRequestSortDirectionEnum]; /** * @export */ export const SearchAttributeValuesRequestRelatedTypeEnum = { Attribute: 'attribute' } as const; export type SearchAttributeValuesRequestRelatedTypeEnum = typeof SearchAttributeValuesRequestRelatedTypeEnum[keyof typeof SearchAttributeValuesRequestRelatedTypeEnum]; /** * Check if a given object implements the SearchAttributeValuesRequest interface. */ export function instanceOfSearchAttributeValuesRequest(value: object): value is SearchAttributeValuesRequest { return true; } export function SearchAttributeValuesRequestFromJSON(json: any): SearchAttributeValuesRequest { return SearchAttributeValuesRequestFromJSONTyped(json, false); } export function SearchAttributeValuesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchAttributeValuesRequest { 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'], 'perPage': json['per_page'] == null ? undefined : json['per_page'], 'page': json['page'] == null ? undefined : json['page'], 'attributeId': json['attribute_id'] == null ? undefined : json['attribute_id'], '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'], }; } export function SearchAttributeValuesRequestToJSON(json: any): SearchAttributeValuesRequest { return SearchAttributeValuesRequestToJSONTyped(json, false); } export function SearchAttributeValuesRequestToJSONTyped(value?: SearchAttributeValuesRequest | null, ignoreDiscriminator: boolean = false): any { if (value == null) { return value; } return { 'search': value['search'], 'sortBy': value['sortBy'], 'sortDirection': value['sortDirection'], 'per_page': value['perPage'], 'page': value['page'], 'attribute_id': value['attributeId'], 'related_id': value['relatedId'], 'related_type': value['relatedType'], 'includes_relations': value['includesRelations'], }; }