@formant/data-sdk 1.5.3 → 1.5.4

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.
@@ -0,0 +1,2 @@
1
+ import { IDevice } from "../model/IDevice";
2
+ export declare function createDevice(device: IDevice): Promise<IDevice>;
@@ -0,0 +1,2 @@
1
+ import { IDevice } from "../model/IDevice";
2
+ export declare function getDevicesData(): Promise<IDevice[]>;
@@ -0,0 +1,2 @@
1
+ import { IDevice } from "../model/IDevice";
2
+ export declare function patchDevice(id: string, device: Partial<IDevice>): Promise<IDevice>;
@@ -0,0 +1,3 @@
1
+ import { IDeviceQuery } from "../model/IDeviceQuery";
2
+ import { IDevice } from "../model/IDevice";
3
+ export declare function queryDevicesData(query: IDeviceQuery): Promise<IDevice[]>;
@@ -11,13 +11,20 @@ import { SessionType } from "../model/SessionType";
11
11
  import { Command, ConfigurationDocument, IStartRealtimeConnectionOptions, TelemetryStream } from "./device.types";
12
12
  import { BaseDevice } from "./BaseDevice";
13
13
  import { ITags } from "../model/ITags";
14
- import { IDevice } from "../model/IDevice";
14
+ import { createDevice } from "../api/createDevice";
15
+ import { patchDevice } from "../api/patchDevice";
16
+ import { getDevicesData } from "../api/getDevicesData";
17
+ import { queryDevicesData } from "../api/queryDevicesData";
15
18
  export declare class Device extends BaseDevice {
16
19
  id: string;
17
20
  name: string;
18
21
  private organizationId;
19
22
  tags?: ITags | undefined;
20
23
  constructor(id: string, name: string, organizationId: string, tags?: ITags | undefined);
24
+ static createDevice: typeof createDevice;
25
+ static patchDevice: typeof patchDevice;
26
+ static getDevicesData: typeof getDevicesData;
27
+ static queryDevicesData: typeof queryDevicesData;
21
28
  getLatestTelemetry(): Promise<any>;
22
29
  getConfiguration(): Promise<ConfigurationDocument>;
23
30
  getFileUrl(fileId: string): Promise<string[]>;
@@ -59,6 +66,4 @@ export declare class Device extends BaseDevice {
59
66
  events: import("../main").IEvent[];
60
67
  }[]>;
61
68
  createShareLink(share: IShare, view: string): Promise<string | null>;
62
- createDevice(device: IDevice): Promise<IDevice>;
63
- patchDevice(id: string, device: Partial<IDevice>): Promise<IDevice>;
64
69
  }
@@ -140,5 +140,11 @@ export * from "./model/IAnalyticsModuleConfiguration";
140
140
  export * from "./model/IAggregateRow";
141
141
  export * from "./model/ISqlRow";
142
142
  export * from "./stores/IAuthenticationStore";
143
+ export * from "./model/IAccount";
144
+ export * from "./model/IAccountTree";
145
+ export * from "./model/IDevice";
146
+ export * from "./model/IFleet";
147
+ export * from "./model/IRole";
148
+ export * from "./model/IUser";
143
149
  export type { TelemetryResult } from "./model/TelemetryResult";
144
150
  import "./init.ts";
package/package.json CHANGED
@@ -24,7 +24,7 @@
24
24
  }
25
25
  }
26
26
  },
27
- "version": "1.5.3",
27
+ "version": "1.5.4",
28
28
  "scripts": {
29
29
  "preversion": "npm run verify",
30
30
  "postversion": "make",