@webex/plugin-meetings 3.10.0-next.7 → 3.10.0-next.9

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 (212) hide show
  1. package/dist/annotation/annotation.types.js.map +1 -1
  2. package/dist/annotation/constants.js.map +1 -1
  3. package/dist/annotation/index.js +19 -22
  4. package/dist/annotation/index.js.map +1 -1
  5. package/dist/breakouts/breakout.js +6 -6
  6. package/dist/breakouts/breakout.js.map +1 -1
  7. package/dist/breakouts/collection.js.map +1 -1
  8. package/dist/breakouts/edit-lock-error.js +9 -11
  9. package/dist/breakouts/edit-lock-error.js.map +1 -1
  10. package/dist/breakouts/events.js.map +1 -1
  11. package/dist/breakouts/index.js +126 -127
  12. package/dist/breakouts/index.js.map +1 -1
  13. package/dist/breakouts/request.js +6 -8
  14. package/dist/breakouts/request.js.map +1 -1
  15. package/dist/breakouts/utils.js.map +1 -1
  16. package/dist/common/browser-detection.js.map +1 -1
  17. package/dist/common/collection.js +1 -2
  18. package/dist/common/collection.js.map +1 -1
  19. package/dist/common/config.js.map +1 -1
  20. package/dist/common/errors/captcha-error.js +9 -11
  21. package/dist/common/errors/captcha-error.js.map +1 -1
  22. package/dist/common/errors/intent-to-join.js +10 -12
  23. package/dist/common/errors/intent-to-join.js.map +1 -1
  24. package/dist/common/errors/join-forbidden-error.js +10 -12
  25. package/dist/common/errors/join-forbidden-error.js.map +1 -1
  26. package/dist/common/errors/join-meeting.js +10 -12
  27. package/dist/common/errors/join-meeting.js.map +1 -1
  28. package/dist/common/errors/join-webinar-error.js +9 -11
  29. package/dist/common/errors/join-webinar-error.js.map +1 -1
  30. package/dist/common/errors/media.js +9 -11
  31. package/dist/common/errors/media.js.map +1 -1
  32. package/dist/common/errors/multistream-not-supported-error.js +9 -11
  33. package/dist/common/errors/multistream-not-supported-error.js.map +1 -1
  34. package/dist/common/errors/no-meeting-info.js +9 -11
  35. package/dist/common/errors/no-meeting-info.js.map +1 -1
  36. package/dist/common/errors/parameter.js +11 -14
  37. package/dist/common/errors/parameter.js.map +1 -1
  38. package/dist/common/errors/password-error.js +9 -11
  39. package/dist/common/errors/password-error.js.map +1 -1
  40. package/dist/common/errors/permission.js +9 -11
  41. package/dist/common/errors/permission.js.map +1 -1
  42. package/dist/common/errors/reclaim-host-role-errors.js +32 -38
  43. package/dist/common/errors/reclaim-host-role-errors.js.map +1 -1
  44. package/dist/common/errors/reconnection-not-started.js +5 -6
  45. package/dist/common/errors/reconnection-not-started.js.map +1 -1
  46. package/dist/common/errors/reconnection.js +9 -11
  47. package/dist/common/errors/reconnection.js.map +1 -1
  48. package/dist/common/errors/stats.js +9 -11
  49. package/dist/common/errors/stats.js.map +1 -1
  50. package/dist/common/errors/webex-errors.js +20 -29
  51. package/dist/common/errors/webex-errors.js.map +1 -1
  52. package/dist/common/errors/webex-meetings-error.js +9 -12
  53. package/dist/common/errors/webex-meetings-error.js.map +1 -1
  54. package/dist/common/events/events-scope.js +9 -10
  55. package/dist/common/events/events-scope.js.map +1 -1
  56. package/dist/common/events/events.js +9 -10
  57. package/dist/common/events/events.js.map +1 -1
  58. package/dist/common/events/trigger-proxy.js.map +1 -1
  59. package/dist/common/events/util.js.map +1 -1
  60. package/dist/common/logs/logger-config.js.map +1 -1
  61. package/dist/common/logs/logger-proxy.js.map +1 -1
  62. package/dist/common/logs/request.js +17 -17
  63. package/dist/common/logs/request.js.map +1 -1
  64. package/dist/common/queue.js +1 -2
  65. package/dist/common/queue.js.map +1 -1
  66. package/dist/config.js +0 -1
  67. package/dist/config.js.map +1 -1
  68. package/dist/constants.js +0 -5
  69. package/dist/constants.js.map +1 -1
  70. package/dist/controls-options-manager/constants.js.map +1 -1
  71. package/dist/controls-options-manager/enums.js.map +1 -1
  72. package/dist/controls-options-manager/index.js +1 -2
  73. package/dist/controls-options-manager/index.js.map +1 -1
  74. package/dist/controls-options-manager/types.js.map +1 -1
  75. package/dist/controls-options-manager/util.js +1 -2
  76. package/dist/controls-options-manager/util.js.map +1 -1
  77. package/dist/index.js +1 -2
  78. package/dist/index.js.map +1 -1
  79. package/dist/interceptors/index.js.map +1 -1
  80. package/dist/interceptors/locusRetry.js +6 -8
  81. package/dist/interceptors/locusRetry.js.map +1 -1
  82. package/dist/interceptors/locusRouteToken.js +6 -8
  83. package/dist/interceptors/locusRouteToken.js.map +1 -1
  84. package/dist/interpretation/collection.js.map +1 -1
  85. package/dist/interpretation/index.js +1 -2
  86. package/dist/interpretation/index.js.map +1 -1
  87. package/dist/interpretation/siLanguage.js +1 -1
  88. package/dist/interpretation/siLanguage.js.map +1 -1
  89. package/dist/locus-info/controlsUtils.js.map +1 -1
  90. package/dist/locus-info/embeddedAppsUtils.js.map +1 -1
  91. package/dist/locus-info/fullState.js.map +1 -1
  92. package/dist/locus-info/hostUtils.js.map +1 -1
  93. package/dist/locus-info/index.js +40 -46
  94. package/dist/locus-info/index.js.map +1 -1
  95. package/dist/locus-info/infoUtils.js.map +1 -1
  96. package/dist/locus-info/mediaSharesUtils.js.map +1 -1
  97. package/dist/locus-info/parser.js +3 -4
  98. package/dist/locus-info/parser.js.map +1 -1
  99. package/dist/locus-info/selfUtils.js.map +1 -1
  100. package/dist/media/MediaConnectionAwaiter.js +1 -2
  101. package/dist/media/MediaConnectionAwaiter.js.map +1 -1
  102. package/dist/media/index.js +0 -2
  103. package/dist/media/index.js.map +1 -1
  104. package/dist/media/properties.js +15 -17
  105. package/dist/media/properties.js.map +1 -1
  106. package/dist/media/util.js.map +1 -1
  107. package/dist/meeting/brbState.js +8 -9
  108. package/dist/meeting/brbState.js.map +1 -1
  109. package/dist/meeting/connectionStateHandler.js +10 -13
  110. package/dist/meeting/connectionStateHandler.js.map +1 -1
  111. package/dist/meeting/in-meeting-actions.js.map +1 -1
  112. package/dist/meeting/index.js +1514 -1512
  113. package/dist/meeting/index.js.map +1 -1
  114. package/dist/meeting/locusMediaRequest.js +13 -17
  115. package/dist/meeting/locusMediaRequest.js.map +1 -1
  116. package/dist/meeting/muteState.js +11 -12
  117. package/dist/meeting/muteState.js.map +1 -1
  118. package/dist/meeting/request.js +101 -104
  119. package/dist/meeting/request.js.map +1 -1
  120. package/dist/meeting/request.type.js.map +1 -1
  121. package/dist/meeting/state.js.map +1 -1
  122. package/dist/meeting/type.js.map +1 -1
  123. package/dist/meeting/util.js +23 -23
  124. package/dist/meeting/util.js.map +1 -1
  125. package/dist/meeting/voicea-meeting.js +3 -3
  126. package/dist/meeting/voicea-meeting.js.map +1 -1
  127. package/dist/meeting-info/collection.js +7 -10
  128. package/dist/meeting-info/collection.js.map +1 -1
  129. package/dist/meeting-info/index.js +1 -2
  130. package/dist/meeting-info/index.js.map +1 -1
  131. package/dist/meeting-info/meeting-info-v2.js +135 -146
  132. package/dist/meeting-info/meeting-info-v2.js.map +1 -1
  133. package/dist/meeting-info/request.js +1 -2
  134. package/dist/meeting-info/request.js.map +1 -1
  135. package/dist/meeting-info/util.js +36 -37
  136. package/dist/meeting-info/util.js.map +1 -1
  137. package/dist/meeting-info/utilv2.js +30 -31
  138. package/dist/meeting-info/utilv2.js.map +1 -1
  139. package/dist/meetings/collection.js +6 -8
  140. package/dist/meetings/collection.js.map +1 -1
  141. package/dist/meetings/index.js +89 -93
  142. package/dist/meetings/index.js.map +1 -1
  143. package/dist/meetings/meetings.types.js.map +1 -1
  144. package/dist/meetings/request.js +6 -8
  145. package/dist/meetings/request.js.map +1 -1
  146. package/dist/meetings/util.js +25 -23
  147. package/dist/meetings/util.js.map +1 -1
  148. package/dist/member/index.js +1 -2
  149. package/dist/member/index.js.map +1 -1
  150. package/dist/member/types.js +6 -3
  151. package/dist/member/types.js.map +1 -1
  152. package/dist/member/util.js.map +1 -1
  153. package/dist/members/collection.js +1 -2
  154. package/dist/members/collection.js.map +1 -1
  155. package/dist/members/index.js +18 -21
  156. package/dist/members/index.js.map +1 -1
  157. package/dist/members/request.js +8 -11
  158. package/dist/members/request.js.map +1 -1
  159. package/dist/members/types.js.map +1 -1
  160. package/dist/members/util.js.map +1 -1
  161. package/dist/metrics/constants.js.map +1 -1
  162. package/dist/metrics/index.js +3 -4
  163. package/dist/metrics/index.js.map +1 -1
  164. package/dist/multistream/mediaRequestManager.js +1 -2
  165. package/dist/multistream/mediaRequestManager.js.map +1 -1
  166. package/dist/multistream/receiveSlot.js +34 -45
  167. package/dist/multistream/receiveSlot.js.map +1 -1
  168. package/dist/multistream/receiveSlotManager.js +8 -9
  169. package/dist/multistream/receiveSlotManager.js.map +1 -1
  170. package/dist/multistream/remoteMedia.js +12 -15
  171. package/dist/multistream/remoteMedia.js.map +1 -1
  172. package/dist/multistream/remoteMediaGroup.js +1 -2
  173. package/dist/multistream/remoteMediaGroup.js.map +1 -1
  174. package/dist/multistream/remoteMediaManager.js +122 -123
  175. package/dist/multistream/remoteMediaManager.js.map +1 -1
  176. package/dist/multistream/sendSlotManager.js +29 -30
  177. package/dist/multistream/sendSlotManager.js.map +1 -1
  178. package/dist/personal-meeting-room/index.js +16 -19
  179. package/dist/personal-meeting-room/index.js.map +1 -1
  180. package/dist/personal-meeting-room/request.js +7 -10
  181. package/dist/personal-meeting-room/request.js.map +1 -1
  182. package/dist/personal-meeting-room/util.js.map +1 -1
  183. package/dist/reachability/clusterReachability.js +36 -39
  184. package/dist/reachability/clusterReachability.js.map +1 -1
  185. package/dist/reachability/index.js +203 -205
  186. package/dist/reachability/index.js.map +1 -1
  187. package/dist/reachability/reachability.types.js.map +1 -1
  188. package/dist/reachability/request.js.map +1 -1
  189. package/dist/reachability/util.js.map +1 -1
  190. package/dist/reactions/constants.js.map +1 -1
  191. package/dist/reactions/reactions.js.map +1 -1
  192. package/dist/reactions/reactions.type.js.map +1 -1
  193. package/dist/reconnection-manager/index.js +178 -176
  194. package/dist/reconnection-manager/index.js.map +1 -1
  195. package/dist/recording-controller/enums.js.map +1 -1
  196. package/dist/recording-controller/index.js +1 -2
  197. package/dist/recording-controller/index.js.map +1 -1
  198. package/dist/recording-controller/util.js.map +1 -1
  199. package/dist/roap/index.js +12 -15
  200. package/dist/roap/index.js.map +1 -1
  201. package/dist/roap/request.js +24 -26
  202. package/dist/roap/request.js.map +1 -1
  203. package/dist/roap/turnDiscovery.js +75 -76
  204. package/dist/roap/turnDiscovery.js.map +1 -1
  205. package/dist/roap/types.js.map +1 -1
  206. package/dist/transcription/index.js +4 -5
  207. package/dist/transcription/index.js.map +1 -1
  208. package/dist/webinar/collection.js +1 -2
  209. package/dist/webinar/collection.js.map +1 -1
  210. package/dist/webinar/index.js +148 -158
  211. package/dist/webinar/index.js.map +1 -1
  212. package/package.json +13 -13
