@webex/plugin-meetings 3.8.1-next.9 → 3.8.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.
Files changed (230) hide show
  1. package/README.md +13 -26
  2. package/dist/annotation/annotation.types.d.ts +42 -0
  3. package/dist/annotation/constants.d.ts +31 -0
  4. package/dist/annotation/index.d.ts +117 -0
  5. package/dist/breakouts/breakout.d.ts +8 -0
  6. package/dist/breakouts/breakout.js +1 -1
  7. package/dist/breakouts/collection.d.ts +5 -0
  8. package/dist/breakouts/edit-lock-error.d.ts +15 -0
  9. package/dist/breakouts/events.d.ts +8 -0
  10. package/dist/breakouts/index.d.ts +5 -0
  11. package/dist/breakouts/index.js +1 -1
  12. package/dist/breakouts/request.d.ts +22 -0
  13. package/dist/breakouts/utils.d.ts +15 -0
  14. package/dist/common/browser-detection.d.ts +9 -0
  15. package/dist/common/collection.d.ts +48 -0
  16. package/dist/common/config.d.ts +2 -0
  17. package/dist/common/errors/captcha-error.d.ts +15 -0
  18. package/dist/common/errors/intent-to-join.d.ts +16 -0
  19. package/dist/common/errors/join-meeting.d.ts +17 -0
  20. package/dist/common/errors/media.d.ts +15 -0
  21. package/dist/common/errors/no-meeting-info.d.ts +14 -0
  22. package/dist/common/errors/parameter.d.ts +15 -0
  23. package/dist/common/errors/password-error.d.ts +15 -0
  24. package/dist/common/errors/permission.d.ts +14 -0
  25. package/dist/common/errors/reclaim-host-role-error.d.ts +60 -0
  26. package/dist/common/errors/reclaim-host-role-error.js +158 -0
  27. package/dist/common/errors/reclaim-host-role-error.js.map +1 -0
  28. package/dist/common/errors/reclaim-host-role-errors.d.ts +60 -0
  29. package/dist/common/errors/reconnection-in-progress.d.ts +9 -0
  30. package/dist/common/errors/reconnection-in-progress.js +35 -0
  31. package/dist/common/errors/reconnection-in-progress.js.map +1 -0
  32. package/dist/common/errors/reconnection.d.ts +15 -0
  33. package/dist/common/errors/stats.d.ts +15 -0
  34. package/dist/common/errors/webex-errors.d.ts +81 -0
  35. package/dist/common/errors/webex-meetings-error.d.ts +20 -0
  36. package/dist/common/events/events-scope.d.ts +17 -0
  37. package/dist/common/events/events.d.ts +12 -0
  38. package/dist/common/events/trigger-proxy.d.ts +2 -0
  39. package/dist/common/events/util.d.ts +2 -0
  40. package/dist/common/logs/logger-config.d.ts +2 -0
  41. package/dist/common/logs/logger-proxy.d.ts +2 -0
  42. package/dist/common/logs/request.d.ts +34 -0
  43. package/dist/common/queue.d.ts +32 -0
  44. package/dist/config.d.ts +73 -0
  45. package/dist/constants.d.ts +952 -0
  46. package/dist/constants.js +1 -8
  47. package/dist/constants.js.map +1 -1
  48. package/dist/controls-options-manager/constants.d.ts +4 -0
  49. package/dist/controls-options-manager/enums.d.ts +5 -0
  50. package/dist/controls-options-manager/enums.js +0 -1
  51. package/dist/controls-options-manager/enums.js.map +1 -1
  52. package/dist/controls-options-manager/index.d.ts +120 -0
  53. package/dist/controls-options-manager/types.d.ts +43 -0
  54. package/dist/controls-options-manager/types.js.map +1 -1
  55. package/dist/controls-options-manager/util.d.ts +7 -0
  56. package/dist/controls-options-manager/util.js +0 -26
  57. package/dist/controls-options-manager/util.js.map +1 -1
  58. package/dist/index.d.ts +4 -0
  59. package/dist/interceptors/index.d.ts +2 -0
  60. package/dist/interceptors/locusRetry.d.ts +27 -0
  61. package/dist/interpretation/collection.d.ts +5 -0
  62. package/dist/interpretation/index.d.ts +5 -0
  63. package/dist/interpretation/index.js +1 -1
  64. package/dist/interpretation/siLanguage.d.ts +5 -0
  65. package/dist/interpretation/siLanguage.js +1 -1
  66. package/dist/locus-info/controlsUtils.d.ts +2 -0
  67. package/dist/locus-info/controlsUtils.js +3 -11
  68. package/dist/locus-info/controlsUtils.js.map +1 -1
  69. package/dist/locus-info/embeddedAppsUtils.d.ts +2 -0
  70. package/dist/locus-info/fullState.d.ts +2 -0
  71. package/dist/locus-info/hostUtils.d.ts +2 -0
  72. package/dist/locus-info/index.d.ts +269 -0
  73. package/dist/locus-info/index.js +0 -30
  74. package/dist/locus-info/index.js.map +1 -1
  75. package/dist/locus-info/infoUtils.d.ts +2 -0
  76. package/dist/locus-info/mediaSharesUtils.d.ts +2 -0
  77. package/dist/locus-info/parser.d.ts +212 -0
  78. package/dist/locus-info/selfUtils.d.ts +2 -0
  79. package/dist/media/index.d.ts +32 -0
  80. package/dist/media/properties.d.ts +108 -0
  81. package/dist/media/util.d.ts +2 -0
  82. package/dist/mediaQualityMetrics/config.d.ts +233 -0
  83. package/dist/mediaQualityMetrics/config.js +513 -0
  84. package/dist/mediaQualityMetrics/config.js.map +1 -0
  85. package/dist/meeting/brbState.js +2 -3
  86. package/dist/meeting/brbState.js.map +1 -1
  87. package/dist/meeting/effectsState.d.ts +42 -0
  88. package/dist/meeting/effectsState.js +260 -0
  89. package/dist/meeting/effectsState.js.map +1 -0
  90. package/dist/meeting/in-meeting-actions.d.ts +79 -0
  91. package/dist/meeting/in-meeting-actions.js +1 -5
  92. package/dist/meeting/in-meeting-actions.js.map +1 -1
  93. package/dist/meeting/index.d.ts +1622 -0
  94. package/dist/meeting/index.js +66 -88
  95. package/dist/meeting/index.js.map +1 -1
  96. package/dist/meeting/locusMediaRequest.d.ts +74 -0
  97. package/dist/meeting/muteState.d.ts +116 -0
  98. package/dist/meeting/request.d.ts +257 -0
  99. package/dist/meeting/request.type.d.ts +11 -0
  100. package/dist/meeting/state.d.ts +9 -0
  101. package/dist/meeting/util.d.ts +2 -0
  102. package/dist/meeting/voicea-meeting.d.ts +16 -0
  103. package/dist/meeting-info/collection.d.ts +20 -0
  104. package/dist/meeting-info/index.d.ts +57 -0
  105. package/dist/meeting-info/meeting-info-v2.d.ts +93 -0
  106. package/dist/meeting-info/request.d.ts +22 -0
  107. package/dist/meeting-info/util.d.ts +2 -0
  108. package/dist/meeting-info/utilv2.d.ts +2 -0
  109. package/dist/meetings/collection.d.ts +23 -0
  110. package/dist/meetings/index.d.ts +296 -0
  111. package/dist/meetings/meetings.types.d.ts +4 -0
  112. package/dist/meetings/request.d.ts +27 -0
  113. package/dist/meetings/util.d.ts +18 -0
  114. package/dist/member/index.d.ts +148 -0
  115. package/dist/member/member.types.d.ts +11 -0
  116. package/dist/member/member.types.js +18 -0
  117. package/dist/member/member.types.js.map +1 -0
  118. package/dist/member/types.d.ts +32 -0
  119. package/dist/member/util.d.ts +2 -0
  120. package/dist/members/collection.d.ts +24 -0
  121. package/dist/members/index.d.ts +308 -0
  122. package/dist/members/request.d.ts +58 -0
  123. package/dist/members/types.d.ts +25 -0
  124. package/dist/members/util.d.ts +2 -0
  125. package/dist/metrics/config.d.ts +169 -0
  126. package/dist/metrics/config.js +289 -0
  127. package/dist/metrics/config.js.map +1 -0
  128. package/dist/metrics/constants.d.ts +59 -0
  129. package/dist/metrics/constants.js +0 -1
  130. package/dist/metrics/constants.js.map +1 -1
  131. package/dist/metrics/index.d.ts +152 -0
  132. package/dist/multistream/mediaRequestManager.d.ts +119 -0
  133. package/dist/multistream/receiveSlot.d.ts +68 -0
  134. package/dist/multistream/receiveSlotManager.d.ts +56 -0
  135. package/dist/multistream/remoteMedia.d.ts +72 -0
  136. package/dist/multistream/remoteMediaGroup.d.ts +49 -0
  137. package/dist/multistream/remoteMediaManager.d.ts +300 -0
  138. package/dist/multistream/sendSlotManager.d.ts +69 -0
  139. package/dist/networkQualityMonitor/index.d.ts +70 -0
  140. package/dist/networkQualityMonitor/index.js +226 -0
  141. package/dist/networkQualityMonitor/index.js.map +1 -0
  142. package/dist/peer-connection-manager/index.d.ts +6 -0
  143. package/dist/peer-connection-manager/index.js +671 -0
  144. package/dist/peer-connection-manager/index.js.map +1 -0
  145. package/dist/peer-connection-manager/util.d.ts +6 -0
  146. package/dist/peer-connection-manager/util.js +110 -0
  147. package/dist/peer-connection-manager/util.js.map +1 -0
  148. package/dist/personal-meeting-room/index.d.ts +47 -0
  149. package/dist/personal-meeting-room/request.d.ts +14 -0
  150. package/dist/personal-meeting-room/util.d.ts +2 -0
  151. package/dist/reachability/clusterReachability.d.ts +109 -0
  152. package/dist/reachability/index.d.ts +139 -0
  153. package/dist/reachability/index.js +10 -5
  154. package/dist/reachability/index.js.map +1 -1
  155. package/dist/reachability/request.d.ts +35 -0
  156. package/dist/reachability/util.d.ts +8 -0
  157. package/dist/reactions/constants.d.ts +3 -0
  158. package/dist/reactions/reactions.d.ts +4 -0
  159. package/dist/reactions/reactions.type.d.ts +32 -0
  160. package/dist/reconnection-manager/index.d.ts +112 -0
  161. package/dist/recording-controller/enums.d.ts +7 -0
  162. package/dist/recording-controller/index.d.ts +193 -0
  163. package/dist/recording-controller/util.d.ts +13 -0
  164. package/dist/roap/collection.d.ts +10 -0
  165. package/dist/roap/collection.js +63 -0
  166. package/dist/roap/collection.js.map +1 -0
  167. package/dist/roap/handler.d.ts +47 -0
  168. package/dist/roap/handler.js +279 -0
  169. package/dist/roap/handler.js.map +1 -0
  170. package/dist/roap/index.d.ts +116 -0
  171. package/dist/roap/request.d.ts +35 -0
  172. package/dist/roap/state.d.ts +9 -0
  173. package/dist/roap/state.js +127 -0
  174. package/dist/roap/state.js.map +1 -0
  175. package/dist/roap/turnDiscovery.d.ts +81 -0
  176. package/dist/roap/util.d.ts +2 -0
  177. package/dist/roap/util.js +76 -0
  178. package/dist/roap/util.js.map +1 -0
  179. package/dist/rtcMetrics/constants.d.ts +4 -0
  180. package/dist/rtcMetrics/constants.js +11 -0
  181. package/dist/rtcMetrics/constants.js.map +1 -0
  182. package/dist/rtcMetrics/index.d.ts +61 -0
  183. package/dist/rtcMetrics/index.js +197 -0
  184. package/dist/rtcMetrics/index.js.map +1 -0
  185. package/dist/statsAnalyzer/global.d.ts +118 -0
  186. package/dist/statsAnalyzer/global.js +127 -0
  187. package/dist/statsAnalyzer/global.js.map +1 -0
  188. package/dist/statsAnalyzer/index.d.ts +193 -0
  189. package/dist/statsAnalyzer/index.js +1019 -0
  190. package/dist/statsAnalyzer/index.js.map +1 -0
  191. package/dist/statsAnalyzer/mqaUtil.d.ts +22 -0
  192. package/dist/statsAnalyzer/mqaUtil.js +181 -0
  193. package/dist/statsAnalyzer/mqaUtil.js.map +1 -0
  194. package/dist/transcription/index.d.ts +64 -0
  195. package/dist/types/common/errors/reconnection-in-progress.d.ts +9 -0
  196. package/dist/types/constants.d.ts +0 -6
  197. package/dist/types/controls-options-manager/enums.d.ts +1 -2
  198. package/dist/types/controls-options-manager/types.d.ts +1 -4
  199. package/dist/types/mediaQualityMetrics/config.d.ts +241 -0
  200. package/dist/types/meeting/in-meeting-actions.d.ts +0 -4
  201. package/dist/types/metrics/constants.d.ts +0 -1
  202. package/dist/types/networkQualityMonitor/index.d.ts +70 -0
  203. package/dist/types/reachability/index.d.ts +2 -2
  204. package/dist/types/rtcMetrics/constants.d.ts +4 -0
  205. package/dist/types/rtcMetrics/index.d.ts +71 -0
  206. package/dist/types/statsAnalyzer/global.d.ts +36 -0
  207. package/dist/types/statsAnalyzer/index.d.ts +217 -0
  208. package/dist/types/statsAnalyzer/mqaUtil.d.ts +48 -0
  209. package/dist/webinar/collection.d.ts +16 -0
  210. package/dist/webinar/index.d.ts +5 -0
  211. package/dist/webinar/index.js +1 -1
  212. package/package.json +23 -23
  213. package/src/constants.ts +0 -9
  214. package/src/controls-options-manager/enums.ts +0 -1
  215. package/src/controls-options-manager/types.ts +1 -6
  216. package/src/controls-options-manager/util.ts +0 -31
  217. package/src/locus-info/controlsUtils.ts +0 -15
  218. package/src/locus-info/index.ts +0 -41
  219. package/src/meeting/brbState.ts +2 -4
  220. package/src/meeting/in-meeting-actions.ts +0 -8
  221. package/src/meeting/index.ts +29 -62
  222. package/src/metrics/constants.ts +0 -1
  223. package/src/reachability/index.ts +13 -5
  224. package/test/unit/spec/controls-options-manager/util.js +0 -58
  225. package/test/unit/spec/locus-info/controlsUtils.js +0 -52
  226. package/test/unit/spec/locus-info/index.js +0 -42
  227. package/test/unit/spec/meeting/brbState.ts +2 -21
  228. package/test/unit/spec/meeting/in-meeting-actions.ts +0 -4
  229. package/test/unit/spec/meeting/index.js +27 -130
  230. package/test/unit/spec/reachability/index.ts +6 -2
