@rtsee/events-manager 0.0.28 → 0.0.30
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/dist/events-manager/src/index.js +1 -1
- package/dist/events-manager/src/interfaces/Client.d.ts +1 -1
- package/dist/events-manager/src/interfaces/Client.d.ts.map +1 -1
- package/dist/events-manager/src/interfaces/ClientSession.d.ts +11 -0
- package/dist/events-manager/src/interfaces/ClientSession.d.ts.map +1 -0
- package/dist/events-manager/src/interfaces/ClientSession.js +3 -0
- package/dist/events-manager/src/interfaces/ClientSession.js.map +1 -0
- package/dist/events-manager/src/interfaces/DashboardClientSessionOptions.d.ts +11 -0
- package/dist/events-manager/src/interfaces/DashboardClientSessionOptions.d.ts.map +1 -0
- package/dist/events-manager/src/interfaces/DashboardClientSessionOptions.js +3 -0
- package/dist/events-manager/src/interfaces/DashboardClientSessionOptions.js.map +1 -0
- package/dist/events-manager/src/interfaces/DeviceDetectionResult.d.ts +34 -0
- package/dist/events-manager/src/interfaces/DeviceDetectionResult.d.ts.map +1 -0
- package/dist/events-manager/src/interfaces/DeviceDetectionResult.js +3 -0
- package/dist/events-manager/src/interfaces/DeviceDetectionResult.js.map +1 -0
- package/dist/events-manager/src/interfaces/EventOptions.d.ts +2 -1
- package/dist/events-manager/src/interfaces/EventOptions.d.ts.map +1 -1
- package/dist/events-manager/src/interfaces/EventsCollectorOptions.d.ts +3 -0
- package/dist/events-manager/src/interfaces/EventsCollectorOptions.d.ts.map +1 -0
- package/dist/events-manager/src/interfaces/EventsCollectorOptions.js +3 -0
- package/dist/events-manager/src/interfaces/EventsCollectorOptions.js.map +1 -0
- package/dist/events-manager/src/interfaces/EventsManagerMessages.d.ts +5 -1
- package/dist/events-manager/src/interfaces/EventsManagerMessages.d.ts.map +1 -1
- package/dist/events-manager/src/interfaces/EventsManagerMessages.js +4 -0
- package/dist/events-manager/src/interfaces/EventsManagerMessages.js.map +1 -1
- package/dist/events-manager/src/interfaces/RTSeeDashboardClient.d.ts +2 -2
- package/dist/events-manager/src/interfaces/RTSeeDashboardClient.d.ts.map +1 -1
- package/dist/events-manager/src/interfaces/RTSeeDashboardEvent.d.ts +5 -3
- package/dist/events-manager/src/interfaces/RTSeeDashboardEvent.d.ts.map +1 -1
- package/dist/events-manager/src/interfaces/RTSeeEventsManagerSignalingClient.d.ts +2 -2
- package/dist/events-manager/src/interfaces/RTSeeEventsManagerSignalingClient.d.ts.map +1 -1
- package/dist/events-manager/src/interfaces/index.d.ts +4 -1
- package/dist/events-manager/src/interfaces/index.d.ts.map +1 -1
- package/dist/events-manager/src/interfaces/index.js +5 -2
- package/dist/events-manager/src/interfaces/index.js.map +1 -1
- package/dist/events-manager/src/models/Client.d.ts +9 -6
- package/dist/events-manager/src/models/Client.d.ts.map +1 -1
- package/dist/events-manager/src/models/Client.js +42 -12
- package/dist/events-manager/src/models/Client.js.map +1 -1
- package/dist/events-manager/src/models/DashboardClient.d.ts +9 -8
- package/dist/events-manager/src/models/DashboardClient.d.ts.map +1 -1
- package/dist/events-manager/src/models/DashboardClient.js +30 -15
- package/dist/events-manager/src/models/DashboardClient.js.map +1 -1
- package/dist/events-manager/src/models/DashboardClientSession.d.ts +22 -0
- package/dist/events-manager/src/models/DashboardClientSession.d.ts.map +1 -0
- package/dist/events-manager/src/models/DashboardClientSession.js +59 -0
- package/dist/events-manager/src/models/DashboardClientSession.js.map +1 -0
- package/dist/events-manager/src/models/DashboardEvent.d.ts +4 -2
- package/dist/events-manager/src/models/DashboardEvent.d.ts.map +1 -1
- package/dist/events-manager/src/models/DashboardEvent.js +1 -0
- package/dist/events-manager/src/models/DashboardEvent.js.map +1 -1
- package/dist/events-manager/src/models/Event.d.ts +6 -10
- package/dist/events-manager/src/models/Event.d.ts.map +1 -1
- package/dist/events-manager/src/models/Event.js +3 -1
- package/dist/events-manager/src/models/Event.js.map +1 -1
- package/dist/events-manager/src/models/EventsManagerClientSession.d.ts +18 -0
- package/dist/events-manager/src/models/EventsManagerClientSession.d.ts.map +1 -0
- package/dist/events-manager/src/models/EventsManagerClientSession.js +59 -0
- package/dist/events-manager/src/models/EventsManagerClientSession.js.map +1 -0
- package/dist/events-manager/src/models/RTSeeEventsCollector.d.ts +4 -4
- package/dist/events-manager/src/models/RTSeeEventsCollector.d.ts.map +1 -1
- package/dist/events-manager/src/models/RTSeeEventsCollector.js +14 -7
- package/dist/events-manager/src/models/RTSeeEventsCollector.js.map +1 -1
- package/dist/events-manager/src/models/RTSeeEventsDashboard.d.ts +8 -5
- package/dist/events-manager/src/models/RTSeeEventsDashboard.d.ts.map +1 -1
- package/dist/events-manager/src/models/RTSeeEventsDashboard.js +57 -5
- package/dist/events-manager/src/models/RTSeeEventsDashboard.js.map +1 -1
- package/dist/events-manager/src/models/RTSeeEventsManager.d.ts +15 -11
- package/dist/events-manager/src/models/RTSeeEventsManager.d.ts.map +1 -1
- package/dist/events-manager/src/models/RTSeeEventsManager.js +83 -21
- package/dist/events-manager/src/models/RTSeeEventsManager.js.map +1 -1
- package/dist/events-manager/src/models/SessionAgent.d.ts +26 -0
- package/dist/events-manager/src/models/SessionAgent.d.ts.map +1 -0
- package/dist/events-manager/src/models/SessionAgent.js +118 -0
- package/dist/events-manager/src/models/SessionAgent.js.map +1 -0
- package/dist/events-manager/src/models/index.d.ts +3 -0
- package/dist/events-manager/src/models/index.d.ts.map +1 -1
- package/dist/events-manager/src/models/index.js +4 -1
- package/dist/events-manager/src/models/index.js.map +1 -1
- package/package.json +5 -4
|
@@ -7,7 +7,7 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
|
7
7
|
o[k2] = m[k];
|
|
8
8
|
}));
|
|
9
9
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
-
for (var p in m) if (p !== "default" && !
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
11
|
};
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
__exportStar(require("./models"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Client.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/Client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"Client.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/Client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,MAAM,WAAW,yBAA0B,SAAQ,SAAS;IAC1D,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IDeviceDetectionResult, IRTSeeDashboardEvent } from "@rtsee/events-manager";
|
|
2
|
+
export interface IRTSeeEventsManagerClientSession {
|
|
3
|
+
id: string;
|
|
4
|
+
clientId: string;
|
|
5
|
+
connectedAt?: Date;
|
|
6
|
+
events?: IRTSeeDashboardEvent[];
|
|
7
|
+
isAnonymous?: boolean;
|
|
8
|
+
agent?: IDeviceDetectionResult;
|
|
9
|
+
isActive?: boolean;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=ClientSession.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ClientSession.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/ClientSession.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,EACtB,oBAAoB,EACrB,MAAM,uBAAuB,CAAC;AAE/B,MAAM,WAAW,gCAAgC;IAC/C,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,IAAI,CAAC;IACnB,MAAM,CAAC,EAAE,oBAAoB,EAAE,CAAC;IAChC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,KAAK,CAAC,EAAE,sBAAsB,CAAC;IAC/B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ClientSession.js","sourceRoot":"","sources":["../../../../src/interfaces/ClientSession.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IDeviceDetectionResult, IRTSeeDashboardEvent } from "@rtsee/events-manager";
|
|
2
|
+
export interface IRTSeeDashboardClientSessionOptions {
|
|
3
|
+
id: string;
|
|
4
|
+
clientId: string;
|
|
5
|
+
connectedAt?: Date;
|
|
6
|
+
agent?: IDeviceDetectionResult;
|
|
7
|
+
events?: IRTSeeDashboardEvent[];
|
|
8
|
+
isAnonymous?: boolean;
|
|
9
|
+
isActive?: boolean;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=DashboardClientSessionOptions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DashboardClientSessionOptions.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/DashboardClientSessionOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,EACtB,oBAAoB,EACrB,MAAM,uBAAuB,CAAC;AAE/B,MAAM,WAAW,mCAAmC;IAClD,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,IAAI,CAAC;IACnB,KAAK,CAAC,EAAE,sBAAsB,CAAC;IAC/B,MAAM,CAAC,EAAE,oBAAoB,EAAE,CAAC;IAChC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DashboardClientSessionOptions.js","sourceRoot":"","sources":["../../../../src/interfaces/DashboardClientSessionOptions.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
export declare 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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DeviceDetectionResult.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/DeviceDetectionResult.ts"],"names":[],"mappings":"AAAA,oBAAY,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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DeviceDetectionResult.js","sourceRoot":"","sources":["../../../../src/interfaces/DeviceDetectionResult.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EventOptions.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/EventOptions.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,kBAAkB,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"EventOptions.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/EventOptions.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,kBAAkB,CAAC,CAAC,GAAG,GAAG;IACzC,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,CAAC,CAAC;IACT,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EventsCollectorOptions.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/EventsCollectorOptions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAEhD,oBAAY,4BAA4B,GAAG,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EventsCollectorOptions.js","sourceRoot":"","sources":["../../../../src/interfaces/EventsCollectorOptions.ts"],"names":[],"mappings":""}
|
|
@@ -4,6 +4,10 @@ export declare enum RTSeeEventsManagerMessages {
|
|
|
4
4
|
DASHBOARD_ADMIN_AUTHENTICATED = "dashboard-admin-authenticated",
|
|
5
5
|
DASHBOARD_ADMIN_AUTH_FAILURE = "dashboard-admin-auth-failure",
|
|
6
6
|
CLIENT_CONNECTED = "client-connected",
|
|
7
|
-
CLIENT_DISCONNECTED = "client-disconnected"
|
|
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"
|
|
8
12
|
}
|
|
9
13
|
//# sourceMappingURL=EventsManagerMessages.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
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;
|
|
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"}
|
|
@@ -9,5 +9,9 @@ var RTSeeEventsManagerMessages;
|
|
|
9
9
|
RTSeeEventsManagerMessages["DASHBOARD_ADMIN_AUTH_FAILURE"] = "dashboard-admin-auth-failure";
|
|
10
10
|
RTSeeEventsManagerMessages["CLIENT_CONNECTED"] = "client-connected";
|
|
11
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";
|
|
12
16
|
})(RTSeeEventsManagerMessages = exports.RTSeeEventsManagerMessages || (exports.RTSeeEventsManagerMessages = {}));
|
|
13
17
|
//# sourceMappingURL=EventsManagerMessages.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EventsManagerMessages.js","sourceRoot":"","sources":["../../../../src/interfaces/EventsManagerMessages.ts"],"names":[],"mappings":";;;AAAA,IAAY,
|
|
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,GAA1B,kCAA0B,KAA1B,kCAA0B,QAWrC"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IRTSeeDashboardClientSessionOptions } from "@rtsee/events-manager";
|
|
2
2
|
import { IPeerInfo } from "@rtsee/core";
|
|
3
3
|
export interface IRTSeeDashboardClient extends IPeerInfo {
|
|
4
4
|
id: string;
|
|
5
5
|
isAnonymous?: boolean;
|
|
6
6
|
connectedAt: Date;
|
|
7
|
-
|
|
7
|
+
sessions?: IRTSeeDashboardClientSessionOptions[];
|
|
8
8
|
}
|
|
9
9
|
//# sourceMappingURL=RTSeeDashboardClient.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RTSeeDashboardClient.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/RTSeeDashboardClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
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,7 +1,9 @@
|
|
|
1
|
-
export interface IRTSeeDashboardEvent<T> {
|
|
1
|
+
export interface IRTSeeDashboardEvent<T = any> {
|
|
2
2
|
id?: string;
|
|
3
|
+
sessionId: string;
|
|
3
4
|
name: string;
|
|
4
|
-
|
|
5
|
-
|
|
5
|
+
createdAt?: Date;
|
|
6
|
+
widget?: string;
|
|
7
|
+
data?: T;
|
|
6
8
|
}
|
|
7
9
|
//# sourceMappingURL=RTSeeDashboardEvent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RTSeeDashboardEvent.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/RTSeeDashboardEvent.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,oBAAoB,CAAC,CAAC;
|
|
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,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IRTSeeDashboardEvent, RTSeeEventsDashboard } from "@rtsee/events-manager";
|
|
2
2
|
import { IRTSeeSignalingClientBase } from "@rtsee/core";
|
|
3
3
|
export interface IRTSeeEventsManagerSignalingClient extends IRTSeeSignalingClientBase {
|
|
4
|
-
sendMessage<T>(event:
|
|
4
|
+
sendMessage<T>(event: Omit<IRTSeeDashboardEvent<T>, "sessionId">): void;
|
|
5
5
|
attachEventsDashboard(dashboard: RTSeeEventsDashboard): void;
|
|
6
6
|
}
|
|
7
7
|
//# sourceMappingURL=RTSeeEventsManagerSignalingClient.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RTSeeEventsManagerSignalingClient.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/RTSeeEventsManagerSignalingClient.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,
|
|
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,5 +1,5 @@
|
|
|
1
|
+
export * from "./ClientSession";
|
|
1
2
|
export * from "./Client";
|
|
2
|
-
export * from "./EventOptions";
|
|
3
3
|
export * from "./RTSeeEventsManagerSignalingClient";
|
|
4
4
|
export * from "./RTSeeEventCodec";
|
|
5
5
|
export * from "./RTSeeEventsManagerOptions";
|
|
@@ -8,4 +8,7 @@ export * from "./RTSeeDashboardClient";
|
|
|
8
8
|
export * from "./RTSeeDashboardEvent";
|
|
9
9
|
export * from "./EventsManagerMessages";
|
|
10
10
|
export * from "./RTSeeEventsDashboardOptions";
|
|
11
|
+
export * from "./EventsCollectorOptions";
|
|
12
|
+
export * from "./DeviceDetectionResult";
|
|
13
|
+
export * from "./DashboardClientSessionOptions";
|
|
11
14
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,qCAAqC,CAAC;AACpD,cAAc,mBAAmB,CAAC;AAClC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,wBAAwB,CAAC;AACvC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,iCAAiC,CAAC"}
|
|
@@ -7,11 +7,11 @@ var __createBinding = (this && this.__createBinding) || (Object.create ? (functi
|
|
|
7
7
|
o[k2] = m[k];
|
|
8
8
|
}));
|
|
9
9
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
-
for (var p in m) if (p !== "default" && !
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
11
|
};
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./ClientSession"), exports);
|
|
13
14
|
__exportStar(require("./Client"), exports);
|
|
14
|
-
__exportStar(require("./EventOptions"), exports);
|
|
15
15
|
__exportStar(require("./RTSeeEventsManagerSignalingClient"), exports);
|
|
16
16
|
__exportStar(require("./RTSeeEventCodec"), exports);
|
|
17
17
|
__exportStar(require("./RTSeeEventsManagerOptions"), exports);
|
|
@@ -20,4 +20,7 @@ __exportStar(require("./RTSeeDashboardClient"), exports);
|
|
|
20
20
|
__exportStar(require("./RTSeeDashboardEvent"), exports);
|
|
21
21
|
__exportStar(require("./EventsManagerMessages"), exports);
|
|
22
22
|
__exportStar(require("./RTSeeEventsDashboardOptions"), exports);
|
|
23
|
+
__exportStar(require("./EventsCollectorOptions"), exports);
|
|
24
|
+
__exportStar(require("./DeviceDetectionResult"), exports);
|
|
25
|
+
__exportStar(require("./DashboardClientSessionOptions"), exports);
|
|
23
26
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAAyB;AACzB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/interfaces/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,kDAAgC;AAChC,2CAAyB;AACzB,sEAAoD;AACpD,oDAAkC;AAClC,8DAA4C;AAC5C,gEAA8C;AAC9C,yDAAuC;AACvC,wDAAsC;AACtC,0DAAwC;AACxC,gEAA8C;AAC9C,2DAAyC;AACzC,0DAAwC;AACxC,kEAAgD"}
|
|
@@ -1,18 +1,21 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
+
import { IRTSeeDashboardClient, IRTSeeEventsManagerClient, RTSeeEventsManagerClientSession, RTSeeEvent, IRTSeeEventsManagerClientSession, IRTSeeDashboardEvent } from "@rtsee/events-manager";
|
|
2
3
|
import { EventEmitter } from "events";
|
|
3
|
-
import { RTSeeEvent } from "./Event";
|
|
4
|
-
import { IRTSeeClient, IRTSeeDashboardClient } from "../interfaces";
|
|
5
4
|
import { IPeerInfo } from "@rtsee/core";
|
|
6
|
-
export declare class
|
|
5
|
+
export declare class RTSeeEventsManagerClient extends EventEmitter implements IPeerInfo {
|
|
7
6
|
id: string;
|
|
8
7
|
name?: string;
|
|
9
8
|
imageUrl?: string;
|
|
10
9
|
url?: string;
|
|
11
10
|
isAnonymous: boolean;
|
|
12
|
-
|
|
11
|
+
sessions: RTSeeEventsManagerClientSession[];
|
|
13
12
|
connectedAt: Date;
|
|
14
|
-
constructor(options:
|
|
15
|
-
|
|
13
|
+
constructor(options: IRTSeeEventsManagerClient);
|
|
14
|
+
createSession(options: IRTSeeEventsManagerClientSession): RTSeeEventsManagerClientSession;
|
|
15
|
+
removeSession(sessionId: string): void;
|
|
16
|
+
getSessionById(id: string): RTSeeEventsManagerClientSession | null;
|
|
17
|
+
createEvent<T = any>(eventOptions: IRTSeeDashboardEvent): RTSeeEvent<T>;
|
|
18
|
+
hasLiveSessions(): boolean;
|
|
16
19
|
getData(): IRTSeeDashboardClient;
|
|
17
20
|
}
|
|
18
21
|
//# sourceMappingURL=Client.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Client.d.ts","sourceRoot":"","sources":["../../../../src/models/Client.ts"],"names":[],"mappings":";AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Client.d.ts","sourceRoot":"","sources":["../../../../src/models/Client.ts"],"names":[],"mappings":";AAAA,OAAO,EACL,qBAAqB,EACrB,yBAAyB,EACzB,+BAA+B,EAC/B,UAAU,EACV,gCAAgC,EAChC,oBAAoB,EAErB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAExC,qBAAa,wBACX,SAAQ,YACR,YAAW,SAAS;IAEpB,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,+BAA+B,EAAE,CAAM;IACjD,WAAW,EAAE,IAAI,CAAC;gBAEN,OAAO,EAAE,yBAAyB;IAoB9C,aAAa,CACX,OAAO,EAAE,gCAAgC,GACxC,+BAA+B;IASlC,aAAa,CAAC,SAAS,EAAE,MAAM;IAQ/B,cAAc,CAAC,EAAE,EAAE,MAAM,GAAG,+BAA+B,GAAG,IAAI;IAIlE,WAAW,CAAC,CAAC,GAAG,GAAG,EAAE,YAAY,EAAE,oBAAoB,GAAG,UAAU,CAAC,CAAC,CAAC;IAWvE,eAAe,IAAI,OAAO;IAI1B,OAAO,IAAI,qBAAqB;CAWjC"}
|
|
@@ -3,24 +3,27 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
3
3
|
var extendStatics = function (d, b) {
|
|
4
4
|
extendStatics = Object.setPrototypeOf ||
|
|
5
5
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (
|
|
6
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
7
|
return extendStatics(d, b);
|
|
8
8
|
};
|
|
9
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");
|
|
10
12
|
extendStatics(d, b);
|
|
11
13
|
function __() { this.constructor = d; }
|
|
12
14
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
13
15
|
};
|
|
14
16
|
})();
|
|
15
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.
|
|
18
|
+
exports.RTSeeEventsManagerClient = void 0;
|
|
19
|
+
var events_manager_1 = require("@rtsee/events-manager");
|
|
17
20
|
var events_1 = require("events");
|
|
18
|
-
var
|
|
19
|
-
__extends(
|
|
20
|
-
function
|
|
21
|
+
var RTSeeEventsManagerClient = /** @class */ (function (_super) {
|
|
22
|
+
__extends(RTSeeEventsManagerClient, _super);
|
|
23
|
+
function RTSeeEventsManagerClient(options) {
|
|
21
24
|
var _this = _super.call(this) || this;
|
|
22
25
|
_this.isAnonymous = false;
|
|
23
|
-
_this.
|
|
26
|
+
_this.sessions = [];
|
|
24
27
|
_this.id = options.id;
|
|
25
28
|
if (options.name) {
|
|
26
29
|
_this.name = options.name;
|
|
@@ -37,10 +40,37 @@ var RTSeeClient = /** @class */ (function (_super) {
|
|
|
37
40
|
_this.connectedAt = new Date(new Date().toUTCString());
|
|
38
41
|
return _this;
|
|
39
42
|
}
|
|
40
|
-
|
|
41
|
-
|
|
43
|
+
RTSeeEventsManagerClient.prototype.createSession = function (options) {
|
|
44
|
+
var session = new events_manager_1.RTSeeEventsManagerClientSession({
|
|
45
|
+
id: options.id,
|
|
46
|
+
clientId: this.id,
|
|
47
|
+
});
|
|
48
|
+
this.sessions.unshift(session);
|
|
49
|
+
return session;
|
|
42
50
|
};
|
|
43
|
-
|
|
51
|
+
RTSeeEventsManagerClient.prototype.removeSession = function (sessionId) {
|
|
52
|
+
var session = this.getSessionById(sessionId);
|
|
53
|
+
if (!session) {
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
this.sessions.splice(this.sessions.indexOf(session), 1);
|
|
57
|
+
};
|
|
58
|
+
RTSeeEventsManagerClient.prototype.getSessionById = function (id) {
|
|
59
|
+
return this.sessions.find(function (e) { return e.id === id; });
|
|
60
|
+
};
|
|
61
|
+
RTSeeEventsManagerClient.prototype.createEvent = function (eventOptions) {
|
|
62
|
+
var existingSession = this.getSessionById(eventOptions.sessionId);
|
|
63
|
+
var sessionToUse = existingSession ||
|
|
64
|
+
this.createSession({
|
|
65
|
+
id: eventOptions.sessionId,
|
|
66
|
+
clientId: this.id,
|
|
67
|
+
});
|
|
68
|
+
return sessionToUse.createEvent(eventOptions);
|
|
69
|
+
};
|
|
70
|
+
RTSeeEventsManagerClient.prototype.hasLiveSessions = function () {
|
|
71
|
+
return this.sessions.length > 0;
|
|
72
|
+
};
|
|
73
|
+
RTSeeEventsManagerClient.prototype.getData = function () {
|
|
44
74
|
return {
|
|
45
75
|
id: this.id,
|
|
46
76
|
name: this.name,
|
|
@@ -48,10 +78,10 @@ var RTSeeClient = /** @class */ (function (_super) {
|
|
|
48
78
|
url: this.url,
|
|
49
79
|
isAnonymous: this.isAnonymous,
|
|
50
80
|
connectedAt: this.connectedAt,
|
|
51
|
-
|
|
81
|
+
sessions: this.sessions.map(function (session) { return session.getData(); }),
|
|
52
82
|
};
|
|
53
83
|
};
|
|
54
|
-
return
|
|
84
|
+
return RTSeeEventsManagerClient;
|
|
55
85
|
}(events_1.EventEmitter));
|
|
56
|
-
exports.
|
|
86
|
+
exports.RTSeeEventsManagerClient = RTSeeEventsManagerClient;
|
|
57
87
|
//# sourceMappingURL=Client.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Client.js","sourceRoot":"","sources":["../../../../src/models/Client.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Client.js","sourceRoot":"","sources":["../../../../src/models/Client.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,wDAQ+B;AAC/B,iCAAsC;AAGtC;IACU,4CAAY;IAWpB,kCAAY,OAAkC;QAA9C,YACE,iBAAO,SAiBR;QAtBD,iBAAW,GAAG,KAAK,CAAC;QACpB,cAAQ,GAAsC,EAAE,CAAC;QAM/C,KAAI,CAAC,EAAE,GAAG,OAAO,CAAC,EAAE,CAAC;QACrB,IAAI,OAAO,CAAC,IAAI,EAAE;YAChB,KAAI,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC;SAC1B;QACD,IAAI,OAAO,CAAC,QAAQ,EAAE;YACpB,KAAI,CAAC,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAC;SAClC;QACD,IAAI,OAAO,CAAC,GAAG,EAAE;YACf,KAAI,CAAC,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC;SACxB;QACD,IAAI,OAAO,CAAC,WAAW,EAAE;YACvB,KAAI,CAAC,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC;SACxC;QAED,KAAI,CAAC,WAAW,GAAG,IAAI,IAAI,CAAC,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,CAAC,CAAC;;IACxD,CAAC;IAED,gDAAa,GAAb,UACE,OAAyC;QAEzC,IAAM,OAAO,GAAG,IAAI,gDAA+B,CAAC;YAClD,EAAE,EAAE,OAAO,CAAC,EAAE;YACd,QAAQ,EAAE,IAAI,CAAC,EAAE;SAClB,CAAC,CAAC;QACH,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QAC/B,OAAO,OAAO,CAAC;IACjB,CAAC;IAED,gDAAa,GAAb,UAAc,SAAiB;QAC7B,IAAM,OAAO,GAAG,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC;QAC/C,IAAI,CAAC,OAAO,EAAE;YACZ,OAAO;SACR;QACD,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,CAAC;IAC1D,CAAC;IAED,iDAAc,GAAd,UAAe,EAAU;QACvB,OAAO,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,UAAC,CAAC,IAAK,OAAA,CAAC,CAAC,EAAE,KAAK,EAAE,EAAX,CAAW,CAAC,CAAC;IAChD,CAAC;IAED,8CAAW,GAAX,UAAqB,YAAkC;QACrD,IAAM,eAAe,GAAG,IAAI,CAAC,cAAc,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC;QACpE,IAAM,YAAY,GAChB,eAAe;YACf,IAAI,CAAC,aAAa,CAAC;gBACjB,EAAE,EAAE,YAAY,CAAC,SAAS;gBAC1B,QAAQ,EAAE,IAAI,CAAC,EAAE;aAClB,CAAC,CAAC;QACL,OAAO,YAAY,CAAC,WAAW,CAAI,YAAY,CAAC,CAAC;IACnD,CAAC;IAED,kDAAe,GAAf;QACE,OAAO,IAAI,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC;IAClC,CAAC;IAED,0CAAO,GAAP;QACE,OAAO;YACL,EAAE,EAAE,IAAI,CAAC,EAAE;YACX,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,QAAQ,EAAE,IAAI,CAAC,QAAQ;YACvB,GAAG,EAAE,IAAI,CAAC,GAAG;YACb,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,WAAW,EAAE,IAAI,CAAC,WAAW;YAC7B,QAAQ,EAAE,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,UAAC,OAAO,IAAK,OAAA,OAAO,CAAC,OAAO,EAAE,EAAjB,CAAiB,CAAC;SAC5D,CAAC;IACJ,CAAC;IACH,+BAAC;AAAD,CAAC,AAjFD,CACU,qBAAY,GAgFrB;AAjFY,4DAAwB"}
|
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { IRTSeeDashboardClient } from "@rtsee/events-manager";
|
|
3
|
-
import { IRTSeeDashboardEvent } from "../interfaces/RTSeeDashboardEvent";
|
|
1
|
+
import { IRTSeeDashboardClient, IRTSeeDashboardClientSessionOptions, IRTSeeDashboardEvent, RTSeeDashboardClientSession } from "@rtsee/events-manager";
|
|
4
2
|
export declare class RTSeeDashboardClient {
|
|
5
3
|
id: string;
|
|
6
4
|
name?: string;
|
|
7
5
|
imageUrl?: string;
|
|
8
6
|
url?: string;
|
|
9
7
|
isAnonymous: boolean;
|
|
10
|
-
|
|
8
|
+
sessions: RTSeeDashboardClientSession[];
|
|
11
9
|
connectedAt: Date;
|
|
12
10
|
isConnected: boolean;
|
|
13
11
|
constructor(clientData: IRTSeeDashboardClient);
|
|
14
12
|
init(clientData: IRTSeeDashboardClient): void;
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
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
18
|
onDisconnected(): void;
|
|
19
|
-
|
|
19
|
+
merge(clientData: IRTSeeDashboardClient): void;
|
|
20
|
+
sortClients(): void;
|
|
20
21
|
}
|
|
21
22
|
//# sourceMappingURL=DashboardClient.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DashboardClient.d.ts","sourceRoot":"","sources":["../../../../src/models/DashboardClient.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
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,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.RTSeeDashboardClient = void 0;
|
|
4
|
-
var
|
|
4
|
+
var events_manager_1 = require("@rtsee/events-manager");
|
|
5
5
|
var RTSeeDashboardClient = /** @class */ (function () {
|
|
6
6
|
function RTSeeDashboardClient(clientData) {
|
|
7
7
|
this.isAnonymous = false;
|
|
8
|
-
this.
|
|
8
|
+
this.sessions = [];
|
|
9
9
|
this.id = clientData.id;
|
|
10
10
|
this.init(clientData);
|
|
11
11
|
}
|
|
@@ -23,30 +23,45 @@ var RTSeeDashboardClient = /** @class */ (function () {
|
|
|
23
23
|
this.isAnonymous = clientData.isAnonymous;
|
|
24
24
|
}
|
|
25
25
|
this.connectedAt = clientData.connectedAt;
|
|
26
|
-
this.
|
|
26
|
+
this.populateSessions(clientData.sessions);
|
|
27
27
|
this.isConnected = true;
|
|
28
28
|
};
|
|
29
|
-
RTSeeDashboardClient.prototype.
|
|
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) {
|
|
30
37
|
var _this = this;
|
|
31
|
-
|
|
38
|
+
sessions.forEach(function (elem) { return _this.addSession(elem); });
|
|
32
39
|
};
|
|
33
|
-
RTSeeDashboardClient.prototype.
|
|
34
|
-
var
|
|
35
|
-
|
|
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);
|
|
36
48
|
return;
|
|
37
49
|
}
|
|
38
|
-
|
|
50
|
+
session.onDisconnected();
|
|
39
51
|
};
|
|
40
|
-
RTSeeDashboardClient.prototype.
|
|
41
|
-
this.
|
|
42
|
-
this.sortEvents();
|
|
52
|
+
RTSeeDashboardClient.prototype.getSessionById = function (id) {
|
|
53
|
+
return this.sessions.find(function (e) { return e.id === id; });
|
|
43
54
|
};
|
|
44
55
|
RTSeeDashboardClient.prototype.onDisconnected = function () {
|
|
45
56
|
this.isConnected = false;
|
|
46
57
|
};
|
|
47
|
-
RTSeeDashboardClient.prototype.
|
|
48
|
-
this.
|
|
49
|
-
|
|
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;
|
|
50
65
|
});
|
|
51
66
|
};
|
|
52
67
|
return RTSeeDashboardClient;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DashboardClient.js","sourceRoot":"","sources":["../../../../src/models/DashboardClient.ts"],"names":[],"mappings":";;;AAAA,
|
|
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,CAAC;IAED,uCAAQ,GAAR,UAAS,SAA+B;QACtC,IAAM,OAAO,GAAG,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC;QACzD,IAAI,CAAC,OAAO,EAAE;YACZ,OAAO;SACR;QACD,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;IAC9B,CAAC;IAED,+CAAgB,GAAhB,UAAiB,QAA+C;QAAhE,iBAEC;QADC,QAAQ,CAAC,OAAO,CAAC,UAAC,IAAI,IAAK,OAAA,KAAI,CAAC,UAAU,CAAC,IAAI,CAAC,EAArB,CAAqB,CAAC,CAAC;IACpD,CAAC;IAED,yCAAU,GAAV,UAAW,WAAgD;QACzD,IAAM,OAAO,GAAG,IAAI,4CAA2B,CAAC,WAAW,CAAC,CAAC;QAC7D,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IACjC,CAAC;IAED,gDAAiB,GAAjB,UAAkB,EAAU;QAC1B,IAAM,OAAO,GAAG,IAAI,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC;QACxC,IAAI,CAAC,OAAO,EAAE;YACZ,OAAO,CAAC,GAAG,CAAC,sBAAsB,EAAE,EAAE,CAAC,CAAC;YACxC,OAAO;SACR;QACD,OAAO,CAAC,cAAc,EAAE,CAAC;IAC3B,CAAC;IAED,6CAAc,GAAd,UAAe,EAAU;QACvB,OAAO,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,UAAC,CAAC,IAAK,OAAA,CAAC,CAAC,EAAE,KAAK,EAAE,EAAX,CAAW,CAAC,CAAC;IAChD,CAAC;IAED,6CAAc,GAAd;QACE,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;IAC3B,CAAC;IAED,oCAAK,GAAL,UAAM,UAAiC;QACrC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QACtB,IAAI,CAAC,WAAW,EAAE,CAAC;IACrB,CAAC;IAED,0CAAW,GAAX;QACE,IAAI,CAAC,QAAQ,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"}
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|