@webex/plugin-meetings 3.8.0-next.26 → 3.8.0-next.28
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/interpretation/index.js +1 -1
- package/dist/interpretation/siLanguage.js +1 -1
- package/dist/meeting/index.js +20 -1
- package/dist/meeting/index.js.map +1 -1
- package/dist/meeting-info/meeting-info-v2.js +212 -60
- package/dist/meeting-info/meeting-info-v2.js.map +1 -1
- package/dist/meetings/index.js +20 -0
- package/dist/meetings/index.js.map +1 -1
- package/dist/metrics/constants.js +4 -0
- package/dist/metrics/constants.js.map +1 -1
- package/dist/types/meeting-info/meeting-info-v2.d.ts +49 -0
- package/dist/types/meetings/index.d.ts +11 -1
- package/dist/types/metrics/constants.d.ts +4 -0
- package/dist/webinar/index.js +1 -1
- package/package.json +3 -3
- package/src/meeting/index.ts +19 -4
- package/src/meeting-info/meeting-info-v2.ts +126 -6
- package/src/meetings/index.ts +24 -0
- package/src/metrics/constants.ts +4 -0
- package/test/unit/spec/meeting/index.js +15 -0
- package/test/unit/spec/meeting-info/meetinginfov2.js +277 -114
- package/test/unit/spec/meetings/index.js +23 -1
|
@@ -11,7 +11,7 @@ var _interopRequireDefault = require("@babel/runtime-corejs2/helpers/interopRequ
|
|
|
11
11
|
_Object$defineProperty(exports, "__esModule", {
|
|
12
12
|
value: true
|
|
13
13
|
});
|
|
14
|
-
exports.default = exports.MeetingInfoV2PolicyError = exports.MeetingInfoV2PasswordError = exports.MeetingInfoV2JoinWebinarError = exports.MeetingInfoV2JoinForbiddenError = exports.MeetingInfoV2CaptchaError = exports.MeetingInfoV2AdhocMeetingError = void 0;
|
|
14
|
+
exports.default = exports.MeetingInfoV2StaticMeetingLinkAlreadyExists = exports.MeetingInfoV2PolicyError = exports.MeetingInfoV2PasswordError = exports.MeetingInfoV2MeetingIsInProgressError = exports.MeetingInfoV2JoinWebinarError = exports.MeetingInfoV2JoinForbiddenError = exports.MeetingInfoV2CaptchaError = exports.MeetingInfoV2AdhocMeetingError = void 0;
|
|
15
15
|
var _keys = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/object/keys"));
|
|
16
16
|
var _regenerator = _interopRequireDefault(require("@babel/runtime-corejs2/regenerator"));
|
|
17
17
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/asyncToGenerator"));
|
|
@@ -35,6 +35,8 @@ function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !_R
|
|
|
35
35
|
var PASSWORD_ERROR_DEFAULT_MESSAGE = 'Password required. Call fetchMeetingInfo() with password argument';
|
|
36
36
|
var CAPTCHA_ERROR_DEFAULT_MESSAGE = 'Captcha required. Call fetchMeetingInfo() with captchaInfo argument';
|
|
37
37
|
var ADHOC_MEETING_DEFAULT_ERROR = 'Failed starting the adhoc meeting, Please contact support team ';
|
|
38
|
+
var MEETING_IS_IN_PROGRESS_MESSAGE = 'Meeting is in progress';
|
|
39
|
+
var STATIC_MEETING_LINK_ALREADY_EXISTS_MESSAGE = 'Static meeting link already exists';
|
|
38
40
|
var CAPTCHA_ERROR_REQUIRES_PASSWORD_CODES = [423005, 423006];
|
|
39
41
|
var CAPTCHA_ERROR_REQUIRES_REGISTRATION_ID_CODES = [423007];
|
|
40
42
|
var POLICY_ERROR_CODES = [403049, 403104, 403103, 403048, 403102, 403101];
|
|
@@ -234,6 +236,64 @@ var MeetingInfoV2JoinForbiddenError = exports.MeetingInfoV2JoinForbiddenError =
|
|
|
234
236
|
}
|
|
235
237
|
return (0, _createClass2.default)(MeetingInfoV2JoinForbiddenError);
|
|
236
238
|
}( /*#__PURE__*/(0, _wrapNativeSuper2.default)(Error));
|
|
239
|
+
/**
|
|
240
|
+
* Error enabling/disabling static meeting link
|
|
241
|
+
*/
|
|
242
|
+
var MeetingInfoV2MeetingIsInProgressError = exports.MeetingInfoV2MeetingIsInProgressError = /*#__PURE__*/function (_Error7) {
|
|
243
|
+
(0, _inherits2.default)(MeetingInfoV2MeetingIsInProgressError, _Error7);
|
|
244
|
+
var _super7 = _createSuper(MeetingInfoV2MeetingIsInProgressError);
|
|
245
|
+
/**
|
|
246
|
+
*
|
|
247
|
+
* @constructor
|
|
248
|
+
* @param {Number} [wbxAppApiErrorCode]
|
|
249
|
+
* @param {String} [message]
|
|
250
|
+
* @param {Boolean} [enable]
|
|
251
|
+
*/
|
|
252
|
+
function MeetingInfoV2MeetingIsInProgressError(wbxAppApiErrorCode) {
|
|
253
|
+
var _this7;
|
|
254
|
+
var message = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : MEETING_IS_IN_PROGRESS_MESSAGE;
|
|
255
|
+
var enable = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
256
|
+
(0, _classCallCheck2.default)(this, MeetingInfoV2MeetingIsInProgressError);
|
|
257
|
+
_this7 = _super7.call(this, "".concat(message, ", code=").concat(wbxAppApiErrorCode, ", enable=").concat(enable));
|
|
258
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this7), "sdkMessage", void 0);
|
|
259
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this7), "wbxAppApiCode", void 0);
|
|
260
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this7), "body", void 0);
|
|
261
|
+
_this7.name = 'MeetingInfoV2MeetingIsInProgressError';
|
|
262
|
+
_this7.sdkMessage = message;
|
|
263
|
+
_this7.stack = new Error().stack;
|
|
264
|
+
_this7.wbxAppApiCode = wbxAppApiErrorCode;
|
|
265
|
+
return _this7;
|
|
266
|
+
}
|
|
267
|
+
return (0, _createClass2.default)(MeetingInfoV2MeetingIsInProgressError);
|
|
268
|
+
}( /*#__PURE__*/(0, _wrapNativeSuper2.default)(Error));
|
|
269
|
+
/**
|
|
270
|
+
* Error enabling/disabling static meeting link
|
|
271
|
+
*/
|
|
272
|
+
var MeetingInfoV2StaticMeetingLinkAlreadyExists = exports.MeetingInfoV2StaticMeetingLinkAlreadyExists = /*#__PURE__*/function (_Error8) {
|
|
273
|
+
(0, _inherits2.default)(MeetingInfoV2StaticMeetingLinkAlreadyExists, _Error8);
|
|
274
|
+
var _super8 = _createSuper(MeetingInfoV2StaticMeetingLinkAlreadyExists);
|
|
275
|
+
/**
|
|
276
|
+
*
|
|
277
|
+
* @constructor
|
|
278
|
+
* @param {Number} [wbxAppApiErrorCode]
|
|
279
|
+
* @param {String} [message]
|
|
280
|
+
*/
|
|
281
|
+
function MeetingInfoV2StaticMeetingLinkAlreadyExists(wbxAppApiErrorCode) {
|
|
282
|
+
var _this8;
|
|
283
|
+
var message = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : STATIC_MEETING_LINK_ALREADY_EXISTS_MESSAGE;
|
|
284
|
+
(0, _classCallCheck2.default)(this, MeetingInfoV2StaticMeetingLinkAlreadyExists);
|
|
285
|
+
_this8 = _super8.call(this, "".concat(message, ", code=").concat(wbxAppApiErrorCode));
|
|
286
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this8), "sdkMessage", void 0);
|
|
287
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this8), "wbxAppApiCode", void 0);
|
|
288
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this8), "body", void 0);
|
|
289
|
+
_this8.name = 'MeetingInfoV2StaticMeetingLinkAlreadyExists';
|
|
290
|
+
_this8.sdkMessage = message;
|
|
291
|
+
_this8.stack = new Error().stack;
|
|
292
|
+
_this8.wbxAppApiCode = wbxAppApiErrorCode;
|
|
293
|
+
return _this8;
|
|
294
|
+
}
|
|
295
|
+
return (0, _createClass2.default)(MeetingInfoV2StaticMeetingLinkAlreadyExists);
|
|
296
|
+
}( /*#__PURE__*/(0, _wrapNativeSuper2.default)(Error));
|
|
237
297
|
/**
|
|
238
298
|
* @class MeetingInfo
|
|
239
299
|
*/
|
|
@@ -321,29 +381,27 @@ var MeetingInfoV2 = exports.default = /*#__PURE__*/function () {
|
|
|
321
381
|
});
|
|
322
382
|
}
|
|
323
383
|
}, {
|
|
324
|
-
key: "
|
|
384
|
+
key: "createAdhocSpaceMeetingOrEnableStaticMeetingLink",
|
|
325
385
|
value: (
|
|
326
386
|
/**
|
|
327
|
-
*
|
|
387
|
+
* helper function to either create an adhoc space meeting or enable static meeting link
|
|
328
388
|
* @param {String} conversationUrl conversationUrl to start adhoc meeting on
|
|
329
389
|
* @param {String} installedOrgID org ID of user's machine
|
|
390
|
+
* @param {Boolean} enableStaticMeetingLink whether or not to enable static meeting link
|
|
330
391
|
* @returns {Promise} returns a meeting info object
|
|
331
392
|
* @public
|
|
332
393
|
* @memberof MeetingInfo
|
|
333
394
|
*/
|
|
334
395
|
function () {
|
|
335
|
-
var
|
|
336
|
-
var
|
|
337
|
-
var
|
|
396
|
+
var _createAdhocSpaceMeetingOrEnableStaticMeetingLink = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(conversationUrl, installedOrgID) {
|
|
397
|
+
var _this9 = this;
|
|
398
|
+
var enableStaticMeetingLink,
|
|
399
|
+
getInvitees,
|
|
400
|
+
_args = arguments;
|
|
338
401
|
return _regenerator.default.wrap(function _callee$(_context) {
|
|
339
402
|
while (1) switch (_context.prev = _context.next) {
|
|
340
403
|
case 0:
|
|
341
|
-
|
|
342
|
-
_context.next = 2;
|
|
343
|
-
break;
|
|
344
|
-
}
|
|
345
|
-
throw Error('No preferred webex site found');
|
|
346
|
-
case 2:
|
|
404
|
+
enableStaticMeetingLink = _args.length > 2 && _args[2] !== undefined ? _args[2] : false;
|
|
347
405
|
getInvitees = function getInvitees() {
|
|
348
406
|
var particpants = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
349
407
|
var invitees = [];
|
|
@@ -372,42 +430,136 @@ var MeetingInfoV2 = exports.default = /*#__PURE__*/function () {
|
|
|
372
430
|
keyUrl: conversation.encryptionKeyUrl,
|
|
373
431
|
kroUrl: conversation.kmsResourceObjectUrl,
|
|
374
432
|
invitees: getInvitees((_conversation$partici = conversation.participants) === null || _conversation$partici === void 0 ? void 0 : _conversation$partici.items),
|
|
375
|
-
installedOrgID: installedOrgID
|
|
433
|
+
installedOrgID: installedOrgID,
|
|
434
|
+
schedule: enableStaticMeetingLink
|
|
376
435
|
};
|
|
377
436
|
if (installedOrgID) {
|
|
378
437
|
body.installedOrgID = installedOrgID;
|
|
379
438
|
}
|
|
380
|
-
var uri =
|
|
381
|
-
return
|
|
439
|
+
var uri = _this9.webex.meetings.preferredWebexSite ? "https://".concat(_this9.webex.meetings.preferredWebexSite, "/wbxappapi/v2/meetings/spaceInstant") : '';
|
|
440
|
+
return _this9.webex.request({
|
|
382
441
|
method: _constants.HTTP_VERBS.POST,
|
|
383
442
|
uri: uri,
|
|
384
443
|
body: body
|
|
385
444
|
});
|
|
386
|
-
})
|
|
445
|
+
}));
|
|
446
|
+
case 3:
|
|
447
|
+
case "end":
|
|
448
|
+
return _context.stop();
|
|
449
|
+
}
|
|
450
|
+
}, _callee, this);
|
|
451
|
+
}));
|
|
452
|
+
function createAdhocSpaceMeetingOrEnableStaticMeetingLink(_x, _x2) {
|
|
453
|
+
return _createAdhocSpaceMeetingOrEnableStaticMeetingLink.apply(this, arguments);
|
|
454
|
+
}
|
|
455
|
+
return createAdhocSpaceMeetingOrEnableStaticMeetingLink;
|
|
456
|
+
}()
|
|
457
|
+
/**
|
|
458
|
+
* Creates adhoc space meetings for a space by fetching the conversation infomation
|
|
459
|
+
* @param {String} conversationUrl conversationUrl to start adhoc meeting on
|
|
460
|
+
* @param {String} installedOrgID org ID of user's machine
|
|
461
|
+
* @returns {Promise} returns a meeting info object
|
|
462
|
+
* @public
|
|
463
|
+
* @memberof MeetingInfo
|
|
464
|
+
*/
|
|
465
|
+
)
|
|
466
|
+
}, {
|
|
467
|
+
key: "createAdhocSpaceMeeting",
|
|
468
|
+
value: (function () {
|
|
469
|
+
var _createAdhocSpaceMeeting = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(conversationUrl, installedOrgID) {
|
|
470
|
+
var _this10 = this;
|
|
471
|
+
return _regenerator.default.wrap(function _callee2$(_context2) {
|
|
472
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
473
|
+
case 0:
|
|
474
|
+
if (this.webex.meetings.preferredWebexSite) {
|
|
475
|
+
_context2.next = 2;
|
|
476
|
+
break;
|
|
477
|
+
}
|
|
478
|
+
throw Error('No preferred webex site found');
|
|
479
|
+
case 2:
|
|
480
|
+
return _context2.abrupt("return", this.createAdhocSpaceMeetingOrEnableStaticMeetingLink(conversationUrl, installedOrgID).then(function (requestResult) {
|
|
387
481
|
_metrics.default.sendBehavioralMetric(_constants2.default.ADHOC_MEETING_SUCCESS);
|
|
388
482
|
return requestResult;
|
|
389
483
|
}).catch(function (err) {
|
|
390
484
|
var _err$body16, _err$body17;
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
485
|
+
_this10.handlePolicyError(err);
|
|
486
|
+
_this10.handleJoinWebinarError(err);
|
|
487
|
+
_this10.handleForbiddenError(err);
|
|
394
488
|
_metrics.default.sendBehavioralMetric(_constants2.default.ADHOC_MEETING_FAILURE, {
|
|
395
489
|
reason: err.message,
|
|
396
490
|
stack: err.stack
|
|
397
491
|
});
|
|
398
492
|
throw new MeetingInfoV2AdhocMeetingError((_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);
|
|
399
493
|
}));
|
|
400
|
-
case
|
|
494
|
+
case 3:
|
|
401
495
|
case "end":
|
|
402
|
-
return
|
|
496
|
+
return _context2.stop();
|
|
403
497
|
}
|
|
404
|
-
},
|
|
498
|
+
}, _callee2, this);
|
|
405
499
|
}));
|
|
406
|
-
function createAdhocSpaceMeeting(
|
|
500
|
+
function createAdhocSpaceMeeting(_x3, _x4) {
|
|
407
501
|
return _createAdhocSpaceMeeting.apply(this, arguments);
|
|
408
502
|
}
|
|
409
503
|
return createAdhocSpaceMeeting;
|
|
410
504
|
}()
|
|
505
|
+
/**
|
|
506
|
+
* Enables static meeting link
|
|
507
|
+
* @param {String} conversationUrl conversationUrl that's required to enable static meeting link
|
|
508
|
+
* @returns {Promise} returns a meeting info object
|
|
509
|
+
* @public
|
|
510
|
+
* @memberof MeetingInfo
|
|
511
|
+
*/
|
|
512
|
+
)
|
|
513
|
+
}, {
|
|
514
|
+
key: "enableStaticMeetingLink",
|
|
515
|
+
value: (function () {
|
|
516
|
+
var _enableStaticMeetingLink = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(conversationUrl) {
|
|
517
|
+
return _regenerator.default.wrap(function _callee3$(_context3) {
|
|
518
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
519
|
+
case 0:
|
|
520
|
+
if (this.webex.meetings.preferredWebexSite) {
|
|
521
|
+
_context3.next = 2;
|
|
522
|
+
break;
|
|
523
|
+
}
|
|
524
|
+
throw Error('No preferred webex site found');
|
|
525
|
+
case 2:
|
|
526
|
+
return _context3.abrupt("return", this.createAdhocSpaceMeetingOrEnableStaticMeetingLink(conversationUrl, undefined, true).then(function (requestResult) {
|
|
527
|
+
_metrics.default.sendBehavioralMetric(_constants2.default.ENABLE_STATIC_METTING_LINK_SUCCESS);
|
|
528
|
+
return requestResult;
|
|
529
|
+
}).catch(function (err) {
|
|
530
|
+
if ((err === null || err === void 0 ? void 0 : err.statusCode) === 403) {
|
|
531
|
+
var _err$body18, _err$body19;
|
|
532
|
+
_metrics.default.sendBehavioralMetric(_constants2.default.MEETING_IS_IN_PROGRESS_ERROR, {
|
|
533
|
+
reason: err.message,
|
|
534
|
+
stack: err.stack
|
|
535
|
+
});
|
|
536
|
+
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);
|
|
537
|
+
}
|
|
538
|
+
if ((err === null || err === void 0 ? void 0 : err.statusCode) === 409) {
|
|
539
|
+
var _err$body20, _err$body21;
|
|
540
|
+
_metrics.default.sendBehavioralMetric(_constants2.default.STATIC_MEETING_LINK_ALREADY_EXISTS_ERROR, {
|
|
541
|
+
reason: err.message,
|
|
542
|
+
stack: err.stack
|
|
543
|
+
});
|
|
544
|
+
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);
|
|
545
|
+
}
|
|
546
|
+
_metrics.default.sendBehavioralMetric(_constants2.default.ENABLE_STATIC_METTING_LINK_FAILURE, {
|
|
547
|
+
reason: err.message,
|
|
548
|
+
stack: err.stack
|
|
549
|
+
});
|
|
550
|
+
throw err;
|
|
551
|
+
}));
|
|
552
|
+
case 3:
|
|
553
|
+
case "end":
|
|
554
|
+
return _context3.stop();
|
|
555
|
+
}
|
|
556
|
+
}, _callee3, this);
|
|
557
|
+
}));
|
|
558
|
+
function enableStaticMeetingLink(_x5) {
|
|
559
|
+
return _enableStaticMeetingLink.apply(this, arguments);
|
|
560
|
+
}
|
|
561
|
+
return enableStaticMeetingLink;
|
|
562
|
+
}()
|
|
411
563
|
/**
|
|
412
564
|
* Fetches meeting info from the server
|
|
413
565
|
* @param {String} destination one of many different types of destinations to look up info for
|
|
@@ -429,8 +581,8 @@ var MeetingInfoV2 = exports.default = /*#__PURE__*/function () {
|
|
|
429
581
|
}, {
|
|
430
582
|
key: "fetchMeetingInfo",
|
|
431
583
|
value: (function () {
|
|
432
|
-
var _fetchMeetingInfo = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function
|
|
433
|
-
var
|
|
584
|
+
var _fetchMeetingInfo = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee4(destination) {
|
|
585
|
+
var _this11 = this;
|
|
434
586
|
var type,
|
|
435
587
|
password,
|
|
436
588
|
captchaInfo,
|
|
@@ -448,34 +600,34 @@ var MeetingInfoV2 = exports.default = /*#__PURE__*/function () {
|
|
|
448
600
|
err,
|
|
449
601
|
requestOptions,
|
|
450
602
|
directURI,
|
|
451
|
-
|
|
452
|
-
return _regenerator.default.wrap(function
|
|
453
|
-
while (1) switch (
|
|
603
|
+
_args4 = arguments;
|
|
604
|
+
return _regenerator.default.wrap(function _callee4$(_context4) {
|
|
605
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
454
606
|
case 0:
|
|
455
|
-
type =
|
|
456
|
-
password =
|
|
457
|
-
captchaInfo =
|
|
458
|
-
installedOrgID =
|
|
459
|
-
locusId =
|
|
460
|
-
extraParams =
|
|
461
|
-
options =
|
|
462
|
-
registrationId =
|
|
607
|
+
type = _args4.length > 1 && _args4[1] !== undefined ? _args4[1] : null;
|
|
608
|
+
password = _args4.length > 2 && _args4[2] !== undefined ? _args4[2] : null;
|
|
609
|
+
captchaInfo = _args4.length > 3 && _args4[3] !== undefined ? _args4[3] : null;
|
|
610
|
+
installedOrgID = _args4.length > 4 && _args4[4] !== undefined ? _args4[4] : null;
|
|
611
|
+
locusId = _args4.length > 5 && _args4[5] !== undefined ? _args4[5] : null;
|
|
612
|
+
extraParams = _args4.length > 6 && _args4[6] !== undefined ? _args4[6] : {};
|
|
613
|
+
options = _args4.length > 7 && _args4[7] !== undefined ? _args4[7] : {};
|
|
614
|
+
registrationId = _args4.length > 8 && _args4[8] !== undefined ? _args4[8] : null;
|
|
463
615
|
meetingId = options.meetingId, sendCAevents = options.sendCAevents;
|
|
464
|
-
|
|
616
|
+
_context4.next = 11;
|
|
465
617
|
return _utilv.default.getDestinationType({
|
|
466
618
|
destination: destination,
|
|
467
619
|
type: type,
|
|
468
620
|
webex: this.webex
|
|
469
621
|
});
|
|
470
622
|
case 11:
|
|
471
|
-
destinationType =
|
|
623
|
+
destinationType = _context4.sent;
|
|
472
624
|
if (!(destinationType.type === _constants.DESTINATION_TYPE.CONVERSATION_URL && this.webex.config.meetings.experimental.enableAdhocMeetings && this.webex.meetings.preferredWebexSite)) {
|
|
473
|
-
|
|
625
|
+
_context4.next = 14;
|
|
474
626
|
break;
|
|
475
627
|
}
|
|
476
|
-
return
|
|
628
|
+
return _context4.abrupt("return", this.createAdhocSpaceMeeting(destinationType.destination, installedOrgID));
|
|
477
629
|
case 14:
|
|
478
|
-
|
|
630
|
+
_context4.next = 16;
|
|
479
631
|
return _utilv.default.getRequestBody(_objectSpread(_objectSpread({}, destinationType), {}, {
|
|
480
632
|
password: password,
|
|
481
633
|
captchaInfo: captchaInfo,
|
|
@@ -485,9 +637,9 @@ var MeetingInfoV2 = exports.default = /*#__PURE__*/function () {
|
|
|
485
637
|
registrationId: registrationId
|
|
486
638
|
}));
|
|
487
639
|
case 16:
|
|
488
|
-
body =
|
|
640
|
+
body = _context4.sent;
|
|
489
641
|
if (_lodash.default.difference((0, _keys.default)(body), (0, _keys.default)(_constants.DEFAULT_MEETING_INFO_REQUEST_BODY)).length) {
|
|
490
|
-
|
|
642
|
+
_context4.next = 21;
|
|
491
643
|
break;
|
|
492
644
|
}
|
|
493
645
|
err = new Error('Not enough information to fetch meeting info');
|
|
@@ -503,10 +655,10 @@ var MeetingInfoV2 = exports.default = /*#__PURE__*/function () {
|
|
|
503
655
|
method: _constants.HTTP_VERBS.POST,
|
|
504
656
|
body: body
|
|
505
657
|
};
|
|
506
|
-
|
|
658
|
+
_context4.next = 24;
|
|
507
659
|
return _utilv.default.getDirectMeetingInfoURI(destinationType);
|
|
508
660
|
case 24:
|
|
509
|
-
directURI =
|
|
661
|
+
directURI = _context4.sent;
|
|
510
662
|
if (directURI) {
|
|
511
663
|
requestOptions.uri = directURI;
|
|
512
664
|
} else {
|
|
@@ -524,13 +676,13 @@ var MeetingInfoV2 = exports.default = /*#__PURE__*/function () {
|
|
|
524
676
|
}
|
|
525
677
|
});
|
|
526
678
|
}
|
|
527
|
-
return
|
|
679
|
+
return _context4.abrupt("return", this.webex.request(requestOptions).then(function (response) {
|
|
528
680
|
if (meetingId && sendCAevents) {
|
|
529
681
|
var _response$body, _response$body2, _response$body3;
|
|
530
|
-
|
|
682
|
+
_this11.webex.internal.newMetrics.submitInternalEvent({
|
|
531
683
|
name: 'internal.client.meetinginfo.response'
|
|
532
684
|
});
|
|
533
|
-
|
|
685
|
+
_this11.webex.internal.newMetrics.submitClientEvent({
|
|
534
686
|
name: 'client.meetinginfo.response',
|
|
535
687
|
payload: {
|
|
536
688
|
identifiers: {
|
|
@@ -548,10 +700,10 @@ var MeetingInfoV2 = exports.default = /*#__PURE__*/function () {
|
|
|
548
700
|
return response;
|
|
549
701
|
}).catch(function (err) {
|
|
550
702
|
if (meetingId && sendCAevents) {
|
|
551
|
-
|
|
703
|
+
_this11.webex.internal.newMetrics.submitInternalEvent({
|
|
552
704
|
name: 'internal.client.meetinginfo.response'
|
|
553
705
|
});
|
|
554
|
-
|
|
706
|
+
_this11.webex.internal.newMetrics.submitClientEvent({
|
|
555
707
|
name: 'client.meetinginfo.response',
|
|
556
708
|
payload: {
|
|
557
709
|
identifiers: {
|
|
@@ -565,23 +717,23 @@ var MeetingInfoV2 = exports.default = /*#__PURE__*/function () {
|
|
|
565
717
|
});
|
|
566
718
|
}
|
|
567
719
|
if ((err === null || err === void 0 ? void 0 : err.statusCode) === 403) {
|
|
568
|
-
var _err$
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
720
|
+
var _err$body22, _err$body23, _err$body23$data;
|
|
721
|
+
_this11.handlePolicyError(err);
|
|
722
|
+
_this11.handleJoinWebinarError(err);
|
|
723
|
+
_this11.handleForbiddenError(err);
|
|
572
724
|
_metrics.default.sendBehavioralMetric(_constants2.default.VERIFY_PASSWORD_ERROR, {
|
|
573
725
|
reason: err.message,
|
|
574
726
|
stack: err.stack
|
|
575
727
|
});
|
|
576
|
-
throw new MeetingInfoV2PasswordError((_err$
|
|
728
|
+
throw new MeetingInfoV2PasswordError((_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$data = _err$body23.data) === null || _err$body23$data === void 0 ? void 0 : _err$body23$data.meetingInfo);
|
|
577
729
|
}
|
|
578
730
|
if ((err === null || err === void 0 ? void 0 : err.statusCode) === 423) {
|
|
579
|
-
var _err$
|
|
731
|
+
var _err$body24;
|
|
580
732
|
_metrics.default.sendBehavioralMetric(_constants2.default.VERIFY_CAPTCHA_ERROR, {
|
|
581
733
|
reason: err.message,
|
|
582
734
|
stack: err.stack
|
|
583
735
|
});
|
|
584
|
-
throw new MeetingInfoV2CaptchaError((_err$
|
|
736
|
+
throw new MeetingInfoV2CaptchaError((_err$body24 = err.body) === null || _err$body24 === void 0 ? void 0 : _err$body24.code, {
|
|
585
737
|
captchaId: err.body.captchaID,
|
|
586
738
|
verificationImageURL: err.body.verificationImageURL,
|
|
587
739
|
verificationAudioURL: err.body.verificationAudioURL,
|
|
@@ -596,11 +748,11 @@ var MeetingInfoV2 = exports.default = /*#__PURE__*/function () {
|
|
|
596
748
|
}));
|
|
597
749
|
case 28:
|
|
598
750
|
case "end":
|
|
599
|
-
return
|
|
751
|
+
return _context4.stop();
|
|
600
752
|
}
|
|
601
|
-
},
|
|
753
|
+
}, _callee4, this);
|
|
602
754
|
}));
|
|
603
|
-
function fetchMeetingInfo(
|
|
755
|
+
function fetchMeetingInfo(_x6) {
|
|
604
756
|
return _fetchMeetingInfo.apply(this, arguments);
|
|
605
757
|
}
|
|
606
758
|
return fetchMeetingInfo;
|