@webex/calling 3.12.0 → 3.13.0-next.10

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 (326) hide show
  1. package/README.md +1 -1
  2. package/dist/CallHistory/CallHistory.js +1 -1
  3. package/dist/CallHistory/CallHistory.js.map +1 -1
  4. package/dist/CallHistory/CallHistory.test.js +2 -1
  5. package/dist/CallHistory/CallHistory.test.js.map +1 -1
  6. package/dist/CallQueue/CallQueue.js +1322 -0
  7. package/dist/CallQueue/CallQueue.js.map +1 -0
  8. package/dist/CallQueue/CallQueue.test.js +3321 -0
  9. package/dist/CallQueue/CallQueue.test.js.map +1 -0
  10. package/dist/CallQueue/constants.js +65 -0
  11. package/dist/CallQueue/constants.js.map +1 -0
  12. package/dist/CallQueue/types.js +4 -0
  13. package/dist/CallQueue/types.js.map +1 -0
  14. package/dist/CallQueue/utils.js +370 -0
  15. package/dist/CallQueue/utils.js.map +1 -0
  16. package/dist/CallQueue/utils.test.js +548 -0
  17. package/dist/CallQueue/utils.test.js.map +1 -0
  18. package/dist/CallRecording/CallRecording.js +160 -0
  19. package/dist/CallRecording/CallRecording.js.map +1 -0
  20. package/dist/CallRecording/CallRecording.test.js +257 -0
  21. package/dist/CallRecording/CallRecording.test.js.map +1 -0
  22. package/dist/CallRecording/WxcCallRecordingConnector.js +748 -0
  23. package/dist/CallRecording/WxcCallRecordingConnector.js.map +1 -0
  24. package/dist/CallRecording/WxcCallRecordingConnector.test.js +824 -0
  25. package/dist/CallRecording/WxcCallRecordingConnector.test.js.map +1 -0
  26. package/dist/CallRecording/callRecordingFixtures.js +266 -0
  27. package/dist/CallRecording/callRecordingFixtures.js.map +1 -0
  28. package/dist/CallRecording/constants.js +35 -0
  29. package/dist/CallRecording/constants.js.map +1 -0
  30. package/dist/CallRecording/types.js +142 -0
  31. package/dist/CallRecording/types.js.map +1 -0
  32. package/dist/CallRecording/userhub.js +117 -0
  33. package/dist/CallRecording/userhub.js.map +1 -0
  34. package/dist/CallRecording/utils.js +42 -0
  35. package/dist/CallRecording/utils.js.map +1 -0
  36. package/dist/CallRecording/utils.test.js +97 -0
  37. package/dist/CallRecording/utils.test.js.map +1 -0
  38. package/dist/CallingClient/CallingClient.js +469 -233
  39. package/dist/CallingClient/CallingClient.js.map +1 -1
  40. package/dist/CallingClient/CallingClient.test.js +736 -179
  41. package/dist/CallingClient/CallingClient.test.js.map +1 -1
  42. package/dist/CallingClient/calling/CallerId/index.js +3 -1
  43. package/dist/CallingClient/calling/CallerId/index.js.map +1 -1
  44. package/dist/CallingClient/calling/CallerId/index.test.js +12 -2
  45. package/dist/CallingClient/calling/CallerId/index.test.js.map +1 -1
  46. package/dist/CallingClient/calling/call.js +645 -458
  47. package/dist/CallingClient/calling/call.js.map +1 -1
  48. package/dist/CallingClient/calling/call.test.js +928 -498
  49. package/dist/CallingClient/calling/call.test.js.map +1 -1
  50. package/dist/CallingClient/calling/callManager.js +106 -35
  51. package/dist/CallingClient/calling/callManager.js.map +1 -1
  52. package/dist/CallingClient/calling/callManager.test.js +140 -0
  53. package/dist/CallingClient/calling/callManager.test.js.map +1 -1
  54. package/dist/CallingClient/calling/types.js +5 -0
  55. package/dist/CallingClient/calling/types.js.map +1 -1
  56. package/dist/CallingClient/constants.js +34 -4
  57. package/dist/CallingClient/constants.js.map +1 -1
  58. package/dist/CallingClient/line/index.js +27 -3
  59. package/dist/CallingClient/line/index.js.map +1 -1
  60. package/dist/CallingClient/line/line.test.js +102 -17
  61. package/dist/CallingClient/line/line.test.js.map +1 -1
  62. package/dist/CallingClient/registration/register.js +971 -506
  63. package/dist/CallingClient/registration/register.js.map +1 -1
  64. package/dist/CallingClient/registration/register.test.js +1037 -116
  65. package/dist/CallingClient/registration/register.test.js.map +1 -1
  66. package/dist/CallingClient/registration/types.js +26 -0
  67. package/dist/CallingClient/registration/types.js.map +1 -1
  68. package/dist/CallingClient/registration/webWorker.js +41 -104
  69. package/dist/CallingClient/registration/webWorker.js.map +1 -1
  70. package/dist/CallingClient/registration/webWorker.test.js +39 -153
  71. package/dist/CallingClient/registration/webWorker.test.js.map +1 -1
  72. package/dist/CallingClient/registration/webWorkerStr.js +1 -1
  73. package/dist/CallingClient/registration/webWorkerStr.js.map +1 -1
  74. package/dist/CallingClient/types.js +7 -0
  75. package/dist/CallingClient/types.js.map +1 -1
  76. package/dist/CallingClient/utils/constants.js +58 -0
  77. package/dist/CallingClient/utils/constants.js.map +1 -0
  78. package/dist/CallingClient/utils/index.js +63 -0
  79. package/dist/CallingClient/utils/index.js.map +1 -0
  80. package/dist/CallingClient/utils/mobiusSocketMapper.js +122 -0
  81. package/dist/CallingClient/utils/mobiusSocketMapper.js.map +1 -0
  82. package/dist/CallingClient/utils/mobiusSocketMapper.test.js +221 -0
  83. package/dist/CallingClient/utils/mobiusSocketMapper.test.js.map +1 -0
  84. package/dist/CallingClient/utils/request.js +435 -0
  85. package/dist/CallingClient/utils/request.js.map +1 -0
  86. package/dist/CallingClient/utils/request.test.js +999 -0
  87. package/dist/CallingClient/utils/request.test.js.map +1 -0
  88. package/dist/CallingClient/utils/types.js +7 -0
  89. package/dist/CallingClient/utils/types.js.map +1 -0
  90. package/dist/CallingClient/utils/wsFeatureFlag.js +70 -0
  91. package/dist/CallingClient/utils/wsFeatureFlag.js.map +1 -0
  92. package/dist/CallingClient/utils/wsFeatureFlag.test.js +139 -0
  93. package/dist/CallingClient/utils/wsFeatureFlag.test.js.map +1 -0
  94. package/dist/Contacts/ContactsClient.js +13 -11
  95. package/dist/Contacts/ContactsClient.js.map +1 -1
  96. package/dist/Contacts/ContactsClient.test.js +3 -8
  97. package/dist/Contacts/ContactsClient.test.js.map +1 -1
  98. package/dist/Errors/types.js +2 -0
  99. package/dist/Errors/types.js.map +1 -1
  100. package/dist/Events/types.js +39 -11
  101. package/dist/Events/types.js.map +1 -1
  102. package/dist/Metrics/index.js +63 -2
  103. package/dist/Metrics/index.js.map +1 -1
  104. package/dist/Metrics/index.test.js +357 -1
  105. package/dist/Metrics/index.test.js.map +1 -1
  106. package/dist/Metrics/types.js +19 -1
  107. package/dist/Metrics/types.js.map +1 -1
  108. package/dist/SDKConnector/types.js.map +1 -1
  109. package/dist/Voicemail/Voicemail.js +10 -10
  110. package/dist/Voicemail/Voicemail.js.map +1 -1
  111. package/dist/Voicemail/Voicemail.test.js +40 -20
  112. package/dist/Voicemail/Voicemail.test.js.map +1 -1
  113. package/dist/api.js +95 -0
  114. package/dist/api.js.map +1 -1
  115. package/dist/common/Utils.js +259 -133
  116. package/dist/common/Utils.js.map +1 -1
  117. package/dist/common/Utils.test.js +643 -298
  118. package/dist/common/Utils.test.js.map +1 -1
  119. package/dist/common/callUtils.js +187 -0
  120. package/dist/common/callUtils.js.map +1 -0
  121. package/dist/common/callUtils.test.js +313 -0
  122. package/dist/common/callUtils.test.js.map +1 -0
  123. package/dist/common/constants.js +27 -1
  124. package/dist/common/constants.js.map +1 -1
  125. package/dist/common/index.js +11 -0
  126. package/dist/common/index.js.map +1 -1
  127. package/dist/common/testUtil.js +11 -5
  128. package/dist/common/testUtil.js.map +1 -1
  129. package/dist/common/types.js +3 -0
  130. package/dist/common/types.js.map +1 -1
  131. package/dist/index.js +228 -40
  132. package/dist/index.js.map +1 -1
  133. package/dist/mobius-socket/config.js +24 -0
  134. package/dist/mobius-socket/config.js.map +1 -0
  135. package/dist/mobius-socket/errors.js +143 -0
  136. package/dist/mobius-socket/errors.js.map +1 -0
  137. package/dist/mobius-socket/errors.test.js +20 -0
  138. package/dist/mobius-socket/errors.test.js.map +1 -0
  139. package/dist/mobius-socket/index.js +57 -0
  140. package/dist/mobius-socket/index.js.map +1 -0
  141. package/dist/mobius-socket/mobius-socket-events.test.js +493 -0
  142. package/dist/mobius-socket/mobius-socket-events.test.js.map +1 -0
  143. package/dist/mobius-socket/mobius-socket.js +849 -0
  144. package/dist/mobius-socket/mobius-socket.js.map +1 -0
  145. package/dist/mobius-socket/mobius-socket.test.js +1898 -0
  146. package/dist/mobius-socket/mobius-socket.test.js.map +1 -0
  147. package/dist/mobius-socket/socket/constants.js +55 -0
  148. package/dist/mobius-socket/socket/constants.js.map +1 -0
  149. package/dist/mobius-socket/socket/index.js +15 -0
  150. package/dist/mobius-socket/socket/index.js.map +1 -0
  151. package/dist/mobius-socket/socket/socket-base.js +614 -0
  152. package/dist/mobius-socket/socket/socket-base.js.map +1 -0
  153. package/dist/mobius-socket/socket/socket.js +19 -0
  154. package/dist/mobius-socket/socket/socket.js.map +1 -0
  155. package/dist/mobius-socket/socket/socket.shim.js +26 -0
  156. package/dist/mobius-socket/socket/socket.shim.js.map +1 -0
  157. package/dist/mobius-socket/socket/types.js +7 -0
  158. package/dist/mobius-socket/socket/types.js.map +1 -0
  159. package/dist/mobius-socket/socket.test.js +747 -0
  160. package/dist/mobius-socket/socket.test.js.map +1 -0
  161. package/dist/mobius-socket/test/mocha-helpers.js +23 -0
  162. package/dist/mobius-socket/test/mocha-helpers.js.map +1 -0
  163. package/dist/mobius-socket/test/promise-tick.js +28 -0
  164. package/dist/mobius-socket/test/promise-tick.js.map +1 -0
  165. package/dist/mobius-socket/types.js +7 -0
  166. package/dist/mobius-socket/types.js.map +1 -0
  167. package/dist/module/CallHistory/CallHistory.js +1 -1
  168. package/dist/module/CallQueue/CallQueue.js +718 -0
  169. package/dist/module/CallQueue/constants.js +41 -0
  170. package/dist/module/CallQueue/types.js +1 -0
  171. package/dist/module/CallQueue/utils.js +253 -0
  172. package/dist/module/CallRecording/CallRecording.js +56 -0
  173. package/dist/module/CallRecording/WxcCallRecordingConnector.js +349 -0
  174. package/dist/module/CallRecording/callRecordingFixtures.js +231 -0
  175. package/dist/module/CallRecording/constants.js +27 -0
  176. package/dist/module/CallRecording/types.js +19 -0
  177. package/dist/module/CallRecording/userhub.js +100 -0
  178. package/dist/module/CallRecording/utils.js +14 -0
  179. package/dist/module/CallingClient/CallingClient.js +137 -20
  180. package/dist/module/CallingClient/calling/CallerId/index.js +2 -2
  181. package/dist/module/CallingClient/calling/call.js +207 -68
  182. package/dist/module/CallingClient/calling/callManager.js +51 -11
  183. package/dist/module/CallingClient/calling/types.js +2 -0
  184. package/dist/module/CallingClient/constants.js +29 -1
  185. package/dist/module/CallingClient/line/index.js +11 -3
  186. package/dist/module/CallingClient/registration/register.js +297 -68
  187. package/dist/module/CallingClient/registration/types.js +5 -1
  188. package/dist/module/CallingClient/registration/webWorker.js +42 -61
  189. package/dist/module/CallingClient/registration/webWorkerStr.js +47 -82
  190. package/dist/module/CallingClient/utils/constants.js +36 -0
  191. package/dist/module/CallingClient/utils/index.js +5 -0
  192. package/dist/module/CallingClient/utils/mobiusSocketMapper.js +72 -0
  193. package/dist/module/CallingClient/utils/request.js +211 -0
  194. package/dist/module/CallingClient/utils/types.js +1 -0
  195. package/dist/module/CallingClient/utils/wsFeatureFlag.js +41 -0
  196. package/dist/module/Contacts/ContactsClient.js +1 -1
  197. package/dist/module/Errors/types.js +2 -0
  198. package/dist/module/Events/types.js +24 -10
  199. package/dist/module/Metrics/index.js +48 -1
  200. package/dist/module/Metrics/types.js +18 -0
  201. package/dist/module/Voicemail/Voicemail.js +10 -10
  202. package/dist/module/api.js +6 -2
  203. package/dist/module/common/Utils.js +110 -63
  204. package/dist/module/common/callUtils.js +90 -0
  205. package/dist/module/common/constants.js +11 -0
  206. package/dist/module/common/index.js +1 -0
  207. package/dist/module/common/testUtil.js +7 -1
  208. package/dist/module/common/types.js +3 -0
  209. package/dist/module/index.js +10 -3
  210. package/dist/module/mobius-socket/config.js +15 -0
  211. package/dist/module/mobius-socket/errors.js +58 -0
  212. package/dist/module/mobius-socket/index.js +24 -0
  213. package/dist/module/mobius-socket/mobius-socket.js +593 -0
  214. package/dist/module/mobius-socket/socket/constants.js +26 -0
  215. package/dist/module/mobius-socket/socket/index.js +4 -0
  216. package/dist/module/mobius-socket/socket/socket-base.js +376 -0
  217. package/dist/module/mobius-socket/socket/socket.js +9 -0
  218. package/dist/module/mobius-socket/socket/socket.shim.js +12 -0
  219. package/dist/module/mobius-socket/socket/types.js +1 -0
  220. package/dist/module/mobius-socket/types.js +1 -0
  221. package/dist/types/CallQueue/CallQueue.d.ts +45 -0
  222. package/dist/types/CallQueue/CallQueue.d.ts.map +1 -0
  223. package/dist/types/CallQueue/constants.d.ts +37 -0
  224. package/dist/types/CallQueue/constants.d.ts.map +1 -0
  225. package/dist/types/CallQueue/types.d.ts +97 -0
  226. package/dist/types/CallQueue/types.d.ts.map +1 -0
  227. package/dist/types/CallQueue/utils.d.ts +19 -0
  228. package/dist/types/CallQueue/utils.d.ts.map +1 -0
  229. package/dist/types/CallRecording/CallRecording.d.ts +18 -0
  230. package/dist/types/CallRecording/CallRecording.d.ts.map +1 -0
  231. package/dist/types/CallRecording/WxcCallRecordingConnector.d.ts +27 -0
  232. package/dist/types/CallRecording/WxcCallRecordingConnector.d.ts.map +1 -0
  233. package/dist/types/CallRecording/callRecordingFixtures.d.ts +152 -0
  234. package/dist/types/CallRecording/callRecordingFixtures.d.ts.map +1 -0
  235. package/dist/types/CallRecording/constants.d.ts +28 -0
  236. package/dist/types/CallRecording/constants.d.ts.map +1 -0
  237. package/dist/types/CallRecording/types.d.ts +184 -0
  238. package/dist/types/CallRecording/types.d.ts.map +1 -0
  239. package/dist/types/CallRecording/userhub.d.ts +44 -0
  240. package/dist/types/CallRecording/userhub.d.ts.map +1 -0
  241. package/dist/types/CallRecording/utils.d.ts +3 -0
  242. package/dist/types/CallRecording/utils.d.ts.map +1 -0
  243. package/dist/types/CallingClient/CallingClient.d.ts +8 -0
  244. package/dist/types/CallingClient/CallingClient.d.ts.map +1 -1
  245. package/dist/types/CallingClient/calling/CallerId/index.d.ts.map +1 -1
  246. package/dist/types/CallingClient/calling/call.d.ts +17 -3
  247. package/dist/types/CallingClient/calling/call.d.ts.map +1 -1
  248. package/dist/types/CallingClient/calling/callManager.d.ts +8 -4
  249. package/dist/types/CallingClient/calling/callManager.d.ts.map +1 -1
  250. package/dist/types/CallingClient/calling/types.d.ts +38 -9
  251. package/dist/types/CallingClient/calling/types.d.ts.map +1 -1
  252. package/dist/types/CallingClient/constants.d.ts +29 -1
  253. package/dist/types/CallingClient/constants.d.ts.map +1 -1
  254. package/dist/types/CallingClient/line/index.d.ts +3 -2
  255. package/dist/types/CallingClient/line/index.d.ts.map +1 -1
  256. package/dist/types/CallingClient/registration/register.d.ts +9 -1
  257. package/dist/types/CallingClient/registration/register.d.ts.map +1 -1
  258. package/dist/types/CallingClient/registration/types.d.ts +26 -2
  259. package/dist/types/CallingClient/registration/types.d.ts.map +1 -1
  260. package/dist/types/CallingClient/registration/webWorker.d.ts.map +1 -1
  261. package/dist/types/CallingClient/registration/webWorkerStr.d.ts +1 -1
  262. package/dist/types/CallingClient/registration/webWorkerStr.d.ts.map +1 -1
  263. package/dist/types/CallingClient/types.d.ts +6 -2
  264. package/dist/types/CallingClient/types.d.ts.map +1 -1
  265. package/dist/types/CallingClient/utils/constants.d.ts +35 -0
  266. package/dist/types/CallingClient/utils/constants.d.ts.map +1 -0
  267. package/dist/types/CallingClient/utils/index.d.ts +6 -0
  268. package/dist/types/CallingClient/utils/index.d.ts.map +1 -0
  269. package/dist/types/CallingClient/utils/mobiusSocketMapper.d.ts +5 -0
  270. package/dist/types/CallingClient/utils/mobiusSocketMapper.d.ts.map +1 -0
  271. package/dist/types/CallingClient/utils/request.d.ts +28 -0
  272. package/dist/types/CallingClient/utils/request.d.ts.map +1 -0
  273. package/dist/types/CallingClient/utils/types.d.ts +34 -0
  274. package/dist/types/CallingClient/utils/types.d.ts.map +1 -0
  275. package/dist/types/CallingClient/utils/wsFeatureFlag.d.ts +4 -0
  276. package/dist/types/CallingClient/utils/wsFeatureFlag.d.ts.map +1 -0
  277. package/dist/types/Errors/types.d.ts +2 -0
  278. package/dist/types/Errors/types.d.ts.map +1 -1
  279. package/dist/types/Events/types.d.ts +81 -16
  280. package/dist/types/Events/types.d.ts.map +1 -1
  281. package/dist/types/Metrics/index.d.ts.map +1 -1
  282. package/dist/types/Metrics/types.d.ts +19 -2
  283. package/dist/types/Metrics/types.d.ts.map +1 -1
  284. package/dist/types/SDKConnector/types.d.ts +41 -13
  285. package/dist/types/SDKConnector/types.d.ts.map +1 -1
  286. package/dist/types/api.d.ts +10 -4
  287. package/dist/types/api.d.ts.map +1 -1
  288. package/dist/types/common/Utils.d.ts +11 -5
  289. package/dist/types/common/Utils.d.ts.map +1 -1
  290. package/dist/types/common/callUtils.d.ts +6 -0
  291. package/dist/types/common/callUtils.d.ts.map +1 -0
  292. package/dist/types/common/constants.d.ts +6 -0
  293. package/dist/types/common/constants.d.ts.map +1 -1
  294. package/dist/types/common/index.d.ts +1 -0
  295. package/dist/types/common/index.d.ts.map +1 -1
  296. package/dist/types/common/testUtil.d.ts +6 -1
  297. package/dist/types/common/testUtil.d.ts.map +1 -1
  298. package/dist/types/common/types.d.ts +5 -1
  299. package/dist/types/common/types.d.ts.map +1 -1
  300. package/dist/types/index.d.ts +13 -4
  301. package/dist/types/index.d.ts.map +1 -1
  302. package/dist/types/mobius-socket/config.d.ts +17 -0
  303. package/dist/types/mobius-socket/config.d.ts.map +1 -0
  304. package/dist/types/mobius-socket/errors.d.ts +32 -0
  305. package/dist/types/mobius-socket/errors.d.ts.map +1 -0
  306. package/dist/types/mobius-socket/index.d.ts +14 -0
  307. package/dist/types/mobius-socket/index.d.ts.map +1 -0
  308. package/dist/types/mobius-socket/mobius-socket.d.ts +48 -0
  309. package/dist/types/mobius-socket/mobius-socket.d.ts.map +1 -0
  310. package/dist/types/mobius-socket/socket/constants.d.ts +27 -0
  311. package/dist/types/mobius-socket/socket/constants.d.ts.map +1 -0
  312. package/dist/types/mobius-socket/socket/index.d.ts +5 -0
  313. package/dist/types/mobius-socket/socket/index.d.ts.map +1 -0
  314. package/dist/types/mobius-socket/socket/socket-base.d.ts +43 -0
  315. package/dist/types/mobius-socket/socket/socket-base.d.ts.map +1 -0
  316. package/dist/types/mobius-socket/socket/socket.d.ts +6 -0
  317. package/dist/types/mobius-socket/socket/socket.d.ts.map +1 -0
  318. package/dist/types/mobius-socket/socket/socket.shim.d.ts +6 -0
  319. package/dist/types/mobius-socket/socket/socket.shim.d.ts.map +1 -0
  320. package/dist/types/mobius-socket/socket/types.d.ts +61 -0
  321. package/dist/types/mobius-socket/socket/types.d.ts.map +1 -0
  322. package/dist/types/mobius-socket/types.d.ts +21 -0
  323. package/dist/types/mobius-socket/types.d.ts.map +1 -0
  324. package/package.json +21 -18
  325. package/src/mobius-socket/socket/socket.shim.ts +22 -0
  326. package/src/mobius-socket/socket/socket.ts +14 -0
