@formant/data-sdk 0.0.141 → 0.0.142
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/types/common/browser.d.ts +2 -0
- package/dist/types/common/defined.d.ts +3 -0
- package/dist/types/common/delay.d.ts +1 -0
- package/dist/types/common/duration.d.ts +10 -0
- package/dist/types/common/fork.d.ts +5 -0
- package/dist/types/common/stringToArrayBuffer.d.ts +1 -0
- package/dist/types/data-sdk/src/App.d.ts +131 -0
- package/dist/types/data-sdk/src/AudioPlayer.d.ts +22 -0
- package/dist/types/data-sdk/src/Authentication.d.ts +52 -0
- package/dist/types/data-sdk/src/CaptureStream.d.ts +18 -0
- package/dist/types/data-sdk/src/DataChannel.d.ts +29 -0
- package/dist/types/data-sdk/src/Device.d.ts +157 -0
- package/dist/types/data-sdk/src/Fleet.d.ts +204 -0
- package/dist/types/data-sdk/src/KeyValue.d.ts +6 -0
- package/dist/types/data-sdk/src/Manipulator.d.ts +20 -0
- package/dist/types/data-sdk/src/PeerDevice.d.ts +37 -0
- package/dist/types/data-sdk/src/RequestDataChannel.d.ts +29 -0
- package/dist/types/data-sdk/src/cache/StoreCache.d.ts +17 -0
- package/dist/types/data-sdk/src/cache/filterDataByTime.d.ts +2 -0
- package/dist/types/data-sdk/src/cache/filterDataByType.d.ts +3 -0
- package/dist/types/data-sdk/src/cache/queryStore.d.ts +11 -0
- package/dist/types/data-sdk/src/config.d.ts +1 -0
- package/dist/types/data-sdk/src/main.d.ts +131 -0
- package/dist/types/data-sdk/src/model/AccessLevel.d.ts +5 -0
- package/dist/types/data-sdk/src/model/AggregateLevel.d.ts +1 -0
- package/dist/types/data-sdk/src/model/AnalyticsAggregateType.d.ts +2 -0
- package/dist/types/data-sdk/src/model/AnalyticsChartType.d.ts +2 -0
- package/dist/types/data-sdk/src/model/AnnotationAreaType.d.ts +2 -0
- package/dist/types/data-sdk/src/model/AnnotationType.d.ts +2 -0
- package/dist/types/data-sdk/src/model/DeviceType.d.ts +2 -0
- package/dist/types/data-sdk/src/model/EventSortableColumn.d.ts +1 -0
- package/dist/types/data-sdk/src/model/EventType.d.ts +2 -0
- package/dist/types/data-sdk/src/model/HealthStatus.d.ts +2 -0
- package/dist/types/data-sdk/src/model/HexRgbColor.d.ts +1 -0
- package/dist/types/data-sdk/src/model/IAggregateRow.d.ts +8 -0
- package/dist/types/data-sdk/src/model/IAnalyticsModule.d.ts +15 -0
- package/dist/types/data-sdk/src/model/IAnalyticsModuleConfiguration.d.ts +6 -0
- package/dist/types/data-sdk/src/model/IAnnotation.d.ts +13 -0
- package/dist/types/data-sdk/src/model/IAnnotationAreaTypeMap.d.ts +4 -0
- package/dist/types/data-sdk/src/model/IAnnotationQuery.d.ts +7 -0
- package/dist/types/data-sdk/src/model/IBaseEntity.d.ts +7 -0
- package/dist/types/data-sdk/src/model/IBaseEvent.d.ts +19 -0
- package/dist/types/data-sdk/src/model/IBattery.d.ts +6 -0
- package/dist/types/data-sdk/src/model/IBitset.d.ts +4 -0
- package/dist/types/data-sdk/src/model/IBoundingBox.d.ts +6 -0
- package/dist/types/data-sdk/src/model/IColorRGBA.d.ts +6 -0
- package/dist/types/data-sdk/src/model/ICommandDeliveryEvent.d.ts +3 -0
- package/dist/types/data-sdk/src/model/ICommandEventBase.d.ts +5 -0
- package/dist/types/data-sdk/src/model/ICommandParameter.d.ts +9 -0
- package/dist/types/data-sdk/src/model/ICommandRequest.d.ts +9 -0
- package/dist/types/data-sdk/src/model/ICommandRequestEvent.d.ts +5 -0
- package/dist/types/data-sdk/src/model/ICommandResponse.d.ts +13 -0
- package/dist/types/data-sdk/src/model/ICommandResponseEvent.d.ts +3 -0
- package/dist/types/data-sdk/src/model/IComment.d.ts +7 -0
- package/dist/types/data-sdk/src/model/IConfigurationMap.d.ts +3 -0
- package/dist/types/data-sdk/src/model/ICustomEvent.d.ts +5 -0
- package/dist/types/data-sdk/src/model/IDataAggregate.d.ts +7 -0
- package/dist/types/data-sdk/src/model/IDataPoint.d.ts +7 -0
- package/dist/types/data-sdk/src/model/IDeviceQuery.d.ts +14 -0
- package/dist/types/data-sdk/src/model/IEvent.d.ts +12 -0
- package/dist/types/data-sdk/src/model/IEventFilter.d.ts +19 -0
- package/dist/types/data-sdk/src/model/IEventQuery.d.ts +7 -0
- package/dist/types/data-sdk/src/model/IEventSort.d.ts +6 -0
- package/dist/types/data-sdk/src/model/IFieldParametersTypeMap.d.ts +8 -0
- package/dist/types/data-sdk/src/model/IFile.d.ts +6 -0
- package/dist/types/data-sdk/src/model/IFileInfo.d.ts +6 -0
- package/dist/types/data-sdk/src/model/IFilter.d.ts +10 -0
- package/dist/types/data-sdk/src/model/IGoal.d.ts +5 -0
- package/dist/types/data-sdk/src/model/IGoalID.d.ts +3 -0
- package/dist/types/data-sdk/src/model/IHealth.d.ts +4 -0
- package/dist/types/data-sdk/src/model/IImage.d.ts +6 -0
- package/dist/types/data-sdk/src/model/IImageAnnotation.d.ts +9 -0
- package/dist/types/data-sdk/src/model/IInterventionRequest.d.ts +9 -0
- package/dist/types/data-sdk/src/model/IInterventionResponse.d.ts +10 -0
- package/dist/types/data-sdk/src/model/IInterventionTypeMap.d.ts +20 -0
- package/dist/types/data-sdk/src/model/ILabel.d.ts +4 -0
- package/dist/types/data-sdk/src/model/ILabeledPolygon.d.ts +4 -0
- package/dist/types/data-sdk/src/model/ILabelingRequestData.d.ts +8 -0
- package/dist/types/data-sdk/src/model/ILabelingResponseData.d.ts +4 -0
- package/dist/types/data-sdk/src/model/ILocalization.d.ts +14 -0
- package/dist/types/data-sdk/src/model/ILocation.d.ts +6 -0
- package/dist/types/data-sdk/src/model/IMap.d.ts +10 -0
- package/dist/types/data-sdk/src/model/INumericAggregate.d.ts +7 -0
- package/dist/types/data-sdk/src/model/INumericSetAggregateMap.d.ts +5 -0
- package/dist/types/data-sdk/src/model/INumericSetEntry.d.ts +5 -0
- package/dist/types/data-sdk/src/model/IOdometry.d.ts +7 -0
- package/dist/types/data-sdk/src/model/IPath.d.ts +5 -0
- package/dist/types/data-sdk/src/model/IPointCloud.d.ts +6 -0
- package/dist/types/data-sdk/src/model/IPortForwardingSessionRecord.d.ts +3 -0
- package/dist/types/data-sdk/src/model/IQuaternion.d.ts +6 -0
- package/dist/types/data-sdk/src/model/IQuery.d.ts +9 -0
- package/dist/types/data-sdk/src/model/IRtcSessionRecord.d.ts +9 -0
- package/dist/types/data-sdk/src/model/IScopeFilter.d.ts +6 -0
- package/dist/types/data-sdk/src/model/ISelectionRequestData.d.ts +6 -0
- package/dist/types/data-sdk/src/model/ISelectionResponseData.d.ts +3 -0
- package/dist/types/data-sdk/src/model/IShare.d.ts +16 -0
- package/dist/types/data-sdk/src/model/ISheetParameters.d.ts +5 -0
- package/dist/types/data-sdk/src/model/ISpreadsheetIdRange.d.ts +4 -0
- package/dist/types/data-sdk/src/model/ISqlColumn.d.ts +6 -0
- package/dist/types/data-sdk/src/model/ISqlQuery.d.ts +21 -0
- package/dist/types/data-sdk/src/model/ISqlResult.d.ts +12 -0
- package/dist/types/data-sdk/src/model/ISqlRow.d.ts +5 -0
- package/dist/types/data-sdk/src/model/IStream.d.ts +18 -0
- package/dist/types/data-sdk/src/model/IStreamAggregateData.d.ts +11 -0
- package/dist/types/data-sdk/src/model/IStreamAggregateTypeMap.d.ts +10 -0
- package/dist/types/data-sdk/src/model/IStreamColumn.d.ts +7 -0
- package/dist/types/data-sdk/src/model/IStreamCurrentValue.d.ts +13 -0
- package/dist/types/data-sdk/src/model/IStreamData.d.ts +11 -0
- package/dist/types/data-sdk/src/model/IStreamTypeMap.d.ts +27 -0
- package/dist/types/data-sdk/src/model/ISystemEvent.d.ts +3 -0
- package/dist/types/data-sdk/src/model/ITagParameters.d.ts +3 -0
- package/dist/types/data-sdk/src/model/ITagSets.d.ts +3 -0
- package/dist/types/data-sdk/src/model/ITaggedUsers.d.ts +4 -0
- package/dist/types/data-sdk/src/model/ITags.d.ts +3 -0
- package/dist/types/data-sdk/src/model/ITaskReportColumn.d.ts +7 -0
- package/dist/types/data-sdk/src/model/ITeleopRequestData.d.ts +3 -0
- package/dist/types/data-sdk/src/model/ITeleopResponseData.d.ts +4 -0
- package/dist/types/data-sdk/src/model/ITeleopSessionRecord.d.ts +3 -0
- package/dist/types/data-sdk/src/model/ITransform.d.ts +6 -0
- package/dist/types/data-sdk/src/model/ITransformNode.d.ts +7 -0
- package/dist/types/data-sdk/src/model/ITriggeredEvent.d.ts +10 -0
- package/dist/types/data-sdk/src/model/ITwist.d.ts +5 -0
- package/dist/types/data-sdk/src/model/IUserParameters.d.ts +4 -0
- package/dist/types/data-sdk/src/model/IVector3.d.ts +5 -0
- package/dist/types/data-sdk/src/model/IVideo.d.ts +7 -0
- package/dist/types/data-sdk/src/model/IView.d.ts +15 -0
- package/dist/types/data-sdk/src/model/InterventionType.d.ts +2 -0
- package/dist/types/data-sdk/src/model/IsoDate.d.ts +1 -0
- package/dist/types/data-sdk/src/model/JsonSchema.d.ts +39 -0
- package/dist/types/data-sdk/src/model/Severity.d.ts +2 -0
- package/dist/types/data-sdk/src/model/SortOrder.d.ts +1 -0
- package/dist/types/data-sdk/src/model/StreamType.d.ts +2 -0
- package/dist/types/data-sdk/src/model/Timestamp.d.ts +1 -0
- package/dist/types/data-sdk/src/model/Uuid.d.ts +1 -0
- package/dist/types/data-sdk/src/model/VideoMimeType.d.ts +2 -0
- package/dist/types/data-sdk/src/model/accessLevels.d.ts +1 -0
- package/dist/types/data-sdk/src/model/aggregateLevels.d.ts +2 -0
- package/dist/types/data-sdk/src/model/analyticsAggregteTypes.d.ts +1 -0
- package/dist/types/data-sdk/src/model/analyticsChartTypes.d.ts +1 -0
- package/dist/types/data-sdk/src/model/annotationTypes.d.ts +1 -0
- package/dist/types/data-sdk/src/model/deviceTypes.d.ts +1 -0
- package/dist/types/data-sdk/src/model/eventTypes.d.ts +1 -0
- package/dist/types/data-sdk/src/model/healthStatuses.d.ts +1 -0
- package/dist/types/data-sdk/src/model/interventionTypes.d.ts +1 -0
- package/dist/types/data-sdk/src/model/severities.d.ts +1 -0
- package/dist/types/data-sdk/src/model/videoMimeTypes.d.ts +1 -0
- package/dist/types/data-sdk/src/utils/aggregateFunctionUtils.d.ts +28 -0
- package/dist/types/data-sdk/src/utils/index.d.ts +4 -0
- package/dist/types/data-sdk/src/utils/numericAggregateUtils.d.ts +24 -0
- package/dist/types/data-sdk/src/utils/serializeHash.d.ts +2 -0
- package/dist/types/data-sdk/src/utils/timeout.d.ts +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { RtcClient } from "@formant/realtime-sdk";
|
|
2
|
+
import { DataChannel } from "./DataChannel";
|
|
3
|
+
import { Manipulator } from "./Manipulator";
|
|
4
|
+
import { TextRequestDataChannel, BinaryRequestDataChannel } from "./RequestDataChannel";
|
|
5
|
+
import { ConfigurationDocument, IRealtimeDevice, RealtimeDataStream, RealtimeListener, RealtimeVideoStream } from "./Device";
|
|
6
|
+
import { IStreamCurrentValue } from "./model/IStreamCurrentValue";
|
|
7
|
+
import { IRtcPeer } from "@formant/realtime-sdk/dist/model/IRtcPeer";
|
|
8
|
+
export declare class PeerDevice implements IRealtimeDevice {
|
|
9
|
+
peerUrl: string;
|
|
10
|
+
rtcClient: RtcClient | undefined;
|
|
11
|
+
remoteDevicePeerId: string | undefined;
|
|
12
|
+
realtimeListeners: RealtimeListener[];
|
|
13
|
+
id: string;
|
|
14
|
+
constructor(peerUrl: string);
|
|
15
|
+
getLatestTelemetry(): Promise<IStreamCurrentValue[]>;
|
|
16
|
+
getDeviceId(): Promise<string>;
|
|
17
|
+
getConfiguration(): Promise<ConfigurationDocument>;
|
|
18
|
+
private handleMessage;
|
|
19
|
+
getRealtimeStatus(): "disconnected" | "connecting" | "connected";
|
|
20
|
+
getRealtimePing(): number | undefined;
|
|
21
|
+
startRealtimeConnection(sessionType?: number): Promise<void>;
|
|
22
|
+
addRealtimeListener(listener: RealtimeListener): void;
|
|
23
|
+
removeRealtimeListener(listener: RealtimeListener): void;
|
|
24
|
+
getRealtimeVideoStreams(): Promise<RealtimeVideoStream[]>;
|
|
25
|
+
getRealtimeManipulators(): Promise<Manipulator[]>;
|
|
26
|
+
startListeningToRealtimeVideo(stream: RealtimeVideoStream): Promise<void>;
|
|
27
|
+
stopListeningToRealtimeVideo(stream: RealtimeVideoStream): Promise<void>;
|
|
28
|
+
startListeningToRealtimeDataStream(stream: RealtimeDataStream): Promise<void>;
|
|
29
|
+
stopListeningToRealtimeDataStream(stream: RealtimeDataStream): Promise<void>;
|
|
30
|
+
enableRealtimeTelemetryPriorityIngestion(streamName: string): Promise<void>;
|
|
31
|
+
disableRealtimeTelemetryPriorityIngestion(streamName: string): Promise<void>;
|
|
32
|
+
getRemotePeer(): Promise<IRtcPeer>;
|
|
33
|
+
stopRealtimeConnection(): Promise<void>;
|
|
34
|
+
createCustomDataChannel(channelName: string, rtcConfig?: RTCDataChannelInit): Promise<DataChannel>;
|
|
35
|
+
createCustomRequestDataChannel(channelName: string, timeout?: number): TextRequestDataChannel;
|
|
36
|
+
createCustomBinaryRequestDataChannel(channelName: string, timeout?: number): BinaryRequestDataChannel;
|
|
37
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { DataChannel, DataChannelErrorListener, DataChannelListener } from "./main";
|
|
2
|
+
import { IRealtimeDevice } from "./Device";
|
|
3
|
+
declare abstract class RequestDataChannel {
|
|
4
|
+
protected device: IRealtimeDevice;
|
|
5
|
+
protected channel_name: string;
|
|
6
|
+
protected timeout: number;
|
|
7
|
+
protected channel: undefined | DataChannel;
|
|
8
|
+
protected requestIdToResponseMap: Map<string, any>;
|
|
9
|
+
constructor(device: IRealtimeDevice, channel_name: string, timeout: number);
|
|
10
|
+
addOpenListener(listener: DataChannelListener): void;
|
|
11
|
+
removeOpenListener(listener: DataChannelListener): void;
|
|
12
|
+
addCloseListener(listener: DataChannelListener): void;
|
|
13
|
+
removeCloseListener(listener: DataChannelListener): void;
|
|
14
|
+
addErrorListener(listener: DataChannelErrorListener): void;
|
|
15
|
+
removeErrorListener(listener: DataChannelErrorListener): void;
|
|
16
|
+
}
|
|
17
|
+
export declare class BinaryRequestDataChannel extends RequestDataChannel {
|
|
18
|
+
private RESPONSE_SUCCESS_BYTE;
|
|
19
|
+
private decoder;
|
|
20
|
+
generateBinaryId(): Uint8Array;
|
|
21
|
+
initialize(): Promise<void>;
|
|
22
|
+
request(data: Uint8Array): Promise<any>;
|
|
23
|
+
}
|
|
24
|
+
export declare class TextRequestDataChannel extends RequestDataChannel {
|
|
25
|
+
generateTextId(): string;
|
|
26
|
+
initialize(): Promise<void>;
|
|
27
|
+
request(data: string): Promise<any>;
|
|
28
|
+
}
|
|
29
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare class StoreCache<Key, Value> {
|
|
2
|
+
private entries;
|
|
3
|
+
private metadata;
|
|
4
|
+
private capacity;
|
|
5
|
+
private timeout;
|
|
6
|
+
constructor({ capacity, timeout, }?: {
|
|
7
|
+
capacity?: number;
|
|
8
|
+
timeout?: number;
|
|
9
|
+
});
|
|
10
|
+
get(key: Key, generator?: () => Promise<Value>): Value | undefined;
|
|
11
|
+
set(key: Key, value: Value): void;
|
|
12
|
+
clear(): void;
|
|
13
|
+
clearKey(key: string): void;
|
|
14
|
+
private keyToCacheKey;
|
|
15
|
+
private deleteOldestEntry;
|
|
16
|
+
private generate;
|
|
17
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IStreamData } from "../model/IStreamData";
|
|
2
|
+
import { StreamType } from "../model/StreamType";
|
|
3
|
+
import { IFilter } from "../model/IFilter";
|
|
4
|
+
export declare class QueryStore {
|
|
5
|
+
private queryStoreCache;
|
|
6
|
+
private liveQueryStoreCache;
|
|
7
|
+
moduleQuery(filter: IFilter, name: string[], type: StreamType[], start: Date, end: Date, latestOnly?: boolean): IStreamData[] | "too much data" | undefined;
|
|
8
|
+
query(filter: IFilter, start: Date, end: Date, latestOnly?: boolean): IStreamData[] | "too much data" | undefined;
|
|
9
|
+
private queryCache;
|
|
10
|
+
private liveQueryCache;
|
|
11
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare let FORMANT_API_URL: string;
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
export * from "./Fleet";
|
|
2
|
+
export * from "./Authentication";
|
|
3
|
+
export * from "./Device";
|
|
4
|
+
export * from "./PeerDevice";
|
|
5
|
+
export * from "./DataChannel";
|
|
6
|
+
export * from "./CaptureStream";
|
|
7
|
+
export * from "./Manipulator";
|
|
8
|
+
export * from "./RequestDataChannel";
|
|
9
|
+
export * from "./App";
|
|
10
|
+
export * from "./KeyValue";
|
|
11
|
+
export * from "./utils";
|
|
12
|
+
export * from "./AudioPlayer";
|
|
13
|
+
export * from "./model/accessLevels";
|
|
14
|
+
export * from "./model/AccessLevel";
|
|
15
|
+
export * from "./model/aggregateLevels";
|
|
16
|
+
export * from "./model/AggregateLevel";
|
|
17
|
+
export * from "./model/AnnotationAreaType";
|
|
18
|
+
export * from "./model/annotationTypes";
|
|
19
|
+
export * from "./model/AnnotationType";
|
|
20
|
+
export * from "./model/EventSortableColumn";
|
|
21
|
+
export * from "./model/eventTypes";
|
|
22
|
+
export * from "./model/EventType";
|
|
23
|
+
export * from "./model/healthStatuses";
|
|
24
|
+
export * from "./model/HealthStatus";
|
|
25
|
+
export * from "./model/IColorRGBA";
|
|
26
|
+
export * from "./model/HexRgbColor";
|
|
27
|
+
export * from "./model/IAnnotationAreaTypeMap";
|
|
28
|
+
export * from "./model/IAnnotation";
|
|
29
|
+
export * from "./model/IBaseEntity";
|
|
30
|
+
export * from "./model/IBaseEvent";
|
|
31
|
+
export * from "./model/IBattery";
|
|
32
|
+
export * from "./model/IBitset";
|
|
33
|
+
export * from "./model/IBoundingBox";
|
|
34
|
+
export * from "./model/ICommandDeliveryEvent";
|
|
35
|
+
export * from "./model/ICommandEventBase";
|
|
36
|
+
export * from "./model/ICommandParameter";
|
|
37
|
+
export * from "./model/ICommandRequestEvent";
|
|
38
|
+
export * from "./model/ICommandRequest";
|
|
39
|
+
export * from "./model/ICommandResponseEvent";
|
|
40
|
+
export * from "./model/ICommandResponse";
|
|
41
|
+
export * from "./model/IComment";
|
|
42
|
+
export * from "./model/IConfigurationMap";
|
|
43
|
+
export * from "./model/ICustomEvent";
|
|
44
|
+
export * from "./model/IDataAggregate";
|
|
45
|
+
export * from "./model/IDataPoint";
|
|
46
|
+
export * from "./model/IEventFilter";
|
|
47
|
+
export * from "./model/IEventQuery";
|
|
48
|
+
export * from "./model/IEventSort";
|
|
49
|
+
export * from "./model/IEvent";
|
|
50
|
+
export * from "./model/IFieldParametersTypeMap";
|
|
51
|
+
export * from "./model/IFileInfo";
|
|
52
|
+
export * from "./model/IFile";
|
|
53
|
+
export * from "./model/IFilter";
|
|
54
|
+
export * from "./model/IGoalID";
|
|
55
|
+
export * from "./model/IGoal";
|
|
56
|
+
export * from "./model/IHealth";
|
|
57
|
+
export * from "./model/IImageAnnotation";
|
|
58
|
+
export * from "./model/IImage";
|
|
59
|
+
export * from "./model/IInterventionRequest";
|
|
60
|
+
export * from "./model/IInterventionResponse";
|
|
61
|
+
export * from "./model/IInterventionTypeMap";
|
|
62
|
+
export * from "./model/ILabeledPolygon";
|
|
63
|
+
export * from "./model/ILabelingRequestData";
|
|
64
|
+
export * from "./model/ILabelingResponseData";
|
|
65
|
+
export * from "./model/ILabel";
|
|
66
|
+
export * from "./model/ILocalization";
|
|
67
|
+
export * from "./model/ILocation";
|
|
68
|
+
export * from "./model/IMap";
|
|
69
|
+
export * from "./model/interventionTypes";
|
|
70
|
+
export * from "./model/InterventionType";
|
|
71
|
+
export * from "./model/INumericSetEntry";
|
|
72
|
+
export * from "./model/INumericSetAggregateMap";
|
|
73
|
+
export * from "./model/INumericAggregate";
|
|
74
|
+
export * from "./model/IOdometry";
|
|
75
|
+
export * from "./model/IPath";
|
|
76
|
+
export * from "./model/IPointCloud";
|
|
77
|
+
export * from "./model/IPortForwardingSessionRecord";
|
|
78
|
+
export * from "./model/IQuaternion";
|
|
79
|
+
export * from "./model/IQuery";
|
|
80
|
+
export * from "./model/IRtcSessionRecord";
|
|
81
|
+
export * from "./model/ISelectionRequestData";
|
|
82
|
+
export * from "./model/ISelectionResponseData";
|
|
83
|
+
export * from "./model/ISheetParameters";
|
|
84
|
+
export * from "./model/IsoDate";
|
|
85
|
+
export * from "./model/ISpreadsheetIdRange";
|
|
86
|
+
export * from "./model/IStreamAggregateData";
|
|
87
|
+
export * from "./model/IStreamAggregateTypeMap";
|
|
88
|
+
export * from "./model/IStreamData";
|
|
89
|
+
export * from "./model/IStreamTypeMap";
|
|
90
|
+
export * from "./model/IStreamCurrentValue";
|
|
91
|
+
export * from "./model/ISystemEvent";
|
|
92
|
+
export * from "./model/ITaggedUsers";
|
|
93
|
+
export * from "./model/ITagParameters";
|
|
94
|
+
export * from "./model/ITagSets";
|
|
95
|
+
export * from "./model/ITags";
|
|
96
|
+
export * from "./model/ITeleopRequestData";
|
|
97
|
+
export * from "./model/ITeleopResponseData";
|
|
98
|
+
export * from "./model/ITeleopSessionRecord";
|
|
99
|
+
export * from "./model/ITransformNode";
|
|
100
|
+
export * from "./model/ITransform";
|
|
101
|
+
export * from "./model/ITriggeredEvent";
|
|
102
|
+
export * from "./model/ITwist";
|
|
103
|
+
export * from "./model/IUserParameters";
|
|
104
|
+
export * from "./model/IVector3";
|
|
105
|
+
export * from "./model/IVideo";
|
|
106
|
+
export * from "./model/severities";
|
|
107
|
+
export * from "./model/Severity";
|
|
108
|
+
export * from "./model/SortOrder";
|
|
109
|
+
export * from "./model/StreamType";
|
|
110
|
+
export * from "./model/Timestamp";
|
|
111
|
+
export * from "./model/Uuid";
|
|
112
|
+
export * from "./model/videoMimeTypes";
|
|
113
|
+
export * from "./model/VideoMimeType";
|
|
114
|
+
export * from "./model/IDeviceQuery";
|
|
115
|
+
export * from "./model/IAnnotationQuery";
|
|
116
|
+
export * from "./model/IStream";
|
|
117
|
+
export { IRtcSendConfiguration, IRtcStreamMessage, IRtcStreamPayload, } from "@formant/realtime-sdk";
|
|
118
|
+
export * from "./model/JsonSchema";
|
|
119
|
+
export * from "./utils/aggregateFunctionUtils";
|
|
120
|
+
export * from "./model/IStreamColumn";
|
|
121
|
+
export * from "./model/IAnalyticsModule";
|
|
122
|
+
export * from "./model/ITaskReportColumn";
|
|
123
|
+
export * from "./model/IView";
|
|
124
|
+
export * from "./model/IShare";
|
|
125
|
+
export * from "./model/ISqlQuery";
|
|
126
|
+
export * from "./model/IScopeFilter";
|
|
127
|
+
export * from "./model/ISqlColumn";
|
|
128
|
+
export * from "./model/ISqlResult";
|
|
129
|
+
export * from "./model/IAnalyticsModuleConfiguration";
|
|
130
|
+
export * from "./model/IAggregateRow";
|
|
131
|
+
export * from "./model/ISqlRow";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { accessLevels } from "./accessLevels";
|
|
2
|
+
export type AccessLevel = typeof accessLevels[number];
|
|
3
|
+
export declare const viewer: "viewer" | "operator" | "administrator";
|
|
4
|
+
export declare const operator: "viewer" | "operator" | "administrator";
|
|
5
|
+
export declare const administrator: "viewer" | "operator" | "administrator";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type AggregateLevel = "year" | "month" | "week" | "day" | "12 hours" | "4 hours" | "hour" | "30 minutes" | "5 minutes" | "minute" | "30 seconds" | "5 seconds" | "second" | "quarter";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type EventSortableColumn = "device.name" | "time";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type HexRgbColor = string;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { IBaseEntity } from "./IBaseEntity";
|
|
2
|
+
import { Uuid } from "./Uuid";
|
|
3
|
+
import { ISqlQuery } from "./ISqlQuery";
|
|
4
|
+
import { IAnalyticsModuleConfiguration } from "./IAnalyticsModuleConfiguration";
|
|
5
|
+
export interface IAnalyticsModule extends IBaseEntity {
|
|
6
|
+
id?: Uuid;
|
|
7
|
+
organizationId?: Uuid;
|
|
8
|
+
name: string;
|
|
9
|
+
query: ISqlQuery | null;
|
|
10
|
+
configuration: IAnalyticsModuleConfiguration | null;
|
|
11
|
+
layout: any | null;
|
|
12
|
+
data: any[] | null;
|
|
13
|
+
streamIds: Uuid[];
|
|
14
|
+
fullscreen?: boolean;
|
|
15
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IBaseEvent } from "./IBaseEvent";
|
|
2
|
+
import { IsoDate } from "./IsoDate";
|
|
3
|
+
import { ISpreadsheetIdRange } from "./ISpreadsheetIdRange";
|
|
4
|
+
import { ITaggedUsers } from "./ITaggedUsers";
|
|
5
|
+
import { Uuid } from "./Uuid";
|
|
6
|
+
export interface IAnnotation extends IBaseEvent<"annotation"> {
|
|
7
|
+
editedAt?: IsoDate;
|
|
8
|
+
userId: Uuid;
|
|
9
|
+
annotationTemplateId: Uuid;
|
|
10
|
+
taggedUsers?: ITaggedUsers | null;
|
|
11
|
+
publishedTo?: ISpreadsheetIdRange;
|
|
12
|
+
note?: string | null;
|
|
13
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { EventType } from "./EventType";
|
|
2
|
+
import { IBaseEntity } from "./IBaseEntity";
|
|
3
|
+
import { IsoDate } from "./IsoDate";
|
|
4
|
+
import { ITags } from "./ITags";
|
|
5
|
+
import { StreamType } from "./StreamType";
|
|
6
|
+
import { Uuid } from "./Uuid";
|
|
7
|
+
export interface IBaseEvent<T extends EventType = EventType> extends IBaseEntity {
|
|
8
|
+
type?: T;
|
|
9
|
+
organizationId?: Uuid;
|
|
10
|
+
time: IsoDate;
|
|
11
|
+
endTime?: IsoDate | null;
|
|
12
|
+
message: string;
|
|
13
|
+
viewed?: boolean;
|
|
14
|
+
deviceId?: Uuid;
|
|
15
|
+
streamName?: string;
|
|
16
|
+
streamType?: StreamType;
|
|
17
|
+
tags?: ITags;
|
|
18
|
+
notificationEnabled?: boolean;
|
|
19
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IConfigurationMap } from "./IConfigurationMap";
|
|
2
|
+
import { IFileInfo } from "./IFileInfo";
|
|
3
|
+
import { IsoDate } from "./IsoDate";
|
|
4
|
+
export interface ICommandParameter {
|
|
5
|
+
value?: string;
|
|
6
|
+
meta?: IConfigurationMap;
|
|
7
|
+
scrubberTime: IsoDate;
|
|
8
|
+
files?: IFileInfo[];
|
|
9
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IsoDate } from "./IsoDate";
|
|
2
|
+
import { ITags } from "./ITags";
|
|
3
|
+
import { StreamType } from "./StreamType";
|
|
4
|
+
import { Uuid } from "./Uuid";
|
|
5
|
+
export interface ICommandResponse {
|
|
6
|
+
time: IsoDate;
|
|
7
|
+
message: string;
|
|
8
|
+
success: boolean;
|
|
9
|
+
replyToCommandRequestId: Uuid;
|
|
10
|
+
streamName?: string;
|
|
11
|
+
streamType?: StreamType;
|
|
12
|
+
tags?: ITags;
|
|
13
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IStreamAggregateTypeMap } from "./IStreamAggregateTypeMap";
|
|
2
|
+
import { StreamType } from "./StreamType";
|
|
3
|
+
import { Timestamp } from "./Timestamp";
|
|
4
|
+
export type IDataAggregate<T extends StreamType = StreamType> = [
|
|
5
|
+
Timestamp,
|
|
6
|
+
IStreamAggregateTypeMap[T]
|
|
7
|
+
];
|
|
@@ -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,12 @@
|
|
|
1
|
+
import { IAnnotation } from "./IAnnotation";
|
|
2
|
+
import { ICommandDeliveryEvent } from "./ICommandDeliveryEvent";
|
|
3
|
+
import { ICommandRequestEvent } from "./ICommandRequestEvent";
|
|
4
|
+
import { ICommandResponseEvent } from "./ICommandResponseEvent";
|
|
5
|
+
import { IComment } from "./IComment";
|
|
6
|
+
import { ICustomEvent } from "./ICustomEvent";
|
|
7
|
+
import { IInterventionRequest } from "./IInterventionRequest";
|
|
8
|
+
import { IPortForwardingSessionRecord } from "./IPortForwardingSessionRecord";
|
|
9
|
+
import { ISystemEvent } from "./ISystemEvent";
|
|
10
|
+
import { ITeleopSessionRecord } from "./ITeleopSessionRecord";
|
|
11
|
+
import { ITriggeredEvent } from "./ITriggeredEvent";
|
|
12
|
+
export type IEvent = ITriggeredEvent | IInterventionRequest | ITeleopSessionRecord | IPortForwardingSessionRecord | ICommandRequestEvent | ICommandResponseEvent | ICommandDeliveryEvent | ICustomEvent | IComment | ISystemEvent | IAnnotation;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { EventType } from "./EventType";
|
|
2
|
+
import { IFilter } from "./IFilter";
|
|
3
|
+
import { IsoDate } from "./IsoDate";
|
|
4
|
+
import { Severity } from "./Severity";
|
|
5
|
+
import { Uuid } from "./Uuid";
|
|
6
|
+
export interface IEventFilter extends IFilter {
|
|
7
|
+
id?: Uuid;
|
|
8
|
+
viewed?: boolean;
|
|
9
|
+
keyword?: string;
|
|
10
|
+
message?: string;
|
|
11
|
+
start?: IsoDate;
|
|
12
|
+
end?: IsoDate;
|
|
13
|
+
eventTypes?: EventType[];
|
|
14
|
+
notificationEnabled?: boolean;
|
|
15
|
+
userIds?: Uuid[];
|
|
16
|
+
annotationTemplateIds?: Uuid[];
|
|
17
|
+
disableNullMatches?: boolean;
|
|
18
|
+
severities?: Severity[];
|
|
19
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ISheetParameters } from "./ISheetParameters";
|
|
2
|
+
import { ITagParameters } from "./ITagParameters";
|
|
3
|
+
import { IUserParameters } from "./IUserParameters";
|
|
4
|
+
export interface IFieldParametersTypeMap {
|
|
5
|
+
tag: ITagParameters;
|
|
6
|
+
sheet: ISheetParameters;
|
|
7
|
+
user: IUserParameters;
|
|
8
|
+
}
|