@webex/calling 3.3.1-next.9 → 3.4.0-next.1
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/CallingClient/calling/CallerId/types.js.map +1 -1
- package/dist/CallingClient/calling/call.js +19 -42
- package/dist/CallingClient/calling/call.js.map +1 -1
- package/dist/CallingClient/calling/call.test.js +17 -33
- package/dist/CallingClient/calling/call.test.js.map +1 -1
- package/dist/CallingClient/constants.js +5 -8
- package/dist/CallingClient/constants.js.map +1 -1
- package/dist/Contacts/ContactsClient.js +258 -292
- package/dist/Contacts/ContactsClient.js.map +1 -1
- package/dist/Contacts/ContactsClient.test.js +46 -12
- package/dist/Contacts/ContactsClient.test.js.map +1 -1
- package/dist/Contacts/constants.js +3 -1
- package/dist/Contacts/constants.js.map +1 -1
- package/dist/Contacts/contactFixtures.js +141 -48
- package/dist/Contacts/contactFixtures.js.map +1 -1
- package/dist/Contacts/types.js.map +1 -1
- package/dist/Metrics/index.js +9 -9
- package/dist/Metrics/index.js.map +1 -1
- package/dist/Metrics/index.test.js +37 -10
- package/dist/Metrics/index.test.js.map +1 -1
- package/dist/SDKConnector/types.js.map +1 -1
- package/dist/common/Utils.js +3 -3
- package/dist/common/Utils.js.map +1 -1
- package/dist/common/Utils.test.js +1 -1
- package/dist/common/Utils.test.js.map +1 -1
- package/dist/common/constants.js +6 -1
- package/dist/common/constants.js.map +1 -1
- package/dist/common/testUtil.js +1 -5
- package/dist/common/testUtil.js.map +1 -1
- package/dist/common/types.js +1 -0
- package/dist/common/types.js.map +1 -1
- package/dist/module/CallingClient/calling/call.js +6 -17
- package/dist/module/CallingClient/constants.js +4 -6
- package/dist/module/Contacts/ContactsClient.js +64 -58
- package/dist/module/Contacts/constants.js +2 -0
- package/dist/module/Contacts/contactFixtures.js +175 -31
- package/dist/module/Metrics/index.js +9 -9
- package/dist/module/common/Utils.js +4 -5
- package/dist/module/common/constants.js +5 -0
- package/dist/module/common/testUtil.js +0 -4
- package/dist/module/common/types.js +1 -0
- package/dist/types/CallingClient/calling/CallerId/types.d.ts +1 -23
- package/dist/types/CallingClient/calling/CallerId/types.d.ts.map +1 -1
- package/dist/types/CallingClient/calling/call.d.ts +0 -1
- package/dist/types/CallingClient/calling/call.d.ts.map +1 -1
- package/dist/types/CallingClient/constants.d.ts +3 -5
- package/dist/types/CallingClient/constants.d.ts.map +1 -1
- package/dist/types/Contacts/ContactsClient.d.ts +1 -1
- package/dist/types/Contacts/ContactsClient.d.ts.map +1 -1
- package/dist/types/Contacts/constants.d.ts +2 -0
- package/dist/types/Contacts/constants.d.ts.map +1 -1
- package/dist/types/Contacts/contactFixtures.d.ts +71 -39
- package/dist/types/Contacts/contactFixtures.d.ts.map +1 -1
- package/dist/types/Contacts/types.d.ts +6 -13
- package/dist/types/Contacts/types.d.ts.map +1 -1
- package/dist/types/SDKConnector/types.d.ts +1 -5
- package/dist/types/SDKConnector/types.d.ts.map +1 -1
- package/dist/types/common/Utils.d.ts +1 -0
- package/dist/types/common/Utils.d.ts.map +1 -1
- package/dist/types/common/constants.d.ts +5 -0
- package/dist/types/common/constants.d.ts.map +1 -1
- package/dist/types/common/testUtil.d.ts +0 -4
- package/dist/types/common/testUtil.d.ts.map +1 -1
- package/dist/types/common/types.d.ts +56 -25
- package/dist/types/common/types.d.ts.map +1 -1
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["types.ts"],"sourcesContent":["import {CallerIdInfo} from '../../../Events/types';\nimport {DisplayInformation
|
|
1
|
+
{"version":3,"names":[],"sources":["types.ts"],"sourcesContent":["import {CallerIdInfo} from '../../../Events/types';\nimport {DisplayInformation} from '../../../common/types';\n\nexport type EmailType = {\n primary: boolean;\n type: string;\n value: string;\n};\n\nexport type SipAddressType = {\n type: string;\n value: string;\n primary?: boolean;\n};\n\nexport type PhotoType = {\n type: string;\n value: string;\n};\n\n/**\n * Represents the interface for fetching caller ID details.\n */\nexport interface ICallerId {\n /**\n * Fetches caller ID details based on the provided caller ID information.\n *\n * This method takes a {@link CallerIdInfo} object as input and performs caller ID\n * resolution in the background, returning a {@link DisplayInformation} object\n * containing intermediate name and number.\n *\n * @param callerId - Caller ID data passed to the method.\n *\n * @remarks\n * The `fetchCallerDetails` method is the main entrypoint for retrieving\n * caller ID information. It initiates the caller ID resolution process\n * based on the provided {@link CallerIdInfo} and returns the result as\n * {@link DisplayInformation}.\n *\n * @example\n * ```typescript\n * const callerIdInfo: CallerIdInfo = { callerIdData };\n * const displayInfo = callerIdInstance.fetchCallerDetails(callerIdInfo);\n * console.log(`Name: ${displayInfo.name}, Number: ${displayInfo.number}`);\n * ```\n */\n fetchCallerDetails: (callerId: CallerIdInfo) => DisplayInformation;\n}\n"],"mappings":""}
|
|
@@ -2247,9 +2247,11 @@ var Call = exports.Call = /*#__PURE__*/function (_Eventing) {
|
|
|
2247
2247
|
var mediaConnection = new _internalMediaCore.RoapMediaConnection({
|
|
2248
2248
|
skipInactiveTransceivers: true,
|
|
2249
2249
|
iceServers: [],
|
|
2250
|
+
iceCandidatesTimeout: _constants.ICE_CANDIDATES_TIMEOUT,
|
|
2250
2251
|
sdpMunging: {
|
|
2251
2252
|
convertPort9to0: true,
|
|
2252
|
-
addContentSlides: false
|
|
2253
|
+
addContentSlides: false,
|
|
2254
|
+
copyClineToSessionLevel: true
|
|
2253
2255
|
}
|
|
2254
2256
|
}, {
|
|
2255
2257
|
localTracks: {
|
|
@@ -2772,43 +2774,21 @@ var Call = exports.Call = /*#__PURE__*/function (_Eventing) {
|
|
|
2772
2774
|
}
|
|
2773
2775
|
return postMedia;
|
|
2774
2776
|
}()
|
|
2775
|
-
/* istanbul ignore next */
|
|
2776
|
-
/**
|
|
2777
|
-
* Copy SDP's c-line to session level from media level.
|
|
2778
|
-
* SPARK-522437
|
|
2779
|
-
*/
|
|
2780
|
-
)
|
|
2781
|
-
}, {
|
|
2782
|
-
key: "addSessionConnection",
|
|
2783
|
-
value: function addSessionConnection(sdp) {
|
|
2784
|
-
var lines = sdp.split(/\r\n|\r|\n/);
|
|
2785
|
-
var mIndex = lines.findIndex(function (line) {
|
|
2786
|
-
return line.startsWith('m=');
|
|
2787
|
-
});
|
|
2788
|
-
var tIndex = lines.findIndex(function (line) {
|
|
2789
|
-
return line.startsWith('t=');
|
|
2790
|
-
});
|
|
2791
|
-
if (mIndex !== -1 && mIndex < lines.length - 1 && lines[mIndex + 1].startsWith('c=')) {
|
|
2792
|
-
var cLine = lines[mIndex + 1];
|
|
2793
|
-
lines.splice(tIndex, 0, cLine);
|
|
2794
|
-
}
|
|
2795
|
-
return lines.join('\r\n');
|
|
2796
|
-
}
|
|
2797
|
-
|
|
2798
2777
|
/* istanbul ignore next */
|
|
2799
2778
|
/**
|
|
2800
2779
|
* Setup a listener for roap events emitted by the media sdk.
|
|
2801
2780
|
*/
|
|
2781
|
+
)
|
|
2802
2782
|
}, {
|
|
2803
2783
|
key: "mediaRoapEventsListener",
|
|
2804
2784
|
value: function mediaRoapEventsListener() {
|
|
2805
2785
|
var _this14 = this;
|
|
2806
|
-
this.mediaConnection.on(_internalMediaCore.
|
|
2786
|
+
this.mediaConnection.on(_internalMediaCore.MediaConnectionEventNames.ROAP_MESSAGE_TO_SEND,
|
|
2807
2787
|
/*#__PURE__*/
|
|
2808
2788
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2809
2789
|
function () {
|
|
2810
2790
|
var _ref6 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee25(event) {
|
|
2811
|
-
var _event$roapMessage, _event$roapMessage2
|
|
2791
|
+
var _event$roapMessage, _event$roapMessage2;
|
|
2812
2792
|
var mediaOk, sdpVideoPortZero;
|
|
2813
2793
|
return _regenerator.default.wrap(function _callee25$(_context26) {
|
|
2814
2794
|
while (1) switch (_context26.prev = _context26.next) {
|
|
@@ -2818,13 +2798,10 @@ var Call = exports.Call = /*#__PURE__*/function (_Eventing) {
|
|
|
2818
2798
|
file: _constants.CALL_FILE,
|
|
2819
2799
|
method: _this14.mediaRoapEventsListener.name
|
|
2820
2800
|
});
|
|
2821
|
-
if ((_event$roapMessage3 = event.roapMessage) !== null && _event$roapMessage3 !== void 0 && _event$roapMessage3.sdp) {
|
|
2822
|
-
event.roapMessage.sdp = _this14.addSessionConnection(event.roapMessage.sdp);
|
|
2823
|
-
}
|
|
2824
2801
|
_context26.t0 = event.roapMessage.messageType;
|
|
2825
|
-
_context26.next = _context26.t0 === _types4.RoapScenario.OK ?
|
|
2802
|
+
_context26.next = _context26.t0 === _types4.RoapScenario.OK ? 5 : _context26.t0 === _types4.RoapScenario.OFFER ? 8 : _context26.t0 === _types4.RoapScenario.ANSWER ? 13 : _context26.t0 === _types4.RoapScenario.ERROR ? 16 : _context26.t0 === _types4.RoapScenario.OFFER_RESPONSE ? 18 : 21;
|
|
2826
2803
|
break;
|
|
2827
|
-
case
|
|
2804
|
+
case 5:
|
|
2828
2805
|
mediaOk = {
|
|
2829
2806
|
received: false,
|
|
2830
2807
|
message: event.roapMessage
|
|
@@ -2833,8 +2810,8 @@ var Call = exports.Call = /*#__PURE__*/function (_Eventing) {
|
|
|
2833
2810
|
type: 'E_ROAP_OK',
|
|
2834
2811
|
data: mediaOk
|
|
2835
2812
|
});
|
|
2836
|
-
return _context26.abrupt("break",
|
|
2837
|
-
case
|
|
2813
|
+
return _context26.abrupt("break", 21);
|
|
2814
|
+
case 8:
|
|
2838
2815
|
// TODO: Remove these after the Media-Core adds the fix
|
|
2839
2816
|
sdpVideoPortZero = event.roapMessage.sdp.replace(/^m=(video) (?:\d+) /gim, 'm=$1 0 ');
|
|
2840
2817
|
event.roapMessage.sdp = sdpVideoPortZero;
|
|
@@ -2843,28 +2820,28 @@ var Call = exports.Call = /*#__PURE__*/function (_Eventing) {
|
|
|
2843
2820
|
type: 'E_SEND_CALL_SETUP',
|
|
2844
2821
|
data: event.roapMessage
|
|
2845
2822
|
});
|
|
2846
|
-
return _context26.abrupt("break",
|
|
2847
|
-
case
|
|
2823
|
+
return _context26.abrupt("break", 21);
|
|
2824
|
+
case 13:
|
|
2848
2825
|
_this14.localRoapMessage = event.roapMessage;
|
|
2849
2826
|
_this14.sendMediaStateMachineEvt({
|
|
2850
2827
|
type: 'E_SEND_ROAP_ANSWER',
|
|
2851
2828
|
data: event.roapMessage
|
|
2852
2829
|
});
|
|
2853
|
-
return _context26.abrupt("break",
|
|
2854
|
-
case
|
|
2830
|
+
return _context26.abrupt("break", 21);
|
|
2831
|
+
case 16:
|
|
2855
2832
|
_this14.sendMediaStateMachineEvt({
|
|
2856
2833
|
type: 'E_ROAP_ERROR',
|
|
2857
2834
|
data: event.roapMessage
|
|
2858
2835
|
});
|
|
2859
|
-
return _context26.abrupt("break",
|
|
2860
|
-
case
|
|
2836
|
+
return _context26.abrupt("break", 21);
|
|
2837
|
+
case 18:
|
|
2861
2838
|
_this14.localRoapMessage = event.roapMessage;
|
|
2862
2839
|
_this14.sendMediaStateMachineEvt({
|
|
2863
2840
|
type: 'E_SEND_ROAP_OFFER',
|
|
2864
2841
|
data: event.roapMessage
|
|
2865
2842
|
});
|
|
2866
|
-
return _context26.abrupt("break",
|
|
2867
|
-
case
|
|
2843
|
+
return _context26.abrupt("break", 21);
|
|
2844
|
+
case 21:
|
|
2868
2845
|
case "end":
|
|
2869
2846
|
return _context26.stop();
|
|
2870
2847
|
}
|
|
@@ -2885,7 +2862,7 @@ var Call = exports.Call = /*#__PURE__*/function (_Eventing) {
|
|
|
2885
2862
|
value: function mediaTrackListener() {
|
|
2886
2863
|
var _this15 = this;
|
|
2887
2864
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
2888
|
-
this.mediaConnection.on(_internalMediaCore.
|
|
2865
|
+
this.mediaConnection.on(_internalMediaCore.MediaConnectionEventNames.REMOTE_TRACK_ADDED, function (e) {
|
|
2889
2866
|
if (e.type === _types3.MEDIA_CONNECTION_EVENT_KEYS.MEDIA_TYPE_AUDIO) {
|
|
2890
2867
|
_this15.emit(_types3.CALL_EVENT_KEYS.REMOTE_MEDIA, e.track);
|
|
2891
2868
|
}
|