traccar-api
Version:
traccar-api-client
194 lines (193 loc) • 8.59 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 { Attribute } from '../models';
/**
* AttributesApi - axios parameter creator
* @export
*/
export declare const AttributesApiAxiosParamCreator: (configuration?: Configuration) => {
/**
* Without params, it returns a list of Attributes the user has access to
* @summary Fetch a list of Attributes
* @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}
*/
attributesComputedGet: (all?: boolean, userId?: number, deviceId?: number, groupId?: number, refresh?: boolean, options?: any) => Promise<RequestArgs>;
/**
*
* @summary Delete an Attribute
* @param {number} id
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
attributesComputedIdDelete: (id: number, options?: any) => Promise<RequestArgs>;
/**
*
* @summary Update an Attribute
* @param {Attribute} body
* @param {number} id
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
attributesComputedIdPut: (body: Attribute, id: number, options?: any) => Promise<RequestArgs>;
/**
*
* @summary Create an Attribute
* @param {Attribute} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
attributesComputedPost: (body: Attribute, options?: any) => Promise<RequestArgs>;
};
/**
* AttributesApi - functional programming interface
* @export
*/
export declare const AttributesApiFp: (configuration?: Configuration) => {
/**
* Without params, it returns a list of Attributes the user has access to
* @summary Fetch a list of Attributes
* @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}
*/
attributesComputedGet(all?: boolean, userId?: number, deviceId?: number, groupId?: number, refresh?: boolean, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Attribute>>>;
/**
*
* @summary Delete an Attribute
* @param {number} id
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
attributesComputedIdDelete(id: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
/**
*
* @summary Update an Attribute
* @param {Attribute} body
* @param {number} id
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
attributesComputedIdPut(body: Attribute, id: number, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Attribute>>;
/**
*
* @summary Create an Attribute
* @param {Attribute} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
attributesComputedPost(body: Attribute, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Attribute>>;
};
/**
* AttributesApi - factory interface
* @export
*/
export declare const AttributesApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
/**
* Without params, it returns a list of Attributes the user has access to
* @summary Fetch a list of Attributes
* @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}
*/
attributesComputedGet(all?: boolean, userId?: number, deviceId?: number, groupId?: number, refresh?: boolean, options?: any): AxiosPromise<Array<Attribute>>;
/**
*
* @summary Delete an Attribute
* @param {number} id
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
attributesComputedIdDelete(id: number, options?: any): AxiosPromise<void>;
/**
*
* @summary Update an Attribute
* @param {Attribute} body
* @param {number} id
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
attributesComputedIdPut(body: Attribute, id: number, options?: any): AxiosPromise<Attribute>;
/**
*
* @summary Create an Attribute
* @param {Attribute} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
attributesComputedPost(body: Attribute, options?: any): AxiosPromise<Attribute>;
};
/**
* AttributesApi - object-oriented interface
* @export
* @class AttributesApi
* @extends {BaseAPI}
*/
export declare class AttributesApi extends BaseAPI {
/**
* Without params, it returns a list of Attributes the user has access to
* @summary Fetch a list of Attributes
* @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 AttributesApi
*/
attributesComputedGet(all?: boolean, userId?: number, deviceId?: number, groupId?: number, refresh?: boolean, options?: any): Promise<import("axios").AxiosResponse<Attribute[]>>;
/**
*
* @summary Delete an Attribute
* @param {number} id
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof AttributesApi
*/
attributesComputedIdDelete(id: number, options?: any): Promise<import("axios").AxiosResponse<void>>;
/**
*
* @summary Update an Attribute
* @param {Attribute} body
* @param {number} id
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof AttributesApi
*/
attributesComputedIdPut(body: Attribute, id: number, options?: any): Promise<import("axios").AxiosResponse<Attribute>>;
/**
*
* @summary Create an Attribute
* @param {Attribute} body
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof AttributesApi
*/
attributesComputedPost(body: Attribute, options?: any): Promise<import("axios").AxiosResponse<Attribute>>;
}