@webex/plugin-meetings 1.159.1 → 1.159.4
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/meeting/index.js +23 -7
- package/dist/meeting/index.js.map +1 -1
- package/dist/meeting-info/utilv2.js +1 -1
- package/dist/meeting-info/utilv2.js.map +1 -1
- package/dist/meetings/index.js +23 -18
- package/dist/meetings/index.js.map +1 -1
- package/package.json +6 -6
- package/src/meeting/index.js +21 -6
- package/src/meeting-info/utilv2.js +1 -1
- package/src/meetings/index.js +16 -6
- package/test/unit/spec/meeting/index.js +41 -13
- package/test/unit/spec/meeting-info/utilv2.js +7 -0
- package/test/unit/spec/meetings/index.js +57 -16
package/dist/meeting/index.js
CHANGED
|
@@ -820,6 +820,24 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
820
820
|
* @memberof Meeting
|
|
821
821
|
*/
|
|
822
822
|
|
|
823
|
+
_this.destination = attrs.destination;
|
|
824
|
+
/**
|
|
825
|
+
* @instance
|
|
826
|
+
* @type {String}
|
|
827
|
+
* @readonly
|
|
828
|
+
* @public
|
|
829
|
+
* @memberof Meeting
|
|
830
|
+
*/
|
|
831
|
+
|
|
832
|
+
_this.destinationType = attrs.destinationType;
|
|
833
|
+
/**
|
|
834
|
+
* @instance
|
|
835
|
+
* @type {String}
|
|
836
|
+
* @readonly
|
|
837
|
+
* @public
|
|
838
|
+
* @memberof Meeting
|
|
839
|
+
*/
|
|
840
|
+
|
|
823
841
|
_this.partner = null;
|
|
824
842
|
/**
|
|
825
843
|
* @instance
|
|
@@ -1176,13 +1194,13 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
1176
1194
|
key: "fetchMeetingInfo",
|
|
1177
1195
|
value: function () {
|
|
1178
1196
|
var _fetchMeetingInfo = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(_ref4) {
|
|
1179
|
-
var
|
|
1197
|
+
var _ref4$password, password, _ref4$captchaCode, captchaCode, captchaInfo, info, _err$body, _err$body2;
|
|
1180
1198
|
|
|
1181
1199
|
return _regenerator.default.wrap(function _callee$(_context) {
|
|
1182
1200
|
while (1) {
|
|
1183
1201
|
switch (_context.prev = _context.next) {
|
|
1184
1202
|
case 0:
|
|
1185
|
-
|
|
1203
|
+
_ref4$password = _ref4.password, password = _ref4$password === void 0 ? null : _ref4$password, _ref4$captchaCode = _ref4.captchaCode, captchaCode = _ref4$captchaCode === void 0 ? null : _ref4$captchaCode;
|
|
1186
1204
|
|
|
1187
1205
|
if (!(captchaCode && !this.requiredCaptcha)) {
|
|
1188
1206
|
_context.next = 3;
|
|
@@ -1206,7 +1224,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
1206
1224
|
id: this.requiredCaptcha.captchaId
|
|
1207
1225
|
} : null;
|
|
1208
1226
|
_context.next = 9;
|
|
1209
|
-
return this.attrs.meetingInfoProvider.fetchMeetingInfo(destination,
|
|
1227
|
+
return this.attrs.meetingInfoProvider.fetchMeetingInfo(this.destination, this.destinationType, password, captchaInfo);
|
|
1210
1228
|
|
|
1211
1229
|
case 9:
|
|
1212
1230
|
info = _context.sent;
|
|
@@ -1232,7 +1250,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
1232
1250
|
break;
|
|
1233
1251
|
}
|
|
1234
1252
|
|
|
1235
|
-
_loggerProxy.default.logger.info("Meeting:index#fetchMeetingInfo --> Info Unable to fetch meeting info for ".concat(destination, " - password required (code=").concat(_context.t0 === null || _context.t0 === void 0 ? void 0 : (_err$body = _context.t0.body) === null || _err$body === void 0 ? void 0 : _err$body.code, ").")); // when wbxappapi requires password it still populates partial meeting info in the response
|
|
1253
|
+
_loggerProxy.default.logger.info("Meeting:index#fetchMeetingInfo --> Info Unable to fetch meeting info for ".concat(this.destination, " - password required (code=").concat(_context.t0 === null || _context.t0 === void 0 ? void 0 : (_err$body = _context.t0.body) === null || _err$body === void 0 ? void 0 : _err$body.code, ").")); // when wbxappapi requires password it still populates partial meeting info in the response
|
|
1236
1254
|
|
|
1237
1255
|
|
|
1238
1256
|
if (_context.t0.meetingInfo) {
|
|
@@ -1260,7 +1278,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
1260
1278
|
break;
|
|
1261
1279
|
}
|
|
1262
1280
|
|
|
1263
|
-
_loggerProxy.default.logger.info("Meeting:index#fetchMeetingInfo --> Info Unable to fetch meeting info for ".concat(destination, " - captcha required (code=").concat(_context.t0 === null || _context.t0 === void 0 ? void 0 : (_err$body2 = _context.t0.body) === null || _err$body2 === void 0 ? void 0 : _err$body2.code, ")."));
|
|
1281
|
+
_loggerProxy.default.logger.info("Meeting:index#fetchMeetingInfo --> Info Unable to fetch meeting info for ".concat(this.destination, " - captcha required (code=").concat(_context.t0 === null || _context.t0 === void 0 ? void 0 : (_err$body2 = _context.t0.body) === null || _err$body2 === void 0 ? void 0 : _err$body2.code, ")."));
|
|
1264
1282
|
|
|
1265
1283
|
this.meetingInfoFailureReason = this.requiredCaptcha ? _constants.MEETING_INFO_FAILURE_REASON.WRONG_CAPTCHA : _constants.MEETING_INFO_FAILURE_REASON.WRONG_PASSWORD;
|
|
1266
1284
|
|
|
@@ -1305,8 +1323,6 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
1305
1323
|
var _this2 = this;
|
|
1306
1324
|
|
|
1307
1325
|
return this.fetchMeetingInfo({
|
|
1308
|
-
destination: this.sipUri,
|
|
1309
|
-
type: _constants._SIP_URI_,
|
|
1310
1326
|
password: password,
|
|
1311
1327
|
captchaCode: captchaCode
|
|
1312
1328
|
}).then(function () {
|