@formant/data-sdk 0.0.63 → 0.0.66

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.
Files changed (101) hide show
  1. package/dist/data-sdk.es.js +2 -19358
  2. package/dist/data-sdk.umd.js +2 -44
  3. package/dist/types/data-sdk/src/App.d.ts +41 -0
  4. package/dist/types/data-sdk/src/DataChannel.d.ts +2 -3
  5. package/dist/types/data-sdk/src/Fleet.d.ts +6 -7
  6. package/dist/types/data-sdk/src/main.d.ts +95 -1
  7. package/dist/types/data-sdk/src/model/AccessLevel.d.ts +5 -0
  8. package/dist/types/data-sdk/src/model/AggregateLevel.d.ts +1 -0
  9. package/dist/types/data-sdk/src/model/AnnotationAreaType.d.ts +2 -0
  10. package/dist/types/data-sdk/src/model/AnnotationType.d.ts +2 -0
  11. package/dist/types/data-sdk/src/model/EventSortableColumn.d.ts +1 -0
  12. package/dist/types/data-sdk/src/model/EventType.d.ts +2 -0
  13. package/dist/types/data-sdk/src/model/HealthStatus.d.ts +2 -0
  14. package/dist/types/data-sdk/src/model/HexRgbColor.d.ts +1 -0
  15. package/dist/types/data-sdk/src/model/IAnnotation.d.ts +13 -0
  16. package/dist/types/data-sdk/src/model/IAnnotationAreaTypeMap.d.ts +4 -0
  17. package/dist/types/data-sdk/src/model/IBaseEntity.d.ts +7 -0
  18. package/dist/types/data-sdk/src/model/IBaseEvent.d.ts +19 -0
  19. package/dist/types/data-sdk/src/model/IBattery.d.ts +6 -0
  20. package/dist/types/data-sdk/src/model/IBitset.d.ts +4 -0
  21. package/dist/types/data-sdk/src/model/IBoundingBox.d.ts +6 -0
  22. package/dist/types/data-sdk/src/model/ICommandDeliveryEvent.d.ts +3 -0
  23. package/dist/types/data-sdk/src/model/ICommandEventBase.d.ts +5 -0
  24. package/dist/types/data-sdk/src/model/ICommandParameter.d.ts +9 -0
  25. package/dist/types/data-sdk/src/model/ICommandRequest.d.ts +9 -0
  26. package/dist/types/data-sdk/src/model/ICommandRequestEvent.d.ts +5 -0
  27. package/dist/types/data-sdk/src/model/ICommandResponse.d.ts +13 -0
  28. package/dist/types/data-sdk/src/model/ICommandResponseEvent.d.ts +3 -0
  29. package/dist/types/data-sdk/src/model/IComment.d.ts +7 -0
  30. package/dist/types/data-sdk/src/model/IConfigurationMap.d.ts +3 -0
  31. package/dist/types/data-sdk/src/model/ICustomEvent.d.ts +5 -0
  32. package/dist/types/data-sdk/src/model/IDataPoint.d.ts +7 -0
  33. package/dist/types/data-sdk/src/model/IEvent.d.ts +12 -0
  34. package/dist/types/data-sdk/src/model/IEventFilter.d.ts +19 -0
  35. package/dist/types/data-sdk/src/model/IEventQuery.d.ts +7 -0
  36. package/dist/types/data-sdk/src/model/IEventSort.d.ts +6 -0
  37. package/dist/types/data-sdk/src/model/IFieldParametersTypeMap.d.ts +8 -0
  38. package/dist/types/data-sdk/src/model/IFile.d.ts +6 -0
  39. package/dist/types/data-sdk/src/model/IFileInfo.d.ts +6 -0
  40. package/dist/types/data-sdk/src/model/IFilter.d.ts +10 -0
  41. package/dist/types/data-sdk/src/model/IGoal.d.ts +5 -0
  42. package/dist/types/data-sdk/src/model/IGoalID.d.ts +3 -0
  43. package/dist/types/data-sdk/src/model/IHealth.d.ts +4 -0
  44. package/dist/types/data-sdk/src/model/IImage.d.ts +6 -0
  45. package/dist/types/data-sdk/src/model/IImageAnnotation.d.ts +9 -0
  46. package/dist/types/data-sdk/src/model/IInterventionRequest.d.ts +9 -0
  47. package/dist/types/data-sdk/src/model/IInterventionResponse.d.ts +10 -0
  48. package/dist/types/data-sdk/src/model/IInterventionTypeMap.d.ts +20 -0
  49. package/dist/types/data-sdk/src/model/ILabel.d.ts +4 -0
  50. package/dist/types/data-sdk/src/model/ILabeledPolygon.d.ts +4 -0
  51. package/dist/types/data-sdk/src/model/ILabelingRequestData.d.ts +8 -0
  52. package/dist/types/data-sdk/src/model/ILabelingResponseData.d.ts +4 -0
  53. package/dist/types/data-sdk/src/model/ILocalization.d.ts +12 -0
  54. package/dist/types/data-sdk/src/model/ILocation.d.ts +6 -0
  55. package/dist/types/data-sdk/src/model/IMap.d.ts +10 -0
  56. package/dist/types/data-sdk/src/model/INumericSetEntry.d.ts +5 -0
  57. package/dist/types/data-sdk/src/model/IOdometry.d.ts +7 -0
  58. package/dist/types/data-sdk/src/model/IPath.d.ts +5 -0
  59. package/dist/types/data-sdk/src/model/IPointCloud.d.ts +6 -0
  60. package/dist/types/data-sdk/src/model/IPortForwardingSessionRecord.d.ts +3 -0
  61. package/dist/types/data-sdk/src/model/IQuaternion.d.ts +6 -0
  62. package/dist/types/data-sdk/src/model/IQuery.d.ts +8 -0
  63. package/dist/types/data-sdk/src/model/IRtcSessionRecord.d.ts +9 -0
  64. package/dist/types/data-sdk/src/model/ISelectionRequestData.d.ts +6 -0
  65. package/dist/types/data-sdk/src/model/ISelectionResponseData.d.ts +3 -0
  66. package/dist/types/data-sdk/src/model/ISheetParameters.d.ts +5 -0
  67. package/dist/types/data-sdk/src/model/ISpreadsheetIdRange.d.ts +4 -0
  68. package/dist/types/data-sdk/src/model/IStreamData.d.ts +11 -0
  69. package/dist/types/data-sdk/src/model/IStreamTypeMap.d.ts +27 -0
  70. package/dist/types/data-sdk/src/model/ISystemEvent.d.ts +3 -0
  71. package/dist/types/data-sdk/src/model/ITagParameters.d.ts +3 -0
  72. package/dist/types/data-sdk/src/model/ITagSets.d.ts +3 -0
  73. package/dist/types/data-sdk/src/model/ITaggedUsers.d.ts +4 -0
  74. package/dist/types/data-sdk/src/model/ITags.d.ts +3 -0
  75. package/dist/types/data-sdk/src/model/ITeleopRequestData.d.ts +3 -0
  76. package/dist/types/data-sdk/src/model/ITeleopResponseData.d.ts +4 -0
  77. package/dist/types/data-sdk/src/model/ITeleopSessionRecord.d.ts +3 -0
  78. package/dist/types/data-sdk/src/model/ITransform.d.ts +6 -0
  79. package/dist/types/data-sdk/src/model/ITransformNode.d.ts +7 -0
  80. package/dist/types/data-sdk/src/model/ITriggeredEvent.d.ts +10 -0
  81. package/dist/types/data-sdk/src/model/ITwist.d.ts +5 -0
  82. package/dist/types/data-sdk/src/model/IUserParameters.d.ts +4 -0
  83. package/dist/types/data-sdk/src/model/IVector3.d.ts +5 -0
  84. package/dist/types/data-sdk/src/model/IVideo.d.ts +7 -0
  85. package/dist/types/data-sdk/src/model/InterventionType.d.ts +2 -0
  86. package/dist/types/data-sdk/src/model/IsoDate.d.ts +1 -0
  87. package/dist/types/data-sdk/src/model/Severity.d.ts +2 -0
  88. package/dist/types/data-sdk/src/model/SortOrder.d.ts +1 -0
  89. package/dist/types/data-sdk/src/model/StreamType.d.ts +2 -0
  90. package/dist/types/data-sdk/src/model/Timestamp.d.ts +1 -0
  91. package/dist/types/data-sdk/src/model/Uuid.d.ts +1 -0
  92. package/dist/types/data-sdk/src/model/VideoMimeType.d.ts +2 -0
  93. package/dist/types/data-sdk/src/model/accessLevels.d.ts +1 -0
  94. package/dist/types/data-sdk/src/model/aggregateLevels.d.ts +2 -0
  95. package/dist/types/data-sdk/src/model/annotationTypes.d.ts +1 -0
  96. package/dist/types/data-sdk/src/model/eventTypes.d.ts +1 -0
  97. package/dist/types/data-sdk/src/model/healthStatuses.d.ts +1 -0
  98. package/dist/types/data-sdk/src/model/interventionTypes.d.ts +1 -0
  99. package/dist/types/data-sdk/src/model/severities.d.ts +1 -0
  100. package/dist/types/data-sdk/src/model/videoMimeTypes.d.ts +1 -0
  101. package/package.json +4 -4