@@ -17,10 +17,9 @@ var _regenerator = _interopRequireDefault(require("@babel/runtime-corejs2/regene
17
17
  var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/asyncToGenerator"));
18
18
  var _createClass2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/createClass"));
19
19
  var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/classCallCheck"));
20
- var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/assertThisInitialized"));
21
- var _inherits2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/inherits"));
22
20
  var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/possibleConstructorReturn"));
23
21
  var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/getPrototypeOf"));
22
+ var _inherits2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/inherits"));
24
23
  var _wrapNativeSuper2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/wrapNativeSuper"));
25
24
  var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/defineProperty"));
26
25
  var _lodash = _interopRequireDefault(require("lodash"));
@@ -30,8 +29,8 @@ var _constants2 = _interopRequireDefault(require("../metrics/constants"));
30
29
  var _utilv = _interopRequireDefault(require("./utilv2"));
31
30
  function ownKeys(e, r) { var t = _Object$keys2(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
32
31
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
33
- 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); }; }
34
- 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; } }
32
+ 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)); }
33
+ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
35
34
  var PASSWORD_ERROR_DEFAULT_MESSAGE = 'Password required. Call fetchMeetingInfo() with password argument';
36
35
  var CAPTCHA_ERROR_DEFAULT_MESSAGE = 'Captcha required. Call fetchMeetingInfo() with captchaInfo argument';
37
36
  var ADHOC_MEETING_DEFAULT_ERROR = 'Failed starting the adhoc meeting, Please contact support team ';
