@webex/plugin-meetings 3.0.0-beta.14 → 3.0.0-beta.16

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 (311) hide show
  1. package/UPGRADING.md +9 -9
  2. package/browsers.js +19 -24
  3. package/dist/common/browser-detection.js +1 -20
  4. package/dist/common/browser-detection.js.map +1 -1
  5. package/dist/common/collection.js +5 -20
  6. package/dist/common/collection.js.map +1 -1
  7. package/dist/common/config.js +0 -7
  8. package/dist/common/config.js.map +1 -1
  9. package/dist/common/errors/captcha-error.js +5 -26
  10. package/dist/common/errors/captcha-error.js.map +1 -1
  11. package/dist/common/errors/intent-to-join.js +5 -26
  12. package/dist/common/errors/intent-to-join.js.map +1 -1
  13. package/dist/common/errors/join-meeting.js +6 -27
  14. package/dist/common/errors/join-meeting.js.map +1 -1
  15. package/dist/common/errors/media.js +5 -26
  16. package/dist/common/errors/media.js.map +1 -1
  17. package/dist/common/errors/parameter.js +5 -33
  18. package/dist/common/errors/parameter.js.map +1 -1
  19. package/dist/common/errors/password-error.js +5 -26
  20. package/dist/common/errors/password-error.js.map +1 -1
  21. package/dist/common/errors/permission.js +4 -25
  22. package/dist/common/errors/permission.js.map +1 -1
  23. package/dist/common/errors/reconnection-in-progress.js +0 -17
  24. package/dist/common/errors/reconnection-in-progress.js.map +1 -1
  25. package/dist/common/errors/reconnection.js +5 -26
  26. package/dist/common/errors/reconnection.js.map +1 -1
  27. package/dist/common/errors/stats.js +5 -26
  28. package/dist/common/errors/stats.js.map +1 -1
  29. package/dist/common/errors/webex-errors.js +6 -41
  30. package/dist/common/errors/webex-errors.js.map +1 -1
  31. package/dist/common/errors/webex-meetings-error.js +1 -24
  32. package/dist/common/errors/webex-meetings-error.js.map +1 -1
  33. package/dist/common/events/events-scope.js +0 -22
  34. package/dist/common/events/events-scope.js.map +1 -1
  35. package/dist/common/events/events.js +0 -23
  36. package/dist/common/events/events.js.map +1 -1
  37. package/dist/common/events/trigger-proxy.js +0 -12
  38. package/dist/common/events/trigger-proxy.js.map +1 -1
  39. package/dist/common/events/util.js +0 -15
  40. package/dist/common/events/util.js.map +1 -1
  41. package/dist/common/logs/logger-config.js +0 -4
  42. package/dist/common/logs/logger-config.js.map +1 -1
  43. package/dist/common/logs/logger-proxy.js +1 -8
  44. package/dist/common/logs/logger-proxy.js.map +1 -1
  45. package/dist/common/logs/request.js +35 -61
  46. package/dist/common/logs/request.js.map +1 -1
  47. package/dist/common/queue.js +4 -14
  48. package/dist/common/queue.js.map +1 -1
  49. package/dist/config.js +1 -5
  50. package/dist/config.js.map +1 -1
  51. package/dist/constants.js +45 -40
  52. package/dist/constants.js.map +1 -1
  53. package/dist/index.js +1 -17
  54. package/dist/index.js.map +1 -1
  55. package/dist/locus-info/controlsUtils.js +10 -28
  56. package/dist/locus-info/controlsUtils.js.map +1 -1
  57. package/dist/locus-info/embeddedAppsUtils.js +3 -26
  58. package/dist/locus-info/embeddedAppsUtils.js.map +1 -1
  59. package/dist/locus-info/fullState.js +0 -15
  60. package/dist/locus-info/fullState.js.map +1 -1
  61. package/dist/locus-info/hostUtils.js +4 -12
  62. package/dist/locus-info/hostUtils.js.map +1 -1
  63. package/dist/locus-info/index.js +101 -193
  64. package/dist/locus-info/index.js.map +1 -1
  65. package/dist/locus-info/infoUtils.js +0 -38
  66. package/dist/locus-info/infoUtils.js.map +1 -1
  67. package/dist/locus-info/mediaSharesUtils.js +12 -38
  68. package/dist/locus-info/mediaSharesUtils.js.map +1 -1
  69. package/dist/locus-info/parser.js +87 -123
  70. package/dist/locus-info/parser.js.map +1 -1
  71. package/dist/locus-info/selfUtils.js +16 -81
  72. package/dist/locus-info/selfUtils.js.map +1 -1
  73. package/dist/media/index.js +43 -97
  74. package/dist/media/index.js.map +1 -1
  75. package/dist/media/internal-media-core-wrapper.js +0 -4
  76. package/dist/media/internal-media-core-wrapper.js.map +1 -1
  77. package/dist/media/properties.js +64 -110
  78. package/dist/media/properties.js.map +1 -1
  79. package/dist/media/util.js +2 -9
  80. package/dist/media/util.js.map +1 -1
  81. package/dist/mediaQualityMetrics/config.js +10 -12
  82. package/dist/mediaQualityMetrics/config.js.map +1 -1
  83. package/dist/meeting/effectsState.js +120 -192
  84. package/dist/meeting/effectsState.js.map +1 -1
  85. package/dist/meeting/in-meeting-actions.js +0 -13
  86. package/dist/meeting/in-meeting-actions.js.map +1 -1
  87. package/dist/meeting/index.js +819 -1591
  88. package/dist/meeting/index.js.map +1 -1
  89. package/dist/meeting/muteState.js +31 -78
  90. package/dist/meeting/muteState.js.map +1 -1
  91. package/dist/meeting/request.js +160 -230
  92. package/dist/meeting/request.js.map +1 -1
  93. package/dist/meeting/request.type.js +0 -1
  94. package/dist/meeting/request.type.js.map +1 -1
  95. package/dist/meeting/state.js +21 -31
  96. package/dist/meeting/state.js.map +1 -1
  97. package/dist/meeting/util.js +19 -158
  98. package/dist/meeting/util.js.map +1 -1
  99. package/dist/meeting-info/collection.js +3 -25
  100. package/dist/meeting-info/collection.js.map +1 -1
  101. package/dist/meeting-info/index.js +10 -33
  102. package/dist/meeting-info/index.js.map +1 -1
  103. package/dist/meeting-info/meeting-info-v2.js +179 -268
  104. package/dist/meeting-info/meeting-info-v2.js.map +1 -1
  105. package/dist/meeting-info/request.js +1 -16
  106. package/dist/meeting-info/request.js.map +1 -1
  107. package/dist/meeting-info/util.js +98 -183
  108. package/dist/meeting-info/util.js.map +1 -1
  109. package/dist/meeting-info/utilv2.js +137 -228
  110. package/dist/meeting-info/utilv2.js.map +1 -1
  111. package/dist/meetings/collection.js +3 -21
  112. package/dist/meetings/collection.js.map +1 -1
  113. package/dist/meetings/index.js +450 -582
  114. package/dist/meetings/index.js.map +1 -1
  115. package/dist/meetings/request.js +7 -30
  116. package/dist/meetings/request.js.map +1 -1
  117. package/dist/meetings/util.js +99 -155
  118. package/dist/meetings/util.js.map +1 -1
  119. package/dist/member/index.js +49 -89
  120. package/dist/member/index.js.map +1 -1
  121. package/dist/member/util.js +17 -68
  122. package/dist/member/util.js.map +1 -1
  123. package/dist/members/collection.js +2 -12
  124. package/dist/members/collection.js.map +1 -1
  125. package/dist/members/index.js +72 -194
  126. package/dist/members/index.js.map +1 -1
  127. package/dist/members/request.js +21 -56
  128. package/dist/members/request.js.map +1 -1
  129. package/dist/members/util.js +9 -38
  130. package/dist/members/util.js.map +1 -1
  131. package/dist/metrics/config.js +0 -2
  132. package/dist/metrics/config.js.map +1 -1
  133. package/dist/metrics/constants.js +1 -2
  134. package/dist/metrics/constants.js.map +1 -1
  135. package/dist/metrics/index.js +48 -136
  136. package/dist/metrics/index.js.map +1 -1
  137. package/dist/multistream/mediaRequestManager.js +12 -28
  138. package/dist/multistream/mediaRequestManager.js.map +1 -1
  139. package/dist/multistream/multistreamMedia.js +11 -21
  140. package/dist/multistream/multistreamMedia.js.map +1 -1
  141. package/dist/multistream/receiveSlot.js +7 -47
  142. package/dist/multistream/receiveSlot.js.map +1 -1
  143. package/dist/multistream/receiveSlotManager.js +38 -77
  144. package/dist/multistream/receiveSlotManager.js.map +1 -1
  145. package/dist/multistream/remoteMedia.js +11 -56
  146. package/dist/multistream/remoteMedia.js.map +1 -1
  147. package/dist/multistream/remoteMediaGroup.js +6 -40
  148. package/dist/multistream/remoteMediaGroup.js.map +1 -1
  149. package/dist/multistream/remoteMediaManager.js +221 -380
  150. package/dist/multistream/remoteMediaManager.js.map +1 -1
  151. package/dist/networkQualityMonitor/index.js +28 -57
  152. package/dist/networkQualityMonitor/index.js.map +1 -1
  153. package/dist/personal-meeting-room/index.js +10 -45
  154. package/dist/personal-meeting-room/index.js.map +1 -1
  155. package/dist/personal-meeting-room/request.js +2 -33
  156. package/dist/personal-meeting-room/request.js.map +1 -1
  157. package/dist/personal-meeting-room/util.js +0 -13
  158. package/dist/personal-meeting-room/util.js.map +1 -1
  159. package/dist/reachability/index.js +100 -166
  160. package/dist/reachability/index.js.map +1 -1
  161. package/dist/reachability/request.js +2 -18
  162. package/dist/reachability/request.js.map +1 -1
  163. package/dist/reactions/reactions.js +0 -2
  164. package/dist/reactions/reactions.js.map +1 -1
  165. package/dist/reactions/reactions.type.js +2 -6
  166. package/dist/reactions/reactions.type.js.map +1 -1
  167. package/dist/reconnection-manager/index.js +294 -459
  168. package/dist/reconnection-manager/index.js.map +1 -1
  169. package/dist/roap/index.js +18 -53
  170. package/dist/roap/index.js.map +1 -1
  171. package/dist/roap/request.js +13 -55
  172. package/dist/roap/request.js.map +1 -1
  173. package/dist/roap/turnDiscovery.js +10 -52
  174. package/dist/roap/turnDiscovery.js.map +1 -1
  175. package/dist/statsAnalyzer/global.js +0 -2
  176. package/dist/statsAnalyzer/global.js.map +1 -1
  177. package/dist/statsAnalyzer/index.js +66 -174
  178. package/dist/statsAnalyzer/index.js.map +1 -1
  179. package/dist/statsAnalyzer/mqaUtil.js +54 -53
  180. package/dist/statsAnalyzer/mqaUtil.js.map +1 -1
  181. package/dist/transcription/index.js +13 -45
  182. package/dist/transcription/index.js.map +1 -1
  183. package/internal-README.md +7 -6
  184. package/package.json +18 -18
  185. package/src/common/browser-detection.ts +9 -6
  186. package/src/common/collection.ts +3 -1
  187. package/src/common/errors/captcha-error.ts +6 -6
  188. package/src/common/errors/intent-to-join.ts +6 -6
  189. package/src/common/errors/join-meeting.ts +12 -8
  190. package/src/common/errors/media.ts +6 -6
  191. package/src/common/errors/parameter.ts +9 -6
  192. package/src/common/errors/password-error.ts +6 -6
  193. package/src/common/errors/permission.ts +5 -5
  194. package/src/common/errors/reconnection.ts +6 -6
  195. package/src/common/errors/stats.ts +6 -6
  196. package/src/common/errors/webex-errors.ts +7 -5
  197. package/src/common/errors/webex-meetings-error.ts +1 -1
  198. package/src/common/events/events-scope.ts +5 -1
  199. package/src/common/events/events.ts +5 -1
  200. package/src/common/events/trigger-proxy.ts +8 -3
  201. package/src/common/events/util.ts +1 -2
  202. package/src/common/logs/logger-proxy.ts +21 -10
  203. package/src/common/logs/request.ts +11 -8
  204. package/src/config.ts +11 -11
  205. package/src/constants.ts +1 -1
  206. package/src/index.js +1 -1
  207. package/src/locus-info/controlsUtils.ts +34 -24
  208. package/src/locus-info/fullState.ts +15 -11
  209. package/src/locus-info/hostUtils.ts +4 -3
  210. package/src/locus-info/index.ts +25 -34
  211. package/src/locus-info/infoUtils.ts +12 -4
  212. package/src/locus-info/mediaSharesUtils.ts +4 -4
  213. package/src/locus-info/parser.ts +45 -68
  214. package/src/locus-info/selfUtils.ts +106 -57
  215. package/src/media/index.ts +123 -135
  216. package/src/media/internal-media-core-wrapper.ts +2 -2
  217. package/src/media/properties.ts +30 -20
  218. package/src/media/util.ts +1 -1
  219. package/src/mediaQualityMetrics/config.ts +46 -46
  220. package/src/meeting/effectsState.ts +35 -35
  221. package/src/meeting/in-meeting-actions.ts +7 -3
  222. package/src/meeting/index.ts +1559 -1292
  223. package/src/meeting/muteState.ts +62 -31
  224. package/src/meeting/request.ts +155 -116
  225. package/src/meeting/request.type.ts +8 -8
  226. package/src/meeting/state.ts +45 -30
  227. package/src/meeting/util.ts +101 -70
  228. package/src/meeting-info/collection.ts +2 -1
  229. package/src/meeting-info/index.ts +32 -30
  230. package/src/meeting-info/meeting-info-v2.ts +106 -108
  231. package/src/meeting-info/request.ts +9 -3
  232. package/src/meeting-info/util.ts +54 -46
  233. package/src/meeting-info/utilv2.ts +59 -53
  234. package/src/meetings/collection.ts +1 -1
  235. package/src/meetings/index.ts +512 -440
  236. package/src/meetings/request.ts +26 -24
  237. package/src/meetings/util.ts +29 -29
  238. package/src/member/index.ts +55 -49
  239. package/src/member/util.ts +26 -13
  240. package/src/members/collection.ts +0 -1
  241. package/src/members/index.ts +182 -126
  242. package/src/members/request.ts +46 -14
  243. package/src/members/util.ts +44 -42
  244. package/src/metrics/config.ts +254 -81
  245. package/src/metrics/constants.ts +0 -2
  246. package/src/metrics/index.ts +84 -71
  247. package/src/multistream/multistreamMedia.ts +1 -0
  248. package/src/multistream/receiveSlot.ts +1 -0
  249. package/src/multistream/receiveSlotManager.ts +1 -0
  250. package/src/multistream/remoteMedia.ts +1 -1
  251. package/src/multistream/remoteMediaGroup.ts +2 -1
  252. package/src/multistream/remoteMediaManager.ts +3 -0
  253. package/src/networkQualityMonitor/index.ts +20 -23
  254. package/src/personal-meeting-room/index.ts +12 -16
  255. package/src/personal-meeting-room/request.ts +10 -3
  256. package/src/personal-meeting-room/util.ts +3 -3
  257. package/src/reachability/index.ts +61 -59
  258. package/src/reachability/request.ts +36 -32
  259. package/src/reactions/reactions.ts +4 -4
  260. package/src/reactions/reactions.type.ts +4 -3
  261. package/src/reconnection-manager/index.ts +139 -84
  262. package/src/roap/index.ts +46 -38
  263. package/src/roap/request.ts +44 -31
  264. package/src/roap/turnDiscovery.ts +59 -30
  265. package/src/statsAnalyzer/global.ts +30 -33
  266. package/src/statsAnalyzer/index.ts +432 -175
  267. package/src/statsAnalyzer/mqaUtil.ts +178 -72
  268. package/src/transcription/index.ts +34 -32
  269. package/test/integration/spec/journey.js +664 -463
  270. package/test/integration/spec/space-meeting.js +319 -204
  271. package/test/integration/spec/transcription.js +7 -8
  272. package/test/unit/spec/common/browser-detection.js +9 -28
  273. package/test/unit/spec/fixture/locus.js +92 -90
  274. package/test/unit/spec/locus-info/controlsUtils.js +5 -5
  275. package/test/unit/spec/locus-info/embeddedAppsUtils.js +8 -6
  276. package/test/unit/spec/locus-info/index.js +1 -2
  277. package/test/unit/spec/locus-info/infoUtils.js +26 -33
  278. package/test/unit/spec/locus-info/lib/BasicSeqCmp.json +88 -430
  279. package/test/unit/spec/locus-info/lib/SeqCmp.json +513 -685
  280. package/test/unit/spec/locus-info/parser.js +3 -9
  281. package/test/unit/spec/locus-info/selfConstant.js +72 -103
  282. package/test/unit/spec/locus-info/selfUtils.js +21 -12
  283. package/test/unit/spec/meeting/effectsState.js +36 -46
  284. package/test/unit/spec/meeting/in-meeting-actions.ts +2 -3
  285. package/test/unit/spec/meeting/index.js +1279 -685
  286. package/test/unit/spec/meeting/muteState.js +42 -33
  287. package/test/unit/spec/meeting/request.js +57 -46
  288. package/test/unit/spec/meeting/utils.js +78 -53
  289. package/test/unit/spec/meeting-info/meetinginfov2.js +100 -73
  290. package/test/unit/spec/meeting-info/request.js +7 -9
  291. package/test/unit/spec/meeting-info/util.js +11 -12
  292. package/test/unit/spec/meeting-info/utilv2.js +110 -74
  293. package/test/unit/spec/meetings/collection.js +1 -1
  294. package/test/unit/spec/meetings/index.js +438 -257
  295. package/test/unit/spec/meetings/utils.js +14 -12
  296. package/test/unit/spec/member/index.js +0 -1
  297. package/test/unit/spec/member/util.js +5 -6
  298. package/test/unit/spec/members/index.js +104 -54
  299. package/test/unit/spec/members/request.js +29 -20
  300. package/test/unit/spec/members/utils.js +8 -5
  301. package/test/unit/spec/metrics/index.js +16 -21
  302. package/test/unit/spec/networkQualityMonitor/index.js +21 -15
  303. package/test/unit/spec/personal-meeting-room/personal-meeting-room.js +2 -7
  304. package/test/unit/spec/reachability/index.ts +9 -11
  305. package/test/unit/spec/reconnection-manager/index.js +16 -18
  306. package/test/unit/spec/roap/turnDiscovery.ts +22 -19
  307. package/test/unit/spec/stats-analyzer/index.js +25 -20
  308. package/test/utils/cmr.js +44 -42
  309. package/test/utils/testUtils.js +83 -74
  310. package/test/utils/webex-config.js +18 -18
  311. package/test/utils/webex-test-users.js +53 -50
