genesys-cloud-streaming-client 19.4.1-develop.12 → 19.4.1-develop.13
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/cjs/types/interfaces.d.ts +2 -1
- package/dist/cjs/types/interfaces.js +1 -0
- package/dist/cjs/utils.d.ts +1 -0
- package/dist/cjs/utils.js +5 -1
- package/dist/cjs/webrtc.js +3 -0
- package/dist/deploy-info.json +2 -2
- package/dist/es/index.bundle.js +7 -0
- package/dist/es/types/interfaces.d.ts +2 -1
- package/dist/es/types/interfaces.js +1 -0
- package/dist/es/utils.d.ts +1 -0
- package/dist/es/utils.js +3 -0
- package/dist/es/webrtc.js +4 -1
- package/dist/manifest.json +2 -2
- package/dist/npm/CHANGELOG.md +1 -0
- package/dist/npm/types/interfaces.d.ts +2 -1
- package/dist/npm/types/interfaces.js +1 -0
- package/dist/npm/utils.d.ts +1 -0
- package/dist/npm/utils.js +5 -1
- package/dist/npm/webrtc.js +3 -0
- package/dist/streaming-client.browser.js +1 -1
- package/dist/v19/streaming-client.browser.js +1 -1
- package/dist/v19.4.1/streaming-client.browser.js +1 -1
- package/package.json +1 -1
|
@@ -116,12 +116,13 @@ export interface IError {
|
|
|
116
116
|
name: string;
|
|
117
117
|
stack?: string;
|
|
118
118
|
}
|
|
119
|
-
export declare type SessionTypesAsStrings = 'softphone' | 'screenShare' | 'screenRecording' | 'collaborateVideo' | 'unknown';
|
|
119
|
+
export declare type SessionTypesAsStrings = 'softphone' | 'screenShare' | 'screenRecording' | 'liveScreenMonitoring' | 'collaborateVideo' | 'unknown';
|
|
120
120
|
export declare enum SessionTypes {
|
|
121
121
|
softphone = "softphone",
|
|
122
122
|
collaborateVideo = "collaborateVideo",
|
|
123
123
|
acdScreenShare = "screenShare",
|
|
124
124
|
screenRecording = "screenRecording",
|
|
125
|
+
liveScreenMonitoring = "liveScreenMonitoring",
|
|
125
126
|
unknown = "unknown"
|
|
126
127
|
}
|
|
127
128
|
export interface ISessionInfo extends IPendingSession {
|
|
@@ -13,5 +13,6 @@ var SessionTypes;
|
|
|
13
13
|
SessionTypes["collaborateVideo"] = "collaborateVideo";
|
|
14
14
|
SessionTypes["acdScreenShare"] = "screenShare";
|
|
15
15
|
SessionTypes["screenRecording"] = "screenRecording";
|
|
16
|
+
SessionTypes["liveScreenMonitoring"] = "liveScreenMonitoring";
|
|
16
17
|
SessionTypes["unknown"] = "unknown";
|
|
17
18
|
})(SessionTypes = exports.SessionTypes || (exports.SessionTypes = {}));
|
package/dist/cjs/utils.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export declare function delay(ms: number): Promise<void>;
|
|
|
15
15
|
export declare function splitIntoIndividualTopics(topicString: string): string[];
|
|
16
16
|
export declare const isAcdJid: (jid: string) => boolean;
|
|
17
17
|
export declare const isScreenRecordingJid: (jid: string) => boolean;
|
|
18
|
+
export declare const isLiveScreenMonitoringJid: (jid: string) => boolean;
|
|
18
19
|
export declare const isSoftphoneJid: (jid: string) => boolean;
|
|
19
20
|
export declare const isVideoJid: (jid: string) => boolean;
|
|
20
21
|
export declare type RetryPromise<T = any> = {
|
package/dist/cjs/utils.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.iceIsDifferent = exports.getIcePwdFromSdp = exports.getUfragFromSdp = exports.calculatePayloadSize = exports.parseJwt = exports.retryPromise = exports.isVideoJid = exports.isSoftphoneJid = exports.isScreenRecordingJid = exports.isAcdJid = exports.splitIntoIndividualTopics = exports.delay = exports.timeoutPromise = exports.StreamingSubscriptionError = exports.StreamingClientError = void 0;
|
|
3
|
+
exports.iceIsDifferent = exports.getIcePwdFromSdp = exports.getUfragFromSdp = exports.calculatePayloadSize = exports.parseJwt = exports.retryPromise = exports.isVideoJid = exports.isSoftphoneJid = exports.isLiveScreenMonitoringJid = exports.isScreenRecordingJid = exports.isAcdJid = exports.splitIntoIndividualTopics = exports.delay = exports.timeoutPromise = exports.StreamingSubscriptionError = exports.StreamingClientError = void 0;
|
|
4
4
|
const uuid_1 = require("uuid");
|
|
5
5
|
const timeout_error_1 = require("./types/timeout-error");
|
|
6
6
|
const interfaces_1 = require("./types/interfaces");
|
|
@@ -79,6 +79,10 @@ const isScreenRecordingJid = function (jid) {
|
|
|
79
79
|
return jid.startsWith('screenrecording-') && !(0, exports.isSoftphoneJid)(jid);
|
|
80
80
|
};
|
|
81
81
|
exports.isScreenRecordingJid = isScreenRecordingJid;
|
|
82
|
+
const isLiveScreenMonitoringJid = function (jid) {
|
|
83
|
+
return jid.startsWith('livemonitor-') && !(0, exports.isSoftphoneJid)(jid);
|
|
84
|
+
};
|
|
85
|
+
exports.isLiveScreenMonitoringJid = isLiveScreenMonitoringJid;
|
|
82
86
|
const isSoftphoneJid = function (jid) {
|
|
83
87
|
if (!jid) {
|
|
84
88
|
return false;
|
package/dist/cjs/webrtc.js
CHANGED
|
@@ -838,6 +838,9 @@ class WebrtcExtension extends events_1.EventEmitter {
|
|
|
838
838
|
else if ((0, utils_1.isScreenRecordingJid)(jid)) {
|
|
839
839
|
return interfaces_1.SessionTypes.screenRecording;
|
|
840
840
|
}
|
|
841
|
+
else if ((0, utils_1.isLiveScreenMonitoringJid)(jid)) {
|
|
842
|
+
return interfaces_1.SessionTypes.liveScreenMonitoring;
|
|
843
|
+
}
|
|
841
844
|
else if ((0, utils_1.isSoftphoneJid)(jid)) {
|
|
842
845
|
return interfaces_1.SessionTypes.softphone;
|
|
843
846
|
}
|
package/dist/deploy-info.json
CHANGED
package/dist/es/index.bundle.js
CHANGED
|
@@ -11655,6 +11655,7 @@ var SessionTypes;
|
|
|
11655
11655
|
SessionTypes["collaborateVideo"] = "collaborateVideo";
|
|
11656
11656
|
SessionTypes["acdScreenShare"] = "screenShare";
|
|
11657
11657
|
SessionTypes["screenRecording"] = "screenRecording";
|
|
11658
|
+
SessionTypes["liveScreenMonitoring"] = "liveScreenMonitoring";
|
|
11658
11659
|
SessionTypes["unknown"] = "unknown";
|
|
11659
11660
|
})(SessionTypes || (SessionTypes = {}));
|
|
11660
11661
|
|
|
@@ -11726,6 +11727,9 @@ const isAcdJid = function (jid) {
|
|
|
11726
11727
|
const isScreenRecordingJid = function (jid) {
|
|
11727
11728
|
return jid.startsWith('screenrecording-') && !isSoftphoneJid(jid);
|
|
11728
11729
|
};
|
|
11730
|
+
const isLiveScreenMonitoringJid = function (jid) {
|
|
11731
|
+
return jid.startsWith('livemonitor-') && !isSoftphoneJid(jid);
|
|
11732
|
+
};
|
|
11729
11733
|
const isSoftphoneJid = function (jid) {
|
|
11730
11734
|
if (!jid) {
|
|
11731
11735
|
return false;
|
|
@@ -35944,6 +35948,9 @@ class WebrtcExtension extends EventEmitter {
|
|
|
35944
35948
|
else if (isScreenRecordingJid(jid)) {
|
|
35945
35949
|
return SessionTypes.screenRecording;
|
|
35946
35950
|
}
|
|
35951
|
+
else if (isLiveScreenMonitoringJid(jid)) {
|
|
35952
|
+
return SessionTypes.liveScreenMonitoring;
|
|
35953
|
+
}
|
|
35947
35954
|
else if (isSoftphoneJid(jid)) {
|
|
35948
35955
|
return SessionTypes.softphone;
|
|
35949
35956
|
}
|
|
@@ -116,12 +116,13 @@ export interface IError {
|
|
|
116
116
|
name: string;
|
|
117
117
|
stack?: string;
|
|
118
118
|
}
|
|
119
|
-
export declare type SessionTypesAsStrings = 'softphone' | 'screenShare' | 'screenRecording' | 'collaborateVideo' | 'unknown';
|
|
119
|
+
export declare type SessionTypesAsStrings = 'softphone' | 'screenShare' | 'screenRecording' | 'liveScreenMonitoring' | 'collaborateVideo' | 'unknown';
|
|
120
120
|
export declare enum SessionTypes {
|
|
121
121
|
softphone = "softphone",
|
|
122
122
|
collaborateVideo = "collaborateVideo",
|
|
123
123
|
acdScreenShare = "screenShare",
|
|
124
124
|
screenRecording = "screenRecording",
|
|
125
|
+
liveScreenMonitoring = "liveScreenMonitoring",
|
|
125
126
|
unknown = "unknown"
|
|
126
127
|
}
|
|
127
128
|
export interface ISessionInfo extends IPendingSession {
|
|
@@ -10,5 +10,6 @@ export var SessionTypes;
|
|
|
10
10
|
SessionTypes["collaborateVideo"] = "collaborateVideo";
|
|
11
11
|
SessionTypes["acdScreenShare"] = "screenShare";
|
|
12
12
|
SessionTypes["screenRecording"] = "screenRecording";
|
|
13
|
+
SessionTypes["liveScreenMonitoring"] = "liveScreenMonitoring";
|
|
13
14
|
SessionTypes["unknown"] = "unknown";
|
|
14
15
|
})(SessionTypes || (SessionTypes = {}));
|
package/dist/es/utils.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export declare function delay(ms: number): Promise<void>;
|
|
|
15
15
|
export declare function splitIntoIndividualTopics(topicString: string): string[];
|
|
16
16
|
export declare const isAcdJid: (jid: string) => boolean;
|
|
17
17
|
export declare const isScreenRecordingJid: (jid: string) => boolean;
|
|
18
|
+
export declare const isLiveScreenMonitoringJid: (jid: string) => boolean;
|
|
18
19
|
export declare const isSoftphoneJid: (jid: string) => boolean;
|
|
19
20
|
export declare const isVideoJid: (jid: string) => boolean;
|
|
20
21
|
export declare type RetryPromise<T = any> = {
|
package/dist/es/utils.js
CHANGED
|
@@ -70,6 +70,9 @@ export const isAcdJid = function (jid) {
|
|
|
70
70
|
export const isScreenRecordingJid = function (jid) {
|
|
71
71
|
return jid.startsWith('screenrecording-') && !isSoftphoneJid(jid);
|
|
72
72
|
};
|
|
73
|
+
export const isLiveScreenMonitoringJid = function (jid) {
|
|
74
|
+
return jid.startsWith('livemonitor-') && !isSoftphoneJid(jid);
|
|
75
|
+
};
|
|
73
76
|
export const isSoftphoneJid = function (jid) {
|
|
74
77
|
if (!jid) {
|
|
75
78
|
return false;
|
package/dist/es/webrtc.js
CHANGED
|
@@ -7,7 +7,7 @@ import { v4 } from 'uuid';
|
|
|
7
7
|
import throttle from 'lodash.throttle';
|
|
8
8
|
import { isFirefox } from 'browserama';
|
|
9
9
|
import { definitions } from './stanza-definitions/webrtc-signaling';
|
|
10
|
-
import { isAcdJid, isScreenRecordingJid, isSoftphoneJid, isVideoJid, calculatePayloadSize, retryPromise, iceIsDifferent } from './utils';
|
|
10
|
+
import { isAcdJid, isScreenRecordingJid, isLiveScreenMonitoringJid, isSoftphoneJid, isVideoJid, calculatePayloadSize, retryPromise, iceIsDifferent } from './utils';
|
|
11
11
|
import { Client } from './client';
|
|
12
12
|
import { deepFlatten, formatStatsEvent } from './stats-formatter';
|
|
13
13
|
import { SessionTypes } from './types/interfaces';
|
|
@@ -859,6 +859,9 @@ export class WebrtcExtension extends EventEmitter {
|
|
|
859
859
|
else if (isScreenRecordingJid(jid)) {
|
|
860
860
|
return SessionTypes.screenRecording;
|
|
861
861
|
}
|
|
862
|
+
else if (isLiveScreenMonitoringJid(jid)) {
|
|
863
|
+
return SessionTypes.liveScreenMonitoring;
|
|
864
|
+
}
|
|
862
865
|
else if (isSoftphoneJid(jid)) {
|
|
863
866
|
return SessionTypes.softphone;
|
|
864
867
|
}
|
package/dist/manifest.json
CHANGED
package/dist/npm/CHANGELOG.md
CHANGED
|
@@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
8
8
|
### Changed
|
|
9
9
|
* [STREAM-941](https://inindca.atlassian.net/browse/STREAM-941) - Fix an issue where notifications.subscribe() with `enablePartialBulkResubscribe` would not resolve/reject based on API result when the requested topic was internally combined with others, e.g. "topic.a" and "topic.b" individually subscribed and bulk resubscribe combines them as "topic?a&b"
|
|
10
10
|
* [STREAM-950](https://inindca.atlassian.net/browse/STREAM-950) - Update genesys-cloud-client-logger to pick up change moving from `unload` to `visibilitychange`.
|
|
11
|
+
* [STREAM-824](https://inindca.atlassian.net/browse/STREAM-824) - Handle new SDP offer for live screen-monitoring.
|
|
11
12
|
|
|
12
13
|
# [v19.4.0](https://github.com/purecloudlabs/genesys-cloud-streaming-client/compare/v19.3.1...v19.4.0)
|
|
13
14
|
### Added
|
|
@@ -116,12 +116,13 @@ export interface IError {
|
|
|
116
116
|
name: string;
|
|
117
117
|
stack?: string;
|
|
118
118
|
}
|
|
119
|
-
export declare type SessionTypesAsStrings = 'softphone' | 'screenShare' | 'screenRecording' | 'collaborateVideo' | 'unknown';
|
|
119
|
+
export declare type SessionTypesAsStrings = 'softphone' | 'screenShare' | 'screenRecording' | 'liveScreenMonitoring' | 'collaborateVideo' | 'unknown';
|
|
120
120
|
export declare enum SessionTypes {
|
|
121
121
|
softphone = "softphone",
|
|
122
122
|
collaborateVideo = "collaborateVideo",
|
|
123
123
|
acdScreenShare = "screenShare",
|
|
124
124
|
screenRecording = "screenRecording",
|
|
125
|
+
liveScreenMonitoring = "liveScreenMonitoring",
|
|
125
126
|
unknown = "unknown"
|
|
126
127
|
}
|
|
127
128
|
export interface ISessionInfo extends IPendingSession {
|
|
@@ -13,5 +13,6 @@ var SessionTypes;
|
|
|
13
13
|
SessionTypes["collaborateVideo"] = "collaborateVideo";
|
|
14
14
|
SessionTypes["acdScreenShare"] = "screenShare";
|
|
15
15
|
SessionTypes["screenRecording"] = "screenRecording";
|
|
16
|
+
SessionTypes["liveScreenMonitoring"] = "liveScreenMonitoring";
|
|
16
17
|
SessionTypes["unknown"] = "unknown";
|
|
17
18
|
})(SessionTypes = exports.SessionTypes || (exports.SessionTypes = {}));
|
package/dist/npm/utils.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export declare function delay(ms: number): Promise<void>;
|
|
|
15
15
|
export declare function splitIntoIndividualTopics(topicString: string): string[];
|
|
16
16
|
export declare const isAcdJid: (jid: string) => boolean;
|
|
17
17
|
export declare const isScreenRecordingJid: (jid: string) => boolean;
|
|
18
|
+
export declare const isLiveScreenMonitoringJid: (jid: string) => boolean;
|
|
18
19
|
export declare const isSoftphoneJid: (jid: string) => boolean;
|
|
19
20
|
export declare const isVideoJid: (jid: string) => boolean;
|
|
20
21
|
export declare type RetryPromise<T = any> = {
|
package/dist/npm/utils.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.iceIsDifferent = exports.getIcePwdFromSdp = exports.getUfragFromSdp = exports.calculatePayloadSize = exports.parseJwt = exports.retryPromise = exports.isVideoJid = exports.isSoftphoneJid = exports.isScreenRecordingJid = exports.isAcdJid = exports.splitIntoIndividualTopics = exports.delay = exports.timeoutPromise = exports.StreamingSubscriptionError = exports.StreamingClientError = void 0;
|
|
3
|
+
exports.iceIsDifferent = exports.getIcePwdFromSdp = exports.getUfragFromSdp = exports.calculatePayloadSize = exports.parseJwt = exports.retryPromise = exports.isVideoJid = exports.isSoftphoneJid = exports.isLiveScreenMonitoringJid = exports.isScreenRecordingJid = exports.isAcdJid = exports.splitIntoIndividualTopics = exports.delay = exports.timeoutPromise = exports.StreamingSubscriptionError = exports.StreamingClientError = void 0;
|
|
4
4
|
const uuid_1 = require("uuid");
|
|
5
5
|
const timeout_error_1 = require("./types/timeout-error");
|
|
6
6
|
const interfaces_1 = require("./types/interfaces");
|
|
@@ -79,6 +79,10 @@ const isScreenRecordingJid = function (jid) {
|
|
|
79
79
|
return jid.startsWith('screenrecording-') && !(0, exports.isSoftphoneJid)(jid);
|
|
80
80
|
};
|
|
81
81
|
exports.isScreenRecordingJid = isScreenRecordingJid;
|
|
82
|
+
const isLiveScreenMonitoringJid = function (jid) {
|
|
83
|
+
return jid.startsWith('livemonitor-') && !(0, exports.isSoftphoneJid)(jid);
|
|
84
|
+
};
|
|
85
|
+
exports.isLiveScreenMonitoringJid = isLiveScreenMonitoringJid;
|
|
82
86
|
const isSoftphoneJid = function (jid) {
|
|
83
87
|
if (!jid) {
|
|
84
88
|
return false;
|
package/dist/npm/webrtc.js
CHANGED
|
@@ -838,6 +838,9 @@ class WebrtcExtension extends events_1.EventEmitter {
|
|
|
838
838
|
else if ((0, utils_1.isScreenRecordingJid)(jid)) {
|
|
839
839
|
return interfaces_1.SessionTypes.screenRecording;
|
|
840
840
|
}
|
|
841
|
+
else if ((0, utils_1.isLiveScreenMonitoringJid)(jid)) {
|
|
842
|
+
return interfaces_1.SessionTypes.liveScreenMonitoring;
|
|
843
|
+
}
|
|
841
844
|
else if ((0, utils_1.isSoftphoneJid)(jid)) {
|
|
842
845
|
return interfaces_1.SessionTypes.softphone;
|
|
843
846
|
}
|