@webex/plugin-meetings 3.12.0-llmrefactor.11 → 3.12.0-llmrefactor.13
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/aiEnableRequest/index.js +1 -1
- 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/locus-info/index.js +200 -71
- package/dist/locus-info/index.js.map +1 -1
- package/dist/meetings/index.js +20 -8
- package/dist/meetings/index.js.map +1 -1
- package/dist/types/locus-info/index.d.ts +39 -1
- package/dist/types/meetings/index.d.ts +2 -1
- package/dist/webinar/index.js +1 -1
- package/package.json +16 -16
- package/src/locus-info/index.ts +135 -35
- package/src/meetings/index.ts +32 -15
- package/test/unit/spec/locus-info/index.js +290 -0
- package/test/unit/spec/meetings/index.js +71 -24
package/dist/meetings/index.js
CHANGED
|
@@ -730,8 +730,13 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
730
730
|
|
|
731
731
|
// @ts-ignore
|
|
732
732
|
this.webex.internal.mercury.on(_constants.ONLINE, function () {
|
|
733
|
+
// Fire-and-forget sync on socket recovery. Unlike the reconnection manager (which awaits and
|
|
734
|
+
// retries), nothing consumes this promise, so catch its rejection to avoid an unhandled
|
|
735
|
+
// promise rejection (a transient guest classic-sync failure would otherwise crash Node hosts).
|
|
733
736
|
_this3.syncMeetings({
|
|
734
737
|
keepOnlyLocusMeetings: false
|
|
738
|
+
}).catch(function (error) {
|
|
739
|
+
_loggerProxy.default.logger.warn("Meetings:index#listenForEvents --> syncMeetings after ONLINE event failed: ".concat(error));
|
|
735
740
|
});
|
|
736
741
|
});
|
|
737
742
|
|
|
@@ -1807,7 +1812,8 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
1807
1812
|
}
|
|
1808
1813
|
|
|
1809
1814
|
/**
|
|
1810
|
-
* Syncs all the meetings from server.
|
|
1815
|
+
* Syncs all the meetings from server. For unverified guests it skips the getActiveMeetings() call
|
|
1816
|
+
* (which Locus rejects for them) and instead resyncs each meeting individually via LocusInfo#sync.
|
|
1811
1817
|
* @param {boolean} keepOnlyLocusMeetings - whether the sync should keep only locus meetings or any other meeting in meetingCollection
|
|
1812
1818
|
* @returns {Promise<void>}
|
|
1813
1819
|
* @public
|
|
@@ -1823,6 +1829,7 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
1823
1829
|
keepOnlyLocusMeetings,
|
|
1824
1830
|
_ref5$skipHashTreeSyn,
|
|
1825
1831
|
skipHashTreeSync,
|
|
1832
|
+
isUnverifiedGuest,
|
|
1826
1833
|
locusArray,
|
|
1827
1834
|
activeLocusUrl,
|
|
1828
1835
|
lociToUpdate,
|
|
@@ -1841,11 +1848,16 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
1841
1848
|
while (1) switch (_context6.prev = _context6.next) {
|
|
1842
1849
|
case 0:
|
|
1843
1850
|
_ref5 = _args6.length > 0 && _args6[0] !== undefined ? _args6[0] : {}, _ref5$keepOnlyLocusMe = _ref5.keepOnlyLocusMeetings, keepOnlyLocusMeetings = _ref5$keepOnlyLocusMe === void 0 ? true : _ref5$keepOnlyLocusMe, _ref5$skipHashTreeSyn = _ref5.skipHashTreeSync, skipHashTreeSync = _ref5$skipHashTreeSyn === void 0 ? false : _ref5$skipHashTreeSyn;
|
|
1844
|
-
|
|
1851
|
+
// @ts-ignore
|
|
1852
|
+
isUnverifiedGuest = Boolean(this.webex.credentials.isUnverifiedGuest);
|
|
1853
|
+
if (!isUnverifiedGuest) {
|
|
1845
1854
|
_context6.next = 1;
|
|
1846
1855
|
break;
|
|
1847
1856
|
}
|
|
1848
1857
|
_loggerProxy.default.logger.info('Meetings:index#syncMeetings --> user is unverified guest, skipping calling Locus for meeting sync');
|
|
1858
|
+
|
|
1859
|
+
// Locus rejects getActiveMeetings() for unverified guests, so the per-meeting sync below
|
|
1860
|
+
// (with canSyncClassicLocus enabled) resyncs each classic meeting individually instead.
|
|
1849
1861
|
_context6.next = 7;
|
|
1850
1862
|
break;
|
|
1851
1863
|
case 1:
|
|
@@ -1920,17 +1932,17 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
1920
1932
|
_loggerProxy.default.logger.error("Meetings:index#syncMeetings --> failed to sync meetings, ".concat(_t3));
|
|
1921
1933
|
throw _t3;
|
|
1922
1934
|
case 7:
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
break;
|
|
1926
|
-
}
|
|
1927
|
-
// Trigger hash tree syncs for all remaining meetings
|
|
1935
|
+
// Resync each remaining meeting via LocusInfo#sync, which routes to hash tree or classic. For
|
|
1936
|
+
// signed-in users classic meetings were already synced above, so only the hash tree sync runs.
|
|
1928
1937
|
remainingMeetings = this.meetingCollection.getAll();
|
|
1929
1938
|
syncPromises = [];
|
|
1930
1939
|
for (_i2 = 0, _arr = (0, _values.default)(remainingMeetings); _i2 < _arr.length; _i2++) {
|
|
1931
1940
|
meeting = _arr[_i2];
|
|
1932
1941
|
if (meeting.locusInfo) {
|
|
1933
|
-
syncPromises.push(meeting.locusInfo.
|
|
1942
|
+
syncPromises.push(meeting.locusInfo.sync(meeting, {
|
|
1943
|
+
canSyncClassicLocus: isUnverifiedGuest,
|
|
1944
|
+
canSyncHashTree: !skipHashTreeSync
|
|
1945
|
+
}));
|
|
1934
1946
|
}
|
|
1935
1947
|
}
|
|
1936
1948
|
if (!(syncPromises.length > 0)) {
|