@formant/data-sdk 0.0.128 → 0.0.130

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.
@@ -7,6 +7,7 @@ import { IStreamAggregateData } from "./model/IStreamAggregateData";
7
7
  import { IStreamData } from "./model/IStreamData";
8
8
  import { PeerDevice } from "./PeerDevice";
9
9
  import { IDeviceQuery } from "./model/IDeviceQuery";
10
+ import { IAnnotationQuery } from "./model/IAnnotationQuery";
10
11
  export interface TelemetryResult {
11
12
  deviceId: string;
12
13
  name: string;
@@ -42,4 +43,7 @@ export declare class Fleet {
42
43
  static getEvent(uuid: string): Promise<IEvent>;
43
44
  static getInterventions(): Promise<IEvent[]>;
44
45
  static getCurrentGroup(): Promise<Device[] | undefined>;
46
+ static getAnnotationCount(query: IAnnotationQuery): Promise<{
47
+ [key: string]: number;
48
+ }>;
45
49
  }
@@ -112,5 +112,6 @@ export * from "./model/Uuid";
112
112
  export * from "./model/videoMimeTypes";
113
113
  export * from "./model/VideoMimeType";
114
114
  export * from "./model/IDeviceQuery";
115
+ export * from "./model/IAnnotationQuery";
115
116
  export { IRtcSendConfiguration, IRtcStreamMessage, IRtcStreamPayload, } from "@formant/realtime-sdk";
116
117
  export * from "./model/JsonSchema";
@@ -0,0 +1,7 @@
1
+ import { IEventQuery } from "./IEventQuery";
2
+ import { AggregateLevel } from "./AggregateLevel";
3
+ export interface IAnnotationQuery extends IEventQuery {
4
+ tagKey?: string;
5
+ annotationName?: string;
6
+ aggregate?: AggregateLevel;
7
+ }
@@ -1,6 +1,6 @@
1
1
  import { StreamType } from "./StreamType";
2
2
  export type FieldType = "string" | "integer" | "number" | "array" | "object" | "boolean";
3
- interface IJsonBaseSchema<T extends FieldType> {
3
+ export interface IJsonBaseSchema<T extends FieldType> {
4
4
  title?: string;
5
5
  description?: string;
6
6
  type: T;
@@ -8,7 +8,7 @@ interface IJsonBaseSchema<T extends FieldType> {
8
8
  $schema?: string;
9
9
  "$formant.visible.when"?: [string, "=", string];
10
10
  }
11
- interface IJsonBaseSchemaWithDefault<T extends FieldType, U> extends IJsonBaseSchema<T> {
11
+ export interface IJsonBaseSchemaWithDefault<T extends FieldType, U> extends IJsonBaseSchema<T> {
12
12
  default?: U;
13
13
  }
14
14
  export interface IPropertyObject {
@@ -37,4 +37,3 @@ export type IJsonBooleanSchema = IJsonBaseSchemaWithDefault<"boolean", boolean>;
37
37
  export type IJsonIntegerSchema = IJsonBaseSchemaWithDefault<"integer", number>;
38
38
  export type IJsonNumberSchema = IJsonBaseSchemaWithDefault<"number", number>;
39
39
  export type JsonSchema = IJsonObjectSchema | IJsonStringSchema | IJsonArraySchema | IJsonBooleanSchema | IJsonIntegerSchema | IJsonNumberSchema;
40
- export {};
package/package.json CHANGED
@@ -18,7 +18,7 @@
18
18
  "require": "./dist/data-sdk.umd.js"
19
19
  }
20
20
  },
21
- "version": "0.0.128",
21
+ "version": "0.0.130",
22
22
  "scripts": {
23
23
  "dev": "vite --port 9146",
24
24
  "build": "tsc && vite build",