@@ -59,8 +58,6 @@ var JOIN_WEBINAR_ERROR_CODES = [403021, 403022, 403024, 403137, 423007, 403026,
59
58
  * Error to indicate that wbxappapi requires a password
60
59
  */
61
60
  var MeetingInfoV2PasswordError = exports.MeetingInfoV2PasswordError = /*#__PURE__*/function (_Error) {
62
- (0, _inherits2.default)(MeetingInfoV2PasswordError, _Error);
63
- var _super = _createSuper(MeetingInfoV2PasswordError);
64
61
  /**
65
62
  *
66
63
  * @constructor
@@ -72,11 +69,11 @@ var MeetingInfoV2PasswordError = exports.MeetingInfoV2PasswordError = /*#__PURE_
72
69
  var _this;
73
70
  var message = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : PASSWORD_ERROR_DEFAULT_MESSAGE;
74
71
  (0, _classCallCheck2.default)(this, MeetingInfoV2PasswordError);
75
- _this = _super.call(this, "".concat(message, ", code=").concat(wbxAppApiErrorCode));
76
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "meetingInfo", void 0);
77
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "sdkMessage", void 0);
78
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "wbxAppApiCode", void 0);
79
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "body", void 0);
72
+ _this = _callSuper(this, MeetingInfoV2PasswordError, ["".concat(message, ", code=").concat(wbxAppApiErrorCode)]);
73
+ (0, _defineProperty2.default)(_this, "meetingInfo", void 0);
74
+ (0, _defineProperty2.default)(_this, "sdkMessage", void 0);
75
+ (0, _defineProperty2.default)(_this, "wbxAppApiCode", void 0);
76
+ (0, _defineProperty2.default)(_this, "body", void 0);
80
77
  _this.name = 'MeetingInfoV2PasswordError';
81
78
  _this.sdkMessage = message;
82
79
  _this.stack = new Error().stack;
@@ -84,14 +81,13 @@ var MeetingInfoV2PasswordError = exports.MeetingInfoV2PasswordError = /*#__PURE_
84
81
  _this.meetingInfo = meetingInfo;
85
82
  return _this;
86
83
  }
84
+ (0, _inherits2.default)(MeetingInfoV2PasswordError, _Error);
87
85
  return (0, _createClass2.default)(MeetingInfoV2PasswordError);
88
- }( /*#__PURE__*/(0, _wrapNativeSuper2.default)(Error));
86
+ }(/*#__PURE__*/(0, _wrapNativeSuper2.default)(Error));
89
87
  /**
90
88
  * Error generating a adhoc space meeting
91
89
  */
92
90
  var MeetingInfoV2AdhocMeetingError = exports.MeetingInfoV2AdhocMeetingError = /*#__PURE__*/function (_Error2) {
93
- (0, _inherits2.default)(MeetingInfoV2AdhocMeetingError, _Error2);
94
- var _super2 = _createSuper(MeetingInfoV2AdhocMeetingError);
95
91
  /**
96
92
  *
97
93
  * @constructor
@@ -102,23 +98,22 @@ var MeetingInfoV2AdhocMeetingError = exports.MeetingInfoV2AdhocMeetingError = /*
102
98
  var _this2;
103
99
  var message = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : ADHOC_MEETING_DEFAULT_ERROR;
104
100
  (0, _classCallCheck2.default)(this, MeetingInfoV2AdhocMeetingError);
105
- _this2 = _super2.call(this, "".concat(message, ", code=").concat(wbxAppApiErrorCode));
106
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this2), "sdkMessage", void 0);
107
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this2), "wbxAppApiCode", void 0);
101
+ _this2 = _callSuper(this, MeetingInfoV2AdhocMeetingError, ["".concat(message, ", code=").concat(wbxAppApiErrorCode)]);
102
+ (0, _defineProperty2.default)(_this2, "sdkMessage", void 0);
103
+ (0, _defineProperty2.default)(_this2, "wbxAppApiCode", void 0);
108
104
  _this2.name = 'MeetingInfoV2AdhocMeetingError';
109
105
  _this2.sdkMessage = message;
110
106
  _this2.stack = new Error().stack;
111
107
  _this2.wbxAppApiCode = wbxAppApiErrorCode;
112
108
  return _this2;
113
109
  }
110
+ (0, _inherits2.default)(MeetingInfoV2AdhocMeetingError, _Error2);
114
111
  return (0, _createClass2.default)(MeetingInfoV2AdhocMeetingError);
115
- }( /*#__PURE__*/(0, _wrapNativeSuper2.default)(Error));
112
+ }(/*#__PURE__*/(0, _wrapNativeSuper2.default)(Error));
116
113
  /**
117
114
  * Error preventing join because of a meeting policy
118
115
  */
119
116
  var MeetingInfoV2PolicyError = exports.MeetingInfoV2PolicyError = /*#__PURE__*/function (_Error3) {
120
- (0, _inherits2.default)(MeetingInfoV2PolicyError, _Error3);
121
- var _super3 = _createSuper(MeetingInfoV2PolicyError);
122
117
  /**
123
118
  *
124
119
  * @constructor
@@ -129,10 +124,10 @@ var MeetingInfoV2PolicyError = exports.MeetingInfoV2PolicyError = /*#__PURE__*/f
129
124
  function MeetingInfoV2PolicyError(wbxAppApiErrorCode, meetingInfo, message) {
130
125
  var _this3;
131
126
  (0, _classCallCheck2.default)(this, MeetingInfoV2PolicyError);
132
- _this3 = _super3.call(this, "".concat(message, ", code=").concat(wbxAppApiErrorCode));
133
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this3), "meetingInfo", void 0);
134
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this3), "sdkMessage", void 0);
135
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this3), "wbxAppApiCode", void 0);
127
+ _this3 = _callSuper(this, MeetingInfoV2PolicyError, ["".concat(message, ", code=").concat(wbxAppApiErrorCode)]);
128
+ (0, _defineProperty2.default)(_this3, "meetingInfo", void 0);
129
+ (0, _defineProperty2.default)(_this3, "sdkMessage", void 0);
130
+ (0, _defineProperty2.default)(_this3, "wbxAppApiCode", void 0);
136
131
  _this3.name = 'MeetingInfoV2AdhocMeetingError';
137
132
  _this3.sdkMessage = message;
138
133
  _this3.stack = new Error().stack;
@@ -140,14 +135,13 @@ var MeetingInfoV2PolicyError = exports.MeetingInfoV2PolicyError = /*#__PURE__*/f
140
135
  _this3.meetingInfo = meetingInfo;
141
136
  return _this3;
142
137
  }
138
+ (0, _inherits2.default)(MeetingInfoV2PolicyError, _Error3);
143
139
  return (0, _createClass2.default)(MeetingInfoV2PolicyError);
144
- }( /*#__PURE__*/(0, _wrapNativeSuper2.default)(Error));
140
+ }(/*#__PURE__*/(0, _wrapNativeSuper2.default)(Error));
145
141
  /**
146
142
  * Error to indicate that preferred webex site not present to start adhoc meeting
147
143
  */
148
144
  var MeetingInfoV2CaptchaError = exports.MeetingInfoV2CaptchaError = /*#__PURE__*/function (_Error4) {
149
- (0, _inherits2.default)(MeetingInfoV2CaptchaError, _Error4);
150
- var _super4 = _createSuper(MeetingInfoV2CaptchaError);
151
145
  /**
152
146
  *
153
147
  * @constructor
@@ -159,13 +153,13 @@ var MeetingInfoV2CaptchaError = exports.MeetingInfoV2CaptchaError = /*#__PURE__*
159
153
  var _this4;
160
154
  var message = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : CAPTCHA_ERROR_DEFAULT_MESSAGE;
161
155
  (0, _classCallCheck2.default)(this, MeetingInfoV2CaptchaError);
162
- _this4 = _super4.call(this, "".concat(message, ", code=").concat(wbxAppApiErrorCode));
163
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this4), "captchaInfo", void 0);
164
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this4), "isPasswordRequired", void 0);
165
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this4), "isRegistrationIdRequired", void 0);
166
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this4), "sdkMessage", void 0);
167
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this4), "wbxAppApiCode", void 0);
168
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this4), "body", void 0);
156
+ _this4 = _callSuper(this, MeetingInfoV2CaptchaError, ["".concat(message, ", code=").concat(wbxAppApiErrorCode)]);
157
+ (0, _defineProperty2.default)(_this4, "captchaInfo", void 0);
158
+ (0, _defineProperty2.default)(_this4, "isPasswordRequired", void 0);
159
+ (0, _defineProperty2.default)(_this4, "isRegistrationIdRequired", void 0);
160
+ (0, _defineProperty2.default)(_this4, "sdkMessage", void 0);
161
+ (0, _defineProperty2.default)(_this4, "wbxAppApiCode", void 0);
162
+ (0, _defineProperty2.default)(_this4, "body", void 0);
169
163
  _this4.name = 'MeetingInfoV2PasswordError';
170
164
  _this4.sdkMessage = message;
171
165
  _this4.stack = new Error().stack;
@@ -175,14 +169,13 @@ var MeetingInfoV2CaptchaError = exports.MeetingInfoV2CaptchaError = /*#__PURE__*
175
169
  _this4.captchaInfo = captchaInfo;
176
170
  return _this4;
177
171
  }
172
+ (0, _inherits2.default)(MeetingInfoV2CaptchaError, _Error4);
178
173
  return (0, _createClass2.default)(MeetingInfoV2CaptchaError);
179
- }( /*#__PURE__*/(0, _wrapNativeSuper2.default)(Error));
174
+ }(/*#__PURE__*/(0, _wrapNativeSuper2.default)(Error));
180
175
  /**
181
176
  * Error preventing join because of a webinar have some error
182
177
  */