@@ -1,3 +1,44 @@
1
+ export declare type AppMessage = {
2
+ type: "go_to_time";
3
+ time: number;
4
+ } | {
5
+ type: "request_module_data";
6
+ module: string;
7
+ } | {
8
+ type: "show_message";
9
+ message: string;
10
+ } | {
11
+ type: "refresh_auth_token";
12
+ module: string;
13
+ } | {
14
+ type: "set_module_data_time_range";
15
+ module: string;
16
+ before: number;
17
+ after: number;
18
+ } | {
19
+ type: "setup_module_menus";
20
+ module: string;
21
+ menus: {
22
+ label: string;
23
+ }[];
24
+ };
25
+ export declare type EmbeddedAppMessage = {
26
+ type: "module_menu_item_clicked";
27
+ menu: string;
28
+ } | {
29
+ type: "auth_token";
30
+ token: string;
31
+ } | {
32
+ type: "module_data";
33
+ streams: {
34
+ [x: string]: any;
35
+ };
36
+ time: number;
37
+ queryRange: {
38
+ start: number;
39
+ end: number;
40
+ };
41
+ };
1
42
  export interface ModuleData {
2
43
  queryRange: QueryRange;
3
44
  time: number;
@@ -1,5 +1,5 @@
1
- declare type DataChannelStringListener = (message: string) => void;
2
- declare type DataChannelBinaryListener = (message: Uint8Array) => void;
1
+ export declare type DataChannelStringListener = (message: string) => void;
2
+ export declare type DataChannelBinaryListener = (message: Uint8Array) => void;
3
3
  export declare class DataChannel {
4
4
  private dataChannel;
5
5
  ready: boolean;
@@ -16,4 +16,3 @@ export declare class DataChannel {
16
16
  addBinaryListener(listener: DataChannelBinaryListener): void;
17
17
  removeBinaryListener(listener: DataChannelBinaryListener): void;
18
18
  }
19
- export {};
@@ -1,12 +1,9 @@
1
1
  import { Device } from "./Device";
2
2
  import { IRtcPeer } from "@formant/realtime-sdk/dist/model/IRtcPeer";
3
- export interface User {
4
- firstName: string;
5
- lastName: string;
6
- email: string;
7
- organizationId: string;
8
- id: string;
9
- }
3
+ import { IEventQuery } from "./model/IEventQuery";
4
+ import { IEvent } from "./model/IEvent";
5
+ import { IQuery } from "./model/IQuery";
6
+ import { IStreamData } from "./model/IStreamData";
10
7
  export interface TelemetryResult {
11
8
  deviceId: string;
12
9
  name: string;
@@ -34,4 +31,6 @@ export declare class Fleet {
34
31
  [key in string]: string[];
35
32
  }): Promise<TelemetryResult[]>;
36
33
  static getFileUrl(uuid: string): Promise<string>;
34
+ static queryTelemetry(query: IQuery): Promise<IStreamData<keyof import("./main").IStreamTypeMap>[]>;
35
+ static queryEvents(query: IEventQuery): Promise<IEvent[]>;
37
36
  }
@@ -1,4 +1,4 @@
1
- export { Fleet } from "./Fleet";
1
+ export * from "./Fleet";
2
2
  export * from "./Authentication";
3
3
  export * from "./Device";
4
4
  export * from "./DataChannel";
@@ -7,3 +7,97 @@ export * from "./Manipulator";
7
7
  export * from "./RequestDataChannel";
8
8
  export * from "./App";
9
9
  export * from "./KeyValue";
10
+ export * from "./model/accessLevels";
11
+ export * from "./model/AccessLevel";
12
+ export * from "./model/aggregateLevels";
13
+ export * from "./model/AggregateLevel";
14
+ export * from "./model/AnnotationAreaType";
15
+ export * from "./model/annotationTypes";
16
+ export * from "./model/AnnotationType";
17
+ export * from "./model/EventSortableColumn";
18
+ export * from "./model/eventTypes";
19
+ export * from "./model/EventType";
20
+ export * from "./model/healthStatuses";
21
+ export * from "./model/HealthStatus";
22
+ export * from "./model/HexRgbColor";
23
+ export * from "./model/IAnnotationAreaTypeMap";
24
+ export * from "./model/IAnnotation";
25
+ export * from "./model/IBaseEntity";
26
+ export * from "./model/IBaseEvent";
27
+ export * from "./model/IBattery";
28
+ export * from "./model/IBitset";
29
+ export * from "./model/IBoundingBox";
30
+ export * from "./model/ICommandDeliveryEvent";
31
+ export * from "./model/ICommandEventBase";
32
+ export * from "./model/ICommandParameter";
33
+ export * from "./model/ICommandRequestEvent";
34
+ export * from "./model/ICommandRequest";
35
+ export * from "./model/ICommandResponseEvent";
36
+ export * from "./model/ICommandResponse";
37
+ export * from "./model/IComment";
38
+ export * from "./model/IConfigurationMap";
39
+ export * from "./model/ICustomEvent";
40
+ export * from "./model/IDataPoint";
41
+ export * from "./model/IEventFilter";
42
+ export * from "./model/IEventQuery";
43
+ export * from "./model/IEventSort";
44
+ export * from "./model/IEvent";
45
+ export * from "./model/IFieldParametersTypeMap";
46
+ export * from "./model/IFileInfo";
47
+ export * from "./model/IFile";
48
+ export * from "./model/IFilter";
49
+ export * from "./model/IGoalID";
50
+ export * from "./model/IGoal";
51
+ export * from "./model/IHealth";
52
+ export * from "./model/IImageAnnotation";
53
+ export * from "./model/IImage";
54
+ export * from "./model/IInterventionRequest";
55
+ export * from "./model/IInterventionResponse";
56
+ export * from "./model/IInterventionTypeMap";
57
+ export * from "./model/ILabeledPolygon";
58
+ export * from "./model/ILabelingRequestData";
59
+ export * from "./model/ILabelingResponseData";
60
+ export * from "./model/ILabel";
61
+ export * from "./model/ILocalization";
62
+ export * from "./model/ILocation";
63
+ export * from "./model/IMap";
64
+ export * from "./model/interventionTypes";
65
+ export * from "./model/InterventionType";
66
+ export * from "./model/INumericSetEntry";
67
+ export * from "./model/IOdometry";
68
+ export * from "./model/IPath";
69
+ export * from "./model/IPointCloud";
70
+ export * from "./model/IPortForwardingSessionRecord";
71
+ export * from "./model/IQuaternion";
72
+ export * from "./model/IQuery";
73
+ export * from "./model/IRtcSessionRecord";
74
+ export * from "./model/ISelectionRequestData";
75
+ export * from "./model/ISelectionResponseData";
76
+ export * from "./model/ISheetParameters";
77
+ export * from "./model/IsoDate";
78
+ export * from "./model/ISpreadsheetIdRange";
79
+ export * from "./model/IStreamData";
80
+ export * from "./model/IStreamTypeMap";
81
+ export * from "./model/ISystemEvent";
82
+ export * from "./model/ITaggedUsers";
83
+ export * from "./model/ITagParameters";
84
+ export * from "./model/ITagSets";
85
+ export * from "./model/ITags";
86
+ export * from "./model/ITeleopRequestData";
87
+ export * from "./model/ITeleopResponseData";
88
+ export * from "./model/ITeleopSessionRecord";
89
+ export * from "./model/ITransformNode";
90
+ export * from "./model/ITransform";
91
+ export * from "./model/ITriggeredEvent";
92
+ export * from "./model/ITwist";
93
+ export * from "./model/IUserParameters";
94
+ export * from "./model/IVector3";
95
+ export * from "./model/IVideo";
96
+ export * from "./model/severities";
97
+ export * from "./model/Severity";
98
+ export * from "./model/SortOrder";
99
+ export * from "./model/StreamType";
100
+ export * from "./model/Timestamp";
101
+ export * from "./model/Uuid";
102
+ export * from "./model/videoMimeTypes";
103
+ export * from "./model/VideoMimeType";
@@ -0,0 +1,5 @@
1
+ import { accessLevels } from "./accessLevels";
2
+ export declare 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 declare type AggregateLevel = "year" | "month" | "week" | "day" | "hour" | "minute" | "second";
@@ -0,0 +1,2 @@
1
+ import { IAnnotationAreaTypeMap } from "./IAnnotationAreaTypeMap";
2
+ export declare type AnnotationAreaType = keyof IAnnotationAreaTypeMap;
@@ -0,0 +1,2 @@
1
+ import { IFieldParametersTypeMap } from "./IFieldParametersTypeMap";
2
+ export declare type AnnotationType = keyof IFieldParametersTypeMap;
@@ -0,0 +1 @@
1
+ export declare type EventSortableColumn = "device.name" | "time";
@@ -0,0 +1,2 @@
1
+ import { eventTypes } from "./eventTypes";
2
+ export declare type EventType = typeof eventTypes[number];
@@ -0,0 +1,2 @@
1
+ import { healthStatuses } from "./healthStatuses";
2
+ export declare type HealthStatus = typeof healthStatuses[number];
@@ -0,0 +1 @@
1
+ export declare type HexRgbColor = string;
@@ -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,4 @@
1
+ import { IBoundingBox } from "./IBoundingBox";
2
+ export interface IAnnotationAreaTypeMap {
3
+ "bounding box": IBoundingBox;
4
+ }
@@ -0,0 +1,7 @@
1
+ import { IsoDate } from "./IsoDate";
2
+ import { Uuid } from "./Uuid";
3
+ export interface IBaseEntity {
4
+ id?: Uuid;
5
+ createdAt?: IsoDate;
6
+ updatedAt?: IsoDate;
7
+ }
@@ -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,6 @@
1
+ export interface IBattery {
2
+ percentage: number;
3
+ voltage?: number;
4
+ current?: number;
5
+ charge?: number;
6
+ }
@@ -0,0 +1,4 @@
1
+ export interface IBitset {
2
+ keys: string[];
3
+ values: boolean[];
4
+ }
@@ -0,0 +1,6 @@
1
+ export interface IBoundingBox {
2
+ x: number;
3
+ y: number;
4
+ width: number;
5
+ height: number;
6
+ }
@@ -0,0 +1,3 @@
1
+ import { ICommandEventBase } from "./ICommandEventBase";
2
+ export interface ICommandDeliveryEvent extends ICommandEventBase<"command-delivery"> {
3
+ }
@@ -0,0 +1,5 @@
1
+ import { IBaseEvent } from "./IBaseEvent";
2
+ import { Uuid } from "./Uuid";
3
+ export interface ICommandEventBase<T extends "command-request" | "command-delivery" | "command-response"> extends IBaseEvent<T> {
4
+ commandId: Uuid;
5
+ }
@@ -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,9 @@
1
+ import { ICommandParameter } from "./ICommandParameter";
2
+ import { IsoDate } from "./IsoDate";
3
+ import { Uuid } from "./Uuid";
4
+ export interface ICommandRequest {
5
+ id: Uuid;
6
+ command: string;
7
+ parameter: ICommandParameter;
8
+ createdAt: IsoDate;
9
+ }
@@ -0,0 +1,5 @@
1
+ import { ICommandEventBase } from "./ICommandEventBase";
2
+ import { Uuid } from "./Uuid";
3
+ export interface ICommandRequestEvent extends ICommandEventBase<"command-request"> {
4
+ userId?: Uuid;
5
+ }
@@ -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,3 @@
1
+ import { ICommandEventBase } from "./ICommandEventBase";
2
+ export interface ICommandResponseEvent extends ICommandEventBase<"command-response"> {
3
+ }
@@ -0,0 +1,7 @@
1
+ import { IBaseEvent } from "./IBaseEvent";
2
+ import { IsoDate } from "./IsoDate";
3
+ import { Uuid } from "./Uuid";
4
+ export interface IComment extends IBaseEvent<"comment"> {
5
+ editedAt?: IsoDate;
6
+ userId: Uuid;
7
+ }
@@ -0,0 +1,3 @@
1
+ export interface IConfigurationMap {
2
+ [key: string]: string;
3
+ }
@@ -0,0 +1,5 @@
1
+ import { IBaseEvent } from "./IBaseEvent";
2
+ import { Severity } from "./Severity";
3
+ export interface ICustomEvent extends IBaseEvent<"custom"> {
4
+ severity?: Severity;
5
+ }
@@ -0,0 +1,7 @@
1
+ import { IStreamTypeMap } from "./IStreamTypeMap";
2
+ import { StreamType } from "./StreamType";
3
+ import { Timestamp } from "./Timestamp";
4
+ export declare type IDataPoint<T extends StreamType = StreamType> = [
5
+ Timestamp,
6
+ IStreamTypeMap[T]
7
+ ];
@@ -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 declare 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,7 @@
1
+ import { IEventFilter } from "./IEventFilter";
2
+ import { IEventSort } from "./IEventSort";
3
+ export interface IEventQuery extends IEventFilter {
4
+ offset?: number;
5
+ count?: number;
6
+ sort?: IEventSort;
7
+ }
@@ -0,0 +1,6 @@
1
+ import { EventSortableColumn } from "./EventSortableColumn";
2
+ import { SortOrder } from "./SortOrder";
3
+ export interface IEventSort {
4
+ column: EventSortableColumn;
5
+ order: SortOrder;
6
+ }
@@ -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
+ }
@@ -0,0 +1,6 @@
1
+ export interface IFile {
2
+ url: string;
3
+ filename: string;
4
+ size: number;
5
+ previewUrl?: string;
6
+ }
@@ -0,0 +1,6 @@
1
+ import { Uuid } from "./Uuid";
2
+ export interface IFileInfo {
3
+ id: Uuid;
4
+ name?: string;
5
+ url?: string;
6
+ }
@@ -0,0 +1,10 @@
1
+ import { StreamType } from "./StreamType";
2
+ import { ITagSets } from "./ITagSets";
3
+ import { Uuid } from "./Uuid";
4
+ export interface IFilter {
5
+ deviceIds?: Uuid[];
6
+ names?: string[];
7
+ types?: StreamType[];
8
+ tags?: ITagSets;
9
+ notNames?: string[];
10
+ }
@@ -0,0 +1,5 @@
1
+ import { ITransform } from "./ITransform";
2
+ export interface IGoal {
3
+ worldToLocal: ITransform;
4
+ pose: ITransform;
5
+ }
@@ -0,0 +1,3 @@
1
+ export interface IGoalID {
2
+ id?: string;
3
+ }
@@ -0,0 +1,4 @@
1
+ import { HealthStatus } from "./HealthStatus";
2
+ export interface IHealth {
3
+ status: HealthStatus;
4
+ }
@@ -0,0 +1,6 @@
1
+ import { IImageAnnotation } from "./IImageAnnotation";
2
+ export interface IImage {
3
+ url: string;
4
+ size?: number;
5
+ annotations?: IImageAnnotation[];
6
+ }
@@ -0,0 +1,9 @@
1
+ import { AnnotationAreaType } from "./AnnotationAreaType";
2
+ import { HexRgbColor } from "./HexRgbColor";
3
+ import { IAnnotationAreaTypeMap } from "./IAnnotationAreaTypeMap";
4
+ export interface IImageAnnotation<T extends AnnotationAreaType = AnnotationAreaType> {
5
+ label: string;
6
+ type: AnnotationAreaType;
7
+ area: IAnnotationAreaTypeMap[T];
8
+ color: HexRgbColor;
9
+ }
@@ -0,0 +1,9 @@
1
+ import { IBaseEvent } from "./IBaseEvent";
2
+ import { IInterventionResponse } from "./IInterventionResponse";
3
+ import { IInterventionTypeMap } from "./IInterventionTypeMap";
4
+ import { InterventionType } from "./InterventionType";
5
+ export interface IInterventionRequest<T extends InterventionType = InterventionType> extends IBaseEvent<"intervention-request"> {
6
+ interventionType: T;
7
+ data: IInterventionTypeMap[T]["request"];
8
+ responses?: IInterventionResponse<T>[];
9
+ }
@@ -0,0 +1,10 @@
1
+ import { IBaseEntity } from "./IBaseEntity";
2
+ import { IInterventionTypeMap } from "./IInterventionTypeMap";
3
+ import { InterventionType } from "./InterventionType";
4
+ import { Uuid } from "./Uuid";
5
+ export interface IInterventionResponse<T extends InterventionType = InterventionType> extends IBaseEntity {
6
+ userId?: Uuid;
7
+ interventionId: Uuid;
8
+ interventionType: T;
9
+ data: IInterventionTypeMap[T]["response"];
10
+ }
@@ -0,0 +1,20 @@
1
+ import { ILabelingRequestData } from "./ILabelingRequestData";
2
+ import { ILabelingResponseData } from "./ILabelingResponseData";
3
+ import { ISelectionRequestData } from "./ISelectionRequestData";
4
+ import { ISelectionResponseData } from "./ISelectionResponseData";
5
+ import { ITeleopRequestData } from "./ITeleopRequestData";
6
+ import { ITeleopResponseData } from "./ITeleopResponseData";
7
+ export interface IInterventionTypeMap {
8
+ selection: {
9
+ request: ISelectionRequestData;
10
+ response: ISelectionResponseData;
11
+ };
12
+ labeling: {
13
+ request: ILabelingRequestData;
14
+ response: ILabelingResponseData;
15
+ };
16
+ teleop: {
17
+ request: ITeleopRequestData;
18
+ response: ITeleopResponseData;
19
+ };
20
+ }
@@ -0,0 +1,4 @@
1
+ export interface ILabel {
2
+ value: string;
3
+ displayName?: string;
4
+ }
@@ -0,0 +1,4 @@
1
+ export interface ILabeledPolygon {
2
+ vertices: [number, number][];
3
+ labels: string[];
4
+ }
@@ -0,0 +1,8 @@
1
+ import { ILabel } from "./ILabel";
2
+ import { ILabeledPolygon } from "./ILabeledPolygon";
3
+ export interface ILabelingRequestData {
4
+ instruction: string;
5
+ imageUrl: string;
6
+ labels: ILabel[];
7
+ hint?: ILabeledPolygon[];
8
+ }
@@ -0,0 +1,4 @@
1
+ import { ILabeledPolygon } from "./ILabeledPolygon";
2
+ export interface ILabelingResponseData {
3
+ value: ILabeledPolygon[];
4
+ }
@@ -0,0 +1,12 @@
1
+ import { IGoal } from "./IGoal";
2
+ import { IMap } from "./IMap";
3
+ import { IOdometry } from "./IOdometry";
4
+ import { IPath } from "./IPath";
5
+ import { IPointCloud } from "./IPointCloud";
6
+ export interface ILocalization {
7
+ odometry: IOdometry;
8
+ map?: IMap;
9
+ pointClouds?: IPointCloud[];
10
+ path?: IPath;
11
+ goal?: IGoal;
12
+ }
@@ -0,0 +1,6 @@
1
+ export interface ILocation {
2
+ latitude: number;
3
+ longitude: number;
4
+ altitude?: number;
5
+ orientation?: number;
6
+ }
@@ -0,0 +1,10 @@
1
+ import { ITransform } from "./ITransform";
2
+ export interface IMap {
3
+ url: string;
4
+ size?: number;
5
+ width: number;
6
+ height: number;
7
+ resolution: number;
8
+ origin: ITransform;
9
+ worldToLocal: ITransform;
10
+ }
@@ -0,0 +1,5 @@
1
+ export interface INumericSetEntry {
2
+ label: string;
3
+ value: number;
4
+ unit?: string;
5
+ }
@@ -0,0 +1,7 @@
1
+ import { ITransform } from "./ITransform";
2
+ import { ITwist } from "./ITwist";
3
+ export interface IOdometry {
4
+ pose: ITransform;
5
+ twist: ITwist;
6
+ worldToLocal: ITransform;
7
+ }
@@ -0,0 +1,5 @@
1
+ import { ITransform } from "./ITransform";
2
+ export interface IPath {
3
+ worldToLocal: ITransform;
4
+ poses: ITransform[];
5
+ }