/* 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 SearchTagsRequest */ export interface SearchTagsRequest { /** * * @type {string} * @memberof SearchTagsRequest */ search?: string | null; /** * * @type {string} * @memberof SearchTagsRequest */ sortBy?: SearchTagsRequestSortByEnum; /** * * @type {string} * @memberof SearchTagsRequest */ sortDirection?: SearchTagsRequestSortDirectionEnum; /** * * @type {number} * @memberof SearchTagsRequest */ perPage?: number; /** * * @type {number} * @memberof SearchTagsRequest */ page?: number; /** * * @type {Array} * @memberof SearchTagsRequest */ siteId?: Array; /** * * @type {Array} * @memberof SearchTagsRequest */ type?: Array; /** * * @type {number} * @memberof SearchTagsRequest */ relatedId?: number; /** * * @type {string} * @memberof SearchTagsRequest */ relatedType?: SearchTagsRequestRelatedTypeEnum; /** * * @type {boolean} * @memberof SearchTagsRequest */ includesRelations?: boolean; } /** * @export */ export const SearchTagsRequestSortByEnum = { Id: 'id', Name: 'name', Slug: 'slug', CreatedAt: 'created_at', UpdatedAt: 'updated_at' } as const; export type SearchTagsRequestSortByEnum = typeof SearchTagsRequestSortByEnum[keyof typeof SearchTagsRequestSortByEnum]; /** * @export */ export const SearchTagsRequestSortDirectionEnum = { Asc: 'asc', Desc: 'desc' } as const; export type SearchTagsRequestSortDirectionEnum = typeof SearchTagsRequestSortDirectionEnum[keyof typeof SearchTagsRequestSortDirectionEnum]; /** * @export */ export const SearchTagsRequestRelatedTypeEnum = { ProductChild: 'productChild' } as const; export type SearchTagsRequestRelatedTypeEnum = typeof SearchTagsRequestRelatedTypeEnum[keyof typeof SearchTagsRequestRelatedTypeEnum]; /** * Check if a given object implements the SearchTagsRequest interface. */ export function instanceOfSearchTagsRequest(value: object): value is SearchTagsRequest { return true; } export function SearchTagsRequestFromJSON(json: any): SearchTagsRequest { return SearchTagsRequestFromJSONTyped(json, false); } export function SearchTagsRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchTagsRequest { 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'], 'siteId': json['site_id'] == null ? undefined : json['site_id'], 'type': json['type'] == null ? undefined : json['type'], '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 SearchTagsRequestToJSON(json: any): SearchTagsRequest { return SearchTagsRequestToJSONTyped(json, false); } export function SearchTagsRequestToJSONTyped(value?: SearchTagsRequest | 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'], 'site_id': value['siteId'], 'type': value['type'], 'related_id': value['relatedId'], 'related_type': value['relatedType'], 'includes_relations': value['includesRelations'], }; }