@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.
Files changed (99) hide show
  1. package/dist/breakouts/breakout.js +1 -1
  2. package/dist/breakouts/index.js +1 -1
  3. package/dist/config.js +5 -1
  4. package/dist/config.js.map +1 -1
  5. package/dist/hashTree/hashTree.js +18 -0
  6. package/dist/hashTree/hashTree.js.map +1 -1
  7. package/dist/hashTree/hashTreeParser.js +603 -266
  8. package/dist/hashTree/hashTreeParser.js.map +1 -1
  9. package/dist/hashTree/types.js +4 -2
  10. package/dist/hashTree/types.js.map +1 -1
  11. package/dist/hashTree/utils.js +10 -0
  12. package/dist/hashTree/utils.js.map +1 -1
  13. package/dist/index.js +2 -1
  14. package/dist/index.js.map +1 -1
  15. package/dist/interceptors/constant.js +12 -0
  16. package/dist/interceptors/constant.js.map +1 -0
  17. package/dist/interceptors/dataChannelAuthToken.js +233 -0
  18. package/dist/interceptors/dataChannelAuthToken.js.map +1 -0
  19. package/dist/interceptors/index.js +7 -0
  20. package/dist/interceptors/index.js.map +1 -1
  21. package/dist/interpretation/index.js +1 -1
  22. package/dist/interpretation/siLanguage.js +1 -1
  23. package/dist/locus-info/index.js +80 -44
  24. package/dist/locus-info/index.js.map +1 -1
  25. package/dist/locus-info/types.js.map +1 -1
  26. package/dist/media/MediaConnectionAwaiter.js +57 -1
  27. package/dist/media/MediaConnectionAwaiter.js.map +1 -1
  28. package/dist/media/properties.js +4 -2
  29. package/dist/media/properties.js.map +1 -1
  30. package/dist/meeting/index.js +134 -40
  31. package/dist/meeting/index.js.map +1 -1
  32. package/dist/meeting/request.js +50 -0
  33. package/dist/meeting/request.js.map +1 -1
  34. package/dist/meeting/request.type.js.map +1 -1
  35. package/dist/meeting/util.js +108 -2
  36. package/dist/meeting/util.js.map +1 -1
  37. package/dist/meetings/index.js +76 -34
  38. package/dist/meetings/index.js.map +1 -1
  39. package/dist/metrics/constants.js +2 -1
  40. package/dist/metrics/constants.js.map +1 -1
  41. package/dist/multistream/mediaRequestManager.js +1 -1
  42. package/dist/multistream/mediaRequestManager.js.map +1 -1
  43. package/dist/multistream/remoteMediaManager.js +11 -0
  44. package/dist/multistream/remoteMediaManager.js.map +1 -1
  45. package/dist/reactions/reactions.type.js.map +1 -1
  46. package/dist/types/config.d.ts +3 -0
  47. package/dist/types/hashTree/hashTree.d.ts +7 -0
  48. package/dist/types/hashTree/hashTreeParser.d.ts +83 -12
  49. package/dist/types/hashTree/types.d.ts +3 -0
  50. package/dist/types/hashTree/utils.d.ts +6 -0
  51. package/dist/types/interceptors/constant.d.ts +5 -0
  52. package/dist/types/interceptors/dataChannelAuthToken.d.ts +35 -0
  53. package/dist/types/interceptors/index.d.ts +2 -1
  54. package/dist/types/locus-info/index.d.ts +9 -2
  55. package/dist/types/locus-info/types.d.ts +1 -0
  56. package/dist/types/media/MediaConnectionAwaiter.d.ts +10 -1
  57. package/dist/types/media/properties.d.ts +2 -1
  58. package/dist/types/meeting/index.d.ts +27 -5
  59. package/dist/types/meeting/request.d.ts +16 -1
  60. package/dist/types/meeting/request.type.d.ts +5 -0
  61. package/dist/types/meeting/util.d.ts +28 -0
  62. package/dist/types/meetings/index.d.ts +3 -1
  63. package/dist/types/metrics/constants.d.ts +1 -0
  64. package/dist/types/reactions/reactions.type.d.ts +1 -0
  65. package/dist/webinar/index.js +1 -1
  66. package/package.json +22 -22
  67. package/src/config.ts +3 -0
  68. package/src/hashTree/hashTree.ts +17 -0
  69. package/src/hashTree/hashTreeParser.ts +525 -188
  70. package/src/hashTree/types.ts +4 -0
  71. package/src/hashTree/utils.ts +9 -0
  72. package/src/index.ts +6 -1
  73. package/src/interceptors/constant.ts +6 -0
  74. package/src/interceptors/dataChannelAuthToken.ts +142 -0
  75. package/src/interceptors/index.ts +2 -1
  76. package/src/locus-info/index.ts +110 -35
  77. package/src/locus-info/types.ts +1 -0
  78. package/src/media/MediaConnectionAwaiter.ts +41 -1
  79. package/src/media/properties.ts +3 -1
  80. package/src/meeting/index.ts +101 -22
  81. package/src/meeting/request.ts +42 -0
  82. package/src/meeting/request.type.ts +6 -0
  83. package/src/meeting/util.ts +132 -1
  84. package/src/meetings/index.ts +88 -7
  85. package/src/metrics/constants.ts +1 -0
  86. package/src/multistream/mediaRequestManager.ts +1 -1
  87. package/src/multistream/remoteMediaManager.ts +13 -0
  88. package/src/reactions/reactions.type.ts +1 -0
  89. package/test/unit/spec/hashTree/hashTree.ts +66 -0
  90. package/test/unit/spec/hashTree/hashTreeParser.ts +1594 -162
  91. package/test/unit/spec/interceptors/dataChannelAuthToken.ts +141 -0
  92. package/test/unit/spec/locus-info/index.js +173 -45
  93. package/test/unit/spec/media/MediaConnectionAwaiter.ts +41 -1
  94. package/test/unit/spec/media/properties.ts +12 -3
  95. package/test/unit/spec/meeting/index.js +414 -62
  96. package/test/unit/spec/meeting/request.js +64 -0
  97. package/test/unit/spec/meeting/utils.js +294 -22
  98. package/test/unit/spec/meetings/index.js +550 -10
  99. 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.1",
47
- "@webex/test-helper-chai": "3.10.0-next.1",
48
- "@webex/test-helper-mocha": "3.10.0-next.1",
49
- "@webex/test-helper-mock-webex": "3.10.0-next.1",
50
- "@webex/test-helper-retry": "3.10.0-next.1",
51
- "@webex/test-helper-test-users": "3.10.0-next.1",
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.10.0-next.1",
64
- "@webex/event-dictionary-ts": "^1.0.1930",
65
- "@webex/internal-media-core": "2.22.0",
66
- "@webex/internal-plugin-conversation": "3.11.0-next.1",
67
- "@webex/internal-plugin-device": "3.11.0-next.1",
68
- "@webex/internal-plugin-llm": "3.11.0-next.1",
69
- "@webex/internal-plugin-mercury": "3.11.0-next.1",
70
- "@webex/internal-plugin-metrics": "3.11.0-next.1",
71
- "@webex/internal-plugin-support": "3.11.0-next.1",
72
- "@webex/internal-plugin-user": "3.11.0-next.1",
73
- "@webex/internal-plugin-voicea": "3.11.0-next.1",
74
- "@webex/media-helpers": "3.11.0-next.1",
75
- "@webex/plugin-people": "3.11.0-next.1",
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.1",
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.3"
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
  };
@@ -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).