traccar-api
Version:
traccar-api-client
104 lines (103 loc) • 3.53 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 { Server } from '../models';
/**
* ServerApi - axios parameter creator
* @export
*/
export declare const ServerApiAxiosParamCreator: (configuration?: Configuration) => {
/**
*
* @summary Fetch Server information
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
serverGet: (options?: any) => Promise<RequestArgs>;
/**
*
* @summary Update Server information
* @param {Server} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
serverPut: (body: Server, options?: any) => Promise<RequestArgs>;
};
/**
* ServerApi - functional programming interface
* @export
*/
export declare const ServerApiFp: (configuration?: Configuration) => {
/**
*
* @summary Fetch Server information
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
serverGet(options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Server>>;
/**
*
* @summary Update Server information
* @param {Server} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
serverPut(body: Server, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Server>>;
};
/**
* ServerApi - factory interface
* @export
*/
export declare const ServerApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
/**
*
* @summary Fetch Server information
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
serverGet(options?: any): AxiosPromise<Server>;
/**
*
* @summary Update Server information
* @param {Server} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
serverPut(body: Server, options?: any): AxiosPromise<Server>;
};
/**
* ServerApi - object-oriented interface
* @export
* @class ServerApi
* @extends {BaseAPI}
*/
export declare class ServerApi extends BaseAPI {
/**
*
* @summary Fetch Server information
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ServerApi
*/
serverGet(options?: any): Promise<import("axios").AxiosResponse<Server>>;
/**
*
* @summary Update Server information
* @param {Server} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ServerApi
*/
serverPut(body: Server, options?: any): Promise<import("axios").AxiosResponse<Server>>;
}