/* 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 SearchSuppliersRequest */ export interface SearchSuppliersRequest { /** * * @type {string} * @memberof SearchSuppliersRequest */ search?: string | null; /** * * @type {string} * @memberof SearchSuppliersRequest */ sortBy?: SearchSuppliersRequestSortByEnum; /** * * @type {string} * @memberof SearchSuppliersRequest */ sortDirection?: SearchSuppliersRequestSortDirectionEnum; /** * * @type {number} * @memberof SearchSuppliersRequest */ perPage?: number; /** * * @type {number} * @memberof SearchSuppliersRequest */ page?: number; /** * * @type {number} * @memberof SearchSuppliersRequest */ relatedId?: number; /** * * @type {string} * @memberof SearchSuppliersRequest */ relatedType?: SearchSuppliersRequestRelatedTypeEnum; /** * * @type {boolean} * @memberof SearchSuppliersRequest */ includesRelations?: boolean; } /** * @export */ export const SearchSuppliersRequestSortByEnum = { Id: 'id', Name: 'name', Slug: 'slug', SupplierEta: 'supplier_eta', CreatedAt: 'created_at', UpdatedAt: 'updated_at' } as const; export type SearchSuppliersRequestSortByEnum = typeof SearchSuppliersRequestSortByEnum[keyof typeof SearchSuppliersRequestSortByEnum]; /** * @export */ export const SearchSuppliersRequestSortDirectionEnum = { Asc: 'asc', Desc: 'desc' } as const; export type SearchSuppliersRequestSortDirectionEnum = typeof SearchSuppliersRequestSortDirectionEnum[keyof typeof SearchSuppliersRequestSortDirectionEnum]; /** * @export */ export const SearchSuppliersRequestRelatedTypeEnum = { ProductChild: 'productChild' } as const; export type SearchSuppliersRequestRelatedTypeEnum = typeof SearchSuppliersRequestRelatedTypeEnum[keyof typeof SearchSuppliersRequestRelatedTypeEnum]; /** * Check if a given object implements the SearchSuppliersRequest interface. */ export function instanceOfSearchSuppliersRequest(value: object): value is SearchSuppliersRequest { return true; } export function SearchSuppliersRequestFromJSON(json: any): SearchSuppliersRequest { return SearchSuppliersRequestFromJSONTyped(json, false); } export function SearchSuppliersRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchSuppliersRequest { 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'], '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 SearchSuppliersRequestToJSON(json: any): SearchSuppliersRequest { return SearchSuppliersRequestToJSONTyped(json, false); } export function SearchSuppliersRequestToJSONTyped(value?: SearchSuppliersRequest | 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'], 'related_id': value['relatedId'], 'related_type': value['relatedType'], 'includes_relations': value['includesRelations'], }; }