/** * Fasterbase * Fasterbase API description * * OpenAPI spec version: 1.0 * * * 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 { AxiosResponse, AxiosInstance, AxiosRequestConfig } from 'axios'; import { Configuration } from '../configuration'; import { RequestArgs, BaseAPI } from '../base'; import { AcceptDto } from '../models'; import { DeviceDto } from '../models'; import { DeviceModel } from '../models'; import { GetAllDevices } from '../models'; import { UpdateDeviceDto } from '../models'; /** * DeviceApi - axios parameter creator * @export */ export declare const DeviceApiAxiosParamCreator: (configuration?: Configuration) => { /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAllDevices: (options?: AxiosRequestConfig) => Promise; /** * * @param {string} deviceId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getDeviceById: (deviceId: string, options?: AxiosRequestConfig) => Promise; /** * * @param {DeviceDto} body * @param {*} [options] Override http request option. * @throws {RequiredError} */ newDevice: (body: DeviceDto, options?: AxiosRequestConfig) => Promise; /** * * @param {string} deviceId * @param {*} [options] Override http request option. * @throws {RequiredError} */ softDeleteDevice: (deviceId: string, options?: AxiosRequestConfig) => Promise; /** * * @param {UpdateDeviceDto} body * @param {string} deviceId * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateDevice: (body: UpdateDeviceDto, deviceId: string, options?: AxiosRequestConfig) => Promise; }; /** * DeviceApi - functional programming interface * @export */ export declare const DeviceApiFp: (configuration?: Configuration) => { /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAllDevices(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>>; /** * * @param {string} deviceId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getDeviceById(deviceId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>>; /** * * @param {DeviceDto} body * @param {*} [options] Override http request option. * @throws {RequiredError} */ newDevice(body: DeviceDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>>; /** * * @param {string} deviceId * @param {*} [options] Override http request option. * @throws {RequiredError} */ softDeleteDevice(deviceId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>>; /** * * @param {UpdateDeviceDto} body * @param {string} deviceId * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateDevice(body: UpdateDeviceDto, deviceId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise>>; }; /** * DeviceApi - factory interface * @export */ export declare const DeviceApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => { /** * * @param {*} [options] Override http request option. * @throws {RequiredError} */ getAllDevices(options?: AxiosRequestConfig): Promise>; /** * * @param {string} deviceId * @param {*} [options] Override http request option. * @throws {RequiredError} */ getDeviceById(deviceId: string, options?: AxiosRequestConfig): Promise>; /** * * @param {DeviceDto} body * @param {*} [options] Override http request option. * @throws {RequiredError} */ newDevice(body: DeviceDto, options?: AxiosRequestConfig): Promise>; /** * * @param {string} deviceId * @param {*} [options] Override http request option. * @throws {RequiredError} */ softDeleteDevice(deviceId: string, options?: AxiosRequestConfig): Promise>; /** * * @param {UpdateDeviceDto} body * @param {string} deviceId * @param {*} [options] Override http request option. * @throws {RequiredError} */ updateDevice(body: UpdateDeviceDto, deviceId: string, options?: AxiosRequestConfig): Promise>; }; /** * DeviceApi - object-oriented interface * @export * @class DeviceApi * @extends {BaseAPI} */ export declare class DeviceApi extends BaseAPI { /** * * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DeviceApi */ getAllDevices(options?: AxiosRequestConfig): Promise>; /** * * @param {string} deviceId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DeviceApi */ getDeviceById(deviceId: string, options?: AxiosRequestConfig): Promise>; /** * * @param {DeviceDto} body * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DeviceApi */ newDevice(body: DeviceDto, options?: AxiosRequestConfig): Promise>; /** * * @param {string} deviceId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DeviceApi */ softDeleteDevice(deviceId: string, options?: AxiosRequestConfig): Promise>; /** * * @param {UpdateDeviceDto} body * @param {string} deviceId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DeviceApi */ updateDevice(body: UpdateDeviceDto, deviceId: string, options?: AxiosRequestConfig): Promise>; }