package/dist/index.js CHANGED
@@ -5,34 +5,46 @@ var _interopRequireDefault = require("@babel/runtime-corejs2/helpers/interopRequ
5
5
  _Object$defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
+ _Object$defineProperty(exports, "ACD_STATE", {
9
+ enumerable: true,
10
+ get: function get() {
11
+ return _constants.ACD_STATE;
12
+ }
13
+ });
14
+ _Object$defineProperty(exports, "CALLING_BACKEND", {
15
+ enumerable: true,
16
+ get: function get() {
17
+ return _types1.CALLING_BACKEND;
18
+ }
19
+ });
8
20
  _Object$defineProperty(exports, "CALLING_CLIENT_EVENT_KEYS", {
9
21
  enumerable: true,
10
22
  get: function get() {
11
- return _types8.CALLING_CLIENT_EVENT_KEYS;
23
+ return _types0.CALLING_CLIENT_EVENT_KEYS;
12
24
  }
13
25
  });
14
26
  _Object$defineProperty(exports, "CALL_EVENT_KEYS", {
15
27
  enumerable: true,
16
28
  get: function get() {
17
- return _types8.CALL_EVENT_KEYS;
29
+ return _types0.CALL_EVENT_KEYS;
18
30
  }
19
31
  });
20
32
  _Object$defineProperty(exports, "COMMON_EVENT_KEYS", {
21
33
  enumerable: true,
22
34
  get: function get() {
23
- return _types8.COMMON_EVENT_KEYS;
35
+ return _types0.COMMON_EVENT_KEYS;
24
36
  }
25
37
  });
26
38
  _Object$defineProperty(exports, "CallDetails", {
27
39
  enumerable: true,
28
40
  get: function get() {
29
- return _types9.CallDetails;
41
+ return _types1.CallDetails;
30
42
  }
31
43
  });
32
44
  _Object$defineProperty(exports, "CallDirection", {
33
45
  enumerable: true,
34
46
  get: function get() {
35
- return _types9.CallDirection;
47
+ return _types1.CallDirection;
36
48
  }
37
49
  });
38
50
  _Object$defineProperty(exports, "CallError", {
@@ -44,31 +56,61 @@ _Object$defineProperty(exports, "CallError", {
44
56
  _Object$defineProperty(exports, "CallForwardAlwaysSetting", {
45
57
  enumerable: true,
46
58
  get: function get() {
47
- return _types4.CallForwardAlwaysSetting;
59
+ return _types6.CallForwardAlwaysSetting;
48
60
  }
49
61
  });
50
62
  _Object$defineProperty(exports, "CallForwardSetting", {
51
63
  enumerable: true,
52
64
  get: function get() {
53
- return _types4.CallForwardSetting;
65
+ return _types6.CallForwardSetting;
66
+ }
67
+ });
68
+ _Object$defineProperty(exports, "CallQueue", {
69
+ enumerable: true,
70
+ get: function get() {
71
+ return _types5.CallQueue;
72
+ }
73
+ });
74
+ _Object$defineProperty(exports, "CallQueueAgentStatus", {
75
+ enumerable: true,
76
+ get: function get() {
77
+ return _types5.CallQueueAgentStatus;
78
+ }
79
+ });
80
+ _Object$defineProperty(exports, "CallQueueClient", {
81
+ enumerable: true,
82
+ get: function get() {
83
+ return _CallQueue.CallQueueClient;
84
+ }
85
+ });
86
+ _Object$defineProperty(exports, "CallQueueClientOptions", {
87
+ enumerable: true,
88
+ get: function get() {
89
+ return _types5.CallQueueClientOptions;
90
+ }
91
+ });
92
+ _Object$defineProperty(exports, "CallQueueResponse", {
93
+ enumerable: true,
94
+ get: function get() {
95
+ return _types5.CallQueueResponse;
54
96
  }
55
97
  });
56
98
  _Object$defineProperty(exports, "CallSettingResponse", {
57
99
  enumerable: true,
58
100
  get: function get() {
59
- return _types4.CallSettingResponse;
101
+ return _types6.CallSettingResponse;
60
102
  }
61
103
  });
62
104
  _Object$defineProperty(exports, "CallType", {
63
105
  enumerable: true,
64
106
  get: function get() {
65
- return _types9.CallType;
107
+ return _types1.CallType;
66
108
  }
67
109
  });
68
110
  _Object$defineProperty(exports, "CallerIdDisplay", {
69
111
  enumerable: true,
70
112
  get: function get() {
71
- return _types8.CallerIdDisplay;
113
+ return _types0.CallerIdDisplay;
72
114
  }
73
115
  });
74
116
  _Object$defineProperty(exports, "CallingClientConfig", {
@@ -80,25 +122,31 @@ _Object$defineProperty(exports, "CallingClientConfig", {
80
122
  _Object$defineProperty(exports, "Contact", {
81
123
  enumerable: true,
82
124
  get: function get() {
83
- return _types5.Contact;
125
+ return _types7.Contact;
84
126
  }
85
127
  });
86
128
  _Object$defineProperty(exports, "ContactResponse", {
87
129
  enumerable: true,
88
130
  get: function get() {
89
- return _types5.ContactResponse;
131
+ return _types7.ContactResponse;
132
+ }
133
+ });
134
+ _Object$defineProperty(exports, "DeleteRecordingOptions", {
135
+ enumerable: true,
136
+ get: function get() {
137
+ return _types4.DeleteRecordingOptions;
90
138
  }
91
139
  });
92
140
  _Object$defineProperty(exports, "DisplayInformation", {
93
141
  enumerable: true,
94
142
  get: function get() {
95
- return _types9.DisplayInformation;
143
+ return _types1.DisplayInformation;
96
144
  }
97
145
  });
98
146
  _Object$defineProperty(exports, "Disposition", {
99
147
  enumerable: true,
100
148
  get: function get() {
101
- return _types8.Disposition;
149
+ return _types0.Disposition;
102
150
  }
103
151
  });
104
152
  _Object$defineProperty(exports, "ERROR_LAYER", {
@@ -113,16 +161,28 @@ _Object$defineProperty(exports, "ERROR_TYPE", {
113
161
  return _types.ERROR_TYPE;
114
162
  }
115
163
  });
164
+ _Object$defineProperty(exports, "GetCallRecordingRequest", {
165
+ enumerable: true,
166
+ get: function get() {
167
+ return _types4.GetCallRecordingRequest;
168
+ }
169
+ });
170
+ _Object$defineProperty(exports, "GetRecordingsOptions", {
171
+ enumerable: true,
172
+ get: function get() {
173
+ return _types4.GetRecordingsOptions;
174
+ }
175
+ });
116
176
  _Object$defineProperty(exports, "GroupType", {
117
177
  enumerable: true,
118
178
  get: function get() {
119
- return _types5.GroupType;
179
+ return _types7.GroupType;
120
180
  }
121
181
  });
122
182
  _Object$defineProperty(exports, "ICall", {
123
183
  enumerable: true,
124
184
  get: function get() {
125
- return _types0.ICall;
185
+ return _types11.ICall;
126
186
  }
127
187
  });
128
188
  _Object$defineProperty(exports, "ICallHistory", {
@@ -131,10 +191,22 @@ _Object$defineProperty(exports, "ICallHistory", {
131
191
  return _types3.ICallHistory;
132
192
  }
133
193
  });
194
+ _Object$defineProperty(exports, "ICallQueue", {
195
+ enumerable: true,
196
+ get: function get() {
197
+ return _types5.ICallQueue;
198
+ }
199
+ });
200
+ _Object$defineProperty(exports, "ICallRecording", {
201
+ enumerable: true,
202
+ get: function get() {
203
+ return _types4.ICallRecording;
204
+ }
205
+ });
134
206
  _Object$defineProperty(exports, "ICallSettings", {
135
207
  enumerable: true,
136
208
  get: function get() {
137
- return _types4.ICallSettings;
209
+ return _types6.ICallSettings;
138
210
  }
139
211
  });
140
212
  _Object$defineProperty(exports, "ICallingClient", {
@@ -146,19 +218,25 @@ _Object$defineProperty(exports, "ICallingClient", {
146
218
  _Object$defineProperty(exports, "IContacts", {
147
219
  enumerable: true,
148
220
  get: function get() {
149
- return _types5.IContacts;
221
+ return _types7.IContacts;
150
222
  }
151
223
  });
152
224
  _Object$defineProperty(exports, "ILine", {
153
225
  enumerable: true,
154
226
  get: function get() {
155
- return _types7.ILine;
227
+ return _types9.ILine;
156
228
  }
157
229
  });
158
230
  _Object$defineProperty(exports, "IVoicemail", {
159
231
  enumerable: true,
160
232
  get: function get() {
161
- return _types6.IVoicemail;
233
+ return _types8.IVoicemail;
234
+ }
235
+ });
236
+ _Object$defineProperty(exports, "IceGatheringConfig", {
237
+ enumerable: true,
238
+ get: function get() {
239
+ return _types2.IceGatheringConfig;
162
240
  }
163
241
  });
164
242
  _Object$defineProperty(exports, "JanusResponseEvent", {
@@ -170,19 +248,19 @@ _Object$defineProperty(exports, "JanusResponseEvent", {
170
248
  _Object$defineProperty(exports, "LINE_EVENTS", {
171
249
  enumerable: true,
172
250
  get: function get() {
173
- return _types7.LINE_EVENTS;
251
+ return _types9.LINE_EVENTS;
174
252
  }
175
253
  });
176
254
  _Object$defineProperty(exports, "LINE_EVENT_KEYS", {
177
255
  enumerable: true,
178
256
  get: function get() {
179
- return _types8.LINE_EVENT_KEYS;
257
+ return _types0.LINE_EVENT_KEYS;
180
258
  }
181
259
  });
182
260
  _Object$defineProperty(exports, "LOGGER", {
183
261
  enumerable: true,
184
262
  get: function get() {
185
- return _types1.LOGGER;
263
+ return _types12.LOGGER;
186
264
  }
187
265
  });
188
266
  _Object$defineProperty(exports, "LineError", {
@@ -203,64 +281,142 @@ _Object$defineProperty(exports, "Logger", {
203
281
  return _Logger.default;
204
282
  }
205
283
  });
284
+ _Object$defineProperty(exports, "MOBIUS_SOCKET_DISCONNECT_REASON", {
285
+ enumerable: true,
286
+ get: function get() {
287
+ return _types0.MOBIUS_SOCKET_DISCONNECT_REASON;
288
+ }
289
+ });
290
+ _Object$defineProperty(exports, "MobiusSocketDisconnectedEvent", {
291
+ enumerable: true,
292
+ get: function get() {
293
+ return _types0.MobiusSocketDisconnectedEvent;
294
+ }
295
+ });
206
296
  _Object$defineProperty(exports, "NoiseReductionEffect", {
207
297
  enumerable: true,
208
298
  get: function get() {
209
299
  return _mediaHelpers.NoiseReductionEffect;
210
300
  }
211
301
  });
302
+ _Object$defineProperty(exports, "Recording", {
303
+ enumerable: true,
304
+ get: function get() {
305
+ return _types4.Recording;
306
+ }
307
+ });
308
+ _Object$defineProperty(exports, "RecordingDeleteResponse", {
309
+ enumerable: true,
310
+ get: function get() {
311
+ return _types4.RecordingDeleteResponse;
312
+ }
313
+ });
314
+ _Object$defineProperty(exports, "RecordingListResponse", {
315
+ enumerable: true,
316
+ get: function get() {
317
+ return _types4.RecordingListResponse;
318
+ }
319
+ });
320
+ _Object$defineProperty(exports, "RecordingMetadata", {
321
+ enumerable: true,
322
+ get: function get() {
323
+ return _types4.RecordingMetadata;
324
+ }
325
+ });
326
+ _Object$defineProperty(exports, "RecordingMetadataResponse", {
327
+ enumerable: true,
328
+ get: function get() {
329
+ return _types4.RecordingMetadataResponse;
330
+ }
331
+ });
332
+ _Object$defineProperty(exports, "RecordingRequestType", {
333
+ enumerable: true,
334
+ get: function get() {
335
+ return _types4.RecordingRequestType;
336
+ }
337
+ });
338
+ _Object$defineProperty(exports, "RecordingResponse", {
339
+ enumerable: true,
340
+ get: function get() {
341
+ return _types4.RecordingResponse;
342
+ }
343
+ });
344
+ _Object$defineProperty(exports, "RecordingResponseFor", {
345
+ enumerable: true,
346
+ get: function get() {
347
+ return _types4.RecordingResponseFor;
348
+ }
349
+ });
350
+ _Object$defineProperty(exports, "RecordingStatus", {
351
+ enumerable: true,
352
+ get: function get() {
353
+ return _types4.RecordingStatus;
354
+ }
355
+ });
212
356
  _Object$defineProperty(exports, "SORT", {
213
357
  enumerable: true,
214
358
  get: function get() {
215
- return _types9.SORT;
359
+ return _types1.SORT;
216
360
  }
217
361
  });
218
362
  _Object$defineProperty(exports, "SORT_BY", {
219
363
  enumerable: true,
220
364
  get: function get() {
221
- return _types9.SORT_BY;
365
+ return _types1.SORT_BY;
222
366
  }
223
367
  });
224
368
  _Object$defineProperty(exports, "ServiceIndicator", {
225
369
  enumerable: true,
226
370
  get: function get() {
227
- return _types9.ServiceIndicator;
371
+ return _types1.ServiceIndicator;
228
372
  }
229
373
  });
230
374
  _Object$defineProperty(exports, "SummaryInfo", {
231
375
  enumerable: true,
232
376
  get: function get() {
233
- return _types6.SummaryInfo;
377
+ return _types8.SummaryInfo;
234
378
  }
235
379
  });
236
380
  _Object$defineProperty(exports, "ToggleSetting", {
237
381
  enumerable: true,
238
382
  get: function get() {
239
- return _types4.ToggleSetting;
383
+ return _types6.ToggleSetting;
240
384
  }
241
385
  });
242
386
  _Object$defineProperty(exports, "TransferType", {
243
387
  enumerable: true,
244
388
  get: function get() {
245
- return _types0.TransferType;
389
+ return _types11.TransferType;
390
+ }
391
+ });
392
+ _Object$defineProperty(exports, "UpdateCallQueueSettingsRequest", {
393
+ enumerable: true,
394
+ get: function get() {
395
+ return _types5.UpdateCallQueueSettingsRequest;
246
396
  }
247
397
  });
248
398
  _Object$defineProperty(exports, "UserSession", {
249
399
  enumerable: true,
250
400
  get: function get() {
251
- return _types8.UserSession;
401
+ return _types0.UserSession;
252
402
  }
253
403
  });
254
404
  _Object$defineProperty(exports, "VoicemailResponseEvent", {
255
405
  enumerable: true,
256
406
  get: function get() {
257
- return _types6.VoicemailResponseEvent;
407
+ return _types8.VoicemailResponseEvent;
258
408
  }
259
409
  });
260
410
  _Object$defineProperty(exports, "VoicemailSetting", {
261
411
  enumerable: true,
262
412
  get: function get() {
263
- return _types4.VoicemailSetting;
413
+ return _types6.VoicemailSetting;
414
+ }
415
+ });
416
+ _Object$defineProperty(exports, "WDMDevice", {
417
+ enumerable: true,
418
+ get: function get() {
419
+ return _types10.WDMDevice;
264
420
  }
265
421
  });
266
422
  _Object$defineProperty(exports, "createCallHistoryClient", {
@@ -269,6 +425,18 @@ _Object$defineProperty(exports, "createCallHistoryClient", {
269
425
  return _CallHistory.createCallHistoryClient;
270
426
  }
271
427
  });
428
+ _Object$defineProperty(exports, "createCallQueueClient", {
429
+ enumerable: true,
430
+ get: function get() {
431
+ return _CallQueue.createCallQueueClient;
432
+ }
433
+ });
434
+ _Object$defineProperty(exports, "createCallRecordingClient", {
435
+ enumerable: true,
436
+ get: function get() {
437
+ return _CallRecording.createCallRecordingClient;
438
+ }
439
+ });
272
440
  _Object$defineProperty(exports, "createCallSettingsClient", {
273
441
  enumerable: true,
274
442
  get: function get() {
@@ -299,23 +467,43 @@ _Object$defineProperty(exports, "createVoicemailClient", {
299
467
  return _Voicemail.createVoicemailClient;
300
468
  }
301
469
  });
470
+ _Object$defineProperty(exports, "getRemoteParty", {
471
+ enumerable: true,
472
+ get: function get() {
473
+ return _utils.getRemoteParty;
474
+ }
475
+ });
476
+ _Object$defineProperty(exports, "resolveCallingBackend", {
477
+ enumerable: true,
478
+ get: function get() {
479
+ return _Utils.resolveCallingBackend;
480
+ }
481
+ });
302
482
  var _mediaHelpers = require("@webex/media-helpers");
303
483
  var _CallSettings = require("./CallSettings/CallSettings");
304
484
  var _ContactsClient = require("./Contacts/ContactsClient");
305
485
  var _CallingClient = require("./CallingClient/CallingClient");
306
486
  var _CallHistory = require("./CallHistory/CallHistory");
307
487
  var _Voicemail = require("./Voicemail/Voicemail");
488
+ var _CallRecording = require("./CallRecording/CallRecording");
489
+ var _CallQueue = require("./CallQueue/CallQueue");
308
490
  var _Logger = _interopRequireDefault(require("./Logger"));
309
491
  var _types = require("./Errors/types");
310
492
  var _types2 = require("./CallingClient/types");
311
493
  var _types3 = require("./CallHistory/types");
312
- var _types4 = require("./CallSettings/types");
313
- var _types5 = require("./Contacts/types");
314
- var _types6 = require("./Voicemail/types");
315
- var _types7 = require("./CallingClient/line/types");
316
- var _types8 = require("./Events/types");
317
- var _types9 = require("./common/types");
494
+ var _types4 = require("./CallRecording/types");
495
+ var _utils = require("./CallRecording/utils");
496
+ var _constants = require("./CallQueue/constants");
497
+ var _types5 = require("./CallQueue/types");
498
+ var _types6 = require("./CallSettings/types");
499
+ var _types7 = require("./Contacts/types");
500
+ var _types8 = require("./Voicemail/types");
501
+ var _types9 = require("./CallingClient/line/types");
502
+ var _types0 = require("./Events/types");
503
+ var _types1 = require("./common/types");
504
+ var _Utils = require("./common/Utils");
505
+ var _types10 = require("./SDKConnector/types");
318
506
  var _Errors = require("./Errors");
319
- var _types0 = require("./CallingClient/calling/types");
320
- var _types1 = require("./Logger/types");
507
+ var _types11 = require("./CallingClient/calling/types");
508
+ var _types12 = require("./Logger/types");
321
509
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"names":["_mediaHelpers","require","_CallSettings","_ContactsClient","_CallingClient","_CallHistory","_Voicemail","_Logger","_interopRequireDefault","_types","_types2","_types3","_types4","_types5","_types6","_types7","_types8","_types9","_Errors","_types0","_types1"],"sources":["index.ts"],"sourcesContent":["import {NoiseReductionEffect, createMicrophoneStream} from '@webex/media-helpers';\nimport {createCallSettingsClient} from './CallSettings/CallSettings';\nimport {createContactsClient} from './Contacts/ContactsClient';\nimport {createClient} from './CallingClient/CallingClient';\nimport {createCallHistoryClient} from './CallHistory/CallHistory';\nimport {createVoicemailClient} from './Voicemail/Voicemail';\nimport Logger from './Logger';\n\nexport {\n createClient,\n createCallHistoryClient,\n createCallSettingsClient,\n createContactsClient,\n createMicrophoneStream,\n createVoicemailClient,\n Logger,\n NoiseReductionEffect,\n};\n\nexport {ERROR_LAYER, ERROR_TYPE} from './Errors/types';\nexport {ICallingClient} from './CallingClient/types';\nexport {ICallHistory, JanusResponseEvent} from './CallHistory/types';\nexport {\n CallForwardSetting,\n CallForwardAlwaysSetting,\n CallSettingResponse,\n ICallSettings,\n ToggleSetting,\n VoicemailSetting,\n} from './CallSettings/types';\nexport {Contact, ContactResponse, GroupType, IContacts} from './Contacts/types';\nexport {IVoicemail, SummaryInfo, VoicemailResponseEvent} from './Voicemail/types';\nexport {ILine, LINE_EVENTS} from './CallingClient/line/types';\nexport {\n CALLING_CLIENT_EVENT_KEYS,\n CALL_EVENT_KEYS,\n CallerIdDisplay,\n Disposition,\n LINE_EVENT_KEYS,\n COMMON_EVENT_KEYS,\n UserSession,\n} from './Events/types';\nexport {\n CallDetails,\n CallDirection,\n CallType,\n DisplayInformation,\n SORT,\n SORT_BY,\n} from './common/types';\nexport {CallError, LineError} from './Errors';\nexport {ICall, TransferType} from './CallingClient/calling/types';\nexport {LOGGER} from './Logger/types';\nexport {LocalMicrophoneStream} from '@webex/media-helpers';\nexport {CallingClientConfig} from './CallingClient/types';\nexport {ServiceIndicator} from './common/types';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,aAAA,GAAAC,OAAA;AACA,IAAAC,aAAA,GAAAD,OAAA;AACA,IAAAE,eAAA,GAAAF,OAAA;AACA,IAAAG,cAAA,GAAAH,OAAA;AACA,IAAAI,YAAA,GAAAJ,OAAA;AACA,IAAAK,UAAA,GAAAL,OAAA;AACA,IAAAM,OAAA,GAAAC,sBAAA,CAAAP,OAAA;AAaA,IAAAQ,MAAA,GAAAR,OAAA;AACA,IAAAS,OAAA,GAAAT,OAAA;AACA,IAAAU,OAAA,GAAAV,OAAA;AACA,IAAAW,OAAA,GAAAX,OAAA;AAQA,IAAAY,OAAA,GAAAZ,OAAA;AACA,IAAAa,OAAA,GAAAb,OAAA;AACA,IAAAc,OAAA,GAAAd,OAAA;AACA,IAAAe,OAAA,GAAAf,OAAA;AASA,IAAAgB,OAAA,GAAAhB,OAAA;AAQA,IAAAiB,OAAA,GAAAjB,OAAA;AACA,IAAAkB,OAAA,GAAAlB,OAAA;AACA,IAAAmB,OAAA,GAAAnB,OAAA","ignoreList":[]}
1
+ {"version":3,"names":["_mediaHelpers","require","_CallSettings","_ContactsClient","_CallingClient","_CallHistory","_Voicemail","_CallRecording","_CallQueue","_Logger","_interopRequireDefault","_types","_types2","_types3","_types4","_utils","_constants","_types5","_types6","_types7","_types8","_types9","_types0","_types1","_Utils","_types10","_Errors","_types11","_types12"],"sources":["index.ts"],"sourcesContent":["import {NoiseReductionEffect, createMicrophoneStream} from '@webex/media-helpers';\nimport {createCallSettingsClient} from './CallSettings/CallSettings';\nimport {createContactsClient} from './Contacts/ContactsClient';\nimport {createClient} from './CallingClient/CallingClient';\nimport {createCallHistoryClient} from './CallHistory/CallHistory';\nimport {createVoicemailClient} from './Voicemail/Voicemail';\nimport {createCallRecordingClient} from './CallRecording/CallRecording';\nimport {createCallQueueClient} from './CallQueue/CallQueue';\nimport Logger from './Logger';\n\nexport {\n createClient,\n createCallHistoryClient,\n createCallSettingsClient,\n createContactsClient,\n createMicrophoneStream,\n createVoicemailClient,\n createCallRecordingClient,\n createCallQueueClient,\n Logger,\n NoiseReductionEffect,\n};\n\nexport {ERROR_LAYER, ERROR_TYPE} from './Errors/types';\nexport {ICallingClient} from './CallingClient/types';\nexport {ICallHistory, JanusResponseEvent} from './CallHistory/types';\nexport {\n ICallRecording,\n Recording,\n RecordingListResponse,\n RecordingMetadata,\n RecordingMetadataResponse,\n RecordingResponse,\n RecordingStatus,\n RecordingDeleteResponse,\n DeleteRecordingOptions,\n GetRecordingsOptions,\n RecordingRequestType,\n GetCallRecordingRequest,\n RecordingResponseFor,\n} from './CallRecording/types';\nexport {getRemoteParty} from './CallRecording/utils';\nexport {CallQueueClient} from './CallQueue/CallQueue';\nexport {ACD_STATE} from './CallQueue/constants';\nexport {\n CallQueue,\n CallQueueAgentStatus,\n CallQueueClientOptions,\n CallQueueResponse,\n ICallQueue,\n UpdateCallQueueSettingsRequest,\n} from './CallQueue/types';\nexport {\n CallForwardSetting,\n CallForwardAlwaysSetting,\n CallSettingResponse,\n ICallSettings,\n ToggleSetting,\n VoicemailSetting,\n} from './CallSettings/types';\nexport {Contact, ContactResponse, GroupType, IContacts} from './Contacts/types';\nexport {IVoicemail, SummaryInfo, VoicemailResponseEvent} from './Voicemail/types';\nexport {ILine, LINE_EVENTS} from './CallingClient/line/types';\nexport {\n CALLING_CLIENT_EVENT_KEYS,\n CALL_EVENT_KEYS,\n CallerIdDisplay,\n Disposition,\n LINE_EVENT_KEYS,\n COMMON_EVENT_KEYS,\n MOBIUS_SOCKET_DISCONNECT_REASON,\n MobiusSocketDisconnectedEvent,\n UserSession,\n} from './Events/types';\nexport {\n CallDetails,\n CallDirection,\n CallType,\n CALLING_BACKEND,\n DisplayInformation,\n SORT,\n SORT_BY,\n} from './common/types';\nexport {resolveCallingBackend} from './common/Utils';\nexport {WDMDevice} from './SDKConnector/types';\nexport {CallError, LineError} from './Errors';\nexport {ICall, TransferType} from './CallingClient/calling/types';\nexport {LOGGER} from './Logger/types';\nexport {LocalMicrophoneStream} from '@webex/media-helpers';\nexport {CallingClientConfig, IceGatheringConfig} from './CallingClient/types';\nexport {ServiceIndicator} from './common/types';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,aAAA,GAAAC,OAAA;AACA,IAAAC,aAAA,GAAAD,OAAA;AACA,IAAAE,eAAA,GAAAF,OAAA;AACA,IAAAG,cAAA,GAAAH,OAAA;AACA,IAAAI,YAAA,GAAAJ,OAAA;AACA,IAAAK,UAAA,GAAAL,OAAA;AACA,IAAAM,cAAA,GAAAN,OAAA;AACA,IAAAO,UAAA,GAAAP,OAAA;AACA,IAAAQ,OAAA,GAAAC,sBAAA,CAAAT,OAAA;AAeA,IAAAU,MAAA,GAAAV,OAAA;AACA,IAAAW,OAAA,GAAAX,OAAA;AACA,IAAAY,OAAA,GAAAZ,OAAA;AACA,IAAAa,OAAA,GAAAb,OAAA;AAeA,IAAAc,MAAA,GAAAd,OAAA;AAEA,IAAAe,UAAA,GAAAf,OAAA;AACA,IAAAgB,OAAA,GAAAhB,OAAA;AAQA,IAAAiB,OAAA,GAAAjB,OAAA;AAQA,IAAAkB,OAAA,GAAAlB,OAAA;AACA,IAAAmB,OAAA,GAAAnB,OAAA;AACA,IAAAoB,OAAA,GAAApB,OAAA;AACA,IAAAqB,OAAA,GAAArB,OAAA;AAWA,IAAAsB,OAAA,GAAAtB,OAAA;AASA,IAAAuB,MAAA,GAAAvB,OAAA;AACA,IAAAwB,QAAA,GAAAxB,OAAA;AACA,IAAAyB,OAAA,GAAAzB,OAAA;AACA,IAAA0B,QAAA,GAAA1B,OAAA;AACA,IAAA2B,QAAA,GAAA3B,OAAA","ignoreList":[]}
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+
3
+ var _Object$defineProperty = require("@babel/runtime-corejs2/core-js/object/define-property");
4
+ _Object$defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.default = void 0;
8
+ /*!
9
+ * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
10
+ */
11
+
12
+ var mobiusSocketConfig = {
13
+ wssResponseTimeout: 10000,
14
+ backoffTimeMax: 32000,
15
+ backoffTimeReset: 1000,
16
+ initialConnectionMaxRetries: 0,
17
+ maxRetries: 3,
18
+ forceCloseDelay: 2000,
19
+ dedupCacheMaxSize: 1000
20
+ };
21
+ var _default = exports.default = {
22
+ mobiusSocket: mobiusSocketConfig
23
+ };
24
+ //# sourceMappingURL=config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"names":["mobiusSocketConfig","wssResponseTimeout","backoffTimeMax","backoffTimeReset","initialConnectionMaxRetries","maxRetries","forceCloseDelay","dedupCacheMaxSize","_default","exports","default","mobiusSocket"],"sources":["config.ts"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\nexport interface MobiusSocketConfig {\n /** Milliseconds to wait for websocket request/response messages, including auth. */\n wssResponseTimeout: number;\n /** Maximum milliseconds between connection attempts. */\n backoffTimeMax: number;\n /** Initial milliseconds between connection attempts. */\n backoffTimeReset: number;\n /** Maximum number of retries for the initial connect() flow before rejecting. */\n initialConnectionMaxRetries: number;\n /** Maximum number of retries for reconnect attempts. 0 means unlimited. */\n maxRetries: number;\n /** Milliseconds to wait for a close frame before forcing closure. */\n forceCloseDelay: number;\n /** Maximum eventIds retained in the dedup cache to suppress duplicate async_event messages. */\n dedupCacheMaxSize: number;\n}\n\nconst mobiusSocketConfig: MobiusSocketConfig = {\n wssResponseTimeout: 10000,\n backoffTimeMax: 32000,\n backoffTimeReset: 1000,\n initialConnectionMaxRetries: 0,\n maxRetries: 3,\n forceCloseDelay: 2000,\n dedupCacheMaxSize: 1000,\n};\n\nexport default {\n mobiusSocket: mobiusSocketConfig,\n};\n"],"mappings":";;;;;;;AAAA;AACA;AACA;;AAmBA,IAAMA,kBAAsC,GAAG;EAC7CC,kBAAkB,EAAE,KAAK;EACzBC,cAAc,EAAE,KAAK;EACrBC,gBAAgB,EAAE,IAAI;EACtBC,2BAA2B,EAAE,CAAC;EAC9BC,UAAU,EAAE,CAAC;EACbC,eAAe,EAAE,IAAI;EACrBC,iBAAiB,EAAE;AACrB,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEa;EACbC,YAAY,EAAEX;AAChB,CAAC","ignoreList":[]}
@@ -0,0 +1,143 @@
1
+ "use strict";
2
+
3
+ var _Reflect$construct = require("@babel/runtime-corejs2/core-js/reflect/construct");
4
+ var _Object$defineProperty = require("@babel/runtime-corejs2/core-js/object/define-property");
5
+ var _interopRequireDefault = require("@babel/runtime-corejs2/helpers/interopRequireDefault");
6
+ _Object$defineProperty(exports, "__esModule", {
7
+ value: true
8
+ });
9
+ exports.UnknownResponse = exports.NotAuthorized = exports.Forbidden = exports.ConnectionError = exports.BadRequest = void 0;
10
+ exports.createTimeoutError = createTimeoutError;
11
+ exports.createWssResponseError = createWssResponseError;
12
+ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/classCallCheck"));
13
+ var _createClass2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/createClass"));
14
+ var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/possibleConstructorReturn"));
15
+ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/getPrototypeOf"));
16
+ var _inherits2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/inherits"));
17
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/defineProperty"));
18
+ var _common = require("@webex/common");
19
+ function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? _Reflect$construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
20
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } /*!
21
+ * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
22
+ */ // @ts-expect-error `@webex/common` is still JS-only and does not ship declarations.
23
+ /**
24
+ * Exception thrown when a websocket gets closed.
25
+ */
26
+ var ConnectionError = exports.ConnectionError = /*#__PURE__*/function (_Exception) {
27
+ function ConnectionError() {
28
+ var _this;
29
+ var event = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
30
+ (0, _classCallCheck2.default)(this, ConnectionError);
31
+ _this = _callSuper(this, ConnectionError, [event]);
32
+ (0, _defineProperty2.default)(_this, "code", void 0);
33
+ (0, _defineProperty2.default)(_this, "reason", void 0);
34
+ _this.code = event.code;
35
+ _this.reason = event.reason;
36
+ return _this;
37
+ }
38
+
39
+ /**
40
+ * Parses a close event and sets the code and reason properties.
41
+ * @param event - Socket close event to parse
42
+ * @returns The reason string from the event
43
+ */
44
+ (0, _inherits2.default)(ConnectionError, _Exception);
45
+ return (0, _createClass2.default)(ConnectionError, [{
46
+ key: "parse",
47
+ value: function parse() {
48
+ var event = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
49
+ return event.reason;
50
+ }
51
+ }]);
52
+ }(_common.Exception);
53
+ /**
54
+ * Thrown for CloseCode 1005.
55
+ * UnknownResponse is produced by IE when we receive a 4XXX close code.
56
+ * This should typically be treated like a NotFound error.
57
+ */
58
+ (0, _defineProperty2.default)(ConnectionError, "defaultMessage", 'Failed to connect to socket');
59
+ var UnknownResponse = exports.UnknownResponse = /*#__PURE__*/function (_ConnectionError2) {
60
+ // eslint-disable-next-line no-useless-constructor
61
+ function UnknownResponse(event) {
62
+ (0, _classCallCheck2.default)(this, UnknownResponse);
63
+ return _callSuper(this, UnknownResponse, [event]);
64
+ }
65
+ (0, _inherits2.default)(UnknownResponse, _ConnectionError2);
66
+ return (0, _createClass2.default)(UnknownResponse);
67
+ }(ConnectionError);
68
+ /**
69
+ * Thrown for CloseCode 4400.
70
+ * BadRequest usually implies an attempt to use service account credentials.
71
+ */
72
+ (0, _defineProperty2.default)(UnknownResponse, "defaultMessage", 'UnknownResponse is produced by IE when we receive a 4XXX. You probably want to treat this like a NotFound');
73
+ var BadRequest = exports.BadRequest = /*#__PURE__*/function (_ConnectionError3) {
74
+ // eslint-disable-next-line no-useless-constructor
75
+ function BadRequest(event) {
76
+ (0, _classCallCheck2.default)(this, BadRequest);
77
+ return _callSuper(this, BadRequest, [event]);
78
+ }
79
+ (0, _inherits2.default)(BadRequest, _ConnectionError3);
80
+ return (0, _createClass2.default)(BadRequest);
81
+ }(ConnectionError);
82
+ /**
83
+ * Thrown for CloseCode 4401.
84
+ * Indicates an authorization failure requiring a token refresh.
85
+ */
86
+ (0, _defineProperty2.default)(BadRequest, "defaultMessage", 'BadRequest usually implies an attempt to use service account credentials');
87
+ var NotAuthorized = exports.NotAuthorized = /*#__PURE__*/function (_ConnectionError4) {
88
+ // eslint-disable-next-line no-useless-constructor
89
+ function NotAuthorized(event) {
90
+ (0, _classCallCheck2.default)(this, NotAuthorized);
91
+ return _callSuper(this, NotAuthorized, [event]);
92
+ }
93
+ (0, _inherits2.default)(NotAuthorized, _ConnectionError4);
94
+ return (0, _createClass2.default)(NotAuthorized);
95
+ }(ConnectionError);
96
+ /**
97
+ * Thrown for CloseCode 4403.
98
+ * Forbidden usually implies the credentials are not entitled for Webex.
99
+ */
100
+ (0, _defineProperty2.default)(NotAuthorized, "defaultMessage", 'Please refresh your access token');
101
+ var Forbidden = exports.Forbidden = /*#__PURE__*/function (_ConnectionError5) {
102
+ // eslint-disable-next-line no-useless-constructor
103
+ function Forbidden(event) {
104
+ (0, _classCallCheck2.default)(this, Forbidden);
105
+ return _callSuper(this, Forbidden, [event]);
106
+ }
107
+ (0, _inherits2.default)(Forbidden, _ConnectionError5);
108
+ return (0, _createClass2.default)(Forbidden);
109
+ }(ConnectionError);
110
+ /**
111
+ * Creates a MobiusSocketResponseError from a socket response.
112
+ *
113
+ * @param response - The socket response that triggered the error
114
+ * @param statusCode - HTTP-style status code for the error
115
+ * @param statusMessage - Human-readable status message
116
+ * @returns A formatted error object with response details
117
+ */
118
+ (0, _defineProperty2.default)(Forbidden, "defaultMessage", 'Forbidden usually implies these credentials are not entitled for Webex');
119
+ function createWssResponseError(response, statusCode, statusMessage) {
120
+ var error = new Error(statusMessage || "Mobius websocket request failed with status ".concat(statusCode || 'unknown'));
121
+ error.name = 'MobiusSocketResponseError';
122
+ error.statusCode = statusCode;
123
+ error.statusMessage = statusMessage;
124
+ error.response = response;
125
+ error.trackingId = response === null || response === void 0 ? void 0 : response.trackingId;
126
+ return error;
127
+ }
128
+
129
+ /**
130
+ * Creates a timeout error for a socket request that didn't receive a response.
131
+ *
132
+ * @param request - The socket request that timed out
133
+ * @returns A timeout error with status code 408
134
+ */
135
+ function createTimeoutError(request) {
136
+ var errorPayload = {
137
+ type: 'response_event',
138
+ subtype: request.type,
139
+ trackingId: request.trackingId
140
+ };
141
+ return createWssResponseError(errorPayload, 408, 'Mobius websocket response timed out');
142
+ }
143
+ //# sourceMappingURL=errors.js.map