@formant/data-sdk 1.28.0 → 1.30.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 +1 -1
- package/dist/data-sdk.cjs.js.map +1 -1
- package/dist/data-sdk.es.js +6 -1
- package/dist/data-sdk.es.js.map +1 -1
- package/dist/data-sdk.es6.js +6 -1
- package/dist/data-sdk.umd.js +1 -1
- package/dist/types/data-sdk/src/model/IAnnotation.d.ts +1 -1
- package/dist/types/data-sdk/src/model/IDatapointEvent.d.ts +3 -0
- package/dist/types/data-sdk/src/model/IDeviceOfflineEvent.d.ts +3 -0
- package/dist/types/data-sdk/src/model/IDeviceOnlineEvent.d.ts +3 -0
- package/dist/types/data-sdk/src/model/IEvent.d.ts +6 -1
- package/dist/types/data-sdk/src/model/IStatefulEvent.d.ts +5 -0
- package/dist/types/data-sdk/src/model/ITaskSummary.d.ts +13 -0
- package/dist/types/data-sdk/src/model/ITriggeredEvent.d.ts +2 -1
- package/dist/types/data-sdk/src/model/eventTypes.d.ts +1 -1
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@ import { Uuid } from "./Uuid";
|
|
|
6
6
|
export interface IAnnotation extends IBaseEvent<"annotation"> {
|
|
7
7
|
editedAt?: IsoDate;
|
|
8
8
|
userId: Uuid;
|
|
9
|
-
annotationTemplateId
|
|
9
|
+
annotationTemplateId?: Uuid | null;
|
|
10
10
|
taggedUsers?: ITaggedUsers | null;
|
|
11
11
|
publishedTo?: ISpreadsheetIdRange;
|
|
12
12
|
note?: string | null;
|
|
@@ -4,9 +4,14 @@ import { ICommandRequestEvent } from "./ICommandRequestEvent";
|
|
|
4
4
|
import { ICommandResponseEvent } from "./ICommandResponseEvent";
|
|
5
5
|
import { IComment } from "./IComment";
|
|
6
6
|
import { ICustomEvent } from "./ICustomEvent";
|
|
7
|
+
import { IDatapointEvent } from "./IDatapointEvent";
|
|
8
|
+
import { IDeviceOfflineEvent } from "./IDeviceOfflineEvent";
|
|
9
|
+
import { IDeviceOnlineEvent } from "./IDeviceOnlineEvent";
|
|
7
10
|
import { IInterventionRequest } from "./IInterventionRequest";
|
|
8
11
|
import { IPortForwardingSessionRecord } from "./IPortForwardingSessionRecord";
|
|
12
|
+
import { IStatefulEvent } from "./IStatefulEvent";
|
|
9
13
|
import { ISystemEvent } from "./ISystemEvent";
|
|
14
|
+
import { ITaskSummary } from "./ITaskSummary";
|
|
10
15
|
import { ITeleopSessionRecord } from "./ITeleopSessionRecord";
|
|
11
16
|
import { ITriggeredEvent } from "./ITriggeredEvent";
|
|
12
|
-
export type IEvent = ITriggeredEvent | IInterventionRequest | ITeleopSessionRecord | IPortForwardingSessionRecord | ICommandRequestEvent | ICommandResponseEvent | ICommandDeliveryEvent | ICustomEvent | IComment | ISystemEvent | IAnnotation;
|
|
17
|
+
export type IEvent = ITriggeredEvent<"triggered-event"> | IDatapointEvent | IDeviceOnlineEvent | IDeviceOfflineEvent | IInterventionRequest | ITeleopSessionRecord | IPortForwardingSessionRecord | ICommandRequestEvent | ICommandResponseEvent | ICommandDeliveryEvent | ICustomEvent | IComment | ISystemEvent | IAnnotation | ITaskSummary | IStatefulEvent;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { IBaseEvent } from "./IBaseEvent";
|
|
2
|
+
import { IsoDate } from "./IsoDate";
|
|
3
|
+
import { Uuid } from "./Uuid";
|
|
4
|
+
export interface ITaskSummary extends IBaseEvent<"task-summary"> {
|
|
5
|
+
taskSummaryFormatId: Uuid;
|
|
6
|
+
report: {
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
};
|
|
9
|
+
taskId: string;
|
|
10
|
+
deviceId: Uuid;
|
|
11
|
+
generatedAt: IsoDate;
|
|
12
|
+
deletedAt?: IsoDate | null;
|
|
13
|
+
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { EventType } from "./EventType";
|
|
1
2
|
import { IBaseEvent } from "./IBaseEvent";
|
|
2
3
|
import { IsoDate } from "./IsoDate";
|
|
3
4
|
import { Severity } from "./Severity";
|
|
4
5
|
import { Uuid } from "./Uuid";
|
|
5
|
-
export interface ITriggeredEvent extends IBaseEvent<
|
|
6
|
+
export interface ITriggeredEvent<T extends EventType = EventType> extends IBaseEvent<T> {
|
|
6
7
|
severity: Severity;
|
|
7
8
|
eventTriggerId: Uuid;
|
|
8
9
|
interval?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const eventTypes: readonly ["triggered-event", "intervention-request", "teleop-session-record", "port-forwarding-session-record", "command-request", "command-response", "command-delivery", "custom", "comment", "system", "annotation"];
|
|
1
|
+
export declare const eventTypes: readonly ["triggered-event", "datapoint-event", "device-online", "device-offline", "intervention-request", "teleop-session-record", "port-forwarding-session-record", "command-request", "command-response", "command-delivery", "custom", "comment", "system", "annotation", "task-summary", "stateful"];
|