/* 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 SearchAllSuppliersRequest */ export interface SearchAllSuppliersRequest { /** * * @type {string} * @memberof SearchAllSuppliersRequest */ search?: string | null; /** * * @type {string} * @memberof SearchAllSuppliersRequest */ sortBy?: SearchAllSuppliersRequestSortByEnum; /** * * @type {string} * @memberof SearchAllSuppliersRequest */ sortDirection?: SearchAllSuppliersRequestSortDirectionEnum; /** * * @type {number} * @memberof SearchAllSuppliersRequest */ relatedId?: number; /** * * @type {string} * @memberof SearchAllSuppliersRequest */ relatedType?: SearchAllSuppliersRequestRelatedTypeEnum; /** * * @type {boolean} * @memberof SearchAllSuppliersRequest */ includesRelations?: boolean; } /** * @export */ export const SearchAllSuppliersRequestSortByEnum = { Id: 'id', Name: 'name', Slug: 'slug', SupplierEta: 'supplier_eta', CreatedAt: 'created_at', UpdatedAt: 'updated_at' } as const; export type SearchAllSuppliersRequestSortByEnum = typeof SearchAllSuppliersRequestSortByEnum[keyof typeof SearchAllSuppliersRequestSortByEnum]; /** * @export */ export const SearchAllSuppliersRequestSortDirectionEnum = { Asc: 'asc', Desc: 'desc' } as const; export type SearchAllSuppliersRequestSortDirectionEnum = typeof SearchAllSuppliersRequestSortDirectionEnum[keyof typeof SearchAllSuppliersRequestSortDirectionEnum]; /** * @export */ export const SearchAllSuppliersRequestRelatedTypeEnum = { Product: 'product' } as const; export type SearchAllSuppliersRequestRelatedTypeEnum = typeof SearchAllSuppliersRequestRelatedTypeEnum[keyof typeof SearchAllSuppliersRequestRelatedTypeEnum]; /** * Check if a given object implements the SearchAllSuppliersRequest interface. */ export function instanceOfSearchAllSuppliersRequest(value: object): value is SearchAllSuppliersRequest { return true; } export function SearchAllSuppliersRequestFromJSON(json: any): SearchAllSuppliersRequest { return SearchAllSuppliersRequestFromJSONTyped(json, false); } export function SearchAllSuppliersRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): SearchAllSuppliersRequest { 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'], }; } export function SearchAllSuppliersRequestToJSON(json: any): SearchAllSuppliersRequest { return SearchAllSuppliersRequestToJSONTyped(json, false); } export function SearchAllSuppliersRequestToJSONTyped(value?: SearchAllSuppliersRequest | 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'], }; }