@@ -1223,46 +1223,6 @@ describe('plugin-meetings', () => {
1223
1223
  });
1224
1224
  });
1225
1225
 
1226
- describe('#update spoken language', () => {
1227
- beforeEach(() => {
1228
- webex.internal.voicea.onSpokenLanguageUpdate = sinon.stub();
1229
- meeting.transcription = {languageOptions: {currentSpokenLanguage: 'en'}};
1230
- });
1231
- afterEach(() => {
1232
- // Restore the original methods after each test
1233
- sinon.restore();
1234
- });
1235
- it('should call voicea.onSpokenLanguageUpdate when joined', async () => {
1236
-
1237
- meeting.joinedWith = {state: 'JOINED'};
1238
- await meeting.locusInfo.emitScoped(
1239
- {function: 'test', file: 'test'},
1240
- LOCUSINFO.EVENTS.CONTROLS_MEETING_TRANSCRIPTION_SPOKEN_LANGUAGE_UPDATED,
1241
- {spokenLanguage: 'fr'},
1242
- );
1243
- assert.calledWith(webex.internal.voicea.onSpokenLanguageUpdate, 'fr');
1244
- assert.equal(meeting.transcription.languageOptions.currentSpokenLanguage, 'fr');
1245
- assert.calledWith(
1246
- TriggerProxy.trigger,
1247
- meeting,
1248
- {file: 'meeting/index', function: 'setupLocusControlsListener'},
1249
- EVENT_TRIGGERS.MEETING_TRANSCRIPTION_SPOKEN_LANGUAGE_UPDATED
1250
- );
1251
- });
1252
-
1253
- it('should also call voicea.onSpokenLanguageUpdate when not joined', async () => {
1254
-
1255
- meeting.joinedWith = {state: 'NOT_JOINED'};
1256
- await meeting.locusInfo.emitScoped(
1257
- {function: 'test', file: 'test'},
1258
- LOCUSINFO.EVENTS.CONTROLS_MEETING_TRANSCRIPTION_SPOKEN_LANGUAGE_UPDATED,
1259
- {spokenLanguage: 'de'},
1260
- );
1261
- assert.calledWith(webex.internal.voicea.onSpokenLanguageUpdate, 'de');
1262
- assert.equal(meeting.transcription.languageOptions.currentSpokenLanguage, 'de');
1263
- });
1264
- });
1265
-
1266
1226
  describe('#startTranscription', () => {
1267
1227
  beforeEach(() => {
1268
1228
  webex.internal.voicea.on = sinon.stub();
@@ -2227,9 +2187,8 @@ describe('plugin-meetings', () => {
2227
2187
  someReachabilityMetric1: 'some value1',
2228
2188
  someReachabilityMetric2: 'some value2',
2229
2189
  selectedCandidatePairChanges: 2,
2230
- subnet_reachable: null,
2231
- selected_cluster: null,
2232
- selected_subnet: null,
2190
+ isSubnetReachable: null,
2191
+ selectedCluster: null,
2233
2192
  numTransports: 1,
2234
2193
  iceCandidatesCount: 0,
2235
2194
  }
@@ -2276,9 +2235,8 @@ describe('plugin-meetings', () => {
2276
2235
  signalingState: 'unknown',
2277
2236
  connectionState: 'unknown',
2278
2237
  iceConnectionState: 'unknown',
2279
- subnet_reachable: null,
2280
- selected_cluster: null,
2281
- selected_subnet: null,
2238
+ isSubnetReachable: null,
2239
+ selectedCluster: null,
2282
2240
  })
2283
2241
  );
2284
2242
 
@@ -2344,9 +2302,8 @@ describe('plugin-meetings', () => {
2344
2302
  selectedCandidatePairChanges: 2,
2345
2303
  numTransports: 1,
2346
2304
  iceCandidatesCount: 0,
2347
- subnet_reachable: null,
2348
- selected_cluster: null,
2349
- selected_subnet: null,
2305
+ isSubnetReachable: null,
2306
+ selectedCluster: null,
2350
2307
  }
2351
2308
  );
2352
2309
  });
@@ -2404,9 +2361,8 @@ describe('plugin-meetings', () => {
2404
2361
  signalingState: 'have-local-offer',
2405
2362
  connectionState: 'connecting',
2406
2363
  iceConnectionState: 'checking',
2407
- subnet_reachable: null,
2408
- selected_cluster: null,
2409
- selected_subnet: null,
2364
+ isSubnetReachable: null,
2365
+ selectedCluster: null,
2410
2366
  })
2411
2367
  );
2412
2368
 
@@ -2464,9 +2420,8 @@ describe('plugin-meetings', () => {
2464
2420
  signalingState: 'have-local-offer',
2465
2421
  connectionState: 'connecting',
2466
2422
  iceConnectionState: 'checking',
2467
- subnet_reachable: null,
2468
- selected_cluster: null,
2469
- selected_subnet: null,
2423
+ isSubnetReachable: null,
2424
+ selectedCluster: null,
2470
2425
  })
2471
2426
  );
