@captureid/datatypes 1.0.47 → 1.0.49

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/lib/enums.d.ts CHANGED
@@ -214,6 +214,15 @@ export declare namespace ModuleType {
214
214
  function valueOf(str: string): number;
215
215
  function values(): any[];
216
216
  }
217
+ export declare enum RTStateEventType {
218
+ EVENT_UNKNOWN = 0,
219
+ EVENT_STORE = 1,
220
+ EVENT_USER = 2
221
+ }
222
+ export declare namespace RTStateEventType {
223
+ function valueOf(str: string): number;
224
+ function values(): any[];
225
+ }
217
226
  export declare enum RegistrationState {
218
227
  UNKNOWN = 0,
219
228
  REQUESTED = 1,
@@ -324,6 +333,7 @@ export declare enum Status {
324
333
  PENDING = 6,
325
334
  ABORTED = 7,
326
335
  TIMEOUT = 8,
336
+ CONNECTED = 9,
327
337
  UNKNOWN = 99
328
338
  }
329
339
  export declare namespace Status {
@@ -1,8 +1,15 @@
1
+ import { RTStateEventType, Status } from "../../enums";
1
2
  import { Company } from "../common/company-object";
2
3
  import { Store } from "../common/store-object";
3
4
  import { Tenant } from "../common/tenant-object";
4
5
  import { User } from "../common/user-object";
6
+ import { DataDto } from "../data-dto";
5
7
  import { DataObject } from "../data-object";
8
+ export interface RTStateEvent {
9
+ eventtype: RTStateEventType;
10
+ status: Status;
11
+ data: DataDto;
12
+ }
6
13
  export interface RTStateTopic {
7
14
  id: string;
8
15
  name: string;
@@ -2,10 +2,10 @@ import { DataObject } from "../data-object";
2
2
  export interface StatisticData {
3
3
  id: string;
4
4
  name: string;
5
- value: number;
5
+ value: number | string | boolean;
6
6
  }
7
7
  export declare class StatisticData implements StatisticData {
8
- constructor(id?: string, name?: string, value?: number);
8
+ constructor(id?: string, name?: string, value?: number | string | boolean);
9
9
  }
10
10
  export interface StatisticObject {
11
11
  data: StatisticData[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@captureid/datatypes",
3
- "version": "1.0.47",
3
+ "version": "1.0.49",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=17.0.0",
6
6
  "@angular/core": ">=17.0.0"