@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.
- package/dist/annotation/annotation.types.js.map +1 -1
- package/dist/annotation/constants.js.map +1 -1
- package/dist/annotation/index.js +19 -22
- package/dist/annotation/index.js.map +1 -1
- package/dist/breakouts/breakout.js +6 -6
- package/dist/breakouts/breakout.js.map +1 -1
- package/dist/breakouts/collection.js.map +1 -1
- package/dist/breakouts/edit-lock-error.js +9 -11
- package/dist/breakouts/edit-lock-error.js.map +1 -1
- package/dist/breakouts/events.js.map +1 -1
- package/dist/breakouts/index.js +126 -127
- package/dist/breakouts/index.js.map +1 -1
- package/dist/breakouts/request.js +6 -8
- package/dist/breakouts/request.js.map +1 -1
- package/dist/breakouts/utils.js.map +1 -1
- package/dist/common/browser-detection.js.map +1 -1
- package/dist/common/collection.js +1 -2
- package/dist/common/collection.js.map +1 -1
- package/dist/common/config.js.map +1 -1
- package/dist/common/errors/captcha-error.js +9 -11
- package/dist/common/errors/captcha-error.js.map +1 -1
- package/dist/common/errors/intent-to-join.js +10 -12
- package/dist/common/errors/intent-to-join.js.map +1 -1
- package/dist/common/errors/join-forbidden-error.js +10 -12
- package/dist/common/errors/join-forbidden-error.js.map +1 -1
- package/dist/common/errors/join-meeting.js +10 -12
- package/dist/common/errors/join-meeting.js.map +1 -1
- package/dist/common/errors/join-webinar-error.js +9 -11
- package/dist/common/errors/join-webinar-error.js.map +1 -1
- package/dist/common/errors/media.js +9 -11
- package/dist/common/errors/media.js.map +1 -1
- package/dist/common/errors/multistream-not-supported-error.js +9 -11
- package/dist/common/errors/multistream-not-supported-error.js.map +1 -1
- package/dist/common/errors/no-meeting-info.js +9 -11
- package/dist/common/errors/no-meeting-info.js.map +1 -1
- package/dist/common/errors/parameter.js +11 -14
- package/dist/common/errors/parameter.js.map +1 -1
- package/dist/common/errors/password-error.js +9 -11
- package/dist/common/errors/password-error.js.map +1 -1
- package/dist/common/errors/permission.js +9 -11
- package/dist/common/errors/permission.js.map +1 -1
- package/dist/common/errors/reclaim-host-role-errors.js +32 -38
- package/dist/common/errors/reclaim-host-role-errors.js.map +1 -1
- package/dist/common/errors/reconnection-not-started.js +5 -6
- package/dist/common/errors/reconnection-not-started.js.map +1 -1
- package/dist/common/errors/reconnection.js +9 -11
- package/dist/common/errors/reconnection.js.map +1 -1
- package/dist/common/errors/stats.js +9 -11
- package/dist/common/errors/stats.js.map +1 -1
- package/dist/common/errors/webex-errors.js +20 -29
- package/dist/common/errors/webex-errors.js.map +1 -1
- package/dist/common/errors/webex-meetings-error.js +9 -12
- package/dist/common/errors/webex-meetings-error.js.map +1 -1
- package/dist/common/events/events-scope.js +9 -10
- package/dist/common/events/events-scope.js.map +1 -1
- package/dist/common/events/events.js +9 -10
- package/dist/common/events/events.js.map +1 -1
- package/dist/common/events/trigger-proxy.js.map +1 -1
- package/dist/common/events/util.js.map +1 -1
- package/dist/common/logs/logger-config.js.map +1 -1
- package/dist/common/logs/logger-proxy.js.map +1 -1
- package/dist/common/logs/request.js +17 -17
- package/dist/common/logs/request.js.map +1 -1
- package/dist/common/queue.js +1 -2
- package/dist/common/queue.js.map +1 -1
- package/dist/config.js +0 -1
- package/dist/config.js.map +1 -1
- package/dist/constants.js +0 -5
- package/dist/constants.js.map +1 -1
- package/dist/controls-options-manager/constants.js.map +1 -1
- package/dist/controls-options-manager/enums.js.map +1 -1
- package/dist/controls-options-manager/index.js +1 -2
- package/dist/controls-options-manager/index.js.map +1 -1
- package/dist/controls-options-manager/types.js.map +1 -1
- package/dist/controls-options-manager/util.js +1 -2
- package/dist/controls-options-manager/util.js.map +1 -1
- package/dist/index.js +1 -2
- package/dist/index.js.map +1 -1
- package/dist/interceptors/index.js.map +1 -1
- package/dist/interceptors/locusRetry.js +6 -8
- package/dist/interceptors/locusRetry.js.map +1 -1
- package/dist/interceptors/locusRouteToken.js +6 -8
- package/dist/interceptors/locusRouteToken.js.map +1 -1
- package/dist/interpretation/collection.js.map +1 -1
- package/dist/interpretation/index.js +1 -2
- package/dist/interpretation/index.js.map +1 -1
- package/dist/interpretation/siLanguage.js +1 -1
- package/dist/interpretation/siLanguage.js.map +1 -1
- package/dist/locus-info/controlsUtils.js.map +1 -1
- package/dist/locus-info/embeddedAppsUtils.js.map +1 -1
- package/dist/locus-info/fullState.js.map +1 -1
- package/dist/locus-info/hostUtils.js.map +1 -1
- package/dist/locus-info/index.js +40 -46
- package/dist/locus-info/index.js.map +1 -1
- package/dist/locus-info/infoUtils.js.map +1 -1
- package/dist/locus-info/mediaSharesUtils.js.map +1 -1
- package/dist/locus-info/parser.js +3 -4
- package/dist/locus-info/parser.js.map +1 -1
- package/dist/locus-info/selfUtils.js.map +1 -1
- package/dist/media/MediaConnectionAwaiter.js +1 -2
- package/dist/media/MediaConnectionAwaiter.js.map +1 -1
- package/dist/media/index.js +0 -2
- package/dist/media/index.js.map +1 -1
- package/dist/media/properties.js +15 -17
- package/dist/media/properties.js.map +1 -1
- package/dist/media/util.js.map +1 -1
- package/dist/meeting/brbState.js +8 -9
- package/dist/meeting/brbState.js.map +1 -1
- package/dist/meeting/connectionStateHandler.js +10 -13
- package/dist/meeting/connectionStateHandler.js.map +1 -1
- package/dist/meeting/in-meeting-actions.js.map +1 -1
- package/dist/meeting/index.js +1514 -1512
- package/dist/meeting/index.js.map +1 -1
- package/dist/meeting/locusMediaRequest.js +13 -17
- package/dist/meeting/locusMediaRequest.js.map +1 -1
- package/dist/meeting/muteState.js +11 -12
- package/dist/meeting/muteState.js.map +1 -1
- package/dist/meeting/request.js +101 -104
- package/dist/meeting/request.js.map +1 -1
- package/dist/meeting/request.type.js.map +1 -1
- package/dist/meeting/state.js.map +1 -1
- package/dist/meeting/type.js.map +1 -1
- package/dist/meeting/util.js +23 -23
- package/dist/meeting/util.js.map +1 -1
- package/dist/meeting/voicea-meeting.js +3 -3
- package/dist/meeting/voicea-meeting.js.map +1 -1
- package/dist/meeting-info/collection.js +7 -10
- package/dist/meeting-info/collection.js.map +1 -1
- package/dist/meeting-info/index.js +1 -2
- package/dist/meeting-info/index.js.map +1 -1
- package/dist/meeting-info/meeting-info-v2.js +135 -146
- package/dist/meeting-info/meeting-info-v2.js.map +1 -1
- package/dist/meeting-info/request.js +1 -2
- package/dist/meeting-info/request.js.map +1 -1
- package/dist/meeting-info/util.js +36 -37
- package/dist/meeting-info/util.js.map +1 -1
- package/dist/meeting-info/utilv2.js +30 -31
- package/dist/meeting-info/utilv2.js.map +1 -1
- package/dist/meetings/collection.js +6 -8
- package/dist/meetings/collection.js.map +1 -1
- package/dist/meetings/index.js +89 -93
- package/dist/meetings/index.js.map +1 -1
- package/dist/meetings/meetings.types.js.map +1 -1
- package/dist/meetings/request.js +6 -8
- package/dist/meetings/request.js.map +1 -1
- package/dist/meetings/util.js +25 -23
- package/dist/meetings/util.js.map +1 -1
- package/dist/member/index.js +1 -2
- package/dist/member/index.js.map +1 -1
- package/dist/member/types.js +6 -3
- package/dist/member/types.js.map +1 -1
- package/dist/member/util.js.map +1 -1
- package/dist/members/collection.js +1 -2
- package/dist/members/collection.js.map +1 -1
- package/dist/members/index.js +18 -21
- package/dist/members/index.js.map +1 -1
- package/dist/members/request.js +8 -11
- package/dist/members/request.js.map +1 -1
- package/dist/members/types.js.map +1 -1
- package/dist/members/util.js.map +1 -1
- package/dist/metrics/constants.js.map +1 -1
- package/dist/metrics/index.js +3 -4
- package/dist/metrics/index.js.map +1 -1
- package/dist/multistream/mediaRequestManager.js +1 -2
- package/dist/multistream/mediaRequestManager.js.map +1 -1
- package/dist/multistream/receiveSlot.js +34 -45
- package/dist/multistream/receiveSlot.js.map +1 -1
- package/dist/multistream/receiveSlotManager.js +8 -9
- package/dist/multistream/receiveSlotManager.js.map +1 -1
- package/dist/multistream/remoteMedia.js +12 -15
- package/dist/multistream/remoteMedia.js.map +1 -1
- package/dist/multistream/remoteMediaGroup.js +1 -2
- package/dist/multistream/remoteMediaGroup.js.map +1 -1
- package/dist/multistream/remoteMediaManager.js +122 -123
- package/dist/multistream/remoteMediaManager.js.map +1 -1
- package/dist/multistream/sendSlotManager.js +29 -30
- package/dist/multistream/sendSlotManager.js.map +1 -1
- package/dist/personal-meeting-room/index.js +16 -19
- package/dist/personal-meeting-room/index.js.map +1 -1
- package/dist/personal-meeting-room/request.js +7 -10
- package/dist/personal-meeting-room/request.js.map +1 -1
- package/dist/personal-meeting-room/util.js.map +1 -1
- package/dist/reachability/clusterReachability.js +36 -39
- package/dist/reachability/clusterReachability.js.map +1 -1
- package/dist/reachability/index.js +203 -205
- package/dist/reachability/index.js.map +1 -1
- package/dist/reachability/reachability.types.js.map +1 -1
- package/dist/reachability/request.js.map +1 -1
- package/dist/reachability/util.js.map +1 -1
- package/dist/reactions/constants.js.map +1 -1
- package/dist/reactions/reactions.js.map +1 -1
- package/dist/reactions/reactions.type.js.map +1 -1
- package/dist/reconnection-manager/index.js +178 -176
- package/dist/reconnection-manager/index.js.map +1 -1
- package/dist/recording-controller/enums.js.map +1 -1
- package/dist/recording-controller/index.js +1 -2
- package/dist/recording-controller/index.js.map +1 -1
- package/dist/recording-controller/util.js.map +1 -1
- package/dist/roap/index.js +12 -15
- package/dist/roap/index.js.map +1 -1
- package/dist/roap/request.js +24 -26
- package/dist/roap/request.js.map +1 -1
- package/dist/roap/turnDiscovery.js +75 -76
- package/dist/roap/turnDiscovery.js.map +1 -1
- package/dist/roap/types.js.map +1 -1
- package/dist/transcription/index.js +4 -5
- package/dist/transcription/index.js.map +1 -1
- package/dist/webinar/collection.js +1 -2
- package/dist/webinar/collection.js.map +1 -1
- package/dist/webinar/index.js +148 -158
- package/dist/webinar/index.js.map +1 -1
- 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
|
|
34
|
-
function _isNativeReflectConstruct() {
|
|
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 =
|
|
76
|
-
(0, _defineProperty2.default)(
|
|
77
|
-
(0, _defineProperty2.default)(
|
|
78
|
-
(0, _defineProperty2.default)(
|
|
79
|
-
(0, _defineProperty2.default)(
|
|
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
|
-
}(
|
|
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 =
|
|
106
|
-
(0, _defineProperty2.default)(
|
|
107
|
-
(0, _defineProperty2.default)(
|
|
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
|
-
}(
|
|
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 =
|
|
133
|
-
(0, _defineProperty2.default)(
|
|
134
|
-
(0, _defineProperty2.default)(
|
|
135
|
-
(0, _defineProperty2.default)(
|
|
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
|
-
}(
|
|
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 =
|
|
163
|
-
(0, _defineProperty2.default)(
|
|
164
|
-
(0, _defineProperty2.default)(
|
|
165
|
-
(0, _defineProperty2.default)(
|
|
166
|
-
(0, _defineProperty2.default)(
|
|
167
|
-
(0, _defineProperty2.default)(
|
|
168
|
-
(0, _defineProperty2.default)(
|
|
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
|
-
}(
|
|
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 =
|
|
197
|
-
(0, _defineProperty2.default)(
|
|
198
|
-
(0, _defineProperty2.default)(
|
|
199
|
-
(0, _defineProperty2.default)(
|
|
200
|
-
(0, _defineProperty2.default)(
|
|
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
|
-
}(
|
|
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 =
|
|
227
|
-
(0, _defineProperty2.default)(
|
|
228
|
-
(0, _defineProperty2.default)(
|
|
229
|
-
(0, _defineProperty2.default)(
|
|
230
|
-
(0, _defineProperty2.default)(
|
|
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
|
-
}(
|
|
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 =
|
|
257
|
-
(0, _defineProperty2.default)(
|
|
258
|
-
(0, _defineProperty2.default)(
|
|
259
|
-
(0, _defineProperty2.default)(
|
|
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
|
-
}(
|
|
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 =
|
|
287
|
-
(0, _defineProperty2.default)(
|
|
288
|
-
(0, _defineProperty2.default)(
|
|
289
|
-
(0, _defineProperty2.default)(
|
|
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
|
-
}(
|
|
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 =
|
|
315
|
-
(0, _defineProperty2.default)(
|
|
316
|
-
(0, _defineProperty2.default)(
|
|
317
|
-
(0, _defineProperty2.default)(
|
|
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
|
-
}(
|
|
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$
|
|
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$
|
|
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$
|
|
369
|
+
var _err$body1;
|
|
380
370
|
if (!err.body) {
|
|
381
371
|
return;
|
|
382
372
|
}
|
|
383
|
-
if (JOIN_FORBIDDEN_CODES.includes((_err$
|
|
384
|
-
var _err$
|
|
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$
|
|
376
|
+
code: (_err$body10 = err.body) === null || _err$body10 === void 0 ? void 0 : _err$body10.code
|
|
387
377
|
});
|
|
388
|
-
throw new MeetingInfoV2JoinForbiddenError((_err$
|
|
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)(
|
|
427
|
-
var
|
|
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
|
|
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 =
|
|
473
|
-
return
|
|
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
|
|
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)(
|
|
504
|
-
var
|
|
505
|
-
return _regenerator.default.wrap(function
|
|
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 =
|
|
499
|
+
_context2.next = 1;
|
|
510
500
|
break;
|
|
511
501
|
}
|
|
512
502
|
throw Error('No preferred webex site found');
|
|
513
|
-
case
|
|
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$
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
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$
|
|
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
|
|
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)(
|
|
540
|
+
var _fetchStaticMeetingLink = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee3(conversationUrl) {
|
|
551
541
|
var body, uri;
|
|
552
|
-
return _regenerator.default.wrap(function
|
|
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 =
|
|
546
|
+
_context3.next = 1;
|
|
557
547
|
break;
|
|
558
548
|
}
|
|
559
549
|
throw Error('No preferred webex site found');
|
|
560
|
-
case
|
|
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$
|
|
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$
|
|
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
|
|
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)(
|
|
610
|
-
return _regenerator.default.wrap(function
|
|
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 =
|
|
604
|
+
_context4.next = 1;
|
|
615
605
|
break;
|
|
616
606
|
}
|
|
617
607
|
throw Error('No preferred webex site found');
|
|
618
|
-
case
|
|
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$
|
|
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$
|
|
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$
|
|
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$
|
|
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
|
|
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)(
|
|
657
|
+
var _disableStaticMeetingLink = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee5(conversationUrl) {
|
|
668
658
|
var body, uri;
|
|
669
|
-
return _regenerator.default.wrap(function
|
|
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 =
|
|
663
|
+
_context5.next = 1;
|
|
674
664
|
break;
|
|
675
665
|
}
|
|
676
666
|
throw Error('No preferred webex site found');
|
|
677
|
-
case
|
|
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$
|
|
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$
|
|
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
|
|
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)(
|
|
739
|
-
var
|
|
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
|
|
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 =
|
|
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
|
|
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 =
|
|
773
|
+
_context6.next = 2;
|
|
784
774
|
break;
|
|
785
775
|
}
|
|
786
776
|
return _context6.abrupt("return", this.createAdhocSpaceMeeting(destinationType.destination, installedOrgID, classificationId));
|
|
787
|
-
case
|
|
788
|
-
_context6.next =
|
|
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
|
|
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 =
|
|
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
|
|
802
|
+
case 4:
|
|
813
803
|
requestOptions = {
|
|
814
804
|
method: _constants.HTTP_VERBS.POST,
|
|
815
805
|
body: body
|
|
816
806
|
};
|
|
817
|
-
_context6.next =
|
|
807
|
+
_context6.next = 5;
|
|
818
808
|
return _utilv.default.getDirectMeetingInfoURI(destinationType);
|
|
819
|
-
case
|
|
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
|
-
|
|
833
|
+
_this10.webex.internal.newMetrics.submitInternalEvent({
|
|
844
834
|
name: 'internal.client.meetinginfo.response'
|
|
845
835
|
});
|
|
846
|
-
|
|
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
|
-
|
|
854
|
+
_this10.webex.internal.newMetrics.submitInternalEvent({
|
|
865
855
|
name: 'internal.client.meetinginfo.response'
|
|
866
856
|
});
|
|
867
|
-
|
|
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$
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
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$
|
|
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$
|
|
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$
|
|
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
|
|
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
|