183
178
  var MeetingInfoV2JoinWebinarError = exports.MeetingInfoV2JoinWebinarError = /*#__PURE__*/function (_Error5) {
184
- (0, _inherits2.default)(MeetingInfoV2JoinWebinarError, _Error5);
185
- var _super5 = _createSuper(MeetingInfoV2JoinWebinarError);
186
179
  /**
187
180
  *
188
181
  * @constructor
@@ -193,11 +186,11 @@ var MeetingInfoV2JoinWebinarError = exports.MeetingInfoV2JoinWebinarError = /*#_
193
186
  function MeetingInfoV2JoinWebinarError(wbxAppApiErrorCode, meetingInfo, message) {
194
187
  var _this5;
195
188
  (0, _classCallCheck2.default)(this, MeetingInfoV2JoinWebinarError);
196
- _this5 = _super5.call(this, "".concat(message, ", code=").concat(wbxAppApiErrorCode));
197
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this5), "meetingInfo", void 0);
198
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this5), "sdkMessage", void 0);
199
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this5), "wbxAppApiCode", void 0);
200
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this5), "body", void 0);
189
+ _this5 = _callSuper(this, MeetingInfoV2JoinWebinarError, ["".concat(message, ", code=").concat(wbxAppApiErrorCode)]);
190
+ (0, _defineProperty2.default)(_this5, "meetingInfo", void 0);
191
+ (0, _defineProperty2.default)(_this5, "sdkMessage", void 0);
192
+ (0, _defineProperty2.default)(_this5, "wbxAppApiCode", void 0);
193
+ (0, _defineProperty2.default)(_this5, "body", void 0);
201
194
  _this5.name = 'MeetingInfoV2JoinWebinarError';
202
195
  _this5.sdkMessage = message;
203
196
  _this5.stack = new Error().stack;
@@ -205,14 +198,13 @@ var MeetingInfoV2JoinWebinarError = exports.MeetingInfoV2JoinWebinarError = /*#_
205
198
  _this5.meetingInfo = meetingInfo;
206
199
  return _this5;
207
200
  }
201
+ (0, _inherits2.default)(MeetingInfoV2JoinWebinarError, _Error5);
208
202
  return (0, _createClass2.default)(MeetingInfoV2JoinWebinarError);
209
- }( /*#__PURE__*/(0, _wrapNativeSuper2.default)(Error));
203
+ }(/*#__PURE__*/(0, _wrapNativeSuper2.default)(Error));
210
204
  /**
211
205
  * Error preventing join because of a forbidden error
212
206
  */
213
207
  var MeetingInfoV2JoinForbiddenError = exports.MeetingInfoV2JoinForbiddenError = /*#__PURE__*/function (_Error6) {
214
- (0, _inherits2.default)(MeetingInfoV2JoinForbiddenError, _Error6);
215
- var _super6 = _createSuper(MeetingInfoV2JoinForbiddenError);
216
208
  /**
217
209
  *
218
210
  * @constructor
@@ -223,11 +215,11 @@ var MeetingInfoV2JoinForbiddenError = exports.MeetingInfoV2JoinForbiddenError =
223
215
  function MeetingInfoV2JoinForbiddenError(wbxAppApiErrorCode, meetingInfo, message) {
224
216
  var _this6;
225
217
  (0, _classCallCheck2.default)(this, MeetingInfoV2JoinForbiddenError);
226
- _this6 = _super6.call(this, "".concat(message, ", code=").concat(wbxAppApiErrorCode));
227
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this6), "meetingInfo", void 0);
228
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this6), "sdkMessage", void 0);
229
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this6), "wbxAppApiCode", void 0);
230
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this6), "body", void 0);
218
+ _this6 = _callSuper(this, MeetingInfoV2JoinForbiddenError, ["".concat(message, ", code=").concat(wbxAppApiErrorCode)]);
219
+ (0, _defineProperty2.default)(_this6, "meetingInfo", void 0);
220
+ (0, _defineProperty2.default)(_this6, "sdkMessage", void 0);
221
+ (0, _defineProperty2.default)(_this6, "wbxAppApiCode", void 0);
222
+ (0, _defineProperty2.default)(_this6, "body", void 0);
231
223
  _this6.name = 'MeetingInfoV2JoinForbiddenError';
232
224
  _this6.sdkMessage = message;
233
225
  _this6.stack = new Error().stack;
@@ -235,14 +227,13 @@ var MeetingInfoV2JoinForbiddenError = exports.MeetingInfoV2JoinForbiddenError =
235
227
  _this6.meetingInfo = meetingInfo;
236
228
  return _this6;
237
229
  }
230
+ (0, _inherits2.default)(MeetingInfoV2JoinForbiddenError, _Error6);
238
231
  return (0, _createClass2.default)(MeetingInfoV2JoinForbiddenError);
239
- }( /*#__PURE__*/(0, _wrapNativeSuper2.default)(Error));
232
+ }(/*#__PURE__*/(0, _wrapNativeSuper2.default)(Error));
240
233
  /**
241
234
  * Error fetching static link for a conversation when it does not exist
242
235
  */
243
236
  var MeetingInfoV2StaticLinkDoesNotExistError = exports.MeetingInfoV2StaticLinkDoesNotExistError = /*#__PURE__*/function (_Error7) {
244
- (0, _inherits2.default)(MeetingInfoV2StaticLinkDoesNotExistError, _Error7);
245
- var _super7 = _createSuper(MeetingInfoV2StaticLinkDoesNotExistError);
246
237
  /**
247
238
  *
248
239
  * @constructor
@@ -253,24 +244,23 @@ var MeetingInfoV2StaticLinkDoesNotExistError = exports.MeetingInfoV2StaticLinkDo
253
244
  var _this7;
254
245
  var message = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : FETCH_STATIC_MEETING_LINK;
255
246
  (0, _classCallCheck2.default)(this, MeetingInfoV2StaticLinkDoesNotExistError);
256
- _this7 = _super7.call(this, "".concat(message, ", code=").concat(wbxAppApiErrorCode));
257
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this7), "sdkMessage", void 0);
258
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this7), "wbxAppApiCode", void 0);
259
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this7), "body", void 0);
247
+ _this7 = _callSuper(this, MeetingInfoV2StaticLinkDoesNotExistError, ["".concat(message, ", code=").concat(wbxAppApiErrorCode)]);
248
+ (0, _defineProperty2.default)(_this7, "sdkMessage", void 0);
249
+ (0, _defineProperty2.default)(_this7, "wbxAppApiCode", void 0);
250
+ (0, _defineProperty2.default)(_this7, "body", void 0);
260
251
  _this7.name = 'MeetingInfoV2StaticLinkDoesNotExistError';
261
252
  _this7.sdkMessage = message;
262
253
  _this7.stack = new Error().stack;
263
254
  _this7.wbxAppApiCode = wbxAppApiErrorCode;
264
255
  return _this7;
265
256
  }
257
+ (0, _inherits2.default)(MeetingInfoV2StaticLinkDoesNotExistError, _Error7);
266
258
  return (0, _createClass2.default)(MeetingInfoV2StaticLinkDoesNotExistError);
267
- }( /*#__PURE__*/(0, _wrapNativeSuper2.default)(Error));
259
+ }(/*#__PURE__*/(0, _wrapNativeSuper2.default)(Error));
268
260
  /**
269
261
  * Error enabling/disabling static meeting link
270
262
  */
