@formant/data-sdk 0.0.147 → 1.0.0-rc.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/LICENSE.txt +21 -0
- package/README.md +20 -2
- package/dist/data-sdk.es.js +233 -233
- package/dist/data-sdk.umd.js +1 -1
- package/dist/types/data-sdk/src/Device.d.ts +20 -8
- package/dist/types/data-sdk/src/Fleet.d.ts +4 -4
- package/package.json +2 -1
|
@@ -1,19 +1,23 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
+
import { EventEmitter } from "events";
|
|
2
3
|
import { IRtcSendConfiguration, IRtcStreamMessage, IRtcStreamPayload, RtcClient, RtcClientV1 } from "@formant/realtime-sdk";
|
|
4
|
+
import { RtcStreamType } from "@formant/realtime-sdk/dist/model/RtcStreamType";
|
|
3
5
|
import { DataChannel } from "./DataChannel";
|
|
4
6
|
import { CaptureStream } from "./CaptureStream";
|
|
5
7
|
import { Manipulator } from "./Manipulator";
|
|
6
8
|
import { TextRequestDataChannel, BinaryRequestDataChannel } from "./RequestDataChannel";
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
import { IEventQuery } from "./
|
|
12
|
-
import { AggregateLevel } from "./
|
|
13
|
-
import { EventType } from "./
|
|
9
|
+
import { Uuid } from "./model/Uuid";
|
|
10
|
+
import { InterventionType } from "./model/InterventionType";
|
|
11
|
+
import { IInterventionTypeMap } from "./model/IInterventionTypeMap";
|
|
12
|
+
import { IInterventionResponse } from "./model/IInterventionResponse";
|
|
13
|
+
import { IEventQuery } from "./model/IEventQuery";
|
|
14
|
+
import { AggregateLevel } from "./model/AggregateLevel";
|
|
15
|
+
import { EventType } from "./model/EventType";
|
|
14
16
|
import { IShare } from "./model/IShare";
|
|
15
|
-
import { EventEmitter } from "events";
|
|
16
17
|
export interface ConfigurationDocument {
|
|
18
|
+
tags: {
|
|
19
|
+
[key: string]: string;
|
|
20
|
+
};
|
|
17
21
|
urdfFiles: string[];
|
|
18
22
|
telemetry?: {
|
|
19
23
|
streams?: {
|
|
@@ -37,6 +41,7 @@ export interface ConfigurationDocument {
|
|
|
37
41
|
topicType: string;
|
|
38
42
|
}[];
|
|
39
43
|
};
|
|
44
|
+
adapters?: IAdapterConfiguration[];
|
|
40
45
|
}
|
|
41
46
|
export interface Command {
|
|
42
47
|
id: string;
|
|
@@ -59,6 +64,13 @@ export interface TelemetryStream {
|
|
|
59
64
|
name: string;
|
|
60
65
|
onDemand: boolean;
|
|
61
66
|
}
|
|
67
|
+
export interface IAdapterConfiguration {
|
|
68
|
+
id: Uuid;
|
|
69
|
+
name: string;
|
|
70
|
+
fileId: Uuid;
|
|
71
|
+
execCommand: string;
|
|
72
|
+
configuration?: string;
|
|
73
|
+
}
|
|
62
74
|
export type RealtimeMessage = {
|
|
63
75
|
header: {
|
|
64
76
|
created: number;
|
|
@@ -9,7 +9,7 @@ import { PeerDevice } from "./PeerDevice";
|
|
|
9
9
|
import { IDeviceQuery } from "./model/IDeviceQuery";
|
|
10
10
|
import { IStream } from "./model/IStream";
|
|
11
11
|
import { IView } from "./model/IView";
|
|
12
|
-
import { EventType, AggregateLevel, IShare } from "./main";
|
|
12
|
+
import { EventType, AggregateLevel, IShare, IStreamTypeMap, IStreamCurrentValue } from "./main";
|
|
13
13
|
import { IAnalyticsModule } from "./model/IAnalyticsModule";
|
|
14
14
|
import { IStreamColumn } from "./model/IStreamColumn";
|
|
15
15
|
import { ITaskReportColumn } from "./model/ITaskReportColumn";
|
|
@@ -39,13 +39,13 @@ export declare class Fleet {
|
|
|
39
39
|
[key in string]: string[];
|
|
40
40
|
}>;
|
|
41
41
|
static getRealtimeDevices(): Promise<Device[]>;
|
|
42
|
-
static getLatestTelemetry(
|
|
42
|
+
static getLatestTelemetry(...ids: (string | string[])[]): Promise<IStreamCurrentValue<keyof IStreamTypeMap>[]>;
|
|
43
43
|
static getTelemetry(deviceIdOrDeviceIds: string | string[], streamNameOrStreamNames: string | string[], start: Date, end: Date, tags?: {
|
|
44
44
|
[key in string]: string[];
|
|
45
45
|
}): Promise<TelemetryResult[]>;
|
|
46
46
|
static getFileUrl(uuid: string): Promise<string>;
|
|
47
|
-
static queryTelemetry(query: IQuery): Promise<IStreamData<keyof
|
|
48
|
-
static aggregateTelemetry(query: IQuery): Promise<IStreamAggregateData<keyof
|
|
47
|
+
static queryTelemetry(query: IQuery): Promise<IStreamData<keyof IStreamTypeMap>[]>;
|
|
48
|
+
static aggregateTelemetry(query: IQuery): Promise<IStreamAggregateData<keyof IStreamTypeMap>[]>;
|
|
49
49
|
static queryEvents(query: IEventQuery): Promise<IEvent[]>;
|
|
50
50
|
static getEvent(uuid: string): Promise<IEvent>;
|
|
51
51
|
static getInterventions(): Promise<IEvent[]>;
|