@webex/plugin-meetings 3.10.0-next.9 → 3.10.0-webex-services-ready.1
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/constants.js +11 -3
- package/dist/constants.js.map +1 -1
- package/dist/hashTree/constants.js +20 -0
- package/dist/hashTree/constants.js.map +1 -0
- package/dist/hashTree/hashTree.js +515 -0
- package/dist/hashTree/hashTree.js.map +1 -0
- package/dist/hashTree/hashTreeParser.js +1266 -0
- package/dist/hashTree/hashTreeParser.js.map +1 -0
- package/dist/hashTree/types.js +21 -0
- package/dist/hashTree/types.js.map +1 -0
- package/dist/hashTree/utils.js +48 -0
- package/dist/hashTree/utils.js.map +1 -0
- package/dist/interpretation/index.js +1 -1
- package/dist/interpretation/siLanguage.js +1 -1
- package/dist/locus-info/index.js +511 -48
- package/dist/locus-info/index.js.map +1 -1
- package/dist/locus-info/types.js +7 -0
- package/dist/locus-info/types.js.map +1 -0
- package/dist/meeting/index.js +41 -15
- package/dist/meeting/index.js.map +1 -1
- package/dist/meeting/util.js +1 -0
- package/dist/meeting/util.js.map +1 -1
- package/dist/meetings/index.js +112 -70
- package/dist/meetings/index.js.map +1 -1
- package/dist/metrics/constants.js +3 -1
- package/dist/metrics/constants.js.map +1 -1
- package/dist/reachability/clusterReachability.js +44 -358
- package/dist/reachability/clusterReachability.js.map +1 -1
- package/dist/reachability/reachability.types.js +14 -1
- package/dist/reachability/reachability.types.js.map +1 -1
- package/dist/reachability/reachabilityPeerConnection.js +445 -0
- package/dist/reachability/reachabilityPeerConnection.js.map +1 -0
- package/dist/types/constants.d.ts +26 -21
- package/dist/types/hashTree/constants.d.ts +8 -0
- package/dist/types/hashTree/hashTree.d.ts +129 -0
- package/dist/types/hashTree/hashTreeParser.d.ts +260 -0
- package/dist/types/hashTree/types.d.ts +25 -0
- package/dist/types/hashTree/utils.d.ts +9 -0
- package/dist/types/locus-info/index.d.ts +91 -42
- package/dist/types/locus-info/types.d.ts +46 -0
- package/dist/types/meeting/index.d.ts +22 -9
- package/dist/types/meetings/index.d.ts +9 -2
- package/dist/types/metrics/constants.d.ts +2 -0
- package/dist/types/reachability/clusterReachability.d.ts +10 -88
- package/dist/types/reachability/reachability.types.d.ts +12 -1
- package/dist/types/reachability/reachabilityPeerConnection.d.ts +111 -0
- package/dist/webinar/index.js +1 -1
- package/package.json +22 -21
- package/src/constants.ts +13 -1
- package/src/hashTree/constants.ts +9 -0
- package/src/hashTree/hashTree.ts +463 -0
- package/src/hashTree/hashTreeParser.ts +1161 -0
- package/src/hashTree/types.ts +30 -0
- package/src/hashTree/utils.ts +42 -0
- package/src/locus-info/index.ts +556 -85
- package/src/locus-info/types.ts +48 -0
- package/src/meeting/index.ts +58 -26
- package/src/meeting/util.ts +1 -0
- package/src/meetings/index.ts +104 -51
- package/src/metrics/constants.ts +2 -0
- package/src/reachability/clusterReachability.ts +50 -347
- package/src/reachability/reachability.types.ts +15 -1
- package/src/reachability/reachabilityPeerConnection.ts +416 -0
- package/test/unit/spec/hashTree/hashTree.ts +655 -0
- package/test/unit/spec/hashTree/hashTreeParser.ts +1532 -0
- package/test/unit/spec/hashTree/utils.ts +103 -0
- package/test/unit/spec/locus-info/index.js +667 -1
- package/test/unit/spec/meeting/index.js +91 -20
- package/test/unit/spec/meeting/utils.js +77 -0
- package/test/unit/spec/meetings/index.js +71 -26
- package/test/unit/spec/reachability/clusterReachability.ts +281 -138
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["types.ts"],"sourcesContent":["import {HtMeta} from '../hashTree/types';\n\nexport type LocusFullState = {\n active: boolean;\n count: number;\n lastActive: string;\n locked: boolean;\n sessionId: string;\n seessionIds: string[];\n startTime: number;\n state: string;\n type: string;\n};\n\nexport type LocusDTO = {\n controls?: any;\n fullState?: LocusFullState;\n host?: {\n id: string;\n incomingCallProtocols: any[];\n isExternal: boolean;\n name: string;\n orgId: string;\n };\n htMeta?: HtMeta;\n info?: any;\n jsSdkMeta?: {\n removedParticipantIds: string[]; // list of ids of participants that are removed in the last update\n };\n links?: any;\n mediaShares?: any[];\n meetings?: any[];\n participants: any[];\n replaces?: any[];\n self?: any;\n sequence?: {\n dirtyParticipants: number;\n entries: number[];\n rangeEnd: number;\n rangeStart: number;\n sequenceHash: number;\n sessionToken: string;\n since: string;\n totalParticipants: number;\n };\n syncUrl?: string;\n url?: string;\n};\n"],"mappings":"","ignoreList":[]}
|
package/dist/meeting/index.js
CHANGED
|
@@ -560,6 +560,18 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
560
560
|
(0, _defineProperty3.default)(_this, "uploadLogsTimer", void 0);
|
|
561
561
|
(0, _defineProperty3.default)(_this, "logUploadIntervalIndex", void 0);
|
|
562
562
|
(0, _defineProperty3.default)(_this, "mediaServerIp", void 0);
|
|
563
|
+
/** Handles Locus LLM events
|
|
564
|
+
*
|
|
565
|
+
* @param {LocusLLMEvent} event - The Locus LLM event to process
|
|
566
|
+
* @returns {void}
|
|
567
|
+
*/
|
|
568
|
+
(0, _defineProperty3.default)(_this, "processLocusLLMEvent", function (event) {
|
|
569
|
+
if (event.data.eventType === _constants.LOCUSEVENT.HASH_TREE_DATA_UPDATED) {
|
|
570
|
+
_this.locusInfo.parse(_this, event.data);
|
|
571
|
+
} else {
|
|
572
|
+
_loggerProxy.default.logger.warn("Meeting:index#processLocusLLMEvent --> Unknown event type: ".concat(event.data.eventType));
|
|
573
|
+
}
|
|
574
|
+
});
|
|
563
575
|
/**
|
|
564
576
|
* Callback called when a relay event is received from meeting LLM Connection
|
|
565
577
|
* @param {RelayEvent} e Event object coming from LLM Connection
|
|
@@ -1425,6 +1437,8 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
1425
1437
|
|
|
1426
1438
|
// @ts-ignore - fix types
|
|
1427
1439
|
_this.webex.internal.llm.off('event:relay.event', _this.processRelayEvent);
|
|
1440
|
+
// @ts-ignore - Fix type
|
|
1441
|
+
_this.webex.internal.llm.off(_constants.LOCUS_LLM_EVENT, _this.processLocusLLMEvent);
|
|
1428
1442
|
});
|
|
1429
1443
|
/**
|
|
1430
1444
|
* starts keepAlives being sent
|
|
@@ -5000,13 +5014,15 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
5000
5014
|
}
|
|
5001
5015
|
|
|
5002
5016
|
/**
|
|
5003
|
-
* Set the locus info the class instance
|
|
5004
|
-
*
|
|
5005
|
-
*
|
|
5006
|
-
* @param {
|
|
5007
|
-
* @param {
|
|
5008
|
-
* @param {String}
|
|
5009
|
-
* @param {
|
|
5017
|
+
* Set the locus info the class instance. Should be called with the parsed locus
|
|
5018
|
+
* we got in the join response.
|
|
5019
|
+
*
|
|
5020
|
+
* @param {Object} data
|
|
5021
|
+
* @param {Array} data.mediaConnections
|
|
5022
|
+
* @param {String} data.locusUrl
|
|
5023
|
+
* @param {String} data.locusId
|
|
5024
|
+
* @param {String} data.mediaId
|
|
5025
|
+
* @param {Object} data.host
|
|
5010
5026
|
* @todo change name to genertic parser
|
|
5011
5027
|
* @returns {undefined}
|
|
5012
5028
|
* @private
|
|
@@ -5014,18 +5030,22 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
5014
5030
|
*/
|
|
5015
5031
|
}, {
|
|
5016
5032
|
key: "setLocus",
|
|
5017
|
-
value: function setLocus(
|
|
5018
|
-
var mtgLocus =
|
|
5033
|
+
value: function setLocus(data) {
|
|
5034
|
+
var mtgLocus = data.locus;
|
|
5019
5035
|
|
|
5020
5036
|
// LocusInfo object saves the locus object
|
|
5021
5037
|
// this.locus = mtgLocus;
|
|
5022
|
-
this.mediaConnections =
|
|
5023
|
-
this.locusUrl =
|
|
5024
|
-
this.locusId =
|
|
5025
|
-
this.selfId =
|
|
5026
|
-
this.mediaId =
|
|
5038
|
+
this.mediaConnections = data.mediaConnections;
|
|
5039
|
+
this.locusUrl = data.locusUrl;
|
|
5040
|
+
this.locusId = data.locusId;
|
|
5041
|
+
this.selfId = data.selfId;
|
|
5042
|
+
this.mediaId = data.mediaId;
|
|
5027
5043
|
this.hostId = mtgLocus.host ? mtgLocus.host.id : this.hostId;
|
|
5028
|
-
this.locusInfo.initialSetup(
|
|
5044
|
+
this.locusInfo.initialSetup({
|
|
5045
|
+
trigger: 'join-response',
|
|
5046
|
+
locus: mtgLocus,
|
|
5047
|
+
dataSets: data.dataSets
|
|
5048
|
+
});
|
|
5029
5049
|
}
|
|
5030
5050
|
|
|
5031
5051
|
/**
|
|
@@ -6499,6 +6519,8 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
6499
6519
|
case 2:
|
|
6500
6520
|
// @ts-ignore - Fix type
|
|
6501
6521
|
this.webex.internal.llm.off('event:relay.event', this.processRelayEvent);
|
|
6522
|
+
// @ts-ignore - Fix type
|
|
6523
|
+
this.webex.internal.llm.off(_constants.LOCUS_LLM_EVENT, this.processLocusLLMEvent);
|
|
6502
6524
|
case 3:
|
|
6503
6525
|
if (isJoined) {
|
|
6504
6526
|
_context18.next = 4;
|
|
@@ -6511,6 +6533,10 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
6511
6533
|
_this35.webex.internal.llm.off('event:relay.event', _this35.processRelayEvent);
|
|
6512
6534
|
// @ts-ignore - Fix type
|
|
6513
6535
|
_this35.webex.internal.llm.on('event:relay.event', _this35.processRelayEvent);
|
|
6536
|
+
// @ts-ignore - Fix type
|
|
6537
|
+
_this35.webex.internal.llm.off(_constants.LOCUS_LLM_EVENT, _this35.processLocusLLMEvent);
|
|
6538
|
+
// @ts-ignore - Fix type
|
|
6539
|
+
_this35.webex.internal.llm.on(_constants.LOCUS_LLM_EVENT, _this35.processLocusLLMEvent);
|
|
6514
6540
|
_loggerProxy.default.logger.info('Meeting:index#updateLLMConnection --> enabled to receive relay events!');
|
|
6515
6541
|
return _promise.default.resolve(registerAndConnectResult);
|
|
6516
6542
|
}));
|