/* 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 SearchAllAttributesRequest */ export interface SearchAllAttributesRequest { /** * * @type {string} * @memberof SearchAllAttributesRequest */ search?: string | null; /** * * @type {string} * @memberof SearchAllAttributesRequest */ sortBy?: SearchAllAttributesRequestSortByEnum; /** * * @type {string} * @memberof SearchAllAttributesRequest */ sortDirection?: SearchAllAttributesRequestSortDirectionEnum; /** * * @type {number} * @memberof SearchAllAttributesRequest */ relatedId?: number; /** * * @type {string} * @memberof SearchAllAttributesRequest */ relatedType?: SearchAllAttributesRequestRelatedTypeEnum; /** * * @type {boolean} * @memberof SearchAllAttributesRequest */ includesRelations?: boolean; /** * * @type {Array} * @memberof SearchAllAttributesRequest */ type?: Array; /** * * @type {Array} * @memberof SearchAllAttributesRequest */ isFilterable?: Array; /** * * @type {Array} * @memberof SearchAllAttributesRequest */ isExpandedByDefault?: Array; } /** * @export */ export const SearchAllAttributesRequestSortByEnum = { Id: 'id', Name: 'name', FilterIndex: 'filter_index', CreatedAt: 'created_at', UpdatedAt: 'updated_at' } as const; export type SearchAllAttributesRequestSortByEnum = typeof SearchAllAttributesRequestSortByEnum[keyof typeof SearchAllAttributesRequestSortByEnum]; /** * @export */ export const SearchAllAttributesRequestSortDirectionEnum = { Asc: 'asc', Desc: 'desc' } as const; export type SearchAllAttributesRequestSortDirectionEnum = typeof SearchAllAttributesRequestSortDirectionEnum[keyof typeof SearchAllAttributesRequestSortDirectionEnum]; /** * @export */ export const SearchAllAttributesRequestRelatedTypeEnum = { ProductType: 'productType', Category: 'category', ProductRange: 'productRange' } as const; export type SearchAllAttributesRequestRelatedTypeEnum = typeof SearchAllAttributesRequestRelatedTypeEnum[keyof typeof SearchAllAttributesRequestRelatedTypeEnum]; /** * Check if a given object implements the SearchAllAttributesRequest interface. */ export function instanceOfSearchAllAttributesRequest(value: object): value is SearchAllAttributesRequest { return true; } export function SearchAllAttributesRequestFromJSON(json: any): SearchAllAttributesRequest { return SearchAllAttributesRequestFromJSONTyped(json, false); } export function SearchAllAttributesRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchAllAttributesRequest { 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'], 'type': json['type'] == null ? undefined : json['type'], 'isFilterable': json['is_filterable'] == null ? undefined : json['is_filterable'], 'isExpandedByDefault': json['is_expanded_by_default'] == null ? undefined : json['is_expanded_by_default'], }; } export function SearchAllAttributesRequestToJSON(json: any): SearchAllAttributesRequest { return SearchAllAttributesRequestToJSONTyped(json, false); } export function SearchAllAttributesRequestToJSONTyped(value?: SearchAllAttributesRequest | 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'], 'type': value['type'], 'is_filterable': value['isFilterable'], 'is_expanded_by_default': value['isExpandedByDefault'], }; }