@@ -1,80 +1,46 @@
1
1
  "use strict";
2
2
 
3
3
  var _Reflect$construct = require("@babel/runtime-corejs2/core-js/reflect/construct");
4
-
5
4
  var _Object$keys = require("@babel/runtime-corejs2/core-js/object/keys");
6
-
7
5
  var _Object$getOwnPropertySymbols = require("@babel/runtime-corejs2/core-js/object/get-own-property-symbols");
8
-
9
6
  var _Object$getOwnPropertyDescriptor = require("@babel/runtime-corejs2/core-js/object/get-own-property-descriptor");
10
-
11
7
  var _Object$getOwnPropertyDescriptors = require("@babel/runtime-corejs2/core-js/object/get-own-property-descriptors");
12
-
13
8
  var _Object$defineProperties = require("@babel/runtime-corejs2/core-js/object/define-properties");
14
-
15
9
  var _Object$defineProperty = require("@babel/runtime-corejs2/core-js/object/define-property");
16
-
17
10
  var _interopRequireDefault = require("@babel/runtime-corejs2/helpers/interopRequireDefault");
18
-
19
11
  _Object$defineProperty(exports, "__esModule", {
20
12
  value: true
21
13
  });
22
-
23
14
  exports.default = void 0;
24
-
25
15
  var _promise = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/promise"));
