UNPKG

bmw-connected-drive

Version:

This package can be used to access the BMW ConnectedDrive services.

35 lines (34 loc) 2.54 kB
import { Account } from "./Account"; import { RemoteServiceExecutionState } from "./RemoteServiceExecutionState"; import { CarBrand } from "./CarBrand"; import { Regions } from "./Regions"; import { ITokenStore } from "./ITokenStore"; import { ILogger } from "./ILogger"; import { Capabilities, RemoteServiceRequestResponse, Vehicle, VehicleStatus } from "./VehicleApiResponse"; import { CarView } from "./CarView"; export declare class ConnectedDrive { serviceExecutionStatusCheckInterval: number; account: Account; logger?: ILogger; constructor(username: string, password: string, region: Regions, tokenStore?: ITokenStore, logger?: ILogger, captchaToken?: string); getVehicles(): Promise<Vehicle[]>; getVehiclesByBrand(brand: CarBrand): Promise<Vehicle[]>; getVehicleStatus(vin: string, brand?: CarBrand): Promise<VehicleStatus>; getVehicleCapabilities(vin: string, brand?: CarBrand): Promise<Capabilities>; lockDoors(vin: string, brand?: CarBrand, waitExecution?: boolean): Promise<RemoteServiceRequestResponse>; unlockDoors(vin: string, brand?: CarBrand, waitExecution?: boolean): Promise<RemoteServiceRequestResponse>; startClimateControl(vin: string, brand?: CarBrand, waitExecution?: boolean): Promise<RemoteServiceRequestResponse>; stopClimateControl(vin: string, brand?: CarBrand, waitExecution?: boolean): Promise<RemoteServiceRequestResponse>; flashLights(vin: string, brand?: CarBrand, waitExecution?: boolean): Promise<RemoteServiceRequestResponse>; blowHorn(vin: string, brand?: CarBrand, waitExecution?: boolean): Promise<RemoteServiceRequestResponse>; startCharging(vin: string, brand?: CarBrand, waitExecution?: boolean): Promise<RemoteServiceRequestResponse>; stopCharging(vin: string, brand?: CarBrand, waitExecution?: boolean): Promise<RemoteServiceRequestResponse>; private executeService; getServiceStatus(eventId: string, brand?: CarBrand): Promise<RemoteServiceExecutionState>; getImage(vin: string, brand: CarBrand | undefined, view: CarView): Promise<ArrayBuffer>; sendMessage(vin: string, brand: CarBrand | undefined, subject: string, message: string): Promise<boolean>; get(url: string, brand?: CarBrand, headers?: any): Promise<Response>; getFromJson(url: string, brand?: CarBrand, headers?: any): Promise<any>; postAsJson(url: string, brand?: CarBrand, requestBody?: any, headers?: any): Promise<any>; request(url: string, brand?: CarBrand, isPost?: boolean, requestBody?: any, headers?: any): Promise<Response>; }