@rtsee/events-manager 0.0.47 → 0.0.48

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.
Files changed (93) hide show
  1. package/dist/events-manager/src/interfaces/RTSeeEventsManagerOptions.d.ts +3 -1
  2. package/dist/events-manager/src/interfaces/RTSeeEventsManagerOptions.d.ts.map +1 -1
  3. package/dist/events-manager/src/interfaces/index.d.ts +0 -10
  4. package/dist/events-manager/src/interfaces/index.d.ts.map +1 -1
  5. package/dist/events-manager/src/interfaces/index.js +0 -10
  6. package/dist/events-manager/src/interfaces/index.js.map +1 -1
  7. package/dist/events-manager/src/models/Client.d.ts +2 -1
  8. package/dist/events-manager/src/models/Client.d.ts.map +1 -1
  9. package/dist/events-manager/src/models/Client.js +36 -50
  10. package/dist/events-manager/src/models/Client.js.map +1 -1
  11. package/dist/events-manager/src/models/Event.d.ts +1 -1
  12. package/dist/events-manager/src/models/Event.d.ts.map +1 -1
  13. package/dist/events-manager/src/models/Event.js +6 -7
  14. package/dist/events-manager/src/models/Event.js.map +1 -1
  15. package/dist/events-manager/src/models/EventsManagerClientSession.d.ts +1 -1
  16. package/dist/events-manager/src/models/EventsManagerClientSession.d.ts.map +1 -1
  17. package/dist/events-manager/src/models/EventsManagerClientSession.js +20 -22
  18. package/dist/events-manager/src/models/EventsManagerClientSession.js.map +1 -1
  19. package/dist/events-manager/src/models/RTSeeEventsManager.d.ts +14 -17
  20. package/dist/events-manager/src/models/RTSeeEventsManager.d.ts.map +1 -1
  21. package/dist/events-manager/src/models/RTSeeEventsManager.js +121 -199
  22. package/dist/events-manager/src/models/RTSeeEventsManager.js.map +1 -1
  23. package/dist/events-manager/src/models/RTSeeEventsProcessor.js +14 -57
  24. package/dist/events-manager/src/models/RTSeeEventsProcessor.js.map +1 -1
  25. package/dist/events-manager/src/models/index.d.ts +0 -6
  26. package/dist/events-manager/src/models/index.d.ts.map +1 -1
  27. package/dist/events-manager/src/models/index.js +0 -6
  28. package/dist/events-manager/src/models/index.js.map +1 -1
  29. package/package.json +2 -2
  30. package/dist/events-manager/src/interfaces/Client.d.ts +0 -6
  31. package/dist/events-manager/src/interfaces/Client.d.ts.map +0 -1
  32. package/dist/events-manager/src/interfaces/Client.js +0 -3
  33. package/dist/events-manager/src/interfaces/Client.js.map +0 -1
  34. package/dist/events-manager/src/interfaces/ClientSession.d.ts +0 -11
  35. package/dist/events-manager/src/interfaces/ClientSession.d.ts.map +0 -1
  36. package/dist/events-manager/src/interfaces/ClientSession.js +0 -3
  37. package/dist/events-manager/src/interfaces/ClientSession.js.map +0 -1
  38. package/dist/events-manager/src/interfaces/DashboardClientSessionOptions.d.ts +0 -11
  39. package/dist/events-manager/src/interfaces/DashboardClientSessionOptions.d.ts.map +0 -1
  40. package/dist/events-manager/src/interfaces/DashboardClientSessionOptions.js +0 -3
  41. package/dist/events-manager/src/interfaces/DashboardClientSessionOptions.js.map +0 -1
  42. package/dist/events-manager/src/interfaces/DeviceDetectionResult.d.ts +0 -34
  43. package/dist/events-manager/src/interfaces/DeviceDetectionResult.d.ts.map +0 -1
  44. package/dist/events-manager/src/interfaces/DeviceDetectionResult.js +0 -3
  45. package/dist/events-manager/src/interfaces/DeviceDetectionResult.js.map +0 -1
  46. package/dist/events-manager/src/interfaces/EventsCollectorOptions.d.ts +0 -3
  47. package/dist/events-manager/src/interfaces/EventsCollectorOptions.d.ts.map +0 -1
  48. package/dist/events-manager/src/interfaces/EventsCollectorOptions.js +0 -3
  49. package/dist/events-manager/src/interfaces/EventsCollectorOptions.js.map +0 -1
  50. package/dist/events-manager/src/interfaces/EventsManagerMessages.d.ts +0 -13
  51. package/dist/events-manager/src/interfaces/EventsManagerMessages.d.ts.map +0 -1
  52. package/dist/events-manager/src/interfaces/EventsManagerMessages.js +0 -17
  53. package/dist/events-manager/src/interfaces/EventsManagerMessages.js.map +0 -1
  54. package/dist/events-manager/src/interfaces/RTSeeDashboardClient.d.ts +0 -9
  55. package/dist/events-manager/src/interfaces/RTSeeDashboardClient.d.ts.map +0 -1
  56. package/dist/events-manager/src/interfaces/RTSeeDashboardClient.js +0 -3
  57. package/dist/events-manager/src/interfaces/RTSeeDashboardClient.js.map +0 -1
  58. package/dist/events-manager/src/interfaces/RTSeeDashboardEvent.d.ts +0 -9
  59. package/dist/events-manager/src/interfaces/RTSeeDashboardEvent.d.ts.map +0 -1
  60. package/dist/events-manager/src/interfaces/RTSeeDashboardEvent.js +0 -3
  61. package/dist/events-manager/src/interfaces/RTSeeDashboardEvent.js.map +0 -1
  62. package/dist/events-manager/src/interfaces/RTSeeEventsDashboardOptions.d.ts +0 -7
  63. package/dist/events-manager/src/interfaces/RTSeeEventsDashboardOptions.d.ts.map +0 -1
  64. package/dist/events-manager/src/interfaces/RTSeeEventsDashboardOptions.js +0 -3
  65. package/dist/events-manager/src/interfaces/RTSeeEventsDashboardOptions.js.map +0 -1
  66. package/dist/events-manager/src/interfaces/RTSeeEventsManagerSignalingClient.d.ts +0 -7
  67. package/dist/events-manager/src/interfaces/RTSeeEventsManagerSignalingClient.d.ts.map +0 -1
  68. package/dist/events-manager/src/interfaces/RTSeeEventsManagerSignalingClient.js +0 -3
  69. package/dist/events-manager/src/interfaces/RTSeeEventsManagerSignalingClient.js.map +0 -1
  70. package/dist/events-manager/src/models/DashboardClient.d.ts +0 -22
  71. package/dist/events-manager/src/models/DashboardClient.d.ts.map +0 -1
  72. package/dist/events-manager/src/models/DashboardClient.js +0 -70
  73. package/dist/events-manager/src/models/DashboardClient.js.map +0 -1
  74. package/dist/events-manager/src/models/DashboardClientSession.d.ts +0 -22
  75. package/dist/events-manager/src/models/DashboardClientSession.d.ts.map +0 -1
  76. package/dist/events-manager/src/models/DashboardClientSession.js +0 -59
  77. package/dist/events-manager/src/models/DashboardClientSession.js.map +0 -1
  78. package/dist/events-manager/src/models/DashboardEvent.d.ts +0 -11
  79. package/dist/events-manager/src/models/DashboardEvent.d.ts.map +0 -1
  80. package/dist/events-manager/src/models/DashboardEvent.js +0 -19
  81. package/dist/events-manager/src/models/DashboardEvent.js.map +0 -1
  82. package/dist/events-manager/src/models/RTSeeEventsCollector.d.ts +0 -9
  83. package/dist/events-manager/src/models/RTSeeEventsCollector.d.ts.map +0 -1
  84. package/dist/events-manager/src/models/RTSeeEventsCollector.js +0 -48
  85. package/dist/events-manager/src/models/RTSeeEventsCollector.js.map +0 -1
  86. package/dist/events-manager/src/models/RTSeeEventsDashboard.d.ts +0 -27
  87. package/dist/events-manager/src/models/RTSeeEventsDashboard.d.ts.map +0 -1
  88. package/dist/events-manager/src/models/RTSeeEventsDashboard.js +0 -167
  89. package/dist/events-manager/src/models/RTSeeEventsDashboard.js.map +0 -1
  90. package/dist/events-manager/src/models/SessionAgent.d.ts +0 -26
  91. package/dist/events-manager/src/models/SessionAgent.d.ts.map +0 -1
  92. package/dist/events-manager/src/models/SessionAgent.js +0 -118
  93. package/dist/events-manager/src/models/SessionAgent.js.map +0 -1