26
-
27
16
  var _stringify = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/json/stringify"));
28
-
29
17
  var _regenerator = _interopRequireDefault(require("@babel/runtime-corejs2/regenerator"));
30
-
31
18
  var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/asyncToGenerator"));
32
-
33
19
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/classCallCheck"));
34
-
35
20
  var _createClass2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/createClass"));
36
-
37
21
  var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/assertThisInitialized"));
38
-
39
22
  var _inherits2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/inherits"));
40
-
41
23
  var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/possibleConstructorReturn"));
42
-
43
24
  var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/getPrototypeOf"));
44
-
45
25
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/defineProperty"));
46
-
47
26
  var _debounce2 = _interopRequireDefault(require("lodash/debounce"));
48
-
49
27
  var _uuid = _interopRequireDefault(require("uuid"));
50
-
51
28
  var _webexCore = require("@webex/webex-core");
52
-
53
29
  var _common = require("@webex/common");
54
-
55
30
  var _loggerProxy = _interopRequireDefault(require("../common/logs/logger-proxy"));
56
-
57
31
  var _constants = require("../constants");
58
-
59
32
  function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
60
-
61
33
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
62
-
63
34
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
64
-
65
35
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
66
-
67
36
  /**
68
37
  * @class MeetingRequest
69
38
  */