271
263
  var MeetingInfoV2MeetingIsInProgressError = exports.MeetingInfoV2MeetingIsInProgressError = /*#__PURE__*/function (_Error8) {
272
- (0, _inherits2.default)(MeetingInfoV2MeetingIsInProgressError, _Error8);
273
- var _super8 = _createSuper(MeetingInfoV2MeetingIsInProgressError);
274
264
  /**
275
265
  *
276
266
  * @constructor
@@ -283,24 +273,23 @@ var MeetingInfoV2MeetingIsInProgressError = exports.MeetingInfoV2MeetingIsInProg
283
273
  var message = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : MEETING_IS_IN_PROGRESS_MESSAGE;
284
274
  var enable = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
285
275
  (0, _classCallCheck2.default)(this, MeetingInfoV2MeetingIsInProgressError);
286
- _this8 = _super8.call(this, "".concat(message, ", code=").concat(wbxAppApiErrorCode, ", enable=").concat(enable));
287
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this8), "sdkMessage", void 0);
288
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this8), "wbxAppApiCode", void 0);
289
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this8), "body", void 0);
276
+ _this8 = _callSuper(this, MeetingInfoV2MeetingIsInProgressError, ["".concat(message, ", code=").concat(wbxAppApiErrorCode, ", enable=").concat(enable)]);
277
+ (0, _defineProperty2.default)(_this8, "sdkMessage", void 0);
278
+ (0, _defineProperty2.default)(_this8, "wbxAppApiCode", void 0);
279
+ (0, _defineProperty2.default)(_this8, "body", void 0);
290
280
  _this8.name = 'MeetingInfoV2MeetingIsInProgressError';
291
281
  _this8.sdkMessage = message;
292
282
  _this8.stack = new Error().stack;
293
283
  _this8.wbxAppApiCode = wbxAppApiErrorCode;
294
284
  return _this8;
295
285
  }
286
+ (0, _inherits2.default)(MeetingInfoV2MeetingIsInProgressError, _Error8);
296
287
  return (0, _createClass2.default)(MeetingInfoV2MeetingIsInProgressError);
297
- }( /*#__PURE__*/(0, _wrapNativeSuper2.default)(Error));
288
+ }(/*#__PURE__*/(0, _wrapNativeSuper2.default)(Error));
298
289
  /**
299
290
  * Error enabling/disabling static meeting link
300
291
  */
301
292
  var MeetingInfoV2StaticMeetingLinkAlreadyExists = exports.MeetingInfoV2StaticMeetingLinkAlreadyExists = /*#__PURE__*/function (_Error9) {
302
- (0, _inherits2.default)(MeetingInfoV2StaticMeetingLinkAlreadyExists, _Error9);
303
- var _super9 = _createSuper(MeetingInfoV2StaticMeetingLinkAlreadyExists);
304
293
  /**
305
294
  *
306
295
  * @constructor
@@ -311,18 +300,19 @@ var MeetingInfoV2StaticMeetingLinkAlreadyExists = exports.MeetingInfoV2StaticMee
311
300
  var _this9;
312
301
  var message = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : STATIC_MEETING_LINK_ALREADY_EXISTS_MESSAGE;
313
302
  (0, _classCallCheck2.default)(this, MeetingInfoV2StaticMeetingLinkAlreadyExists);
314
- _this9 = _super9.call(this, "".concat(message, ", code=").concat(wbxAppApiErrorCode));
315
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this9), "sdkMessage", void 0);
316
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this9), "wbxAppApiCode", void 0);
317
- (0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this9), "body", void 0);
303
+ _this9 = _callSuper(this, MeetingInfoV2StaticMeetingLinkAlreadyExists, ["".concat(message, ", code=").concat(wbxAppApiErrorCode)]);
304
+ (0, _defineProperty2.default)(_this9, "sdkMessage", void 0);
305
+ (0, _defineProperty2.default)(_this9, "wbxAppApiCode", void 0);
306
+ (0, _defineProperty2.default)(_this9, "body", void 0);
318
307
  _this9.name = 'MeetingInfoV2StaticMeetingLinkAlreadyExists';
319
308
  _this9.sdkMessage = message;
320
309
  _this9.stack = new Error().stack;
321
310
  _this9.wbxAppApiCode = wbxAppApiErrorCode;
322
311
  return _this9;
323
312
  }
313
+ (0, _inherits2.default)(MeetingInfoV2StaticMeetingLinkAlreadyExists, _Error9);
324
314
  return (0, _createClass2.default)(MeetingInfoV2StaticMeetingLinkAlreadyExists);
325
- }( /*#__PURE__*/(0, _wrapNativeSuper2.default)(Error));
315
+ }(/*#__PURE__*/(0, _wrapNativeSuper2.default)(Error));
326
316
  /**
327
317
  * @class MeetingInfo
328
318
  */
@@ -363,11 +353,11 @@ var MeetingInfoV2 = exports.default = /*#__PURE__*/function () {
363
353
  return;
364
354
  }
365
355
  if (JOIN_WEBINAR_ERROR_CODES.includes((_err$body6 = err.body) === null || _err$body6 === void 0 ? void 0 : _err$body6.code)) {
366
- var _err$body7, _err$body8, _err$body9, _err$body9$data, _err$body10;
356
+ var _err$body7, _err$body8, _err$body9, _err$body9$data, _err$body0;
367
357
  _metrics.default.sendBehavioralMetric(_constants2.default.JOIN_WEBINAR_ERROR, {
368
358
  code: (_err$body7 = err.body) === null || _err$body7 === void 0 ? void 0 : _err$body7.code
369
359
  });
370
- throw new MeetingInfoV2JoinWebinarError((_err$body8 = err.body) === null || _err$body8 === void 0 ? void 0 : _err$body8.code, (_err$body9 = err.body) === null || _err$body9 === void 0 ? void 0 : (_err$body9$data = _err$body9.data) === null || _err$body9$data === void 0 ? void 0 : _err$body9$data.meetingInfo, (_err$body10 = err.body) === null || _err$body10 === void 0 ? void 0 : _err$body10.message);
360
+ throw new MeetingInfoV2JoinWebinarError((_err$body8 = err.body) === null || _err$body8 === void 0 ? void 0 : _err$body8.code, (_err$body9 = err.body) === null || _err$body9 === void 0 ? void 0 : (_err$body9$data = _err$body9.data) === null || _err$body9$data === void 0 ? void 0 : _err$body9$data.meetingInfo, (_err$body0 = err.body) === null || _err$body0 === void 0 ? void 0 : _err$body0.message);
371
361
  }
372
362
  });
