@formant/data-sdk 0.0.111 → 0.0.112

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.
@@ -6,6 +6,7 @@ import { IQuery } from "./model/IQuery";
6
6
  import { IStreamAggregateData } from "./model/IStreamAggregateData";
7
7
  import { IStreamData } from "./model/IStreamData";
8
8
  import { PeerDevice } from "./PeerDevice";
9
+ import { IDeviceQuery } from "./model/IDeviceQuery";
9
10
  export interface TelemetryResult {
10
11
  deviceId: string;
11
12
  name: string;
@@ -23,6 +24,7 @@ export declare class Fleet {
23
24
  static getPeerDevice(url: string): Promise<PeerDevice>;
24
25
  static getDevice(deviceId: string): Promise<Device>;
25
26
  static getDevices(): Promise<Device[]>;
27
+ static queryDevices(query: IDeviceQuery): Promise<Device[]>;
26
28
  static getOnlineDevices(): Promise<Device[]>;
27
29
  static getPeers(): Promise<IRtcPeer[]>;
28
30
  static getRealtimeSessions(): Promise<{
@@ -39,4 +41,5 @@ export declare class Fleet {
39
41
  static queryEvents(query: IEventQuery): Promise<IEvent[]>;
40
42
  static getEvent(uuid: string): Promise<IEvent>;
41
43
  static getInterventions(): Promise<IEvent[]>;
44
+ static getCurrentGroup(): Promise<Device[] | undefined>;
42
45
  }
@@ -22,6 +22,7 @@ export * from "./model/eventTypes";
22
22
  export * from "./model/EventType";
23
23
  export * from "./model/healthStatuses";
24
24
  export * from "./model/HealthStatus";
25
+ export * from "./model/IColorRGBA";
25
26
  export * from "./model/HexRgbColor";
26
27
  export * from "./model/IAnnotationAreaTypeMap";
27
28
  export * from "./model/IAnnotation";
@@ -0,0 +1,2 @@
1
+ import { deviceType } from "./deviceTypes";
2
+ export declare type DeviceType = typeof deviceType[number];
@@ -0,0 +1,6 @@
1
+ export interface IColorRGBA {
2
+ r: number;
3
+ g: number;
4
+ b: number;
5
+ a: number;
6
+ }
@@ -0,0 +1,14 @@
1
+ import { ITagSets } from "./ITagSets";
2
+ import { IsoDate } from "./IsoDate";
3
+ import { DeviceType } from "./DeviceType";
4
+ export interface IDeviceQuery {
5
+ name?: string;
6
+ query?: string;
7
+ tags?: ITagSets;
8
+ enabled?: boolean;
9
+ fullyConfigured?: boolean;
10
+ type?: DeviceType;
11
+ count?: number;
12
+ offset?: number;
13
+ disabledBefore?: IsoDate;
14
+ }
@@ -0,0 +1 @@
1
+ export declare const deviceType: readonly ["default", "capture"];
package/package.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "require": "./dist/data-sdk.umd.js"
19
19
  }
20
20
  },
21
- "version": "0.0.111",
21
+ "version": "0.0.112",
22
22
  "scripts": {
23
23
  "dev": "vite --port 9146",
24
24
  "build": "tsc && vite build",