@webex/plugin-meetings 3.7.0-next.52 → 3.7.0-next.54

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.
@@ -89,6 +89,7 @@ var _locusMediaRequest = require("./locusMediaRequest");
89
89
  var _connectionStateHandler = require("./connectionStateHandler");
90
90
  var _joinWebinarError = _interopRequireDefault(require("../common/errors/join-webinar-error"));
91
91
  var _multistreamNotSupportedError = _interopRequireDefault(require("../common/errors/multistream-not-supported-error"));
92
+ var _joinForbiddenError = _interopRequireDefault(require("../common/errors/join-forbidden-error"));
92
93
  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; } } }; }
93
94
  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); }
94
95
  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; }
@@ -2473,8 +2474,24 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
2473
2474
  }
2474
2475
  throw new _joinWebinarError.default();
2475
2476
  case 29:
2477
+ if (!(_context5.t0 instanceof _meetingInfoV.MeetingInfoV2JoinForbiddenError)) {
2478
+ _context5.next = 37;
2479
+ break;
2480
+ }
2481
+ this.meetingInfoFailureReason = _constants.MEETING_INFO_FAILURE_REASON.JOIN_FORBIDDEN;
2482
+ this.meetingInfoFailureCode = _context5.t0.wbxAppApiCode;
2483
+ if (_context5.t0.meetingInfo) {
2484
+ this.meetingInfo = _context5.t0.meetingInfo;
2485
+ }
2486
+
2487
+ // Handle the case where user hasn't reached Join Before Host (JBH) time (error code 403003)
2488
+ if (_constants.JOIN_BEFORE_HOST === _context5.t0.wbxAppApiCode) {
2489
+ this.meetingInfoFailureReason = _constants.MEETING_INFO_FAILURE_REASON.NOT_REACH_JBH;
2490
+ }
2491
+ throw new _joinForbiddenError.default(this.meetingInfoFailureReason, _context5.t0);
2492
+ case 37:
2476
2493
  if (!(_context5.t0 instanceof _meetingInfoV.MeetingInfoV2PasswordError)) {
2477
- _context5.next = 41;
2494
+ _context5.next = 49;
2478
2495
  break;
2479
2496
  }
2480
2497
  _loggerProxy.default.logger.info( // @ts-ignore
@@ -2489,16 +2506,16 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
2489
2506
  this.passwordStatus = _constants.PASSWORD_STATUS.REQUIRED;
2490
2507
  this.meetingInfoFailureReason = _constants.MEETING_INFO_FAILURE_REASON.WRONG_PASSWORD;
2491
2508
  if (!this.requiredCaptcha) {
2492
- _context5.next = 38;
2509
+ _context5.next = 46;
2493
2510
  break;
2494
2511
  }
2495
- _context5.next = 38;
2512
+ _context5.next = 46;
2496
2513
  return this.refreshCaptcha();
2497
- case 38:
2514
+ case 46:
2498
2515
  throw new _passwordError.default();
2499
- case 41:
2516
+ case 49:
2500
2517
  if (!(_context5.t0 instanceof _meetingInfoV.MeetingInfoV2CaptchaError)) {
2501
- _context5.next = 50;
2518
+ _context5.next = 58;
2502
2519
  break;
2503
2520
  }
2504
2521
  _loggerProxy.default.logger.info( // @ts-ignore
@@ -2510,10 +2527,10 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
2510
2527
  }
2511
2528
  this.requiredCaptcha = _context5.t0.captchaInfo;
2512
2529
  throw new _captchaError.default();
2513
- case 50:
2530
+ case 58:
2514
2531
  this.meetingInfoFailureReason = _constants.MEETING_INFO_FAILURE_REASON.OTHER;
2515
2532
  throw _context5.t0;
2516
- case 52:
2533
+ case 60:
2517
2534
  case "end":
2518
2535
  return _context5.stop();
2519
2536
  }