@formant/data-sdk 1.5.4 → 1.7.0
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/dist/data-sdk.cjs.js +2 -2
- package/dist/data-sdk.cjs.js.map +1 -1
- package/dist/data-sdk.es.js +258 -230
- package/dist/data-sdk.es.js.map +1 -1
- package/dist/data-sdk.es6.js +2361 -2285
- package/dist/data-sdk.umd.js +27 -27
- package/dist/types/data-sdk/src/Fleet.d.ts +2 -0
- package/dist/types/data-sdk/src/api/createFleet.d.ts +2 -0
- package/dist/types/data-sdk/src/api/disableDevice.d.ts +2 -0
- package/dist/types/data-sdk/src/devices/Device.d.ts +2 -0
- package/dist/types/data-sdk/src/main.d.ts +1 -0
- package/package.json +3 -1
- /package/dist/types/{common → data-sdk/src/utils}/stringToArrayBuffer.d.ts +0 -0
|
@@ -35,9 +35,11 @@ import { queryAnalytics } from "./api/queryAnalytics";
|
|
|
35
35
|
import { queryDevices } from "./api/queryDevices";
|
|
36
36
|
import { queryEvents } from "./api/queryEvents";
|
|
37
37
|
import { queryTelemetry } from "./api/queryTelemetry";
|
|
38
|
+
import { createFleet } from "./api/createFleet";
|
|
38
39
|
export declare class Fleet {
|
|
39
40
|
static defaultDeviceId: string | undefined;
|
|
40
41
|
static knownContext: WeakRef<Device>[];
|
|
42
|
+
static createFleet: typeof createFleet;
|
|
41
43
|
static listFleets: typeof listFleets;
|
|
42
44
|
static getFleet: typeof getFleet;
|
|
43
45
|
static patchFleet: typeof patchFleet;
|
|
@@ -15,6 +15,7 @@ import { createDevice } from "../api/createDevice";
|
|
|
15
15
|
import { patchDevice } from "../api/patchDevice";
|
|
16
16
|
import { getDevicesData } from "../api/getDevicesData";
|
|
17
17
|
import { queryDevicesData } from "../api/queryDevicesData";
|
|
18
|
+
import { disableDevice } from "../api/disableDevice";
|
|
18
19
|
export declare class Device extends BaseDevice {
|
|
19
20
|
id: string;
|
|
20
21
|
name: string;
|
|
@@ -25,6 +26,7 @@ export declare class Device extends BaseDevice {
|
|
|
25
26
|
static patchDevice: typeof patchDevice;
|
|
26
27
|
static getDevicesData: typeof getDevicesData;
|
|
27
28
|
static queryDevicesData: typeof queryDevicesData;
|
|
29
|
+
static disableDevice: typeof disableDevice;
|
|
28
30
|
getLatestTelemetry(): Promise<any>;
|
|
29
31
|
getConfiguration(): Promise<ConfigurationDocument>;
|
|
30
32
|
getFileUrl(fileId: string): Promise<string[]>;
|
|
@@ -146,5 +146,6 @@ export * from "./model/IDevice";
|
|
|
146
146
|
export * from "./model/IFleet";
|
|
147
147
|
export * from "./model/IRole";
|
|
148
148
|
export * from "./model/IUser";
|
|
149
|
+
export * from "./utils/timeout";
|
|
149
150
|
export type { TelemetryResult } from "./model/TelemetryResult";
|
|
150
151
|
import "./init.ts";
|
package/package.json
CHANGED
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
|
-
"version": "1.
|
|
27
|
+
"version": "1.7.0",
|
|
28
28
|
"scripts": {
|
|
29
29
|
"preversion": "npm run verify",
|
|
30
30
|
"postversion": "make",
|
|
@@ -47,6 +47,7 @@
|
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"@formant/realtime-sdk": "0.0.20",
|
|
50
|
+
"@types/base-64": "^1.0.0",
|
|
50
51
|
"@types/node": "^18.16.3",
|
|
51
52
|
"@types/pako": "^2.0.0",
|
|
52
53
|
"@vitest/coverage-c8": "^0.30.1",
|
|
@@ -61,6 +62,7 @@
|
|
|
61
62
|
},
|
|
62
63
|
"types": "./dist/types/data-sdk/src/main.d.ts",
|
|
63
64
|
"dependencies": {
|
|
65
|
+
"base-64": "^1.0.0",
|
|
64
66
|
"base64-js": "^1.5.1",
|
|
65
67
|
"date-fns": "^2.30.0",
|
|
66
68
|
"eventemitter3": "^5.0.1",
|
|
File without changes
|