UNPKG

@iotize/device-client.js

Version:

IoTize Device client for Javascript

152 lines (151 loc) 4.29 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 { ReadWriteRights } from '../../all-models'; export declare class BundleService extends AbstractService { constructor(client: Client, apiConfig: ApiConfig); resources: { [key: string]: ServiceCallType; }; /** * Write variable bundle id * Create a bundle with id bundleId * LWM2M path: /1028/{bundleId}/65535 * @tapVersion(">=1.0") * @param bundleId input * @return void api call */ create(bundleId: number): Promise<Response<void>>; /** * Write variable bundle id * Create a bundle with id bundleId * LWM2M path: /1028/{bundleId}/65535 * @tapVersion(">=1.0") * @param bundleId input * @return call options */ createCall(bundleId: number): ServiceCallType; /** * Get data log period * * LWM2M path: /1028/{bundleId}/2 * @tapVersion(">=1.0") * @param bundleId input * @return number api call */ getDataLogPeriod(bundleId: number): Promise<Response<number>>; /** * Get data log period * * LWM2M path: /1028/{bundleId}/2 * @tapVersion(">=1.0") * @param bundleId input * @return call options */ getDataLogPeriodCall(bundleId: number): ServiceCallType; /** * Read bundle name * * LWM2M path: /1028/{bundleId}/4 * @tapVersion(">=1.0") * @param bundleId input * @return string api call */ getName(bundleId: number): Promise<Response<string>>; /** * Read bundle name * * LWM2M path: /1028/{bundleId}/4 * @tapVersion(">=1.0") * @param bundleId input * @return call options */ getNameCall(bundleId: number): ServiceCallType; /** * Get bundle values * * LWM2M path: /1028/{bundleId}/1 * @tapVersion(">=1.0") * @param bundleId input * @return Uint8Array api call */ getValues(bundleId: number): Promise<Response<Uint8Array>>; /** * Get bundle values * * LWM2M path: /1028/{bundleId}/1 * @tapVersion(">=1.0") * @param bundleId input * @return call options */ getValuesCall(bundleId: number): ServiceCallType; /** * Write acls * * LWM2M path: /1028/{bundleId}/0 * Body converter id: "ReadWriteRights" * @tapVersion(">=1.0") * @param bundleId input * @param rights input * @return void api call */ putAcl(bundleId: number, rights: ReadWriteRights): Promise<Response<void>>; /** * Write acls * * LWM2M path: /1028/{bundleId}/0 * Body converter id: "ReadWriteRights" * @tapVersion(">=1.0") * @param bundleId input * @param rights input * @return call options */ putAclCall(bundleId: number, rights: ReadWriteRights): ServiceCallType; /** * Write data-log period * * LWM2M path: /1028/{bundleId}/2 * Body converter id: "integer_uint32" * @tapVersion(">=1.0") * @param bundleId input * @param value input * @return void api call */ putDataLogPeriod(bundleId: number, value: number): Promise<Response<void>>; /** * Write data-log period * * LWM2M path: /1028/{bundleId}/2 * Body converter id: "integer_uint32" * @tapVersion(">=1.0") * @param bundleId input * @param value input * @return call options */ putDataLogPeriodCall(bundleId: number, value: number): ServiceCallType; /** * Write bundle name * * LWM2M path: /1028/{bundleId}/4 * Body converter id: "string" * @tapVersion(">=1.0") * @param bundleId input * @param name input * @return void api call */ putName(bundleId: number, name: string): Promise<Response<void>>; /** * Write bundle name * * LWM2M path: /1028/{bundleId}/4 * Body converter id: "string" * @tapVersion(">=1.0") * @param bundleId input * @param name input * @return call options */ putNameCall(bundleId: number, name: string): ServiceCallType; }