@webex/calling 3.3.1 → 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.
Files changed (65) hide show
  1. package/dist/CallingClient/calling/CallerId/types.js.map +1 -1
  2. package/dist/CallingClient/calling/call.js +5 -3
  3. package/dist/CallingClient/calling/call.js.map +1 -1
  4. package/dist/CallingClient/calling/call.test.js +17 -15
  5. package/dist/CallingClient/calling/call.test.js.map +1 -1
  6. package/dist/CallingClient/constants.js +5 -8
  7. package/dist/CallingClient/constants.js.map +1 -1
  8. package/dist/Contacts/ContactsClient.js +258 -292
  9. package/dist/Contacts/ContactsClient.js.map +1 -1
  10. package/dist/Contacts/ContactsClient.test.js +46 -12
  11. package/dist/Contacts/ContactsClient.test.js.map +1 -1
  12. package/dist/Contacts/constants.js +3 -1
  13. package/dist/Contacts/constants.js.map +1 -1
  14. package/dist/Contacts/contactFixtures.js +141 -48
  15. package/dist/Contacts/contactFixtures.js.map +1 -1
  16. package/dist/Contacts/types.js.map +1 -1
  17. package/dist/Metrics/index.js +9 -9
  18. package/dist/Metrics/index.js.map +1 -1
  19. package/dist/Metrics/index.test.js +37 -10
  20. package/dist/Metrics/index.test.js.map +1 -1
  21. package/dist/SDKConnector/types.js.map +1 -1
  22. package/dist/common/Utils.js +3 -3
  23. package/dist/common/Utils.js.map +1 -1
  24. package/dist/common/Utils.test.js +1 -1
  25. package/dist/common/Utils.test.js.map +1 -1
  26. package/dist/common/constants.js +6 -1
  27. package/dist/common/constants.js.map +1 -1
  28. package/dist/common/testUtil.js +1 -5
  29. package/dist/common/testUtil.js.map +1 -1
  30. package/dist/common/types.js +1 -0
  31. package/dist/common/types.js.map +1 -1
  32. package/dist/module/CallingClient/calling/call.js +6 -4
  33. package/dist/module/CallingClient/constants.js +4 -6
  34. package/dist/module/Contacts/ContactsClient.js +64 -58
  35. package/dist/module/Contacts/constants.js +2 -0
  36. package/dist/module/Contacts/contactFixtures.js +175 -31
  37. package/dist/module/Metrics/index.js +9 -9
  38. package/dist/module/common/Utils.js +4 -5
  39. package/dist/module/common/constants.js +5 -0
  40. package/dist/module/common/testUtil.js +0 -4
  41. package/dist/module/common/types.js +1 -0
  42. package/dist/types/CallingClient/calling/CallerId/types.d.ts +1 -23
  43. package/dist/types/CallingClient/calling/CallerId/types.d.ts.map +1 -1
  44. package/dist/types/CallingClient/calling/call.d.ts.map +1 -1
  45. package/dist/types/CallingClient/constants.d.ts +3 -5
  46. package/dist/types/CallingClient/constants.d.ts.map +1 -1
  47. package/dist/types/Contacts/ContactsClient.d.ts +1 -1
  48. package/dist/types/Contacts/ContactsClient.d.ts.map +1 -1
  49. package/dist/types/Contacts/constants.d.ts +2 -0
  50. package/dist/types/Contacts/constants.d.ts.map +1 -1
  51. package/dist/types/Contacts/contactFixtures.d.ts +71 -39
  52. package/dist/types/Contacts/contactFixtures.d.ts.map +1 -1
  53. package/dist/types/Contacts/types.d.ts +6 -13
  54. package/dist/types/Contacts/types.d.ts.map +1 -1
  55. package/dist/types/SDKConnector/types.d.ts +1 -5
  56. package/dist/types/SDKConnector/types.d.ts.map +1 -1
  57. package/dist/types/common/Utils.d.ts +1 -0
  58. package/dist/types/common/Utils.d.ts.map +1 -1
  59. package/dist/types/common/constants.d.ts +5 -0
  60. package/dist/types/common/constants.d.ts.map +1 -1
  61. package/dist/types/common/testUtil.d.ts +0 -4
  62. package/dist/types/common/testUtil.d.ts.map +1 -1
  63. package/dist/types/common/types.d.ts +56 -25
  64. package/dist/types/common/types.d.ts.map +1 -1
  65. package/package.json +7 -7
@@ -1 +1 @@
1
- {"version":3,"names":[],"sources":["types.ts"],"sourcesContent":["import {CallerIdInfo} from '../../../Events/types';\nimport {DisplayInformation, PhoneNumber} 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\nexport type ResourceType = {\n userName: string;\n emails: Array<EmailType>;\n name: {\n givenName: string;\n familyName: string;\n };\n phoneNumbers: Array<PhoneNumber>;\n entitlements: Array<string>;\n id: string;\n photos: Array<PhotoType>;\n displayName: string;\n active: boolean;\n sipAddresses: Array<SipAddressType>;\n};\n\n/* The scim response has many fields , dropping few of them as they are not to be consumed by us */\nexport type scimResponseBody = {\n totalResults: number;\n itemsPerPage: number;\n startIndex: number;\n schemas: Array<string>;\n Resources: Array<ResourceType>;\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":""}
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: {
@@ -2781,7 +2783,7 @@ var Call = exports.Call = /*#__PURE__*/function (_Eventing) {
2781
2783
  key: "mediaRoapEventsListener",
2782
2784
  value: function mediaRoapEventsListener() {
2783
2785
  var _this14 = this;
2784
- this.mediaConnection.on(_internalMediaCore.Event.ROAP_MESSAGE_TO_SEND,
2786
+ this.mediaConnection.on(_internalMediaCore.MediaConnectionEventNames.ROAP_MESSAGE_TO_SEND,
2785
2787
  /*#__PURE__*/
2786
2788
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
2787
2789
  function () {
@@ -2860,7 +2862,7 @@ var Call = exports.Call = /*#__PURE__*/function (_Eventing) {
2860
2862
  value: function mediaTrackListener() {
2861
2863
  var _this15 = this;
2862
2864
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
2863
- this.mediaConnection.on(_internalMediaCore.Event.REMOTE_TRACK_ADDED, function (e) {
2865
+ this.mediaConnection.on(_internalMediaCore.MediaConnectionEventNames.REMOTE_TRACK_ADDED, function (e) {
2864
2866
  if (e.type === _types3.MEDIA_CONNECTION_EVENT_KEYS.MEDIA_TYPE_AUDIO) {
2865
2867
  _this15.emit(_types3.CALL_EVENT_KEYS.REMOTE_MEDIA, e.track);
2866
2868
  }