@webex/plugin-meetings 3.11.0-next.3 → 3.11.0-next.30
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/config.js +5 -1
- package/dist/config.js.map +1 -1
- package/dist/hashTree/hashTree.js +18 -0
- package/dist/hashTree/hashTree.js.map +1 -1
- package/dist/hashTree/hashTreeParser.js +603 -266
- package/dist/hashTree/hashTreeParser.js.map +1 -1
- package/dist/hashTree/types.js +4 -2
- package/dist/hashTree/types.js.map +1 -1
- package/dist/hashTree/utils.js +10 -0
- package/dist/hashTree/utils.js.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/interceptors/constant.js +12 -0
- package/dist/interceptors/constant.js.map +1 -0
- package/dist/interceptors/dataChannelAuthToken.js +233 -0
- package/dist/interceptors/dataChannelAuthToken.js.map +1 -0
- package/dist/interceptors/index.js +7 -0
- package/dist/interceptors/index.js.map +1 -1
- package/dist/interpretation/index.js +1 -1
- package/dist/interpretation/siLanguage.js +1 -1
- package/dist/locus-info/index.js +80 -44
- package/dist/locus-info/index.js.map +1 -1
- package/dist/locus-info/types.js.map +1 -1
- package/dist/media/MediaConnectionAwaiter.js +57 -1
- package/dist/media/MediaConnectionAwaiter.js.map +1 -1
- package/dist/media/properties.js +4 -2
- package/dist/media/properties.js.map +1 -1
- package/dist/meeting/index.js +134 -40
- package/dist/meeting/index.js.map +1 -1
- package/dist/meeting/request.js +50 -0
- package/dist/meeting/request.js.map +1 -1
- package/dist/meeting/request.type.js.map +1 -1
- package/dist/meeting/util.js +108 -2
- package/dist/meeting/util.js.map +1 -1
- package/dist/meetings/index.js +76 -34
- 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/multistream/mediaRequestManager.js +1 -1
- package/dist/multistream/mediaRequestManager.js.map +1 -1
- package/dist/multistream/remoteMediaManager.js +11 -0
- package/dist/multistream/remoteMediaManager.js.map +1 -1
- package/dist/reactions/reactions.type.js.map +1 -1
- package/dist/types/config.d.ts +3 -0
- package/dist/types/hashTree/hashTree.d.ts +7 -0
- package/dist/types/hashTree/hashTreeParser.d.ts +83 -12
- package/dist/types/hashTree/types.d.ts +3 -0
- package/dist/types/hashTree/utils.d.ts +6 -0
- package/dist/types/interceptors/constant.d.ts +5 -0
- package/dist/types/interceptors/dataChannelAuthToken.d.ts +35 -0
- package/dist/types/interceptors/index.d.ts +2 -1
- package/dist/types/locus-info/index.d.ts +9 -2
- package/dist/types/locus-info/types.d.ts +1 -0
- package/dist/types/media/MediaConnectionAwaiter.d.ts +10 -1
- package/dist/types/media/properties.d.ts +2 -1
- package/dist/types/meeting/index.d.ts +27 -5
- package/dist/types/meeting/request.d.ts +16 -1
- package/dist/types/meeting/request.type.d.ts +5 -0
- package/dist/types/meeting/util.d.ts +28 -0
- package/dist/types/meetings/index.d.ts +3 -1
- package/dist/types/metrics/constants.d.ts +1 -0
- package/dist/types/reactions/reactions.type.d.ts +1 -0
- package/dist/webinar/index.js +1 -1
- package/package.json +22 -22
- package/src/config.ts +3 -0
- package/src/hashTree/hashTree.ts +17 -0
- package/src/hashTree/hashTreeParser.ts +525 -188
- package/src/hashTree/types.ts +4 -0
- package/src/hashTree/utils.ts +9 -0
- package/src/index.ts +6 -1
- package/src/interceptors/constant.ts +6 -0
- package/src/interceptors/dataChannelAuthToken.ts +142 -0
- package/src/interceptors/index.ts +2 -1
- package/src/locus-info/index.ts +110 -35
- package/src/locus-info/types.ts +1 -0
- package/src/media/MediaConnectionAwaiter.ts +41 -1
- package/src/media/properties.ts +3 -1
- package/src/meeting/index.ts +101 -22
- package/src/meeting/request.ts +42 -0
- package/src/meeting/request.type.ts +6 -0
- package/src/meeting/util.ts +132 -1
- package/src/meetings/index.ts +88 -7
- package/src/metrics/constants.ts +1 -0
- package/src/multistream/mediaRequestManager.ts +1 -1
- package/src/multistream/remoteMediaManager.ts +13 -0
- package/src/reactions/reactions.type.ts +1 -0
- package/test/unit/spec/hashTree/hashTree.ts +66 -0
- package/test/unit/spec/hashTree/hashTreeParser.ts +1594 -162
- package/test/unit/spec/interceptors/dataChannelAuthToken.ts +141 -0
- package/test/unit/spec/locus-info/index.js +173 -45
- package/test/unit/spec/media/MediaConnectionAwaiter.ts +41 -1
- package/test/unit/spec/media/properties.ts +12 -3
- package/test/unit/spec/meeting/index.js +414 -62
- package/test/unit/spec/meeting/request.js +64 -0
- package/test/unit/spec/meeting/utils.js +294 -22
- package/test/unit/spec/meetings/index.js +550 -10
- package/test/unit/spec/multistream/remoteMediaManager.ts +30 -0
package/package.json
CHANGED
|
@@ -41,14 +41,15 @@
|
|
|
41
41
|
"@types/jsdom": "^21",
|
|
42
42
|
"@webex/babel-config-legacy": "0.0.0",
|
|
43
43
|
"@webex/eslint-config-legacy": "0.0.0",
|
|
44
|
+
"@webex/event-dictionary-ts": "^1.0.2073",
|
|
44
45
|
"@webex/jest-config-legacy": "0.0.0",
|
|
45
46
|
"@webex/legacy-tools": "0.0.0",
|
|
46
|
-
"@webex/plugin-rooms": "3.11.0-next.
|
|
47
|
-
"@webex/test-helper-chai": "3.
|
|
48
|
-
"@webex/test-helper-mocha": "3.
|
|
49
|
-
"@webex/test-helper-mock-webex": "3.
|
|
50
|
-
"@webex/test-helper-retry": "3.
|
|
51
|
-
"@webex/test-helper-test-users": "3.
|
|
47
|
+
"@webex/plugin-rooms": "3.11.0-next.7",
|
|
48
|
+
"@webex/test-helper-chai": "3.11.0-next.1",
|
|
49
|
+
"@webex/test-helper-mocha": "3.11.0-next.1",
|
|
50
|
+
"@webex/test-helper-mock-webex": "3.11.0-next.1",
|
|
51
|
+
"@webex/test-helper-retry": "3.11.0-next.1",
|
|
52
|
+
"@webex/test-helper-test-users": "3.11.0-next.1",
|
|
52
53
|
"chai": "^4.3.4",
|
|
53
54
|
"chai-as-promised": "^7.1.1",
|
|
54
55
|
"eslint": "^8.24.0",
|
|
@@ -60,23 +61,22 @@
|
|
|
60
61
|
"typescript": "^4.7.4"
|
|
61
62
|
},
|
|
62
63
|
"dependencies": {
|
|
63
|
-
"@webex/common": "3.
|
|
64
|
-
"@webex/
|
|
65
|
-
"@webex/internal-
|
|
66
|
-
"@webex/internal-plugin-
|
|
67
|
-
"@webex/internal-plugin-
|
|
68
|
-
"@webex/internal-plugin-
|
|
69
|
-
"@webex/internal-plugin-
|
|
70
|
-
"@webex/internal-plugin-
|
|
71
|
-
"@webex/internal-plugin-
|
|
72
|
-
"@webex/internal-plugin-
|
|
73
|
-
"@webex/
|
|
74
|
-
"@webex/
|
|
75
|
-
"@webex/plugin-
|
|
76
|
-
"@webex/plugin-rooms": "3.11.0-next.1",
|
|
64
|
+
"@webex/common": "3.11.0-next.1",
|
|
65
|
+
"@webex/internal-media-core": "2.22.1",
|
|
66
|
+
"@webex/internal-plugin-conversation": "3.11.0-next.7",
|
|
67
|
+
"@webex/internal-plugin-device": "3.11.0-next.6",
|
|
68
|
+
"@webex/internal-plugin-llm": "3.11.0-next.8",
|
|
69
|
+
"@webex/internal-plugin-mercury": "3.11.0-next.7",
|
|
70
|
+
"@webex/internal-plugin-metrics": "3.11.0-next.6",
|
|
71
|
+
"@webex/internal-plugin-support": "3.11.0-next.7",
|
|
72
|
+
"@webex/internal-plugin-user": "3.11.0-next.6",
|
|
73
|
+
"@webex/internal-plugin-voicea": "3.11.0-next.8",
|
|
74
|
+
"@webex/media-helpers": "3.11.0-next.3",
|
|
75
|
+
"@webex/plugin-people": "3.11.0-next.7",
|
|
76
|
+
"@webex/plugin-rooms": "3.11.0-next.7",
|
|
77
77
|
"@webex/ts-sdp": "^1.8.1",
|
|
78
78
|
"@webex/web-capabilities": "^1.9.0",
|
|
79
|
-
"@webex/webex-core": "3.11.0-next.
|
|
79
|
+
"@webex/webex-core": "3.11.0-next.6",
|
|
80
80
|
"ampersand-collection": "^2.0.2",
|
|
81
81
|
"bowser": "^2.11.0",
|
|
82
82
|
"btoa": "^1.2.1",
|
|
@@ -93,5 +93,5 @@
|
|
|
93
93
|
"//": [
|
|
94
94
|
"TODO: upgrade jwt-decode when moving to node 18"
|
|
95
95
|
],
|
|
96
|
-
"version": "3.11.0-next.
|
|
96
|
+
"version": "3.11.0-next.30"
|
|
97
97
|
}
|
package/src/config.ts
CHANGED
|
@@ -101,5 +101,8 @@ export default {
|
|
|
101
101
|
stopIceGatheringAfterFirstRelayCandidate: false,
|
|
102
102
|
enableAudioTwccForMultistream: false,
|
|
103
103
|
enablePerUdpUrlReachability: false, // true: separate peer connection per each UDP URL; false: single peer connection for all URLs
|
|
104
|
+
locus: {
|
|
105
|
+
excludedDataSets: ['attendees'], // attendees data set only applies to webinar attendees and we never really need that
|
|
106
|
+
},
|
|
104
107
|
},
|
|
105
108
|
};
|
package/src/hashTree/hashTree.ts
CHANGED
|
@@ -371,6 +371,23 @@ class HashTree {
|
|
|
371
371
|
return items;
|
|
372
372
|
}
|
|
373
373
|
|
|
374
|
+
/**
|
|
375
|
+
* Retrieves the version of a specific item by its id and type.
|
|
376
|
+
* @param {number} id The ID of the item.
|
|
377
|
+
* @param {ObjectType} type The type of the item.
|
|
378
|
+
* @returns {number | undefined} The version of the item if found, undefined otherwise.
|
|
379
|
+
*/
|
|
380
|
+
getItemVersion(id: number, type: ObjectType): number | undefined {
|
|
381
|
+
if (this.numLeaves === 0) {
|
|
382
|
+
return undefined;
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
const index = id % this.numLeaves;
|
|
386
|
+
const item = this.leaves[index]?.[type]?.[id];
|
|
387
|
+
|
|
388
|
+
return item?.version;
|
|
389
|
+
}
|
|
390
|
+
|
|
374
391
|
/**
|
|
375
392
|
* Resizes the HashTree to have a new number of leaf nodes, redistributing all existing items.
|
|
376
393
|
* @param {number} newNumLeaves The new number of leaf nodes (must be 0 or a power of 2).
|