@webex/plugin-meetings 3.6.0-next.3 → 3.6.0-next.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/breakouts/breakout.js +1 -1
- package/dist/breakouts/index.js +1 -1
- package/dist/common/errors/webinar-registration-error.js +50 -0
- package/dist/common/errors/webinar-registration-error.js.map +1 -0
- package/dist/constants.js +7 -0
- package/dist/constants.js.map +1 -1
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/dist/interpretation/index.js +1 -1
- package/dist/interpretation/siLanguage.js +1 -1
- package/dist/meeting/index.js +20 -8
- package/dist/meeting/index.js.map +1 -1
- package/dist/meeting-info/meeting-info-v2.js +68 -17
- package/dist/meeting-info/meeting-info-v2.js.map +1 -1
- package/dist/meetings/index.js +2 -1
- package/dist/meetings/index.js.map +1 -1
- package/dist/metrics/constants.js +2 -1
- package/dist/metrics/constants.js.map +1 -1
- package/dist/types/common/errors/webinar-registration-error.d.ts +14 -0
- package/dist/types/constants.d.ts +6 -0
- package/dist/types/index.d.ts +2 -1
- package/dist/types/meeting-info/meeting-info-v2.d.ts +23 -0
- package/dist/types/metrics/constants.d.ts +1 -0
- package/dist/webinar/index.js +1 -1
- package/package.json +3 -3
- package/src/common/errors/webinar-registration-error.ts +27 -0
- package/src/constants.ts +6 -0
- package/src/index.ts +2 -0
- package/src/meeting/index.ts +11 -1
- package/src/meeting-info/meeting-info-v2.ts +51 -0
- package/src/meetings/index.ts +3 -1
- package/src/metrics/constants.ts +1 -0
- package/test/unit/spec/meeting/index.js +19 -1
- package/test/unit/spec/meeting-info/meetinginfov2.js +37 -0
package/dist/meeting/index.js
CHANGED
|
@@ -86,6 +86,7 @@ var _controlsOptionsManager = _interopRequireDefault(require("../controls-option
|
|
|
86
86
|
var _permission = _interopRequireDefault(require("../common/errors/permission"));
|
|
87
87
|
var _locusMediaRequest = require("./locusMediaRequest");
|
|
88
88
|
var _connectionStateHandler = require("./connectionStateHandler");
|
|
89
|
+
var _webinarRegistrationError = _interopRequireDefault(require("../common/errors/webinar-registration-error"));
|
|
89
90
|
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof _Symbol !== "undefined" && o[_Symbol$iterator] || o["@@iterator"]; if (!it) { if (_Array$isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
|
90
91
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return _Array$from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
91
92
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
@@ -2421,8 +2422,19 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
2421
2422
|
}
|
|
2422
2423
|
throw new _permission.default();
|
|
2423
2424
|
case 21:
|
|
2425
|
+
if (!(_context5.t0 instanceof _meetingInfoV.MeetingInfoV2WebinarRegistrationError)) {
|
|
2426
|
+
_context5.next = 28;
|
|
2427
|
+
break;
|
|
2428
|
+
}
|
|
2429
|
+
this.meetingInfoFailureReason = _constants.MEETING_INFO_FAILURE_REASON.WEBINAR_REGISTRATION;
|
|
2430
|
+
this.meetingInfoFailureCode = _context5.t0.wbxAppApiCode;
|
|
2431
|
+
if (_context5.t0.meetingInfo) {
|
|
2432
|
+
this.meetingInfo = _context5.t0.meetingInfo;
|
|
2433
|
+
}
|
|
2434
|
+
throw new _webinarRegistrationError.default();
|
|
2435
|
+
case 28:
|
|
2424
2436
|
if (!(_context5.t0 instanceof _meetingInfoV.MeetingInfoV2PasswordError)) {
|
|
2425
|
-
_context5.next =
|
|
2437
|
+
_context5.next = 40;
|
|
2426
2438
|
break;
|
|
2427
2439
|
}
|
|
2428
2440
|
_loggerProxy.default.logger.info( // @ts-ignore
|
|
@@ -2437,16 +2449,16 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
2437
2449
|
this.passwordStatus = _constants.PASSWORD_STATUS.REQUIRED;
|
|
2438
2450
|
this.meetingInfoFailureReason = _constants.MEETING_INFO_FAILURE_REASON.WRONG_PASSWORD;
|
|
2439
2451
|
if (!this.requiredCaptcha) {
|
|
2440
|
-
_context5.next =
|
|
2452
|
+
_context5.next = 37;
|
|
2441
2453
|
break;
|
|
2442
2454
|
}
|
|
2443
|
-
_context5.next =
|
|
2455
|
+
_context5.next = 37;
|
|
2444
2456
|
return this.refreshCaptcha();
|
|
2445
|
-
case
|
|
2457
|
+
case 37:
|
|
2446
2458
|
throw new _passwordError.default();
|
|
2447
|
-
case
|
|
2459
|
+
case 40:
|
|
2448
2460
|
if (!(_context5.t0 instanceof _meetingInfoV.MeetingInfoV2CaptchaError)) {
|
|
2449
|
-
_context5.next =
|
|
2461
|
+
_context5.next = 49;
|
|
2450
2462
|
break;
|
|
2451
2463
|
}
|
|
2452
2464
|
_loggerProxy.default.logger.info( // @ts-ignore
|
|
@@ -2458,10 +2470,10 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
2458
2470
|
}
|
|
2459
2471
|
this.requiredCaptcha = _context5.t0.captchaInfo;
|
|
2460
2472
|
throw new _captchaError.default();
|
|
2461
|
-
case
|
|
2473
|
+
case 49:
|
|
2462
2474
|
this.meetingInfoFailureReason = _constants.MEETING_INFO_FAILURE_REASON.OTHER;
|
|
2463
2475
|
throw _context5.t0;
|
|
2464
|
-
case
|
|
2476
|
+
case 51:
|
|
2465
2477
|
case "end":
|
|
2466
2478
|
return _context5.stop();
|
|
2467
2479
|
}
|