traccar-api
Version:
traccar-api-client
194 lines (193 loc) • 8.22 kB
TypeScript
/**
* Traccar
* Traccar GPS tracking server API documentation. To use the API you need to have a server instance. For testing purposes you can use one of free [demo servers](https://www.traccar.org/demo-server/). For production use you can install your own server or get a [subscription service](https://www.traccar.org/product/tracking-server/).
*
* OpenAPI spec version: 4.11
* Contact: support@traccar.org
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/
import { AxiosPromise, AxiosInstance } from 'axios';
import { Configuration } from '../configuration';
import { RequestArgs, BaseAPI } from '../base';
import { Driver } from '../models';
/**
* DriversApi - axios parameter creator
* @export
*/
export declare const DriversApiAxiosParamCreator: (configuration?: Configuration) => {
/**
* Without params, it returns a list of Drivers the user has access to
* @summary Fetch a list of Drivers
* @param {boolean} [all] Can only be used by admins or managers to fetch all entities
* @param {number} [userId] Standard users can use this only with their own _userId_
* @param {number} [deviceId] Standard users can use this only with _deviceId_s, they have access to
* @param {number} [groupId] Standard users can use this only with _groupId_s, they have access to
* @param {boolean} [refresh]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
driversGet: (all?: boolean, userId?: number, deviceId?: number, groupId?: number, refresh?: boolean, options?: any) => Promise<RequestArgs>;
/**
*
* @summary Delete a Driver
* @param {number} id
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
driversIdDelete: (id: number, options?: any) => Promise<RequestArgs>;
/**
*
* @summary Update a Driver
* @param {Driver} body
* @param {number} id
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
driversIdPut: (body: Driver, id: number, options?: any) => Promise<RequestArgs>;
/**
*
* @summary Create a Driver
* @param {Driver} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
driversPost: (body: Driver, options?: any) => Promise<RequestArgs>;
};
/**
* DriversApi - functional programming interface
* @export
*/
export declare const DriversApiFp: (configuration?: Configuration) => {
/**
* Without params, it returns a list of Drivers the user has access to
* @summary Fetch a list of Drivers
* @param {boolean} [all] Can only be used by admins or managers to fetch all entities
* @param {number} [userId] Standard users can use this only with their own _userId_
* @param {number} [deviceId] Standard users can use this only with _deviceId_s, they have access to
* @param {number} [groupId] Standard users can use this only with _groupId_s, they have access to
* @param {boolean} [refresh]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
driversGet(all?: boolean, userId?: number, deviceId?: number, groupId?: number, refresh?: boolean, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Driver>>>;
/**
*
* @summary Delete a Driver
* @param {number} id
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
driversIdDelete(id: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
/**
*
* @summary Update a Driver
* @param {Driver} body
* @param {number} id
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
driversIdPut(body: Driver, id: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Driver>>;
/**
*
* @summary Create a Driver
* @param {Driver} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
driversPost(body: Driver, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Driver>>;
};
/**
* DriversApi - factory interface
* @export
*/
export declare const DriversApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
/**
* Without params, it returns a list of Drivers the user has access to
* @summary Fetch a list of Drivers
* @param {boolean} [all] Can only be used by admins or managers to fetch all entities
* @param {number} [userId] Standard users can use this only with their own _userId_
* @param {number} [deviceId] Standard users can use this only with _deviceId_s, they have access to
* @param {number} [groupId] Standard users can use this only with _groupId_s, they have access to
* @param {boolean} [refresh]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
driversGet(all?: boolean, userId?: number, deviceId?: number, groupId?: number, refresh?: boolean, options?: any): AxiosPromise<Array<Driver>>;
/**
*
* @summary Delete a Driver
* @param {number} id
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
driversIdDelete(id: number, options?: any): AxiosPromise<void>;
/**
*
* @summary Update a Driver
* @param {Driver} body
* @param {number} id
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
driversIdPut(body: Driver, id: number, options?: any): AxiosPromise<Driver>;
/**
*
* @summary Create a Driver
* @param {Driver} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
driversPost(body: Driver, options?: any): AxiosPromise<Driver>;
};
/**
* DriversApi - object-oriented interface
* @export
* @class DriversApi
* @extends {BaseAPI}
*/
export declare class DriversApi extends BaseAPI {
/**
* Without params, it returns a list of Drivers the user has access to
* @summary Fetch a list of Drivers
* @param {boolean} [all] Can only be used by admins or managers to fetch all entities
* @param {number} [userId] Standard users can use this only with their own _userId_
* @param {number} [deviceId] Standard users can use this only with _deviceId_s, they have access to
* @param {number} [groupId] Standard users can use this only with _groupId_s, they have access to
* @param {boolean} [refresh]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof DriversApi
*/
driversGet(all?: boolean, userId?: number, deviceId?: number, groupId?: number, refresh?: boolean, options?: any): Promise<import("axios").AxiosResponse<Driver[]>>;
/**
*
* @summary Delete a Driver
* @param {number} id
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof DriversApi
*/
driversIdDelete(id: number, options?: any): Promise<import("axios").AxiosResponse<void>>;
/**
*
* @summary Update a Driver
* @param {Driver} body
* @param {number} id
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof DriversApi
*/
driversIdPut(body: Driver, id: number, options?: any): Promise<import("axios").AxiosResponse<Driver>>;
/**
*
* @summary Create a Driver
* @param {Driver} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof DriversApi
*/
driversPost(body: Driver, options?: any): Promise<import("axios").AxiosResponse<Driver>>;
}