2472
2427
 
@@ -2988,9 +2943,8 @@ describe('plugin-meetings', () => {
2988
2943
  selectedCandidatePairChanges: 2,
2989
2944
  numTransports: 1,
2990
2945
  iceCandidatesCount: 0,
2991
- subnet_reachable: null,
2992
- selected_cluster: null,
2993
- selected_subnet: null,
2946
+ isSubnetReachable: null,
2947
+ selectedCluster: null,
2994
2948
  },
2995
2949
  ]);
2996
2950
 
@@ -3197,9 +3151,8 @@ describe('plugin-meetings', () => {
3197
3151
  retriedWithTurnServer: true,
3198
3152
  isJoinWithMediaRetry: false,
3199
3153
  iceCandidatesCount: 0,
3200
- subnet_reachable: null,
3201
- selected_cluster: null,
3202
- selected_subnet: null,
3154
+ isSubnetReachable: null,
3155
+ selectedCluster: null,
3203
3156
  },
3204
3157
  ]);
3205
3158
  meeting.roap.doTurnDiscovery;
@@ -3362,9 +3315,8 @@ describe('plugin-meetings', () => {
3362
3315
  iceCandidatesCount: 3,
3363
3316
  '701_error': 3,
3364
3317
  '701_turn_host_lookup_received_error': 1,
3365
- subnet_reachable: null,
3366
- selected_cluster: 'some.cluster',
3367
- selected_subnet: null,
3318
+ isSubnetReachable: null,
3319
+ selectedCluster: 'some.cluster',
3368
3320
  }
3369
3321
  );
