@webex/plugin-meetings 3.9.0-next.10 → 3.9.0-next.11
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 +3 -3
- package/dist/meeting/index.js.map +1 -1
- package/dist/meeting-info/meeting-info-v2.js +29 -21
- package/dist/meeting-info/meeting-info-v2.js.map +1 -1
- package/dist/meetings/index.js +31 -25
- package/dist/meetings/index.js.map +1 -1
- package/dist/types/meeting/index.d.ts +1 -0
- package/dist/types/meeting-info/meeting-info-v2.d.ts +6 -3
- package/dist/types/meetings/index.d.ts +3 -1
- package/dist/webinar/index.js +1 -1
- package/package.json +1 -1
- package/src/meeting/index.ts +5 -1
- package/src/meeting-info/meeting-info-v2.ts +24 -5
- package/src/meetings/index.ts +9 -3
- package/test/unit/spec/meeting/index.js +6 -0
- package/test/unit/spec/meeting-info/meetinginfov2.js +8 -3
- package/test/unit/spec/meetings/index.js +10 -1
package/dist/meetings/index.js
CHANGED
@@ -1248,6 +1248,7 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
1248
1248
|
* @param {Object} [meetingInfo] - Pre-fetched complete meeting info
|
1249
1249
|
* @param {String} [meetingLookupUrl] - meeting info prefetch url
|
1250
1250
|
* @param {string} sessionCorrelationId - the optional specified sessionCorrelationId (callStateForMetrics.sessionCorrelationId) can be provided instead
|
1251
|
+
* @param {String} classificationId - If space support classification, it will provide it while start instant meeting
|
1251
1252
|
* @returns {Promise<Meeting>} A new Meeting.
|
1252
1253
|
* @public
|
1253
1254
|
* @memberof Meetings
|
@@ -1265,6 +1266,7 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
1265
1266
|
var meetingInfo = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : undefined;
|
1266
1267
|
var meetingLookupUrl = arguments.length > 8 && arguments[8] !== undefined ? arguments[8] : undefined;
|
1267
1268
|
var sessionCorrelationId = arguments.length > 9 && arguments[9] !== undefined ? arguments[9] : undefined;
|
1269
|
+
var classificationId = arguments.length > 10 && arguments[10] !== undefined ? arguments[10] : undefined;
|
1268
1270
|
// Validate meeting information based on the provided destination and
|
1269
1271
|
// type. This must be performed prior to determining if the meeting is
|
1270
1272
|
// found in the collection, as we mutate the destination for hydra person
|
@@ -1315,7 +1317,7 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
1315
1317
|
// Validate if a meeting was found.
|
1316
1318
|
if (!meeting) {
|
1317
1319
|
// Create a meeting based on the normalized destination and type.
|
1318
|
-
return _this11.createMeeting(targetDest, type, useRandomDelayForInfo, infoExtraParams, callStateForMetrics, failOnMissingMeetingInfo, meetingInfo, meetingLookupUrl).then(function (createdMeeting) {
|
1320
|
+
return _this11.createMeeting(targetDest, type, useRandomDelayForInfo, infoExtraParams, callStateForMetrics, failOnMissingMeetingInfo, meetingInfo, meetingLookupUrl, classificationId).then(function (createdMeeting) {
|
1319
1321
|
// If the meeting was successfully created.
|
1320
1322
|
if (createdMeeting && createdMeeting.on) {
|
1321
1323
|
// Create a destruction event for the meeting.
|
@@ -1418,6 +1420,7 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
1418
1420
|
* @param {Boolean} failOnMissingMeetingInfo - whether to throw an error if meeting info fails to fetch (for calls that are not 1:1 or content share)
|
1419
1421
|
* @param {Object} [meetingInfo] - Pre-fetched complete meeting info
|
1420
1422
|
* @param {String} [meetingLookupUrl] - meeting info prefetch url
|
1423
|
+
* @param {String} classificationId see create()
|
1421
1424
|
* @returns {Promise} a new meeting instance complete with meeting info and destination
|
1422
1425
|
* @private
|
1423
1426
|
* @memberof Meetings
|
@@ -1434,6 +1437,7 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
1434
1437
|
failOnMissingMeetingInfo,
|
1435
1438
|
meetingInfo,
|
1436
1439
|
meetingLookupUrl,
|
1440
|
+
classificationId,
|
1437
1441
|
meeting,
|
1438
1442
|
_destination$fullStat,
|
1439
1443
|
waitingTime,
|
@@ -1457,6 +1461,7 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
1457
1461
|
failOnMissingMeetingInfo = _args3.length > 5 && _args3[5] !== undefined ? _args3[5] : false;
|
1458
1462
|
meetingInfo = _args3.length > 6 && _args3[6] !== undefined ? _args3[6] : undefined;
|
1459
1463
|
meetingLookupUrl = _args3.length > 7 && _args3[7] !== undefined ? _args3[7] : undefined;
|
1464
|
+
classificationId = _args3.length > 8 && _args3[8] !== undefined ? _args3[8] : undefined;
|
1460
1465
|
meeting = new _meeting.default({
|
1461
1466
|
// @ts-ignore
|
1462
1467
|
userId: this.webex.internal.device.userId,
|
@@ -1476,7 +1481,7 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
1476
1481
|
}, function (newMeeting) {
|
1477
1482
|
_this12.meetingCollection.set(newMeeting);
|
1478
1483
|
});
|
1479
|
-
_context3.prev =
|
1484
|
+
_context3.prev = 9;
|
1480
1485
|
// if no participant has joined the scheduled meeting (meaning meeting is not active) and we get a locusEvent,
|
1481
1486
|
// it means the meeting will start in 5-6 min. In that case, we want to fetchMeetingInfo
|
1482
1487
|
// between 5 and 2 min (random between 3 minutes) before the meeting starts
|
@@ -1493,60 +1498,61 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
1493
1498
|
isMeetingActive = !!((_destination$fullStat = destination.fullState) !== null && _destination$fullStat !== void 0 && _destination$fullStat.active); // @ts-ignore
|
1494
1499
|
enableUnifiedMeetings = this.config.experimental.enableUnifiedMeetings;
|
1495
1500
|
meetingInfoOptions = {
|
1501
|
+
classificationId: classificationId,
|
1496
1502
|
extraParams: infoExtraParams,
|
1497
1503
|
sendCAevents: !!(callStateForMetrics !== null && callStateForMetrics !== void 0 && callStateForMetrics.correlationId) // if client sends correlation id as argument of public create(), then it means that this meeting creation is part of a pre-join intent from user
|
1498
1504
|
};
|
1499
1505
|
if (!meetingInfo) {
|
1500
|
-
_context3.next =
|
1506
|
+
_context3.next = 19;
|
1501
1507
|
break;
|
1502
1508
|
}
|
1503
1509
|
meeting.injectMeetingInfo(meetingInfo, meetingInfoOptions, meetingLookupUrl);
|
1504
|
-
_context3.next =
|
1510
|
+
_context3.next = 27;
|
1505
1511
|
break;
|
1506
|
-
case
|
1512
|
+
case 19:
|
1507
1513
|
if (!(type !== _constants.DESTINATION_TYPE.ONE_ON_ONE_CALL)) {
|
1508
|
-
_context3.next =
|
1514
|
+
_context3.next = 27;
|
1509
1515
|
break;
|
1510
1516
|
}
|
1511
1517
|
if (!(enableUnifiedMeetings && !isMeetingActive && useRandomDelayForInfo && waitingTime > 0)) {
|
1512
|
-
_context3.next =
|
1518
|
+
_context3.next = 25;
|
1513
1519
|
break;
|
1514
1520
|
}
|
1515
1521
|
meeting.fetchMeetingInfoTimeoutId = setTimeout(function () {
|
1516
1522
|
return meeting.fetchMeetingInfo(meetingInfoOptions);
|
1517
1523
|
}, waitingTime);
|
1518
1524
|
meeting.parseMeetingInfo(undefined, destination);
|
1519
|
-
_context3.next =
|
1525
|
+
_context3.next = 27;
|
1520
1526
|
break;
|
1521
|
-
case
|
1522
|
-
_context3.next =
|
1527
|
+
case 25:
|
1528
|
+
_context3.next = 27;
|
1523
1529
|
return meeting.fetchMeetingInfo(meetingInfoOptions);
|
1524
|
-
case
|
1525
|
-
_context3.next =
|
1530
|
+
case 27:
|
1531
|
+
_context3.next = 39;
|
1526
1532
|
break;
|
1527
|
-
case
|
1528
|
-
_context3.prev =
|
1529
|
-
_context3.t0 = _context3["catch"](
|
1533
|
+
case 29:
|
1534
|
+
_context3.prev = 29;
|
1535
|
+
_context3.t0 = _context3["catch"](9);
|
1530
1536
|
if (!(!(_context3.t0 instanceof _captchaError.default) && !(_context3.t0 instanceof _passwordError.default) && !(_context3.t0 instanceof _permission.default) && !(_context3.t0 instanceof _joinWebinarError.default) && !(_context3.t0 instanceof _joinForbiddenError.default))) {
|
1531
|
-
_context3.next =
|
1537
|
+
_context3.next = 38;
|
1532
1538
|
break;
|
1533
1539
|
}
|
1534
1540
|
_loggerProxy.default.logger.info("Meetings:index#createMeeting --> Info Unable to fetch meeting info for ".concat(destination, "."));
|
1535
1541
|
if (!failOnMissingMeetingInfo) {
|
1536
|
-
_context3.next =
|
1542
|
+
_context3.next = 37;
|
1537
1543
|
break;
|
1538
1544
|
}
|
1539
1545
|
_loggerProxy.default.logger.info("Meetings:index#createMeeting --> Destroying meeting due to missing meeting info.");
|
1540
1546
|
// @ts-ignore
|
1541
1547
|
this.destroy(meeting, _constants.MEETING_REMOVED_REASON.MISSING_MEETING_INFO);
|
1542
1548
|
throw new _noMeetingInfo.default();
|
1543
|
-
case
|
1549
|
+
case 37:
|
1544
1550
|
// if there is no meeting info and no error should be thrown then we assume its a 1:1 call or wireless share
|
1545
1551
|
_loggerProxy.default.logger.info('Meetings:index#createMeeting --> Info assuming this destination is a 1:1 or wireless share');
|
1546
|
-
case 37:
|
1547
|
-
_loggerProxy.default.logger.debug("Meetings:index#createMeeting --> Debug ".concat(_context3.t0, " fetching /meetingInfo for creation."));
|
1548
1552
|
case 38:
|
1549
|
-
_context3.
|
1553
|
+
_loggerProxy.default.logger.debug("Meetings:index#createMeeting --> Debug ".concat(_context3.t0, " fetching /meetingInfo for creation."));
|
1554
|
+
case 39:
|
1555
|
+
_context3.prev = 39;
|
1550
1556
|
// For type LOCUS_ID we need to parse the locus object to get the information
|
1551
1557
|
// about the caller and callee
|
1552
1558
|
// Meeting Added event will be created in `handleLocusEvent`
|
@@ -1566,14 +1572,14 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
1566
1572
|
type: meetingAddedType
|
1567
1573
|
});
|
1568
1574
|
}
|
1569
|
-
return _context3.finish(
|
1570
|
-
case 41:
|
1571
|
-
return _context3.abrupt("return", meeting);
|
1575
|
+
return _context3.finish(39);
|
1572
1576
|
case 42:
|
1577
|
+
return _context3.abrupt("return", meeting);
|
1578
|
+
case 43:
|
1573
1579
|
case "end":
|
1574
1580
|
return _context3.stop();
|
1575
1581
|
}
|
1576
|
-
}, _callee3, this, [[
|
1582
|
+
}, _callee3, this, [[9, 29, 39, 42]]);
|
1577
1583
|
}));
|
1578
1584
|
function createMeeting(_x3) {
|
1579
1585
|
return _createMeeting.apply(this, arguments);
|