@webex/plugin-meetings 3.8.1 → 3.9.0-next.10
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/README.md +26 -13
- package/dist/breakouts/breakout.js +1 -1
- package/dist/breakouts/index.js +1 -1
- package/dist/constants.js +32 -3
- package/dist/constants.js.map +1 -1
- package/dist/controls-options-manager/enums.js +1 -0
- package/dist/controls-options-manager/enums.js.map +1 -1
- package/dist/controls-options-manager/types.js.map +1 -1
- package/dist/controls-options-manager/util.js +26 -0
- package/dist/controls-options-manager/util.js.map +1 -1
- package/dist/interpretation/index.js +1 -1
- package/dist/interpretation/siLanguage.js +1 -1
- package/dist/locus-info/controlsUtils.js +11 -3
- package/dist/locus-info/controlsUtils.js.map +1 -1
- package/dist/locus-info/index.js +84 -91
- package/dist/locus-info/index.js.map +1 -1
- package/dist/locus-info/parser.js +4 -1
- package/dist/locus-info/parser.js.map +1 -1
- package/dist/media/index.js +2 -2
- package/dist/media/index.js.map +1 -1
- package/dist/meeting/brbState.js +17 -14
- package/dist/meeting/brbState.js.map +1 -1
- package/dist/meeting/in-meeting-actions.js +11 -1
- package/dist/meeting/in-meeting-actions.js.map +1 -1
- package/dist/meeting/index.js +484 -287
- package/dist/meeting/index.js.map +1 -1
- package/dist/meeting/request.js +19 -0
- package/dist/meeting/request.js.map +1 -1
- package/dist/meeting/request.type.js.map +1 -1
- package/dist/{rtcMetrics/constants.js → meeting/type.js} +1 -5
- package/dist/meeting/type.js.map +1 -0
- package/dist/meeting/util.js +68 -2
- package/dist/meeting/util.js.map +1 -1
- package/dist/meetings/index.js +35 -33
- package/dist/meetings/index.js.map +1 -1
- package/dist/members/index.js +14 -11
- package/dist/members/index.js.map +1 -1
- package/dist/members/request.js +3 -3
- package/dist/members/request.js.map +1 -1
- package/dist/members/util.js +25 -8
- package/dist/members/util.js.map +1 -1
- package/dist/metrics/constants.js +1 -0
- 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/remoteMedia.js +34 -5
- package/dist/multistream/remoteMedia.js.map +1 -1
- package/dist/multistream/remoteMediaGroup.js +42 -2
- package/dist/multistream/remoteMediaGroup.js.map +1 -1
- package/dist/multistream/sendSlotManager.js +32 -2
- package/dist/multistream/sendSlotManager.js.map +1 -1
- package/dist/reachability/index.js +8 -13
- package/dist/reachability/index.js.map +1 -1
- package/dist/types/constants.d.ts +28 -0
- package/dist/types/controls-options-manager/enums.d.ts +2 -1
- package/dist/types/controls-options-manager/types.d.ts +4 -1
- package/dist/types/locus-info/index.d.ts +2 -9
- package/dist/types/meeting/brbState.d.ts +0 -1
- package/dist/types/meeting/in-meeting-actions.d.ts +10 -0
- package/dist/types/meeting/index.d.ts +47 -19
- package/dist/types/meeting/request.d.ts +9 -1
- package/dist/types/meeting/request.type.d.ts +74 -0
- package/dist/types/meeting/type.d.ts +9 -0
- package/dist/types/meeting/util.d.ts +3 -0
- package/dist/types/members/index.d.ts +12 -8
- package/dist/types/members/request.d.ts +1 -1
- package/dist/types/members/util.d.ts +13 -6
- package/dist/types/metrics/constants.d.ts +1 -0
- package/dist/types/multistream/remoteMedia.d.ts +20 -1
- package/dist/types/multistream/remoteMediaGroup.d.ts +11 -0
- package/dist/types/multistream/sendSlotManager.d.ts +16 -0
- package/dist/types/reachability/index.d.ts +2 -2
- package/dist/webinar/index.js +1 -1
- package/package.json +24 -25
- package/src/constants.ts +32 -2
- package/src/controls-options-manager/enums.ts +1 -0
- package/src/controls-options-manager/types.ts +6 -1
- package/src/controls-options-manager/util.ts +31 -0
- package/src/locus-info/controlsUtils.ts +15 -0
- package/src/locus-info/index.ts +103 -92
- package/src/locus-info/parser.ts +5 -1
- package/src/media/index.ts +2 -2
- package/src/meeting/brbState.ts +13 -9
- package/src/meeting/in-meeting-actions.ts +21 -0
- package/src/meeting/index.ts +278 -73
- package/src/meeting/request.ts +16 -0
- package/src/meeting/request.type.ts +64 -0
- package/src/meeting/type.ts +9 -0
- package/src/meeting/util.ts +73 -2
- package/src/meetings/index.ts +3 -2
- package/src/members/index.ts +22 -12
- package/src/members/request.ts +2 -2
- package/src/members/util.ts +34 -6
- package/src/metrics/constants.ts +1 -0
- package/src/multistream/mediaRequestManager.ts +7 -7
- package/src/multistream/remoteMedia.ts +34 -4
- package/src/multistream/remoteMediaGroup.ts +37 -2
- package/src/multistream/sendSlotManager.ts +34 -2
- package/src/reachability/index.ts +8 -16
- package/test/unit/spec/controls-options-manager/util.js +58 -0
- package/test/unit/spec/locus-info/controlsUtils.js +52 -0
- package/test/unit/spec/locus-info/index.js +247 -89
- package/test/unit/spec/locus-info/parser.js +3 -2
- package/test/unit/spec/media/index.ts +107 -0
- package/test/unit/spec/meeting/brbState.ts +23 -4
- package/test/unit/spec/meeting/in-meeting-actions.ts +10 -0
- package/test/unit/spec/meeting/index.js +976 -91
- package/test/unit/spec/meeting/request.js +71 -0
- package/test/unit/spec/meeting/utils.js +122 -1
- package/test/unit/spec/meetings/index.js +2 -0
- package/test/unit/spec/members/index.js +98 -11
- package/test/unit/spec/members/request.js +57 -2
- package/test/unit/spec/members/utils.js +139 -17
- package/test/unit/spec/multistream/mediaRequestManager.ts +19 -6
- package/test/unit/spec/multistream/remoteMedia.ts +66 -2
- package/test/unit/spec/multistream/sendSlotManager.ts +59 -0
- package/test/unit/spec/reachability/index.ts +160 -9
- package/dist/annotation/annotation.types.d.ts +0 -42
- package/dist/annotation/constants.d.ts +0 -31
- package/dist/annotation/index.d.ts +0 -117
- package/dist/breakouts/breakout.d.ts +0 -8
- package/dist/breakouts/collection.d.ts +0 -5
- package/dist/breakouts/edit-lock-error.d.ts +0 -15
- package/dist/breakouts/events.d.ts +0 -8
- package/dist/breakouts/index.d.ts +0 -5
- package/dist/breakouts/request.d.ts +0 -22
- package/dist/breakouts/utils.d.ts +0 -15
- package/dist/common/browser-detection.d.ts +0 -9
- package/dist/common/collection.d.ts +0 -48
- package/dist/common/config.d.ts +0 -2
- package/dist/common/errors/captcha-error.d.ts +0 -15
- package/dist/common/errors/intent-to-join.d.ts +0 -16
- package/dist/common/errors/join-meeting.d.ts +0 -17
- package/dist/common/errors/media.d.ts +0 -15
- package/dist/common/errors/no-meeting-info.d.ts +0 -14
- package/dist/common/errors/parameter.d.ts +0 -15
- package/dist/common/errors/password-error.d.ts +0 -15
- package/dist/common/errors/permission.d.ts +0 -14
- package/dist/common/errors/reclaim-host-role-error.d.ts +0 -60
- package/dist/common/errors/reclaim-host-role-error.js +0 -158
- package/dist/common/errors/reclaim-host-role-error.js.map +0 -1
- package/dist/common/errors/reclaim-host-role-errors.d.ts +0 -60
- package/dist/common/errors/reconnection-in-progress.d.ts +0 -9
- package/dist/common/errors/reconnection-in-progress.js +0 -35
- package/dist/common/errors/reconnection-in-progress.js.map +0 -1
- package/dist/common/errors/reconnection.d.ts +0 -15
- package/dist/common/errors/stats.d.ts +0 -15
- package/dist/common/errors/webex-errors.d.ts +0 -81
- package/dist/common/errors/webex-meetings-error.d.ts +0 -20
- package/dist/common/events/events-scope.d.ts +0 -17
- package/dist/common/events/events.d.ts +0 -12
- package/dist/common/events/trigger-proxy.d.ts +0 -2
- package/dist/common/events/util.d.ts +0 -2
- package/dist/common/logs/logger-config.d.ts +0 -2
- package/dist/common/logs/logger-proxy.d.ts +0 -2
- package/dist/common/logs/request.d.ts +0 -34
- package/dist/common/queue.d.ts +0 -32
- package/dist/config.d.ts +0 -73
- package/dist/constants.d.ts +0 -952
- package/dist/controls-options-manager/constants.d.ts +0 -4
- package/dist/controls-options-manager/enums.d.ts +0 -5
- package/dist/controls-options-manager/index.d.ts +0 -120
- package/dist/controls-options-manager/types.d.ts +0 -43
- package/dist/controls-options-manager/util.d.ts +0 -7
- package/dist/index.d.ts +0 -4
- package/dist/interceptors/index.d.ts +0 -2
- package/dist/interceptors/locusRetry.d.ts +0 -27
- package/dist/interpretation/collection.d.ts +0 -5
- package/dist/interpretation/index.d.ts +0 -5
- package/dist/interpretation/siLanguage.d.ts +0 -5
- package/dist/locus-info/controlsUtils.d.ts +0 -2
- package/dist/locus-info/embeddedAppsUtils.d.ts +0 -2
- package/dist/locus-info/fullState.d.ts +0 -2
- package/dist/locus-info/hostUtils.d.ts +0 -2
- package/dist/locus-info/index.d.ts +0 -269
- package/dist/locus-info/infoUtils.d.ts +0 -2
- package/dist/locus-info/mediaSharesUtils.d.ts +0 -2
- package/dist/locus-info/parser.d.ts +0 -212
- package/dist/locus-info/selfUtils.d.ts +0 -2
- package/dist/media/index.d.ts +0 -32
- package/dist/media/properties.d.ts +0 -108
- package/dist/media/util.d.ts +0 -2
- package/dist/mediaQualityMetrics/config.d.ts +0 -233
- package/dist/mediaQualityMetrics/config.js +0 -513
- package/dist/mediaQualityMetrics/config.js.map +0 -1
- package/dist/meeting/effectsState.d.ts +0 -42
- package/dist/meeting/effectsState.js +0 -260
- package/dist/meeting/effectsState.js.map +0 -1
- package/dist/meeting/in-meeting-actions.d.ts +0 -79
- package/dist/meeting/index.d.ts +0 -1622
- package/dist/meeting/locusMediaRequest.d.ts +0 -74
- package/dist/meeting/muteState.d.ts +0 -116
- package/dist/meeting/request.d.ts +0 -257
- package/dist/meeting/request.type.d.ts +0 -11
- package/dist/meeting/state.d.ts +0 -9
- package/dist/meeting/util.d.ts +0 -2
- package/dist/meeting/voicea-meeting.d.ts +0 -16
- package/dist/meeting-info/collection.d.ts +0 -20
- package/dist/meeting-info/index.d.ts +0 -57
- package/dist/meeting-info/meeting-info-v2.d.ts +0 -93
- package/dist/meeting-info/request.d.ts +0 -22
- package/dist/meeting-info/util.d.ts +0 -2
- package/dist/meeting-info/utilv2.d.ts +0 -2
- package/dist/meetings/collection.d.ts +0 -23
- package/dist/meetings/index.d.ts +0 -296
- package/dist/meetings/meetings.types.d.ts +0 -4
- package/dist/meetings/request.d.ts +0 -27
- package/dist/meetings/util.d.ts +0 -18
- package/dist/member/index.d.ts +0 -148
- package/dist/member/member.types.d.ts +0 -11
- package/dist/member/member.types.js +0 -18
- package/dist/member/member.types.js.map +0 -1
- package/dist/member/types.d.ts +0 -32
- package/dist/member/util.d.ts +0 -2
- package/dist/members/collection.d.ts +0 -24
- package/dist/members/index.d.ts +0 -308
- package/dist/members/request.d.ts +0 -58
- package/dist/members/types.d.ts +0 -25
- package/dist/members/util.d.ts +0 -2
- package/dist/metrics/config.d.ts +0 -169
- package/dist/metrics/config.js +0 -289
- package/dist/metrics/config.js.map +0 -1
- package/dist/metrics/constants.d.ts +0 -59
- package/dist/metrics/index.d.ts +0 -152
- package/dist/multistream/mediaRequestManager.d.ts +0 -119
- package/dist/multistream/receiveSlot.d.ts +0 -68
- package/dist/multistream/receiveSlotManager.d.ts +0 -56
- package/dist/multistream/remoteMedia.d.ts +0 -72
- package/dist/multistream/remoteMediaGroup.d.ts +0 -49
- package/dist/multistream/remoteMediaManager.d.ts +0 -300
- package/dist/multistream/sendSlotManager.d.ts +0 -69
- package/dist/networkQualityMonitor/index.d.ts +0 -70
- package/dist/networkQualityMonitor/index.js +0 -226
- package/dist/networkQualityMonitor/index.js.map +0 -1
- package/dist/peer-connection-manager/index.d.ts +0 -6
- package/dist/peer-connection-manager/index.js +0 -671
- package/dist/peer-connection-manager/index.js.map +0 -1
- package/dist/peer-connection-manager/util.d.ts +0 -6
- package/dist/peer-connection-manager/util.js +0 -110
- package/dist/peer-connection-manager/util.js.map +0 -1
- package/dist/personal-meeting-room/index.d.ts +0 -47
- package/dist/personal-meeting-room/request.d.ts +0 -14
- package/dist/personal-meeting-room/util.d.ts +0 -2
- package/dist/reachability/clusterReachability.d.ts +0 -109
- package/dist/reachability/index.d.ts +0 -139
- package/dist/reachability/request.d.ts +0 -35
- package/dist/reachability/util.d.ts +0 -8
- package/dist/reactions/constants.d.ts +0 -3
- package/dist/reactions/reactions.d.ts +0 -4
- package/dist/reactions/reactions.type.d.ts +0 -32
- package/dist/reconnection-manager/index.d.ts +0 -112
- package/dist/recording-controller/enums.d.ts +0 -7
- package/dist/recording-controller/index.d.ts +0 -193
- package/dist/recording-controller/util.d.ts +0 -13
- package/dist/roap/collection.d.ts +0 -10
- package/dist/roap/collection.js +0 -63
- package/dist/roap/collection.js.map +0 -1
- package/dist/roap/handler.d.ts +0 -47
- package/dist/roap/handler.js +0 -279
- package/dist/roap/handler.js.map +0 -1
- package/dist/roap/index.d.ts +0 -116
- package/dist/roap/request.d.ts +0 -35
- package/dist/roap/state.d.ts +0 -9
- package/dist/roap/state.js +0 -127
- package/dist/roap/state.js.map +0 -1
- package/dist/roap/turnDiscovery.d.ts +0 -81
- package/dist/roap/util.d.ts +0 -2
- package/dist/roap/util.js +0 -76
- package/dist/roap/util.js.map +0 -1
- package/dist/rtcMetrics/constants.d.ts +0 -4
- package/dist/rtcMetrics/constants.js.map +0 -1
- package/dist/rtcMetrics/index.d.ts +0 -61
- package/dist/rtcMetrics/index.js +0 -197
- package/dist/rtcMetrics/index.js.map +0 -1
- package/dist/statsAnalyzer/global.d.ts +0 -118
- package/dist/statsAnalyzer/global.js +0 -127
- package/dist/statsAnalyzer/global.js.map +0 -1
- package/dist/statsAnalyzer/index.d.ts +0 -193
- package/dist/statsAnalyzer/index.js +0 -1019
- package/dist/statsAnalyzer/index.js.map +0 -1
- package/dist/statsAnalyzer/mqaUtil.d.ts +0 -22
- package/dist/statsAnalyzer/mqaUtil.js +0 -181
- package/dist/statsAnalyzer/mqaUtil.js.map +0 -1
- package/dist/transcription/index.d.ts +0 -64
- package/dist/types/common/errors/reconnection-in-progress.d.ts +0 -9
- package/dist/types/mediaQualityMetrics/config.d.ts +0 -241
- package/dist/types/networkQualityMonitor/index.d.ts +0 -70
- package/dist/types/rtcMetrics/constants.d.ts +0 -4
- package/dist/types/rtcMetrics/index.d.ts +0 -71
- package/dist/types/statsAnalyzer/global.d.ts +0 -36
- package/dist/types/statsAnalyzer/index.d.ts +0 -217
- package/dist/types/statsAnalyzer/mqaUtil.d.ts +0 -48
- package/dist/webinar/collection.d.ts +0 -16
- package/dist/webinar/index.d.ts +0 -5
@@ -129,7 +129,32 @@ describe('plugin-meetings', () => {
|
|
129
129
|
});
|
130
130
|
});
|
131
131
|
describe('#generateEditDisplayNameMemberOptions', () => {
|
132
|
-
it('returns the correct options', () => {
|
132
|
+
it('returns the correct options with suffix when suffix is there', () => {
|
133
|
+
const locusUrl = 'urlTest1';
|
134
|
+
const memberId = 'test1';
|
135
|
+
const requestingParticipantId = 'test2';
|
136
|
+
const alias = 'alias';
|
137
|
+
const suffix = 'suffix';
|
138
|
+
|
139
|
+
assert.deepEqual(
|
140
|
+
MembersUtil.generateEditDisplayNameMemberOptions(
|
141
|
+
memberId,
|
142
|
+
requestingParticipantId,
|
143
|
+
alias,
|
144
|
+
locusUrl,
|
145
|
+
suffix
|
146
|
+
),
|
147
|
+
{
|
148
|
+
memberId,
|
149
|
+
requestingParticipantId,
|
150
|
+
alias,
|
151
|
+
locusUrl,
|
152
|
+
suffix,
|
153
|
+
}
|
154
|
+
);
|
155
|
+
});
|
156
|
+
|
157
|
+
it('returns the correct options without suffix when suffix is not there', () => {
|
133
158
|
const locusUrl = 'urlTest1';
|
134
159
|
const memberId = 'test1';
|
135
160
|
const requestingParticipantId = 'test2';
|
@@ -147,6 +172,7 @@ describe('plugin-meetings', () => {
|
|
147
172
|
requestingParticipantId,
|
148
173
|
alias,
|
149
174
|
locusUrl,
|
175
|
+
suffix: undefined,
|
150
176
|
}
|
151
177
|
);
|
152
178
|
});
|
@@ -302,6 +328,26 @@ describe('plugin-meetings', () => {
|
|
302
328
|
});
|
303
329
|
});
|
304
330
|
|
331
|
+
it('returns the correct body with phone number and isInternalNumber', () => {
|
332
|
+
const options = {
|
333
|
+
invitee: {
|
334
|
+
phoneNumber: '1234567890',
|
335
|
+
isInternalNumber: false,
|
336
|
+
},
|
337
|
+
alertIfActive: false,
|
338
|
+
};
|
339
|
+
|
340
|
+
assert.deepEqual(MembersUtil.getAddMemberBody(options), {
|
341
|
+
invitees: [
|
342
|
+
{
|
343
|
+
address: '1234567890',
|
344
|
+
isInternalNumber: false,
|
345
|
+
},
|
346
|
+
],
|
347
|
+
alertIfActive: false,
|
348
|
+
});
|
349
|
+
});
|
350
|
+
|
305
351
|
it('returns the correct body with fallback to email', () => {
|
306
352
|
const options = {
|
307
353
|
invitee: {
|
@@ -391,46 +437,122 @@ describe('plugin-meetings', () => {
|
|
391
437
|
});
|
392
438
|
});
|
393
439
|
|
394
|
-
describe('#
|
440
|
+
describe('#cancelInviteByMemberIdOptions', () => {
|
395
441
|
it('returns the correct options', () => {
|
396
442
|
const locusUrl = 'TestLocusUrl';
|
397
443
|
const memberId = 'test';
|
398
|
-
const invitee = {memberId};
|
444
|
+
const invitee = {memberId, isInternalNumber: false};
|
399
445
|
|
400
|
-
assert.deepEqual(
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
),
|
405
|
-
{
|
406
|
-
invitee,
|
407
|
-
locusUrl,
|
408
|
-
}
|
409
|
-
);
|
446
|
+
assert.deepEqual(MembersUtil.cancelInviteByMemberIdOptions(invitee, locusUrl), {
|
447
|
+
invitee,
|
448
|
+
locusUrl,
|
449
|
+
});
|
410
450
|
});
|
411
451
|
});
|
412
452
|
|
413
|
-
describe('#
|
453
|
+
describe('#generateCancelInviteByMemberIdRequestParams', () => {
|
414
454
|
it('returns the correct params', () => {
|
415
455
|
const locusUrl = 'TestLocusUrl';
|
416
456
|
const memberId = 'test';
|
417
457
|
const options = {
|
418
458
|
locusUrl,
|
419
|
-
invitee: {memberId}
|
459
|
+
invitee: {memberId, isInternalNumber: false},
|
420
460
|
};
|
421
461
|
const body = {
|
422
462
|
actionType: 'REMOVE',
|
423
|
-
invitees: [{address: options.invitee.memberId}],
|
463
|
+
invitees: [{address: options.invitee.memberId, isInternalNumber: false}],
|
424
464
|
};
|
425
465
|
|
426
466
|
const uri = options.locusUrl;
|
427
467
|
|
428
|
-
assert.deepEqual(MembersUtil.
|
468
|
+
assert.deepEqual(MembersUtil.generateCancelInviteByMemberIdRequestParams(options), {
|
429
469
|
method: HTTP_VERBS.PUT,
|
430
470
|
uri,
|
431
471
|
body,
|
432
472
|
});
|
433
473
|
});
|
434
474
|
});
|
475
|
+
|
476
|
+
describe('#editDisplayNameMemberRequestParams', () => {
|
477
|
+
it('returns the correct params when suffix is available', () => {
|
478
|
+
const locusUrl = 'TestLocusUrl1';
|
479
|
+
const memberId = 'test1';
|
480
|
+
const alias = 'alias1';
|
481
|
+
const requestingParticipantId = '23131';
|
482
|
+
const suffix = 'suffix1';
|
483
|
+
const options = {
|
484
|
+
locusUrl: locusUrl,
|
485
|
+
memberId,
|
486
|
+
alias,
|
487
|
+
requestingParticipantId,
|
488
|
+
suffix,
|
489
|
+
};
|
490
|
+
|
491
|
+
const uri = `${locusUrl}/participant/${memberId}/alias`;
|
492
|
+
|
493
|
+
assert.deepEqual(MembersUtil.editDisplayNameMemberRequestParams(options), {
|
494
|
+
method: HTTP_VERBS.POST,
|
495
|
+
uri,
|
496
|
+
body: {
|
497
|
+
aliasValue: alias,
|
498
|
+
requestingParticipantId,
|
499
|
+
suffixValue: suffix,
|
500
|
+
},
|
501
|
+
});
|
502
|
+
});
|
503
|
+
|
504
|
+
it('returns the correct params when suffix is not available', () => {
|
505
|
+
const locusUrl = 'TestLocusUrl2';
|
506
|
+
const memberId = 'test2';
|
507
|
+
const alias = 'alias2';
|
508
|
+
const requestingParticipantId = '12345';
|
509
|
+
|
510
|
+
const options = {
|
511
|
+
locusUrl: locusUrl,
|
512
|
+
memberId,
|
513
|
+
alias,
|
514
|
+
requestingParticipantId,
|
515
|
+
};
|
516
|
+
|
517
|
+
const uri = `${locusUrl}/participant/${memberId}/alias`;
|
518
|
+
|
519
|
+
assert.deepEqual(MembersUtil.editDisplayNameMemberRequestParams(options), {
|
520
|
+
method: HTTP_VERBS.POST,
|
521
|
+
uri,
|
522
|
+
body: {
|
523
|
+
aliasValue: alias,
|
524
|
+
requestingParticipantId,
|
525
|
+
},
|
526
|
+
});
|
527
|
+
});
|
528
|
+
|
529
|
+
it('returns the correct params when suffix is empty string', () => {
|
530
|
+
const locusUrl = 'TestLocusUrl3';
|
531
|
+
const memberId = 'test3';
|
532
|
+
const alias = 'alias3';
|
533
|
+
const requestingParticipantId = '322424';
|
534
|
+
const suffix = '';
|
535
|
+
|
536
|
+
const options = {
|
537
|
+
locusUrl: locusUrl,
|
538
|
+
memberId,
|
539
|
+
alias,
|
540
|
+
suffix,
|
541
|
+
requestingParticipantId,
|
542
|
+
};
|
543
|
+
|
544
|
+
const uri = `${locusUrl}/participant/${memberId}/alias`;
|
545
|
+
|
546
|
+
assert.deepEqual(MembersUtil.editDisplayNameMemberRequestParams(options), {
|
547
|
+
method: HTTP_VERBS.POST,
|
548
|
+
uri,
|
549
|
+
body: {
|
550
|
+
aliasValue: alias,
|
551
|
+
requestingParticipantId,
|
552
|
+
suffixValue: suffix,
|
553
|
+
},
|
554
|
+
});
|
555
|
+
});
|
556
|
+
});
|
435
557
|
});
|
436
558
|
});
|
@@ -3,7 +3,7 @@ import {MediaRequestManager} from '@webex/plugin-meetings/src/multistream/mediaR
|
|
3
3
|
import {ReceiveSlot} from '@webex/plugin-meetings/src/multistream/receiveSlot';
|
4
4
|
import sinon from 'sinon';
|
5
5
|
import {assert} from '@webex/test-helper-chai';
|
6
|
-
import {getMaxFs} from '@webex/plugin-meetings/src/multistream/remoteMedia';
|
6
|
+
import {getMaxFs, MAX_FS_VALUES} from '@webex/plugin-meetings/src/multistream/remoteMedia';
|
7
7
|
import FakeTimers from '@sinonjs/fake-timers';
|
8
8
|
import * as InternalMediaCoreModule from '@webex/internal-media-core';
|
9
9
|
import { expect } from 'chai';
|
@@ -36,12 +36,15 @@ describe('MediaRequestManager', () => {
|
|
36
36
|
const CROSS_POLICY_DUPLICATION = true;
|
37
37
|
const MAX_FPS = 3000;
|
38
38
|
const MAX_FS_360p = 920;
|
39
|
+
const MAX_FS_540p = 2040;
|
39
40
|
const MAX_FS_720p = 3600;
|
40
41
|
const MAX_FS_1080p = 8192;
|
41
42
|
const MAX_MBPS_360p = 27600;
|
43
|
+
const MAX_MBPS_540p = 61200;
|
42
44
|
const MAX_MBPS_720p = 108000;
|
43
45
|
const MAX_MBPS_1080p = 245760;
|
44
46
|
const MAX_PAYLOADBITSPS_360p = 640000;
|
47
|
+
const MAX_PAYLOADBITSPS_540p = 880000;
|
45
48
|
const MAX_PAYLOADBITSPS_720p = 2500000;
|
46
49
|
const MAX_PAYLOADBITSPS_1080p = 4000000;
|
47
50
|
|
@@ -82,7 +85,14 @@ describe('MediaRequestManager', () => {
|
|
82
85
|
});
|
83
86
|
|
84
87
|
// helper function for adding an active speaker request
|
85
|
-
const addActiveSpeakerRequest = (
|
88
|
+
const addActiveSpeakerRequest = (
|
89
|
+
priority,
|
90
|
+
receiveSlots,
|
91
|
+
maxFs,
|
92
|
+
commit = false,
|
93
|
+
preferLiveVideo = true,
|
94
|
+
namedMediaGroups = undefined
|
95
|
+
) =>
|
86
96
|
mediaRequestManager.addRequest(
|
87
97
|
{
|
88
98
|
policyInfo: {
|
@@ -216,6 +226,9 @@ describe('MediaRequestManager', () => {
|
|
216
226
|
},
|
217
227
|
false
|
218
228
|
);
|
229
|
+
|
230
|
+
|
231
|
+
|
219
232
|
mediaRequestManager.addRequest(
|
220
233
|
{
|
221
234
|
policyInfo: {
|
@@ -892,15 +905,15 @@ describe('MediaRequestManager', () => {
|
|
892
905
|
// request 10 "large" 1080p streams
|
893
906
|
addActiveSpeakerRequest(255, fakeReceiveSlots.slice(0, 10), getMaxFs('large'), true);
|
894
907
|
|
895
|
-
// check that resulting requests are 10
|
908
|
+
// check that resulting requests are 10 540p streams
|
896
909
|
checkMediaRequestsSent([
|
897
910
|
{
|
898
911
|
policy: 'active-speaker',
|
899
912
|
priority: 255,
|
900
913
|
receiveSlots: fakeWcmeSlots.slice(0, 10),
|
901
|
-
maxPayloadBitsPerSecond:
|
902
|
-
maxFs:
|
903
|
-
maxMbps:
|
914
|
+
maxPayloadBitsPerSecond: MAX_PAYLOADBITSPS_540p,
|
915
|
+
maxFs: MAX_FS_VALUES['540p'],
|
916
|
+
maxMbps: MAX_MBPS_540p,
|
904
917
|
},
|
905
918
|
]);
|
906
919
|
});
|
@@ -3,7 +3,7 @@ import 'jsdom-global/register';
|
|
3
3
|
import EventEmitter from 'events';
|
4
4
|
|
5
5
|
import {MediaType} from '@webex/internal-media-core';
|
6
|
-
import {RemoteMedia, RemoteMediaEvents} from '@webex/plugin-meetings/src/multistream/remoteMedia';
|
6
|
+
import {RemoteMedia, RemoteMediaEvents, RemoteVideoResolution} from '@webex/plugin-meetings/src/multistream/remoteMedia';
|
7
7
|
import {ReceiveSlotEvents} from '@webex/plugin-meetings/src/multistream/receiveSlot';
|
8
8
|
import sinon from 'sinon';
|
9
9
|
import {assert} from '@webex/test-helper-chai';
|
@@ -257,7 +257,9 @@ describe('RemoteMedia', () => {
|
|
257
257
|
{height: 198, fs: 920}, // 360p
|
258
258
|
{height: 360, fs: 920},
|
259
259
|
{height: 395, fs: 920},
|
260
|
-
{height: 396, fs:
|
260
|
+
{height: 396, fs: 2040}, // 540p
|
261
|
+
{height: 540, fs: 2040},
|
262
|
+
{height: 610, fs: 3600}, // 720p
|
261
263
|
{height: 720, fs: 3600},
|
262
264
|
{height: 721, fs: 8192}, // 1080p
|
263
265
|
{height: 1080, fs: 8192},
|
@@ -271,4 +273,66 @@ describe('RemoteMedia', () => {
|
|
271
273
|
}
|
272
274
|
);
|
273
275
|
});
|
276
|
+
|
277
|
+
describe('getEffectiveMaxFs()', () => {
|
278
|
+
it('returns maxFrameSize when it is greater than 0', () => {
|
279
|
+
remoteMedia.setSizeHint(960, 540);
|
280
|
+
|
281
|
+
const result = remoteMedia.getEffectiveMaxFs();
|
282
|
+
|
283
|
+
assert.strictEqual(result, 2040);
|
284
|
+
});
|
285
|
+
|
286
|
+
it('returns getMaxFs result when maxFrameSize is 0 and resolution is provided', () => {
|
287
|
+
remoteMedia.setSizeHint(0, 0);
|
288
|
+
|
289
|
+
// remoteMedia was created with {resolution: 'medium'} in beforeEach
|
290
|
+
|
291
|
+
const result = remoteMedia.getEffectiveMaxFs();
|
292
|
+
|
293
|
+
// 'medium' resolution should map to 720p which is 3600
|
294
|
+
assert.strictEqual(result, 3600);
|
295
|
+
});
|
296
|
+
|
297
|
+
it('returns undefined when maxFrameSize is 0 and no resolution is provided', () => {
|
298
|
+
remoteMedia.setSizeHint(0, 0);
|
299
|
+
|
300
|
+
// Create a new RemoteMedia without resolution option
|
301
|
+
const remoteMediaWithoutResolution = new RemoteMedia(fakeReceiveSlot, fakeMediaRequestManager);
|
302
|
+
|
303
|
+
const result = remoteMediaWithoutResolution.getEffectiveMaxFs();
|
304
|
+
|
305
|
+
assert.strictEqual(result, undefined);
|
306
|
+
});
|
307
|
+
|
308
|
+
it('prioritizes maxFrameSize over resolution option', () => {
|
309
|
+
remoteMedia.setSizeHint(640, 360);
|
310
|
+
// remoteMedia was created with {resolution: 'medium'} in beforeEach
|
311
|
+
|
312
|
+
const result = remoteMedia.getEffectiveMaxFs();
|
313
|
+
|
314
|
+
// Should return maxFrameSize (500) instead of resolution-based value (3600)
|
315
|
+
assert.strictEqual(result, 920);
|
316
|
+
});
|
317
|
+
|
318
|
+
it('works correctly with different resolution options', () => {
|
319
|
+
const testCases: Array<{ resolution: RemoteVideoResolution; expected: number }> = [
|
320
|
+
{ resolution: 'thumbnail', expected: 60 },
|
321
|
+
{ resolution: 'very small', expected: 240 },
|
322
|
+
{ resolution: 'small', expected: 920 },
|
323
|
+
{ resolution: 'medium', expected: 3600 },
|
324
|
+
{ resolution: 'large', expected: 8192 },
|
325
|
+
{ resolution: 'best', expected: 8192 },
|
326
|
+
];
|
327
|
+
|
328
|
+
testCases.forEach(({ resolution, expected }) => {
|
329
|
+
const testRemoteMedia = new RemoteMedia(fakeReceiveSlot, fakeMediaRequestManager, { resolution });
|
330
|
+
testRemoteMedia.setSizeHint(0, 0); // Ensure maxFrameSize doesn't interfere
|
331
|
+
|
332
|
+
const result = testRemoteMedia.getEffectiveMaxFs();
|
333
|
+
|
334
|
+
assert.strictEqual(result, expected, `Failed for resolution: ${resolution}`);
|
335
|
+
});
|
336
|
+
});
|
337
|
+
});
|
274
338
|
});
|
@@ -272,4 +272,63 @@ describe('SendSlotsManager', () => {
|
|
272
272
|
expect(() => sendSlotsManager.getSlot(MediaType.VideoSlides)).to.throw();
|
273
273
|
});
|
274
274
|
});
|
275
|
+
|
276
|
+
describe('sourceStateOverride', () => {
|
277
|
+
let mediaConnection: MultistreamRoapMediaConnection;
|
278
|
+
beforeEach(() => {
|
279
|
+
mediaConnection = {
|
280
|
+
createSendSlot: sinon.stub().returns({
|
281
|
+
setSourceStateOverride: sinon.stub().resolves(),
|
282
|
+
clearSourceStateOverride: sinon.stub().resolves(),
|
283
|
+
}),
|
284
|
+
} as MultistreamRoapMediaConnection;
|
285
|
+
});
|
286
|
+
|
287
|
+
it(`can set source state override for ${MediaType.VideoMain}`, () => {
|
288
|
+
const slot: any = sendSlotsManager.createSlot(mediaConnection, MediaType.VideoMain);
|
289
|
+
|
290
|
+
const set = () => sendSlotsManager.setSourceStateOverride(MediaType.VideoMain, 'away');
|
291
|
+
|
292
|
+
expect(set).not.to.throw();
|
293
|
+
expect(slot.setSourceStateOverride.calledWith('away')).to.be.true;
|
294
|
+
});
|
295
|
+
|
296
|
+
[MediaType.VideoSlides, MediaType.AudioMain, MediaType.AudioSlides].forEach((mediaType) => {
|
297
|
+
it(`can't set source state override for ${mediaType}`, () => {
|
298
|
+
const slot: any = sendSlotsManager.createSlot(mediaConnection, mediaType);
|
299
|
+
|
300
|
+
const set = () => sendSlotsManager.setSourceStateOverride(mediaType, 'away');
|
301
|
+
|
302
|
+
expect(set).to.throw();
|
303
|
+
expect(slot.setSourceStateOverride.called).to.be.false;
|
304
|
+
});
|
305
|
+
});
|
306
|
+
|
307
|
+
it("can't set source state override for non-existing slot", () => {
|
308
|
+
const set = () => sendSlotsManager.setSourceStateOverride(MediaType.VideoMain, 'away');
|
309
|
+
expect(set).to.throw(`Slot for ${MediaType.VideoMain} does not exist`);
|
310
|
+
});
|
311
|
+
|
312
|
+
it('can clear source state override', () => {
|
313
|
+
const slot: any = sendSlotsManager.createSlot(mediaConnection, MediaType.VideoMain);
|
314
|
+
sendSlotsManager.setSourceStateOverride(MediaType.VideoMain, 'away');
|
315
|
+
|
316
|
+
expect(slot.setSourceStateOverride.calledWith('away')).to.be.true;
|
317
|
+
expect(slot.clearSourceStateOverride.called).to.be.false;
|
318
|
+
|
319
|
+
sendSlotsManager.setSourceStateOverride(MediaType.VideoMain, null);
|
320
|
+
expect(slot.clearSourceStateOverride.called).to.be.true;
|
321
|
+
});
|
322
|
+
|
323
|
+
it("won't set source state override if it didn't change", () => {
|
324
|
+
const slot: any = sendSlotsManager.createSlot(mediaConnection, MediaType.VideoMain);
|
325
|
+
sendSlotsManager.setSourceStateOverride(MediaType.VideoMain, 'away');
|
326
|
+
|
327
|
+
expect(slot.setSourceStateOverride.calledWith('away')).to.be.true;
|
328
|
+
slot.setSourceStateOverride.resetHistory();
|
329
|
+
|
330
|
+
sendSlotsManager.setSourceStateOverride(MediaType.VideoMain, 'away');
|
331
|
+
expect(slot.setSourceStateOverride.called).to.be.false;
|
332
|
+
});
|
333
|
+
});
|
275
334
|
});
|
@@ -3,15 +3,14 @@ import MockWebex from '@webex/test-helper-mock-webex';
|
|
3
3
|
import sinon from 'sinon';
|
4
4
|
import EventEmitter from 'events';
|
5
5
|
import testUtils from '../../../utils/testUtils';
|
6
|
-
import Reachability
|
7
|
-
ReachabilityResultsForBackend,
|
8
|
-
} from '@webex/plugin-meetings/src/reachability/';
|
6
|
+
import Reachability from '@webex/plugin-meetings/src/reachability/';
|
9
7
|
import {ClusterNode} from '../../../../src/reachability/request';
|
10
8
|
import MeetingUtil from '@webex/plugin-meetings/src/meeting/util';
|
11
9
|
import * as ClusterReachabilityModule from '@webex/plugin-meetings/src/reachability/clusterReachability';
|
12
10
|
import Metrics from '@webex/plugin-meetings/src/metrics';
|
13
11
|
|
14
12
|
import {IP_VERSION} from '@webex/plugin-meetings/src/constants';
|
13
|
+
import { ReachabilityResultsForBackend } from '@webex/plugin-meetings/src/reachability/reachability.types';
|
15
14
|
|
16
15
|
describe('isAnyPublicClusterReachable', () => {
|
17
16
|
let webex;
|
@@ -836,6 +835,162 @@ describe('gatherReachability', () => {
|
|
836
835
|
},
|
837
836
|
},
|
838
837
|
// ========================================================================
|
838
|
+
{
|
839
|
+
title: '2 clusters: one with multiple urls, reachability should resolve after the first result for each protocol is ready',
|
840
|
+
waitShortTimeout: false,
|
841
|
+
waitLongTimeout: false,
|
842
|
+
mockClusters: {
|
843
|
+
cluster1: {
|
844
|
+
udp: ['udp-url1-1', 'udp-url1-2'],
|
845
|
+
tcp: ['tcp-url1-1', 'tcp-url1-2'],
|
846
|
+
xtls: ['xtls-url1-1', 'xtls-url1-2'],
|
847
|
+
isVideoMesh: false,
|
848
|
+
},
|
849
|
+
cluster2: {
|
850
|
+
udp: ['udp-url2'],
|
851
|
+
tcp: ['tcp-url2'],
|
852
|
+
xtls: ['xtls-url2'],
|
853
|
+
isVideoMesh: false,
|
854
|
+
},
|
855
|
+
},
|
856
|
+
mockResultReadyEvents: [
|
857
|
+
// results are only for the first url for each protocol not the 2nd one
|
858
|
+
{
|
859
|
+
clusterId: 'cluster1',
|
860
|
+
protocol: 'udp',
|
861
|
+
result: {
|
862
|
+
result: 'reachable',
|
863
|
+
clientMediaIPs: ['1.2.3.4'],
|
864
|
+
latencyInMilliseconds: 10,
|
865
|
+
},
|
866
|
+
},
|
867
|
+
{
|
868
|
+
clusterId: 'cluster1',
|
869
|
+
protocol: 'tcp',
|
870
|
+
result: {
|
871
|
+
result: 'reachable',
|
872
|
+
latencyInMilliseconds: 100,
|
873
|
+
},
|
874
|
+
},
|
875
|
+
{
|
876
|
+
clusterId: 'cluster1',
|
877
|
+
protocol: 'xtls',
|
878
|
+
result: {
|
879
|
+
result: 'reachable',
|
880
|
+
latencyInMilliseconds: 200,
|
881
|
+
},
|
882
|
+
},
|
883
|
+
{
|
884
|
+
clusterId: 'cluster2',
|
885
|
+
protocol: 'udp',
|
886
|
+
result: {
|
887
|
+
result: 'reachable',
|
888
|
+
clientMediaIPs: ['1.2.3.4'],
|
889
|
+
latencyInMilliseconds: 20,
|
890
|
+
},
|
891
|
+
},
|
892
|
+
{
|
893
|
+
clusterId: 'cluster2',
|
894
|
+
protocol: 'tcp',
|
895
|
+
result: {
|
896
|
+
result: 'reachable',
|
897
|
+
latencyInMilliseconds: 110,
|
898
|
+
},
|
899
|
+
},
|
900
|
+
{
|
901
|
+
clusterId: 'cluster2',
|
902
|
+
protocol: 'xtls',
|
903
|
+
result: {
|
904
|
+
result: 'reachable',
|
905
|
+
latencyInMilliseconds: 220,
|
906
|
+
},
|
907
|
+
},
|
908
|
+
],
|
909
|
+
expectedResults: {
|
910
|
+
cluster1: {
|
911
|
+
udp: {result: 'reachable', clientMediaIPs: ['1.2.3.4'], latencyInMilliseconds: 10},
|
912
|
+
tcp: {result: 'reachable', latencyInMilliseconds: 100},
|
913
|
+
xtls: {result: 'reachable', latencyInMilliseconds: 200},
|
914
|
+
isVideoMesh: false,
|
915
|
+
},
|
916
|
+
cluster2: {
|
917
|
+
udp: {result: 'reachable', clientMediaIPs: ['1.2.3.4'], latencyInMilliseconds: 20},
|
918
|
+
tcp: {result: 'reachable', latencyInMilliseconds: 110},
|
919
|
+
xtls: {result: 'reachable', latencyInMilliseconds: 220},
|
920
|
+
isVideoMesh: false,
|
921
|
+
},
|
922
|
+
},
|
923
|
+
expectedMetrics: {
|
924
|
+
vmn_udp_min: -1,
|
925
|
+
vmn_udp_max: -1,
|
926
|
+
vmn_udp_average: -1,
|
927
|
+
public_udp_min: 10,
|
928
|
+
public_udp_max: 20,
|
929
|
+
public_udp_average: 15,
|
930
|
+
public_tcp_min: 100,
|
931
|
+
public_tcp_max: 110,
|
932
|
+
public_tcp_average: 105,
|
933
|
+
public_xtls_min: 200,
|
934
|
+
public_xtls_max: 220,
|
935
|
+
public_xtls_average: 210,
|
936
|
+
},
|
937
|
+
},
|
938
|
+
// ========================================================================
|
939
|
+
{
|
940
|
+
title: '1 cluster with zero urls for TCP, reachability should resolve after the first result for each protocol is ready without waiting for TCP',
|
941
|
+
waitShortTimeout: false,
|
942
|
+
waitLongTimeout: false,
|
943
|
+
mockClusters: {
|
944
|
+
cluster1: {
|
945
|
+
udp: ['udp-url1'],
|
946
|
+
tcp: [],
|
947
|
+
xtls: ['xtls-url1'],
|
948
|
+
isVideoMesh: false,
|
949
|
+
},
|
950
|
+
},
|
951
|
+
mockResultReadyEvents: [
|
952
|
+
{
|
953
|
+
clusterId: 'cluster1',
|
954
|
+
protocol: 'udp',
|
955
|
+
result: {
|
956
|
+
result: 'reachable',
|
957
|
+
clientMediaIPs: ['1.2.3.4'],
|
958
|
+
latencyInMilliseconds: 10,
|
959
|
+
},
|
960
|
+
},
|
961
|
+
{
|
962
|
+
clusterId: 'cluster1',
|
963
|
+
protocol: 'xtls',
|
964
|
+
result: {
|
965
|
+
result: 'reachable',
|
966
|
+
latencyInMilliseconds: 200,
|
967
|
+
},
|
968
|
+
},
|
969
|
+
],
|
970
|
+
expectedResults: {
|
971
|
+
cluster1: {
|
972
|
+
udp: {result: 'reachable', clientMediaIPs: ['1.2.3.4'], latencyInMilliseconds: 10},
|
973
|
+
tcp: {result: 'untested'},
|
974
|
+
xtls: {result: 'reachable', latencyInMilliseconds: 200},
|
975
|
+
isVideoMesh: false,
|
976
|
+
},
|
977
|
+
},
|
978
|
+
expectedMetrics: {
|
979
|
+
vmn_udp_min: -1,
|
980
|
+
vmn_udp_max: -1,
|
981
|
+
vmn_udp_average: -1,
|
982
|
+
public_udp_min: 10,
|
983
|
+
public_udp_max: 10,
|
984
|
+
public_udp_average: 10,
|
985
|
+
public_tcp_min: -1,
|
986
|
+
public_tcp_max: -1,
|
987
|
+
public_tcp_average: -1,
|
988
|
+
public_xtls_min: 200,
|
989
|
+
public_xtls_max: 200,
|
990
|
+
public_xtls_average: 200,
|
991
|
+
},
|
992
|
+
},
|
993
|
+
// ========================================================================
|
839
994
|
{
|
840
995
|
title: '2 clusters: both with no results at all',
|
841
996
|
waitShortTimeout: 'public',
|
@@ -2764,14 +2919,10 @@ describe('isSubnetReachable', () => {
|
|
2764
2919
|
});
|
2765
2920
|
|
2766
2921
|
it('returns true if the subnet is reachable', () => {
|
2767
|
-
assert(reachability.isSubnetReachable('1
|
2922
|
+
assert(reachability.isSubnetReachable('1'));
|
2768
2923
|
});
|
2769
2924
|
|
2770
2925
|
it(`returns false if the subnet is unreachable`, () => {
|
2771
|
-
assert(!reachability.isSubnetReachable('11
|
2772
|
-
});
|
2773
|
-
|
2774
|
-
it('returns null if the subnet is not provided', () => {
|
2775
|
-
assert.isNull(reachability.isSubnetReachable(undefined));
|
2926
|
+
assert(!reachability.isSubnetReachable('11'));
|
2776
2927
|
});
|
2777
2928
|
});
|
@@ -1,42 +0,0 @@
|
|
1
|
-
import { ANNOTATION_POLICY } from './constants';
|
2
|
-
/**
|
3
|
-
* Type for an StrokeData Object
|
4
|
-
*/
|
5
|
-
type StrokeData = {
|
6
|
-
deviceId: string;
|
7
|
-
toUserId: string;
|
8
|
-
requesterId: string;
|
9
|
-
content: string;
|
10
|
-
shareInstanceId: string;
|
11
|
-
encryptionKeyUrl: string;
|
12
|
-
version: string;
|
13
|
-
};
|
14
|
-
type RequestData = {
|
15
|
-
toUserId: string;
|
16
|
-
toDeviceUrl: string;
|
17
|
-
shareInstanceId: string;
|
18
|
-
};
|
19
|
-
type CommandRequestBody = {
|
20
|
-
actionType: string;
|
21
|
-
resourceType: string;
|
22
|
-
shareInstanceId: string;
|
23
|
-
receivers?: any[];
|
24
|
-
};
|
25
|
-
/**
|
26
|
-
* Type for an annotation Object include annotation version and privilege
|
27
|
-
*/
|
28
|
-
type AnnotationInfo = {
|
29
|
-
version: string;
|
30
|
-
policy: ANNOTATION_POLICY;
|
31
|
-
};
|
32
|
-
interface IAnnotationChannel {
|
33
|
-
acceptRequest: (approval: any) => undefined | Promise<void>;
|
34
|
-
declineRequest: (approval: any) => undefined | Promise<void>;
|
35
|
-
closeAnnotation: (requestData: RequestData) => undefined | Promise<void>;
|
36
|
-
approveAnnotation: (requestData: RequestData) => undefined | Promise<void>;
|
37
|
-
cancelApproveAnnotation: (requestData: RequestData, approval: any) => undefined | Promise<void>;
|
38
|
-
sendStrokeData: (strokeData: StrokeData) => void;
|
39
|
-
approvalUrlUpdate: (approvalUrl: string) => void;
|
40
|
-
locusUrlUpdate: (locusUrl: string) => void;
|
41
|
-
}
|
42
|
-
export type { StrokeData, RequestData, CommandRequestBody, IAnnotationChannel, AnnotationInfo };
|