@webex/plugin-meetings 3.7.0-next.51 → 3.7.0-next.53
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/join-forbidden-error.js +52 -0
- package/dist/common/errors/join-forbidden-error.js.map +1 -0
- package/dist/constants.js +12 -2
- package/dist/constants.js.map +1 -1
- package/dist/interpretation/index.js +1 -1
- package/dist/interpretation/siLanguage.js +1 -1
- package/dist/meeting/index.js +25 -8
- package/dist/meeting/index.js.map +1 -1
- package/dist/meeting-info/meeting-info-v2.js +70 -19
- 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/join-forbidden-error.d.ts +15 -0
- package/dist/types/constants.d.ts +8 -0
- 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 +21 -21
- package/src/common/errors/join-forbidden-error.ts +26 -0
- package/src/constants.ts +8 -0
- package/src/meeting/index.ts +17 -0
- 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 +34 -1
- package/test/unit/spec/meeting-info/meetinginfov2.js +37 -0
- package/test/unit/spec/meetings/index.js +6 -0
package/dist/meeting/index.js
CHANGED
|
@@ -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 =
|
|
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 =
|
|
2509
|
+
_context5.next = 46;
|
|
2493
2510
|
break;
|
|
2494
2511
|
}
|
|
2495
|
-
_context5.next =
|
|
2512
|
+
_context5.next = 46;
|
|
2496
2513
|
return this.refreshCaptcha();
|
|
2497
|
-
case
|
|
2514
|
+
case 46:
|
|
2498
2515
|
throw new _passwordError.default();
|
|
2499
|
-
case
|
|
2516
|
+
case 49:
|
|
2500
2517
|
if (!(_context5.t0 instanceof _meetingInfoV.MeetingInfoV2CaptchaError)) {
|
|
2501
|
-
_context5.next =
|
|
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
|
|
2530
|
+
case 58:
|
|
2514
2531
|
this.meetingInfoFailureReason = _constants.MEETING_INFO_FAILURE_REASON.OTHER;
|
|
2515
2532
|
throw _context5.t0;
|
|
2516
|
-
case
|
|
2533
|
+
case 60:
|
|
2517
2534
|
case "end":
|
|
2518
2535
|
return _context5.stop();
|
|
2519
2536
|
}
|