import { AxiosRequestConfig } from "axios"; import { PitstopClientNS } from "../dto/pitstop"; import Client = PitstopClientNS.Client; import Api = PitstopClientNS.Api; export interface IPitstopAPIClient { getCarByVin(req: Client.GetCarByVinReqDto.Type): Promise; createCar(req: Client.CreateCarReqDto.Type): Promise; getOrCreateCar(req: Client.CreateCarReqDto.Type): Promise; /** * todo: probably not a good idea to expose implementation details to it's user * (i.e. AxiosRequestConfig indicating it uses Axios and may force user to use axios) * also it does not give a typed interface (what are the possible attributes of requestOptions?) * @param carId * @param requestOptions */ updateCarSettings(carId: number, requestOptions: AxiosRequestConfig): Promise; assignScannerToCar(carId: number, scannerId: string): Promise; assignCarToShop(carId: number, shopId: number): Promise; updateIssue(issueId: number, data: Api.UpdateIssue.Request.Type): Promise; } export interface PitstopAPIClientOptions { baseUrl: string; clientId: string; apiKey: string; } //# sourceMappingURL=pitstopAPIClient.d.ts.map