@webex/plugin-meetings 3.0.0-stream-classes.4 → 3.0.0
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/.eslintrc.js +6 -0
- package/README.md +12 -0
- package/babel.config.js +3 -0
- package/dist/annotation/constants.js +12 -20
- package/dist/annotation/constants.js.map +1 -1
- package/dist/annotation/index.js +25 -10
- package/dist/annotation/index.js.map +1 -1
- package/dist/breakouts/breakout.js +2 -3
- package/dist/breakouts/breakout.js.map +1 -1
- package/dist/breakouts/collection.js +1 -2
- package/dist/breakouts/collection.js.map +1 -1
- package/dist/breakouts/edit-lock-error.js +1 -2
- package/dist/breakouts/edit-lock-error.js.map +1 -1
- package/dist/breakouts/events.js +1 -2
- package/dist/breakouts/events.js.map +1 -1
- package/dist/breakouts/index.js +13 -14
- package/dist/breakouts/index.js.map +1 -1
- package/dist/breakouts/request.js +1 -2
- package/dist/breakouts/request.js.map +1 -1
- package/dist/breakouts/utils.js +3 -6
- package/dist/breakouts/utils.js.map +1 -1
- package/dist/common/browser-detection.js +2 -3
- package/dist/common/browser-detection.js.map +1 -1
- package/dist/common/collection.js +3 -4
- package/dist/common/collection.js.map +1 -1
- package/dist/common/config.js +1 -2
- package/dist/common/config.js.map +1 -1
- package/dist/common/errors/captcha-error.js +1 -2
- package/dist/common/errors/captcha-error.js.map +1 -1
- package/dist/common/errors/intent-to-join.js +1 -2
- package/dist/common/errors/intent-to-join.js.map +1 -1
- package/dist/common/errors/join-meeting.js +1 -2
- package/dist/common/errors/join-meeting.js.map +1 -1
- package/dist/common/errors/media.js +1 -2
- package/dist/common/errors/media.js.map +1 -1
- package/dist/common/errors/no-meeting-info.d.ts +14 -0
- package/dist/common/errors/no-meeting-info.js +50 -0
- package/dist/common/errors/no-meeting-info.js.map +1 -0
- package/dist/common/errors/parameter.js +3 -4
- package/dist/common/errors/parameter.js.map +1 -1
- package/dist/common/errors/password-error.js +1 -2
- package/dist/common/errors/password-error.js.map +1 -1
- package/dist/common/errors/permission.js +1 -2
- package/dist/common/errors/permission.js.map +1 -1
- package/dist/common/errors/reclaim-host-role-errors.d.ts +60 -0
- package/dist/common/errors/reclaim-host-role-errors.js +154 -0
- package/dist/common/errors/reclaim-host-role-errors.js.map +1 -0
- package/dist/common/errors/reconnection-in-progress.js +1 -2
- package/dist/common/errors/reconnection-in-progress.js.map +1 -1
- package/dist/common/errors/reconnection.js +1 -2
- package/dist/common/errors/reconnection.js.map +1 -1
- package/dist/common/errors/stats.js +1 -2
- package/dist/common/errors/stats.js.map +1 -1
- package/dist/{types/common → common}/errors/webex-errors.d.ts +13 -1
- package/dist/common/errors/webex-errors.js +35 -16
- package/dist/common/errors/webex-errors.js.map +1 -1
- package/dist/common/errors/webex-meetings-error.js +1 -2
- package/dist/common/errors/webex-meetings-error.js.map +1 -1
- package/dist/common/events/events-scope.js +1 -2
- package/dist/common/events/events-scope.js.map +1 -1
- package/dist/common/events/events.js +1 -2
- package/dist/common/events/events.js.map +1 -1
- package/dist/common/events/trigger-proxy.js +1 -2
- package/dist/common/events/trigger-proxy.js.map +1 -1
- package/dist/common/events/util.js +1 -2
- package/dist/common/events/util.js.map +1 -1
- package/dist/common/logs/logger-config.js +1 -2
- package/dist/common/logs/logger-config.js.map +1 -1
- package/dist/common/logs/logger-proxy.js +1 -2
- package/dist/common/logs/logger-proxy.js.map +1 -1
- package/dist/{types/common → common}/logs/request.d.ts +3 -1
- package/dist/common/logs/request.js +8 -5
- package/dist/common/logs/request.js.map +1 -1
- package/dist/common/queue.js +2 -4
- package/dist/common/queue.js.map +1 -1
- package/dist/{types/config.d.ts → config.d.ts} +1 -1
- package/dist/config.js +3 -3
- package/dist/config.js.map +1 -1
- package/dist/{types/constants.d.ts → constants.d.ts} +72 -15
- package/dist/constants.js +254 -371
- package/dist/constants.js.map +1 -1
- package/dist/controls-options-manager/constants.js +3 -6
- package/dist/controls-options-manager/constants.js.map +1 -1
- package/dist/controls-options-manager/enums.js +7 -10
- package/dist/controls-options-manager/enums.js.map +1 -1
- package/dist/controls-options-manager/index.js +27 -32
- package/dist/controls-options-manager/index.js.map +1 -1
- package/dist/controls-options-manager/util.js +1 -2
- package/dist/controls-options-manager/util.js.map +1 -1
- package/dist/index.js +8 -5
- package/dist/index.js.map +1 -1
- package/dist/interceptors/index.d.ts +2 -0
- package/dist/interceptors/index.js +15 -0
- package/dist/interceptors/index.js.map +1 -0
- package/dist/interceptors/locusRetry.d.ts +27 -0
- package/dist/interceptors/locusRetry.js +94 -0
- package/dist/interceptors/locusRetry.js.map +1 -0
- package/dist/interpretation/collection.js +1 -2
- package/dist/interpretation/collection.js.map +1 -1
- package/dist/interpretation/index.js +2 -3
- package/dist/interpretation/index.js.map +1 -1
- package/dist/interpretation/siLanguage.js +2 -3
- package/dist/interpretation/siLanguage.js.map +1 -1
- package/dist/locus-info/controlsUtils.js +12 -13
- package/dist/locus-info/controlsUtils.js.map +1 -1
- package/dist/locus-info/embeddedAppsUtils.js +3 -4
- package/dist/locus-info/embeddedAppsUtils.js.map +1 -1
- package/dist/locus-info/fullState.js +1 -2
- package/dist/locus-info/fullState.js.map +1 -1
- package/dist/locus-info/hostUtils.js +1 -2
- package/dist/locus-info/hostUtils.js.map +1 -1
- package/dist/{types/locus-info → locus-info}/index.d.ts +1 -1
- package/dist/locus-info/index.js +63 -38
- package/dist/locus-info/index.js.map +1 -1
- package/dist/locus-info/infoUtils.js +3 -4
- package/dist/locus-info/infoUtils.js.map +1 -1
- package/dist/locus-info/mediaSharesUtils.js +16 -3
- package/dist/locus-info/mediaSharesUtils.js.map +1 -1
- package/dist/{types/locus-info → locus-info}/parser.d.ts +3 -2
- package/dist/locus-info/parser.js +48 -31
- package/dist/locus-info/parser.js.map +1 -1
- package/dist/locus-info/selfUtils.js +7 -6
- package/dist/locus-info/selfUtils.js.map +1 -1
- package/dist/media/index.js +15 -10
- package/dist/media/index.js.map +1 -1
- package/dist/media/properties.js +16 -7
- package/dist/media/properties.js.map +1 -1
- package/dist/media/util.js +1 -2
- package/dist/media/util.js.map +1 -1
- package/dist/mediaQualityMetrics/config.d.ts +241 -0
- package/dist/mediaQualityMetrics/config.js +135 -339
- package/dist/mediaQualityMetrics/config.js.map +1 -1
- package/dist/{types/meeting → meeting}/in-meeting-actions.d.ts +4 -0
- package/dist/meeting/in-meeting-actions.js +18 -2
- package/dist/meeting/in-meeting-actions.js.map +1 -1
- package/dist/{types/meeting → meeting}/index.d.ts +331 -44
- package/dist/meeting/index.js +2639 -1367
- package/dist/meeting/index.js.map +1 -1
- package/dist/{types/meeting → meeting}/locusMediaRequest.d.ts +1 -2
- package/dist/meeting/locusMediaRequest.js +4 -5
- package/dist/meeting/locusMediaRequest.js.map +1 -1
- package/dist/meeting/muteState.js +2 -4
- package/dist/meeting/muteState.js.map +1 -1
- package/dist/{types/meeting → meeting}/request.d.ts +4 -1
- package/dist/meeting/request.js +47 -32
- package/dist/meeting/request.js.map +1 -1
- package/dist/meeting/state.js +1 -2
- package/dist/meeting/state.js.map +1 -1
- package/dist/{types/meeting → meeting}/util.d.ts +26 -1
- package/dist/meeting/util.js +83 -10
- package/dist/meeting/util.js.map +1 -1
- package/dist/meeting/voicea-meeting.d.ts +16 -0
- package/dist/meeting/voicea-meeting.js +169 -0
- package/dist/meeting/voicea-meeting.js.map +1 -0
- package/dist/meeting-info/collection.js +3 -4
- package/dist/meeting-info/collection.js.map +1 -1
- package/dist/{types/meeting-info → meeting-info}/index.d.ts +7 -0
- package/dist/meeting-info/index.js +53 -27
- package/dist/meeting-info/index.js.map +1 -1
- package/dist/{types/meeting-info → meeting-info}/meeting-info-v2.d.ts +1 -0
- package/dist/meeting-info/meeting-info-v2.js +52 -33
- package/dist/meeting-info/meeting-info-v2.js.map +1 -1
- package/dist/meeting-info/request.js +1 -2
- package/dist/meeting-info/request.js.map +1 -1
- package/dist/meeting-info/util.js +8 -8
- package/dist/meeting-info/util.js.map +1 -1
- package/dist/meeting-info/utilv2.js +12 -9
- package/dist/meeting-info/utilv2.js.map +1 -1
- package/dist/{types/meetings → meetings}/collection.d.ts +9 -0
- package/dist/meetings/collection.js +21 -5
- package/dist/meetings/collection.js.map +1 -1
- package/dist/{types/meetings → meetings}/index.d.ts +45 -16
- package/dist/meetings/index.js +166 -74
- package/dist/meetings/index.js.map +1 -1
- package/dist/meetings/request.js +2 -3
- package/dist/meetings/request.js.map +1 -1
- package/dist/meetings/util.js +3 -10
- package/dist/meetings/util.js.map +1 -1
- package/dist/{types/member → member}/index.d.ts +1 -0
- package/dist/member/index.js +10 -3
- package/dist/member/index.js.map +1 -1
- package/dist/member/member.types.d.ts +11 -0
- package/dist/member/member.types.js +17 -0
- package/dist/member/member.types.js.map +1 -0
- package/dist/member/types.js +6 -8
- package/dist/member/types.js.map +1 -1
- package/dist/member/util.js +12 -2
- package/dist/member/util.js.map +1 -1
- package/dist/members/collection.js +1 -2
- package/dist/members/collection.js.map +1 -1
- package/dist/members/index.js +25 -8
- package/dist/members/index.js.map +1 -1
- package/dist/members/request.js +2 -3
- package/dist/members/request.js.map +1 -1
- package/dist/{types/members → members}/types.d.ts +1 -0
- package/dist/members/types.js +3 -4
- package/dist/members/types.js.map +1 -1
- package/dist/{types/members → members}/util.d.ts +6 -1
- package/dist/members/util.js +18 -8
- package/dist/members/util.js.map +1 -1
- package/dist/{types/metrics → metrics}/constants.d.ts +15 -0
- package/dist/metrics/constants.js +16 -3
- package/dist/metrics/constants.js.map +1 -1
- package/dist/metrics/index.js +3 -2
- package/dist/metrics/index.js.map +1 -1
- package/dist/multistream/mediaRequestManager.js +9 -11
- package/dist/multistream/mediaRequestManager.js.map +1 -1
- package/dist/multistream/receiveSlot.js +3 -5
- package/dist/multistream/receiveSlot.js.map +1 -1
- package/dist/multistream/receiveSlotManager.js +7 -9
- package/dist/multistream/receiveSlotManager.js.map +1 -1
- package/dist/multistream/remoteMedia.js +3 -5
- package/dist/multistream/remoteMedia.js.map +1 -1
- package/dist/multistream/remoteMediaGroup.js +7 -6
- package/dist/multistream/remoteMediaGroup.js.map +1 -1
- package/dist/{types/multistream → multistream}/remoteMediaManager.d.ts +9 -1
- package/dist/multistream/remoteMediaManager.js +74 -36
- package/dist/multistream/remoteMediaManager.js.map +1 -1
- package/dist/multistream/sendSlotManager.js +9 -6
- package/dist/multistream/sendSlotManager.js.map +1 -1
- package/dist/networkQualityMonitor/index.js +1 -2
- package/dist/networkQualityMonitor/index.js.map +1 -1
- package/dist/personal-meeting-room/index.js +2 -3
- package/dist/personal-meeting-room/index.js.map +1 -1
- package/dist/personal-meeting-room/request.js +2 -3
- package/dist/personal-meeting-room/request.js.map +1 -1
- package/dist/personal-meeting-room/util.js +1 -2
- package/dist/personal-meeting-room/util.js.map +1 -1
- package/dist/reachability/clusterReachability.d.ts +109 -0
- package/dist/reachability/clusterReachability.js +357 -0
- package/dist/reachability/clusterReachability.js.map +1 -0
- package/dist/reachability/index.d.ts +105 -0
- package/dist/reachability/index.js +279 -436
- package/dist/reachability/index.js.map +1 -1
- package/dist/{types/reachability → reachability}/request.d.ts +1 -1
- package/dist/reachability/request.js +14 -11
- package/dist/reachability/request.js.map +1 -1
- package/dist/reachability/util.d.ts +8 -0
- package/dist/reachability/util.js +29 -0
- package/dist/reachability/util.js.map +1 -0
- package/dist/reactions/constants.js +1 -2
- package/dist/reactions/constants.js.map +1 -1
- package/dist/reactions/reactions.js +2 -4
- package/dist/reactions/reactions.js.map +1 -1
- package/dist/reactions/reactions.type.js +6 -8
- package/dist/reactions/reactions.type.js.map +1 -1
- package/dist/{types/reconnection-manager → reconnection-manager}/index.d.ts +10 -0
- package/dist/reconnection-manager/index.js +129 -106
- package/dist/reconnection-manager/index.js.map +1 -1
- package/dist/recording-controller/enums.js +4 -5
- package/dist/recording-controller/enums.js.map +1 -1
- package/dist/recording-controller/index.js +43 -51
- package/dist/recording-controller/index.js.map +1 -1
- package/dist/recording-controller/util.js +1 -2
- package/dist/recording-controller/util.js.map +1 -1
- package/dist/{types/roap → roap}/index.d.ts +2 -1
- package/dist/roap/index.js +59 -28
- package/dist/roap/index.js.map +1 -1
- package/dist/{types/roap → roap}/request.d.ts +2 -1
- package/dist/roap/request.js +14 -22
- package/dist/roap/request.js.map +1 -1
- package/dist/{types/roap → roap}/turnDiscovery.d.ts +21 -4
- package/dist/roap/turnDiscovery.js +182 -89
- package/dist/roap/turnDiscovery.js.map +1 -1
- package/dist/rtcMetrics/constants.js +1 -2
- package/dist/rtcMetrics/constants.js.map +1 -1
- package/dist/{types/rtcMetrics → rtcMetrics}/index.d.ts +15 -1
- package/dist/rtcMetrics/index.js +72 -12
- package/dist/rtcMetrics/index.js.map +1 -1
- package/dist/statsAnalyzer/global.js +1 -2
- package/dist/statsAnalyzer/global.js.map +1 -1
- package/dist/{types/statsAnalyzer → statsAnalyzer}/index.d.ts +28 -11
- package/dist/statsAnalyzer/index.js +371 -318
- package/dist/statsAnalyzer/index.js.map +1 -1
- package/dist/statsAnalyzer/mqaUtil.d.ts +48 -0
- package/dist/statsAnalyzer/mqaUtil.js +295 -162
- package/dist/statsAnalyzer/mqaUtil.js.map +1 -1
- package/dist/transcription/index.js +1 -2
- package/dist/transcription/index.js.map +1 -1
- package/dist/webinar/collection.d.ts +16 -0
- package/dist/webinar/collection.js +43 -0
- package/dist/webinar/collection.js.map +1 -0
- package/dist/webinar/index.d.ts +5 -0
- package/dist/webinar/index.js +68 -0
- package/dist/webinar/index.js.map +1 -0
- package/jest.config.js +3 -0
- package/package.json +44 -24
- package/process +1 -0
- package/src/common/errors/no-meeting-info.ts +24 -0
- package/src/common/errors/reclaim-host-role-errors.ts +134 -0
- package/src/common/errors/webex-errors.ts +19 -2
- package/src/common/logs/request.ts +5 -1
- package/src/config.ts +3 -5
- package/src/constants.ts +78 -8
- package/src/index.ts +4 -0
- package/src/interceptors/index.ts +3 -0
- package/src/interceptors/locusRetry.ts +67 -0
- package/src/locus-info/index.ts +52 -16
- package/src/locus-info/mediaSharesUtils.ts +16 -0
- package/src/locus-info/parser.ts +47 -21
- package/src/media/index.ts +8 -6
- package/src/media/properties.ts +17 -2
- package/src/mediaQualityMetrics/config.ts +103 -238
- package/src/meeting/in-meeting-actions.ts +8 -0
- package/src/meeting/index.ts +1692 -627
- package/src/meeting/request.ts +19 -1
- package/src/meeting/util.ts +102 -1
- package/src/meeting/voicea-meeting.ts +122 -0
- package/src/meeting-info/index.ts +47 -20
- package/src/meeting-info/meeting-info-v2.ts +32 -16
- package/src/meeting-info/util.ts +12 -9
- package/src/meeting-info/utilv2.ts +25 -15
- package/src/meetings/collection.ts +13 -0
- package/src/meetings/index.ts +112 -31
- package/src/meetings/util.ts +2 -8
- package/src/member/index.ts +9 -1
- package/src/member/member.types.ts +13 -0
- package/src/member/util.ts +14 -0
- package/src/members/index.ts +29 -2
- package/src/members/types.ts +1 -0
- package/src/members/util.ts +15 -1
- package/src/metrics/constants.ts +14 -0
- package/src/multistream/remoteMediaManager.ts +41 -4
- package/src/reachability/clusterReachability.ts +320 -0
- package/src/reachability/index.ts +221 -382
- package/src/reachability/request.ts +1 -1
- package/src/reachability/util.ts +24 -0
- package/src/reconnection-manager/index.ts +87 -83
- package/src/roap/index.ts +60 -24
- package/src/roap/request.ts +4 -17
- package/src/roap/turnDiscovery.ts +112 -39
- package/src/rtcMetrics/index.ts +71 -5
- package/src/statsAnalyzer/index.ts +430 -427
- package/src/statsAnalyzer/mqaUtil.ts +317 -168
- package/src/webinar/collection.ts +31 -0
- package/src/webinar/index.ts +62 -0
- package/test/integration/spec/converged-space-meetings.js +7 -7
- package/test/integration/spec/journey.js +88 -106
- package/test/integration/spec/space-meeting.js +10 -10
- package/test/unit/spec/breakouts/breakout.ts +2 -1
- package/test/unit/spec/breakouts/index.ts +7 -4
- package/test/unit/spec/interceptors/locusRetry.ts +131 -0
- package/test/unit/spec/locus-info/index.js +206 -13
- package/test/unit/spec/locus-info/lib/SeqCmp.json +16 -0
- package/test/unit/spec/locus-info/mediaSharesUtils.ts +10 -0
- package/test/unit/spec/locus-info/parser.js +54 -13
- package/test/unit/spec/locus-info/selfUtils.js +1 -1
- package/test/unit/spec/media/index.ts +25 -4
- package/test/unit/spec/media/properties.ts +2 -2
- package/test/unit/spec/meeting/in-meeting-actions.ts +4 -0
- package/test/unit/spec/meeting/index.js +4354 -1285
- package/test/unit/spec/meeting/request.js +63 -12
- package/test/unit/spec/meeting/utils.js +145 -10
- package/test/unit/spec/meeting/voicea-meeting.ts +266 -0
- package/test/unit/spec/meeting-info/index.js +180 -61
- package/test/unit/spec/meeting-info/meetinginfov2.js +216 -68
- package/test/unit/spec/meetings/collection.js +12 -0
- package/test/unit/spec/meetings/index.js +676 -195
- package/test/unit/spec/meetings/utils.js +35 -12
- package/test/unit/spec/member/index.js +8 -7
- package/test/unit/spec/member/util.js +32 -0
- package/test/unit/spec/members/index.js +130 -17
- package/test/unit/spec/members/utils.js +26 -0
- package/test/unit/spec/metrics/index.js +1 -2
- package/test/unit/spec/multistream/mediaRequestManager.ts +1 -0
- package/test/unit/spec/multistream/remoteMediaManager.ts +10 -2
- package/test/unit/spec/reachability/clusterReachability.ts +279 -0
- package/test/unit/spec/reachability/index.ts +505 -135
- package/test/unit/spec/reachability/util.ts +40 -0
- package/test/unit/spec/reconnection-manager/index.js +74 -17
- package/test/unit/spec/recording-controller/index.js +0 -1
- package/test/unit/spec/roap/index.ts +181 -61
- package/test/unit/spec/roap/request.ts +27 -3
- package/test/unit/spec/roap/turnDiscovery.ts +363 -102
- package/test/unit/spec/rtcMetrics/index.ts +57 -3
- package/test/unit/spec/stats-analyzer/index.js +1225 -12
- package/test/unit/spec/webinar/collection.ts +13 -0
- package/test/unit/spec/webinar/index.ts +60 -0
- package/test/utils/integrationTestUtils.js +4 -4
- package/test/utils/webex-test-users.js +12 -4
- package/dist/types/mediaQualityMetrics/config.d.ts +0 -365
- package/dist/types/reachability/index.d.ts +0 -158
- package/dist/types/statsAnalyzer/mqaUtil.d.ts +0 -24
- /package/dist/{types/annotation → annotation}/annotation.types.d.ts +0 -0
- /package/dist/{types/annotation → annotation}/constants.d.ts +0 -0
- /package/dist/{types/annotation → annotation}/index.d.ts +0 -0
- /package/dist/{types/breakouts → breakouts}/breakout.d.ts +0 -0
- /package/dist/{types/breakouts → breakouts}/collection.d.ts +0 -0
- /package/dist/{types/breakouts → breakouts}/edit-lock-error.d.ts +0 -0
- /package/dist/{types/breakouts → breakouts}/events.d.ts +0 -0
- /package/dist/{types/breakouts → breakouts}/index.d.ts +0 -0
- /package/dist/{types/breakouts → breakouts}/request.d.ts +0 -0
- /package/dist/{types/breakouts → breakouts}/utils.d.ts +0 -0
- /package/dist/{types/common → common}/browser-detection.d.ts +0 -0
- /package/dist/{types/common → common}/collection.d.ts +0 -0
- /package/dist/{types/common → common}/config.d.ts +0 -0
- /package/dist/{types/common → common}/errors/captcha-error.d.ts +0 -0
- /package/dist/{types/common → common}/errors/intent-to-join.d.ts +0 -0
- /package/dist/{types/common → common}/errors/join-meeting.d.ts +0 -0
- /package/dist/{types/common → common}/errors/media.d.ts +0 -0
- /package/dist/{types/common → common}/errors/parameter.d.ts +0 -0
- /package/dist/{types/common → common}/errors/password-error.d.ts +0 -0
- /package/dist/{types/common → common}/errors/permission.d.ts +0 -0
- /package/dist/{types/common → common}/errors/reconnection-in-progress.d.ts +0 -0
- /package/dist/{types/common → common}/errors/reconnection.d.ts +0 -0
- /package/dist/{types/common → common}/errors/stats.d.ts +0 -0
- /package/dist/{types/common → common}/errors/webex-meetings-error.d.ts +0 -0
- /package/dist/{types/common → common}/events/events-scope.d.ts +0 -0
- /package/dist/{types/common → common}/events/events.d.ts +0 -0
- /package/dist/{types/common → common}/events/trigger-proxy.d.ts +0 -0
- /package/dist/{types/common → common}/events/util.d.ts +0 -0
- /package/dist/{types/common → common}/logs/logger-config.d.ts +0 -0
- /package/dist/{types/common → common}/logs/logger-proxy.d.ts +0 -0
- /package/dist/{types/common → common}/queue.d.ts +0 -0
- /package/dist/{types/controls-options-manager → controls-options-manager}/constants.d.ts +0 -0
- /package/dist/{types/controls-options-manager → controls-options-manager}/enums.d.ts +0 -0
- /package/dist/{types/controls-options-manager → controls-options-manager}/index.d.ts +0 -0
- /package/dist/{types/controls-options-manager → controls-options-manager}/types.d.ts +0 -0
- /package/dist/{types/controls-options-manager → controls-options-manager}/util.d.ts +0 -0
- /package/dist/{types/index.d.ts → index.d.ts} +0 -0
- /package/dist/{types/interpretation → interpretation}/collection.d.ts +0 -0
- /package/dist/{types/interpretation → interpretation}/index.d.ts +0 -0
- /package/dist/{types/interpretation → interpretation}/siLanguage.d.ts +0 -0
- /package/dist/{types/locus-info → locus-info}/controlsUtils.d.ts +0 -0
- /package/dist/{types/locus-info → locus-info}/embeddedAppsUtils.d.ts +0 -0
- /package/dist/{types/locus-info → locus-info}/fullState.d.ts +0 -0
- /package/dist/{types/locus-info → locus-info}/hostUtils.d.ts +0 -0
- /package/dist/{types/locus-info → locus-info}/infoUtils.d.ts +0 -0
- /package/dist/{types/locus-info → locus-info}/mediaSharesUtils.d.ts +0 -0
- /package/dist/{types/locus-info → locus-info}/selfUtils.d.ts +0 -0
- /package/dist/{types/media → media}/index.d.ts +0 -0
- /package/dist/{types/media → media}/properties.d.ts +0 -0
- /package/dist/{types/media → media}/util.d.ts +0 -0
- /package/dist/{types/meeting → meeting}/muteState.d.ts +0 -0
- /package/dist/{types/meeting → meeting}/request.type.d.ts +0 -0
- /package/dist/{types/meeting → meeting}/state.d.ts +0 -0
- /package/dist/{types/meeting-info → meeting-info}/collection.d.ts +0 -0
- /package/dist/{types/meeting-info → meeting-info}/request.d.ts +0 -0
- /package/dist/{types/meeting-info → meeting-info}/util.d.ts +0 -0
- /package/dist/{types/meeting-info → meeting-info}/utilv2.d.ts +0 -0
- /package/dist/{types/meetings → meetings}/meetings.types.d.ts +0 -0
- /package/dist/{types/meetings → meetings}/request.d.ts +0 -0
- /package/dist/{types/meetings → meetings}/util.d.ts +0 -0
- /package/dist/{types/member → member}/types.d.ts +0 -0
- /package/dist/{types/member → member}/util.d.ts +0 -0
- /package/dist/{types/members → members}/collection.d.ts +0 -0
- /package/dist/{types/members → members}/index.d.ts +0 -0
- /package/dist/{types/members → members}/request.d.ts +0 -0
- /package/dist/{types/metrics → metrics}/index.d.ts +0 -0
- /package/dist/{types/multistream → multistream}/mediaRequestManager.d.ts +0 -0
- /package/dist/{types/multistream → multistream}/receiveSlot.d.ts +0 -0
- /package/dist/{types/multistream → multistream}/receiveSlotManager.d.ts +0 -0
- /package/dist/{types/multistream → multistream}/remoteMedia.d.ts +0 -0
- /package/dist/{types/multistream → multistream}/remoteMediaGroup.d.ts +0 -0
- /package/dist/{types/multistream → multistream}/sendSlotManager.d.ts +0 -0
- /package/dist/{types/networkQualityMonitor → networkQualityMonitor}/index.d.ts +0 -0
- /package/dist/{types/personal-meeting-room → personal-meeting-room}/index.d.ts +0 -0
- /package/dist/{types/personal-meeting-room → personal-meeting-room}/request.d.ts +0 -0
- /package/dist/{types/personal-meeting-room → personal-meeting-room}/util.d.ts +0 -0
- /package/dist/{types/reactions → reactions}/constants.d.ts +0 -0
- /package/dist/{types/reactions → reactions}/reactions.d.ts +0 -0
- /package/dist/{types/reactions → reactions}/reactions.type.d.ts +0 -0
- /package/dist/{types/recording-controller → recording-controller}/enums.d.ts +0 -0
- /package/dist/{types/recording-controller → recording-controller}/index.d.ts +0 -0
- /package/dist/{types/recording-controller → recording-controller}/util.d.ts +0 -0
- /package/dist/{types/rtcMetrics → rtcMetrics}/constants.d.ts +0 -0
- /package/dist/{types/statsAnalyzer → statsAnalyzer}/global.d.ts +0 -0
- /package/dist/{types/transcription → transcription}/index.d.ts +0 -0
- /package/test/unit/spec/locus-info/{selfConstant.js → lib/selfConstant.js} +0 -0
package/dist/meetings/index.js
CHANGED
|
@@ -57,12 +57,13 @@ var _collection = _interopRequireDefault(require("./collection"));
|
|
|
57
57
|
var _util2 = _interopRequireDefault(require("./util"));
|
|
58
58
|
var _permission = _interopRequireDefault(require("../common/errors/permission"));
|
|
59
59
|
var _webexErrors = require("../common/errors/webex-errors");
|
|
60
|
-
|
|
61
|
-
function
|
|
62
|
-
function
|
|
63
|
-
function
|
|
60
|
+
var _noMeetingInfo = _interopRequireDefault(require("../common/errors/no-meeting-info"));
|
|
61
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof _WeakMap) return null; var r = new _WeakMap(), t = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
62
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = _Object$defineProperty && _Object$getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? _Object$getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? _Object$defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
63
|
+
function ownKeys(e, r) { var t = _Object$keys2(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
64
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
64
65
|
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); }; }
|
|
65
|
-
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
|
+
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; } } /* eslint no-shadow: ["error", { "allow": ["eventType"] }] */ // @ts-ignore
|
|
66
67
|
var mediaLogger;
|
|
67
68
|
var MediaLogger = /*#__PURE__*/function () {
|
|
68
69
|
function MediaLogger() {
|
|
@@ -154,7 +155,7 @@ var MediaLogger = /*#__PURE__*/function () {
|
|
|
154
155
|
* Maintain a cache of meetings and sync with services.
|
|
155
156
|
* @class
|
|
156
157
|
*/
|
|
157
|
-
var Meetings = /*#__PURE__*/function (_WebexPlugin) {
|
|
158
|
+
var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
158
159
|
(0, _inherits2.default)(Meetings, _WebexPlugin);
|
|
159
160
|
var _super = _createSuper(Meetings);
|
|
160
161
|
/**
|
|
@@ -193,6 +194,14 @@ var Meetings = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
193
194
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "mediaHelpers", void 0);
|
|
194
195
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "breakoutLocusForHandleLater", void 0);
|
|
195
196
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "namespace", _constants.MEETINGS);
|
|
197
|
+
/**
|
|
198
|
+
* Creates a noise reduction effect
|
|
199
|
+
*
|
|
200
|
+
* @param {INoiseReductionEffect} options optional custom effect options
|
|
201
|
+
* @returns {Promise<effect>} noise reduction effect.
|
|
202
|
+
* @public
|
|
203
|
+
* @memberof Meetings
|
|
204
|
+
*/
|
|
196
205
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "createNoiseReductionEffect", /*#__PURE__*/function () {
|
|
197
206
|
var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee(options) {
|
|
198
207
|
var authToken;
|
|
@@ -214,6 +223,14 @@ var Meetings = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
214
223
|
return _ref.apply(this, arguments);
|
|
215
224
|
};
|
|
216
225
|
}());
|
|
226
|
+
/**
|
|
227
|
+
* Creates a virtual background effect
|
|
228
|
+
*
|
|
229
|
+
* @param {IVirtualBackgroundEffect} options optional custom effect options
|
|
230
|
+
* @returns {Promise<effect>} virtual background effect.
|
|
231
|
+
* @public
|
|
232
|
+
* @memberof Meetings
|
|
233
|
+
*/
|
|
217
234
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "createVirtualBackgroundEffect", /*#__PURE__*/function () {
|
|
218
235
|
var _ref2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee2(options) {
|
|
219
236
|
var authToken;
|
|
@@ -583,7 +600,9 @@ var Meetings = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
583
600
|
|
|
584
601
|
// @ts-ignore
|
|
585
602
|
this.webex.internal.mercury.on(_constants.ONLINE, function () {
|
|
586
|
-
_this3.syncMeetings(
|
|
603
|
+
_this3.syncMeetings({
|
|
604
|
+
keepOnlyLocusMeetings: false
|
|
605
|
+
});
|
|
587
606
|
});
|
|
588
607
|
|
|
589
608
|
// @ts-ignore
|
|
@@ -686,40 +705,43 @@ var Meetings = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
686
705
|
}
|
|
687
706
|
|
|
688
707
|
/**
|
|
689
|
-
* API to
|
|
690
|
-
* @param {Boolean}
|
|
708
|
+
* API to toggle starting adhoc meeting
|
|
709
|
+
* @param {Boolean} changeState
|
|
691
710
|
* @private
|
|
692
711
|
* @memberof Meetings
|
|
693
712
|
* @returns {undefined}
|
|
694
713
|
*/
|
|
695
714
|
}, {
|
|
696
|
-
key: "
|
|
697
|
-
value: function
|
|
698
|
-
|
|
715
|
+
key: "_toggleAdhocMeetings",
|
|
716
|
+
value: function _toggleAdhocMeetings(changeState) {
|
|
717
|
+
var _this$config2, _this$config2$experim;
|
|
718
|
+
if (typeof changeState !== 'boolean') {
|
|
699
719
|
return;
|
|
700
720
|
}
|
|
701
721
|
// @ts-ignore
|
|
702
|
-
this.config.experimental.
|
|
722
|
+
if (((_this$config2 = this.config) === null || _this$config2 === void 0 ? void 0 : (_this$config2$experim = _this$config2.experimental) === null || _this$config2$experim === void 0 ? void 0 : _this$config2$experim.enableAdhocMeetings) !== changeState) {
|
|
723
|
+
// @ts-ignore
|
|
724
|
+
this.config.experimental.enableAdhocMeetings = changeState;
|
|
725
|
+
}
|
|
703
726
|
}
|
|
704
727
|
|
|
705
728
|
/**
|
|
706
|
-
* API to toggle
|
|
707
|
-
* @param {Boolean}
|
|
729
|
+
* API to toggle TCP reachability, needs to be called before webex.meetings.register()
|
|
730
|
+
* @param {Boolean} newValue
|
|
708
731
|
* @private
|
|
709
732
|
* @memberof Meetings
|
|
710
733
|
* @returns {undefined}
|
|
711
734
|
*/
|
|
712
735
|
}, {
|
|
713
|
-
key: "
|
|
714
|
-
value: function
|
|
715
|
-
|
|
716
|
-
if (typeof changeState !== 'boolean') {
|
|
736
|
+
key: "_toggleTcpReachability",
|
|
737
|
+
value: function _toggleTcpReachability(newValue) {
|
|
738
|
+
if (typeof newValue !== 'boolean') {
|
|
717
739
|
return;
|
|
718
740
|
}
|
|
719
741
|
// @ts-ignore
|
|
720
|
-
if (
|
|
742
|
+
if (this.config.experimental.enableTcpReachability !== newValue) {
|
|
721
743
|
// @ts-ignore
|
|
722
|
-
this.config.experimental.
|
|
744
|
+
this.config.experimental.enableTcpReachability = newValue;
|
|
723
745
|
}
|
|
724
746
|
}
|
|
725
747
|
|
|
@@ -807,15 +829,6 @@ var Meetings = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
807
829
|
})
|
|
808
830
|
);
|
|
809
831
|
}
|
|
810
|
-
|
|
811
|
-
/**
|
|
812
|
-
* Creates a noise reduction effect
|
|
813
|
-
*
|
|
814
|
-
* @param {INoiseReductionEffect} options optional custom effect options
|
|
815
|
-
* @returns {Promise<effect>} noise reduction effect.
|
|
816
|
-
* @public
|
|
817
|
-
* @memberof Meetings
|
|
818
|
-
*/
|
|
819
832
|
}, {
|
|
820
833
|
key: "uploadLogs",
|
|
821
834
|
value:
|
|
@@ -972,12 +985,19 @@ var Meetings = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
972
985
|
}
|
|
973
986
|
|
|
974
987
|
/**
|
|
975
|
-
* Create a meeting.
|
|
988
|
+
* Create a meeting or return an existing meeting.
|
|
989
|
+
*
|
|
990
|
+
* When meeting info passed it should be complete, e.g.: fetched after password or captcha provided
|
|
991
|
+
*
|
|
976
992
|
* @param {string} destination - sipURL, phonenumber, or locus object}
|
|
977
993
|
* @param {string} [type] - the optional specified type, such as locusId
|
|
978
994
|
* @param {Boolean} useRandomDelayForInfo - whether a random delay should be added to fetching meeting info
|
|
979
995
|
* @param {Object} infoExtraParams extra parameters to be provided when fetching meeting info
|
|
980
|
-
* @param {string} correlationId - the optional specified correlationId
|
|
996
|
+
* @param {string} correlationId - the optional specified correlationId (callStateForMetrics.correlationId can be provided instead)
|
|
997
|
+
* @param {Boolean} failOnMissingMeetingInfo - whether to throw an error if meeting info fails to fetch (for calls that are not 1:1 or content share)
|
|
998
|
+
* @param {CallStateForMetrics} callStateForMetrics - information about call state for metrics
|
|
999
|
+
* @param {Object} [meetingInfo] - Pre-fetched complete meeting info
|
|
1000
|
+
* @param {String} [meetingLookupUrl] - meeting info prefetch url
|
|
981
1001
|
* @returns {Promise<Meeting>} A new Meeting.
|
|
982
1002
|
* @public
|
|
983
1003
|
* @memberof Meetings
|
|
@@ -990,12 +1010,21 @@ var Meetings = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
990
1010
|
var useRandomDelayForInfo = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;
|
|
991
1011
|
var infoExtraParams = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
|
|
992
1012
|
var correlationId = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : undefined;
|
|
1013
|
+
var failOnMissingMeetingInfo = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : false;
|
|
1014
|
+
var callStateForMetrics = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : undefined;
|
|
1015
|
+
var meetingInfo = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : undefined;
|
|
1016
|
+
var meetingLookupUrl = arguments.length > 8 && arguments[8] !== undefined ? arguments[8] : undefined;
|
|
993
1017
|
// TODO: type should be from a dictionary
|
|
994
1018
|
|
|
995
1019
|
// Validate meeting information based on the provided destination and
|
|
996
1020
|
// type. This must be performed prior to determining if the meeting is
|
|
997
1021
|
// found in the collection, as we mutate the destination for hydra person
|
|
998
1022
|
// id values.
|
|
1023
|
+
if (correlationId) {
|
|
1024
|
+
callStateForMetrics = _objectSpread(_objectSpread({}, callStateForMetrics || {}), {}, {
|
|
1025
|
+
correlationId: correlationId
|
|
1026
|
+
});
|
|
1027
|
+
}
|
|
999
1028
|
return this.meetingInfo.fetchInfoOptions(destination, type)
|
|
1000
1029
|
// Catch a failure to fetch info options.
|
|
1001
1030
|
.catch(function (error) {
|
|
@@ -1031,20 +1060,22 @@ var Meetings = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
1031
1060
|
// Validate if a meeting was found.
|
|
1032
1061
|
if (!meeting) {
|
|
1033
1062
|
// Create a meeting based on the normalized destination and type.
|
|
1034
|
-
return _this10.createMeeting(targetDest, type, useRandomDelayForInfo, infoExtraParams,
|
|
1063
|
+
return _this10.createMeeting(targetDest, type, useRandomDelayForInfo, infoExtraParams, callStateForMetrics, failOnMissingMeetingInfo, meetingInfo, meetingLookupUrl).then(function (createdMeeting) {
|
|
1035
1064
|
// If the meeting was successfully created.
|
|
1036
1065
|
if (createdMeeting && createdMeeting.on) {
|
|
1037
1066
|
// Create a destruction event for the meeting.
|
|
1038
1067
|
createdMeeting.on(_constants.EVENTS.DESTROY_MEETING, function (payload) {
|
|
1039
1068
|
// @ts-ignore
|
|
1040
1069
|
if (_this10.config.autoUploadLogs) {
|
|
1041
|
-
var _createdMeeting$locus, _createdMeeting$locus2, _createdMeeting$locus3, _createdMeeting$locus4;
|
|
1070
|
+
var _createdMeeting$locus, _createdMeeting$locus2, _createdMeeting$locus3, _createdMeeting$locus4, _createdMeeting$locus5, _createdMeeting$locus6;
|
|
1042
1071
|
_this10.uploadLogs({
|
|
1043
1072
|
callStart: (_createdMeeting$locus = createdMeeting.locusInfo) === null || _createdMeeting$locus === void 0 ? void 0 : (_createdMeeting$locus2 = _createdMeeting$locus.fullState) === null || _createdMeeting$locus2 === void 0 ? void 0 : _createdMeeting$locus2.lastActive,
|
|
1073
|
+
locussessionid: (_createdMeeting$locus3 = createdMeeting.locusInfo) === null || _createdMeeting$locus3 === void 0 ? void 0 : (_createdMeeting$locus4 = _createdMeeting$locus3.fullState) === null || _createdMeeting$locus4 === void 0 ? void 0 : _createdMeeting$locus4.sessionId,
|
|
1044
1074
|
correlationId: createdMeeting.correlationId,
|
|
1045
1075
|
feedbackId: createdMeeting.correlationId,
|
|
1046
1076
|
locusId: createdMeeting.locusId,
|
|
1047
|
-
meetingId: (_createdMeeting$
|
|
1077
|
+
meetingId: (_createdMeeting$locus5 = createdMeeting.locusInfo) === null || _createdMeeting$locus5 === void 0 ? void 0 : (_createdMeeting$locus6 = _createdMeeting$locus5.info) === null || _createdMeeting$locus6 === void 0 ? void 0 : _createdMeeting$locus6.webExMeetingId,
|
|
1078
|
+
autoupload: true
|
|
1048
1079
|
}).then(function () {
|
|
1049
1080
|
return _this10.destroy(createdMeeting, payload.reason);
|
|
1050
1081
|
});
|
|
@@ -1055,13 +1086,15 @@ var Meetings = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
1055
1086
|
createdMeeting.on(_constants.EVENTS.REQUEST_UPLOAD_LOGS, function (meetingInstance) {
|
|
1056
1087
|
// @ts-ignore
|
|
1057
1088
|
if (_this10.config.autoUploadLogs) {
|
|
1058
|
-
var _meetingInstance$locu, _meetingInstance$locu2, _meetingInstance$locu3, _meetingInstance$locu4;
|
|
1089
|
+
var _meetingInstance$locu, _meetingInstance$locu2, _meetingInstance$locu3, _meetingInstance$locu4, _meetingInstance$locu5, _meetingInstance$locu6;
|
|
1059
1090
|
_this10.uploadLogs({
|
|
1060
1091
|
callStart: meetingInstance === null || meetingInstance === void 0 ? void 0 : (_meetingInstance$locu = meetingInstance.locusInfo) === null || _meetingInstance$locu === void 0 ? void 0 : (_meetingInstance$locu2 = _meetingInstance$locu.fullState) === null || _meetingInstance$locu2 === void 0 ? void 0 : _meetingInstance$locu2.lastActive,
|
|
1092
|
+
locussessionid: meetingInstance === null || meetingInstance === void 0 ? void 0 : (_meetingInstance$locu3 = meetingInstance.locusInfo) === null || _meetingInstance$locu3 === void 0 ? void 0 : (_meetingInstance$locu4 = _meetingInstance$locu3.fullState) === null || _meetingInstance$locu4 === void 0 ? void 0 : _meetingInstance$locu4.sessionId,
|
|
1061
1093
|
correlationId: meetingInstance.correlationId,
|
|
1062
1094
|
feedbackId: meetingInstance.correlationId,
|
|
1063
1095
|
locusId: meetingInstance.locusId,
|
|
1064
|
-
meetingId: (_meetingInstance$
|
|
1096
|
+
meetingId: (_meetingInstance$locu5 = meetingInstance.locusInfo) === null || _meetingInstance$locu5 === void 0 ? void 0 : (_meetingInstance$locu6 = _meetingInstance$locu5.info) === null || _meetingInstance$locu6 === void 0 ? void 0 : _meetingInstance$locu6.webExMeetingId,
|
|
1097
|
+
autoupload: true
|
|
1065
1098
|
});
|
|
1066
1099
|
}
|
|
1067
1100
|
});
|
|
@@ -1073,6 +1106,7 @@ var Meetings = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
1073
1106
|
return _promise.default.resolve(createdMeeting);
|
|
1074
1107
|
});
|
|
1075
1108
|
}
|
|
1109
|
+
meeting.setCallStateForMetrics(callStateForMetrics);
|
|
1076
1110
|
|
|
1077
1111
|
// Return the existing meeting.
|
|
1078
1112
|
return _promise.default.resolve(meeting);
|
|
@@ -1080,23 +1114,33 @@ var Meetings = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
1080
1114
|
}
|
|
1081
1115
|
|
|
1082
1116
|
/**
|
|
1117
|
+
* Create meeting
|
|
1118
|
+
*
|
|
1119
|
+
* When meeting info passed it should be complete, e.g.: fetched after password or captcha provided
|
|
1120
|
+
*
|
|
1083
1121
|
* @param {String} destination see create()
|
|
1084
1122
|
* @param {String} type see create()
|
|
1085
1123
|
* @param {Boolean} useRandomDelayForInfo whether a random delay should be added to fetching meeting info
|
|
1086
1124
|
* @param {Object} infoExtraParams extra parameters to be provided when fetching meeting info
|
|
1087
|
-
* @param {
|
|
1125
|
+
* @param {CallStateForMetrics} callStateForMetrics - information about call state for metrics
|
|
1126
|
+
* @param {Boolean} failOnMissingMeetingInfo - whether to throw an error if meeting info fails to fetch (for calls that are not 1:1 or content share)
|
|
1127
|
+
* @param {Object} [meetingInfo] - Pre-fetched complete meeting info
|
|
1128
|
+
* @param {String} [meetingLookupUrl] - meeting info prefetch url
|
|
1088
1129
|
* @returns {Promise} a new meeting instance complete with meeting info and destination
|
|
1089
1130
|
* @private
|
|
1090
1131
|
* @memberof Meetings
|
|
1091
1132
|
*/
|
|
1092
1133
|
}, {
|
|
1093
1134
|
key: "createMeeting",
|
|
1094
|
-
value: function () {
|
|
1135
|
+
value: (function () {
|
|
1095
1136
|
var _createMeeting = (0, _asyncToGenerator2.default)( /*#__PURE__*/_regenerator.default.mark(function _callee3(destination) {
|
|
1096
1137
|
var type,
|
|
1097
1138
|
useRandomDelayForInfo,
|
|
1098
1139
|
infoExtraParams,
|
|
1099
|
-
|
|
1140
|
+
callStateForMetrics,
|
|
1141
|
+
failOnMissingMeetingInfo,
|
|
1142
|
+
meetingInfo,
|
|
1143
|
+
meetingLookupUrl,
|
|
1100
1144
|
meeting,
|
|
1101
1145
|
_destination$fullStat,
|
|
1102
1146
|
waitingTime,
|
|
@@ -1107,6 +1151,7 @@ var Meetings = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
1107
1151
|
maxWaitingTime,
|
|
1108
1152
|
isMeetingActive,
|
|
1109
1153
|
enableUnifiedMeetings,
|
|
1154
|
+
meetingInfoOptions,
|
|
1110
1155
|
meetingAddedType,
|
|
1111
1156
|
_args3 = arguments;
|
|
1112
1157
|
return _regenerator.default.wrap(function _callee3$(_context3) {
|
|
@@ -1115,7 +1160,10 @@ var Meetings = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
1115
1160
|
type = _args3.length > 1 && _args3[1] !== undefined ? _args3[1] : null;
|
|
1116
1161
|
useRandomDelayForInfo = _args3.length > 2 && _args3[2] !== undefined ? _args3[2] : false;
|
|
1117
1162
|
infoExtraParams = _args3.length > 3 && _args3[3] !== undefined ? _args3[3] : {};
|
|
1118
|
-
|
|
1163
|
+
callStateForMetrics = _args3.length > 4 && _args3[4] !== undefined ? _args3[4] : undefined;
|
|
1164
|
+
failOnMissingMeetingInfo = _args3.length > 5 && _args3[5] !== undefined ? _args3[5] : false;
|
|
1165
|
+
meetingInfo = _args3.length > 6 && _args3[6] !== undefined ? _args3[6] : undefined;
|
|
1166
|
+
meetingLookupUrl = _args3.length > 7 && _args3[7] !== undefined ? _args3[7] : undefined;
|
|
1119
1167
|
meeting = new _meeting.default({
|
|
1120
1168
|
// @ts-ignore
|
|
1121
1169
|
userId: this.webex.internal.device.userId,
|
|
@@ -1128,13 +1176,13 @@ var Meetings = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
1128
1176
|
meetingInfoProvider: this.meetingInfo,
|
|
1129
1177
|
destination: destination,
|
|
1130
1178
|
destinationType: type,
|
|
1131
|
-
|
|
1179
|
+
callStateForMetrics: callStateForMetrics
|
|
1132
1180
|
}, {
|
|
1133
1181
|
// @ts-ignore
|
|
1134
1182
|
parent: this.webex
|
|
1135
1183
|
});
|
|
1136
1184
|
this.meetingCollection.set(meeting);
|
|
1137
|
-
_context3.prev =
|
|
1185
|
+
_context3.prev = 9;
|
|
1138
1186
|
// if no participant has joined the scheduled meeting (meaning meeting is not active) and we get a locusEvent,
|
|
1139
1187
|
// it means the meeting will start in 5-6 min. In that case, we want to fetchMeetingInfo
|
|
1140
1188
|
// between 5 and 2 min (random between 3 minutes) before the meeting starts
|
|
@@ -1150,37 +1198,57 @@ var Meetings = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
1150
1198
|
}
|
|
1151
1199
|
isMeetingActive = !!((_destination$fullStat = destination.fullState) !== null && _destination$fullStat !== void 0 && _destination$fullStat.active); // @ts-ignore
|
|
1152
1200
|
enableUnifiedMeetings = this.config.experimental.enableUnifiedMeetings;
|
|
1201
|
+
meetingInfoOptions = {
|
|
1202
|
+
extraParams: infoExtraParams,
|
|
1203
|
+
sendCAevents: !!(callStateForMetrics !== null && callStateForMetrics !== void 0 && callStateForMetrics.correlationId) // if client sends correlation id as argument of public create(), then it means that this meeting creation is part of a pre-join intent from user
|
|
1204
|
+
};
|
|
1205
|
+
if (!meetingInfo) {
|
|
1206
|
+
_context3.next = 19;
|
|
1207
|
+
break;
|
|
1208
|
+
}
|
|
1209
|
+
meeting.injectMeetingInfo(meetingInfo, meetingInfoOptions, meetingLookupUrl);
|
|
1210
|
+
_context3.next = 26;
|
|
1211
|
+
break;
|
|
1212
|
+
case 19:
|
|
1153
1213
|
if (!(enableUnifiedMeetings && !isMeetingActive && useRandomDelayForInfo && waitingTime > 0)) {
|
|
1154
|
-
_context3.next =
|
|
1214
|
+
_context3.next = 24;
|
|
1155
1215
|
break;
|
|
1156
1216
|
}
|
|
1157
1217
|
meeting.fetchMeetingInfoTimeoutId = setTimeout(function () {
|
|
1158
|
-
return meeting.fetchMeetingInfo(
|
|
1159
|
-
extraParams: infoExtraParams
|
|
1160
|
-
});
|
|
1218
|
+
return meeting.fetchMeetingInfo(meetingInfoOptions);
|
|
1161
1219
|
}, waitingTime);
|
|
1162
1220
|
meeting.parseMeetingInfo(undefined, destination);
|
|
1163
|
-
_context3.next =
|
|
1221
|
+
_context3.next = 26;
|
|
1164
1222
|
break;
|
|
1165
|
-
case
|
|
1166
|
-
_context3.next =
|
|
1167
|
-
return meeting.fetchMeetingInfo(
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
case 18:
|
|
1171
|
-
_context3.next = 24;
|
|
1223
|
+
case 24:
|
|
1224
|
+
_context3.next = 26;
|
|
1225
|
+
return meeting.fetchMeetingInfo(meetingInfoOptions);
|
|
1226
|
+
case 26:
|
|
1227
|
+
_context3.next = 38;
|
|
1172
1228
|
break;
|
|
1173
|
-
case
|
|
1174
|
-
_context3.prev =
|
|
1175
|
-
_context3.t0 = _context3["catch"](
|
|
1176
|
-
if (!(_context3.t0 instanceof _captchaError.default) && !(_context3.t0 instanceof _passwordError.default) && !(_context3.t0 instanceof _permission.default)) {
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1229
|
+
case 28:
|
|
1230
|
+
_context3.prev = 28;
|
|
1231
|
+
_context3.t0 = _context3["catch"](9);
|
|
1232
|
+
if (!(!(_context3.t0 instanceof _captchaError.default) && !(_context3.t0 instanceof _passwordError.default) && !(_context3.t0 instanceof _permission.default))) {
|
|
1233
|
+
_context3.next = 37;
|
|
1234
|
+
break;
|
|
1235
|
+
}
|
|
1236
|
+
_loggerProxy.default.logger.info("Meetings:index#createMeeting --> Info Unable to fetch meeting info for ".concat(destination, "."));
|
|
1237
|
+
if (!failOnMissingMeetingInfo) {
|
|
1238
|
+
_context3.next = 36;
|
|
1239
|
+
break;
|
|
1180
1240
|
}
|
|
1241
|
+
_loggerProxy.default.logger.info("Meetings:index#createMeeting --> Destroying meeting due to missing meeting info.");
|
|
1242
|
+
// @ts-ignore
|
|
1243
|
+
this.destroy(meeting, _constants.MEETING_REMOVED_REASON.MISSING_MEETING_INFO);
|
|
1244
|
+
throw new _noMeetingInfo.default();
|
|
1245
|
+
case 36:
|
|
1246
|
+
// if there is no meeting info and no error should be thrown then we assume its a 1:1 call or wireless share
|
|
1247
|
+
_loggerProxy.default.logger.info('Meetings:index#createMeeting --> Info assuming this destination is a 1:1 or wireless share');
|
|
1248
|
+
case 37:
|
|
1181
1249
|
_loggerProxy.default.logger.debug("Meetings:index#createMeeting --> Debug ".concat(_context3.t0, " fetching /meetingInfo for creation."));
|
|
1182
|
-
case
|
|
1183
|
-
_context3.prev =
|
|
1250
|
+
case 38:
|
|
1251
|
+
_context3.prev = 38;
|
|
1184
1252
|
// For type LOCUS_ID we need to parse the locus object to get the information
|
|
1185
1253
|
// about the caller and callee
|
|
1186
1254
|
// Meeting Added event will be created in `handleLocusEvent`
|
|
@@ -1200,14 +1268,14 @@ var Meetings = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
1200
1268
|
type: meetingAddedType
|
|
1201
1269
|
});
|
|
1202
1270
|
}
|
|
1203
|
-
return _context3.finish(
|
|
1204
|
-
case
|
|
1271
|
+
return _context3.finish(38);
|
|
1272
|
+
case 41:
|
|
1205
1273
|
return _context3.abrupt("return", meeting);
|
|
1206
|
-
case
|
|
1274
|
+
case 42:
|
|
1207
1275
|
case "end":
|
|
1208
1276
|
return _context3.stop();
|
|
1209
1277
|
}
|
|
1210
|
-
}, _callee3, this, [[
|
|
1278
|
+
}, _callee3, this, [[9, 28, 38, 41]]);
|
|
1211
1279
|
}));
|
|
1212
1280
|
function createMeeting(_x3) {
|
|
1213
1281
|
return _createMeeting.apply(this, arguments);
|
|
@@ -1222,6 +1290,7 @@ var Meetings = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
1222
1290
|
* @public
|
|
1223
1291
|
* @memberof Meetings
|
|
1224
1292
|
*/
|
|
1293
|
+
)
|
|
1225
1294
|
}, {
|
|
1226
1295
|
key: "getMeetingByType",
|
|
1227
1296
|
value: function getMeetingByType(type, value) {
|
|
@@ -1247,8 +1316,9 @@ var Meetings = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
1247
1316
|
}
|
|
1248
1317
|
|
|
1249
1318
|
/**
|
|
1250
|
-
*
|
|
1251
|
-
* @
|
|
1319
|
+
* Syncs all the meetings from server. Does nothing and returns immediately if unverified guest.
|
|
1320
|
+
* @param {boolean} keepOnlyLocusMeetings - whether the sync should keep only locus meetings or any other meeting in meetingCollection
|
|
1321
|
+
* @returns {Promise<void>}
|
|
1252
1322
|
* @public
|
|
1253
1323
|
* @memberof Meetings
|
|
1254
1324
|
*/
|
|
@@ -1256,6 +1326,14 @@ var Meetings = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
1256
1326
|
key: "syncMeetings",
|
|
1257
1327
|
value: function syncMeetings() {
|
|
1258
1328
|
var _this11 = this;
|
|
1329
|
+
var _ref3 = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {},
|
|
1330
|
+
_ref3$keepOnlyLocusMe = _ref3.keepOnlyLocusMeetings,
|
|
1331
|
+
keepOnlyLocusMeetings = _ref3$keepOnlyLocusMe === void 0 ? true : _ref3$keepOnlyLocusMe;
|
|
1332
|
+
// @ts-ignore
|
|
1333
|
+
if (this.webex.credentials.isUnverifiedGuest) {
|
|
1334
|
+
_loggerProxy.default.logger.info('Meetings:index#syncMeetings --> skipping meeting sync as unverified guest');
|
|
1335
|
+
return _promise.default.resolve();
|
|
1336
|
+
}
|
|
1259
1337
|
return this.request.getActiveMeetings().then(function (locusArray) {
|
|
1260
1338
|
var activeLocusUrl = [];
|
|
1261
1339
|
if (locusArray !== null && locusArray !== void 0 && locusArray.loci && locusArray.loci.length > 0) {
|
|
@@ -1270,12 +1348,14 @@ var Meetings = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
1270
1348
|
}
|
|
1271
1349
|
var meetingsCollection = _this11.meetingCollection.getAll();
|
|
1272
1350
|
if ((0, _keys.default)(meetingsCollection).length > 0) {
|
|
1273
|
-
//
|
|
1274
|
-
//
|
|
1351
|
+
// Sometimes the mercury events are lost after mercury reconnect
|
|
1352
|
+
// Remove any Locus meetings that are not returned by Locus
|
|
1353
|
+
// (they had a locusUrl previously but are no longer active) in the sync
|
|
1275
1354
|
for (var _i = 0, _Object$values = (0, _values.default)(meetingsCollection); _i < _Object$values.length; _i++) {
|
|
1276
1355
|
var meeting = _Object$values[_i];
|
|
1277
1356
|
// @ts-ignore
|
|
1278
|
-
|
|
1357
|
+
var locusUrl = meeting.locusUrl;
|
|
1358
|
+
if ((keepOnlyLocusMeetings || locusUrl) && !activeLocusUrl.includes(locusUrl)) {
|
|
1279
1359
|
// destroy function also uploads logs
|
|
1280
1360
|
// @ts-ignore
|
|
1281
1361
|
_this11.destroy(meeting, _constants.MEETING_REMOVED_REASON.NO_MEETINGS_TO_SYNC);
|
|
@@ -1384,8 +1464,20 @@ var Meetings = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
1384
1464
|
value: function getLogger() {
|
|
1385
1465
|
return _loggerProxy.default.get();
|
|
1386
1466
|
}
|
|
1467
|
+
|
|
1468
|
+
/**
|
|
1469
|
+
* Returns the first meeting it finds that has the webrtc media connection created.
|
|
1470
|
+
* Useful for debugging in the console.
|
|
1471
|
+
*
|
|
1472
|
+
* @private
|
|
1473
|
+
* @returns {Meeting} Meeting object that has a webrtc media connection, else undefined
|
|
1474
|
+
*/
|
|
1475
|
+
}, {
|
|
1476
|
+
key: "getActiveWebrtcMeeting",
|
|
1477
|
+
value: function getActiveWebrtcMeeting() {
|
|
1478
|
+
return this.meetingCollection.getActiveWebrtcMeeting();
|
|
1479
|
+
}
|
|
1387
1480
|
}]);
|
|
1388
1481
|
return Meetings;
|
|
1389
1482
|
}(_webexCore.WebexPlugin);
|
|
1390
|
-
exports.default = Meetings;
|
|
1391
1483
|
//# sourceMappingURL=index.js.map
|