@formant/data-sdk 1.5.2 → 1.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/data-sdk.cjs.js +2 -2
- package/dist/data-sdk.cjs.js.map +1 -1
- package/dist/data-sdk.es.js +396 -368
- package/dist/data-sdk.es.js.map +1 -1
- package/dist/data-sdk.es6.js +54 -26
- package/dist/data-sdk.umd.js +1 -1
- package/dist/types/data-sdk/src/DataChannel.d.ts +1 -0
- package/dist/types/data-sdk/src/api/createDevice.d.ts +2 -0
- package/dist/types/data-sdk/src/api/getDevicesData.d.ts +2 -0
- package/dist/types/data-sdk/src/api/patchDevice.d.ts +2 -0
- package/dist/types/data-sdk/src/api/queryDevicesData.d.ts +3 -0
- package/dist/types/data-sdk/src/devices/Device.d.ts +8 -3
- package/dist/types/data-sdk/src/main.d.ts +6 -0
- package/package.json +1 -1
|
@@ -13,6 +13,7 @@ export declare class DataChannel {
|
|
|
13
13
|
error: string | undefined;
|
|
14
14
|
decoder: TextDecoder;
|
|
15
15
|
constructor(dataChannel: RTCDataChannel);
|
|
16
|
+
private setReady;
|
|
16
17
|
addOpenListener(listener: DataChannelListener): void;
|
|
17
18
|
removeOpenListener(listener: DataChannelListener): void;
|
|
18
19
|
addCloseListener(listener: DataChannelListener): void;
|
|
@@ -11,13 +11,20 @@ import { SessionType } from "../model/SessionType";
|
|
|
11
11
|
import { Command, ConfigurationDocument, IStartRealtimeConnectionOptions, TelemetryStream } from "./device.types";
|
|
12
12
|
import { BaseDevice } from "./BaseDevice";
|
|
13
13
|
import { ITags } from "../model/ITags";
|
|
14
|
-
import {
|
|
14
|
+
import { createDevice } from "../api/createDevice";
|
|
15
|
+
import { patchDevice } from "../api/patchDevice";
|
|
16
|
+
import { getDevicesData } from "../api/getDevicesData";
|
|
17
|
+
import { queryDevicesData } from "../api/queryDevicesData";
|
|
15
18
|
export declare class Device extends BaseDevice {
|
|
16
19
|
id: string;
|
|
17
20
|
name: string;
|
|
18
21
|
private organizationId;
|
|
19
22
|
tags?: ITags | undefined;
|
|
20
23
|
constructor(id: string, name: string, organizationId: string, tags?: ITags | undefined);
|
|
24
|
+
static createDevice: typeof createDevice;
|
|
25
|
+
static patchDevice: typeof patchDevice;
|
|
26
|
+
static getDevicesData: typeof getDevicesData;
|
|
27
|
+
static queryDevicesData: typeof queryDevicesData;
|
|
21
28
|
getLatestTelemetry(): Promise<any>;
|
|
22
29
|
getConfiguration(): Promise<ConfigurationDocument>;
|
|
23
30
|
getFileUrl(fileId: string): Promise<string[]>;
|
|
@@ -59,6 +66,4 @@ export declare class Device extends BaseDevice {
|
|
|
59
66
|
events: import("../main").IEvent[];
|
|
60
67
|
}[]>;
|
|
61
68
|
createShareLink(share: IShare, view: string): Promise<string | null>;
|
|
62
|
-
createDevice(device: IDevice): Promise<IDevice>;
|
|
63
|
-
patchDevice(id: string, device: Partial<IDevice>): Promise<IDevice>;
|
|
64
69
|
}
|
|
@@ -140,5 +140,11 @@ export * from "./model/IAnalyticsModuleConfiguration";
|
|
|
140
140
|
export * from "./model/IAggregateRow";
|
|
141
141
|
export * from "./model/ISqlRow";
|
|
142
142
|
export * from "./stores/IAuthenticationStore";
|
|
143
|
+
export * from "./model/IAccount";
|
|
144
|
+
export * from "./model/IAccountTree";
|
|
145
|
+
export * from "./model/IDevice";
|
|
146
|
+
export * from "./model/IFleet";
|
|
147
|
+
export * from "./model/IRole";
|
|
148
|
+
export * from "./model/IUser";
|
|
143
149
|
export type { TelemetryResult } from "./model/TelemetryResult";
|
|
144
150
|
import "./init.ts";
|