70
39
  var MeetingRequest = /*#__PURE__*/function (_StatelessWebexPlugin) {
71
40
  (0, _inherits2.default)(MeetingRequest, _StatelessWebexPlugin);
72
-
73
41
  var _super = _createSuper(MeetingRequest);
74
-
75
42
  function MeetingRequest(attrs, options) {
76
43
  var _this;
77
-
78
44
  (0, _classCallCheck2.default)(this, MeetingRequest);
79
45
  _this = _super.call(this, attrs, options);
80
46
  (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "changeVideoLayoutDebounced", void 0);
@@ -84,6 +50,7 @@ var MeetingRequest = /*#__PURE__*/function (_StatelessWebexPlugin) {
84
50
  });
85
51
  return _this;
86
52
  }
53
+
87
54
  /**
88
55
  * Make a network request to join a meeting
89
56
  * @param {Object} options
@@ -99,129 +66,105 @@ var MeetingRequest = /*#__PURE__*/function (_StatelessWebexPlugin) {
99
66
  * @param {Object} options.roapMessage
100
67
  * @returns {Promise}
101
68
  */
102
-
103
-
104
69
  (0, _createClass2.default)(MeetingRequest, [{
105
70
  key: "joinMeeting",
106
71
  value: function () {
107
72
  var _joinMeeting = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(options) {
108
73
  var asResourceOccupant, inviteeAddress, meetingNumber, permissionToken, deviceUrl, locusUrl, resourceId, correlationId, ensureConversation, moderator, pin, moveToResource, roapMessage, preferTranscoding, url, body;
109
74
  return _regenerator.default.wrap(function _callee$(_context) {
110
- while (1) {
111
- switch (_context.prev = _context.next) {
112
- case 0:
113
- asResourceOccupant = options.asResourceOccupant, inviteeAddress = options.inviteeAddress, meetingNumber = options.meetingNumber, permissionToken = options.permissionToken, deviceUrl = options.deviceUrl, locusUrl = options.locusUrl, resourceId = options.resourceId, correlationId = options.correlationId, ensureConversation = options.ensureConversation, moderator = options.moderator, pin = options.pin, moveToResource = options.moveToResource, roapMessage = options.roapMessage, preferTranscoding = options.preferTranscoding;
114
-
115
- _loggerProxy.default.logger.info('Meeting:request#joinMeeting --> Joining a meeting', correlationId);
116
-
117
- url = '';
118
- body = {
119
- asResourceOccupant: asResourceOccupant,
120
- device: {
121
- url: deviceUrl,
122
- // @ts-ignore - config comes from registerPlugin
123
- deviceType: this.config.meetings.deviceType
124
- },
125
- usingResource: resourceId || null,
126
- moveMediaToResource: resourceId && moveToResource || false,
127
- correlationId: correlationId,
128
- respOnlySdp: true,
129
- allowMultiDevice: true,
130
- ensureConversation: ensureConversation || false,
131
- supportsNativeLobby: 1,
132
- clientMediaPreferences: {
133
- preferTranscoding: preferTranscoding !== null && preferTranscoding !== void 0 ? preferTranscoding : true
134
- }
135
- }; // @ts-ignore
136
-
137
- if (this.webex.meetings.clientRegion) {
138
- // @ts-ignore
139
- body.device.countryCode = this.webex.meetings.clientRegion.countryCode; // @ts-ignore
140
-
141
- body.device.regionCode = this.webex.meetings.clientRegion.regionCode;
75
+ while (1) switch (_context.prev = _context.next) {
76
+ case 0:
77
+ asResourceOccupant = options.asResourceOccupant, inviteeAddress = options.inviteeAddress, meetingNumber = options.meetingNumber, permissionToken = options.permissionToken, deviceUrl = options.deviceUrl, locusUrl = options.locusUrl, resourceId = options.resourceId, correlationId = options.correlationId, ensureConversation = options.ensureConversation, moderator = options.moderator, pin = options.pin, moveToResource = options.moveToResource, roapMessage = options.roapMessage, preferTranscoding = options.preferTranscoding;
78
+ _loggerProxy.default.logger.info('Meeting:request#joinMeeting --> Joining a meeting', correlationId);
79
+ url = '';
80
+ body = {
81
+ asResourceOccupant: asResourceOccupant,
82
+ device: {
83
+ url: deviceUrl,
84
+ // @ts-ignore - config comes from registerPlugin
85
+ deviceType: this.config.meetings.deviceType
86
+ },
87
+ usingResource: resourceId || null,
88
+ moveMediaToResource: resourceId && moveToResource || false,
89
+ correlationId: correlationId,
90
+ respOnlySdp: true,
91
+ allowMultiDevice: true,
92
+ ensureConversation: ensureConversation || false,
93
+ supportsNativeLobby: 1,
94
+ clientMediaPreferences: {
95
+ preferTranscoding: preferTranscoding !== null && preferTranscoding !== void 0 ? preferTranscoding : true
142
96
  }
143
-
144
- if (moderator !== undefined) {
145
- body.moderator = moderator;
146
- }
147
-
148
- if (permissionToken) {
149
- body.permissionToken = permissionToken;
150
- }
151
-
152
- if (pin !== undefined) {
153
- body.pin = pin;
154
- }
155
-
156
- if (!locusUrl) {
157
- _context.next = 12;
158
- break;
159
- }
160
-
161
- url = "".concat(locusUrl, "/").concat(_constants.PARTICIPANT);
162
- _context.next = 24;
163
- break;
164
-
165
- case 12:
166
- if (!(inviteeAddress || meetingNumber)) {
167
- _context.next = 24;
168
- break;
169
- }
170
-
171
- _context.prev = 13;
172
- _context.next = 16;
173
- return this.webex.internal.services.waitForCatalog('postauth');
174
-
175
- case 16:
97
+ }; // @ts-ignore
98
+ if (this.webex.meetings.clientRegion) {
176
99
  // @ts-ignore
177
- url = "".concat(this.webex.internal.services.get('locus'), "/").concat(_constants.LOCI, "/").concat(_constants.CALL);
178
- body.invitee = {
179
- address: inviteeAddress || "wbxmn:".concat(meetingNumber)
180
- };
100
+ body.device.countryCode = this.webex.meetings.clientRegion.countryCode;
101
+ // @ts-ignore
102
+ body.device.regionCode = this.webex.meetings.clientRegion.regionCode;
103
+ }
104
+ if (moderator !== undefined) {
105
+ body.moderator = moderator;
106
+ }
107
+ if (permissionToken) {
108
+ body.permissionToken = permissionToken;
109
+ }
110
+ if (pin !== undefined) {
111
+ body.pin = pin;
112
+ }
113
+ if (!locusUrl) {
114
+ _context.next = 12;
115
+ break;
116
+ }
117
+ url = "".concat(locusUrl, "/").concat(_constants.PARTICIPANT);
118
+ _context.next = 24;
119
+ break;
120
+ case 12:
121
+ if (!(inviteeAddress || meetingNumber)) {
181
122
  _context.next = 24;
182
123
  break;
183
-
184
- case 20:
185
- _context.prev = 20;
186
- _context.t0 = _context["catch"](13);
187
-
188
- _loggerProxy.default.logger.error("Meeting:request#joinMeeting Error Joining ".concat(inviteeAddress || meetingNumber, " --> ").concat(_context.t0));
189
-
190
- throw _context.t0;
191
-
192
- case 24:
193
- // TODO: -- this will be resolved in SDK request
194
- url = url.concat("?".concat(_constants.ALTERNATE_REDIRECT_TRUE));
195
-
196
- if (resourceId === inviteeAddress) {
197
- body.callPreferences = {
198
- requestedMedia: [_constants._SLIDES_]
199
- };
200
- }
201
-
202
- if (roapMessage) {
203
- body.localMedias = roapMessage.localMedias;
204
- } /// @ts-ignore
205
-
206
-
207
- return _context.abrupt("return", this.request({
208
- method: _constants.HTTP_VERBS.POST,
209
- uri: url,
210
- body: body
211
- }));
212
-
213
- case 28:
214
- case "end":
215
- return _context.stop();
216
- }
124
+ }
125
+ _context.prev = 13;
126
+ _context.next = 16;
127
+ return this.webex.internal.services.waitForCatalog('postauth');
128
+ case 16:
129
+ // @ts-ignore
130
+ url = "".concat(this.webex.internal.services.get('locus'), "/").concat(_constants.LOCI, "/").concat(_constants.CALL);
131
+ body.invitee = {
132
+ address: inviteeAddress || "wbxmn:".concat(meetingNumber)
133
+ };
134
+ _context.next = 24;
135
+ break;
136
+ case 20:
137
+ _context.prev = 20;
138
+ _context.t0 = _context["catch"](13);
139
+ _loggerProxy.default.logger.error("Meeting:request#joinMeeting Error Joining ".concat(inviteeAddress || meetingNumber, " --> ").concat(_context.t0));
140
+ throw _context.t0;
141
+ case 24:
142
+ // TODO: -- this will be resolved in SDK request
143
+ url = url.concat("?".concat(_constants.ALTERNATE_REDIRECT_TRUE));
144
+ if (resourceId === inviteeAddress) {
145
+ body.callPreferences = {
146
+ requestedMedia: [_constants._SLIDES_]
147
+ };
148
+ }
149
+ if (roapMessage) {
150
+ body.localMedias = roapMessage.localMedias;
151
+ }
152
+
153
+ /// @ts-ignore
154
+ return _context.abrupt("return", this.request({
155
+ method: _constants.HTTP_VERBS.POST,
156
+ uri: url,
157
+ body: body
158
+ }));
159
+ case 28:
160
+ case "end":
161
+ return _context.stop();
217
162
  }
218
163
  }, _callee, this, [[13, 20]]);
219
164
  }));
220
-
221
165
  function joinMeeting(_x) {
222
166
  return _joinMeeting.apply(this, arguments);
223
167
  }
224
-
225
168
  return joinMeeting;
226
169
  }()
227
170
  /**
@@ -232,26 +175,26 @@ var MeetingRequest = /*#__PURE__*/function (_StatelessWebexPlugin) {
232
175
  * @returns {Promise}
233
176
  * @private
234
177
  */
235
-
236
178
  }, {
237
179
  key: "refreshCaptcha",
238
180
  value: function refreshCaptcha(_ref) {
239
181
  var captchaRefreshUrl = _ref.captchaRefreshUrl,
240
- captchaId = _ref.captchaId;
182
+ captchaId = _ref.captchaId;
241
183
  var body = {
242
184
  captchaId: captchaId
243
- }; // @ts-ignore
185
+ };
244
186
 
187
+ // @ts-ignore
245
188
  return this.request({
246
189
  method: _constants.HTTP_VERBS.POST,
247
190
  uri: captchaRefreshUrl,
248
191
  body: body
249
192
  }).catch(function (err) {
250
193
  _loggerProxy.default.logger.error("Meeting:request#refreshCaptcha --> Error: ".concat(err));
251
-
252
194
  throw err;
253
195
  });
254
196
  }
197
+
255
198
  /**
256
199
  * Make a network request to add a dial in device
257
200
  * @param {Object} options
@@ -262,17 +205,14 @@ var MeetingRequest = /*#__PURE__*/function (_StatelessWebexPlugin) {
262
205
  * @returns {Promise}
263
206
  * @private
264
207
  */
265
-
266
208
  }, {
267
209
  key: "dialIn",
268
210
  value: function dialIn(_ref2) {
269
211
  var locusUrl = _ref2.locusUrl,
270
- dialInUrl = _ref2.dialInUrl,
271
- clientUrl = _ref2.clientUrl,
272
- correlationId = _ref2.correlationId;
273
-
212
+ dialInUrl = _ref2.dialInUrl,
213
+ clientUrl = _ref2.clientUrl,
214
+ correlationId = _ref2.correlationId;
274
215
  _loggerProxy.default.logger.info('Meeting:request#dialIn --> Provisioning a dial in device', correlationId);
275
-
276
216
  var uri = "".concat(locusUrl, "/").concat(_constants.PARTICIPANT);
277
217
  var body = {
278
218
  device: {
@@ -282,18 +222,19 @@ var MeetingRequest = /*#__PURE__*/function (_StatelessWebexPlugin) {
282
222
  clientUrl: clientUrl
283
223
  },
284
224
  correlationId: correlationId
285
- }; // @ts-ignore
225
+ };
286
226
 
227
+ // @ts-ignore
287
228
  return this.request({
288
229
  method: _constants.HTTP_VERBS.POST,
289
230
  uri: uri,
290
231
  body: body
291
232
  }).catch(function (err) {
292
233
  _loggerProxy.default.logger.error("Meeting:request#dialIn --> Error provisioning a dial in device, error ".concat(err));
293
-
294
234
  throw err;
295
235
  });
296
236
  }
237
+
297
238
  /**
298
239
  * Make a network request to add a dial out device
299
240
  * @param {Object} options
@@ -305,18 +246,15 @@ var MeetingRequest = /*#__PURE__*/function (_StatelessWebexPlugin) {
305
246
  * @returns {Promise}
306
247
  * @private
307
248
  */
308
-
309
249
  }, {
310
250
  key: "dialOut",
311
251
  value: function dialOut(_ref3) {
312
252
  var locusUrl = _ref3.locusUrl,
313
- dialOutUrl = _ref3.dialOutUrl,
314
- phoneNumber = _ref3.phoneNumber,
315
- clientUrl = _ref3.clientUrl,
316
- correlationId = _ref3.correlationId;
317
-
253
+ dialOutUrl = _ref3.dialOutUrl,
254
+ phoneNumber = _ref3.phoneNumber,
255
+ clientUrl = _ref3.clientUrl,
256
+ correlationId = _ref3.correlationId;
318
257
  _loggerProxy.default.logger.info('Meeting:request#dialOut --> Provisioning a dial out device', correlationId);
319
-
320
258
  var uri = "".concat(locusUrl, "/").concat(_constants.PARTICIPANT);
321
259
  var body = {
322
260
  device: {
@@ -327,18 +265,19 @@ var MeetingRequest = /*#__PURE__*/function (_StatelessWebexPlugin) {
327
265
  clientUrl: clientUrl
328
266
  },
329
267
  correlationId: correlationId
330
- }; // @ts-ignore
268
+ };
331
269
 
270
+ // @ts-ignore
332
271
  return this.request({
333
272
  method: _constants.HTTP_VERBS.POST,
334
273
  uri: uri,
335
274
  body: body
336
275
  }).catch(function (err) {
337
276
  _loggerProxy.default.logger.error("Meeting:request#dialOut --> Error provisioning a dial out device, error ".concat(err));
338
-
339
277
  throw err;
340
278
  });
341
279
  }
280
+
342
281
  /**
343
282
  * Syns the missed delta event
344
283
  * @param {Object} options
@@ -346,31 +285,30 @@ var MeetingRequest = /*#__PURE__*/function (_StatelessWebexPlugin) {
346
285
  * @param {String} options.syncUrl sync url to get ht elatest locus delta
347
286
  * @returns {Promise}
348
287
  */
349
-
350
288
  }, {
351
289
  key: "syncMeeting",
352
290
  value: function syncMeeting(options) {
353
291
  /* eslint-disable no-else-return */
354
292
  var desync = options.desync;
355
293
  var syncUrl = options.syncUrl;
356
- /* istanbul ignore else */
357
294
 
295
+ /* istanbul ignore else */
358
296
  if (desync) {
359
297
  // check for existing URL parameters
360
298
  syncUrl = syncUrl.concat(syncUrl.split('?')[1] ? '&' : '?').concat("".concat(_constants.LOCUS.SYNCDEBUG, "=").concat(desync));
361
- } // @ts-ignore
362
-
299
+ }
363
300
 
301
+ // @ts-ignore
364
302
  return this.request({
365
303
  method: _constants.HTTP_VERBS.GET,
366
304
  uri: syncUrl
367
305
  }) // TODO: Handle if delta sync failed . Get the full locus object
368
306
  .catch(function (err) {
369
307
  _loggerProxy.default.logger.error("Meeting:request#syncMeeting --> Error syncing meeting, error ".concat(err));
370
-
371
308
  return err;
372
309
  });
373
310
  }
311
+
374
312
  /**
375
313
  * Request to get the complete locus object
376
314
  * @param {Object} options
@@ -378,31 +316,28 @@ var MeetingRequest = /*#__PURE__*/function (_StatelessWebexPlugin) {
378
316
  * @param {String} options.locusUrl sync url to get ht elatest locus delta
379
317
  * @returns {Promise}
380
318
  */
381
-
382
319
  }, {
383
320
  key: "getFullLocus",
384
321
  value: function getFullLocus(options) {
385
322
  var locusUrl = options.locusUrl;
386
323
  var desync = options.desync;
387
-
388
324
  if (locusUrl) {
389
325
  if (desync) {
390
326
  locusUrl += "?".concat(_constants.LOCUS.SYNCDEBUG, "=").concat(desync);
391
- } // @ts-ignore
392
-
327
+ }
393
328
 
329
+ // @ts-ignore
394
330
  return this.request({
395
331
  method: _constants.HTTP_VERBS.GET,
396
332
  uri: locusUrl
397
333
  }).catch(function (err) {
398
334
  _loggerProxy.default.logger.error("Meeting:request#getFullLocus --> Error getting full locus, error ".concat(err));
399
-
400
335
  return err;
401
336
  });
402
337
  }
403
-
404
338
  return _promise.default.reject();
405
339
  }
340
+
406
341
  /**
407
342
  * Make a network request to make a provisioned phone leave the meeting
408
343
  * @param {Object} options
@@ -413,17 +348,14 @@ var MeetingRequest = /*#__PURE__*/function (_StatelessWebexPlugin) {
413
348
  * @returns {Promise}
414
349
  * @private
415
350
  */
416
-
417
351
  }, {
418
352
  key: "disconnectPhoneAudio",
419
353
  value: function disconnectPhoneAudio(_ref4) {
420
354
  var locusUrl = _ref4.locusUrl,
421
- phoneUrl = _ref4.phoneUrl,
422
- correlationId = _ref4.correlationId,
423
- selfId = _ref4.selfId;
424
-
355
+ phoneUrl = _ref4.phoneUrl,
356
+ correlationId = _ref4.correlationId,
357
+ selfId = _ref4.selfId;
425
358
  _loggerProxy.default.logger.info("Meeting:request#disconnectPhoneAudio --> request phone ".concat(phoneUrl, " to leave"), correlationId);
426
-
427
359
  var uri = "".concat(locusUrl, "/").concat(_constants.PARTICIPANT, "/").concat(selfId, "/").concat(_constants.LEAVE);
428
360
  var body = {
429
361
  device: {
@@ -431,18 +363,19 @@ var MeetingRequest = /*#__PURE__*/function (_StatelessWebexPlugin) {
431
363
  url: phoneUrl
432
364
  },
433
365
  correlationId: correlationId
434
- }; // @ts-ignore
366
+ };
435
367
 
368
+ // @ts-ignore
436
369
  return this.request({
437
370
  method: _constants.HTTP_VERBS.PUT,
438
371
  uri: uri,
439
372
  body: body
440
373
  }).catch(function (err) {
441
374
  _loggerProxy.default.logger.error("Meeting:request#disconnectPhoneAudio --> Error when requesting phone ".concat(phoneUrl, " to leave, error ").concat(err));
442
-
443
375
  throw err;
444
376
  });
445
377
  }
378
+
446
379
  /**
447
380
  * Make a network request to leave a meeting
448
381
  * @param {Object} options
@@ -453,18 +386,15 @@ var MeetingRequest = /*#__PURE__*/function (_StatelessWebexPlugin) {
453
386
  * @param {String} options.correlationId
454
387
  * @returns {Promise}
455
388
  */
456
-
457
389
  }, {
458
390
  key: "leaveMeeting",
459
391
  value: function leaveMeeting(_ref5) {
460
392
  var locusUrl = _ref5.locusUrl,
461
- selfId = _ref5.selfId,
462
- url = _ref5.deviceUrl,
463
- resourceId = _ref5.resourceId,
464
- correlationId = _ref5.correlationId;
465
-
393
+ selfId = _ref5.selfId,
394
+ url = _ref5.deviceUrl,
395
+ resourceId = _ref5.resourceId,
396
+ correlationId = _ref5.correlationId;
466
397
  _loggerProxy.default.logger.info('Meeting:request#leaveMeeting --> Leaving a meeting', correlationId);
467
-
468
398
  var uri = "".concat(locusUrl, "/").concat(_constants.PARTICIPANT, "/").concat(selfId, "/").concat(_constants.LEAVE);
469
399
  var body = {
470
400
  device: {
@@ -474,14 +404,16 @@ var MeetingRequest = /*#__PURE__*/function (_StatelessWebexPlugin) {
474
404
  },
475
405
  usingResource: resourceId || null,
476
406
  correlationId: correlationId
477
- }; // @ts-ignore
407
+ };
478
408
 
409
+ // @ts-ignore
479
410
  return this.request({
480
411
  method: _constants.HTTP_VERBS.PUT,
481
412
  uri: uri,
482
413
  body: body
483
414
  });
484
415
  }
416
+
485
417
  /**
486
418
  * Make a network request to acknowledge a meeting
487
419
  * @param {Object} options
@@ -490,7 +422,6 @@ var MeetingRequest = /*#__PURE__*/function (_StatelessWebexPlugin) {
490
422
  * @param {String} options.correlationId
491
423
  * @returns {Promise}
492
424
  */
493
-
494
425
  }, {
495
426
  key: "acknowledgeMeeting",
496
427
  value: function acknowledgeMeeting(options) {
@@ -502,14 +433,16 @@ var MeetingRequest = /*#__PURE__*/function (_StatelessWebexPlugin) {
502
433
  url: options.deviceUrl
503
434
  },
504
435
  correlationId: options.correlationId
505
- }; // @ts-ignore
436
+ };
506
437
 
438
+ // @ts-ignore
507
439
  return this.request({
508
440
  method: _constants.HTTP_VERBS.PUT,
509
441
  uri: uri,
510
442
  body: body
511
443
  });
512
444
  }
445
+
513
446
  /**
514
447
  * Make a network request to acknowledge a meeting
515
448
  * @param {Object} options
@@ -518,7 +451,6 @@ var MeetingRequest = /*#__PURE__*/function (_StatelessWebexPlugin) {
518
451
  * @param {String} options.id
519
452
  * @returns {Promise}
520
453
  */
521
-
522
454
  }, {
523
455
  key: "recordMeeting",
524
456
  value: function recordMeeting(options) {
@@ -528,8 +460,9 @@ var MeetingRequest = /*#__PURE__*/function (_StatelessWebexPlugin) {
528
460
  recording: options.recording,
529
461
  paused: options.paused
530
462
  }
531
- }; // @ts-ignore
463
+ };
532
464
 
465
+ // @ts-ignore
533
466
  return this.request({
534
467
  method: _constants.HTTP_VERBS.PATCH,
535
468
  uri: uri,
@@ -544,14 +477,16 @@ var MeetingRequest = /*#__PURE__*/function (_StatelessWebexPlugin) {
544
477
  lock: {
545
478
  locked: options.lock
546
479
  }
547
- }; // @ts-ignore
480
+ };
548
481
 
482
+ // @ts-ignore
549
483
  return this.request({
550
484
  method: _constants.HTTP_VERBS.PATCH,
551
485
  uri: uri,
552
486
  body: body
553
487
  });
554
488
  }
489
+
555
490
  /**
556
491
  * Make a network request to decline a meeting
557
492
  * @param {Object} options
@@ -560,12 +495,10 @@ var MeetingRequest = /*#__PURE__*/function (_StatelessWebexPlugin) {
560
495
  * @param {String} options.reason
561
496
  * @returns {Promise}
562
497
  */
563
-
564
498
  }, {
565
499
  key: "declineMeeting",
566
500
  value: function declineMeeting(options) {
567
501
  var uri = "".concat(options.locusUrl, "/").concat(_constants.PARTICIPANT, "/").concat(_constants.DECLINE);
568
-
569
502
  var body = _objectSpread({
570
503
  device: {
571
504
  // @ts-ignore
@@ -574,15 +507,16 @@ var MeetingRequest = /*#__PURE__*/function (_StatelessWebexPlugin) {
574
507
  }
575
508
  }, options.reason && {
576
509
  reason: options.reason
577
- }); // @ts-ignore
578
-
510
+ });
579
511
 
512
+ // @ts-ignore
580
513
  return this.request({
581
514
  method: _constants.HTTP_VERBS.PUT,
582
515
  uri: uri,
583
516
  body: body
584
517
  });
585
518
  }
519
+
586
520
  /**
587
521
  * Toggle remote audio and/or video
588
522
  * @param {Object} options options for toggling
@@ -594,12 +528,10 @@ var MeetingRequest = /*#__PURE__*/function (_StatelessWebexPlugin) {
594
528
  * @param {Boolean} options.preferTranscoding false for multistream (Homer), true for transcoded media (Edonus)
595
529
  * @returns {Promise}
596
530
  */
597
-
598
531
  }, {
599
532
  key: "remoteAudioVideoToggle",
600
533
  value: function remoteAudioVideoToggle(options) {
601
534
  var _options$preferTransc;
602
-
603
535
  var uri = "".concat(options.locusUrl, "/").concat(_constants.PARTICIPANT, "/").concat(options.selfId, "/").concat(_constants.MEDIA);
604
536
  var body = {
605
537
  device: {
@@ -614,14 +546,16 @@ var MeetingRequest = /*#__PURE__*/function (_StatelessWebexPlugin) {
614
546
  clientMediaPreferences: {
615
547
  preferTranscoding: (_options$preferTransc = options.preferTranscoding) !== null && _options$preferTransc !== void 0 ? _options$preferTransc : true
616
548
  }
617
- }; // @ts-ignore
549
+ };
618
550
 
551
+ // @ts-ignore
619
552
  return this.request({
620
553
  method: _constants.HTTP_VERBS.PUT,
621
554
  uri: uri,
622
555
  body: body
623
556
  });
624
557
  }
558
+
625
559
  /**
626
560
  * change the content floor grant
627
561
  * @param {Object} options options for floor grant
@@ -632,15 +566,14 @@ var MeetingRequest = /*#__PURE__*/function (_StatelessWebexPlugin) {
632
566
  * @param {String} options.uri floor grant uri
633
567
  * @returns {Promise}
634
568
  */
635
-
636
569
  }, {
637
570
  key: "changeMeetingFloor",
638
571
  value: function changeMeetingFloor(options) {
639
572
  var floorReq = {
640
573
  disposition: options.disposition
641
574
  };
642
- /* istanbul ignore else */
643
575
 
576
+ /* istanbul ignore else */
644
577
  if (options.disposition === _constants.FLOOR_ACTION.GRANTED) {
645
578
  floorReq = {
646
579
  beneficiary: {
@@ -657,23 +590,22 @@ var MeetingRequest = /*#__PURE__*/function (_StatelessWebexPlugin) {
657
590
  }
658
591
  };
659
592
  }
660
-
661
593
  var body = {
662
594
  floor: floorReq,
663
595
  resourceUrl: options.resourceUrl
664
596
  };
665
-
666
597
  if (options !== null && options !== void 0 && options.resourceToken) {
667
598
  body.resourceToken = options === null || options === void 0 ? void 0 : options.resourceToken;
668
- } // @ts-ignore
669
-
599
+ }
670
600
 
601
+ // @ts-ignore
671
602
  return this.request({
672
603
  uri: options.uri,
673
604
  method: _constants.HTTP_VERBS.PUT,
674
605
  body: body
675
606
  });
676
607
  }
608
+
677
609
  /**
678
610
  * Sends a request to the DTMF endpoint to send tones
679
611
  * @param {Object} options
@@ -682,13 +614,12 @@ var MeetingRequest = /*#__PURE__*/function (_StatelessWebexPlugin) {
682
614
  * @param {String} options.tones a string of one or more DTMF tones to send
683
615
  * @returns {Promise}
684
616
  */
685
-
686
617
  }, {
687
618
  key: "sendDTMF",
688
619
  value: function sendDTMF(_ref6) {
689
620
  var locusUrl = _ref6.locusUrl,
690
- deviceUrl = _ref6.deviceUrl,
691
- tones = _ref6.tones;
621
+ deviceUrl = _ref6.deviceUrl,
622
+ tones = _ref6.tones;
692
623
  // @ts-ignore
693
624
  return this.request({
694
625
  method: _constants.HTTP_VERBS.POST,
@@ -702,6 +633,7 @@ var MeetingRequest = /*#__PURE__*/function (_StatelessWebexPlugin) {
702
633
  }
703
634
  });
704
635
  }
636
+
705
637
  /**
706
638
  * Sends a request to the controls endpoint to set the video layout
707
639
  * @param {Object} options
@@ -716,25 +648,21 @@ var MeetingRequest = /*#__PURE__*/function (_StatelessWebexPlugin) {
716
648
  * @param {Number} options.content.height preferred height of content share stream
717
649
  * @returns {Promise}
718
650
  */
719
-
720
651
  }, {
721
652
  key: "changeVideoLayout",
722
653
  value: function changeVideoLayout(_ref7) {
723
654
  var locusUrl = _ref7.locusUrl,
724
- deviceUrl = _ref7.deviceUrl,
725
- layoutType = _ref7.layoutType,
726
- main = _ref7.main,
727
- content = _ref7.content;
728
-
655
+ deviceUrl = _ref7.deviceUrl,
656
+ layoutType = _ref7.layoutType,
657
+ main = _ref7.main,
658
+ content = _ref7.content;
729
659
  // send main/content renderInfo only if both width and height are specified
730
660
  if (main && (!main.width || !main.height)) {
731
661
  return _promise.default.reject(new Error("Both width and height must be specified. One of them is missing for main: ".concat((0, _stringify.default)(main))));
732
662
  }
733
-
734
663
  if (content && (!content.width || !content.height)) {
735
664
  return _promise.default.reject(new Error("Both width and height must be specified. One of them is missing for content: ".concat((0, _stringify.default)(content))));
736
665
  }
737
-
738
666
  var renderInfoMain = main ? {
739
667
  width: main.width,
740
668
  height: main.height
@@ -748,8 +676,9 @@ var MeetingRequest = /*#__PURE__*/function (_StatelessWebexPlugin) {
748
676
  main: renderInfoMain,
749
677
  content: renderInfoContent
750
678
  }
751
- } : undefined; // @ts-ignore
679
+ } : undefined;
752
680
 
681
+ // @ts-ignore
753
682
  return this.request({
754
683
  method: _constants.HTTP_VERBS.PUT,
755
684
  uri: "".concat(locusUrl, "/").concat(_constants.CONTROLS),
@@ -762,31 +691,32 @@ var MeetingRequest = /*#__PURE__*/function (_StatelessWebexPlugin) {
762
691
  }
763
692
  });
764
693
  }
694
+
765
695
  /**
766
696
  * Make a network request to end meeting for all
767
697
  * @param {Object} options
768
698
  * @param {Url} options.locusUrl
769
699
  * @returns {Promise}
770
700
  */
771
-
772
701
  }, {
773
702
  key: "endMeetingForAll",
774
703
  value: function endMeetingForAll(_ref8) {
775
704
  var locusUrl = _ref8.locusUrl;
776
- var uri = "".concat(locusUrl, "/").concat(_constants.END); // @ts-ignore
705
+ var uri = "".concat(locusUrl, "/").concat(_constants.END);
777
706
 
707
+ // @ts-ignore
778
708
  return this.request({
779
709
  method: _constants.HTTP_VERBS.POST,
780
710
  uri: uri
781
711
  });
782
712
  }
713
+
783
714
  /**
784
715
  * Send a locus keepAlive (used in lobby)
785
716
  * @param {Object} options
786
717
  * @param {Url} options.keepAliveUrl
787
718
  * @returns {Promise}
788
719
  */
789
-
790
720
  }, {
791
721
  key: "keepAlive",
792
722
  value: function keepAlive(_ref9) {
@@ -797,6 +727,7 @@ var MeetingRequest = /*#__PURE__*/function (_StatelessWebexPlugin) {
797
727
  uri: keepAliveUrl
798
728
  });
799
729
  }
730
+
800
731
  /**
801
732
  * Make a network request to send a reaction.
802
733
  * @param {Object} options
@@ -805,15 +736,15 @@ var MeetingRequest = /*#__PURE__*/function (_StatelessWebexPlugin) {
805
736
  * @param {string} options.senderID
806
737
  * @returns {Promise}
807
738
  */
808
-
809
739
  }, {
810
740
  key: "sendReaction",
811
741
  value: function sendReaction(_ref10) {
812
742
  var reactionChannelUrl = _ref10.reactionChannelUrl,
813
- reaction = _ref10.reaction,
814
- participantId = _ref10.participantId;
815
- var uri = reactionChannelUrl; // @ts-ignore
743
+ reaction = _ref10.reaction,
744
+ participantId = _ref10.participantId;
745
+ var uri = reactionChannelUrl;
816
746
 
747
+ // @ts-ignore
817
748
  return this.request({
818
749
  method: _constants.HTTP_VERBS.POST,
819
750
  uri: uri,
@@ -825,19 +756,19 @@ var MeetingRequest = /*#__PURE__*/function (_StatelessWebexPlugin) {
825
756
  }
826
757
  });
827
758
  }
759
+
828
760
  /**
829
761
  * Make a network request to enable or disable reactions.
830
762
  * @param {boolean} options.enable - determines if we need to enable or disable.
831
763
  * @param {locusUrl} options.locusUrl
832
764
  * @returns {Promise}
833
765
  */
834
-
835
766
  }, {
836
767
  key: "toggleReactions",
837
768
  value: function toggleReactions(_ref11) {
838
769
  var enable = _ref11.enable,
839
- locusUrl = _ref11.locusUrl,
840
- requestingParticipantId = _ref11.requestingParticipantId;
770
+ locusUrl = _ref11.locusUrl,
771
+ requestingParticipantId = _ref11.requestingParticipantId;
841
772
  var uri = "".concat(locusUrl, "/").concat(_constants.CONTROLS);
842
773
  return this.request({
843
774
  method: _constants.HTTP_VERBS.PUT,
@@ -853,6 +784,5 @@ var MeetingRequest = /*#__PURE__*/function (_StatelessWebexPlugin) {
853
784
  }]);
854
785
  return MeetingRequest;
855
786
  }(_webexCore.StatelessWebexPlugin);
856
-
857
787
  exports.default = MeetingRequest;
858
788
  //# sourceMappingURL=request.js.map