@webex/plugin-meetings 3.0.0-beta.15 → 3.0.0-beta.151
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 +45 -1
- package/dist/annotation/annotation.types.js +7 -0
- package/dist/annotation/annotation.types.js.map +1 -0
- package/dist/annotation/constants.js +49 -0
- package/dist/annotation/constants.js.map +1 -0
- package/dist/annotation/index.js +359 -0
- package/dist/annotation/index.js.map +1 -0
- package/dist/breakouts/breakout.js +193 -0
- package/dist/breakouts/breakout.js.map +1 -0
- package/dist/breakouts/collection.js +23 -0
- package/dist/breakouts/collection.js.map +1 -0
- package/dist/breakouts/edit-lock-error.js +52 -0
- package/dist/breakouts/edit-lock-error.js.map +1 -0
- package/dist/breakouts/events.js +43 -0
- package/dist/breakouts/events.js.map +1 -0
- package/dist/breakouts/index.js +1046 -0
- package/dist/breakouts/index.js.map +1 -0
- package/dist/breakouts/request.js +78 -0
- package/dist/breakouts/request.js.map +1 -0
- package/dist/breakouts/utils.js +67 -0
- package/dist/breakouts/utils.js.map +1 -0
- package/dist/common/browser-detection.js +1 -21
- package/dist/common/browser-detection.js.map +1 -1
- package/dist/common/collection.js +5 -20
- package/dist/common/collection.js.map +1 -1
- package/dist/common/config.js +0 -7
- package/dist/common/config.js.map +1 -1
- package/dist/common/errors/captcha-error.js +0 -21
- package/dist/common/errors/captcha-error.js.map +1 -1
- package/dist/common/errors/intent-to-join.js +0 -21
- package/dist/common/errors/intent-to-join.js.map +1 -1
- package/dist/common/errors/join-meeting.js +0 -21
- package/dist/common/errors/join-meeting.js.map +1 -1
- package/dist/common/errors/media.js +0 -21
- package/dist/common/errors/media.js.map +1 -1
- package/dist/common/errors/parameter.js +0 -28
- package/dist/common/errors/parameter.js.map +1 -1
- package/dist/common/errors/password-error.js +0 -21
- package/dist/common/errors/password-error.js.map +1 -1
- package/dist/common/errors/permission.js +0 -21
- package/dist/common/errors/permission.js.map +1 -1
- package/dist/common/errors/reconnection-in-progress.js +0 -17
- package/dist/common/errors/reconnection-in-progress.js.map +1 -1
- package/dist/common/errors/reconnection.js +0 -21
- package/dist/common/errors/reconnection.js.map +1 -1
- package/dist/common/errors/stats.js +0 -21
- package/dist/common/errors/stats.js.map +1 -1
- package/dist/common/errors/webex-errors.js +9 -43
- package/dist/common/errors/webex-errors.js.map +1 -1
- package/dist/common/errors/webex-meetings-error.js +1 -24
- package/dist/common/errors/webex-meetings-error.js.map +1 -1
- package/dist/common/events/events-scope.js +0 -22
- package/dist/common/events/events-scope.js.map +1 -1
- package/dist/common/events/events.js +0 -23
- package/dist/common/events/events.js.map +1 -1
- package/dist/common/events/trigger-proxy.js +0 -12
- package/dist/common/events/trigger-proxy.js.map +1 -1
- package/dist/common/events/util.js +0 -15
- package/dist/common/events/util.js.map +1 -1
- package/dist/common/logs/logger-config.js +0 -4
- package/dist/common/logs/logger-config.js.map +1 -1
- package/dist/common/logs/logger-proxy.js +1 -8
- package/dist/common/logs/logger-proxy.js.map +1 -1
- package/dist/common/logs/request.js +35 -61
- package/dist/common/logs/request.js.map +1 -1
- package/dist/common/queue.js +4 -14
- package/dist/common/queue.js.map +1 -1
- package/dist/config.js +7 -13
- package/dist/config.js.map +1 -1
- package/dist/constants.js +208 -64
- package/dist/constants.js.map +1 -1
- package/dist/controls-options-manager/constants.js +14 -0
- package/dist/controls-options-manager/constants.js.map +1 -0
- package/dist/controls-options-manager/enums.js +27 -0
- package/dist/controls-options-manager/enums.js.map +1 -0
- package/dist/controls-options-manager/index.js +297 -0
- package/dist/controls-options-manager/index.js.map +1 -0
- package/dist/controls-options-manager/types.js +7 -0
- package/dist/controls-options-manager/types.js.map +1 -0
- package/dist/controls-options-manager/util.js +300 -0
- package/dist/controls-options-manager/util.js.map +1 -0
- package/dist/index.js +78 -17
- package/dist/index.js.map +1 -1
- package/dist/locus-info/controlsUtils.js +100 -29
- package/dist/locus-info/controlsUtils.js.map +1 -1
- package/dist/locus-info/embeddedAppsUtils.js +3 -26
- package/dist/locus-info/embeddedAppsUtils.js.map +1 -1
- package/dist/locus-info/fullState.js +0 -15
- package/dist/locus-info/fullState.js.map +1 -1
- package/dist/locus-info/hostUtils.js +4 -12
- package/dist/locus-info/hostUtils.js.map +1 -1
- package/dist/locus-info/index.js +387 -208
- package/dist/locus-info/index.js.map +1 -1
- package/dist/locus-info/infoUtils.js +0 -38
- package/dist/locus-info/infoUtils.js.map +1 -1
- package/dist/locus-info/mediaSharesUtils.js +54 -38
- package/dist/locus-info/mediaSharesUtils.js.map +1 -1
- package/dist/locus-info/parser.js +90 -126
- package/dist/locus-info/parser.js.map +1 -1
- package/dist/locus-info/selfUtils.js +93 -92
- package/dist/locus-info/selfUtils.js.map +1 -1
- package/dist/media/index.js +70 -219
- package/dist/media/index.js.map +1 -1
- package/dist/media/properties.js +74 -198
- package/dist/media/properties.js.map +1 -1
- package/dist/media/util.js +1 -8
- package/dist/media/util.js.map +1 -1
- package/dist/mediaQualityMetrics/config.js +505 -495
- package/dist/mediaQualityMetrics/config.js.map +1 -1
- package/dist/meeting/in-meeting-actions.js +79 -14
- package/dist/meeting/in-meeting-actions.js.map +1 -1
- package/dist/meeting/index.js +2685 -3324
- package/dist/meeting/index.js.map +1 -1
- package/dist/meeting/locusMediaRequest.js +291 -0
- package/dist/meeting/locusMediaRequest.js.map +1 -0
- package/dist/meeting/muteState.js +243 -185
- package/dist/meeting/muteState.js.map +1 -1
- package/dist/meeting/request.js +296 -342
- package/dist/meeting/request.js.map +1 -1
- package/dist/meeting/request.type.js +0 -1
- package/dist/meeting/request.type.js.map +1 -1
- package/dist/meeting/state.js +16 -26
- package/dist/meeting/state.js.map +1 -1
- package/dist/meeting/util.js +446 -585
- package/dist/meeting/util.js.map +1 -1
- package/dist/meeting-info/collection.js +3 -25
- package/dist/meeting-info/collection.js.map +1 -1
- package/dist/meeting-info/index.js +8 -31
- package/dist/meeting-info/index.js.map +1 -1
- package/dist/meeting-info/meeting-info-v2.js +261 -242
- package/dist/meeting-info/meeting-info-v2.js.map +1 -1
- package/dist/meeting-info/request.js +1 -16
- package/dist/meeting-info/request.js.map +1 -1
- package/dist/meeting-info/util.js +98 -183
- package/dist/meeting-info/util.js.map +1 -1
- package/dist/meeting-info/utilv2.js +156 -232
- package/dist/meeting-info/utilv2.js.map +1 -1
- package/dist/meetings/collection.js +24 -20
- package/dist/meetings/collection.js.map +1 -1
- package/dist/meetings/index.js +526 -372
- package/dist/meetings/index.js.map +1 -1
- package/dist/meetings/meetings.types.js +7 -0
- package/dist/meetings/meetings.types.js.map +1 -0
- package/dist/meetings/request.js +21 -40
- package/dist/meetings/request.js.map +1 -1
- package/dist/meetings/util.js +172 -141
- package/dist/meetings/util.js.map +1 -1
- package/dist/member/index.js +58 -57
- package/dist/member/index.js.map +1 -1
- package/dist/member/types.js +15 -0
- package/dist/member/types.js.map +1 -0
- package/dist/member/util.js +101 -69
- package/dist/member/util.js.map +1 -1
- package/dist/members/collection.js +12 -12
- package/dist/members/collection.js.map +1 -1
- package/dist/members/index.js +123 -162
- package/dist/members/index.js.map +1 -1
- package/dist/members/request.js +120 -85
- package/dist/members/request.js.map +1 -1
- package/dist/members/types.js +15 -0
- package/dist/members/types.js.map +1 -0
- package/dist/members/util.js +314 -260
- package/dist/members/util.js.map +1 -1
- package/dist/metrics/config.js +50 -16
- package/dist/metrics/config.js.map +1 -1
- package/dist/metrics/constants.js +4 -7
- package/dist/metrics/constants.js.map +1 -1
- package/dist/metrics/index.js +75 -147
- package/dist/metrics/index.js.map +1 -1
- package/dist/multistream/mediaRequestManager.js +170 -50
- package/dist/multistream/mediaRequestManager.js.map +1 -1
- package/dist/multistream/receiveSlot.js +58 -65
- package/dist/multistream/receiveSlot.js.map +1 -1
- package/dist/multistream/receiveSlotManager.js +73 -94
- package/dist/multistream/receiveSlotManager.js.map +1 -1
- package/dist/multistream/remoteMedia.js +55 -74
- package/dist/multistream/remoteMedia.js.map +1 -1
- package/dist/multistream/remoteMediaGroup.js +66 -43
- package/dist/multistream/remoteMediaGroup.js.map +1 -1
- package/dist/multistream/remoteMediaManager.js +502 -442
- package/dist/multistream/remoteMediaManager.js.map +1 -1
- package/dist/networkQualityMonitor/index.js +24 -51
- package/dist/networkQualityMonitor/index.js.map +1 -1
- package/dist/personal-meeting-room/index.js +3 -38
- package/dist/personal-meeting-room/index.js.map +1 -1
- package/dist/personal-meeting-room/request.js +2 -33
- package/dist/personal-meeting-room/request.js.map +1 -1
- package/dist/personal-meeting-room/util.js +0 -13
- package/dist/personal-meeting-room/util.js.map +1 -1
- package/dist/reachability/index.js +190 -199
- package/dist/reachability/index.js.map +1 -1
- package/dist/reachability/request.js +14 -23
- package/dist/reachability/request.js.map +1 -1
- package/dist/reactions/constants.js +13 -0
- package/dist/reactions/constants.js.map +1 -0
- package/dist/reactions/reactions.js +2 -4
- package/dist/reactions/reactions.js.map +1 -1
- package/dist/reactions/reactions.type.js +18 -24
- package/dist/reactions/reactions.type.js.map +1 -1
- package/dist/reconnection-manager/index.js +356 -476
- package/dist/reconnection-manager/index.js.map +1 -1
- package/dist/recording-controller/enums.js +17 -0
- package/dist/recording-controller/enums.js.map +1 -0
- package/dist/recording-controller/index.js +343 -0
- package/dist/recording-controller/index.js.map +1 -0
- package/dist/recording-controller/util.js +63 -0
- package/dist/recording-controller/util.js.map +1 -0
- package/dist/roap/index.js +32 -75
- package/dist/roap/index.js.map +1 -1
- package/dist/roap/request.js +129 -136
- package/dist/roap/request.js.map +1 -1
- package/dist/roap/turnDiscovery.js +143 -103
- package/dist/roap/turnDiscovery.js.map +1 -1
- package/dist/statsAnalyzer/global.js +1 -95
- package/dist/statsAnalyzer/global.js.map +1 -1
- package/dist/statsAnalyzer/index.js +369 -462
- package/dist/statsAnalyzer/index.js.map +1 -1
- package/dist/statsAnalyzer/mqaUtil.js +144 -94
- package/dist/statsAnalyzer/mqaUtil.js.map +1 -1
- package/dist/transcription/index.js +9 -44
- package/dist/transcription/index.js.map +1 -1
- package/dist/types/annotation/annotation.types.d.ts +43 -0
- package/dist/types/annotation/constants.d.ts +31 -0
- package/dist/types/annotation/index.d.ts +124 -0
- package/dist/types/breakouts/breakout.d.ts +8 -0
- package/dist/types/breakouts/collection.d.ts +5 -0
- package/dist/types/breakouts/edit-lock-error.d.ts +15 -0
- package/dist/types/breakouts/events.d.ts +2 -0
- package/dist/types/breakouts/index.d.ts +5 -0
- package/dist/types/breakouts/request.d.ts +22 -0
- package/dist/types/breakouts/utils.d.ts +15 -0
- package/dist/types/common/browser-detection.d.ts +9 -0
- package/dist/types/common/collection.d.ts +48 -0
- package/dist/types/common/config.d.ts +2 -0
- package/dist/types/common/errors/captcha-error.d.ts +15 -0
- package/dist/types/common/errors/intent-to-join.d.ts +16 -0
- package/dist/types/common/errors/join-meeting.d.ts +17 -0
- package/dist/types/common/errors/media.d.ts +15 -0
- package/dist/types/common/errors/parameter.d.ts +15 -0
- package/dist/types/common/errors/password-error.d.ts +15 -0
- package/dist/types/common/errors/permission.d.ts +14 -0
- package/dist/types/common/errors/reconnection-in-progress.d.ts +9 -0
- package/dist/types/common/errors/reconnection.d.ts +15 -0
- package/dist/types/common/errors/stats.d.ts +15 -0
- package/dist/types/common/errors/webex-errors.d.ts +69 -0
- package/dist/types/common/errors/webex-meetings-error.d.ts +20 -0
- package/dist/types/common/events/events-scope.d.ts +17 -0
- package/dist/types/common/events/events.d.ts +12 -0
- package/dist/types/common/events/trigger-proxy.d.ts +2 -0
- package/dist/types/common/events/util.d.ts +2 -0
- package/dist/types/common/logs/logger-config.d.ts +2 -0
- package/dist/types/common/logs/logger-proxy.d.ts +2 -0
- package/dist/types/common/logs/request.d.ts +34 -0
- package/dist/types/common/queue.d.ts +32 -0
- package/dist/types/config.d.ts +72 -0
- package/dist/types/constants.d.ts +978 -0
- package/dist/types/controls-options-manager/constants.d.ts +4 -0
- package/dist/types/controls-options-manager/enums.d.ts +15 -0
- package/dist/types/controls-options-manager/index.d.ts +136 -0
- package/dist/types/controls-options-manager/types.d.ts +43 -0
- package/dist/types/controls-options-manager/util.d.ts +1 -0
- package/dist/types/index.d.ts +7 -0
- package/dist/types/locus-info/controlsUtils.d.ts +2 -0
- package/dist/types/locus-info/embeddedAppsUtils.d.ts +2 -0
- package/dist/types/locus-info/fullState.d.ts +2 -0
- package/dist/types/locus-info/hostUtils.d.ts +2 -0
- package/dist/types/locus-info/index.d.ts +315 -0
- package/dist/types/locus-info/infoUtils.d.ts +2 -0
- package/dist/types/locus-info/mediaSharesUtils.d.ts +2 -0
- package/dist/types/locus-info/parser.d.ts +212 -0
- package/dist/types/locus-info/selfUtils.d.ts +2 -0
- package/dist/types/media/index.d.ts +34 -0
- package/dist/types/media/properties.d.ts +86 -0
- package/dist/types/media/util.d.ts +2 -0
- package/dist/types/mediaQualityMetrics/config.d.ts +365 -0
- package/dist/types/meeting/in-meeting-actions.d.ts +149 -0
- package/dist/types/meeting/index.d.ts +1509 -0
- package/dist/types/meeting/locusMediaRequest.d.ts +70 -0
- package/dist/types/meeting/muteState.d.ts +184 -0
- package/dist/types/meeting/request.d.ts +270 -0
- package/dist/types/meeting/request.type.d.ts +11 -0
- package/dist/types/meeting/state.d.ts +9 -0
- package/dist/types/meeting/util.d.ts +75 -0
- package/dist/types/meeting-info/collection.d.ts +20 -0
- package/dist/types/meeting-info/index.d.ts +57 -0
- package/dist/types/meeting-info/meeting-info-v2.d.ts +122 -0
- package/dist/types/meeting-info/request.d.ts +22 -0
- package/dist/types/meeting-info/util.d.ts +2 -0
- package/dist/types/meeting-info/utilv2.d.ts +2 -0
- package/dist/types/meetings/collection.d.ts +31 -0
- package/dist/types/meetings/index.d.ts +364 -0
- package/dist/types/meetings/meetings.types.d.ts +4 -0
- package/dist/types/meetings/request.d.ts +27 -0
- package/dist/types/meetings/util.d.ts +18 -0
- package/dist/types/member/index.d.ts +157 -0
- package/dist/types/member/types.d.ts +21 -0
- package/dist/types/member/util.d.ts +2 -0
- package/dist/types/members/collection.d.ts +29 -0
- package/dist/types/members/index.d.ts +353 -0
- package/dist/types/members/request.d.ts +114 -0
- package/dist/types/members/types.d.ts +24 -0
- package/dist/types/members/util.d.ts +210 -0
- package/dist/types/metrics/config.d.ts +195 -0
- package/dist/types/metrics/constants.d.ts +55 -0
- package/dist/types/metrics/index.d.ts +169 -0
- package/dist/types/multistream/mediaRequestManager.d.ts +104 -0
- package/dist/types/multistream/receiveSlot.d.ts +68 -0
- package/dist/types/multistream/receiveSlotManager.d.ts +56 -0
- package/dist/types/multistream/remoteMedia.d.ts +72 -0
- package/dist/types/multistream/remoteMediaGroup.d.ts +47 -0
- package/dist/types/multistream/remoteMediaManager.d.ts +277 -0
- package/dist/types/networkQualityMonitor/index.d.ts +70 -0
- package/dist/types/personal-meeting-room/index.d.ts +47 -0
- package/dist/types/personal-meeting-room/request.d.ts +14 -0
- package/dist/types/personal-meeting-room/util.d.ts +2 -0
- package/dist/types/reachability/index.d.ts +152 -0
- package/dist/types/reachability/request.d.ts +37 -0
- package/dist/types/reactions/constants.d.ts +3 -0
- package/dist/types/reactions/reactions.d.ts +4 -0
- package/dist/types/reactions/reactions.type.d.ts +52 -0
- package/dist/types/reconnection-manager/index.d.ts +126 -0
- package/dist/types/recording-controller/enums.d.ts +7 -0
- package/dist/types/recording-controller/index.d.ts +193 -0
- package/dist/types/recording-controller/util.d.ts +13 -0
- package/dist/types/roap/index.d.ts +77 -0
- package/dist/types/roap/request.d.ts +36 -0
- package/dist/types/roap/turnDiscovery.d.ts +91 -0
- package/dist/types/statsAnalyzer/global.d.ts +36 -0
- package/dist/types/statsAnalyzer/index.d.ts +200 -0
- package/dist/types/statsAnalyzer/mqaUtil.d.ts +24 -0
- package/dist/types/transcription/index.d.ts +64 -0
- package/package.json +28 -21
- package/src/annotation/annotation.types.ts +52 -0
- package/src/annotation/constants.ts +36 -0
- package/src/annotation/index.ts +343 -0
- package/src/breakouts/README.md +220 -0
- package/src/breakouts/breakout.ts +163 -0
- package/src/breakouts/collection.ts +19 -0
- package/src/breakouts/edit-lock-error.ts +25 -0
- package/src/breakouts/events.ts +37 -0
- package/src/breakouts/index.ts +921 -0
- package/src/breakouts/request.ts +55 -0
- package/src/breakouts/utils.ts +57 -0
- package/src/common/errors/webex-errors.ts +6 -2
- package/src/common/logs/logger-proxy.ts +1 -1
- package/src/config.ts +5 -7
- package/src/constants.ts +155 -20
- package/src/controls-options-manager/constants.ts +5 -0
- package/src/controls-options-manager/enums.ts +18 -0
- package/src/controls-options-manager/index.ts +278 -0
- package/src/controls-options-manager/types.ts +59 -0
- package/src/controls-options-manager/util.ts +286 -0
- package/src/index.ts +34 -0
- package/src/locus-info/controlsUtils.ts +108 -0
- package/src/locus-info/index.ts +310 -21
- package/src/locus-info/mediaSharesUtils.ts +48 -0
- package/src/locus-info/parser.ts +2 -1
- package/src/locus-info/selfUtils.ts +71 -1
- package/src/media/index.ts +70 -142
- package/src/media/properties.ts +41 -104
- package/src/mediaQualityMetrics/config.ts +379 -377
- package/src/meeting/in-meeting-actions.ts +156 -0
- package/src/meeting/index.ts +1730 -1768
- package/src/meeting/locusMediaRequest.ts +309 -0
- package/src/meeting/muteState.ts +228 -132
- package/src/meeting/request.ts +100 -91
- package/src/meeting/request.type.ts +2 -0
- package/src/meeting/util.ts +421 -421
- package/src/meeting-info/meeting-info-v2.ts +134 -13
- package/src/meeting-info/utilv2.ts +13 -3
- package/src/meetings/collection.ts +20 -0
- package/src/meetings/index.ts +375 -83
- package/src/meetings/meetings.types.ts +9 -0
- package/src/meetings/request.ts +3 -1
- package/src/meetings/util.ts +103 -4
- package/src/member/index.ts +40 -0
- package/src/member/types.ts +24 -0
- package/src/member/util.ts +81 -1
- package/src/members/collection.ts +8 -0
- package/src/members/index.ts +108 -6
- package/src/members/request.ts +98 -17
- package/src/members/types.ts +28 -0
- package/src/members/util.ts +319 -240
- package/src/metrics/config.ts +49 -10
- package/src/metrics/constants.ts +2 -4
- package/src/metrics/index.ts +43 -27
- package/src/multistream/mediaRequestManager.ts +210 -45
- package/src/multistream/receiveSlot.ts +68 -26
- package/src/multistream/receiveSlotManager.ts +61 -38
- package/src/multistream/remoteMedia.ts +29 -3
- package/src/multistream/remoteMediaGroup.ts +61 -2
- package/src/multistream/remoteMediaManager.ts +260 -66
- package/src/networkQualityMonitor/index.ts +6 -6
- package/src/reachability/index.ts +75 -25
- package/src/reachability/request.ts +10 -5
- package/src/reactions/constants.ts +4 -0
- package/src/reactions/reactions.ts +4 -4
- package/src/reactions/reactions.type.ts +28 -3
- package/src/reconnection-manager/index.ts +53 -32
- package/src/recording-controller/enums.ts +8 -0
- package/src/recording-controller/index.ts +315 -0
- package/src/recording-controller/util.ts +58 -0
- package/src/roap/index.ts +21 -30
- package/src/roap/request.ts +51 -52
- package/src/roap/turnDiscovery.ts +51 -27
- package/src/statsAnalyzer/global.ts +1 -94
- package/src/statsAnalyzer/index.ts +380 -390
- package/src/statsAnalyzer/mqaUtil.ts +106 -99
- package/test/integration/spec/converged-space-meetings.js +233 -0
- package/test/integration/spec/journey.js +332 -255
- package/test/integration/spec/space-meeting.js +78 -5
- package/test/integration/spec/transcription.js +1 -1
- package/test/unit/spec/annotation/index.ts +436 -0
- package/test/unit/spec/breakouts/breakout.ts +203 -0
- package/test/unit/spec/breakouts/collection.ts +15 -0
- package/test/unit/spec/breakouts/edit-lock-error.ts +30 -0
- package/test/unit/spec/breakouts/events.ts +77 -0
- package/test/unit/spec/breakouts/index.ts +1790 -0
- package/test/unit/spec/breakouts/request.ts +104 -0
- package/test/unit/spec/breakouts/utils.js +72 -0
- package/test/unit/spec/controls-options-manager/index.js +287 -0
- package/test/unit/spec/controls-options-manager/util.js +518 -0
- package/test/unit/spec/fixture/locus.js +1 -0
- package/test/unit/spec/locus-info/controlsUtils.js +303 -30
- package/test/unit/spec/locus-info/index.js +615 -4
- package/test/unit/spec/locus-info/mediaSharesUtils.ts +22 -0
- package/test/unit/spec/locus-info/selfConstant.js +38 -0
- package/test/unit/spec/locus-info/selfUtils.js +200 -0
- package/test/unit/spec/media/index.ts +118 -22
- package/test/unit/spec/media/properties.ts +9 -9
- package/test/unit/spec/meeting/in-meeting-actions.ts +76 -0
- package/test/unit/spec/meeting/index.js +2394 -1381
- package/test/unit/spec/meeting/locusMediaRequest.ts +436 -0
- package/test/unit/spec/meeting/muteState.js +370 -208
- package/test/unit/spec/meeting/request.js +354 -42
- package/test/unit/spec/meeting/utils.js +268 -156
- package/test/unit/spec/meeting-info/meetinginfov2.js +383 -5
- package/test/unit/spec/meeting-info/utilv2.js +21 -0
- package/test/unit/spec/meetings/collection.js +14 -0
- package/test/unit/spec/meetings/index.js +842 -128
- package/test/unit/spec/meetings/utils.js +206 -2
- package/test/unit/spec/member/index.js +24 -0
- package/test/unit/spec/member/util.js +384 -32
- package/test/unit/spec/members/index.js +320 -1
- package/test/unit/spec/members/request.js +206 -27
- package/test/unit/spec/members/utils.js +184 -0
- package/test/unit/spec/metrics/index.js +98 -0
- package/test/unit/spec/multistream/mediaRequestManager.ts +676 -105
- package/test/unit/spec/multistream/receiveSlot.ts +77 -18
- package/test/unit/spec/multistream/receiveSlotManager.ts +69 -39
- package/test/unit/spec/multistream/remoteMedia.ts +32 -2
- package/test/unit/spec/multistream/remoteMediaGroup.ts +271 -5
- package/test/unit/spec/multistream/remoteMediaManager.ts +672 -65
- package/test/unit/spec/networkQualityMonitor/index.js +4 -4
- package/test/unit/spec/reachability/index.ts +176 -25
- package/test/unit/spec/reachability/request.js +66 -0
- package/test/unit/spec/reconnection-manager/index.js +46 -13
- package/test/unit/spec/recording-controller/index.js +231 -0
- package/test/unit/spec/recording-controller/util.js +102 -0
- package/test/unit/spec/roap/index.ts +21 -51
- package/test/unit/spec/roap/request.ts +187 -0
- package/test/unit/spec/roap/turnDiscovery.ts +73 -34
- package/test/unit/spec/stats-analyzer/index.js +94 -43
- package/test/utils/constants.js +9 -0
- package/test/utils/integrationTestUtils.js +46 -0
- package/test/utils/testUtils.js +0 -45
- package/test/utils/webex-config.js +4 -0
- package/test/utils/webex-test-users.js +7 -3
- package/tsconfig.json +6 -0
- package/dist/media/internal-media-core-wrapper.js +0 -22
- package/dist/media/internal-media-core-wrapper.js.map +0 -1
- package/dist/meeting/effectsState.js +0 -334
- package/dist/meeting/effectsState.js.map +0 -1
- package/dist/multistream/multistreamMedia.js +0 -117
- package/dist/multistream/multistreamMedia.js.map +0 -1
- package/src/index.js +0 -15
- package/src/media/internal-media-core-wrapper.ts +0 -9
- package/src/meeting/effectsState.ts +0 -211
- package/src/multistream/multistreamMedia.ts +0 -93
- package/test/unit/spec/meeting/effectsState.js +0 -281
package/dist/meeting/request.js
CHANGED
|
@@ -1,227 +1,247 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _Reflect$construct = require("@babel/runtime-corejs2/core-js/reflect/construct");
|
|
4
|
-
|
|
5
4
|
var _Object$keys = require("@babel/runtime-corejs2/core-js/object/keys");
|
|
6
|
-
|
|
7
5
|
var _Object$getOwnPropertySymbols = require("@babel/runtime-corejs2/core-js/object/get-own-property-symbols");
|
|
8
|
-
|
|
9
6
|
var _Object$getOwnPropertyDescriptor = require("@babel/runtime-corejs2/core-js/object/get-own-property-descriptor");
|
|
10
|
-
|
|
11
7
|
var _Object$getOwnPropertyDescriptors = require("@babel/runtime-corejs2/core-js/object/get-own-property-descriptors");
|
|
12
|
-
|
|
13
8
|
var _Object$defineProperties = require("@babel/runtime-corejs2/core-js/object/define-properties");
|
|
14
|
-
|
|
15
9
|
var _Object$defineProperty = require("@babel/runtime-corejs2/core-js/object/define-property");
|
|
16
|
-
|
|
17
10
|
var _interopRequireDefault = require("@babel/runtime-corejs2/helpers/interopRequireDefault");
|
|
18
|
-
|
|
19
11
|
_Object$defineProperty(exports, "__esModule", {
|
|
20
12
|
value: true
|
|
21
13
|
});
|
|
22
|
-
|
|
23
14
|
exports.default = void 0;
|
|
24
|
-
|
|
25
15
|
var _promise = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/promise"));
|
|
26
|
-
|
|
27
16
|
var _stringify = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/json/stringify"));
|
|
28
|
-
|
|
29
17
|
var _regenerator = _interopRequireDefault(require("@babel/runtime-corejs2/regenerator"));
|
|
30
|
-
|
|
31
18
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/asyncToGenerator"));
|
|
32
|
-
|
|
19
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/objectWithoutProperties"));
|
|
33
20
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/classCallCheck"));
|
|
34
|
-
|
|
35
21
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/createClass"));
|
|
36
|
-
|
|
37
22
|
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/assertThisInitialized"));
|
|
38
|
-
|
|
39
23
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/inherits"));
|
|
40
|
-
|
|
41
24
|
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/possibleConstructorReturn"));
|
|
42
|
-
|
|
43
25
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/getPrototypeOf"));
|
|
44
|
-
|
|
45
26
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/defineProperty"));
|
|
46
|
-
|
|
47
27
|
var _debounce2 = _interopRequireDefault(require("lodash/debounce"));
|
|
48
|
-
|
|
49
28
|
var _uuid = _interopRequireDefault(require("uuid"));
|
|
50
|
-
|
|
51
29
|
var _webexCore = require("@webex/webex-core");
|
|
52
|
-
|
|
53
30
|
var _common = require("@webex/common");
|
|
54
|
-
|
|
55
31
|
var _loggerProxy = _interopRequireDefault(require("../common/logs/logger-proxy"));
|
|
56
|
-
|
|
57
32
|
var _constants = require("../constants");
|
|
58
|
-
|
|
33
|
+
var _util = _interopRequireDefault(require("./util"));
|
|
34
|
+
var _excluded = ["meeting"];
|
|
59
35
|
function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
60
|
-
|
|
61
36
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
62
|
-
|
|
63
37
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
64
|
-
|
|
65
38
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
66
|
-
|
|
67
39
|
/**
|
|
68
40
|
* @class MeetingRequest
|
|
69
41
|
*/
|
|
70
42
|
var MeetingRequest = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
71
43
|
(0, _inherits2.default)(MeetingRequest, _StatelessWebexPlugin);
|
|
72
|
-
|
|
73
44
|
var _super = _createSuper(MeetingRequest);
|
|
74
|
-
|
|
45
|
+
/**
|
|
46
|
+
* Constructor
|
|
47
|
+
* @param {Object} attrs
|
|
48
|
+
* @param {Object} options
|
|
49
|
+
*/
|
|
75
50
|
function MeetingRequest(attrs, options) {
|
|
76
51
|
var _this;
|
|
77
|
-
|
|
78
52
|
(0, _classCallCheck2.default)(this, MeetingRequest);
|
|
79
|
-
|
|
53
|
+
var meeting = attrs.meeting,
|
|
54
|
+
otherAttrs = (0, _objectWithoutProperties2.default)(attrs, _excluded);
|
|
55
|
+
_this = _super.call(this, otherAttrs, options);
|
|
80
56
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "changeVideoLayoutDebounced", void 0);
|
|
57
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "meetingRef", void 0);
|
|
58
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "locusDeltaRequest", void 0);
|
|
59
|
+
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "getJoinCookie", /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
|
60
|
+
var joinCookieRaw, joinCookie;
|
|
61
|
+
return _regenerator.default.wrap(function _callee$(_context) {
|
|
62
|
+
while (1) switch (_context.prev = _context.next) {
|
|
63
|
+
case 0:
|
|
64
|
+
_context.next = 2;
|
|
65
|
+
return _this.webex.boundedStorage.get(_constants.REACHABILITY.namespace, _constants.REACHABILITY.localStorageJoinCookie).catch(function () {});
|
|
66
|
+
case 2:
|
|
67
|
+
joinCookieRaw = _context.sent;
|
|
68
|
+
if (!joinCookieRaw) {
|
|
69
|
+
_context.next = 13;
|
|
70
|
+
break;
|
|
71
|
+
}
|
|
72
|
+
_context.prev = 4;
|
|
73
|
+
joinCookie = JSON.parse(joinCookieRaw);
|
|
74
|
+
if (!joinCookie) {
|
|
75
|
+
_context.next = 8;
|
|
76
|
+
break;
|
|
77
|
+
}
|
|
78
|
+
return _context.abrupt("return", joinCookie);
|
|
79
|
+
case 8:
|
|
80
|
+
_context.next = 13;
|
|
81
|
+
break;
|
|
82
|
+
case 10:
|
|
83
|
+
_context.prev = 10;
|
|
84
|
+
_context.t0 = _context["catch"](4);
|
|
85
|
+
_loggerProxy.default.logger.error("MeetingRequest#constructor --> Error in parsing join cookie data: ".concat(_context.t0));
|
|
86
|
+
case 13:
|
|
87
|
+
return _context.abrupt("return", null);
|
|
88
|
+
case 14:
|
|
89
|
+
case "end":
|
|
90
|
+
return _context.stop();
|
|
91
|
+
}
|
|
92
|
+
}, _callee, null, [[4, 10]]);
|
|
93
|
+
})));
|
|
94
|
+
_this.locusDeltaRequest = _util.default.generateLocusDeltaRequest(meeting);
|
|
81
95
|
_this.changeVideoLayoutDebounced = (0, _debounce2.default)(_this.changeVideoLayout, 2000, {
|
|
82
96
|
leading: true,
|
|
83
97
|
trailing: true
|
|
84
98
|
});
|
|
85
99
|
return _this;
|
|
86
100
|
}
|
|
101
|
+
|
|
87
102
|
/**
|
|
88
|
-
*
|
|
89
|
-
* @
|
|
90
|
-
* @param {String} options.sipUri
|
|
91
|
-
* @param {String} options.deviceUrl
|
|
92
|
-
* @param {String} options.locusUrl
|
|
93
|
-
* @param {String} options.resourceId,
|
|
94
|
-
* @param {String} options.correlationId
|
|
95
|
-
* @param {boolean} options.ensureConversation
|
|
96
|
-
* @param {boolean} options.moderator
|
|
97
|
-
* @param {boolean} options.pin
|
|
98
|
-
* @param {boolean} options.moveToResource
|
|
99
|
-
* @param {Object} options.roapMessage
|
|
100
|
-
* @returns {Promise}
|
|
103
|
+
* Returns joinCookie from boundedStorage if present.
|
|
104
|
+
* @returns {Object} joinCookie
|
|
101
105
|
*/
|
|
102
|
-
|
|
103
|
-
|
|
104
106
|
(0, _createClass2.default)(MeetingRequest, [{
|
|
105
107
|
key: "joinMeeting",
|
|
106
|
-
value:
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
if (!locusUrl) {
|
|
157
|
-
_context.next = 12;
|
|
158
|
-
break;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
url = "".concat(locusUrl, "/").concat(_constants.PARTICIPANT);
|
|
162
|
-
_context.next = 24;
|
|
163
|
-
break;
|
|
164
|
-
|
|
165
|
-
case 12:
|
|
166
|
-
if (!(inviteeAddress || meetingNumber)) {
|
|
167
|
-
_context.next = 24;
|
|
168
|
-
break;
|
|
108
|
+
value:
|
|
109
|
+
/**
|
|
110
|
+
* Make a network request to join a meeting
|
|
111
|
+
* @param {Object} options
|
|
112
|
+
* @param {String} options.sipUri
|
|
113
|
+
* @param {String} options.deviceUrl
|
|
114
|
+
* @param {String} options.locusUrl
|
|
115
|
+
* @param {String} options.resourceId,
|
|
116
|
+
* @param {String} options.correlationId
|
|
117
|
+
* @param {boolean} options.ensureConversation
|
|
118
|
+
* @param {boolean} options.moderator
|
|
119
|
+
* @param {boolean} options.pin
|
|
120
|
+
* @param {boolean} options.moveToResource
|
|
121
|
+
* @param {Object} options.roapMessage
|
|
122
|
+
* @param {boolean} options.breakoutsSupported
|
|
123
|
+
* @param {String} options.locale,
|
|
124
|
+
* @param {Array} options.deviceCapabilities
|
|
125
|
+
* @param {boolean} options.liveAnnotationSupported
|
|
126
|
+
* @returns {Promise}
|
|
127
|
+
*/
|
|
128
|
+
function () {
|
|
129
|
+
var _joinMeeting = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(options) {
|
|
130
|
+
var asResourceOccupant, inviteeAddress, meetingNumber, permissionToken, deviceUrl, locusUrl, resourceId, correlationId, ensureConversation, moderator, pin, moveToResource, roapMessage, preferTranscoding, breakoutsSupported, locale, _options$deviceCapabi, deviceCapabilities, liveAnnotationSupported, url, joinCookie, body;
|
|
131
|
+
return _regenerator.default.wrap(function _callee2$(_context2) {
|
|
132
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
133
|
+
case 0:
|
|
134
|
+
asResourceOccupant = options.asResourceOccupant, inviteeAddress = options.inviteeAddress, meetingNumber = options.meetingNumber, permissionToken = options.permissionToken, deviceUrl = options.deviceUrl, locusUrl = options.locusUrl, resourceId = options.resourceId, correlationId = options.correlationId, ensureConversation = options.ensureConversation, moderator = options.moderator, pin = options.pin, moveToResource = options.moveToResource, roapMessage = options.roapMessage, preferTranscoding = options.preferTranscoding, breakoutsSupported = options.breakoutsSupported, locale = options.locale, _options$deviceCapabi = options.deviceCapabilities, deviceCapabilities = _options$deviceCapabi === void 0 ? [] : _options$deviceCapabi, liveAnnotationSupported = options.liveAnnotationSupported;
|
|
135
|
+
_loggerProxy.default.logger.info('Meeting:request#joinMeeting --> Joining a meeting', correlationId);
|
|
136
|
+
url = '';
|
|
137
|
+
_context2.next = 5;
|
|
138
|
+
return this.getJoinCookie();
|
|
139
|
+
case 5:
|
|
140
|
+
joinCookie = _context2.sent;
|
|
141
|
+
body = {
|
|
142
|
+
asResourceOccupant: asResourceOccupant,
|
|
143
|
+
device: {
|
|
144
|
+
url: deviceUrl,
|
|
145
|
+
// @ts-ignore - config comes from registerPlugin
|
|
146
|
+
deviceType: this.config.meetings.deviceType
|
|
147
|
+
},
|
|
148
|
+
usingResource: resourceId || null,
|
|
149
|
+
moveMediaToResource: resourceId && moveToResource || false,
|
|
150
|
+
correlationId: correlationId,
|
|
151
|
+
respOnlySdp: true,
|
|
152
|
+
allowMultiDevice: true,
|
|
153
|
+
ensureConversation: ensureConversation || false,
|
|
154
|
+
supportsNativeLobby: 1,
|
|
155
|
+
clientMediaPreferences: {
|
|
156
|
+
preferTranscoding: preferTranscoding !== null && preferTranscoding !== void 0 ? preferTranscoding : true,
|
|
157
|
+
joinCookie: joinCookie
|
|
169
158
|
}
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
159
|
+
};
|
|
160
|
+
if (breakoutsSupported) {
|
|
161
|
+
deviceCapabilities.push(_constants.BREAKOUTS.BREAKOUTS_SUPPORTED);
|
|
162
|
+
}
|
|
163
|
+
if (liveAnnotationSupported) {
|
|
164
|
+
deviceCapabilities.push(_constants.ANNOTATION.ANNOTATION_ON_SHARE_SUPPORTED);
|
|
165
|
+
}
|
|
166
|
+
if (locale) {
|
|
167
|
+
body.locale = locale;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
// add deviceCapabilities prop
|
|
171
|
+
if (deviceCapabilities.length) {
|
|
172
|
+
body.deviceCapabilities = deviceCapabilities;
|
|
173
|
+
}
|
|
174
|
+
// @ts-ignore
|
|
175
|
+
if (this.webex.meetings.clientRegion) {
|
|
176
176
|
// @ts-ignore
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
177
|
+
body.device.countryCode = this.webex.meetings.clientRegion.countryCode;
|
|
178
|
+
// @ts-ignore
|
|
179
|
+
body.device.regionCode = this.webex.meetings.clientRegion.regionCode;
|
|
180
|
+
}
|
|
181
|
+
if (moderator !== undefined) {
|
|
182
|
+
body.moderator = moderator;
|
|
183
|
+
}
|
|
184
|
+
if (permissionToken) {
|
|
185
|
+
body.permissionToken = permissionToken;
|
|
186
|
+
}
|
|
187
|
+
if (pin !== undefined) {
|
|
188
|
+
body.pin = pin;
|
|
189
|
+
}
|
|
190
|
+
if (!locusUrl) {
|
|
191
|
+
_context2.next = 19;
|
|
182
192
|
break;
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
193
|
+
}
|
|
194
|
+
url = "".concat(locusUrl, "/").concat(_constants.PARTICIPANT);
|
|
195
|
+
_context2.next = 31;
|
|
196
|
+
break;
|
|
197
|
+
case 19:
|
|
198
|
+
if (!(inviteeAddress || meetingNumber)) {
|
|
199
|
+
_context2.next = 31;
|
|
200
|
+
break;
|
|
201
|
+
}
|
|
202
|
+
_context2.prev = 20;
|
|
203
|
+
_context2.next = 23;
|
|
204
|
+
return this.webex.internal.services.waitForCatalog('postauth');
|
|
205
|
+
case 23:
|
|
206
|
+
// @ts-ignore
|
|
207
|
+
url = "".concat(this.webex.internal.services.get('locus'), "/").concat(_constants.LOCI, "/").concat(_constants.CALL);
|
|
208
|
+
body.invitee = {
|
|
209
|
+
address: inviteeAddress || "wbxmn:".concat(meetingNumber)
|
|
210
|
+
};
|
|
211
|
+
_context2.next = 31;
|
|
212
|
+
break;
|
|
213
|
+
case 27:
|
|
214
|
+
_context2.prev = 27;
|
|
215
|
+
_context2.t0 = _context2["catch"](20);
|
|
216
|
+
_loggerProxy.default.logger.error("Meeting:request#joinMeeting Error Joining ".concat(inviteeAddress || meetingNumber, " --> ").concat(_context2.t0));
|
|
217
|
+
throw _context2.t0;
|
|
218
|
+
case 31:
|
|
219
|
+
// TODO: -- this will be resolved in SDK request
|
|
220
|
+
url = url.concat("?".concat(_constants.ALTERNATE_REDIRECT_TRUE));
|
|
221
|
+
if (resourceId === inviteeAddress) {
|
|
222
|
+
body.callPreferences = {
|
|
223
|
+
requestedMedia: [_constants._SLIDES_]
|
|
224
|
+
};
|
|
225
|
+
}
|
|
226
|
+
if (roapMessage) {
|
|
227
|
+
body.localMedias = roapMessage.localMedias;
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
/// @ts-ignore
|
|
231
|
+
return _context2.abrupt("return", this.request({
|
|
232
|
+
method: _constants.HTTP_VERBS.POST,
|
|
233
|
+
uri: url,
|
|
234
|
+
body: body
|
|
235
|
+
}));
|
|
236
|
+
case 35:
|
|
237
|
+
case "end":
|
|
238
|
+
return _context2.stop();
|
|
217
239
|
}
|
|
218
|
-
},
|
|
240
|
+
}, _callee2, this, [[20, 27]]);
|
|
219
241
|
}));
|
|
220
|
-
|
|
221
242
|
function joinMeeting(_x) {
|
|
222
243
|
return _joinMeeting.apply(this, arguments);
|
|
223
244
|
}
|
|
224
|
-
|
|
225
245
|
return joinMeeting;
|
|
226
246
|
}()
|
|
227
247
|
/**
|
|
@@ -232,26 +252,26 @@ var MeetingRequest = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
232
252
|
* @returns {Promise}
|
|
233
253
|
* @private
|
|
234
254
|
*/
|
|
235
|
-
|
|
236
255
|
}, {
|
|
237
256
|
key: "refreshCaptcha",
|
|
238
|
-
value: function refreshCaptcha(
|
|
239
|
-
var captchaRefreshUrl =
|
|
240
|
-
|
|
257
|
+
value: function refreshCaptcha(_ref2) {
|
|
258
|
+
var captchaRefreshUrl = _ref2.captchaRefreshUrl,
|
|
259
|
+
captchaId = _ref2.captchaId;
|
|
241
260
|
var body = {
|
|
242
261
|
captchaId: captchaId
|
|
243
|
-
};
|
|
262
|
+
};
|
|
244
263
|
|
|
264
|
+
// @ts-ignore
|
|
245
265
|
return this.request({
|
|
246
266
|
method: _constants.HTTP_VERBS.POST,
|
|
247
267
|
uri: captchaRefreshUrl,
|
|
248
268
|
body: body
|
|
249
269
|
}).catch(function (err) {
|
|
250
270
|
_loggerProxy.default.logger.error("Meeting:request#refreshCaptcha --> Error: ".concat(err));
|
|
251
|
-
|
|
252
271
|
throw err;
|
|
253
272
|
});
|
|
254
273
|
}
|
|
274
|
+
|
|
255
275
|
/**
|
|
256
276
|
* Make a network request to add a dial in device
|
|
257
277
|
* @param {Object} options
|
|
@@ -262,17 +282,14 @@ var MeetingRequest = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
262
282
|
* @returns {Promise}
|
|
263
283
|
* @private
|
|
264
284
|
*/
|
|
265
|
-
|
|
266
285
|
}, {
|
|
267
286
|
key: "dialIn",
|
|
268
|
-
value: function dialIn(
|
|
269
|
-
var locusUrl =
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
287
|
+
value: function dialIn(_ref3) {
|
|
288
|
+
var locusUrl = _ref3.locusUrl,
|
|
289
|
+
dialInUrl = _ref3.dialInUrl,
|
|
290
|
+
clientUrl = _ref3.clientUrl,
|
|
291
|
+
correlationId = _ref3.correlationId;
|
|
274
292
|
_loggerProxy.default.logger.info('Meeting:request#dialIn --> Provisioning a dial in device', correlationId);
|
|
275
|
-
|
|
276
293
|
var uri = "".concat(locusUrl, "/").concat(_constants.PARTICIPANT);
|
|
277
294
|
var body = {
|
|
278
295
|
device: {
|
|
@@ -282,18 +299,19 @@ var MeetingRequest = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
282
299
|
clientUrl: clientUrl
|
|
283
300
|
},
|
|
284
301
|
correlationId: correlationId
|
|
285
|
-
};
|
|
302
|
+
};
|
|
286
303
|
|
|
287
|
-
|
|
304
|
+
// @ts-ignore
|
|
305
|
+
return this.locusDeltaRequest({
|
|
288
306
|
method: _constants.HTTP_VERBS.POST,
|
|
289
307
|
uri: uri,
|
|
290
308
|
body: body
|
|
291
309
|
}).catch(function (err) {
|
|
292
310
|
_loggerProxy.default.logger.error("Meeting:request#dialIn --> Error provisioning a dial in device, error ".concat(err));
|
|
293
|
-
|
|
294
311
|
throw err;
|
|
295
312
|
});
|
|
296
313
|
}
|
|
314
|
+
|
|
297
315
|
/**
|
|
298
316
|
* Make a network request to add a dial out device
|
|
299
317
|
* @param {Object} options
|
|
@@ -305,18 +323,15 @@ var MeetingRequest = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
305
323
|
* @returns {Promise}
|
|
306
324
|
* @private
|
|
307
325
|
*/
|
|
308
|
-
|
|
309
326
|
}, {
|
|
310
327
|
key: "dialOut",
|
|
311
|
-
value: function dialOut(
|
|
312
|
-
var locusUrl =
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
328
|
+
value: function dialOut(_ref4) {
|
|
329
|
+
var locusUrl = _ref4.locusUrl,
|
|
330
|
+
dialOutUrl = _ref4.dialOutUrl,
|
|
331
|
+
phoneNumber = _ref4.phoneNumber,
|
|
332
|
+
clientUrl = _ref4.clientUrl,
|
|
333
|
+
correlationId = _ref4.correlationId;
|
|
318
334
|
_loggerProxy.default.logger.info('Meeting:request#dialOut --> Provisioning a dial out device', correlationId);
|
|
319
|
-
|
|
320
335
|
var uri = "".concat(locusUrl, "/").concat(_constants.PARTICIPANT);
|
|
321
336
|
var body = {
|
|
322
337
|
device: {
|
|
@@ -327,18 +342,19 @@ var MeetingRequest = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
327
342
|
clientUrl: clientUrl
|
|
328
343
|
},
|
|
329
344
|
correlationId: correlationId
|
|
330
|
-
};
|
|
345
|
+
};
|
|
331
346
|
|
|
332
|
-
|
|
347
|
+
// @ts-ignore
|
|
348
|
+
return this.locusDeltaRequest({
|
|
333
349
|
method: _constants.HTTP_VERBS.POST,
|
|
334
350
|
uri: uri,
|
|
335
351
|
body: body
|
|
336
352
|
}).catch(function (err) {
|
|
337
353
|
_loggerProxy.default.logger.error("Meeting:request#dialOut --> Error provisioning a dial out device, error ".concat(err));
|
|
338
|
-
|
|
339
354
|
throw err;
|
|
340
355
|
});
|
|
341
356
|
}
|
|
357
|
+
|
|
342
358
|
/**
|
|
343
359
|
* Syns the missed delta event
|
|
344
360
|
* @param {Object} options
|
|
@@ -346,31 +362,30 @@ var MeetingRequest = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
346
362
|
* @param {String} options.syncUrl sync url to get ht elatest locus delta
|
|
347
363
|
* @returns {Promise}
|
|
348
364
|
*/
|
|
349
|
-
|
|
350
365
|
}, {
|
|
351
366
|
key: "syncMeeting",
|
|
352
367
|
value: function syncMeeting(options) {
|
|
353
368
|
/* eslint-disable no-else-return */
|
|
354
369
|
var desync = options.desync;
|
|
355
370
|
var syncUrl = options.syncUrl;
|
|
356
|
-
/* istanbul ignore else */
|
|
357
371
|
|
|
372
|
+
/* istanbul ignore else */
|
|
358
373
|
if (desync) {
|
|
359
374
|
// check for existing URL parameters
|
|
360
375
|
syncUrl = syncUrl.concat(syncUrl.split('?')[1] ? '&' : '?').concat("".concat(_constants.LOCUS.SYNCDEBUG, "=").concat(desync));
|
|
361
|
-
}
|
|
362
|
-
|
|
376
|
+
}
|
|
363
377
|
|
|
378
|
+
// @ts-ignore
|
|
364
379
|
return this.request({
|
|
365
380
|
method: _constants.HTTP_VERBS.GET,
|
|
366
381
|
uri: syncUrl
|
|
367
382
|
}) // TODO: Handle if delta sync failed . Get the full locus object
|
|
368
383
|
.catch(function (err) {
|
|
369
384
|
_loggerProxy.default.logger.error("Meeting:request#syncMeeting --> Error syncing meeting, error ".concat(err));
|
|
370
|
-
|
|
371
385
|
return err;
|
|
372
386
|
});
|
|
373
387
|
}
|
|
388
|
+
|
|
374
389
|
/**
|
|
375
390
|
* Request to get the complete locus object
|
|
376
391
|
* @param {Object} options
|
|
@@ -378,31 +393,28 @@ var MeetingRequest = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
378
393
|
* @param {String} options.locusUrl sync url to get ht elatest locus delta
|
|
379
394
|
* @returns {Promise}
|
|
380
395
|
*/
|
|
381
|
-
|
|
382
396
|
}, {
|
|
383
397
|
key: "getFullLocus",
|
|
384
398
|
value: function getFullLocus(options) {
|
|
385
399
|
var locusUrl = options.locusUrl;
|
|
386
400
|
var desync = options.desync;
|
|
387
|
-
|
|
388
401
|
if (locusUrl) {
|
|
389
402
|
if (desync) {
|
|
390
403
|
locusUrl += "?".concat(_constants.LOCUS.SYNCDEBUG, "=").concat(desync);
|
|
391
|
-
}
|
|
392
|
-
|
|
404
|
+
}
|
|
393
405
|
|
|
406
|
+
// @ts-ignore
|
|
394
407
|
return this.request({
|
|
395
408
|
method: _constants.HTTP_VERBS.GET,
|
|
396
409
|
uri: locusUrl
|
|
397
410
|
}).catch(function (err) {
|
|
398
411
|
_loggerProxy.default.logger.error("Meeting:request#getFullLocus --> Error getting full locus, error ".concat(err));
|
|
399
|
-
|
|
400
412
|
return err;
|
|
401
413
|
});
|
|
402
414
|
}
|
|
403
|
-
|
|
404
415
|
return _promise.default.reject();
|
|
405
416
|
}
|
|
417
|
+
|
|
406
418
|
/**
|
|
407
419
|
* Make a network request to make a provisioned phone leave the meeting
|
|
408
420
|
* @param {Object} options
|
|
@@ -413,17 +425,14 @@ var MeetingRequest = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
413
425
|
* @returns {Promise}
|
|
414
426
|
* @private
|
|
415
427
|
*/
|
|
416
|
-
|
|
417
428
|
}, {
|
|
418
429
|
key: "disconnectPhoneAudio",
|
|
419
|
-
value: function disconnectPhoneAudio(
|
|
420
|
-
var locusUrl =
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
430
|
+
value: function disconnectPhoneAudio(_ref5) {
|
|
431
|
+
var locusUrl = _ref5.locusUrl,
|
|
432
|
+
phoneUrl = _ref5.phoneUrl,
|
|
433
|
+
correlationId = _ref5.correlationId,
|
|
434
|
+
selfId = _ref5.selfId;
|
|
425
435
|
_loggerProxy.default.logger.info("Meeting:request#disconnectPhoneAudio --> request phone ".concat(phoneUrl, " to leave"), correlationId);
|
|
426
|
-
|
|
427
436
|
var uri = "".concat(locusUrl, "/").concat(_constants.PARTICIPANT, "/").concat(selfId, "/").concat(_constants.LEAVE);
|
|
428
437
|
var body = {
|
|
429
438
|
device: {
|
|
@@ -431,18 +440,19 @@ var MeetingRequest = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
431
440
|
url: phoneUrl
|
|
432
441
|
},
|
|
433
442
|
correlationId: correlationId
|
|
434
|
-
};
|
|
443
|
+
};
|
|
435
444
|
|
|
436
|
-
|
|
445
|
+
// @ts-ignore
|
|
446
|
+
return this.locusDeltaRequest({
|
|
437
447
|
method: _constants.HTTP_VERBS.PUT,
|
|
438
448
|
uri: uri,
|
|
439
449
|
body: body
|
|
440
450
|
}).catch(function (err) {
|
|
441
451
|
_loggerProxy.default.logger.error("Meeting:request#disconnectPhoneAudio --> Error when requesting phone ".concat(phoneUrl, " to leave, error ").concat(err));
|
|
442
|
-
|
|
443
452
|
throw err;
|
|
444
453
|
});
|
|
445
454
|
}
|
|
455
|
+
|
|
446
456
|
/**
|
|
447
457
|
* Make a network request to leave a meeting
|
|
448
458
|
* @param {Object} options
|
|
@@ -453,18 +463,15 @@ var MeetingRequest = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
453
463
|
* @param {String} options.correlationId
|
|
454
464
|
* @returns {Promise}
|
|
455
465
|
*/
|
|
456
|
-
|
|
457
466
|
}, {
|
|
458
467
|
key: "leaveMeeting",
|
|
459
|
-
value: function leaveMeeting(
|
|
460
|
-
var locusUrl =
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
468
|
+
value: function leaveMeeting(_ref6) {
|
|
469
|
+
var locusUrl = _ref6.locusUrl,
|
|
470
|
+
selfId = _ref6.selfId,
|
|
471
|
+
url = _ref6.deviceUrl,
|
|
472
|
+
resourceId = _ref6.resourceId,
|
|
473
|
+
correlationId = _ref6.correlationId;
|
|
466
474
|
_loggerProxy.default.logger.info('Meeting:request#leaveMeeting --> Leaving a meeting', correlationId);
|
|
467
|
-
|
|
468
475
|
var uri = "".concat(locusUrl, "/").concat(_constants.PARTICIPANT, "/").concat(selfId, "/").concat(_constants.LEAVE);
|
|
469
476
|
var body = {
|
|
470
477
|
device: {
|
|
@@ -474,14 +481,14 @@ var MeetingRequest = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
474
481
|
},
|
|
475
482
|
usingResource: resourceId || null,
|
|
476
483
|
correlationId: correlationId
|
|
477
|
-
};
|
|
478
|
-
|
|
479
|
-
return this.request({
|
|
484
|
+
};
|
|
485
|
+
return this.locusDeltaRequest({
|
|
480
486
|
method: _constants.HTTP_VERBS.PUT,
|
|
481
487
|
uri: uri,
|
|
482
488
|
body: body
|
|
483
489
|
});
|
|
484
490
|
}
|
|
491
|
+
|
|
485
492
|
/**
|
|
486
493
|
* Make a network request to acknowledge a meeting
|
|
487
494
|
* @param {Object} options
|
|
@@ -490,7 +497,6 @@ var MeetingRequest = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
490
497
|
* @param {String} options.correlationId
|
|
491
498
|
* @returns {Promise}
|
|
492
499
|
*/
|
|
493
|
-
|
|
494
500
|
}, {
|
|
495
501
|
key: "acknowledgeMeeting",
|
|
496
502
|
value: function acknowledgeMeeting(options) {
|
|
@@ -502,40 +508,20 @@ var MeetingRequest = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
502
508
|
url: options.deviceUrl
|
|
503
509
|
},
|
|
504
510
|
correlationId: options.correlationId
|
|
505
|
-
};
|
|
506
|
-
|
|
507
|
-
return this.request({
|
|
511
|
+
};
|
|
512
|
+
return this.locusDeltaRequest({
|
|
508
513
|
method: _constants.HTTP_VERBS.PUT,
|
|
509
514
|
uri: uri,
|
|
510
515
|
body: body
|
|
511
516
|
});
|
|
512
517
|
}
|
|
518
|
+
|
|
513
519
|
/**
|
|
514
|
-
*
|
|
520
|
+
* Makes a network request to lock the meeting
|
|
515
521
|
* @param {Object} options
|
|
516
|
-
* @param {
|
|
517
|
-
* @param {String} options.deviceUrl
|
|
518
|
-
* @param {String} options.id
|
|
522
|
+
* @param {Boolean} options.lock Whether it is locked or not
|
|
519
523
|
* @returns {Promise}
|
|
520
524
|
*/
|
|
521
|
-
|
|
522
|
-
}, {
|
|
523
|
-
key: "recordMeeting",
|
|
524
|
-
value: function recordMeeting(options) {
|
|
525
|
-
var uri = "".concat(options.locusUrl, "/").concat(_constants.CONTROLS);
|
|
526
|
-
var body = {
|
|
527
|
-
record: {
|
|
528
|
-
recording: options.recording,
|
|
529
|
-
paused: options.paused
|
|
530
|
-
}
|
|
531
|
-
}; // @ts-ignore
|
|
532
|
-
|
|
533
|
-
return this.request({
|
|
534
|
-
method: _constants.HTTP_VERBS.PATCH,
|
|
535
|
-
uri: uri,
|
|
536
|
-
body: body
|
|
537
|
-
});
|
|
538
|
-
}
|
|
539
525
|
}, {
|
|
540
526
|
key: "lockMeeting",
|
|
541
527
|
value: function lockMeeting(options) {
|
|
@@ -544,14 +530,14 @@ var MeetingRequest = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
544
530
|
lock: {
|
|
545
531
|
locked: options.lock
|
|
546
532
|
}
|
|
547
|
-
};
|
|
548
|
-
|
|
549
|
-
return this.request({
|
|
533
|
+
};
|
|
534
|
+
return this.locusDeltaRequest({
|
|
550
535
|
method: _constants.HTTP_VERBS.PATCH,
|
|
551
536
|
uri: uri,
|
|
552
537
|
body: body
|
|
553
538
|
});
|
|
554
539
|
}
|
|
540
|
+
|
|
555
541
|
/**
|
|
556
542
|
* Make a network request to decline a meeting
|
|
557
543
|
* @param {Object} options
|
|
@@ -560,12 +546,10 @@ var MeetingRequest = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
560
546
|
* @param {String} options.reason
|
|
561
547
|
* @returns {Promise}
|
|
562
548
|
*/
|
|
563
|
-
|
|
564
549
|
}, {
|
|
565
550
|
key: "declineMeeting",
|
|
566
551
|
value: function declineMeeting(options) {
|
|
567
552
|
var uri = "".concat(options.locusUrl, "/").concat(_constants.PARTICIPANT, "/").concat(_constants.DECLINE);
|
|
568
|
-
|
|
569
553
|
var body = _objectSpread({
|
|
570
554
|
device: {
|
|
571
555
|
// @ts-ignore
|
|
@@ -574,54 +558,14 @@ var MeetingRequest = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
574
558
|
}
|
|
575
559
|
}, options.reason && {
|
|
576
560
|
reason: options.reason
|
|
577
|
-
}); // @ts-ignore
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
return this.request({
|
|
581
|
-
method: _constants.HTTP_VERBS.PUT,
|
|
582
|
-
uri: uri,
|
|
583
|
-
body: body
|
|
584
561
|
});
|
|
585
|
-
|
|
586
|
-
/**
|
|
587
|
-
* Toggle remote audio and/or video
|
|
588
|
-
* @param {Object} options options for toggling
|
|
589
|
-
* @param {String} options.selfId Locus self id??
|
|
590
|
-
* @param {String} options.locusUrl Locus url
|
|
591
|
-
* @param {String} options.deviceUrl Url of a device
|
|
592
|
-
* @param {String} options.resourceId Populated if you are paired to a device
|
|
593
|
-
* @param {String} options.localMedias local sdps
|
|
594
|
-
* @param {Boolean} options.preferTranscoding false for multistream (Homer), true for transcoded media (Edonus)
|
|
595
|
-
* @returns {Promise}
|
|
596
|
-
*/
|
|
597
|
-
|
|
598
|
-
}, {
|
|
599
|
-
key: "remoteAudioVideoToggle",
|
|
600
|
-
value: function remoteAudioVideoToggle(options) {
|
|
601
|
-
var _options$preferTransc;
|
|
602
|
-
|
|
603
|
-
var uri = "".concat(options.locusUrl, "/").concat(_constants.PARTICIPANT, "/").concat(options.selfId, "/").concat(_constants.MEDIA);
|
|
604
|
-
var body = {
|
|
605
|
-
device: {
|
|
606
|
-
// @ts-ignore
|
|
607
|
-
deviceType: this.config.meetings.deviceType,
|
|
608
|
-
url: options.deviceUrl
|
|
609
|
-
},
|
|
610
|
-
usingResource: options.resourceId || null,
|
|
611
|
-
correlationId: options.correlationId,
|
|
612
|
-
respOnlySdp: true,
|
|
613
|
-
localMedias: options.localMedias,
|
|
614
|
-
clientMediaPreferences: {
|
|
615
|
-
preferTranscoding: (_options$preferTransc = options.preferTranscoding) !== null && _options$preferTransc !== void 0 ? _options$preferTransc : true
|
|
616
|
-
}
|
|
617
|
-
}; // @ts-ignore
|
|
618
|
-
|
|
619
|
-
return this.request({
|
|
562
|
+
return this.locusDeltaRequest({
|
|
620
563
|
method: _constants.HTTP_VERBS.PUT,
|
|
621
564
|
uri: uri,
|
|
622
565
|
body: body
|
|
623
566
|
});
|
|
624
567
|
}
|
|
568
|
+
|
|
625
569
|
/**
|
|
626
570
|
* change the content floor grant
|
|
627
571
|
* @param {Object} options options for floor grant
|
|
@@ -632,15 +576,14 @@ var MeetingRequest = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
632
576
|
* @param {String} options.uri floor grant uri
|
|
633
577
|
* @returns {Promise}
|
|
634
578
|
*/
|
|
635
|
-
|
|
636
579
|
}, {
|
|
637
580
|
key: "changeMeetingFloor",
|
|
638
581
|
value: function changeMeetingFloor(options) {
|
|
639
582
|
var floorReq = {
|
|
640
583
|
disposition: options.disposition
|
|
641
584
|
};
|
|
642
|
-
/* istanbul ignore else */
|
|
643
585
|
|
|
586
|
+
/* istanbul ignore else */
|
|
644
587
|
if (options.disposition === _constants.FLOOR_ACTION.GRANTED) {
|
|
645
588
|
floorReq = {
|
|
646
589
|
beneficiary: {
|
|
@@ -657,23 +600,25 @@ var MeetingRequest = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
657
600
|
}
|
|
658
601
|
};
|
|
659
602
|
}
|
|
660
|
-
|
|
661
603
|
var body = {
|
|
662
604
|
floor: floorReq,
|
|
663
605
|
resourceUrl: options.resourceUrl
|
|
664
606
|
};
|
|
665
|
-
|
|
666
607
|
if (options !== null && options !== void 0 && options.resourceToken) {
|
|
667
608
|
body.resourceToken = options === null || options === void 0 ? void 0 : options.resourceToken;
|
|
668
|
-
}
|
|
669
|
-
|
|
609
|
+
}
|
|
610
|
+
if (options !== null && options !== void 0 && options.annotationInfo) {
|
|
611
|
+
body.annotation = options === null || options === void 0 ? void 0 : options.annotationInfo;
|
|
612
|
+
}
|
|
670
613
|
|
|
614
|
+
// @ts-ignore
|
|
671
615
|
return this.request({
|
|
672
616
|
uri: options.uri,
|
|
673
617
|
method: _constants.HTTP_VERBS.PUT,
|
|
674
618
|
body: body
|
|
675
619
|
});
|
|
676
620
|
}
|
|
621
|
+
|
|
677
622
|
/**
|
|
678
623
|
* Sends a request to the DTMF endpoint to send tones
|
|
679
624
|
* @param {Object} options
|
|
@@ -682,15 +627,14 @@ var MeetingRequest = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
682
627
|
* @param {String} options.tones a string of one or more DTMF tones to send
|
|
683
628
|
* @returns {Promise}
|
|
684
629
|
*/
|
|
685
|
-
|
|
686
630
|
}, {
|
|
687
631
|
key: "sendDTMF",
|
|
688
|
-
value: function sendDTMF(
|
|
689
|
-
var locusUrl =
|
|
690
|
-
|
|
691
|
-
|
|
632
|
+
value: function sendDTMF(_ref7) {
|
|
633
|
+
var locusUrl = _ref7.locusUrl,
|
|
634
|
+
deviceUrl = _ref7.deviceUrl,
|
|
635
|
+
tones = _ref7.tones;
|
|
692
636
|
// @ts-ignore
|
|
693
|
-
return this.
|
|
637
|
+
return this.locusDeltaRequest({
|
|
694
638
|
method: _constants.HTTP_VERBS.POST,
|
|
695
639
|
uri: "".concat(locusUrl, "/").concat(_constants.SEND_DTMF_ENDPOINT),
|
|
696
640
|
body: {
|
|
@@ -702,6 +646,7 @@ var MeetingRequest = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
702
646
|
}
|
|
703
647
|
});
|
|
704
648
|
}
|
|
649
|
+
|
|
705
650
|
/**
|
|
706
651
|
* Sends a request to the controls endpoint to set the video layout
|
|
707
652
|
* @param {Object} options
|
|
@@ -716,25 +661,21 @@ var MeetingRequest = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
716
661
|
* @param {Number} options.content.height preferred height of content share stream
|
|
717
662
|
* @returns {Promise}
|
|
718
663
|
*/
|
|
719
|
-
|
|
720
664
|
}, {
|
|
721
665
|
key: "changeVideoLayout",
|
|
722
|
-
value: function changeVideoLayout(
|
|
723
|
-
var locusUrl =
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
666
|
+
value: function changeVideoLayout(_ref8) {
|
|
667
|
+
var locusUrl = _ref8.locusUrl,
|
|
668
|
+
deviceUrl = _ref8.deviceUrl,
|
|
669
|
+
layoutType = _ref8.layoutType,
|
|
670
|
+
main = _ref8.main,
|
|
671
|
+
content = _ref8.content;
|
|
729
672
|
// send main/content renderInfo only if both width and height are specified
|
|
730
673
|
if (main && (!main.width || !main.height)) {
|
|
731
674
|
return _promise.default.reject(new Error("Both width and height must be specified. One of them is missing for main: ".concat((0, _stringify.default)(main))));
|
|
732
675
|
}
|
|
733
|
-
|
|
734
676
|
if (content && (!content.width || !content.height)) {
|
|
735
677
|
return _promise.default.reject(new Error("Both width and height must be specified. One of them is missing for content: ".concat((0, _stringify.default)(content))));
|
|
736
678
|
}
|
|
737
|
-
|
|
738
679
|
var renderInfoMain = main ? {
|
|
739
680
|
width: main.width,
|
|
740
681
|
height: main.height
|
|
@@ -748,9 +689,10 @@ var MeetingRequest = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
748
689
|
main: renderInfoMain,
|
|
749
690
|
content: renderInfoContent
|
|
750
691
|
}
|
|
751
|
-
} : undefined;
|
|
692
|
+
} : undefined;
|
|
752
693
|
|
|
753
|
-
|
|
694
|
+
// @ts-ignore
|
|
695
|
+
return this.locusDeltaRequest({
|
|
754
696
|
method: _constants.HTTP_VERBS.PUT,
|
|
755
697
|
uri: "".concat(locusUrl, "/").concat(_constants.CONTROLS),
|
|
756
698
|
body: {
|
|
@@ -762,41 +704,43 @@ var MeetingRequest = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
762
704
|
}
|
|
763
705
|
});
|
|
764
706
|
}
|
|
707
|
+
|
|
765
708
|
/**
|
|
766
709
|
* Make a network request to end meeting for all
|
|
767
710
|
* @param {Object} options
|
|
768
711
|
* @param {Url} options.locusUrl
|
|
769
712
|
* @returns {Promise}
|
|
770
713
|
*/
|
|
771
|
-
|
|
772
714
|
}, {
|
|
773
715
|
key: "endMeetingForAll",
|
|
774
|
-
value: function endMeetingForAll(
|
|
775
|
-
var locusUrl =
|
|
776
|
-
var uri = "".concat(locusUrl, "/").concat(_constants.END);
|
|
716
|
+
value: function endMeetingForAll(_ref9) {
|
|
717
|
+
var locusUrl = _ref9.locusUrl;
|
|
718
|
+
var uri = "".concat(locusUrl, "/").concat(_constants.END);
|
|
777
719
|
|
|
778
|
-
|
|
720
|
+
// @ts-ignore
|
|
721
|
+
return this.locusDeltaRequest({
|
|
779
722
|
method: _constants.HTTP_VERBS.POST,
|
|
780
723
|
uri: uri
|
|
781
724
|
});
|
|
782
725
|
}
|
|
726
|
+
|
|
783
727
|
/**
|
|
784
728
|
* Send a locus keepAlive (used in lobby)
|
|
785
729
|
* @param {Object} options
|
|
786
730
|
* @param {Url} options.keepAliveUrl
|
|
787
731
|
* @returns {Promise}
|
|
788
732
|
*/
|
|
789
|
-
|
|
790
733
|
}, {
|
|
791
734
|
key: "keepAlive",
|
|
792
|
-
value: function keepAlive(
|
|
793
|
-
var keepAliveUrl =
|
|
735
|
+
value: function keepAlive(_ref10) {
|
|
736
|
+
var keepAliveUrl = _ref10.keepAliveUrl;
|
|
794
737
|
// @ts-ignore
|
|
795
738
|
return this.request({
|
|
796
739
|
method: _constants.HTTP_VERBS.GET,
|
|
797
740
|
uri: keepAliveUrl
|
|
798
741
|
});
|
|
799
742
|
}
|
|
743
|
+
|
|
800
744
|
/**
|
|
801
745
|
* Make a network request to send a reaction.
|
|
802
746
|
* @param {Object} options
|
|
@@ -805,15 +749,15 @@ var MeetingRequest = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
805
749
|
* @param {string} options.senderID
|
|
806
750
|
* @returns {Promise}
|
|
807
751
|
*/
|
|
808
|
-
|
|
809
752
|
}, {
|
|
810
753
|
key: "sendReaction",
|
|
811
|
-
value: function sendReaction(
|
|
812
|
-
var reactionChannelUrl =
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
var uri = reactionChannelUrl;
|
|
754
|
+
value: function sendReaction(_ref11) {
|
|
755
|
+
var reactionChannelUrl = _ref11.reactionChannelUrl,
|
|
756
|
+
reaction = _ref11.reaction,
|
|
757
|
+
participantId = _ref11.participantId;
|
|
758
|
+
var uri = reactionChannelUrl;
|
|
816
759
|
|
|
760
|
+
// @ts-ignore
|
|
817
761
|
return this.request({
|
|
818
762
|
method: _constants.HTTP_VERBS.POST,
|
|
819
763
|
uri: uri,
|
|
@@ -825,21 +769,23 @@ var MeetingRequest = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
825
769
|
}
|
|
826
770
|
});
|
|
827
771
|
}
|
|
772
|
+
|
|
828
773
|
/**
|
|
829
774
|
* Make a network request to enable or disable reactions.
|
|
830
775
|
* @param {boolean} options.enable - determines if we need to enable or disable.
|
|
831
776
|
* @param {locusUrl} options.locusUrl
|
|
832
777
|
* @returns {Promise}
|
|
833
778
|
*/
|
|
834
|
-
|
|
835
779
|
}, {
|
|
836
780
|
key: "toggleReactions",
|
|
837
|
-
value: function toggleReactions(
|
|
838
|
-
var enable =
|
|
839
|
-
|
|
840
|
-
|
|
781
|
+
value: function toggleReactions(_ref12) {
|
|
782
|
+
var enable = _ref12.enable,
|
|
783
|
+
locusUrl = _ref12.locusUrl,
|
|
784
|
+
requestingParticipantId = _ref12.requestingParticipantId;
|
|
841
785
|
var uri = "".concat(locusUrl, "/").concat(_constants.CONTROLS);
|
|
842
|
-
|
|
786
|
+
|
|
787
|
+
// @ts-ignore
|
|
788
|
+
return this.locusDeltaRequest({
|
|
843
789
|
method: _constants.HTTP_VERBS.PUT,
|
|
844
790
|
uri: uri,
|
|
845
791
|
body: {
|
|
@@ -850,9 +796,17 @@ var MeetingRequest = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
850
796
|
}
|
|
851
797
|
});
|
|
852
798
|
}
|
|
799
|
+
}, {
|
|
800
|
+
key: "getLocusStatusByUrl",
|
|
801
|
+
value: function getLocusStatusByUrl(locusUrl) {
|
|
802
|
+
// @ts-ignore
|
|
803
|
+
return this.request({
|
|
804
|
+
method: _constants.HTTP_VERBS.GET,
|
|
805
|
+
uri: locusUrl
|
|
806
|
+
});
|
|
807
|
+
}
|
|
853
808
|
}]);
|
|
854
809
|
return MeetingRequest;
|
|
855
810
|
}(_webexCore.StatelessWebexPlugin);
|
|
856
|
-
|
|
857
811
|
exports.default = MeetingRequest;
|
|
858
812
|
//# sourceMappingURL=request.js.map
|