traccar-api
Version:
traccar-api-client
182 lines (181 loc) • 6.95 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 { Group } from '../models';
/**
* GroupsApi - axios parameter creator
* @export
*/
export declare const GroupsApiAxiosParamCreator: (configuration?: Configuration) => {
/**
* Without any params, returns a list of the Groups the user belongs to
* @summary Fetch a list of Groups
* @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 {*} [options] Override http request option.
* @throws {RequiredError}
*/
groupsGet: (all?: boolean, userId?: number, options?: any) => Promise<RequestArgs>;
/**
*
* @summary Delete a Group
* @param {number} id
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
groupsIdDelete: (id: number, options?: any) => Promise<RequestArgs>;
/**
*
* @summary Update a Group
* @param {Group} body
* @param {number} id
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
groupsIdPut: (body: Group, id: number, options?: any) => Promise<RequestArgs>;
/**
*
* @summary Create a Group
* @param {Group} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
groupsPost: (body: Group, options?: any) => Promise<RequestArgs>;
};
/**
* GroupsApi - functional programming interface
* @export
*/
export declare const GroupsApiFp: (configuration?: Configuration) => {
/**
* Without any params, returns a list of the Groups the user belongs to
* @summary Fetch a list of Groups
* @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 {*} [options] Override http request option.
* @throws {RequiredError}
*/
groupsGet(all?: boolean, userId?: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Group>>>;
/**
*
* @summary Delete a Group
* @param {number} id
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
groupsIdDelete(id: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
/**
*
* @summary Update a Group
* @param {Group} body
* @param {number} id
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
groupsIdPut(body: Group, id: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Group>>;
/**
*
* @summary Create a Group
* @param {Group} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
groupsPost(body: Group, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Group>>;
};
/**
* GroupsApi - factory interface
* @export
*/
export declare const GroupsApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
/**
* Without any params, returns a list of the Groups the user belongs to
* @summary Fetch a list of Groups
* @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 {*} [options] Override http request option.
* @throws {RequiredError}
*/
groupsGet(all?: boolean, userId?: number, options?: any): AxiosPromise<Array<Group>>;
/**
*
* @summary Delete a Group
* @param {number} id
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
groupsIdDelete(id: number, options?: any): AxiosPromise<void>;
/**
*
* @summary Update a Group
* @param {Group} body
* @param {number} id
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
groupsIdPut(body: Group, id: number, options?: any): AxiosPromise<Group>;
/**
*
* @summary Create a Group
* @param {Group} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
groupsPost(body: Group, options?: any): AxiosPromise<Group>;
};
/**
* GroupsApi - object-oriented interface
* @export
* @class GroupsApi
* @extends {BaseAPI}
*/
export declare class GroupsApi extends BaseAPI {
/**
* Without any params, returns a list of the Groups the user belongs to
* @summary Fetch a list of Groups
* @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 {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof GroupsApi
*/
groupsGet(all?: boolean, userId?: number, options?: any): Promise<import("axios").AxiosResponse<Group[]>>;
/**
*
* @summary Delete a Group
* @param {number} id
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof GroupsApi
*/
groupsIdDelete(id: number, options?: any): Promise<import("axios").AxiosResponse<void>>;
/**
*
* @summary Update a Group
* @param {Group} body
* @param {number} id
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof GroupsApi
*/
groupsIdPut(body: Group, id: number, options?: any): Promise<import("axios").AxiosResponse<Group>>;
/**
*
* @summary Create a Group
* @param {Group} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof GroupsApi
*/
groupsPost(body: Group, options?: any): Promise<import("axios").AxiosResponse<Group>>;
}