3370
3322
 
@@ -3427,9 +3379,8 @@ describe('plugin-meetings', () => {
3427
3379
  iceConnectionState: 'unknown',
3428
3380
  selectedCandidatePairChanges: 2,
3429
3381
  numTransports: 1,
3430
- subnet_reachable: null,
3431
- selected_cluster: null,
3432
- selected_subnet: null,
3382
+ isSubnetReachable: null,
3383
+ selectedCluster: null,
3433
3384
  iceCandidatesCount: 0,
3434
3385
  }
3435
3386
  );
@@ -3491,9 +3442,8 @@ describe('plugin-meetings', () => {
3491
3442
  numTransports: 1,
3492
3443
  '701_error': 2,
3493
3444
  '701_turn_host_lookup_received_error': 1,
3494
- subnet_reachable: null,
3495
- selected_cluster: null,
3496
- selected_subnet: null,
3445
+ isSubnetReachable: null,
3446
+ selectedCluster: null,
3497
3447
  iceCandidatesCount: 0,
3498
3448
  }
3499
3449
  );
@@ -3501,7 +3451,7 @@ describe('plugin-meetings', () => {
3501
3451
  assert.isOk(errorThrown);
3502
3452
  });
3503
3453
 
3504
- it('should send subnet reachablity metrics if media connection success', async () => {
3454
+ it('should send valid isSubnetReachability if media connection success', async () => {
3505
3455
  meeting.roap.doTurnDiscovery = sinon.stub().returns({
3506
3456
  turnServerInfo: undefined,
3507
3457
  turnDiscoverySkippedReason: undefined,
@@ -3515,12 +3465,6 @@ describe('plugin-meetings', () => {
3515
3465
  stopReachability: sinon.stub(),
3516
3466
  isSubnetReachable: sinon.stub().returns(false),
3517
3467
  };
3518
- meeting.mediaServerIp = '1.2.3.4';
3519
- meeting.mediaConnections = [
3520
- {
3521
- mediaAgentCluster: 'some.cluster',
3522
- }
3523
- ]
3524
3468
 
3525
3469
  const forceRtcMetricsSend = sinon.stub().resolves();
3526
3470
  const closeMediaConnectionStub = sinon.stub();
@@ -3548,13 +3492,12 @@ describe('plugin-meetings', () => {
3548
3492
  isJoinWithMediaRetry: false,
3549
3493
  iceCandidatesCount: 0,
3550
3494
  reachability_public_udp_success: 5,
3551
- subnet_reachable: false,
3552
- selected_cluster: 'some.cluster',
3553
- selected_subnet: '1.X.X.X',
3495
+ isSubnetReachable: false,
3496
+ selectedCluster: null,
3554
3497
  });
3555
3498
  });
3556
3499
 
3557
- it('should send subnet reachablity metrics if media connection fails', async () => {
3500
+ it('should send valid isSubnetReachability if media connection fails', async () => {
3558
3501
  let errorThrown = undefined;
3559
3502
 
3560
3503
  meeting.roap.doTurnDiscovery = sinon.stub().returns({
@@ -3570,12 +3513,6 @@ describe('plugin-meetings', () => {
3570
3513
  stopReachability: sinon.stub(),
3571
3514
  isSubnetReachable: sinon.stub().returns(true),
3572
3515
  };
3573
- meeting.mediaServerIp = '1.2.3.4';
3574
- meeting.mediaConnections = [
3575
- {
3576
- mediaAgentCluster: 'some.cluster',
3577
- }
3578
- ]
3579
3516
 
3580
3517
  const forceRtcMetricsSend = sinon.stub().resolves();
3581
3518
  const closeMediaConnectionStub = sinon.stub();
@@ -3617,9 +3554,8 @@ describe('plugin-meetings', () => {
3617
3554
  selectedCandidatePairChanges: 2,
3618
3555
  numTransports: 1,
3619
3556
  reachability_public_udp_success: 5,
3620
- subnet_reachable: true,
3621
- selected_cluster: 'some.cluster',
3622
- selected_subnet: '1.X.X.X',
3557
+ isSubnetReachable: true,
3558
+ selectedCluster: null,
3623
3559
  iceCandidatesCount: 0,
3624
3560
  }
3625
3561
  );
@@ -4216,7 +4152,7 @@ describe('plugin-meetings', () => {
4216
4152
  meeting.deviceUrl = 'device url';
4217
4153
  meeting.selfId = 'self id';
4218
4154
  meeting.brbState = createBrbState(meeting, false);
4219
- sinon.stub(meeting.brbState, 'enable').resolves();
4155
+ meeting.brbState.enable = sinon.stub().resolves();
4220
4156
  });
4221
4157
 
4222
4158
  afterEach(() => {
@@ -4280,19 +4216,6 @@ describe('plugin-meetings', () => {
4280
4216
 
4281
4217
  assert.notCalled(meeting.audio.handleServerRemoteMuteUpdate);
4282
4218
  });
4283
-
4284
- it('should reject when brb enable fails', async () => {
4285
- meeting.brbState.enable.restore();
4286
-
4287
- const error = new Error();
4288
- meeting.meetingRequest.setBrb = sinon.stub().rejects(error);
4289
-
4290
- await expect(
4291
- meeting.beRightBack(true)
4292
- ).to.be.rejectedWith(error);
4293
-
4294
- assert.isFalse(meeting.brbState.state.syncToServerInProgress);
4295
- });
4296
4219
  });
4297
4220
  });
4298
4221
 
@@ -10088,24 +10011,6 @@ describe('plugin-meetings', () => {
10088
10011
  );
10089
10012
  });
10090
10013
 
10091
- it('listens to CONTROLS_POLLING_QA_CHANGED', async () => {
10092
- const state = {example: 'value'};
10093
-
10094
- await meeting.locusInfo.emitScoped(
10095
- {function: 'test', file: 'test'},
10096
- LOCUSINFO.EVENTS.CONTROLS_POLLING_QA_CHANGED,
10097
- {state}
10098
- );
10099
-
10100
- assert.calledWith(
10101
- TriggerProxy.trigger,
10102
- meeting,
10103
- {file: 'meeting/index', function: 'setupLocusControlsListener'},
10104
- EVENT_TRIGGERS.MEETING_CONTROLS_POLLING_QA_UPDATED,
10105
- {state}
10106
- );
10107
- });
10108
-
10109
10014
  it('listens to the locus interpretation update event', () => {
10110
10015
  const interpretation = {
10111
10016
  siLanguages: [{languageCode: 20, languageName: 'en'}],
@@ -11698,14 +11603,6 @@ describe('plugin-meetings', () => {
11698
11603
  requiredHints: [DISPLAY_HINTS.DISABLE_RDC_MEETING_OPTION],
11699
11604
  displayHints: userDisplayHints,
11700
11605
  });
11701
- assert.calledWith(ControlsOptionsUtil.hasHints, {
11702
- requiredHints: [DISPLAY_HINTS.ENABLE_ATTENDEE_START_POLLING_QA],
11703
- displayHints: userDisplayHints,
11704
- });
11705
- assert.calledWith(ControlsOptionsUtil.hasHints, {
11706
- requiredHints: [DISPLAY_HINTS.DISABLE_ATTENDEE_START_POLLING_QA],
11707
- displayHints: userDisplayHints,
11708
- });
11709
11606
 
11710
11607
  assert.calledWith(
11711
11608
  TriggerProxy.trigger,
@@ -2764,10 +2764,14 @@ describe('isSubnetReachable', () => {
2764
2764
  });
2765
2765
 
2766
2766
  it('returns true if the subnet is reachable', () => {
2767
- assert(reachability.isSubnetReachable('1'));
2767
+ assert(reachability.isSubnetReachable('1.2.3.4'));
2768
2768
  });
2769
2769
 
2770
2770
  it(`returns false if the subnet is unreachable`, () => {
2771
- assert(!reachability.isSubnetReachable('11'));
2771
+ assert(!reachability.isSubnetReachable('11.2.3.4'));
2772
+ });
2773
+
2774
+ it('returns null if the subnet is not provided', () => {
2775
+ assert.isNull(reachability.isSubnetReachable(undefined));
2772
2776
  });
2773
2777
  });