@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.
@@ -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: Uuid;
9
+ annotationTemplateId?: Uuid | null;
10
10
  taggedUsers?: ITaggedUsers | null;
11
11
  publishedTo?: ISpreadsheetIdRange;
12
12
  note?: string | null;
@@ -0,0 +1,3 @@
1
+ import { ITriggeredEvent } from "./ITriggeredEvent";
2
+ export interface IDatapointEvent extends ITriggeredEvent<"datapoint-event"> {
3
+ }
@@ -0,0 +1,3 @@
1
+ import { ITriggeredEvent } from "./ITriggeredEvent";
2
+ export interface IDeviceOfflineEvent extends ITriggeredEvent<"device-offline"> {
3
+ }
@@ -0,0 +1,3 @@
1
+ import { ITriggeredEvent } from "./ITriggeredEvent";
2
+ export interface IDeviceOnlineEvent extends ITriggeredEvent<"device-online"> {
3
+ }
@@ -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,5 @@
1
+ import { IBaseEvent } from "./IBaseEvent";
2
+ import { Severity } from "./Severity";
3
+ export interface IStatefulEvent extends IBaseEvent<"stateful"> {
4
+ severity?: Severity;
5
+ }
@@ -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<"triggered-event"> {
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"];
package/package.json CHANGED
@@ -24,7 +24,7 @@
24
24
  }
25
25
  }
26
26
  },
27
- "version": "1.28.0",
27
+ "version": "1.30.0",
28
28
  "scripts": {
29
29
  "preversion": "npm run verify",
30
30
  "postversion": "make",