UNPKG

traccar-api

Version:

traccar-api-client

194 lines (193 loc) 8.56 kB
/** * 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 { Maintenance } from '../models'; /** * MaintenanceApi - axios parameter creator * @export */ export declare const MaintenanceApiAxiosParamCreator: (configuration?: Configuration) => { /** * Without params, it returns a list of Maintenance the user has access to * @summary Fetch a list of Maintenance * @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} */ maintenanceGet: (all?: boolean, userId?: number, deviceId?: number, groupId?: number, refresh?: boolean, options?: any) => Promise<RequestArgs>; /** * * @summary Delete a Maintenance * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ maintenanceIdDelete: (id: number, options?: any) => Promise<RequestArgs>; /** * * @summary Update a Maintenance * @param {Maintenance} body * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ maintenanceIdPut: (body: Maintenance, id: number, options?: any) => Promise<RequestArgs>; /** * * @summary Create a Maintenance * @param {Maintenance} body * @param {*} [options] Override http request option. * @throws {RequiredError} */ maintenancePost: (body: Maintenance, options?: any) => Promise<RequestArgs>; }; /** * MaintenanceApi - functional programming interface * @export */ export declare const MaintenanceApiFp: (configuration?: Configuration) => { /** * Without params, it returns a list of Maintenance the user has access to * @summary Fetch a list of Maintenance * @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} */ maintenanceGet(all?: boolean, userId?: number, deviceId?: number, groupId?: number, refresh?: boolean, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Maintenance>>>; /** * * @summary Delete a Maintenance * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ maintenanceIdDelete(id: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>; /** * * @summary Update a Maintenance * @param {Maintenance} body * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ maintenanceIdPut(body: Maintenance, id: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Maintenance>>; /** * * @summary Create a Maintenance * @param {Maintenance} body * @param {*} [options] Override http request option. * @throws {RequiredError} */ maintenancePost(body: Maintenance, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Maintenance>>; }; /** * MaintenanceApi - factory interface * @export */ export declare const MaintenanceApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { /** * Without params, it returns a list of Maintenance the user has access to * @summary Fetch a list of Maintenance * @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} */ maintenanceGet(all?: boolean, userId?: number, deviceId?: number, groupId?: number, refresh?: boolean, options?: any): AxiosPromise<Array<Maintenance>>; /** * * @summary Delete a Maintenance * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ maintenanceIdDelete(id: number, options?: any): AxiosPromise<void>; /** * * @summary Update a Maintenance * @param {Maintenance} body * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ maintenanceIdPut(body: Maintenance, id: number, options?: any): AxiosPromise<Maintenance>; /** * * @summary Create a Maintenance * @param {Maintenance} body * @param {*} [options] Override http request option. * @throws {RequiredError} */ maintenancePost(body: Maintenance, options?: any): AxiosPromise<Maintenance>; }; /** * MaintenanceApi - object-oriented interface * @export * @class MaintenanceApi * @extends {BaseAPI} */ export declare class MaintenanceApi extends BaseAPI { /** * Without params, it returns a list of Maintenance the user has access to * @summary Fetch a list of Maintenance * @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 MaintenanceApi */ maintenanceGet(all?: boolean, userId?: number, deviceId?: number, groupId?: number, refresh?: boolean, options?: any): Promise<import("axios").AxiosResponse<Maintenance[]>>; /** * * @summary Delete a Maintenance * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof MaintenanceApi */ maintenanceIdDelete(id: number, options?: any): Promise<import("axios").AxiosResponse<void>>; /** * * @summary Update a Maintenance * @param {Maintenance} body * @param {number} id * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof MaintenanceApi */ maintenanceIdPut(body: Maintenance, id: number, options?: any): Promise<import("axios").AxiosResponse<Maintenance>>; /** * * @summary Create a Maintenance * @param {Maintenance} body * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof MaintenanceApi */ maintenancePost(body: Maintenance, options?: any): Promise<import("axios").AxiosResponse<Maintenance>>; }