UNPKG

@iotize/device-client.js

Version:

IoTize Device client for Javascript

238 lines (237 loc) 5.65 kB
/** * This file has been generated * DO NOT EDIT, IT MAY BE OVERWRITTEN */ import { Client, Response, ApiConfig } from "../import-adapter"; import { AbstractService, ServiceCallType } from '../abstract-service'; import { AvailablePowerSource } from '../../all-models'; export declare class DeviceService extends AbstractService { constructor(client: Client, apiConfig: ApiConfig); resources: { [key: string]: ServiceCallType; }; /** * Factory reset * * LWM2M path: /3//5 * @tapVersion(">=1.0") * @return void api call */ factoryReset(): Promise<Response<void>>; /** * Factory reset * * LWM2M path: /3//5 * @tapVersion(">=1.0") * @return call options */ factoryResetCall(): ServiceCallType; /** * Get available power sources * * LWM2M path: /3//6 * @tapVersion(">=1.0") * @return AvailablePowerSource api call */ getAvailablePowerSource(): Promise<Response<AvailablePowerSource>>; /** * Get available power sources * * LWM2M path: /3//6 * @tapVersion(">=1.0") * @return call options */ getAvailablePowerSourceCall(): ServiceCallType; /** * Get device current time * * LWM2M path: /3//13 * @tapVersion(">=1.0") * @return string api call */ getCurrentTime(): Promise<Response<string>>; /** * Get device current time * * LWM2M path: /3//13 * @tapVersion(">=1.0") * @return call options */ getCurrentTimeCall(): ServiceCallType; /** * Get device firmware version * * LWM2M path: /3//3 * @tapVersion(">=1.0") * @return string api call */ getFirmwareVersion(): Promise<Response<string>>; /** * Get device firmware version * * LWM2M path: /3//3 * @tapVersion(">=1.0") * @return call options */ getFirmwareVersionCall(): ServiceCallType; /** * Get device last error code * * LWM2M path: /3//11 * @tapVersion(">=1.0") * @return number api call */ getLastErrorCode(): Promise<Response<number>>; /** * Get device last error code * * LWM2M path: /3//11 * @tapVersion(">=1.0") * @return call options */ getLastErrorCodeCall(): ServiceCallType; /** * Get manufacturer name * * LWM2M path: /3//0 * @tapVersion(">=1.0") * @return string api call */ getManufacturer(): Promise<Response<string>>; /** * Get manufacturer name * * LWM2M path: /3//0 * @tapVersion(">=1.0") * @return call options */ getManufacturerCall(): ServiceCallType; /** * Get device memory free * In bytes * LWM2M path: /3//10 * @tapVersion(">=1.0") * @return number api call */ getMemoryFree(): Promise<Response<number>>; /** * Get device memory free * In bytes * LWM2M path: /3//10 * @tapVersion(">=1.0") * @return call options */ getMemoryFreeCall(): ServiceCallType; /** * Get device model name * * LWM2M path: /3//1 * @tapVersion(">=1.0") * @return string api call */ getModelName(): Promise<Response<string>>; /** * Get device model name * * LWM2M path: /3//1 * @tapVersion(">=1.0") * @return call options */ getModelNameCall(): ServiceCallType; /** * Get power source voltage * * LWM2M path: /3//7 * @tapVersion(">=1.0") * @return number api call */ getPowerSourceVoltage(): Promise<Response<number>>; /** * Get power source voltage * * LWM2M path: /3//7 * @tapVersion(">=1.0") * @return call options */ getPowerSourceVoltageCall(): ServiceCallType; /** * Get device serial number * * LWM2M path: /3//2 * @tapVersion(">=1.0") * @return string api call */ getSerialNumber(): Promise<Response<string>>; /** * Get device serial number * * LWM2M path: /3//2 * @tapVersion(">=1.0") * @return call options */ getSerialNumberCall(): ServiceCallType; /** * ??? * * LWM2M path: /3//11 * @tapVersion(">=1.0") * @return void api call */ postLastErrorCode(): Promise<Response<void>>; /** * ??? * * LWM2M path: /3//11 * @tapVersion(">=1.0") * @return call options */ postLastErrorCodeCall(): ServiceCallType; /** * Set device current time * * LWM2M path: /3//13 * @tapVersion(">=1.0") * @return void api call */ putCurrentTime(): Promise<Response<void>>; /** * Set device current time * * LWM2M path: /3//13 * @tapVersion(">=1.0") * @return call options */ putCurrentTimeCall(): ServiceCallType; /** * Reboot device * * LWM2M path: /3//4 * @tapVersion(">=1.0") * @return void api call */ reboot(): Promise<Response<void>>; /** * Reboot device * * LWM2M path: /3//4 * @tapVersion(">=1.0") * @return call options */ rebootCall(): ServiceCallType; /** * Reset device last error code * * LWM2M path: /3//12 * @tapVersion(">=1.0") * @return void api call */ resetLastErrorCode(): Promise<Response<void>>; /** * Reset device last error code * * LWM2M path: /3//12 * @tapVersion(">=1.0") * @return call options */ resetLastErrorCodeCall(): ServiceCallType; }