373
363
  /**
@@ -376,16 +366,16 @@ var MeetingInfoV2 = exports.default = /*#__PURE__*/function () {
376
366
  * @returns {void}
377
367
  */
378
368
  (0, _defineProperty2.default)(this, "handleForbiddenError", function (err) {
379
- var _err$body11;
369
+ var _err$body1;
380
370
  if (!err.body) {
381
371
  return;
382
372
  }
383
- if (JOIN_FORBIDDEN_CODES.includes((_err$body11 = err.body) === null || _err$body11 === void 0 ? void 0 : _err$body11.code)) {
384
- var _err$body12, _err$body13, _err$body14, _err$body14$data, _err$body15;
373
+ if (JOIN_FORBIDDEN_CODES.includes((_err$body1 = err.body) === null || _err$body1 === void 0 ? void 0 : _err$body1.code)) {
374
+ var _err$body10, _err$body11, _err$body12, _err$body12$data, _err$body13;
385
375
  _metrics.default.sendBehavioralMetric(_constants2.default.JOIN_FORBIDDEN_ERROR, {
386
- code: (_err$body12 = err.body) === null || _err$body12 === void 0 ? void 0 : _err$body12.code
376
+ code: (_err$body10 = err.body) === null || _err$body10 === void 0 ? void 0 : _err$body10.code
387
377
  });
388
- throw new MeetingInfoV2JoinForbiddenError((_err$body13 = err.body) === null || _err$body13 === void 0 ? void 0 : _err$body13.code, (_err$body14 = err.body) === null || _err$body14 === void 0 ? void 0 : (_err$body14$data = _err$body14.data) === null || _err$body14$data === void 0 ? void 0 : _err$body14$data.meetingInfo, (_err$body15 = err.body) === null || _err$body15 === void 0 ? void 0 : _err$body15.message);
378
+ throw new MeetingInfoV2JoinForbiddenError((_err$body11 = err.body) === null || _err$body11 === void 0 ? void 0 : _err$body11.code, (_err$body12 = err.body) === null || _err$body12 === void 0 ? void 0 : (_err$body12$data = _err$body12.data) === null || _err$body12$data === void 0 ? void 0 : _err$body12$data.meetingInfo, (_err$body13 = err.body) === null || _err$body13 === void 0 ? void 0 : _err$body13.message);
389
379
  }
390
380
  });
391
381
  this.webex = webex;
@@ -399,7 +389,7 @@ var MeetingInfoV2 = exports.default = /*#__PURE__*/function () {
399
389
  * @public
400
390
  * @memberof MeetingInfo
401
391
  */
402
- (0, _createClass2.default)(MeetingInfoV2, [{
392
+ return (0, _createClass2.default)(MeetingInfoV2, [{
403
393
  key: "fetchInfoOptions",
404
394
  value: function fetchInfoOptions(destination) {
405
395
  var type = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : null;
@@ -423,13 +413,13 @@ var MeetingInfoV2 = exports.default = /*#__PURE__*/function () {
423
413
  * @memberof MeetingInfo
424
414
  */
425
415
  function () {
426
- var _createAdhocSpaceMeetingOrEnableStaticMeetingLink = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(conversationUrl, installedOrgID) {
427
- var _this10 = this;
416
+ var _createAdhocSpaceMeetingOrEnableStaticMeetingLink = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee(conversationUrl, installedOrgID) {
417
+ var _this0 = this;
428
418
  var enableStaticMeetingLink,
429
419
  classificationId,
430
420
  getInvitees,
431
421
  _args = arguments;
432
- return _regenerator.default.wrap(function _callee$(_context) {
422
+ return _regenerator.default.wrap(function (_context) {
433
423
  while (1) switch (_context.prev = _context.next) {
434
424
  case 0:
435
425
  enableStaticMeetingLink = _args.length > 2 && _args[2] !== undefined ? _args[2] : false;
@@ -469,14 +459,14 @@ var MeetingInfoV2 = exports.default = /*#__PURE__*/function () {
469
459
  if (installedOrgID) {
470
460
  body.installedOrgID = installedOrgID;
471
461
  }
472
- var uri = _this10.webex.meetings.preferredWebexSite ? "https://".concat(_this10.webex.meetings.preferredWebexSite, "/wbxappapi/v2/meetings/spaceInstant") : '';
473
- return _this10.webex.request({
462
+ var uri = _this0.webex.meetings.preferredWebexSite ? "https://".concat(_this0.webex.meetings.preferredWebexSite, "/wbxappapi/v2/meetings/spaceInstant") : '';
463
+ return _this0.webex.request({
474
464
  method: _constants.HTTP_VERBS.POST,
475
465
  uri: uri,
476
466
  body: body
477
467
  });
478
468
  }));
479
- case 4:
469
+ case 1:
480
470
  case "end":
481
471
  return _context.stop();
482
472
  }
@@ -500,32 +490,32 @@ var MeetingInfoV2 = exports.default = /*#__PURE__*/function () {
500
490
  }, {
501
491
  key: "createAdhocSpaceMeeting",
502
492
  value: (function () {
503
- var _createAdhocSpaceMeeting = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(conversationUrl, installedOrgID, classificationId) {
504
- var _this11 = this;
505
- return _regenerator.default.wrap(function _callee2$(_context2) {
493
+ var _createAdhocSpaceMeeting = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2(conversationUrl, installedOrgID, classificationId) {
494
+ var _this1 = this;
495
+ return _regenerator.default.wrap(function (_context2) {
506
496
  while (1) switch (_context2.prev = _context2.next) {
507
497
  case 0:
508
498
  if (this.webex.meetings.preferredWebexSite) {
509
- _context2.next = 2;
499
+ _context2.next = 1;
510
500
  break;
511
501
  }
512
502
  throw Error('No preferred webex site found');
513
- case 2:
503
+ case 1:
514
504
  return _context2.abrupt("return", this.createAdhocSpaceMeetingOrEnableStaticMeetingLink(conversationUrl, installedOrgID, false, classificationId).then(function (requestResult) {
515
505
  _metrics.default.sendBehavioralMetric(_constants2.default.ADHOC_MEETING_SUCCESS);
516
506
  return requestResult;
517
507
  }).catch(function (err) {
518
- var _err$body16, _err$body17;
519
- _this11.handlePolicyError(err);
520
- _this11.handleJoinWebinarError(err);
521
- _this11.handleForbiddenError(err);
508
+ var _err$body14, _err$body15;
509
+ _this1.handlePolicyError(err);
510
+ _this1.handleJoinWebinarError(err);
511
+ _this1.handleForbiddenError(err);
522
512
  _metrics.default.sendBehavioralMetric(_constants2.default.ADHOC_MEETING_FAILURE, {
523
513
  reason: err.message,
524
514
  stack: err.stack
525
515
  });
526
- throw new MeetingInfoV2AdhocMeetingError((_err$body16 = err.body) === null || _err$body16 === void 0 ? void 0 : _err$body16.code, (_err$body17 = err.body) === null || _err$body17 === void 0 ? void 0 : _err$body17.message);
516
+ throw new MeetingInfoV2AdhocMeetingError((_err$body14 = err.body) === null || _err$body14 === void 0 ? void 0 : _err$body14.code, (_err$body15 = err.body) === null || _err$body15 === void 0 ? void 0 : _err$body15.message);
527
517
  }));
528
- case 3:
518
+ case 2:
529
519
  case "end":
530
520
  return _context2.stop();
531
521
  }
@@ -547,17 +537,17 @@ var MeetingInfoV2 = exports.default = /*#__PURE__*/function () {
547
537
  }, {
548
538
  key: "fetchStaticMeetingLink",
549
539
  value: (function () {
550
- var _fetchStaticMeetingLink = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(conversationUrl) {
540
+ var _fetchStaticMeetingLink = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee3(conversationUrl) {
551
541
  var body, uri;
552
- return _regenerator.default.wrap(function _callee3$(_context3) {
542
+ return _regenerator.default.wrap(function (_context3) {
553
543
  while (1) switch (_context3.prev = _context3.next) {
554
544
  case 0:
555
545
  if (this.webex.meetings.preferredWebexSite) {
556
- _context3.next = 2;
546
+ _context3.next = 1;
557
547
  break;
558
548
  }
559
549
  throw Error('No preferred webex site found');
560
- case 2:
550
+ case 1:
561
551
  body = {
562
552
  spaceUrl: conversationUrl
563
553
  };
@@ -571,12 +561,12 @@ var MeetingInfoV2 = exports.default = /*#__PURE__*/function () {
571
561
  return requestResult;
572
562
  }).catch(function (err) {
573
563
  if ((err === null || err === void 0 ? void 0 : err.statusCode) === 403) {
574
- var _err$body18, _err$body19;
564
+ var _err$body16, _err$body17;
575
565
  _metrics.default.sendBehavioralMetric(_constants2.default.MEETING_LINK_DOES_NOT_EXIST_ERROR, {
576
566
  reason: err.message,
577
567
  stack: err.stack
578
568
  });
579
- throw new MeetingInfoV2StaticLinkDoesNotExistError((_err$body18 = err.body) === null || _err$body18 === void 0 ? void 0 : _err$body18.code, (_err$body19 = err.body) === null || _err$body19 === void 0 ? void 0 : _err$body19.message);
569
+ throw new MeetingInfoV2StaticLinkDoesNotExistError((_err$body16 = err.body) === null || _err$body16 === void 0 ? void 0 : _err$body16.code, (_err$body17 = err.body) === null || _err$body17 === void 0 ? void 0 : _err$body17.message);
580
570
  }
581
571
  _metrics.default.sendBehavioralMetric(_constants2.default.FETCH_STATIC_MEETING_LINK_FAILURE, {
582
572
  reason: err.message,
@@ -584,7 +574,7 @@ var MeetingInfoV2 = exports.default = /*#__PURE__*/function () {
584
574
  });
585
575
  throw err;
586
576
  }));
587
- case 5:
577
+ case 2:
588
578
  case "end":
589
579
  return _context3.stop();
590
580
  }
@@ -606,35 +596,35 @@ var MeetingInfoV2 = exports.default = /*#__PURE__*/function () {
606
596
  }, {
607
597
  key: "enableStaticMeetingLink",
608
598
  value: (function () {
609
- var _enableStaticMeetingLink = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4(conversationUrl) {
610
- return _regenerator.default.wrap(function _callee4$(_context4) {
599
+ var _enableStaticMeetingLink = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee4(conversationUrl) {
600
+ return _regenerator.default.wrap(function (_context4) {
611
601
  while (1) switch (_context4.prev = _context4.next) {
612
602
  case 0:
613
603
  if (this.webex.meetings.preferredWebexSite) {
614
- _context4.next = 2;
604
+ _context4.next = 1;
615
605
  break;
616
606
  }
617
607
  throw Error('No preferred webex site found');
618
- case 2:
608
+ case 1:
619
609
  return _context4.abrupt("return", this.createAdhocSpaceMeetingOrEnableStaticMeetingLink(conversationUrl, undefined, true).then(function (requestResult) {
620
610
  _metrics.default.sendBehavioralMetric(_constants2.default.ENABLE_STATIC_METTING_LINK_SUCCESS);
621
611
  return requestResult;
622
612
  }).catch(function (err) {
623
613
  if ((err === null || err === void 0 ? void 0 : err.statusCode) === 403) {
624
- var _err$body20, _err$body21;
614
+ var _err$body18, _err$body19;
625
615
  _metrics.default.sendBehavioralMetric(_constants2.default.MEETING_IS_IN_PROGRESS_ERROR, {
626
616
  reason: err.message,
627
617
  stack: err.stack
628
618
  });
629
- throw new MeetingInfoV2MeetingIsInProgressError((_err$body20 = err.body) === null || _err$body20 === void 0 ? void 0 : _err$body20.code, (_err$body21 = err.body) === null || _err$body21 === void 0 ? void 0 : _err$body21.message, true);
619
+ throw new MeetingInfoV2MeetingIsInProgressError((_err$body18 = err.body) === null || _err$body18 === void 0 ? void 0 : _err$body18.code, (_err$body19 = err.body) === null || _err$body19 === void 0 ? void 0 : _err$body19.message, true);
630
620
  }
631
621
  if ((err === null || err === void 0 ? void 0 : err.statusCode) === 409) {
632
- var _err$body22, _err$body23;
622
+ var _err$body20, _err$body21;
633
623
  _metrics.default.sendBehavioralMetric(_constants2.default.STATIC_MEETING_LINK_ALREADY_EXISTS_ERROR, {
634
624
  reason: err.message,
635
625
  stack: err.stack
636
626
  });
637
- throw new MeetingInfoV2StaticMeetingLinkAlreadyExists((_err$body22 = err.body) === null || _err$body22 === void 0 ? void 0 : _err$body22.code, (_err$body23 = err.body) === null || _err$body23 === void 0 ? void 0 : _err$body23.message);
627
+ throw new MeetingInfoV2StaticMeetingLinkAlreadyExists((_err$body20 = err.body) === null || _err$body20 === void 0 ? void 0 : _err$body20.code, (_err$body21 = err.body) === null || _err$body21 === void 0 ? void 0 : _err$body21.message);
638
628
  }
639
629
  _metrics.default.sendBehavioralMetric(_constants2.default.ENABLE_STATIC_METTING_LINK_FAILURE, {
640
630
  reason: err.message,
@@ -642,7 +632,7 @@ var MeetingInfoV2 = exports.default = /*#__PURE__*/function () {
642
632
  });
643
633
  throw err;
644
634
  }));
645
- case 3:
635
+ case 2:
646
636
  case "end":
647
637
  return _context4.stop();
648
638
  }
@@ -664,17 +654,17 @@ var MeetingInfoV2 = exports.default = /*#__PURE__*/function () {
664
654
  }, {
665
655
  key: "disableStaticMeetingLink",
666
656
  value: (function () {
667
- var _disableStaticMeetingLink = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee5(conversationUrl) {
657
+ var _disableStaticMeetingLink = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee5(conversationUrl) {
668
658
  var body, uri;
669
- return _regenerator.default.wrap(function _callee5$(_context5) {
659
+ return _regenerator.default.wrap(function (_context5) {
670
660
  while (1) switch (_context5.prev = _context5.next) {
671
661
  case 0:
672
662
  if (this.webex.meetings.preferredWebexSite) {
673
- _context5.next = 2;
663
+ _context5.next = 1;
674
664
  break;
675
665
  }
676
666
  throw Error('No preferred webex site found');
677
- case 2:
667
+ case 1:
678
668
  body = {
679
669
  spaceUrl: conversationUrl
680
670
  };
@@ -688,12 +678,12 @@ var MeetingInfoV2 = exports.default = /*#__PURE__*/function () {
688
678
  return requestResult;
689
679
  }).catch(function (err) {
690
680
  if ((err === null || err === void 0 ? void 0 : err.statusCode) === 403) {
691
- var _err$body24, _err$body25;
681
+ var _err$body22, _err$body23;
692
682
  _metrics.default.sendBehavioralMetric(_constants2.default.MEETING_IS_IN_PROGRESS_ERROR, {
693
683
  reason: err.message,
694
684
  stack: err.stack
695
685
  });
696
- throw new MeetingInfoV2MeetingIsInProgressError((_err$body24 = err.body) === null || _err$body24 === void 0 ? void 0 : _err$body24.code, (_err$body25 = err.body) === null || _err$body25 === void 0 ? void 0 : _err$body25.message);
686
+ throw new MeetingInfoV2MeetingIsInProgressError((_err$body22 = err.body) === null || _err$body22 === void 0 ? void 0 : _err$body22.code, (_err$body23 = err.body) === null || _err$body23 === void 0 ? void 0 : _err$body23.message);
697
687
  }
698
688
  _metrics.default.sendBehavioralMetric(_constants2.default.DISABLE_STATIC_MEETING_LINK_FAILURE, {
699
689
  reason: err.message,
@@ -701,7 +691,7 @@ var MeetingInfoV2 = exports.default = /*#__PURE__*/function () {
701
691
  });
702
692
  throw err;
703
693
  }));
704
- case 5:
694
+ case 2:
705
695
  case "end":
706
696
  return _context5.stop();
707
697
  }
@@ -735,8 +725,8 @@ var MeetingInfoV2 = exports.default = /*#__PURE__*/function () {
735
725
  }, {
736
726
  key: "fetchMeetingInfo",
737
727
  value: (function () {
738
- var _fetchMeetingInfo = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee6(destination) {
739
- var _this12 = this;
728
+ var _fetchMeetingInfo = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee6(destination) {
729
+ var _this10 = this;
740
730
  var type,
741
731
  password,
742
732
  captchaInfo,
@@ -757,7 +747,7 @@ var MeetingInfoV2 = exports.default = /*#__PURE__*/function () {
757
747
  requestOptions,
758
748
  directURI,
759
749
  _args6 = arguments;
760
- return _regenerator.default.wrap(function _callee6$(_context6) {
750
+ return _regenerator.default.wrap(function (_context6) {
761
751
  while (1) switch (_context6.prev = _context6.next) {
762
752
  case 0:
763
753
  type = _args6.length > 1 && _args6[1] !== undefined ? _args6[1] : null;
@@ -771,21 +761,21 @@ var MeetingInfoV2 = exports.default = /*#__PURE__*/function () {
771
761
  fullSiteUrl = _args6.length > 9 && _args6[9] !== undefined ? _args6[9] : null;
772
762
  classificationId = _args6.length > 10 && _args6[10] !== undefined ? _args6[10] : null;
773
763
  meetingId = options.meetingId, sendCAevents = options.sendCAevents;
774
- _context6.next = 13;
764
+ _context6.next = 1;
775
765
  return _utilv.default.getDestinationType({
776
766
  destination: destination,
777
767
  type: type,
778
768
  webex: this.webex
779
769
  });
780
- case 13:
770
+ case 1:
781
771
  destinationType = _context6.sent;
782
772
  if (!(destinationType.type === _constants.DESTINATION_TYPE.CONVERSATION_URL && this.webex.config.meetings.experimental.enableAdhocMeetings && this.webex.meetings.preferredWebexSite)) {
783
- _context6.next = 16;
773
+ _context6.next = 2;
784
774
  break;
785
775
  }
786
776
  return _context6.abrupt("return", this.createAdhocSpaceMeeting(destinationType.destination, installedOrgID, classificationId));
787
- case 16:
788
- _context6.next = 18;
777
+ case 2:
778
+ _context6.next = 3;
789
779
  return _utilv.default.getRequestBody(_objectSpread(_objectSpread({}, destinationType), {}, {
790
780
  password: password,
791
781
  captchaInfo: captchaInfo,
@@ -795,10 +785,10 @@ var MeetingInfoV2 = exports.default = /*#__PURE__*/function () {
795
785
  registrationId: registrationId,
796
786
  disableWebRedirect: true
797
787
  }));
798
- case 18:
788
+ case 3:
799
789
  body = _context6.sent;
800
790
  if (_lodash.default.difference((0, _keys.default)(body), (0, _keys.default)(_constants.DEFAULT_MEETING_INFO_REQUEST_BODY)).length) {
801
- _context6.next = 23;
791
+ _context6.next = 4;
802
792
  break;
803
793
  }
804
794
  err = new Error('Not enough information to fetch meeting info');
@@ -809,14 +799,14 @@ var MeetingInfoV2 = exports.default = /*#__PURE__*/function () {
809
799
  sipUri: destinationType === null || destinationType === void 0 ? void 0 : (_destinationType$info2 = destinationType.info) === null || _destinationType$info2 === void 0 ? void 0 : _destinationType$info2.sipUri
810
800
  });
811
801
  throw err;
812
- case 23:
802
+ case 4:
813
803
  requestOptions = {
814
804
  method: _constants.HTTP_VERBS.POST,
815
805
  body: body
816
806
  };
817
- _context6.next = 26;
807
+ _context6.next = 5;
818
808
  return _utilv.default.getDirectMeetingInfoURI(destinationType);
819
- case 26:
809
+ case 5:
820
810
  directURI = _context6.sent;
821
811
  if (fullSiteUrl) {
822
812
  requestOptions.uri = "https://".concat(fullSiteUrl, "/wbxappapi/v1/meetingInfo");
@@ -840,10 +830,10 @@ var MeetingInfoV2 = exports.default = /*#__PURE__*/function () {
840
830
  return _context6.abrupt("return", this.webex.request(requestOptions).then(function (response) {
841
831
  if (meetingId && sendCAevents) {
842
832
  var _response$body, _response$body2, _response$body3;
843
- _this12.webex.internal.newMetrics.submitInternalEvent({
833
+ _this10.webex.internal.newMetrics.submitInternalEvent({
844
834
  name: 'internal.client.meetinginfo.response'
845
835
  });
846
- _this12.webex.internal.newMetrics.submitClientEvent({
836
+ _this10.webex.internal.newMetrics.submitClientEvent({
847
837
  name: 'client.meetinginfo.response',
848
838
  payload: {
849
839
  identifiers: {
@@ -861,10 +851,10 @@ var MeetingInfoV2 = exports.default = /*#__PURE__*/function () {
861
851
  return response;
862
852
  }).catch(function (err) {
863
853
  if (meetingId && sendCAevents) {
864
- _this12.webex.internal.newMetrics.submitInternalEvent({
854
+ _this10.webex.internal.newMetrics.submitInternalEvent({
865
855
  name: 'internal.client.meetinginfo.response'
866
856
  });
867
- _this12.webex.internal.newMetrics.submitClientEvent({
857
+ _this10.webex.internal.newMetrics.submitClientEvent({
868
858
  name: 'client.meetinginfo.response',
869
859
  payload: {
870
860
  identifiers: {
@@ -878,23 +868,23 @@ var MeetingInfoV2 = exports.default = /*#__PURE__*/function () {
878
868
  });
879
869
  }
880
870
  if ((err === null || err === void 0 ? void 0 : err.statusCode) === 403) {
881
- var _err$body26, _err$body27, _err$body27$data;
882
- _this12.handlePolicyError(err);
883
- _this12.handleJoinWebinarError(err);
884
- _this12.handleForbiddenError(err);
871
+ var _err$body24, _err$body25, _err$body25$data;
872
+ _this10.handlePolicyError(err);
873
+ _this10.handleJoinWebinarError(err);
874
+ _this10.handleForbiddenError(err);
885
875
  _metrics.default.sendBehavioralMetric(_constants2.default.VERIFY_PASSWORD_ERROR, {
886
876
  reason: err.message,
887
877
  stack: err.stack
888
878
  });
889
- throw new MeetingInfoV2PasswordError((_err$body26 = err.body) === null || _err$body26 === void 0 ? void 0 : _err$body26.code, (_err$body27 = err.body) === null || _err$body27 === void 0 ? void 0 : (_err$body27$data = _err$body27.data) === null || _err$body27$data === void 0 ? void 0 : _err$body27$data.meetingInfo);
879
+ throw new MeetingInfoV2PasswordError((_err$body24 = err.body) === null || _err$body24 === void 0 ? void 0 : _err$body24.code, (_err$body25 = err.body) === null || _err$body25 === void 0 ? void 0 : (_err$body25$data = _err$body25.data) === null || _err$body25$data === void 0 ? void 0 : _err$body25$data.meetingInfo);
890
880
  }
891
881
  if ((err === null || err === void 0 ? void 0 : err.statusCode) === 423) {
892
- var _err$body28;
882
+ var _err$body26;
893
883
  _metrics.default.sendBehavioralMetric(_constants2.default.VERIFY_CAPTCHA_ERROR, {
894
884
  reason: err.message,
895
885
  stack: err.stack
896
886
  });
897
- throw new MeetingInfoV2CaptchaError((_err$body28 = err.body) === null || _err$body28 === void 0 ? void 0 : _err$body28.code, {
887
+ throw new MeetingInfoV2CaptchaError((_err$body26 = err.body) === null || _err$body26 === void 0 ? void 0 : _err$body26.code, {
898
888
  captchaId: err.body.captchaID,
899
889
  verificationImageURL: err.body.verificationImageURL,
900
890
  verificationAudioURL: err.body.verificationAudioURL,
@@ -907,7 +897,7 @@ var MeetingInfoV2 = exports.default = /*#__PURE__*/function () {
907
897
  });
908
898
  throw err;
909
899
  }));
910
- case 30:
900
+ case 6:
911
901
  case "end":
912
902
  return _context6.stop();
913
903
  }
@@ -919,6 +909,5 @@ var MeetingInfoV2 = exports.default = /*#__PURE__*/function () {
919
909
  return fetchMeetingInfo;
920
910
  }())
921
911
  }]);
922
- return MeetingInfoV2;
923
912
  }();
924
913
  //# sourceMappingURL=meeting-info-v2.js.map