@@ -1,34 +0,0 @@
1
- export type DeviceType = "" | "desktop" | "smartphone" | "tablet" | "television" | "smart display" | "camera" | "car" | "console" | "portable media player" | "phablet" | "wearable" | "smart speaker" | "feature phone" | "peripheral";
2
- export interface IClient {
3
- type: string;
4
- name: string;
5
- version: string;
6
- engine?: string;
7
- engineVersion?: string;
8
- }
9
- export interface IDevice {
10
- type: DeviceType;
11
- brand: string;
12
- model: string;
13
- }
14
- export interface IOS {
15
- name: string;
16
- version: string;
17
- platform: "ARM" | "x64" | "x86" | "MIPS" | "SuperH" | "";
18
- }
19
- export interface IBot {
20
- name: string;
21
- category: string;
22
- url: string;
23
- producer: {
24
- name: string;
25
- url: string;
26
- };
27
- }
28
- export interface IDeviceDetectionResult {
29
- client: IClient | null;
30
- device: IDevice | null;
31
- os: IOS | null;
32
- bot: IBot | null;
33
- }
34
- //# sourceMappingURL=DeviceDetectionResult.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DeviceDetectionResult.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/DeviceDetectionResult.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAClB,EAAE,GACF,SAAS,GACT,YAAY,GACZ,QAAQ,GACR,YAAY,GACZ,eAAe,GACf,QAAQ,GACR,KAAK,GACL,SAAS,GACT,uBAAuB,GACvB,SAAS,GACT,UAAU,GACV,eAAe,GACf,eAAe,GACf,YAAY,CAAC;AACjB,MAAM,WAAW,OAAO;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AACD,MAAM,WAAW,OAAO;IACtB,IAAI,EAAE,UAAU,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,GAAG;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,MAAM,GAAG,QAAQ,GAAG,EAAE,CAAC;CAC1D;AAED,MAAM,WAAW,IAAI;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE;QACR,IAAI,EAAE,MAAM,CAAC;QACb,GAAG,EAAE,MAAM,CAAC;KACb,CAAC;CACH;AAED,MAAM,WAAW,sBAAsB;IACrC,MAAM,EAAE,OAAO,GAAG,IAAI,CAAC;IACvB,MAAM,EAAE,OAAO,GAAG,IAAI,CAAC;IACvB,EAAE,EAAE,GAAG,GAAG,IAAI,CAAC;IACf,GAAG,EAAE,IAAI,GAAG,IAAI,CAAC;CAClB"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=DeviceDetectionResult.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DeviceDetectionResult.js","sourceRoot":"","sources":["../../../../src/interfaces/DeviceDetectionResult.ts"],"names":[],"mappings":""}
@@ -1,3 +0,0 @@
1
- import { IRTSeeCoreOptions } from "@rtsee/core";
2
- export type IRTSeeEventsCollectorOptions = IRTSeeCoreOptions;
3
- //# sourceMappingURL=EventsCollectorOptions.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"EventsCollectorOptions.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/EventsCollectorOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAEhD,MAAM,MAAM,4BAA4B,GAAG,iBAAiB,CAAC"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=EventsCollectorOptions.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"EventsCollectorOptions.js","sourceRoot":"","sources":["../../../../src/interfaces/EventsCollectorOptions.ts"],"names":[],"mappings":""}
@@ -1,13 +0,0 @@
1
- export declare enum RTSeeEventsManagerMessages {
2
- EVENT = "rtsee-event",
3
- DASHBOARD_CONNECT = "dashboard-connect",
4
- DASHBOARD_ADMIN_AUTHENTICATED = "dashboard-admin-authenticated",
5
- DASHBOARD_ADMIN_AUTH_FAILURE = "dashboard-admin-auth-failure",
6
- CLIENT_CONNECTED = "client-connected",
7
- CLIENT_DISCONNECTED = "client-disconnected",
8
- SESSION_STARTED = "session-started",
9
- SESSION_ENDED = "session-ended",
10
- SESSION_UPDATED = "session-updated",
11
- USER_AGENT = "rtsee-user-agent"
12
- }
13
- //# sourceMappingURL=EventsManagerMessages.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"EventsManagerMessages.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/EventsManagerMessages.ts"],"names":[],"mappings":"AAAA,oBAAY,0BAA0B;IACpC,KAAK,gBAAgB;IACrB,iBAAiB,sBAAsB;IACvC,6BAA6B,kCAAkC;IAC/D,4BAA4B,iCAAiC;IAC7D,gBAAgB,qBAAqB;IACrC,mBAAmB,wBAAwB;IAC3C,eAAe,oBAAoB;IACnC,aAAa,kBAAkB;IAC/B,eAAe,oBAAoB;IACnC,UAAU,qBAAqB;CAChC"}
@@ -1,17 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RTSeeEventsManagerMessages = void 0;
4
- var RTSeeEventsManagerMessages;
5
- (function (RTSeeEventsManagerMessages) {
6
- RTSeeEventsManagerMessages["EVENT"] = "rtsee-event";
7
- RTSeeEventsManagerMessages["DASHBOARD_CONNECT"] = "dashboard-connect";
8
- RTSeeEventsManagerMessages["DASHBOARD_ADMIN_AUTHENTICATED"] = "dashboard-admin-authenticated";
9
- RTSeeEventsManagerMessages["DASHBOARD_ADMIN_AUTH_FAILURE"] = "dashboard-admin-auth-failure";
10
- RTSeeEventsManagerMessages["CLIENT_CONNECTED"] = "client-connected";
11
- RTSeeEventsManagerMessages["CLIENT_DISCONNECTED"] = "client-disconnected";
12
- RTSeeEventsManagerMessages["SESSION_STARTED"] = "session-started";
13
- RTSeeEventsManagerMessages["SESSION_ENDED"] = "session-ended";
14
- RTSeeEventsManagerMessages["SESSION_UPDATED"] = "session-updated";
15
- RTSeeEventsManagerMessages["USER_AGENT"] = "rtsee-user-agent";
16
- })(RTSeeEventsManagerMessages || (exports.RTSeeEventsManagerMessages = RTSeeEventsManagerMessages = {}));
17
- //# sourceMappingURL=EventsManagerMessages.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"EventsManagerMessages.js","sourceRoot":"","sources":["../../../../src/interfaces/EventsManagerMessages.ts"],"names":[],"mappings":";;;AAAA,IAAY,0BAWX;AAXD,WAAY,0BAA0B;IACpC,mDAAqB,CAAA;IACrB,qEAAuC,CAAA;IACvC,6FAA+D,CAAA;IAC/D,2FAA6D,CAAA;IAC7D,mEAAqC,CAAA;IACrC,yEAA2C,CAAA;IAC3C,iEAAmC,CAAA;IACnC,6DAA+B,CAAA;IAC/B,iEAAmC,CAAA;IACnC,6DAA+B,CAAA;AACjC,CAAC,EAXW,0BAA0B,0CAA1B,0BAA0B,QAWrC"}
@@ -1,9 +0,0 @@
1
- import { IRTSeeDashboardClientSessionOptions } from "@rtsee/events-manager";
2
- import { IPeerInfo } from "@rtsee/core";
3
- export interface IRTSeeDashboardClient extends IPeerInfo {
4
- id: string;
5
- isAnonymous?: boolean;
6
- connectedAt: Date;
7
- sessions?: IRTSeeDashboardClientSessionOptions[];
8
- }
9
- //# sourceMappingURL=RTSeeDashboardClient.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RTSeeDashboardClient.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/RTSeeDashboardClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mCAAmC,EAAE,MAAM,uBAAuB,CAAC;AAC5E,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,MAAM,WAAW,qBAAsB,SAAQ,SAAS;IACtD,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,WAAW,EAAE,IAAI,CAAC;IAClB,QAAQ,CAAC,EAAE,mCAAmC,EAAE,CAAC;CAClD"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=RTSeeDashboardClient.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RTSeeDashboardClient.js","sourceRoot":"","sources":["../../../../src/interfaces/RTSeeDashboardClient.ts"],"names":[],"mappings":""}
@@ -1,9 +0,0 @@
1
- export interface IRTSeeDashboardEvent<T = any> {
2
- id?: string;
3
- sessionId: string;
4
- name: string;
5
- createdAt?: Date;
6
- widget?: string;
7
- data?: T;
8
- }
9
- //# sourceMappingURL=RTSeeDashboardEvent.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RTSeeDashboardEvent.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/RTSeeDashboardEvent.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,oBAAoB,CAAC,CAAC,GAAG,GAAG;IAC3C,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,IAAI,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,CAAC,CAAC;CACV"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=RTSeeDashboardEvent.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RTSeeDashboardEvent.js","sourceRoot":"","sources":["../../../../src/interfaces/RTSeeDashboardEvent.ts"],"names":[],"mappings":""}
@@ -1,7 +0,0 @@
1
- import { IRTSeeEventsManagerSignalingClient } from "@rtsee/events-manager";
2
- import { IRTSeeCoreOptions, IRTSeeElements } from "@rtsee/core";
3
- export interface IRTSeeEventsDashboardOptions extends IRTSeeCoreOptions, IRTSeeElements {
4
- token: string;
5
- signalingClient: IRTSeeEventsManagerSignalingClient;
6
- }
7
- //# sourceMappingURL=RTSeeEventsDashboardOptions.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RTSeeEventsDashboardOptions.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/RTSeeEventsDashboardOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kCAAkC,EAAE,MAAM,uBAAuB,CAAC;AAC3E,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAEhE,MAAM,WAAW,4BACf,SAAQ,iBAAiB,EACvB,cAAc;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,eAAe,EAAE,kCAAkC,CAAC;CACrD"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=RTSeeEventsDashboardOptions.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RTSeeEventsDashboardOptions.js","sourceRoot":"","sources":["../../../../src/interfaces/RTSeeEventsDashboardOptions.ts"],"names":[],"mappings":""}
@@ -1,7 +0,0 @@
1
- import { IRTSeeDashboardEvent, RTSeeEventsDashboard } from "@rtsee/events-manager";
2
- import { IRTSeeSignalingClientBase } from "@rtsee/core";
3
- export interface IRTSeeEventsManagerSignalingClient extends IRTSeeSignalingClientBase {
4
- sendMessage<T>(event: Omit<IRTSeeDashboardEvent<T>, "sessionId">): void;
5
- attachEventsDashboard(dashboard: RTSeeEventsDashboard): void;
6
- }
7
- //# sourceMappingURL=RTSeeEventsManagerSignalingClient.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RTSeeEventsManagerSignalingClient.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/RTSeeEventsManagerSignalingClient.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,yBAAyB,EAAE,MAAM,aAAa,CAAC;AAExD,MAAM,WAAW,kCACf,SAAQ,yBAAyB;IACjC,WAAW,CAAC,CAAC,EAAE,KAAK,EAAE,IAAI,CAAC,oBAAoB,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,GAAG,IAAI,CAAC;IACxE,qBAAqB,CAAC,SAAS,EAAE,oBAAoB,GAAG,IAAI,CAAC;CAC9D"}
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- //# sourceMappingURL=RTSeeEventsManagerSignalingClient.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RTSeeEventsManagerSignalingClient.js","sourceRoot":"","sources":["../../../../src/interfaces/RTSeeEventsManagerSignalingClient.ts"],"names":[],"mappings":""}
@@ -1,22 +0,0 @@
1
- import { IRTSeeDashboardClient, IRTSeeDashboardClientSessionOptions, IRTSeeDashboardEvent, RTSeeDashboardClientSession } from "@rtsee/events-manager";
2
- export declare class RTSeeDashboardClient {
3
- id: string;
4
- name?: string;
5
- imageUrl?: string;
6
- url?: string;
7
- isAnonymous: boolean;
8
- sessions: RTSeeDashboardClientSession[];
9
- connectedAt: Date;
10
- isConnected: boolean;
11
- constructor(clientData: IRTSeeDashboardClient);
12
- init(clientData: IRTSeeDashboardClient): void;
13
- addEvent(eventData: IRTSeeDashboardEvent): void;
14
- populateSessions(sessions: IRTSeeDashboardClientSessionOptions[]): void;
15
- addSession(sessionData: IRTSeeDashboardClientSessionOptions): void;
16
- removeSessionById(id: string): void;
17
- getSessionById(id: string): RTSeeDashboardClientSession | null;
18
- onDisconnected(): void;
19
- merge(clientData: IRTSeeDashboardClient): void;
20
- sortClients(): void;
21
- }
22
- //# sourceMappingURL=DashboardClient.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DashboardClient.d.ts","sourceRoot":"","sources":["../../../../src/models/DashboardClient.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,mCAAmC,EACnC,oBAAoB,EACpB,2BAA2B,EAC5B,MAAM,uBAAuB,CAAC;AAE/B,qBAAa,oBAAoB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,WAAW,UAAS;IACpB,QAAQ,EAAE,2BAA2B,EAAE,CAAM;IAC7C,WAAW,EAAE,IAAI,CAAC;IAClB,WAAW,EAAE,OAAO,CAAC;gBAET,UAAU,EAAE,qBAAqB;IAK7C,IAAI,CAAC,UAAU,EAAE,qBAAqB;IAkBtC,QAAQ,CAAC,SAAS,EAAE,oBAAoB;IAQxC,gBAAgB,CAAC,QAAQ,EAAE,mCAAmC,EAAE;IAIhE,UAAU,CAAC,WAAW,EAAE,mCAAmC;IAK3D,iBAAiB,CAAC,EAAE,EAAE,MAAM;IAS5B,cAAc,CAAC,EAAE,EAAE,MAAM,GAAG,2BAA2B,GAAG,IAAI;IAI9D,cAAc;IAId,KAAK,CAAC,UAAU,EAAE,qBAAqB;IAKvC,WAAW;CAKZ"}
@@ -1,70 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RTSeeDashboardClient = void 0;
4
- var events_manager_1 = require("@rtsee/events-manager");
5
- var RTSeeDashboardClient = /** @class */ (function () {
6
- function RTSeeDashboardClient(clientData) {
7
- this.isAnonymous = false;
8
- this.sessions = [];
9
- this.id = clientData.id;
10
- this.init(clientData);
11
- }
12
- RTSeeDashboardClient.prototype.init = function (clientData) {
13
- if (clientData.name) {
14
- this.name = clientData.name;
15
- }
16
- if (clientData.imageUrl) {
17
- this.imageUrl = clientData.imageUrl;
18
- }
19
- if (clientData.url) {
20
- this.url = clientData.url;
21
- }
22
- if (clientData.isAnonymous) {
23
- this.isAnonymous = clientData.isAnonymous;
24
- }
25
- this.connectedAt = clientData.connectedAt;
26
- this.populateSessions(clientData.sessions);
27
- this.isConnected = true;
28
- };
29
- RTSeeDashboardClient.prototype.addEvent = function (eventData) {
30
- var session = this.getSessionById(eventData.sessionId);
31
- if (!session) {
32
- return;
33
- }
34
- session.addEvent(eventData);
35
- };
36
- RTSeeDashboardClient.prototype.populateSessions = function (sessions) {
37
- var _this = this;
38
- sessions.forEach(function (elem) { return _this.addSession(elem); });
39
- };
40
- RTSeeDashboardClient.prototype.addSession = function (sessionData) {
41
- var session = new events_manager_1.RTSeeDashboardClientSession(sessionData);
42
- this.sessions.unshift(session);
43
- };
44
- RTSeeDashboardClient.prototype.removeSessionById = function (id) {
45
- var session = this.getSessionById(id);
46
- if (!session) {
47
- console.log("No session with id: ", id);
48
- return;
49
- }
50
- session.onDisconnected();
51
- };
52
- RTSeeDashboardClient.prototype.getSessionById = function (id) {
53
- return this.sessions.find(function (e) { return e.id === id; });
54
- };
55
- RTSeeDashboardClient.prototype.onDisconnected = function () {
56
- this.isConnected = false;
57
- };
58
- RTSeeDashboardClient.prototype.merge = function (clientData) {
59
- this.init(clientData);
60
- this.sortClients();
61
- };
62
- RTSeeDashboardClient.prototype.sortClients = function () {
63
- this.sessions.sort(function (a, b) {
64
- return a.connectedAt > b.connectedAt ? -1 : 1;
65
- });
66
- };
67
- return RTSeeDashboardClient;
68
- }());
69
- exports.RTSeeDashboardClient = RTSeeDashboardClient;
70
- //# sourceMappingURL=DashboardClient.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DashboardClient.js","sourceRoot":"","sources":["../../../../src/models/DashboardClient.ts"],"names":[],"mappings":";;;AAAA,wDAK+B;AAE/B;IAUE,8BAAY,UAAiC;QAL7C,gBAAW,GAAG,KAAK,CAAC;QACpB,aAAQ,GAAkC,EAAE,CAAC;QAK3C,IAAI,CAAC,EAAE,GAAG,UAAU,CAAC,EAAE,CAAC;QACxB,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IACxB,CAAC;IAED,mCAAI,GAAJ,UAAK,UAAiC;QACpC,IAAI,UAAU,CAAC,IAAI,EAAE;YACnB,IAAI,CAAC,IAAI,GAAG,UAAU,CAAC,IAAI,CAAC;SAC7B;QACD,IAAI,UAAU,CAAC,QAAQ,EAAE;YACvB,IAAI,CAAC,QAAQ,GAAG,UAAU,CAAC,QAAQ,CAAC;SACrC;QACD,IAAI,UAAU,CAAC,GAAG,EAAE;YAClB,IAAI,CAAC,GAAG,GAAG,UAAU,CAAC,GAAG,CAAC;SAC3B;QACD,IAAI,UAAU,CAAC,WAAW,EAAE;YAC1B,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC,WAAW,CAAC;SAC3C;QACD,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC,WAAW,CAAC;QAC1C,IAAI,CAAC,gBAAgB,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;QAC3C,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;IAC1B,CA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AAQ,CAAC,IAAI,CAAC,UAAC,CAAC,EAAE,CAAC;YACtB,OAAO,CAAC,CAAC,WAAW,GAAG,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAChD,CAAC,CAAC,CAAC;IACL,CAAC;IACH,2BAAC;AAAD,CAAC,AA7ED,IA6EC;AA7EY,oDAAoB"}
@@ -1,22 +0,0 @@
1
- import { RTSeeDashboardEvent } from "./DashboardEvent";
2
- import { IDeviceDetectionResult, IRTSeeDashboardClientSessionOptions, IRTSeeDashboardEvent, IRTSeeSessionInfo, RTSeeSessionAgent } from "@rtsee/events-manager";
3
- export declare class RTSeeDashboardClientSession {
4
- id: string;
5
- events: RTSeeDashboardEvent[];
6
- connectedAt: Date;
7
- isConnected: boolean;
8
- agent?: RTSeeSessionAgent;
9
- isActive?: boolean;
10
- clientId: string;
11
- info?: IRTSeeSessionInfo;
12
- constructor(clientData: IRTSeeDashboardClientSessionOptions);
13
- init(clientData: IRTSeeDashboardClientSessionOptions): void;
14
- populateData(options: IRTSeeDashboardClientSessionOptions): void;
15
- populateEvents(events: IRTSeeDashboardEvent[]): void;
16
- addEvent<T>(event: IRTSeeDashboardEvent<T>): RTSeeDashboardEvent<T>;
17
- merge(sessionData: IRTSeeDashboardClientSessionOptions): void;
18
- onDisconnected(): void;
19
- setAgent(agent: IDeviceDetectionResult): void;
20
- private sortEvents;
21
- }
22
- //# sourceMappingURL=DashboardClientSession.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DashboardClientSession.d.ts","sourceRoot":"","sources":["../../../../src/models/DashboardClientSession.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AACvD,OAAO,EACL,sBAAsB,EACtB,mCAAmC,EACnC,oBAAoB,EACpB,iBAAiB,EACjB,iBAAiB,EAClB,MAAM,uBAAuB,CAAC;AAE/B,qBAAa,2BAA2B;IACtC,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,mBAAmB,EAAE,CAAM;IACnC,WAAW,EAAE,IAAI,CAAC;IAClB,WAAW,EAAE,OAAO,CAAC;IACrB,KAAK,CAAC,EAAE,iBAAiB,CAAC;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,iBAAiB,CAAC;gBAEb,UAAU,EAAE,mCAAmC;IAK3D,IAAI,CAAC,UAAU,EAAE,mCAAmC;IAQpD,YAAY,CAAC,OAAO,EAAE,mCAAmC;IASzD,cAAc,CAAC,MAAM,EAAE,oBAAoB,EAAE;IAI7C,QAAQ,CAAC,CAAC,EAAE,KAAK,EAAE,oBAAoB,CAAC,CAAC,CAAC;IAU1C,KAAK,CAAC,WAAW,EAAE,mCAAmC;IAKtD,cAAc;IAId,QAAQ,CAAC,KAAK,EAAE,sBAAsB;IAKtC,OAAO,CAAC,UAAU;CAKnB"}
@@ -1,59 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RTSeeDashboardClientSession = void 0;
4
- var DashboardEvent_1 = require("./DashboardEvent");
5
- var events_manager_1 = require("@rtsee/events-manager");
6
- var RTSeeDashboardClientSession = /** @class */ (function () {
7
- function RTSeeDashboardClientSession(clientData) {
8
- this.events = [];
9
- this.id = clientData.id;
10
- this.init(clientData);
11
- }
12
- RTSeeDashboardClientSession.prototype.init = function (clientData) {
13
- this.clientId = clientData.clientId;
14
- this.populateData(clientData);
15
- this.connectedAt = clientData.connectedAt;
16
- this.populateEvents(clientData.events);
17
- this.isConnected = true;
18
- };
19
- RTSeeDashboardClientSession.prototype.populateData = function (options) {
20
- if (options.agent) {
21
- this.setAgent(options.agent);
22
- }
23
- if (options.isActive) {
24
- this.isActive = options.isActive;
25
- }
26
- };
27
- RTSeeDashboardClientSession.prototype.populateEvents = function (events) {
28
- var _this = this;
29
- events.forEach(function (elem) { return _this.addEvent(elem); });
30
- };
31
- RTSeeDashboardClientSession.prototype.addEvent = function (event) {
32
- var existingEvent = this.events.find(function (e) { return e.id === event.id; });
33
- if (existingEvent) {
34
- return;
35
- }
36
- var newEvent = new DashboardEvent_1.RTSeeDashboardEvent(event);
37
- this.events.unshift(newEvent);
38
- return newEvent;
39
- };
40
- RTSeeDashboardClientSession.prototype.merge = function (sessionData) {
41
- this.init(sessionData);
42
- this.sortEvents();
43
- };
44
- RTSeeDashboardClientSession.prototype.onDisconnected = function () {
45
- this.isConnected = false;
46
- };
47
- RTSeeDashboardClientSession.prototype.setAgent = function (agent) {
48
- this.agent = new events_manager_1.RTSeeSessionAgent(agent);
49
- this.info = this.agent.getSessionInfo();
50
- };
51
- RTSeeDashboardClientSession.prototype.sortEvents = function () {
52
- this.events.sort(function (a, b) {
53
- return a.createdAt > b.createdAt ? -1 : 1;
54
- });
55
- };
56
- return RTSeeDashboardClientSession;
57
- }());
58
- exports.RTSeeDashboardClientSession = RTSeeDashboardClientSession;
59
- //# sourceMappingURL=DashboardClientSession.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DashboardClientSession.js","sourceRoot":"","sources":["../../../../src/models/DashboardClientSession.ts"],"names":[],"mappings":";;;AAAA,mDAAuD;AACvD,wDAM+B;AAE/B;IAUE,qCAAY,UAA+C;QAR3D,WAAM,GAA0B,EAAE,CAAC;QASjC,IAAI,CAAC,EAAE,GAAG,UAAU,CAAC,EAAE,CAAC;QACxB,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;IACxB,CAAC;IAED,0CAAI,GAAJ,UAAK,UAA+C;QAClD,IAAI,CAAC,QAAQ,GAAG,UAAU,CAAC,QAAQ,CAAC;QACpC,IAAI,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC;QAC9B,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC,WAAW,CAAC;QAC1C,IAAI,CAAC,cAAc,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;QACvC,IAAI,CAAC,WA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IAEO,gDAAU,GAAlB;QACE,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,UAAC,CAAC,EAAE,CAAC;YACpB,OAAO,CAAC,CAAC,SAAS,GAAG,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAC5C,CAAC,CAAC,CAAC;IACL,CAAC;IACH,kCAAC;AAAD,CAAC,AAjED,IAiEC;AAjEY,kEAA2B"}
@@ -1,11 +0,0 @@
1
- import { IRTSeeDashboardEvent } from "../interfaces/RTSeeDashboardEvent";
2
- export declare class RTSeeDashboardEvent<T = any> {
3
- id: string;
4
- sessionId: string;
5
- name: string;
6
- widget?: string;
7
- data?: T;
8
- createdAt: Date;
9
- constructor(options: IRTSeeDashboardEvent<T>);
10
- }
11
- //# sourceMappingURL=DashboardEvent.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DashboardEvent.d.ts","sourceRoot":"","sources":["../../../../src/models/DashboardEvent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAEzE,qBAAa,mBAAmB,CAAC,CAAC,GAAG,GAAG;IACtC,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,CAAC,CAAC;IACT,SAAS,EAAE,IAAI,CAAC;gBAEJ,OAAO,EAAE,oBAAoB,CAAC,CAAC,CAAC;CAY7C"}
@@ -1,19 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.RTSeeDashboardEvent = void 0;
4
- var RTSeeDashboardEvent = /** @class */ (function () {
5
- function RTSeeDashboardEvent(options) {
6
- this.name = options.name;
7
- this.createdAt = options.createdAt;
8
- this.sessionId = options.sessionId;
9
- if (options.id) {
10
- this.id = options.id;
11
- }
12
- if (options.data) {
13
- this.data = options.data;
14
- }
15
- }
16
- return RTSeeDashboardEvent;
17
- }());
18
- exports.RTSeeDashboardEvent = RTSeeDashboardEvent;
19
- //# sourceMappingURL=DashboardEvent.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DashboardEvent.js","sourceRoot":"","sources":["../../../../src/models/DashboardEvent.ts"],"names":[],"mappings":";;;AAEA;IAQE,6BAAY,OAAgC;QAC1C,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;QACzB,IAAI,CAAC,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;QACnC,IAAI,CAAC,SAAS,GAAG,OAAO,CAAC,SAAS,CAAC;QAEnC,IAAI,OAAO,CAAC,EAAE,EAAE;YACd,IAAI,CAAC,EAAE,GAAG,OAAO,CAAC,EAAE,CAAC;SACtB;QACD,IAAI,OAAO,CAAC,IAAI,EAAE;YAChB,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;SAC1B;IACH,CAAC;IACH,0BAAC;AAAD,CAAC,AApBD,IAoBC;AApBY,kDAAmB"}
@@ -1,9 +0,0 @@
1
- import { IRTSeeDashboardEvent, IRTSeeEventsCollectorOptions, IRTSeeEventsManagerSignalingClient } from "@rtsee/events-manager";
2
- import { RTSeeCore } from "@rtsee/core";
3
- export declare class RTSeeEventsCollector extends RTSeeCore {
4
- signalingClient: IRTSeeEventsManagerSignalingClient;
5
- constructor(options: IRTSeeEventsCollectorOptions);
6
- onReady(): void;
7
- send(event: Omit<IRTSeeDashboardEvent, "sessionId">): void;
8
- }
9
- //# sourceMappingURL=RTSeeEventsCollector.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RTSeeEventsCollector.d.ts","sourceRoot":"","sources":["../../../../src/models/RTSeeEventsCollector.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,oBAAoB,EACpB,4BAA4B,EAC5B,kCAAkC,EAEnC,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,qBAAa,oBAAqB,SAAQ,SAAS;IACjD,eAAe,EAAE,kCAAkC,CAAC;gBAExC,OAAO,EAAE,4BAA4B;IAQjD,OAAO;IAYP,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,oBAAoB,EAAE,WAAW,CAAC;CAGpD"}
@@ -1,48 +0,0 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.RTSeeEventsCollector = void 0;
19
- var events_manager_1 = require("@rtsee/events-manager");
20
- var core_1 = require("@rtsee/core");
21
- var RTSeeEventsCollector = /** @class */ (function (_super) {
22
- __extends(RTSeeEventsCollector, _super);
23
- function RTSeeEventsCollector(options) {
24
- var _this = _super.call(this, options) || this;
25
- _this.signalingClient.connect({
26
- eventsCollector: _this,
27
- });
28
- return _this;
29
- }
30
- RTSeeEventsCollector.prototype.onReady = function () {
31
- var _a;
32
- if ((_a = window === null || window === void 0 ? void 0 : window.navigator) === null || _a === void 0 ? void 0 : _a.userAgent) {
33
- this.send({
34
- name: events_manager_1.RTSeeEventsManagerMessages.USER_AGENT,
35
- data: {
36
- agent: window.navigator.userAgent,
37
- },
38
- createdAt: new Date(),
39
- });
40
- }
41
- };
42
- RTSeeEventsCollector.prototype.send = function (event) {
43
- this.signalingClient.sendMessage(event);
44
- };
45
- return RTSeeEventsCollector;
46
- }(core_1.RTSeeCore));
47
- exports.RTSeeEventsCollector = RTSeeEventsCollector;
48
- //# sourceMappingURL=RTSeeEventsCollector.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RTSeeEventsCollector.js","sourceRoot":"","sources":["../../../../src/models/RTSeeEventsCollector.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,wDAK+B;AAC/B,oCAAwC;AAExC;IAA0C,wCAAS;IAGjD,8BAAY,OAAqC;QAAjD,YACE,kBAAM,OAAO,CAAC,SAKf;QAHC,KAAI,CAAC,eAAe,CAAC,OAAO,CAAC;YAC3B,eAAe,EAAE,KAAI;SACtB,CAAC,CAAC;;IACL,CAAC;IAED,sCAAO,GAAP;;QACE,IAAI,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,SAAS,0CAAE,SAAS,EAAE;YAChC,IAAI,CAAC,IAAI,CAAC;gBACR,IAAI,EAAE,2CAA0B,CAAC,UAAU;gBAC3C,IAAI,EAAE;oBACJ,KAAK,EAAE,MAAM,CAAC,SAAS,CAAC,SAAS;iBAClC;gBACD,SAAS,EAAE,IAAI,IAAI,EAAE;aACtB,CAAC,CAAC;SACJ;IACH,CAAC;IAED,mCAAI,GAAJ,UAAK,KAA8C;QACjD,IAAI,CAAC,eAAe,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;IAC1C,CAAC;IACH,2BAAC;AAAD,CAAC,AA1BD,CAA0C,gBAAS,GA0BlD;AA1BY,oDAAoB"}
@@ -1,27 +0,0 @@
1
- import { RTSeeDashboardClient } from "./DashboardClient";
2
- import { IRTSeeDashboardClient, IRTSeeDashboardClientSessionOptions, IRTSeeDashboardEvent, IRTSeeEventsDashboardOptions, IRTSeeEventsManagerSignalingClient, RTSeeDashboardClientSession } from "@rtsee/events-manager";
3
- import { RTSeeCore, IRTSeeMessenger, IRTSeeConference } from "@rtsee/core";
4
- export declare class RTSeeEventsDashboard extends RTSeeCore {
5
- token: string;
6
- clients: RTSeeDashboardClient[];
7
- signalingClient: IRTSeeEventsManagerSignalingClient;
8
- rtSee?: IRTSeeConference;
9
- messenger?: IRTSeeMessenger;
10
- isReady: boolean;
11
- constructor(options: IRTSeeEventsDashboardOptions);
12
- onReady(): void;
13
- connectSignalingClient(): void;
14
- populate(clients: IRTSeeDashboardClient[]): void;
15
- addClient(clientData: IRTSeeDashboardClient): void;
16
- removeClient(clientData: RTSeeDashboardClient): void;
17
- addSession(sessionData: IRTSeeDashboardClientSessionOptions): void;
18
- removeSessionById(clientId: string, sessionId: string): void;
19
- getSession(clientId: string, sessionId: string): RTSeeDashboardClientSession | null;
20
- removeClientById(id: string): void;
21
- getClientById(id: string): RTSeeDashboardClient | null;
22
- processIncomingEvent<T>(clientId: string, event: IRTSeeDashboardEvent<T>): void;
23
- setSessionsData(sessionData: IRTSeeDashboardClientSessionOptions): void;
24
- openChat(client: RTSeeDashboardClient): void;
25
- private sortClients;
26
- }
27
- //# sourceMappingURL=RTSeeEventsDashboard.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"RTSeeEventsDashboard.d.ts","sourceRoot":"","sources":["../../../../src/models/RTSeeEventsDashboard.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,mBAAmB,CAAC;AACzD,OAAO,EACL,qBAAqB,EACrB,mCAAmC,EACnC,oBAAoB,EACpB,4BAA4B,EAC5B,kCAAkC,EAClC,2BAA2B,EAE5B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE3E,qBAAa,oBAAqB,SAAQ,SAAS;IACjD,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,oBAAoB,EAAE,CAAM;IACrC,eAAe,EAAE,kCAAkC,CAAC;IACpD,KAAK,CAAC,EAAE,gBAAgB,CAAC;IACzB,SAAS,CAAC,EAAE,eAAe,CAAC;IAC5B,OAAO,UAAS;gBAEJ,O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