@webex/plugin-meetings 2.60.0-next.9 → 2.60.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/README.md +8 -46
- package/dist/common/browser-detection.js +3 -2
- package/dist/common/browser-detection.js.map +1 -1
- package/dist/common/collection.js +4 -3
- package/dist/common/collection.js.map +1 -1
- package/dist/common/config.js +2 -1
- package/dist/common/config.js.map +1 -1
- package/dist/common/errors/captcha-error.js +2 -1
- package/dist/common/errors/captcha-error.js.map +1 -1
- package/dist/common/errors/intent-to-join.js +2 -1
- package/dist/common/errors/intent-to-join.js.map +1 -1
- package/dist/common/errors/join-meeting.js +2 -1
- package/dist/common/errors/join-meeting.js.map +1 -1
- package/dist/common/errors/media.js +2 -1
- package/dist/common/errors/media.js.map +1 -1
- package/dist/common/errors/parameter.js +4 -3
- package/dist/common/errors/parameter.js.map +1 -1
- package/dist/common/errors/password-error.js +2 -1
- package/dist/common/errors/password-error.js.map +1 -1
- package/dist/common/errors/permission.js +2 -1
- package/dist/common/errors/permission.js.map +1 -1
- package/dist/common/errors/{reclaim-host-role-errors.js → reclaim-host-role-error.js} +11 -7
- package/dist/common/errors/reclaim-host-role-error.js.map +1 -0
- package/dist/common/errors/reconnection-in-progress.js +2 -1
- package/dist/common/errors/reconnection-in-progress.js.map +1 -1
- package/dist/common/errors/reconnection.js +2 -1
- package/dist/common/errors/reconnection.js.map +1 -1
- package/dist/common/errors/stats.js +2 -1
- package/dist/common/errors/stats.js.map +1 -1
- package/dist/common/errors/webex-errors.d.ts +8 -20
- package/dist/common/errors/webex-errors.js +28 -48
- package/dist/common/errors/webex-errors.js.map +1 -1
- package/dist/common/errors/webex-meetings-error.js +2 -1
- package/dist/common/errors/webex-meetings-error.js.map +1 -1
- package/dist/common/events/events-scope.js +2 -1
- package/dist/common/events/events-scope.js.map +1 -1
- package/dist/common/events/events.js +2 -1
- package/dist/common/events/events.js.map +1 -1
- package/dist/common/events/trigger-proxy.js +2 -1
- package/dist/common/events/trigger-proxy.js.map +1 -1
- package/dist/common/events/util.js +2 -1
- package/dist/common/events/util.js.map +1 -1
- package/dist/common/logs/logger-config.js +2 -1
- package/dist/common/logs/logger-config.js.map +1 -1
- package/dist/common/logs/logger-proxy.js +3 -2
- package/dist/common/logs/logger-proxy.js.map +1 -1
- package/dist/common/logs/request.d.ts +1 -3
- package/dist/common/logs/request.js +5 -8
- package/dist/common/logs/request.js.map +1 -1
- package/dist/common/queue.d.ts +7 -9
- package/dist/common/queue.js +9 -22
- package/dist/common/queue.js.map +1 -1
- package/dist/config.d.ts +7 -5
- package/dist/config.js +11 -8
- package/dist/config.js.map +1 -1
- package/dist/constants.d.ts +97 -217
- package/dist/constants.js +441 -416
- package/dist/constants.js.map +1 -1
- package/dist/controls-options-manager/constants.js +6 -3
- package/dist/controls-options-manager/constants.js.map +1 -1
- package/dist/controls-options-manager/enums.d.ts +1 -11
- package/dist/controls-options-manager/enums.js +6 -15
- package/dist/controls-options-manager/enums.js.map +1 -1
- package/dist/controls-options-manager/index.d.ts +1 -17
- package/dist/controls-options-manager/index.js +38 -127
- package/dist/controls-options-manager/index.js.map +1 -1
- package/dist/controls-options-manager/util.d.ts +7 -1
- package/dist/controls-options-manager/util.js +19 -309
- package/dist/controls-options-manager/util.js.map +1 -1
- package/dist/index.d.ts +3 -6
- package/dist/index.js +4 -116
- package/dist/index.js.map +1 -1
- package/dist/locus-info/controlsUtils.js +11 -100
- package/dist/locus-info/controlsUtils.js.map +1 -1
- package/dist/locus-info/embeddedAppsUtils.js +4 -3
- package/dist/locus-info/embeddedAppsUtils.js.map +1 -1
- package/dist/locus-info/fullState.js +2 -1
- package/dist/locus-info/fullState.js.map +1 -1
- package/dist/locus-info/hostUtils.js +2 -1
- package/dist/locus-info/hostUtils.js.map +1 -1
- package/dist/locus-info/index.d.ts +4 -57
- package/dist/locus-info/index.js +84 -425
- package/dist/locus-info/index.js.map +1 -1
- package/dist/locus-info/infoUtils.js +5 -13
- package/dist/locus-info/infoUtils.js.map +1 -1
- package/dist/locus-info/mediaSharesUtils.js +3 -58
- package/dist/locus-info/mediaSharesUtils.js.map +1 -1
- package/dist/locus-info/parser.d.ts +6 -66
- package/dist/locus-info/parser.js +80 -253
- package/dist/locus-info/parser.js.map +1 -1
- package/dist/locus-info/selfUtils.js +13 -97
- package/dist/locus-info/selfUtils.js.map +1 -1
- package/dist/media/index.d.ts +0 -2
- package/dist/media/index.js +319 -107
- package/dist/media/index.js.map +1 -1
- package/dist/media/properties.d.ts +53 -38
- package/dist/media/properties.js +153 -96
- package/dist/media/properties.js.map +1 -1
- package/dist/media/util.js +22 -1
- package/dist/media/util.js.map +1 -1
- package/dist/mediaQualityMetrics/config.d.ts +230 -234
- package/dist/mediaQualityMetrics/config.js +498 -302
- package/dist/mediaQualityMetrics/config.js.map +1 -1
- package/dist/meeting/effectsState.d.ts +42 -0
- package/dist/meeting/effectsState.js +260 -0
- package/dist/meeting/effectsState.js.map +1 -0
- package/dist/meeting/in-meeting-actions.d.ts +0 -88
- package/dist/meeting/in-meeting-actions.js +3 -94
- package/dist/meeting/in-meeting-actions.js.map +1 -1
- package/dist/meeting/index.d.ts +494 -591
- package/dist/meeting/index.js +2969 -4707
- package/dist/meeting/index.js.map +1 -1
- package/dist/meeting/muteState.d.ts +25 -93
- package/dist/meeting/muteState.js +133 -224
- package/dist/meeting/muteState.js.map +1 -1
- package/dist/meeting/request.d.ts +47 -82
- package/dist/meeting/request.js +199 -297
- package/dist/meeting/request.js.map +1 -1
- package/dist/meeting/state.js +2 -1
- package/dist/meeting/state.js.map +1 -1
- package/dist/meeting/util.d.ts +1 -102
- package/dist/meeting/util.js +435 -605
- package/dist/meeting/util.js.map +1 -1
- package/dist/meeting-info/collection.js +4 -3
- package/dist/meeting-info/collection.js.map +1 -1
- package/dist/meeting-info/index.d.ts +1 -13
- package/dist/meeting-info/index.js +7 -74
- package/dist/meeting-info/index.js.map +1 -1
- package/dist/meeting-info/meeting-info-v2.d.ts +1 -31
- package/dist/meeting-info/meeting-info-v2.js +63 -200
- package/dist/meeting-info/meeting-info-v2.js.map +1 -1
- package/dist/meeting-info/request.js +2 -1
- package/dist/meeting-info/request.js.map +1 -1
- package/dist/meeting-info/util.js +3 -2
- package/dist/meeting-info/util.js.map +1 -1
- package/dist/meeting-info/utilv2.js +41 -39
- package/dist/meeting-info/utilv2.js.map +1 -1
- package/dist/meetings/collection.d.ts +0 -17
- package/dist/meetings/collection.js +4 -42
- package/dist/meetings/collection.js.map +1 -1
- package/dist/meetings/index.d.ts +21 -103
- package/dist/meetings/index.js +124 -486
- package/dist/meetings/index.js.map +1 -1
- package/dist/meetings/request.js +3 -4
- package/dist/meetings/request.js.map +1 -1
- package/dist/meetings/util.js +6 -107
- package/dist/meetings/util.js.map +1 -1
- package/dist/member/index.d.ts +1 -13
- package/dist/member/index.js +2 -45
- package/dist/member/index.js.map +1 -1
- package/dist/member/member.types.js +4 -3
- package/dist/member/member.types.js.map +1 -1
- package/dist/member/util.js +29 -120
- package/dist/member/util.js.map +1 -1
- package/dist/members/collection.d.ts +0 -5
- package/dist/members/collection.js +2 -11
- package/dist/members/collection.js.map +1 -1
- package/dist/members/index.d.ts +11 -56
- package/dist/members/index.js +47 -174
- package/dist/members/index.js.map +1 -1
- package/dist/members/request.d.ts +11 -67
- package/dist/members/request.js +54 -102
- package/dist/members/request.js.map +1 -1
- package/dist/members/types.js +4 -3
- package/dist/members/types.js.map +1 -1
- package/dist/members/util.d.ts +1 -214
- package/dist/members/util.js +284 -327
- package/dist/members/util.js.map +1 -1
- package/dist/metrics/config.d.ts +169 -0
- package/dist/metrics/config.js +289 -0
- package/dist/metrics/config.js.map +1 -0
- package/dist/metrics/constants.d.ts +6 -15
- package/dist/metrics/constants.js +9 -17
- package/dist/metrics/constants.js.map +1 -1
- package/dist/metrics/index.d.ts +111 -4
- package/dist/metrics/index.js +452 -4
- package/dist/metrics/index.js.map +1 -1
- package/dist/networkQualityMonitor/index.js +4 -5
- package/dist/networkQualityMonitor/index.js.map +1 -1
- package/dist/peer-connection-manager/index.d.ts +6 -0
- package/dist/peer-connection-manager/index.js +671 -0
- package/dist/peer-connection-manager/index.js.map +1 -0
- package/dist/peer-connection-manager/util.d.ts +6 -0
- package/dist/peer-connection-manager/util.js +110 -0
- package/dist/peer-connection-manager/util.js.map +1 -0
- package/dist/personal-meeting-room/index.js +3 -2
- package/dist/personal-meeting-room/index.js.map +1 -1
- package/dist/personal-meeting-room/request.js +3 -2
- package/dist/personal-meeting-room/request.js.map +1 -1
- package/dist/personal-meeting-room/util.js +2 -1
- package/dist/personal-meeting-room/util.js.map +1 -1
- package/dist/reachability/index.d.ts +7 -62
- package/dist/reachability/index.js +72 -265
- package/dist/reachability/index.js.map +1 -1
- package/dist/reachability/request.d.ts +3 -7
- package/dist/reachability/request.js +10 -18
- package/dist/reachability/request.js.map +1 -1
- package/dist/reactions/reactions.d.ts +2 -2
- package/dist/reactions/reactions.js +6 -4
- package/dist/reactions/reactions.js.map +1 -1
- package/dist/reactions/reactions.type.d.ts +3 -23
- package/dist/reactions/reactions.type.js +23 -21
- package/dist/reactions/reactions.type.js.map +1 -1
- package/dist/reconnection-manager/index.d.ts +8 -32
- package/dist/reconnection-manager/index.js +231 -282
- package/dist/reconnection-manager/index.js.map +1 -1
- package/dist/recording-controller/enums.js +5 -4
- package/dist/recording-controller/enums.js.map +1 -1
- package/dist/recording-controller/index.d.ts +1 -15
- package/dist/recording-controller/index.js +46 -57
- package/dist/recording-controller/index.js.map +1 -1
- package/dist/recording-controller/util.d.ts +4 -5
- package/dist/recording-controller/util.js +10 -10
- package/dist/recording-controller/util.js.map +1 -1
- package/dist/roap/collection.d.ts +10 -0
- package/dist/roap/collection.js +63 -0
- package/dist/roap/collection.js.map +1 -0
- package/dist/roap/handler.d.ts +47 -0
- package/dist/roap/handler.js +279 -0
- package/dist/roap/handler.js.map +1 -0
- package/dist/roap/index.d.ts +47 -9
- package/dist/roap/index.js +235 -101
- package/dist/roap/index.js.map +1 -1
- package/dist/roap/request.d.ts +12 -18
- package/dist/roap/request.js +180 -126
- package/dist/roap/request.js.map +1 -1
- package/dist/roap/state.d.ts +9 -0
- package/dist/roap/state.js +127 -0
- package/dist/roap/state.js.map +1 -0
- package/dist/roap/turnDiscovery.d.ts +16 -27
- package/dist/roap/turnDiscovery.js +105 -115
- package/dist/roap/turnDiscovery.js.map +1 -1
- package/dist/roap/util.d.ts +2 -0
- package/dist/roap/util.js +76 -0
- package/dist/roap/util.js.map +1 -0
- package/dist/statsAnalyzer/global.d.ts +83 -1
- package/dist/statsAnalyzer/global.js +85 -2
- package/dist/statsAnalyzer/global.js.map +1 -1
- package/dist/statsAnalyzer/index.d.ts +30 -28
- package/dist/statsAnalyzer/index.js +509 -374
- package/dist/statsAnalyzer/index.js.map +1 -1
- package/dist/statsAnalyzer/mqaUtil.d.ts +6 -8
- package/dist/statsAnalyzer/mqaUtil.js +83 -116
- package/dist/statsAnalyzer/mqaUtil.js.map +1 -1
- package/dist/transcription/index.js +2 -1
- package/dist/transcription/index.js.map +1 -1
- package/package.json +26 -35
- package/src/common/errors/webex-errors.ts +12 -36
- package/src/common/logs/logger-proxy.ts +1 -1
- package/src/common/logs/request.ts +1 -5
- package/src/common/queue.ts +8 -22
- package/src/config.ts +7 -5
- package/src/constants.ts +97 -244
- package/src/controls-options-manager/enums.ts +0 -12
- package/src/controls-options-manager/index.ts +21 -116
- package/src/controls-options-manager/util.ts +14 -294
- package/src/index.js +15 -0
- package/src/locus-info/controlsUtils.ts +0 -110
- package/src/locus-info/index.ts +61 -449
- package/src/locus-info/infoUtils.ts +2 -14
- package/src/locus-info/mediaSharesUtils.ts +0 -64
- package/src/locus-info/parser.ts +47 -258
- package/src/locus-info/selfUtils.ts +2 -85
- package/src/media/index.ts +370 -153
- package/src/media/properties.ts +136 -106
- package/src/media/util.ts +21 -0
- package/src/mediaQualityMetrics/config.ts +377 -244
- package/src/meeting/effectsState.ts +209 -0
- package/src/meeting/in-meeting-actions.ts +0 -176
- package/src/meeting/index.ts +2482 -3929
- package/src/meeting/muteState.ts +138 -224
- package/src/meeting/request.ts +127 -207
- package/src/meeting/util.ts +423 -590
- package/src/meeting-info/index.ts +8 -81
- package/src/meeting-info/meeting-info-v2.ts +13 -163
- package/src/meeting-info/util.ts +1 -1
- package/src/meeting-info/utilv2.ts +28 -28
- package/src/meetings/collection.ts +0 -33
- package/src/meetings/index.ts +126 -486
- package/src/meetings/request.ts +0 -2
- package/src/meetings/util.ts +5 -116
- package/src/member/index.ts +1 -43
- package/src/member/util.ts +28 -125
- package/src/members/collection.ts +0 -8
- package/src/members/index.ts +52 -187
- package/src/members/request.ts +27 -87
- package/src/members/util.ts +291 -332
- package/src/metrics/config.ts +485 -0
- package/src/metrics/constants.ts +6 -15
- package/src/metrics/index.ts +471 -1
- package/src/networkQualityMonitor/index.ts +6 -6
- package/src/peer-connection-manager/index.ts +847 -0
- package/src/peer-connection-manager/util.ts +119 -0
- package/src/reachability/index.ts +45 -238
- package/src/reachability/request.ts +8 -17
- package/src/reactions/reactions.ts +4 -4
- package/src/reactions/reactions.type.ts +4 -30
- package/src/reconnection-manager/index.ts +156 -168
- package/src/recording-controller/index.ts +3 -20
- package/src/recording-controller/util.ts +9 -26
- package/src/roap/collection.ts +62 -0
- package/src/roap/handler.ts +294 -0
- package/src/roap/index.ts +241 -98
- package/src/roap/request.ts +148 -74
- package/src/roap/state.ts +156 -0
- package/src/roap/turnDiscovery.ts +56 -62
- package/src/roap/util.ts +100 -0
- package/src/statsAnalyzer/global.ts +84 -1
- package/src/statsAnalyzer/index.ts +642 -413
- package/src/statsAnalyzer/mqaUtil.ts +114 -111
- package/test/integration/spec/journey.js +264 -320
- package/test/integration/spec/space-meeting.js +4 -77
- package/test/unit/spec/common/queue.js +2 -31
- package/test/unit/spec/controls-options-manager/index.js +0 -163
- package/test/unit/spec/controls-options-manager/util.js +60 -576
- package/test/unit/spec/fixture/locus.js +0 -1
- package/test/unit/spec/locus-info/controlsUtils.js +30 -323
- package/test/unit/spec/locus-info/index.js +15 -1389
- package/test/unit/spec/locus-info/infoUtils.js +16 -54
- package/test/unit/spec/locus-info/lib/SeqCmp.json +0 -16
- package/test/unit/spec/locus-info/lib/selfConstant.js +0 -48
- package/test/unit/spec/locus-info/parser.js +35 -116
- package/test/unit/spec/locus-info/selfUtils.js +0 -275
- package/test/unit/spec/media/properties.ts +84 -75
- package/test/unit/spec/meeting/effectsState.js +281 -0
- package/test/unit/spec/meeting/in-meeting-actions.ts +0 -86
- package/test/unit/spec/meeting/index.js +3136 -8547
- package/test/unit/spec/meeting/muteState.js +213 -409
- package/test/unit/spec/meeting/request.js +42 -512
- package/test/unit/spec/meeting/utils.js +24 -741
- package/test/unit/spec/meeting-info/meetinginfov2.js +5 -527
- package/test/unit/spec/meeting-info/utilv2.js +0 -21
- package/test/unit/spec/meetings/collection.js +0 -26
- package/test/unit/spec/meetings/index.js +211 -1278
- package/test/unit/spec/meetings/utils.js +2 -202
- package/test/unit/spec/member/index.js +9 -32
- package/test/unit/spec/member/util.js +61 -499
- package/test/unit/spec/members/index.js +5 -394
- package/test/unit/spec/members/request.js +27 -206
- package/test/unit/spec/members/utils.js +38 -173
- package/test/unit/spec/metrics/index.js +50 -1
- package/test/unit/spec/networkQualityMonitor/index.js +4 -4
- package/test/unit/spec/peerconnection-manager/index.js +218 -0
- package/test/unit/spec/peerconnection-manager/utils.js +49 -0
- package/test/unit/spec/peerconnection-manager/utils.test-fixtures.ts +388 -0
- package/test/unit/spec/reachability/index.ts +24 -598
- package/test/unit/spec/reconnection-manager/index.js +24 -162
- package/test/unit/spec/recording-controller/index.js +218 -293
- package/test/unit/spec/recording-controller/util.js +96 -223
- package/test/unit/spec/roap/index.ts +76 -200
- package/test/unit/spec/roap/turnDiscovery.ts +48 -86
- package/test/unit/spec/roap/util.js +30 -0
- package/test/unit/spec/stats-analyzer/index.js +174 -188
- package/test/utils/testUtils.js +45 -0
- package/test/utils/webex-config.js +0 -4
- package/test/utils/webex-test-users.js +3 -7
- package/dist/annotation/annotation.types.d.ts +0 -42
- package/dist/annotation/annotation.types.js +0 -7
- package/dist/annotation/annotation.types.js.map +0 -1
- package/dist/annotation/constants.d.ts +0 -31
- package/dist/annotation/constants.js +0 -41
- package/dist/annotation/constants.js.map +0 -1
- package/dist/annotation/index.d.ts +0 -117
- package/dist/annotation/index.js +0 -357
- package/dist/annotation/index.js.map +0 -1
- package/dist/breakouts/breakout.d.ts +0 -8
- package/dist/breakouts/breakout.js +0 -215
- package/dist/breakouts/breakout.js.map +0 -1
- package/dist/breakouts/collection.d.ts +0 -5
- package/dist/breakouts/collection.js +0 -22
- package/dist/breakouts/collection.js.map +0 -1
- package/dist/breakouts/edit-lock-error.d.ts +0 -15
- package/dist/breakouts/edit-lock-error.js +0 -51
- package/dist/breakouts/edit-lock-error.js.map +0 -1
- package/dist/breakouts/events.d.ts +0 -8
- package/dist/breakouts/events.js +0 -44
- package/dist/breakouts/events.js.map +0 -1
- package/dist/breakouts/index.d.ts +0 -5
- package/dist/breakouts/index.js +0 -1047
- package/dist/breakouts/index.js.map +0 -1
- package/dist/breakouts/request.d.ts +0 -22
- package/dist/breakouts/request.js +0 -77
- package/dist/breakouts/request.js.map +0 -1
- package/dist/breakouts/utils.d.ts +0 -15
- package/dist/breakouts/utils.js +0 -64
- package/dist/breakouts/utils.js.map +0 -1
- package/dist/common/errors/no-meeting-info.d.ts +0 -14
- package/dist/common/errors/no-meeting-info.js +0 -50
- package/dist/common/errors/no-meeting-info.js.map +0 -1
- package/dist/common/errors/reclaim-host-role-errors.js.map +0 -1
- package/dist/controls-options-manager/types.d.ts +0 -43
- package/dist/controls-options-manager/types.js +0 -7
- package/dist/controls-options-manager/types.js.map +0 -1
- package/dist/interpretation/collection.d.ts +0 -5
- package/dist/interpretation/collection.js +0 -22
- package/dist/interpretation/collection.js.map +0 -1
- package/dist/interpretation/index.d.ts +0 -5
- package/dist/interpretation/index.js +0 -365
- package/dist/interpretation/index.js.map +0 -1
- package/dist/interpretation/siLanguage.d.ts +0 -5
- package/dist/interpretation/siLanguage.js +0 -24
- package/dist/interpretation/siLanguage.js.map +0 -1
- package/dist/meeting/locusMediaRequest.d.ts +0 -74
- package/dist/meeting/locusMediaRequest.js +0 -291
- package/dist/meeting/locusMediaRequest.js.map +0 -1
- package/dist/meeting/request.type.d.ts +0 -11
- package/dist/meeting/request.type.js +0 -7
- package/dist/meeting/request.type.js.map +0 -1
- package/dist/meetings/meetings.types.d.ts +0 -4
- package/dist/meetings/meetings.types.js +0 -7
- package/dist/meetings/meetings.types.js.map +0 -1
- package/dist/member/types.d.ts +0 -32
- package/dist/member/types.js +0 -23
- package/dist/member/types.js.map +0 -1
- package/dist/multistream/mediaRequestManager.d.ts +0 -118
- package/dist/multistream/mediaRequestManager.js +0 -344
- package/dist/multistream/mediaRequestManager.js.map +0 -1
- package/dist/multistream/receiveSlot.d.ts +0 -68
- package/dist/multistream/receiveSlot.js +0 -200
- package/dist/multistream/receiveSlot.js.map +0 -1
- package/dist/multistream/receiveSlotManager.d.ts +0 -56
- package/dist/multistream/receiveSlotManager.js +0 -174
- package/dist/multistream/receiveSlotManager.js.map +0 -1
- package/dist/multistream/remoteMedia.d.ts +0 -72
- package/dist/multistream/remoteMedia.js +0 -268
- package/dist/multistream/remoteMedia.js.map +0 -1
- package/dist/multistream/remoteMediaGroup.d.ts +0 -47
- package/dist/multistream/remoteMediaGroup.js +0 -267
- package/dist/multistream/remoteMediaGroup.js.map +0 -1
- package/dist/multistream/remoteMediaManager.d.ts +0 -285
- package/dist/multistream/remoteMediaManager.js +0 -1211
- package/dist/multistream/remoteMediaManager.js.map +0 -1
- package/dist/multistream/sendSlotManager.d.ts +0 -61
- package/dist/multistream/sendSlotManager.js +0 -236
- package/dist/multistream/sendSlotManager.js.map +0 -1
- package/dist/reactions/constants.d.ts +0 -3
- package/dist/reactions/constants.js +0 -12
- package/dist/reactions/constants.js.map +0 -1
- package/dist/rtcMetrics/constants.d.ts +0 -4
- package/dist/rtcMetrics/constants.js +0 -11
- package/dist/rtcMetrics/constants.js.map +0 -1
- package/dist/rtcMetrics/index.d.ts +0 -54
- package/dist/rtcMetrics/index.js +0 -140
- package/dist/rtcMetrics/index.js.map +0 -1
- package/dist/webinar/collection.d.ts +0 -16
- package/dist/webinar/collection.js +0 -43
- package/dist/webinar/collection.js.map +0 -1
- package/dist/webinar/index.d.ts +0 -5
- package/dist/webinar/index.js +0 -68
- package/dist/webinar/index.js.map +0 -1
- package/src/annotation/annotation.types.ts +0 -50
- package/src/annotation/constants.ts +0 -36
- package/src/annotation/index.ts +0 -328
- package/src/breakouts/README.md +0 -220
- package/src/breakouts/breakout.ts +0 -188
- package/src/breakouts/collection.ts +0 -19
- package/src/breakouts/edit-lock-error.ts +0 -25
- package/src/breakouts/events.ts +0 -56
- package/src/breakouts/index.ts +0 -925
- package/src/breakouts/request.ts +0 -55
- package/src/breakouts/utils.ts +0 -57
- package/src/common/errors/no-meeting-info.ts +0 -24
- package/src/controls-options-manager/types.ts +0 -59
- package/src/index.ts +0 -40
- package/src/interpretation/README.md +0 -60
- package/src/interpretation/collection.ts +0 -19
- package/src/interpretation/index.ts +0 -332
- package/src/interpretation/siLanguage.ts +0 -18
- package/src/meeting/locusMediaRequest.ts +0 -313
- package/src/meeting/request.type.ts +0 -13
- package/src/meetings/meetings.types.ts +0 -12
- package/src/member/types.ts +0 -38
- package/src/multistream/mediaRequestManager.ts +0 -440
- package/src/multistream/receiveSlot.ts +0 -184
- package/src/multistream/receiveSlotManager.ts +0 -166
- package/src/multistream/remoteMedia.ts +0 -254
- package/src/multistream/remoteMediaGroup.ts +0 -284
- package/src/multistream/remoteMediaManager.ts +0 -1145
- package/src/multistream/sendSlotManager.ts +0 -170
- package/src/reactions/constants.ts +0 -4
- package/src/rtcMetrics/constants.ts +0 -3
- package/src/rtcMetrics/index.ts +0 -124
- package/src/webinar/collection.ts +0 -31
- package/src/webinar/index.ts +0 -62
- package/test/integration/spec/converged-space-meetings.js +0 -233
- package/test/unit/spec/annotation/index.ts +0 -418
- package/test/unit/spec/breakouts/breakout.ts +0 -237
- package/test/unit/spec/breakouts/collection.ts +0 -15
- package/test/unit/spec/breakouts/edit-lock-error.ts +0 -30
- package/test/unit/spec/breakouts/events.ts +0 -89
- package/test/unit/spec/breakouts/index.ts +0 -1790
- package/test/unit/spec/breakouts/request.ts +0 -104
- package/test/unit/spec/breakouts/utils.js +0 -72
- package/test/unit/spec/interpretation/collection.ts +0 -15
- package/test/unit/spec/interpretation/index.ts +0 -589
- package/test/unit/spec/interpretation/siLanguage.ts +0 -28
- package/test/unit/spec/locus-info/mediaSharesUtils.ts +0 -32
- package/test/unit/spec/media/index.ts +0 -290
- package/test/unit/spec/meeting/locusMediaRequest.ts +0 -442
- package/test/unit/spec/meeting-info/index.js +0 -300
- package/test/unit/spec/multistream/mediaRequestManager.ts +0 -1418
- package/test/unit/spec/multistream/receiveSlot.ts +0 -163
- package/test/unit/spec/multistream/receiveSlotManager.ts +0 -203
- package/test/unit/spec/multistream/remoteMedia.ts +0 -255
- package/test/unit/spec/multistream/remoteMediaGroup.ts +0 -662
- package/test/unit/spec/multistream/remoteMediaManager.ts +0 -1924
- package/test/unit/spec/multistream/sendSlotManager.ts +0 -242
- package/test/unit/spec/reachability/request.js +0 -68
- package/test/unit/spec/roap/request.ts +0 -232
- package/test/unit/spec/rtcMetrics/index.ts +0 -93
- package/test/unit/spec/webinar/collection.ts +0 -13
- package/test/unit/spec/webinar/index.ts +0 -60
- package/test/utils/constants.js +0 -9
- package/test/utils/integrationTestUtils.js +0 -46
- /package/dist/common/errors/{reclaim-host-role-errors.d.ts → reclaim-host-role-error.d.ts} +0 -0
- /package/src/common/errors/{reclaim-host-role-errors.ts → reclaim-host-role-error.ts} +0 -0
|
@@ -1,418 +0,0 @@
|
|
|
1
|
-
import MockWebex from '@webex/test-helper-mock-webex';
|
|
2
|
-
import MockWebSocket from '@webex/test-helper-mock-web-socket';
|
|
3
|
-
import {assert} from '@webex/test-helper-chai';
|
|
4
|
-
import sinon from 'sinon';
|
|
5
|
-
import Mercury from '@webex/internal-plugin-mercury';
|
|
6
|
-
import LLMChannel from '@webex/internal-plugin-llm';
|
|
7
|
-
|
|
8
|
-
import AnnotationService from '../../../../src/annotation/index';
|
|
9
|
-
import {ANNOTATION_RELAY_TYPES, ANNOTATION_REQUEST_TYPE, EVENT_TRIGGERS} from '../../../../src/annotation/constants';
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
describe('live-annotation', () => {
|
|
13
|
-
const locusUrl = 'https://locus.wbx2.com/locus/api/v1/loci/163c1787-c1f5-47cc-95eb-ab2d660999e6';
|
|
14
|
-
|
|
15
|
-
describe('annotation', () => {
|
|
16
|
-
let webex, annotationService;
|
|
17
|
-
|
|
18
|
-
beforeEach(() => {
|
|
19
|
-
webex = new MockWebex({
|
|
20
|
-
children: {
|
|
21
|
-
mercury: Mercury,
|
|
22
|
-
llm: LLMChannel,
|
|
23
|
-
annotation: AnnotationService,
|
|
24
|
-
},
|
|
25
|
-
});
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
annotationService = webex.internal.annotation;
|
|
29
|
-
annotationService.connect = sinon.stub().resolves(true);
|
|
30
|
-
annotationService.webex.internal.llm.isConnected = sinon.stub().returns(true);
|
|
31
|
-
annotationService.webex.internal.llm.getBinding = sinon.stub().returns(undefined);
|
|
32
|
-
annotationService.webex.internal.llm.getLocusUrl = sinon.stub().returns(locusUrl);
|
|
33
|
-
annotationService.approvalUrl = 'url/approval';
|
|
34
|
-
annotationService.locusUrl = locusUrl;
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
webex.request = sinon.stub().returns(Promise.resolve('REQUEST_RETURN_VALUE'));
|
|
38
|
-
annotationService.register = sinon.stub().resolves({
|
|
39
|
-
body: {
|
|
40
|
-
binding: 'binding',
|
|
41
|
-
webSocketUrl: 'url',
|
|
42
|
-
},
|
|
43
|
-
});
|
|
44
|
-
});
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
describe('event message processing', () => {
|
|
48
|
-
beforeEach(async () => {
|
|
49
|
-
annotationService.decryptContent = sinon.stub().returns(Promise.resolve('decryptedContent'));
|
|
50
|
-
});
|
|
51
|
-
|
|
52
|
-
it('eventCommandProcessor call failed', () => {
|
|
53
|
-
const spy = sinon.spy();
|
|
54
|
-
annotationService.on(EVENT_TRIGGERS.ANNOTATION_COMMAND, spy);
|
|
55
|
-
annotationService.eventCommandProcessor({});
|
|
56
|
-
assert.notCalled(spy);
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
annotationService.eventCommandProcessor({
|
|
60
|
-
data: {
|
|
61
|
-
}
|
|
62
|
-
});
|
|
63
|
-
assert.notCalled(spy);
|
|
64
|
-
|
|
65
|
-
annotationService.eventCommandProcessor({
|
|
66
|
-
data: {
|
|
67
|
-
eventType: 'not:locus.approval_request',
|
|
68
|
-
approval: {
|
|
69
|
-
resourceType: 'AnnotationOnShare',
|
|
70
|
-
actionType: 'actionType'
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
});
|
|
74
|
-
assert.notCalled(spy);
|
|
75
|
-
|
|
76
|
-
annotationService.eventCommandProcessor({
|
|
77
|
-
data: {
|
|
78
|
-
eventType: 'locus.approval_request',
|
|
79
|
-
approval: {
|
|
80
|
-
resourceType: 'not:AnnotationOnShare',
|
|
81
|
-
actionType: 'actionType'
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
});
|
|
85
|
-
assert.notCalled(spy);
|
|
86
|
-
|
|
87
|
-
annotationService.eventCommandProcessor({
|
|
88
|
-
data: {
|
|
89
|
-
eventType: 'locus.approval_request',
|
|
90
|
-
approval: {
|
|
91
|
-
resourceType: 'AnnotationOnShare',
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
});
|
|
95
|
-
assert.notCalled(spy)
|
|
96
|
-
});
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
it('eventCommandProcessor call success', () => {
|
|
101
|
-
const spy = sinon.spy();
|
|
102
|
-
annotationService.on(EVENT_TRIGGERS.ANNOTATION_COMMAND, spy);
|
|
103
|
-
|
|
104
|
-
annotationService.eventCommandProcessor({
|
|
105
|
-
data: {
|
|
106
|
-
eventType: 'locus.approval_request',
|
|
107
|
-
approval: {
|
|
108
|
-
resourceType: 'AnnotationOnShare',
|
|
109
|
-
actionType: 'actionType'
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
});
|
|
113
|
-
|
|
114
|
-
assert.calledOnceWithExactly(spy, {
|
|
115
|
-
type: 'actionType',
|
|
116
|
-
payload: {
|
|
117
|
-
resourceType: 'AnnotationOnShare',
|
|
118
|
-
actionType: 'actionType',
|
|
119
|
-
},
|
|
120
|
-
});
|
|
121
|
-
});
|
|
122
|
-
|
|
123
|
-
it('eventDataProcessor call failed', () => {
|
|
124
|
-
|
|
125
|
-
const spy = sinon.spy(annotationService, "processStrokeMessage");
|
|
126
|
-
|
|
127
|
-
annotationService.eventDataProcessor();
|
|
128
|
-
|
|
129
|
-
assert.notCalled(spy);
|
|
130
|
-
|
|
131
|
-
annotationService.eventDataProcessor({data: {}});
|
|
132
|
-
|
|
133
|
-
assert.notCalled(spy);
|
|
134
|
-
|
|
135
|
-
annotationService.eventDataProcessor({data: {relayType: 'NOT:annotation.client'}});
|
|
136
|
-
|
|
137
|
-
assert.notCalled(spy);
|
|
138
|
-
});
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
it('eventDataProcessor call success', () => {
|
|
142
|
-
|
|
143
|
-
const spy = sinon.spy(annotationService, "processStrokeMessage");
|
|
144
|
-
|
|
145
|
-
annotationService.eventDataProcessor({data: {relayType: 'annotation.client', request:{value:{encryptionKeyUrl:"encryptionKeyUrl"}}}});
|
|
146
|
-
|
|
147
|
-
assert.calledOnceWithExactly(spy, {
|
|
148
|
-
relayType: 'annotation.client',
|
|
149
|
-
request: { value: { encryptionKeyUrl: 'encryptionKeyUrl' } }
|
|
150
|
-
} );
|
|
151
|
-
|
|
152
|
-
});
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
it('processStrokeMessage', async () => {
|
|
156
|
-
const spy = sinon.spy();
|
|
157
|
-
annotationService.on(EVENT_TRIGGERS.ANNOTATION_STROKE_DATA, spy);
|
|
158
|
-
|
|
159
|
-
await annotationService.processStrokeMessage({request:{value:{encryptionKeyUrl: 'encryptionKeyUrl', content: 'content'}}});
|
|
160
|
-
|
|
161
|
-
assert.calledOnceWithExactly(spy, {
|
|
162
|
-
payload:{request:{value:{encryptionKeyUrl: 'encryptionKeyUrl', content: 'decryptedContent'}}} ,
|
|
163
|
-
});
|
|
164
|
-
|
|
165
|
-
});
|
|
166
|
-
|
|
167
|
-
});
|
|
168
|
-
|
|
169
|
-
describe('event message processing',() =>{
|
|
170
|
-
|
|
171
|
-
it('listens to mercury events once', () => {
|
|
172
|
-
|
|
173
|
-
const spy = sinon.spy(annotationService.webex.internal.mercury, 'on');
|
|
174
|
-
|
|
175
|
-
annotationService.listenToEvents();
|
|
176
|
-
|
|
177
|
-
assert.calledOnceWithExactly(spy, 'event:locus.approval_request', sinon.match.func,sinon.match.object);
|
|
178
|
-
});
|
|
179
|
-
|
|
180
|
-
it('listens to llm events once', () => {
|
|
181
|
-
|
|
182
|
-
const spy = sinon.spy(webex.internal.llm, 'on');
|
|
183
|
-
|
|
184
|
-
annotationService.listenToEvents();
|
|
185
|
-
|
|
186
|
-
assert.calledOnceWithExactly(spy, 'event:relay.event', sinon.match.func,sinon.match.object);
|
|
187
|
-
});
|
|
188
|
-
|
|
189
|
-
});
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
describe('encrypt/decrypt Content', () => {
|
|
193
|
-
beforeEach(async () => {
|
|
194
|
-
annotationService.webex.internal.encryption.encryptText = sinon.stub().returns(Promise.resolve('RETURN_VALUE'));
|
|
195
|
-
annotationService.webex.internal.encryption.decryptText = sinon.stub().returns(Promise.resolve('RETURN_VALUE'));
|
|
196
|
-
});
|
|
197
|
-
|
|
198
|
-
it('encryptContent', async () => {
|
|
199
|
-
const result = await annotationService.encryptContent("encryptionKeyUrl", "content");
|
|
200
|
-
assert.calledOnceWithExactly(webex.internal.encryption.encryptText, "encryptionKeyUrl", "content");
|
|
201
|
-
assert.equal(result, 'RETURN_VALUE')
|
|
202
|
-
});
|
|
203
|
-
|
|
204
|
-
it('decryptContent', async() => {
|
|
205
|
-
const result = await annotationService.decryptContent("decryptionKeyUrl", "content");
|
|
206
|
-
assert.calledOnceWithExactly(webex.internal.encryption.decryptText, "decryptionKeyUrl", "content");
|
|
207
|
-
assert.equal(result, 'RETURN_VALUE')
|
|
208
|
-
});
|
|
209
|
-
|
|
210
|
-
});
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
describe('publish Stroke Data with LLM is not connected', () => {
|
|
215
|
-
|
|
216
|
-
beforeEach(async () => {
|
|
217
|
-
annotationService.webex.internal.llm.socket = new MockWebSocket();
|
|
218
|
-
annotationService.webex.internal.llm.isConnected = sinon.stub().returns(false);
|
|
219
|
-
});
|
|
220
|
-
|
|
221
|
-
it('publish Stroke Data with LLM is not connected', async () => {
|
|
222
|
-
annotationService.sendStrokeData("", {});
|
|
223
|
-
assert.notCalled(annotationService.webex.internal.llm.socket.send);
|
|
224
|
-
});
|
|
225
|
-
|
|
226
|
-
});
|
|
227
|
-
|
|
228
|
-
describe('sendStrokeData', () => {
|
|
229
|
-
|
|
230
|
-
beforeEach(async () => {
|
|
231
|
-
annotationService.webex.internal.llm.socket = new MockWebSocket();
|
|
232
|
-
});
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
it('works on publish Stroke Data', async () => {
|
|
236
|
-
const strokeData = {
|
|
237
|
-
content: {
|
|
238
|
-
"contentsBuffer": [{
|
|
239
|
-
"contentArray": [{
|
|
240
|
-
"curveId": "58dcf45c-1fc5-46bf-a902-053621dd8977",
|
|
241
|
-
"curvePoints": [592.593, 352.963, 3.400, 596.710, 352.963, 3.400, 600.000, 352.963, 3.398, 600.000, 352.963, 3.398],
|
|
242
|
-
"stride": 3
|
|
243
|
-
}], "type": "curve", "name": "contentUpdate"
|
|
244
|
-
}], "action": "contentUpdate", "sender": {"name": "perfect", "id": "4dd5eaf9-4cf8-4f0f-a1d6-014bf5d00741"}
|
|
245
|
-
},
|
|
246
|
-
deviceId: "525ead98-6c93-4fcb-899d-517305c47513",
|
|
247
|
-
requesterId: '525ead98-6c93-4fcb-899d-517305c47513',
|
|
248
|
-
toUserId: "987ead98-6c93-4fcb-899d-517305c47503",
|
|
249
|
-
shareInstanceId: '7fa6fe07-dcb1-41ad-973d-7bcf65fab55d',
|
|
250
|
-
encryptionKeyUrl: "encryptionKeyUrl",
|
|
251
|
-
version: '1',
|
|
252
|
-
} ;
|
|
253
|
-
|
|
254
|
-
annotationService.publishEncrypted(strokeData.content, strokeData);
|
|
255
|
-
|
|
256
|
-
const sendObject = {
|
|
257
|
-
id: sinon.match.string,
|
|
258
|
-
type: 'publishRequest',
|
|
259
|
-
recipients: {route: undefined},
|
|
260
|
-
headers: {to: '987ead98-6c93-4fcb-899d-517305c47503'},
|
|
261
|
-
data: {
|
|
262
|
-
eventType: 'relay.event',
|
|
263
|
-
relayType: ANNOTATION_RELAY_TYPES.ANNOTATION_CLIENT,
|
|
264
|
-
request: {
|
|
265
|
-
value: {
|
|
266
|
-
type: ANNOTATION_REQUEST_TYPE.ANNOTATION_MESSAGE,
|
|
267
|
-
content: strokeData.content,
|
|
268
|
-
version: '1',
|
|
269
|
-
seq:sinon.match.number,
|
|
270
|
-
deviceId: sinon.match.string,
|
|
271
|
-
requesterId: sinon.match.string,
|
|
272
|
-
shareInstanceId: strokeData.shareInstanceId,
|
|
273
|
-
encryptionKeyUrl: 'encryptionKeyUrl',
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
},
|
|
277
|
-
trackingId: sinon.match.string,
|
|
278
|
-
timestamp: sinon.match.number,
|
|
279
|
-
sequenceNumber: 1,
|
|
280
|
-
filterMessage: false,
|
|
281
|
-
};
|
|
282
|
-
|
|
283
|
-
assert.calledOnceWithExactly(annotationService.webex.internal.llm.socket.send, sendObject);
|
|
284
|
-
});
|
|
285
|
-
|
|
286
|
-
});
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
describe('Locus API collection', () => {
|
|
290
|
-
|
|
291
|
-
describe('send approve request', () => {
|
|
292
|
-
it('makes send request approved annotation as expected', async () => {
|
|
293
|
-
const
|
|
294
|
-
requestData = {
|
|
295
|
-
toUserId: '4dd5eaf9-4cf8-4f0f-a1d6-014bf5d00741',
|
|
296
|
-
toDeviceUrl: 'https://wdm-a.wbx2.com/wdm/api/v1/devices/a3018aa9-70cb-4142-ae9a-f03db4fe1057',
|
|
297
|
-
shareInstanceId: '9428c492-da14-476f-a36c-b377ee8c4009',
|
|
298
|
-
};
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
const result = await annotationService.approveAnnotation(requestData);
|
|
302
|
-
assert.calledOnceWithExactly(webex.request, {
|
|
303
|
-
method: 'POST',
|
|
304
|
-
url: 'url/approval',
|
|
305
|
-
body: {
|
|
306
|
-
actionType: 'REQUESTED',
|
|
307
|
-
resourceType: 'AnnotationOnShare',
|
|
308
|
-
shareInstanceId: '9428c492-da14-476f-a36c-b377ee8c4009',
|
|
309
|
-
receivers: [{
|
|
310
|
-
participantId: '4dd5eaf9-4cf8-4f0f-a1d6-014bf5d00741',
|
|
311
|
-
deviceUrl: 'https://wdm-a.wbx2.com/wdm/api/v1/devices/a3018aa9-70cb-4142-ae9a-f03db4fe1057'
|
|
312
|
-
}],
|
|
313
|
-
}
|
|
314
|
-
});
|
|
315
|
-
|
|
316
|
-
assert.equal(result, 'REQUEST_RETURN_VALUE')
|
|
317
|
-
});
|
|
318
|
-
});
|
|
319
|
-
|
|
320
|
-
describe('cancel Approve request', () => {
|
|
321
|
-
it('makes the cancel Approve request annotation as expected', async () => {
|
|
322
|
-
const
|
|
323
|
-
requestData = {
|
|
324
|
-
toUserId: '4dd5eaf9-4cf8-4f0f-a1d6-014bf5d00741',
|
|
325
|
-
toDeviceUrl: 'https://wdm-a.wbx2.com/wdm/api/v1/devices/a3018aa9-70cb-4142-ae9a-f03db4fe1057',
|
|
326
|
-
shareInstanceId: '9428c492-da14-476f-a36c-b377ee8c4009',
|
|
327
|
-
};
|
|
328
|
-
const approval = {url:"url/cancel"};
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
const result = await annotationService.cancelApproveAnnotation(requestData,approval);
|
|
332
|
-
assert.calledOnceWithExactly(webex.request, {
|
|
333
|
-
method: 'PUT',
|
|
334
|
-
url: 'url/cancel',
|
|
335
|
-
body: {
|
|
336
|
-
actionType: 'CANCELED',
|
|
337
|
-
resourceType: 'AnnotationOnShare',
|
|
338
|
-
shareInstanceId: '9428c492-da14-476f-a36c-b377ee8c4009',
|
|
339
|
-
}
|
|
340
|
-
});
|
|
341
|
-
|
|
342
|
-
assert.equal(result, 'REQUEST_RETURN_VALUE')
|
|
343
|
-
});
|
|
344
|
-
});
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
describe('close annotation', () => {
|
|
349
|
-
it('makes the close annotation as expected', async () => {
|
|
350
|
-
const
|
|
351
|
-
requestData = {
|
|
352
|
-
toUserId: '4dd5eaf9-4cf8-4f0f-a1d6-014bf5d00741',
|
|
353
|
-
toDeviceUrl: 'https://wdm-a.wbx2.com/wdm/api/v1/devices/a3018aa9-70cb-4142-ae9a-f03db4fe1057',
|
|
354
|
-
shareInstanceId: '9428c492-da14-476f-a36c-b377ee8c4009',
|
|
355
|
-
};
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
const result = await annotationService.closeAnnotation(requestData);
|
|
359
|
-
assert.calledOnceWithExactly(webex.request, {
|
|
360
|
-
method: 'POST',
|
|
361
|
-
url: 'url/approval',
|
|
362
|
-
body: {
|
|
363
|
-
actionType: 'CLOSED',
|
|
364
|
-
resourceType: 'AnnotationOnShare',
|
|
365
|
-
shareInstanceId: '9428c492-da14-476f-a36c-b377ee8c4009',
|
|
366
|
-
receivers: [{
|
|
367
|
-
participantId: '4dd5eaf9-4cf8-4f0f-a1d6-014bf5d00741',
|
|
368
|
-
deviceUrl: 'https://wdm-a.wbx2.com/wdm/api/v1/devices/a3018aa9-70cb-4142-ae9a-f03db4fe1057'
|
|
369
|
-
}],
|
|
370
|
-
}
|
|
371
|
-
});
|
|
372
|
-
|
|
373
|
-
assert.equal(result, 'REQUEST_RETURN_VALUE')
|
|
374
|
-
});
|
|
375
|
-
});
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
describe('declined annotation', () => {
|
|
379
|
-
it('makes the declined annotation as expected', async () => {
|
|
380
|
-
const approval = {
|
|
381
|
-
url: 'approvalUrl'
|
|
382
|
-
}
|
|
383
|
-
const result = await annotationService.declineRequest(approval);
|
|
384
|
-
assert.calledOnceWithExactly(webex.request, {
|
|
385
|
-
method: 'PUT',
|
|
386
|
-
url: 'approvalUrl',
|
|
387
|
-
body: {
|
|
388
|
-
actionType: 'DECLINED',
|
|
389
|
-
resourceType: 'AnnotationOnShare',
|
|
390
|
-
}
|
|
391
|
-
});
|
|
392
|
-
|
|
393
|
-
assert.equal(result, 'REQUEST_RETURN_VALUE')
|
|
394
|
-
});
|
|
395
|
-
});
|
|
396
|
-
|
|
397
|
-
describe('accept annotation', () => {
|
|
398
|
-
it('makes the accepted annotation as expected', async () => {
|
|
399
|
-
const approval = {
|
|
400
|
-
url: 'approvalUrl'
|
|
401
|
-
}
|
|
402
|
-
const result = await annotationService.acceptRequest(approval);
|
|
403
|
-
assert.calledOnceWithExactly(webex.request, {
|
|
404
|
-
method: 'PUT',
|
|
405
|
-
url: 'approvalUrl',
|
|
406
|
-
body: {
|
|
407
|
-
actionType: 'ACCEPTED',
|
|
408
|
-
resourceType: 'AnnotationOnShare',
|
|
409
|
-
}
|
|
410
|
-
});
|
|
411
|
-
|
|
412
|
-
assert.equal(result, 'REQUEST_RETURN_VALUE')
|
|
413
|
-
});
|
|
414
|
-
});
|
|
415
|
-
});
|
|
416
|
-
});
|
|
417
|
-
|
|
418
|
-
});
|
|
@@ -1,237 +0,0 @@
|
|
|
1
|
-
import {assert, expect} from '@webex/test-helper-chai';
|
|
2
|
-
import Breakout from '@webex/plugin-meetings/src/breakouts/breakout';
|
|
3
|
-
import Breakouts from '@webex/plugin-meetings/src/breakouts';
|
|
4
|
-
import MockWebex from '@webex/test-helper-mock-webex';
|
|
5
|
-
import sinon from 'sinon';
|
|
6
|
-
import uuid from 'uuid';
|
|
7
|
-
import breakoutEvent from "../../../../src/breakouts/events";
|
|
8
|
-
import BreakoutRequest from '../../../../src/breakouts/request';
|
|
9
|
-
import Members from '../../../../src/members';
|
|
10
|
-
|
|
11
|
-
describe('plugin-meetings', () => {
|
|
12
|
-
describe('breakout', () => {
|
|
13
|
-
let webex;
|
|
14
|
-
let breakout;
|
|
15
|
-
let breakouts;
|
|
16
|
-
let meeting;
|
|
17
|
-
|
|
18
|
-
beforeEach(() => {
|
|
19
|
-
// @ts-ignore
|
|
20
|
-
webex = new MockWebex({});
|
|
21
|
-
webex.internal.llm.on = sinon.stub();
|
|
22
|
-
webex.internal.mercury.on = sinon.stub();
|
|
23
|
-
breakouts = new Breakouts({}, {parent: webex});
|
|
24
|
-
breakout = new Breakout({}, {parent: breakouts});
|
|
25
|
-
breakout.groupId = 'groupId';
|
|
26
|
-
breakout.sessionId = 'sessionId';
|
|
27
|
-
breakout.sessionType = 'BREAKOUT';
|
|
28
|
-
breakout.url = 'url';
|
|
29
|
-
breakout.collection = {
|
|
30
|
-
parent: {
|
|
31
|
-
meetingId: 'activeMeetingId',
|
|
32
|
-
},
|
|
33
|
-
};
|
|
34
|
-
webex.request = sinon.stub().returns(Promise.resolve('REQUEST_RETURN_VALUE'));
|
|
35
|
-
webex.meetings = {};
|
|
36
|
-
webex.meetings.getMeetingByType = sinon.stub();
|
|
37
|
-
sinon.stub(uuid, 'v4').returns('breakoutMoveId');
|
|
38
|
-
});
|
|
39
|
-
|
|
40
|
-
afterEach(() => {
|
|
41
|
-
// @ts-ignore
|
|
42
|
-
uuid.v4.restore();
|
|
43
|
-
})
|
|
44
|
-
|
|
45
|
-
describe('initialize', () => {
|
|
46
|
-
it('creates the object correctly', () => {
|
|
47
|
-
assert.instanceOf(breakout.breakoutRequest, BreakoutRequest);
|
|
48
|
-
});
|
|
49
|
-
});
|
|
50
|
-
|
|
51
|
-
describe('#initMembers', () => {
|
|
52
|
-
it('creates the Members instance for the breakout', () => {
|
|
53
|
-
assert.equal(breakout.members, undefined);
|
|
54
|
-
|
|
55
|
-
breakout.webex.meetings = {
|
|
56
|
-
getMeetingByType: sinon.stub().returns({
|
|
57
|
-
id: 'meeting-id',
|
|
58
|
-
}),
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
breakout.initMembers();
|
|
62
|
-
|
|
63
|
-
assert.instanceOf(breakout.members, Members);
|
|
64
|
-
});
|
|
65
|
-
});
|
|
66
|
-
|
|
67
|
-
describe('#join', () => {
|
|
68
|
-
it('makes the request as expected', async () => {
|
|
69
|
-
const result = await breakout.join();
|
|
70
|
-
assert.calledOnceWithExactly(webex.request, {
|
|
71
|
-
method: 'POST',
|
|
72
|
-
uri: 'url/move',
|
|
73
|
-
body: {
|
|
74
|
-
breakoutMoveId: 'breakoutMoveId',
|
|
75
|
-
deviceUrl: undefined,
|
|
76
|
-
groupId: 'groupId',
|
|
77
|
-
sessionId: 'sessionId',
|
|
78
|
-
},
|
|
79
|
-
});
|
|
80
|
-
|
|
81
|
-
assert.equal(result, 'REQUEST_RETURN_VALUE');
|
|
82
|
-
});
|
|
83
|
-
|
|
84
|
-
it('send metrics as expected', async () => {
|
|
85
|
-
breakout.webex.internal.device.url = 'device-url';
|
|
86
|
-
breakout.webex.meetings = {
|
|
87
|
-
getMeetingByType: sinon.stub().returns({
|
|
88
|
-
id: 'meeting-id'
|
|
89
|
-
})
|
|
90
|
-
};
|
|
91
|
-
|
|
92
|
-
sinon.stub(webex.internal.newMetrics.submitClientEvent, 'bind').returns(webex.internal.newMetrics.submitClientEvent);
|
|
93
|
-
|
|
94
|
-
let onBreakoutMoveRequestStub = sinon.stub(breakoutEvent, 'onBreakoutMoveRequest');
|
|
95
|
-
let onBreakoutMoveResponseStub = sinon.stub(breakoutEvent, 'onBreakoutMoveResponse');
|
|
96
|
-
await breakout.join();
|
|
97
|
-
assert.calledOnceWithExactly(breakoutEvent.onBreakoutMoveRequest,
|
|
98
|
-
{currentSession: breakout, meeting: {id: 'meeting-id'}, breakoutMoveId: 'breakoutMoveId'},
|
|
99
|
-
webex.internal.newMetrics.submitClientEvent
|
|
100
|
-
);
|
|
101
|
-
assert.calledOnceWithExactly(breakoutEvent.onBreakoutMoveResponse,
|
|
102
|
-
{currentSession: breakout, meeting: {id: 'meeting-id'}, breakoutMoveId: 'breakoutMoveId'},
|
|
103
|
-
webex.internal.newMetrics.submitClientEvent
|
|
104
|
-
);
|
|
105
|
-
|
|
106
|
-
onBreakoutMoveRequestStub.restore();
|
|
107
|
-
onBreakoutMoveResponseStub.restore();
|
|
108
|
-
});
|
|
109
|
-
});
|
|
110
|
-
|
|
111
|
-
describe('#leave', () => {
|
|
112
|
-
it('throws error if in main sesson', async () => {
|
|
113
|
-
breakout.set('sessionType', 'MAIN');
|
|
114
|
-
|
|
115
|
-
const fn = () => {
|
|
116
|
-
breakout.leave();
|
|
117
|
-
};
|
|
118
|
-
|
|
119
|
-
expect(fn).to.throw(/Cannot leave the main session/);
|
|
120
|
-
});
|
|
121
|
-
|
|
122
|
-
it('throws error if there is no main session', async () => {
|
|
123
|
-
const fn = () => {
|
|
124
|
-
breakout.leave();
|
|
125
|
-
};
|
|
126
|
-
|
|
127
|
-
expect(fn).to.throw(/Cannot leave, no main session found/);
|
|
128
|
-
});
|
|
129
|
-
|
|
130
|
-
it('joins the main session if in a breakout', async () => {
|
|
131
|
-
breakout.parent.breakouts.add({
|
|
132
|
-
sessionType: 'MAIN',
|
|
133
|
-
});
|
|
134
|
-
|
|
135
|
-
const mainSession = breakouts.breakouts.models[0];
|
|
136
|
-
|
|
137
|
-
mainSession.join = sinon.stub().returns('JOIN_RETURN_VALUE');
|
|
138
|
-
|
|
139
|
-
const result = await breakout.leave();
|
|
140
|
-
|
|
141
|
-
assert.calledOnceWithExactly(mainSession.join);
|
|
142
|
-
assert.equal(result, 'JOIN_RETURN_VALUE');
|
|
143
|
-
});
|
|
144
|
-
});
|
|
145
|
-
|
|
146
|
-
describe('#askForHelp', () => {
|
|
147
|
-
it('makes the request as expected', async () => {
|
|
148
|
-
const result = await breakout.askForHelp();
|
|
149
|
-
|
|
150
|
-
assert.calledOnceWithExactly(webex.request, {
|
|
151
|
-
method: 'POST',
|
|
152
|
-
uri: 'url/help',
|
|
153
|
-
body: {
|
|
154
|
-
groupId: 'groupId',
|
|
155
|
-
sessionId: 'sessionId',
|
|
156
|
-
},
|
|
157
|
-
});
|
|
158
|
-
|
|
159
|
-
assert.equal(result, 'REQUEST_RETURN_VALUE');
|
|
160
|
-
});
|
|
161
|
-
});
|
|
162
|
-
|
|
163
|
-
describe('#broadcast', () => {
|
|
164
|
-
it('makes the request as expected', async () => {
|
|
165
|
-
breakout.breakoutRequest.broadcast = sinon
|
|
166
|
-
.stub()
|
|
167
|
-
.returns(Promise.resolve('REQUEST_RETURN_VALUE'));
|
|
168
|
-
let result = await breakout.broadcast('hello');
|
|
169
|
-
assert.calledWithExactly(breakout.breakoutRequest.broadcast, {
|
|
170
|
-
url: 'url',
|
|
171
|
-
message: 'hello',
|
|
172
|
-
options: undefined,
|
|
173
|
-
groupId: 'groupId',
|
|
174
|
-
sessionId: 'sessionId',
|
|
175
|
-
});
|
|
176
|
-
|
|
177
|
-
assert.equal(result, 'REQUEST_RETURN_VALUE');
|
|
178
|
-
|
|
179
|
-
result = await breakout.broadcast('hello', {presenters: true, cohosts: true});
|
|
180
|
-
|
|
181
|
-
assert.calledWithExactly(breakout.breakoutRequest.broadcast, {
|
|
182
|
-
url: 'url',
|
|
183
|
-
message: 'hello',
|
|
184
|
-
options: {presenters: true, cohosts: true},
|
|
185
|
-
groupId: 'groupId',
|
|
186
|
-
sessionId: 'sessionId',
|
|
187
|
-
});
|
|
188
|
-
|
|
189
|
-
assert.equal(result, 'REQUEST_RETURN_VALUE');
|
|
190
|
-
});
|
|
191
|
-
});
|
|
192
|
-
|
|
193
|
-
describe('#isNeedHandleRoster', () => {
|
|
194
|
-
it('return true if no sequence in locus/breakoutRosterLocus', () => {
|
|
195
|
-
breakout.breakoutRosterLocus = null;
|
|
196
|
-
assert.equal(breakout.isNeedHandleRoster(), true);
|
|
197
|
-
|
|
198
|
-
breakout.breakoutRosterLocus = {sequence: {entries: [123]}};
|
|
199
|
-
assert.equal(breakout.isNeedHandleRoster(null), true);
|
|
200
|
-
|
|
201
|
-
assert.equal(breakout.isNeedHandleRoster({sequence: {entries: []}}), true);
|
|
202
|
-
});
|
|
203
|
-
it('return true if the locus sequence is bigger than last one', () => {
|
|
204
|
-
breakout.breakoutRosterLocus = {sequence: {entries: [123]}};
|
|
205
|
-
assert.equal(breakout.isNeedHandleRoster({sequence: {entries: [124]}}), true);
|
|
206
|
-
});
|
|
207
|
-
it('return false if the locus sequence is smaller than last one', () => {
|
|
208
|
-
breakout.breakoutRosterLocus = {sequence: {entries: [123]}};
|
|
209
|
-
assert.equal(breakout.isNeedHandleRoster({sequence: {entries: [122]}}), false);
|
|
210
|
-
});
|
|
211
|
-
});
|
|
212
|
-
|
|
213
|
-
describe('#parseRoster', () => {
|
|
214
|
-
it('calls locusParticipantsUpdate', () => {
|
|
215
|
-
breakout.members = {
|
|
216
|
-
locusParticipantsUpdate: sinon.stub(),
|
|
217
|
-
};
|
|
218
|
-
|
|
219
|
-
const locusData = {some: 'data'};
|
|
220
|
-
const result = breakout.parseRoster(locusData);
|
|
221
|
-
|
|
222
|
-
assert.calledOnceWithExactly(breakout.members.locusParticipantsUpdate, locusData);
|
|
223
|
-
assert.equal(result, undefined);
|
|
224
|
-
});
|
|
225
|
-
it('not call locusParticipantsUpdate if sequence is expired', () => {
|
|
226
|
-
breakout.members = {
|
|
227
|
-
locusParticipantsUpdate: sinon.stub(),
|
|
228
|
-
};
|
|
229
|
-
breakout.isNeedHandleRoster = sinon.stub().returns(false);
|
|
230
|
-
const locusData = {some: 'data'};
|
|
231
|
-
breakout.parseRoster(locusData);
|
|
232
|
-
|
|
233
|
-
assert.notCalled(breakout.members.locusParticipantsUpdate);
|
|
234
|
-
});
|
|
235
|
-
})
|
|
236
|
-
});
|
|
237
|
-
});
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import {assert} from '@webex/test-helper-chai';
|
|
2
|
-
import Breakout from '@webex/plugin-meetings/src/breakouts/breakout';
|
|
3
|
-
import BreakoutCollection from '@webex/plugin-meetings/src/breakouts/collection';
|
|
4
|
-
|
|
5
|
-
describe('plugin-meetings', () => {
|
|
6
|
-
describe('BreakoutCollection', () => {
|
|
7
|
-
it('the breakout collection is as expected', () => {
|
|
8
|
-
const collection = new BreakoutCollection();
|
|
9
|
-
|
|
10
|
-
assert.equal(collection.model, Breakout);
|
|
11
|
-
assert.equal(collection.namespace, 'Meetings');
|
|
12
|
-
assert.equal(collection.mainIndex, 'sessionId');
|
|
13
|
-
});
|
|
14
|
-
});
|
|
15
|
-
});
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import BreakoutEditLockedError from '@webex/plugin-meetings/src/breakouts/edit-lock-error';
|
|
2
|
-
import {assert, expect} from '@webex/test-helper-chai';
|
|
3
|
-
import {ERROR_DICTIONARY} from '@webex/plugin-meetings/src/constants';
|
|
4
|
-
import {BREAKOUTS} from '@webex/plugin-meetings/src/constants';
|
|
5
|
-
|
|
6
|
-
describe('plugin-meetings', () => {
|
|
7
|
-
describe('edit-lock-error', () => {
|
|
8
|
-
it('check constructor paramter', () => {
|
|
9
|
-
const result = new BreakoutEditLockedError();
|
|
10
|
-
assert.equal(result.name, ERROR_DICTIONARY.BREAKOUT_EDIT.NAME);
|
|
11
|
-
assert.equal(result.sdkMessage, ERROR_DICTIONARY.BREAKOUT_EDIT.MESSAGE);
|
|
12
|
-
assert.equal(result.code, ERROR_DICTIONARY.BREAKOUT_EDIT.CODE);
|
|
13
|
-
assert.equal(result.error, null);
|
|
14
|
-
});
|
|
15
|
-
|
|
16
|
-
it('check constructor paramter', () => {
|
|
17
|
-
const fakeError = {
|
|
18
|
-
body: {
|
|
19
|
-
"errorCode":BREAKOUTS.ERROR_CODE.EDIT_LOCK_TOKEN_MISMATCH,
|
|
20
|
-
"message":"Edit lock token mismatch"
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
const result = new BreakoutEditLockedError('message', fakeError);
|
|
24
|
-
assert.equal(result.name, ERROR_DICTIONARY.BREAKOUT_EDIT.NAME);
|
|
25
|
-
assert.equal(result.sdkMessage, ERROR_DICTIONARY.BREAKOUT_EDIT.MESSAGE);
|
|
26
|
-
assert.equal(result.code, ERROR_DICTIONARY.BREAKOUT_EDIT.CODE);
|
|
27
|
-
assert.equal(result.error, fakeError);
|
|
28
|
-
});
|
|
29
|
-
});
|
|
30
|
-
});
|