@webex/plugin-meetings 2.59.3-next.1 → 2.59.4
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 -6
- package/LICENSE +1 -1
- package/README.md +1204 -1204
- package/UPGRADING.md +287 -287
- package/babel.config.js +3 -3
- package/browsers.js +108 -108
- package/dist/common/browser-detection.d.ts +9 -9
- package/dist/common/browser-detection.js.map +1 -1
- package/dist/common/collection.d.ts +48 -48
- package/dist/common/collection.js +43 -43
- package/dist/common/collection.js.map +1 -1
- package/dist/common/config.d.ts +2 -2
- package/dist/common/config.js.map +1 -1
- package/dist/common/errors/captcha-error.d.ts +15 -15
- package/dist/common/errors/captcha-error.js +7 -7
- package/dist/common/errors/captcha-error.js.map +1 -1
- package/dist/common/errors/intent-to-join.d.ts +16 -16
- package/dist/common/errors/intent-to-join.js +7 -7
- package/dist/common/errors/intent-to-join.js.map +1 -1
- package/dist/common/errors/join-meeting.d.ts +17 -17
- package/dist/common/errors/join-meeting.js +8 -8
- package/dist/common/errors/join-meeting.js.map +1 -1
- package/dist/common/errors/media.d.ts +15 -15
- package/dist/common/errors/media.js +7 -7
- package/dist/common/errors/media.js.map +1 -1
- package/dist/common/errors/parameter.d.ts +15 -15
- package/dist/common/errors/parameter.js +7 -7
- package/dist/common/errors/parameter.js.map +1 -1
- package/dist/common/errors/password-error.d.ts +15 -15
- package/dist/common/errors/password-error.js +7 -7
- package/dist/common/errors/password-error.js.map +1 -1
- package/dist/common/errors/permission.d.ts +14 -14
- package/dist/common/errors/permission.js +6 -6
- package/dist/common/errors/permission.js.map +1 -1
- package/dist/common/errors/reconnection-in-progress.d.ts +9 -9
- package/dist/common/errors/reconnection-in-progress.js +6 -6
- package/dist/common/errors/reconnection-in-progress.js.map +1 -1
- package/dist/common/errors/reconnection.d.ts +15 -15
- package/dist/common/errors/reconnection.js +7 -7
- package/dist/common/errors/reconnection.js.map +1 -1
- package/dist/common/errors/stats.d.ts +15 -15
- package/dist/common/errors/stats.js +7 -7
- package/dist/common/errors/stats.js.map +1 -1
- package/dist/common/errors/webex-errors.d.ts +81 -81
- package/dist/common/errors/webex-errors.js +42 -42
- package/dist/common/errors/webex-errors.js.map +1 -1
- package/dist/common/errors/webex-meetings-error.d.ts +20 -20
- package/dist/common/errors/webex-meetings-error.js +12 -12
- package/dist/common/errors/webex-meetings-error.js.map +1 -1
- package/dist/common/events/events-scope.d.ts +17 -17
- package/dist/common/events/events-scope.js +10 -10
- package/dist/common/events/events-scope.js.map +1 -1
- package/dist/common/events/events.d.ts +12 -12
- package/dist/common/events/events.js +4 -4
- package/dist/common/events/events.js.map +1 -1
- package/dist/common/events/trigger-proxy.d.ts +2 -2
- package/dist/common/events/trigger-proxy.js.map +1 -1
- package/dist/common/events/util.d.ts +2 -2
- package/dist/common/events/util.js.map +1 -1
- package/dist/common/logs/logger-config.d.ts +2 -2
- package/dist/common/logs/logger-config.js.map +1 -1
- package/dist/common/logs/logger-proxy.d.ts +2 -2
- package/dist/common/logs/logger-proxy.js.map +1 -1
- package/dist/common/logs/request.d.ts +34 -34
- package/dist/common/logs/request.js +18 -18
- package/dist/common/logs/request.js.map +1 -1
- package/dist/common/queue.d.ts +32 -32
- package/dist/common/queue.js +18 -18
- package/dist/common/queue.js.map +1 -1
- package/dist/config.d.ts +73 -73
- package/dist/config.js +2 -2
- package/dist/config.js.map +1 -1
- package/dist/constants.d.ts +926 -924
- package/dist/constants.js +11 -9
- package/dist/constants.js.map +1 -1
- package/dist/controls-options-manager/constants.d.ts +4 -4
- package/dist/controls-options-manager/constants.js.map +1 -1
- package/dist/controls-options-manager/enums.d.ts +5 -5
- package/dist/controls-options-manager/enums.js.map +1 -1
- package/dist/controls-options-manager/index.d.ts +120 -120
- package/dist/controls-options-manager/index.js +81 -81
- package/dist/controls-options-manager/index.js.map +1 -1
- package/dist/controls-options-manager/util.d.ts +7 -7
- package/dist/controls-options-manager/util.js.map +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js.map +1 -1
- package/dist/locus-info/controlsUtils.d.ts +2 -2
- package/dist/locus-info/controlsUtils.js +21 -21
- package/dist/locus-info/controlsUtils.js.map +1 -1
- package/dist/locus-info/embeddedAppsUtils.d.ts +2 -2
- package/dist/locus-info/embeddedAppsUtils.js +14 -14
- package/dist/locus-info/embeddedAppsUtils.js.map +1 -1
- package/dist/locus-info/fullState.d.ts +2 -2
- package/dist/locus-info/fullState.js.map +1 -1
- package/dist/locus-info/hostUtils.d.ts +2 -2
- package/dist/locus-info/hostUtils.js +19 -19
- package/dist/locus-info/hostUtils.js.map +1 -1
- package/dist/locus-info/index.d.ts +269 -269
- package/dist/locus-info/index.js +180 -180
- package/dist/locus-info/index.js.map +1 -1
- package/dist/locus-info/infoUtils.d.ts +2 -2
- package/dist/locus-info/infoUtils.js.map +1 -1
- package/dist/locus-info/mediaSharesUtils.d.ts +2 -2
- package/dist/locus-info/mediaSharesUtils.js +50 -50
- package/dist/locus-info/mediaSharesUtils.js.map +1 -1
- package/dist/locus-info/parser.d.ts +212 -212
- package/dist/locus-info/parser.js +136 -136
- package/dist/locus-info/parser.js.map +1 -1
- package/dist/locus-info/selfUtils.d.ts +2 -2
- package/dist/locus-info/selfUtils.js +52 -52
- package/dist/locus-info/selfUtils.js.map +1 -1
- package/dist/media/index.d.ts +32 -32
- package/dist/media/index.js +145 -145
- package/dist/media/index.js.map +1 -1
- package/dist/media/properties.d.ts +108 -108
- package/dist/media/properties.js +49 -49
- package/dist/media/properties.js.map +1 -1
- package/dist/media/util.d.ts +2 -2
- package/dist/media/util.js.map +1 -1
- package/dist/mediaQualityMetrics/config.d.ts +233 -233
- package/dist/mediaQualityMetrics/config.js.map +1 -1
- package/dist/meeting/effectsState.d.ts +42 -42
- package/dist/meeting/effectsState.js +24 -24
- package/dist/meeting/effectsState.js.map +1 -1
- package/dist/meeting/in-meeting-actions.d.ts +79 -79
- package/dist/meeting/in-meeting-actions.js +11 -11
- package/dist/meeting/in-meeting-actions.js.map +1 -1
- package/dist/meeting/index.d.ts +1621 -1621
- package/dist/meeting/index.js +1538 -1518
- package/dist/meeting/index.js.map +1 -1
- package/dist/meeting/muteState.d.ts +116 -116
- package/dist/meeting/muteState.js +85 -85
- package/dist/meeting/muteState.js.map +1 -1
- package/dist/meeting/request.d.ts +255 -255
- package/dist/meeting/request.js +141 -141
- package/dist/meeting/request.js.map +1 -1
- package/dist/meeting/state.d.ts +9 -9
- package/dist/meeting/state.js +30 -30
- package/dist/meeting/state.js.map +1 -1
- package/dist/meeting/util.d.ts +2 -2
- package/dist/meeting/util.js.map +1 -1
- package/dist/meeting-info/collection.d.ts +20 -20
- package/dist/meeting-info/collection.js +11 -11
- package/dist/meeting-info/collection.js.map +1 -1
- package/dist/meeting-info/index.d.ts +57 -57
- package/dist/meeting-info/index.js +50 -50
- package/dist/meeting-info/index.js.map +1 -1
- package/dist/meeting-info/meeting-info-v2.d.ts +93 -93
- package/dist/meeting-info/meeting-info-v2.js +52 -52
- package/dist/meeting-info/meeting-info-v2.js.map +1 -1
- package/dist/meeting-info/request.d.ts +22 -22
- package/dist/meeting-info/request.js +14 -14
- package/dist/meeting-info/request.js.map +1 -1
- package/dist/meeting-info/util.d.ts +2 -2
- package/dist/meeting-info/util.js +9 -9
- package/dist/meeting-info/util.js.map +1 -1
- package/dist/meeting-info/utilv2.d.ts +2 -2
- package/dist/meeting-info/utilv2.js +20 -20
- package/dist/meeting-info/utilv2.js.map +1 -1
- package/dist/meetings/collection.d.ts +23 -23
- package/dist/meetings/collection.js +14 -14
- package/dist/meetings/collection.js.map +1 -1
- package/dist/meetings/index.d.ts +296 -296
- package/dist/meetings/index.js +259 -259
- package/dist/meetings/index.js.map +1 -1
- package/dist/meetings/request.d.ts +27 -27
- package/dist/meetings/request.js +15 -15
- package/dist/meetings/request.js.map +1 -1
- package/dist/meetings/util.d.ts +18 -18
- package/dist/meetings/util.js +29 -29
- package/dist/meetings/util.js.map +1 -1
- package/dist/member/index.d.ts +147 -147
- package/dist/member/index.js +214 -214
- package/dist/member/index.js.map +1 -1
- package/dist/member/member.types.d.ts +11 -11
- package/dist/member/member.types.js.map +1 -1
- package/dist/member/util.d.ts +2 -2
- package/dist/member/util.js +60 -60
- package/dist/member/util.js.map +1 -1
- package/dist/members/collection.d.ts +24 -24
- package/dist/members/collection.js +11 -11
- package/dist/members/collection.js.map +1 -1
- package/dist/members/index.d.ts +298 -298
- package/dist/members/index.js +275 -275
- package/dist/members/index.js.map +1 -1
- package/dist/members/request.d.ts +50 -50
- package/dist/members/request.js +27 -27
- package/dist/members/request.js.map +1 -1
- package/dist/members/util.d.ts +2 -2
- package/dist/members/util.js +21 -21
- package/dist/members/util.js.map +1 -1
- package/dist/metrics/config.d.ts +169 -169
- package/dist/metrics/config.js.map +1 -1
- package/dist/metrics/constants.d.ts +59 -57
- package/dist/metrics/constants.js +2 -0
- package/dist/metrics/constants.js.map +1 -1
- package/dist/metrics/index.d.ts +152 -152
- package/dist/metrics/index.js +90 -90
- package/dist/metrics/index.js.map +1 -1
- package/dist/networkQualityMonitor/index.d.ts +70 -70
- package/dist/networkQualityMonitor/index.js +65 -65
- package/dist/networkQualityMonitor/index.js.map +1 -1
- package/dist/peer-connection-manager/index.d.ts +6 -6
- package/dist/peer-connection-manager/index.js +87 -87
- package/dist/peer-connection-manager/index.js.map +1 -1
- package/dist/peer-connection-manager/util.d.ts +6 -6
- package/dist/peer-connection-manager/util.js +9 -9
- package/dist/peer-connection-manager/util.js.map +1 -1
- package/dist/personal-meeting-room/index.d.ts +47 -47
- package/dist/personal-meeting-room/index.js +67 -67
- package/dist/personal-meeting-room/index.js.map +1 -1
- package/dist/personal-meeting-room/request.d.ts +14 -14
- package/dist/personal-meeting-room/request.js +7 -7
- package/dist/personal-meeting-room/request.js.map +1 -1
- package/dist/personal-meeting-room/util.d.ts +2 -2
- package/dist/personal-meeting-room/util.js.map +1 -1
- package/dist/reachability/index.d.ts +139 -139
- package/dist/reachability/index.js +110 -110
- package/dist/reachability/index.js.map +1 -1
- package/dist/reachability/request.d.ts +35 -35
- package/dist/reachability/request.js +15 -15
- package/dist/reachability/request.js.map +1 -1
- package/dist/reactions/reactions.d.ts +4 -4
- package/dist/reactions/reactions.js.map +1 -1
- package/dist/reactions/reactions.type.d.ts +32 -32
- package/dist/reactions/reactions.type.js.map +1 -1
- package/dist/reconnection-manager/index.d.ts +112 -112
- package/dist/reconnection-manager/index.js +112 -112
- package/dist/reconnection-manager/index.js.map +1 -1
- package/dist/recording-controller/enums.d.ts +7 -7
- package/dist/recording-controller/enums.js.map +1 -1
- package/dist/recording-controller/index.d.ts +193 -193
- package/dist/recording-controller/index.js +127 -127
- package/dist/recording-controller/index.js.map +1 -1
- package/dist/recording-controller/util.d.ts +13 -13
- package/dist/recording-controller/util.js.map +1 -1
- package/dist/roap/collection.d.ts +10 -10
- package/dist/roap/collection.js.map +1 -1
- package/dist/roap/handler.d.ts +47 -47
- package/dist/roap/handler.js +27 -27
- package/dist/roap/handler.js.map +1 -1
- package/dist/roap/index.d.ts +116 -116
- package/dist/roap/index.js +111 -111
- package/dist/roap/index.js.map +1 -1
- package/dist/roap/request.d.ts +35 -35
- package/dist/roap/request.js +17 -17
- package/dist/roap/request.js.map +1 -1
- package/dist/roap/state.d.ts +9 -9
- package/dist/roap/state.js +14 -14
- package/dist/roap/state.js.map +1 -1
- package/dist/roap/turnDiscovery.d.ts +67 -67
- package/dist/roap/turnDiscovery.js +46 -46
- package/dist/roap/turnDiscovery.js.map +1 -1
- package/dist/roap/util.d.ts +2 -2
- package/dist/roap/util.js.map +1 -1
- package/dist/statsAnalyzer/global.d.ts +118 -126
- package/dist/statsAnalyzer/global.js +4 -12
- package/dist/statsAnalyzer/global.js.map +1 -1
- package/dist/statsAnalyzer/index.d.ts +193 -190
- package/dist/statsAnalyzer/index.js +182 -140
- package/dist/statsAnalyzer/index.js.map +1 -1
- package/dist/statsAnalyzer/mqaUtil.d.ts +22 -22
- package/dist/statsAnalyzer/mqaUtil.js.map +1 -1
- package/dist/transcription/index.d.ts +64 -64
- package/dist/transcription/index.js +42 -42
- package/dist/transcription/index.js.map +1 -1
- package/internal-README.md +172 -172
- package/jest.config.js +3 -3
- package/package.json +21 -22
- package/process +1 -1
- package/src/common/browser-detection.ts +39 -39
- package/src/common/collection.ts +94 -94
- package/src/common/config.ts +9 -9
- package/src/common/errors/captcha-error.ts +25 -25
- package/src/common/errors/intent-to-join.ts +27 -27
- package/src/common/errors/join-meeting.ts +32 -32
- package/src/common/errors/media.ts +25 -25
- package/src/common/errors/parameter.ts +33 -33
- package/src/common/errors/password-error.ts +25 -25
- package/src/common/errors/permission.ts +24 -24
- package/src/common/errors/reconnection-in-progress.ts +8 -8
- package/src/common/errors/reconnection.ts +25 -25
- package/src/common/errors/stats.ts +25 -25
- package/src/common/errors/webex-errors.ts +140 -140
- package/src/common/errors/webex-meetings-error.ts +35 -35
- package/src/common/events/events-scope.ts +30 -30
- package/src/common/events/events.ts +25 -25
- package/src/common/events/trigger-proxy.ts +25 -25
- package/src/common/events/util.ts +39 -39
- package/src/common/logs/logger-config.ts +8 -8
- package/src/common/logs/logger-proxy.ts +44 -44
- package/src/common/logs/request.ts +65 -65
- package/src/common/queue.ts +50 -50
- package/src/config.ts +96 -96
- package/src/constants.ts +1123 -1121
- package/src/controls-options-manager/constants.ts +5 -5
- package/src/controls-options-manager/enums.ts +6 -6
- package/src/controls-options-manager/index.ts +183 -183
- package/src/controls-options-manager/util.ts +20 -20
- package/src/index.js +15 -15
- package/src/locus-info/controlsUtils.ts +112 -112
- package/src/locus-info/embeddedAppsUtils.ts +57 -57
- package/src/locus-info/fullState.ts +69 -69
- package/src/locus-info/hostUtils.ts +60 -60
- package/src/locus-info/index.ts +1303 -1303
- package/src/locus-info/infoUtils.ts +101 -101
- package/src/locus-info/mediaSharesUtils.ts +173 -173
- package/src/locus-info/parser.ts +680 -680
- package/src/locus-info/selfUtils.ts +428 -428
- package/src/media/index.ts +675 -675
- package/src/media/properties.ts +313 -313
- package/src/media/util.ts +37 -37
- package/src/mediaQualityMetrics/config.ts +382 -382
- package/src/meeting/effectsState.ts +209 -209
- package/src/meeting/in-meeting-actions.ts +153 -153
- package/src/meeting/index.ts +6572 -6537
- package/src/meeting/muteState.ts +365 -365
- package/src/meeting/request.ts +810 -810
- package/src/meeting/state.ts +194 -194
- package/src/meeting/util.ts +530 -530
- package/src/meeting-info/collection.ts +41 -41
- package/src/meeting-info/index.ts +137 -137
- package/src/meeting-info/meeting-info-v2.ts +273 -273
- package/src/meeting-info/request.ts +46 -46
- package/src/meeting-info/util.ts +314 -314
- package/src/meeting-info/utilv2.ts +324 -324
- package/src/meetings/collection.ts +43 -43
- package/src/meetings/index.ts +1128 -1128
- package/src/meetings/request.ts +81 -81
- package/src/meetings/util.ts +181 -181
- package/src/member/index.ts +446 -446
- package/src/member/member.types.ts +13 -13
- package/src/member/util.ts +286 -286
- package/src/members/collection.ts +40 -40
- package/src/members/index.ts +900 -900
- package/src/members/request.ts +175 -175
- package/src/members/util.ts +260 -260
- package/src/metrics/config.ts +485 -485
- package/src/metrics/constants.ts +63 -61
- package/src/metrics/index.ts +543 -543
- package/src/networkQualityMonitor/index.ts +211 -211
- package/src/peer-connection-manager/index.ts +847 -847
- package/src/peer-connection-manager/util.ts +119 -119
- package/src/personal-meeting-room/index.ts +157 -157
- package/src/personal-meeting-room/request.ts +48 -48
- package/src/personal-meeting-room/util.ts +49 -49
- package/src/reachability/index.ts +478 -478
- package/src/reachability/request.ts +81 -81
- package/src/reactions/reactions.ts +104 -104
- package/src/reactions/reactions.type.ts +36 -36
- package/src/reconnection-manager/index.ts +622 -622
- package/src/recording-controller/enums.ts +8 -8
- package/src/recording-controller/index.ts +315 -315
- package/src/recording-controller/util.ts +58 -58
- package/src/roap/collection.ts +62 -62
- package/src/roap/handler.ts +294 -294
- package/src/roap/index.ts +413 -413
- package/src/roap/request.ts +229 -229
- package/src/roap/state.ts +156 -156
- package/src/roap/turnDiscovery.ts +283 -283
- package/src/roap/util.ts +100 -100
- package/src/statsAnalyzer/global.ts +120 -128
- package/src/statsAnalyzer/index.ts +1329 -1266
- package/src/statsAnalyzer/mqaUtil.ts +290 -290
- package/src/transcription/index.ts +154 -154
- package/test/integration/spec/journey.js +941 -941
- package/test/integration/spec/space-meeting.js +457 -457
- package/test/integration/spec/transcription.js +55 -55
- package/test/unit/spec/common/browser-detection.js +119 -119
- package/test/unit/spec/common/queue.js +69 -69
- package/test/unit/spec/controls-options-manager/index.js +123 -123
- package/test/unit/spec/controls-options-manager/util.js +65 -65
- package/test/unit/spec/fixture/locus.js +406 -406
- package/test/unit/spec/locus-info/controlsUtils.js +82 -82
- package/test/unit/spec/locus-info/embeddedAppsUtils.js +104 -104
- package/test/unit/spec/locus-info/index.js +1272 -1272
- package/test/unit/spec/locus-info/infoUtils.js +138 -138
- package/test/unit/spec/locus-info/lib/BasicSeqCmp.json +975 -975
- package/test/unit/spec/locus-info/lib/SeqCmp.json +522 -522
- package/test/unit/spec/locus-info/lib/selfConstant.js +286 -286
- package/test/unit/spec/locus-info/parser.js +298 -298
- package/test/unit/spec/locus-info/selfUtils.js +185 -185
- package/test/unit/spec/media/properties.ts +305 -305
- package/test/unit/spec/meeting/effectsState.js +281 -281
- package/test/unit/spec/meeting/in-meeting-actions.ts +90 -90
- package/test/unit/spec/meeting/index.js +5298 -5227
- package/test/unit/spec/meeting/muteState.js +430 -430
- package/test/unit/spec/meeting/request.js +317 -317
- package/test/unit/spec/meeting/utils.js +319 -319
- package/test/unit/spec/meeting-info/meetinginfov2.js +376 -376
- package/test/unit/spec/meeting-info/request.js +64 -64
- package/test/unit/spec/meeting-info/util.js +37 -37
- package/test/unit/spec/meeting-info/utilv2.js +330 -330
- package/test/unit/spec/meetings/collection.js +52 -52
- package/test/unit/spec/meetings/index.js +1375 -1375
- package/test/unit/spec/meetings/utils.js +66 -66
- package/test/unit/spec/member/index.js +47 -47
- package/test/unit/spec/member/util.js +80 -80
- package/test/unit/spec/members/index.js +364 -364
- package/test/unit/spec/members/request.js +200 -200
- package/test/unit/spec/members/utils.js +42 -42
- package/test/unit/spec/metrics/index.js +111 -111
- package/test/unit/spec/networkQualityMonitor/index.js +99 -99
- package/test/unit/spec/peerconnection-manager/index.js +218 -218
- package/test/unit/spec/peerconnection-manager/utils.js +49 -49
- package/test/unit/spec/peerconnection-manager/utils.test-fixtures.ts +388 -388
- package/test/unit/spec/personal-meeting-room/personal-meeting-room.js +29 -29
- package/test/unit/spec/reachability/index.ts +50 -50
- package/test/unit/spec/reconnection-manager/index.js +206 -206
- package/test/unit/spec/recording-controller/index.js +230 -230
- package/test/unit/spec/recording-controller/util.js +101 -101
- package/test/unit/spec/roap/index.ts +128 -128
- package/test/unit/spec/roap/turnDiscovery.ts +372 -372
- package/test/unit/spec/roap/util.js +30 -30
- package/test/unit/spec/stats-analyzer/index.js +438 -287
- package/test/utils/cmr.js +104 -104
- package/test/utils/testUtils.js +287 -287
- package/test/utils/webex-config.js +77 -77
- package/test/utils/webex-test-users.js +82 -82
- package/tsconfig.json +5 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_constants","require","_metrics","_interopRequireDefault","_constants2","_utilv","ownKeys","object","enumerableOnly","keys","_Object$keys","_Object$getOwnPropertySymbols","symbols","filter","sym","_Object$getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","target","i","arguments","length","source","Object","forEach","key","_defineProperty2","default","_Object$getOwnPropertyDescriptors","_Object$defineProperties","_Object$defineProperty","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf2","result","NewTarget","constructor","_Reflect$construct","_possibleConstructorReturn2","Reflect","sham","Proxy","Boolean","prototype","valueOf","call","e","PASSWORD_ERROR_DEFAULT_MESSAGE","CAPTCHA_ERROR_DEFAULT_MESSAGE","ADHOC_MEETING_DEFAULT_ERROR","CAPTCHA_ERROR_REQUIRES_PASSWORD_CODES","MeetingInfoV2PasswordError","_Error","_inherits2","_super","wbxAppApiErrorCode","meetingInfo","_this","message","undefined","_classCallCheck2","concat","_assertThisInitialized2","name","sdkMessage","stack","Error","wbxAppApiCode","_createClass2","_wrapNativeSuper2","exports","MeetingInfoV2AdhocMeetingError","_Error2","_super2","_this2","MeetingInfoV2CaptchaError","_Error3","_super3","captchaInfo","_this3","isPasswordRequired","includes","MeetingInfoV2","webex","value","fetchInfoOptions","destination","type","MeetingInfoUtil","getDestinationType","_createAdhocSpaceMeeting","_asyncToGenerator2","_regenerator","mark","_callee","conversationUrl","_this4","getInvitees","wrap","_callee$","_context","prev","next","meetings","preferredWebexSite","particpants","invitees","participant","email","emailAddress","ciUserUuid","entryUUID","abrupt","request","then","_ref","_conversation$partici","conversation","body","title","displayName","spaceUrl","url","keyUrl","encryptionKeyUrl","kroUrl","kmsResourceObjectUrl","participants","items","uri","Metrics","sendBehavioralMetric","BEHAVIORAL_METRICS","ADHOC_MEETING_SUCCESS","method","HTTP_VERBS","POST","catch","err","_err$body","_err$body2","ADHOC_MEETING_FAILURE","reason","code","stop","createAdhocSpaceMeeting","_x","_fetchMeetingInfo","_callee2","password","destinationType","options","directURI","_args2","_callee2$","_context2","sent","_CONVERSATION_URL_","config","experimental","enableAdhocMeetings","getRequestBody","getDirectMeetingInfoURI","service","WBXAPPAPI_SERVICE","resource","response","FETCH_MEETING_INFO_V1_SUCCESS","statusCode","_err$body3","_err$body4","_err$body4$data","VERIFY_PASSWORD_ERROR","data","_err$body5","VERIFY_CAPTCHA_ERROR","captchaId","captchaID","verificationImageURL","verificationAudioURL","refreshURL","FETCH_MEETING_INFO_V1_FAILURE","fetchMeetingInfo","_x2"],"sources":["meeting-info-v2.ts"],"sourcesContent":["import {HTTP_VERBS, _CONVERSATION_URL_, WBXAPPAPI_SERVICE} from '../constants';\r\nimport Metrics from '../metrics';\r\nimport BEHAVIORAL_METRICS from '../metrics/constants';\r\n\r\nimport MeetingInfoUtil from './utilv2';\r\n\r\nconst PASSWORD_ERROR_DEFAULT_MESSAGE =\r\n 'Password required. Call fetchMeetingInfo() with password argument';\r\nconst CAPTCHA_ERROR_DEFAULT_MESSAGE =\r\n 'Captcha required. Call fetchMeetingInfo() with captchaInfo argument';\r\nconst ADHOC_MEETING_DEFAULT_ERROR =\r\n 'Failed starting the adhoc meeting, Please contact support team ';\r\nconst CAPTCHA_ERROR_REQUIRES_PASSWORD_CODES = [423005, 423006];\r\n\r\n/**\r\n * Error to indicate that wbxappapi requires a password\r\n */\r\nexport class MeetingInfoV2PasswordError extends Error {\r\n meetingInfo: any;\r\n sdkMessage: any;\r\n wbxAppApiCode: any;\r\n body: any;\r\n\r\n /**\r\n *\r\n * @constructor\r\n * @param {Number} [wbxAppApiErrorCode]\r\n * @param {Object} [meetingInfo]\r\n * @param {String} [message]\r\n */\r\n constructor(\r\n wbxAppApiErrorCode?: number,\r\n meetingInfo?: object,\r\n message: string = PASSWORD_ERROR_DEFAULT_MESSAGE\r\n ) {\r\n super(`${message}, code=${wbxAppApiErrorCode}`);\r\n this.name = 'MeetingInfoV2PasswordError';\r\n this.sdkMessage = message;\r\n this.stack = new Error().stack;\r\n this.wbxAppApiCode = wbxAppApiErrorCode;\r\n this.meetingInfo = meetingInfo;\r\n }\r\n}\r\n\r\n/**\r\n * Error generating a adhoc space meeting\r\n */\r\nexport class MeetingInfoV2AdhocMeetingError extends Error {\r\n sdkMessage: any;\r\n wbxAppApiCode: any;\r\n /**\r\n *\r\n * @constructor\r\n * @param {Number} [wbxAppApiErrorCode]\r\n * @param {String} [message]\r\n */\r\n constructor(wbxAppApiErrorCode?: number, message: string = ADHOC_MEETING_DEFAULT_ERROR) {\r\n super(`${message}, code=${wbxAppApiErrorCode}`);\r\n this.name = 'MeetingInfoV2AdhocMeetingError';\r\n this.sdkMessage = message;\r\n this.stack = new Error().stack;\r\n this.wbxAppApiCode = wbxAppApiErrorCode;\r\n }\r\n}\r\n\r\n/**\r\n * Error to indicate that preferred webex site not present to start adhoc meeting\r\n */\r\nexport class MeetingInfoV2CaptchaError extends Error {\r\n captchaInfo: any;\r\n isPasswordRequired: any;\r\n sdkMessage: any;\r\n wbxAppApiCode: any;\r\n body: any;\r\n /**\r\n *\r\n * @constructor\r\n * @param {Number} [wbxAppApiErrorCode]\r\n * @param {Object} [captchaInfo]\r\n * @param {String} [message]\r\n */\r\n constructor(\r\n wbxAppApiErrorCode?: number,\r\n captchaInfo?: object,\r\n message: string = CAPTCHA_ERROR_DEFAULT_MESSAGE\r\n ) {\r\n super(`${message}, code=${wbxAppApiErrorCode}`);\r\n this.name = 'MeetingInfoV2PasswordError';\r\n this.sdkMessage = message;\r\n this.stack = new Error().stack;\r\n this.wbxAppApiCode = wbxAppApiErrorCode;\r\n this.isPasswordRequired = CAPTCHA_ERROR_REQUIRES_PASSWORD_CODES.includes(wbxAppApiErrorCode);\r\n this.captchaInfo = captchaInfo;\r\n }\r\n}\r\n\r\n/**\r\n * @class MeetingInfo\r\n */\r\nexport default class MeetingInfoV2 {\r\n webex: any;\r\n\r\n /**\r\n *\r\n * @param {WebexSDK} webex\r\n */\r\n constructor(webex) {\r\n this.webex = webex;\r\n }\r\n\r\n /**\r\n * converts hydra id into conversation url and persons Id\r\n * @param {String} destination one of many different types of destinations to look up info for\r\n * @param {String} [type] to match up with the destination value\r\n * @returns {Promise} destination and type\r\n * @public\r\n * @memberof MeetingInfo\r\n */\r\n fetchInfoOptions(destination: string, type: string = null) {\r\n return MeetingInfoUtil.getDestinationType({\r\n destination,\r\n type,\r\n webex: this.webex,\r\n });\r\n }\r\n\r\n /**\r\n * Creates adhoc space meetings for a space by fetching the conversation infomation\r\n * @param {String} conversationUrl conversationUrl to start adhoc meeting on\r\n * @returns {Promise} returns a meeting info object\r\n * @public\r\n * @memberof MeetingInfo\r\n */\r\n async createAdhocSpaceMeeting(conversationUrl: string) {\r\n if (!this.webex.meetings.preferredWebexSite) {\r\n throw Error('No preferred webex site found');\r\n }\r\n const getInvitees = (particpants = []) => {\r\n const invitees = [];\r\n\r\n if (particpants) {\r\n particpants.forEach((participant) => {\r\n invitees.push({\r\n email: participant.emailAddress,\r\n ciUserUuid: participant.entryUUID,\r\n });\r\n });\r\n }\r\n\r\n return invitees;\r\n };\r\n\r\n return this.webex\r\n .request(conversationUrl)\r\n .then(({body: conversation}) => {\r\n const body = {\r\n title: conversation.displayName,\r\n spaceUrl: conversation.url,\r\n keyUrl: conversation.encryptionKeyUrl,\r\n kroUrl: conversation.kmsResourceObjectUrl,\r\n invitees: getInvitees(conversation.participants?.items),\r\n };\r\n\r\n const uri = this.webex.meetings.preferredWebexSite\r\n ? `https://${this.webex.meetings.preferredWebexSite}/wbxappapi/v2/meetings/spaceInstant`\r\n : '';\r\n\r\n Metrics.sendBehavioralMetric(BEHAVIORAL_METRICS.ADHOC_MEETING_SUCCESS);\r\n\r\n return this.webex.request({\r\n method: HTTP_VERBS.POST,\r\n uri,\r\n body,\r\n });\r\n })\r\n .catch((err) => {\r\n Metrics.sendBehavioralMetric(BEHAVIORAL_METRICS.ADHOC_MEETING_FAILURE, {\r\n reason: err.message,\r\n stack: err.stack,\r\n });\r\n throw new MeetingInfoV2AdhocMeetingError(err.body?.code, err.body?.message);\r\n });\r\n }\r\n\r\n /**\r\n * Fetches meeting info from the server\r\n * @param {String} destination one of many different types of destinations to look up info for\r\n * @param {String} [type] to match up with the destination value\r\n * @param {String} password\r\n * @param {Object} captchaInfo\r\n * @param {String} captchaInfo.code\r\n * @param {String} captchaInfo.id\r\n * @returns {Promise} returns a meeting info object\r\n * @public\r\n * @memberof MeetingInfo\r\n */\r\n async fetchMeetingInfo(\r\n destination: string,\r\n type: string = null,\r\n password: string = null,\r\n captchaInfo: {\r\n code: string;\r\n id: string;\r\n } = null\r\n ) {\r\n const destinationType = await MeetingInfoUtil.getDestinationType({\r\n destination,\r\n type,\r\n webex: this.webex,\r\n });\r\n\r\n if (\r\n destinationType.type === _CONVERSATION_URL_ &&\r\n this.webex.config.meetings.experimental.enableAdhocMeetings &&\r\n this.webex.meetings.preferredWebexSite\r\n ) {\r\n return this.createAdhocSpaceMeeting(destinationType.destination);\r\n }\r\n\r\n const body = await MeetingInfoUtil.getRequestBody({...destinationType, password, captchaInfo});\r\n\r\n const options: any = {\r\n method: HTTP_VERBS.POST,\r\n body,\r\n };\r\n\r\n const directURI = await MeetingInfoUtil.getDirectMeetingInfoURI(destinationType);\r\n\r\n if (directURI) {\r\n options.uri = directURI;\r\n } else {\r\n options.service = WBXAPPAPI_SERVICE;\r\n options.resource = 'meetingInfo';\r\n }\r\n\r\n return this.webex\r\n .request(options)\r\n .then((response) => {\r\n Metrics.sendBehavioralMetric(BEHAVIORAL_METRICS.FETCH_MEETING_INFO_V1_SUCCESS);\r\n\r\n return response;\r\n })\r\n .catch((err) => {\r\n if (err?.statusCode === 403) {\r\n Metrics.sendBehavioralMetric(BEHAVIORAL_METRICS.VERIFY_PASSWORD_ERROR, {\r\n reason: err.message,\r\n stack: err.stack,\r\n });\r\n\r\n throw new MeetingInfoV2PasswordError(err.body?.code, err.body?.data?.meetingInfo);\r\n }\r\n if (err?.statusCode === 423) {\r\n Metrics.sendBehavioralMetric(BEHAVIORAL_METRICS.VERIFY_CAPTCHA_ERROR, {\r\n reason: err.message,\r\n stack: err.stack,\r\n });\r\n\r\n throw new MeetingInfoV2CaptchaError(err.body?.code, {\r\n captchaId: err.body.captchaID,\r\n verificationImageURL: err.body.verificationImageURL,\r\n verificationAudioURL: err.body.verificationAudioURL,\r\n refreshURL: err.body.refreshURL,\r\n });\r\n }\r\n\r\n Metrics.sendBehavioralMetric(BEHAVIORAL_METRICS.FETCH_MEETING_INFO_V1_FAILURE, {\r\n reason: err.message,\r\n stack: err.stack,\r\n });\r\n throw err;\r\n });\r\n }\r\n}\r\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AACA,IAAAC,QAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,WAAA,GAAAD,sBAAA,CAAAF,OAAA;AAEA,IAAAI,MAAA,GAAAF,sBAAA,C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IAAA;EAAA;EAAA,OAAApG,aAAA;AAAA;AAAAZ,OAAA,CAAA/C,OAAA,GAAA2D,aAAA"}
|
|
1
|
+
{"version":3,"names":["_constants","require","_metrics","_interopRequireDefault","_constants2","_utilv","ownKeys","object","enumerableOnly","keys","_Object$keys","_Object$getOwnPropertySymbols","symbols","filter","sym","_Object$getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","target","i","arguments","length","source","Object","forEach","key","_defineProperty2","default","_Object$getOwnPropertyDescriptors","_Object$defineProperties","_Object$defineProperty","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf2","result","NewTarget","constructor","_Reflect$construct","_possibleConstructorReturn2","Reflect","sham","Proxy","Boolean","prototype","valueOf","call","e","PASSWORD_ERROR_DEFAULT_MESSAGE","CAPTCHA_ERROR_DEFAULT_MESSAGE","ADHOC_MEETING_DEFAULT_ERROR","CAPTCHA_ERROR_REQUIRES_PASSWORD_CODES","MeetingInfoV2PasswordError","_Error","_inherits2","_super","wbxAppApiErrorCode","meetingInfo","_this","message","undefined","_classCallCheck2","concat","_assertThisInitialized2","name","sdkMessage","stack","Error","wbxAppApiCode","_createClass2","_wrapNativeSuper2","exports","MeetingInfoV2AdhocMeetingError","_Error2","_super2","_this2","MeetingInfoV2CaptchaError","_Error3","_super3","captchaInfo","_this3","isPasswordRequired","includes","MeetingInfoV2","webex","value","fetchInfoOptions","destination","type","MeetingInfoUtil","getDestinationType","_createAdhocSpaceMeeting","_asyncToGenerator2","_regenerator","mark","_callee","conversationUrl","_this4","getInvitees","wrap","_callee$","_context","prev","next","meetings","preferredWebexSite","particpants","invitees","participant","email","emailAddress","ciUserUuid","entryUUID","abrupt","request","then","_ref","_conversation$partici","conversation","body","title","displayName","spaceUrl","url","keyUrl","encryptionKeyUrl","kroUrl","kmsResourceObjectUrl","participants","items","uri","Metrics","sendBehavioralMetric","BEHAVIORAL_METRICS","ADHOC_MEETING_SUCCESS","method","HTTP_VERBS","POST","catch","err","_err$body","_err$body2","ADHOC_MEETING_FAILURE","reason","code","stop","createAdhocSpaceMeeting","_x","_fetchMeetingInfo","_callee2","password","destinationType","options","directURI","_args2","_callee2$","_context2","sent","_CONVERSATION_URL_","config","experimental","enableAdhocMeetings","getRequestBody","getDirectMeetingInfoURI","service","WBXAPPAPI_SERVICE","resource","response","FETCH_MEETING_INFO_V1_SUCCESS","statusCode","_err$body3","_err$body4","_err$body4$data","VERIFY_PASSWORD_ERROR","data","_err$body5","VERIFY_CAPTCHA_ERROR","captchaId","captchaID","verificationImageURL","verificationAudioURL","refreshURL","FETCH_MEETING_INFO_V1_FAILURE","fetchMeetingInfo","_x2"],"sources":["meeting-info-v2.ts"],"sourcesContent":["import {HTTP_VERBS, _CONVERSATION_URL_, WBXAPPAPI_SERVICE} from '../constants';\nimport Metrics from '../metrics';\nimport BEHAVIORAL_METRICS from '../metrics/constants';\n\nimport MeetingInfoUtil from './utilv2';\n\nconst PASSWORD_ERROR_DEFAULT_MESSAGE =\n 'Password required. Call fetchMeetingInfo() with password argument';\nconst CAPTCHA_ERROR_DEFAULT_MESSAGE =\n 'Captcha required. Call fetchMeetingInfo() with captchaInfo argument';\nconst ADHOC_MEETING_DEFAULT_ERROR =\n 'Failed starting the adhoc meeting, Please contact support team ';\nconst CAPTCHA_ERROR_REQUIRES_PASSWORD_CODES = [423005, 423006];\n\n/**\n * Error to indicate that wbxappapi requires a password\n */\nexport class MeetingInfoV2PasswordError extends Error {\n meetingInfo: any;\n sdkMessage: any;\n wbxAppApiCode: any;\n body: any;\n\n /**\n *\n * @constructor\n * @param {Number} [wbxAppApiErrorCode]\n * @param {Object} [meetingInfo]\n * @param {String} [message]\n */\n constructor(\n wbxAppApiErrorCode?: number,\n meetingInfo?: object,\n message: string = PASSWORD_ERROR_DEFAULT_MESSAGE\n ) {\n super(`${message}, code=${wbxAppApiErrorCode}`);\n this.name = 'MeetingInfoV2PasswordError';\n this.sdkMessage = message;\n this.stack = new Error().stack;\n this.wbxAppApiCode = wbxAppApiErrorCode;\n this.meetingInfo = meetingInfo;\n }\n}\n\n/**\n * Error generating a adhoc space meeting\n */\nexport class MeetingInfoV2AdhocMeetingError extends Error {\n sdkMessage: any;\n wbxAppApiCode: any;\n /**\n *\n * @constructor\n * @param {Number} [wbxAppApiErrorCode]\n * @param {String} [message]\n */\n constructor(wbxAppApiErrorCode?: number, message: string = ADHOC_MEETING_DEFAULT_ERROR) {\n super(`${message}, code=${wbxAppApiErrorCode}`);\n this.name = 'MeetingInfoV2AdhocMeetingError';\n this.sdkMessage = message;\n this.stack = new Error().stack;\n this.wbxAppApiCode = wbxAppApiErrorCode;\n }\n}\n\n/**\n * Error to indicate that preferred webex site not present to start adhoc meeting\n */\nexport class MeetingInfoV2CaptchaError extends Error {\n captchaInfo: any;\n isPasswordRequired: any;\n sdkMessage: any;\n wbxAppApiCode: any;\n body: any;\n /**\n *\n * @constructor\n * @param {Number} [wbxAppApiErrorCode]\n * @param {Object} [captchaInfo]\n * @param {String} [message]\n */\n constructor(\n wbxAppApiErrorCode?: number,\n captchaInfo?: object,\n message: string = CAPTCHA_ERROR_DEFAULT_MESSAGE\n ) {\n super(`${message}, code=${wbxAppApiErrorCode}`);\n this.name = 'MeetingInfoV2PasswordError';\n this.sdkMessage = message;\n this.stack = new Error().stack;\n this.wbxAppApiCode = wbxAppApiErrorCode;\n this.isPasswordRequired = CAPTCHA_ERROR_REQUIRES_PASSWORD_CODES.includes(wbxAppApiErrorCode);\n this.captchaInfo = captchaInfo;\n }\n}\n\n/**\n * @class MeetingInfo\n */\nexport default class MeetingInfoV2 {\n webex: any;\n\n /**\n *\n * @param {WebexSDK} webex\n */\n constructor(webex) {\n this.webex = webex;\n }\n\n /**\n * converts hydra id into conversation url and persons Id\n * @param {String} destination one of many different types of destinations to look up info for\n * @param {String} [type] to match up with the destination value\n * @returns {Promise} destination and type\n * @public\n * @memberof MeetingInfo\n */\n fetchInfoOptions(destination: string, type: string = null) {\n return MeetingInfoUtil.getDestinationType({\n destination,\n type,\n webex: this.webex,\n });\n }\n\n /**\n * Creates adhoc space meetings for a space by fetching the conversation infomation\n * @param {String} conversationUrl conversationUrl to start adhoc meeting on\n * @returns {Promise} returns a meeting info object\n * @public\n * @memberof MeetingInfo\n */\n async createAdhocSpaceMeeting(conversationUrl: string) {\n if (!this.webex.meetings.preferredWebexSite) {\n throw Error('No preferred webex site found');\n }\n const getInvitees = (particpants = []) => {\n const invitees = [];\n\n if (particpants) {\n particpants.forEach((participant) => {\n invitees.push({\n email: participant.emailAddress,\n ciUserUuid: participant.entryUUID,\n });\n });\n }\n\n return invitees;\n };\n\n return this.webex\n .request(conversationUrl)\n .then(({body: conversation}) => {\n const body = {\n title: conversation.displayName,\n spaceUrl: conversation.url,\n keyUrl: conversation.encryptionKeyUrl,\n kroUrl: conversation.kmsResourceObjectUrl,\n invitees: getInvitees(conversation.participants?.items),\n };\n\n const uri = this.webex.meetings.preferredWebexSite\n ? `https://${this.webex.meetings.preferredWebexSite}/wbxappapi/v2/meetings/spaceInstant`\n : '';\n\n Metrics.sendBehavioralMetric(BEHAVIORAL_METRICS.ADHOC_MEETING_SUCCESS);\n\n return this.webex.request({\n method: HTTP_VERBS.POST,\n uri,\n body,\n });\n })\n .catch((err) => {\n Metrics.sendBehavioralMetric(BEHAVIORAL_METRICS.ADHOC_MEETING_FAILURE, {\n reason: err.message,\n stack: err.stack,\n });\n throw new MeetingInfoV2AdhocMeetingError(err.body?.code, err.body?.message);\n });\n }\n\n /**\n * Fetches meeting info from the server\n * @param {String} destination one of many different types of destinations to look up info for\n * @param {String} [type] to match up with the destination value\n * @param {String} password\n * @param {Object} captchaInfo\n * @param {String} captchaInfo.code\n * @param {String} captchaInfo.id\n * @returns {Promise} returns a meeting info object\n * @public\n * @memberof MeetingInfo\n */\n async fetchMeetingInfo(\n destination: string,\n type: string = null,\n password: string = null,\n captchaInfo: {\n code: string;\n id: string;\n } = null\n ) {\n const destinationType = await MeetingInfoUtil.getDestinationType({\n destination,\n type,\n webex: this.webex,\n });\n\n if (\n destinationType.type === _CONVERSATION_URL_ &&\n this.webex.config.meetings.experimental.enableAdhocMeetings &&\n this.webex.meetings.preferredWebexSite\n ) {\n return this.createAdhocSpaceMeeting(destinationType.destination);\n }\n\n const body = await MeetingInfoUtil.getRequestBody({...destinationType, password, captchaInfo});\n\n const options: any = {\n method: HTTP_VERBS.POST,\n body,\n };\n\n const directURI = await MeetingInfoUtil.getDirectMeetingInfoURI(destinationType);\n\n if (directURI) {\n options.uri = directURI;\n } else {\n options.service = WBXAPPAPI_SERVICE;\n options.resource = 'meetingInfo';\n }\n\n return this.webex\n .request(options)\n .then((response) => {\n Metrics.sendBehavioralMetric(BEHAVIORAL_METRICS.FETCH_MEETING_INFO_V1_SUCCESS);\n\n return response;\n })\n .catch((err) => {\n if (err?.statusCode === 403) {\n Metrics.sendBehavioralMetric(BEHAVIORAL_METRICS.VERIFY_PASSWORD_ERROR, {\n reason: err.message,\n stack: err.stack,\n });\n\n throw new MeetingInfoV2PasswordError(err.body?.code, err.body?.data?.meetingInfo);\n }\n if (err?.statusCode === 423) {\n Metrics.sendBehavioralMetric(BEHAVIORAL_METRICS.VERIFY_CAPTCHA_ERROR, {\n reason: err.message,\n stack: err.stack,\n });\n\n throw new MeetingInfoV2CaptchaError(err.body?.code, {\n captchaId: err.body.captchaID,\n verificationImageURL: err.body.verificationImageURL,\n verificationAudioURL: err.body.verificationAudioURL,\n refreshURL: err.body.refreshURL,\n });\n }\n\n Metrics.sendBehavioralMetric(BEHAVIORAL_METRICS.FETCH_MEETING_INFO_V1_FAILURE, {\n reason: err.message,\n stack: err.stack,\n });\n throw err;\n });\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AACA,IAAAC,QAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,WAAA,GAAAD,sBAAA,CAAAF,OAAA;AAEA,IAAAI,MAAA,GAAAF,sBAAA,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;IAAA;EAAA;EAAA,OAAApG,aAAA;AAAA;AAAAZ,OAAA,CAAA/C,OAAA,GAAA2D,aAAA"}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @class MeetingInfoRequest
|
|
3
|
-
*/
|
|
4
|
-
export default class MeetingInfoRequest {
|
|
5
|
-
webex: any;
|
|
6
|
-
/**
|
|
7
|
-
* Meeting Info Request Constructor
|
|
8
|
-
* @param {WebexSDK} webex
|
|
9
|
-
*/
|
|
10
|
-
constructor(webex: any);
|
|
11
|
-
/**
|
|
12
|
-
*
|
|
13
|
-
* @param {Object} options with format of {type: String, desintation: String}
|
|
14
|
-
* where type is PERSONAL_ROOM, SIP_URI, CONVERSATION_URL, and destination is userId, sipUri, conversationUrl respectively
|
|
15
|
-
* type can also be specified as an option and be of the list SIP_URI,MEETING_ID,LOCUS_ID,PERSONAL_ROOM,MEETING_LINK,ONE_ON_ONE,MEDIA_SIP_URI,CONVERSATION_URL,TEMP_SIP_URI
|
|
16
|
-
* with the desination matching
|
|
17
|
-
* @returns {Promise} returns a promise that resolves/rejects the result of the request
|
|
18
|
-
* @throws {Error} if the options are not valid and complete
|
|
19
|
-
* @memberof MeetingInfoRequest
|
|
20
|
-
*/
|
|
21
|
-
fetchMeetingInfo(options: any): any;
|
|
22
|
-
}
|
|
1
|
+
/**
|
|
2
|
+
* @class MeetingInfoRequest
|
|
3
|
+
*/
|
|
4
|
+
export default class MeetingInfoRequest {
|
|
5
|
+
webex: any;
|
|
6
|
+
/**
|
|
7
|
+
* Meeting Info Request Constructor
|
|
8
|
+
* @param {WebexSDK} webex
|
|
9
|
+
*/
|
|
10
|
+
constructor(webex: any);
|
|
11
|
+
/**
|
|
12
|
+
*
|
|
13
|
+
* @param {Object} options with format of {type: String, desintation: String}
|
|
14
|
+
* where type is PERSONAL_ROOM, SIP_URI, CONVERSATION_URL, and destination is userId, sipUri, conversationUrl respectively
|
|
15
|
+
* type can also be specified as an option and be of the list SIP_URI,MEETING_ID,LOCUS_ID,PERSONAL_ROOM,MEETING_LINK,ONE_ON_ONE,MEDIA_SIP_URI,CONVERSATION_URL,TEMP_SIP_URI
|
|
16
|
+
* with the desination matching
|
|
17
|
+
* @returns {Promise} returns a promise that resolves/rejects the result of the request
|
|
18
|
+
* @throws {Error} if the options are not valid and complete
|
|
19
|
+
* @memberof MeetingInfoRequest
|
|
20
|
+
*/
|
|
21
|
+
fetchMeetingInfo(options: any): any;
|
|
22
|
+
}
|
|
@@ -12,13 +12,13 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs2/he
|
|
|
12
12
|
var _constants = require("../constants");
|
|
13
13
|
var _parameter = _interopRequireDefault(require("../common/errors/parameter"));
|
|
14
14
|
var _util = _interopRequireDefault(require("./util"));
|
|
15
|
-
/**
|
|
16
|
-
* @class MeetingInfoRequest
|
|
15
|
+
/**
|
|
16
|
+
* @class MeetingInfoRequest
|
|
17
17
|
*/
|
|
18
18
|
var MeetingInfoRequest = /*#__PURE__*/function () {
|
|
19
|
-
/**
|
|
20
|
-
* Meeting Info Request Constructor
|
|
21
|
-
* @param {WebexSDK} webex
|
|
19
|
+
/**
|
|
20
|
+
* Meeting Info Request Constructor
|
|
21
|
+
* @param {WebexSDK} webex
|
|
22
22
|
*/
|
|
23
23
|
function MeetingInfoRequest(webex) {
|
|
24
24
|
(0, _classCallCheck2.default)(this, MeetingInfoRequest);
|
|
@@ -26,15 +26,15 @@ var MeetingInfoRequest = /*#__PURE__*/function () {
|
|
|
26
26
|
this.webex = webex;
|
|
27
27
|
}
|
|
28
28
|
|
|
29
|
-
/**
|
|
30
|
-
*
|
|
31
|
-
* @param {Object} options with format of {type: String, desintation: String}
|
|
32
|
-
* where type is PERSONAL_ROOM, SIP_URI, CONVERSATION_URL, and destination is userId, sipUri, conversationUrl respectively
|
|
33
|
-
* type can also be specified as an option and be of the list SIP_URI,MEETING_ID,LOCUS_ID,PERSONAL_ROOM,MEETING_LINK,ONE_ON_ONE,MEDIA_SIP_URI,CONVERSATION_URL,TEMP_SIP_URI
|
|
34
|
-
* with the desination matching
|
|
35
|
-
* @returns {Promise} returns a promise that resolves/rejects the result of the request
|
|
36
|
-
* @throws {Error} if the options are not valid and complete
|
|
37
|
-
* @memberof MeetingInfoRequest
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @param {Object} options with format of {type: String, desintation: String}
|
|
32
|
+
* where type is PERSONAL_ROOM, SIP_URI, CONVERSATION_URL, and destination is userId, sipUri, conversationUrl respectively
|
|
33
|
+
* type can also be specified as an option and be of the list SIP_URI,MEETING_ID,LOCUS_ID,PERSONAL_ROOM,MEETING_LINK,ONE_ON_ONE,MEDIA_SIP_URI,CONVERSATION_URL,TEMP_SIP_URI
|
|
34
|
+
* with the desination matching
|
|
35
|
+
* @returns {Promise} returns a promise that resolves/rejects the result of the request
|
|
36
|
+
* @throws {Error} if the options are not valid and complete
|
|
37
|
+
* @memberof MeetingInfoRequest
|
|
38
38
|
*/
|
|
39
39
|
(0, _createClass2.default)(MeetingInfoRequest, [{
|
|
40
40
|
key: "fetchMeetingInfo",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_constants","require","_parameter","_interopRequireDefault","_util","MeetingInfoRequest","webex","_classCallCheck2","default","_defineProperty2","_createClass2","key","value","fetchMeetingInfo","options","type","destination","ParameterError","resourceUrl","MeetingInfoUtil","getResourceUrl","requestParams","getRequestParams","API","LOCUS","request","exports"],"sources":["request.ts"],"sourcesContent":["import {API} from '../constants';\
|
|
1
|
+
{"version":3,"names":["_constants","require","_parameter","_interopRequireDefault","_util","MeetingInfoRequest","webex","_classCallCheck2","default","_defineProperty2","_createClass2","key","value","fetchMeetingInfo","options","type","destination","ParameterError","resourceUrl","MeetingInfoUtil","getResourceUrl","requestParams","getRequestParams","API","LOCUS","request","exports"],"sources":["request.ts"],"sourcesContent":["import {API} from '../constants';\nimport ParameterError from '../common/errors/parameter';\n\nimport MeetingInfoUtil from './util';\n\n/**\n * @class MeetingInfoRequest\n */\nexport default class MeetingInfoRequest {\n webex: any;\n\n /**\n * Meeting Info Request Constructor\n * @param {WebexSDK} webex\n */\n constructor(webex: any) {\n this.webex = webex;\n }\n\n /**\n *\n * @param {Object} options with format of {type: String, desintation: String}\n * where type is PERSONAL_ROOM, SIP_URI, CONVERSATION_URL, and destination is userId, sipUri, conversationUrl respectively\n * type can also be specified as an option and be of the list SIP_URI,MEETING_ID,LOCUS_ID,PERSONAL_ROOM,MEETING_LINK,ONE_ON_ONE,MEDIA_SIP_URI,CONVERSATION_URL,TEMP_SIP_URI\n * with the desination matching\n * @returns {Promise} returns a promise that resolves/rejects the result of the request\n * @throws {Error} if the options are not valid and complete\n * @memberof MeetingInfoRequest\n */\n fetchMeetingInfo(options: any) {\n if (!options || !options.type || !options.destination) {\n throw new ParameterError(\n 'MeetingInfo should be fetched with a type and destination specified, see list of valid types and their corresponding values in constants'\n );\n }\n const resourceUrl = MeetingInfoUtil.getResourceUrl(options.type, options.destination);\n const requestParams = MeetingInfoUtil.getRequestParams(\n resourceUrl,\n options.type,\n options.destination,\n API.LOCUS\n );\n\n return this.webex.request(requestParams);\n }\n}\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AACA,IAAAC,UAAA,GAAAC,sBAAA,CAAAF,OAAA;AAEA,IAAAG,KAAA,GAAAD,sBAAA,CAAAF,OAAA;AAEA;AACA;AACA;AAFA,IAGqBI,kBAAkB;EAGrC;AACF;AACA;AACA;EACE,SAAAA,mBAAYC,KAAU,EAAE;IAAA,IAAAC,gBAAA,CAAAC,OAAA,QAAAH,kBAAA;IAAA,IAAAI,gBAAA,CAAAD,OAAA;IACtB,IAAI,CAACF,KAAK,GAAGA,KAAK;EACpB;;EAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EATE,IAAAI,aAAA,CAAAF,OAAA,EAAAH,kBAAA;IAAAM,GAAA;IAAAC,KAAA,EAUA,SAAAC,iBAAiBC,OAAY,EAAE;MAC7B,IAAI,CAACA,OAAO,IAAI,CAACA,OAAO,CAACC,IAAI,IAAI,CAACD,OAAO,CAACE,WAAW,EAAE;QACrD,MAAM,IAAIC,kBAAc,CACtB,0IAA0I,CAC3I;MACH;MACA,IAAMC,WAAW,GAAGC,aAAe,CAACC,cAAc,CAACN,OAAO,CAACC,IAAI,EAAED,OAAO,CAACE,WAAW,CAAC;MACrF,IAAMK,aAAa,GAAGF,aAAe,CAACG,gBAAgB,CACpDJ,WAAW,EACXJ,OAAO,CAACC,IAAI,EACZD,OAAO,CAACE,WAAW,EACnBO,cAAG,CAACC,KAAK,CACV;MAED,OAAO,IAAI,CAAClB,KAAK,CAACmB,OAAO,CAACJ,aAAa,CAAC;IAC1C;EAAC;EAAA,OAAAhB,kBAAA;AAAA;AAAAqB,OAAA,CAAAlB,OAAA,GAAAH,kBAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const MeetingInfoUtil: any;
|
|
2
|
-
export default MeetingInfoUtil;
|
|
1
|
+
declare const MeetingInfoUtil: any;
|
|
2
|
+
export default MeetingInfoUtil;
|
|
@@ -45,10 +45,10 @@ MeetingInfoUtil.getParsedUrl = function (link) {
|
|
|
45
45
|
}
|
|
46
46
|
};
|
|
47
47
|
|
|
48
|
-
/**
|
|
49
|
-
* Helper function to check if a string matches a known meeting link pattern
|
|
50
|
-
* @param {String} value string to parse and see if it matches a meeting link
|
|
51
|
-
* @returns {Boolean}
|
|
48
|
+
/**
|
|
49
|
+
* Helper function to check if a string matches a known meeting link pattern
|
|
50
|
+
* @param {String} value string to parse and see if it matches a meeting link
|
|
51
|
+
* @returns {Boolean}
|
|
52
52
|
*/
|
|
53
53
|
MeetingInfoUtil.isMeetingLink = function (value) {
|
|
54
54
|
var parsedUrl = MeetingInfoUtil.getParsedUrl(value);
|
|
@@ -239,11 +239,11 @@ MeetingInfoUtil.generateOptions = /*#__PURE__*/function () {
|
|
|
239
239
|
};
|
|
240
240
|
}();
|
|
241
241
|
|
|
242
|
-
/**
|
|
243
|
-
* Helper function to build up a correct locus url depending on the value passed
|
|
244
|
-
* @param {String} type One of [SIP_URI, PERSONAL_ROOM, MEETING_ID, CONVERSATION_URL, LOCUS_ID, MEETING_LINK]
|
|
245
|
-
* @param {Object} value ?? value.value
|
|
246
|
-
* @returns {Object} returns an object with {resource, method}
|
|
242
|
+
/**
|
|
243
|
+
* Helper function to build up a correct locus url depending on the value passed
|
|
244
|
+
* @param {String} type One of [SIP_URI, PERSONAL_ROOM, MEETING_ID, CONVERSATION_URL, LOCUS_ID, MEETING_LINK]
|
|
245
|
+
* @param {Object} value ?? value.value
|
|
246
|
+
* @returns {Object} returns an object with {resource, method}
|
|
247
247
|
*/
|
|
248
248
|
MeetingInfoUtil.getResourceUrl = function (type, value) {
|
|
249
249
|
var resource = "/".concat(_constants.LOCI, "/").concat(_constants.MEETINGINFO);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_url","_interopRequireDefault","require","_btoa","_common","_parameter","_loggerProxy","_constants","MeetingInfoUtil","extractDestination","destination","type","dest","_LOCUS_ID_","url","ParameterError","getParsedUrl","link","parsedUrl","parse","protocol","concat","HTTPS_PROTOCOL","error","LoggerProxy","logger","warn","isMeetingLink","value","hostNameBool","hostname","includes","WEBEX_DOT_COM","pathNameBool","pathname","MEET","MEET_M","JOIN","isConversationUrl","webex","clusterId","internal","services","getClusterId","endsWith","CONVERSATION_SERVICE","convertLinkToSip","user","userIndex","lastIndexOf","substring","company","companyIndex","replace","WWW_DOT","isSipUri","sipString","sipUri","DIALER_REGEX","SIP_ADDRESS","exec","isPhoneNumber","phoneNumber","isValidNumber","PHONE_NUMBER","test","getHydraId","_deconstructHydraId","deconstructHydraId","id","cluster","UUID_REG","_ROOM_","room","_PEOPLE_","people","getSipUriFromHydraPersonId","get","then","res","emails","length","catch","err","generateOptions","_ref","_asyncToGenerator2","default","_regenerator","mark","_callee","from","options","hydraId","serviceUrl","wrap","_callee$","_context","prev","next","abrupt","_MEETING_LINK_","_SIP_URI_","_CONVERSATION_URL_","wasHydraPerson","_promise","resolve","waitForCatalog","getServiceUrlFromClusterId","t0","stop","_x","apply","arguments","getResourceUrl","resource","LOCI","MEETINGINFO","method","HTTP_VERBS","GET","uri","_PERSONAL_ROOM_","_MEETING_ID_","encodeURIComponent","TYPE","USE_URI_LOOKUP_FALSE","PUT","btoa","getRequestParams","resourceOptions","api","requestParams","ALTERNATE_REDIRECT_TRUE","body","lookupType","_default","exports"],"sources":["util.ts"],"sourcesContent":["import url from 'url';\r\n\r\nimport btoa from 'btoa';\r\n// @ts-ignore\r\nimport {deconstructHydraId} from '@webex/common';\r\n\r\nimport ParameterError from '../common/errors/parameter';\r\nimport LoggerProxy from '../common/logs/logger-proxy';\r\n\r\nimport {\r\n _SIP_URI_,\r\n _PERSONAL_ROOM_,\r\n _MEETING_ID_,\r\n _CONVERSATION_URL_,\r\n _LOCUS_ID_,\r\n _MEETING_LINK_,\r\n _PEOPLE_,\r\n _ROOM_,\r\n HTTP_VERBS,\r\n USE_URI_LOOKUP_FALSE,\r\n TYPE,\r\n LOCI,\r\n MEETINGINFO,\r\n ALTERNATE_REDIRECT_TRUE,\r\n DIALER_REGEX,\r\n WEBEX_DOT_COM,\r\n CONVERSATION_SERVICE,\r\n WWW_DOT,\r\n JOIN,\r\n MEET,\r\n MEET_M,\r\n HTTPS_PROTOCOL,\r\n UUID_REG,\r\n} from '../constants';\r\n\r\nconst MeetingInfoUtil: any = {};\r\n\r\nMeetingInfoUtil.extractDestination = (destination, type) => {\r\n let dest = destination;\r\n\r\n if (type === _LOCUS_ID_) {\r\n if (!(destination && destination.url)) {\r\n throw new ParameterError('You cannot create a meeting by locus without a locus.url defined');\r\n }\r\n dest = destination.url;\r\n }\r\n\r\n return dest;\r\n};\r\n\r\nMeetingInfoUtil.getParsedUrl = (link) => {\r\n try {\r\n let parsedUrl = url.parse(link);\r\n\r\n if (!parsedUrl) {\r\n return false;\r\n }\r\n // hack for links such as <company>.webex.com/meet/<user> without a protocol\r\n if (!parsedUrl.protocol) {\r\n parsedUrl = url.parse(`${HTTPS_PROTOCOL}${link}`);\r\n }\r\n\r\n return parsedUrl;\r\n } catch (error) {\r\n LoggerProxy.logger.warn(\r\n `Meeting-info:util#getParsedUrl --> unable to parse the URL, error: ${error}`\r\n );\r\n\r\n return null;\r\n }\r\n};\r\n\r\n/**\r\n * Helper function to check if a string matches a known meeting link pattern\r\n * @param {String} value string to parse and see if it matches a meeting link\r\n * @returns {Boolean}\r\n */\r\nMeetingInfoUtil.isMeetingLink = (value: string) => {\r\n const parsedUrl = MeetingInfoUtil.getParsedUrl(value);\r\n const hostNameBool = parsedUrl.hostname && parsedUrl.hostname.includes(WEBEX_DOT_COM);\r\n const pathNameBool =\r\n parsedUrl.pathname &&\r\n (parsedUrl.pathname.includes(`/${MEET}`) ||\r\n parsedUrl.pathname.includes(`/${MEET_M}`) ||\r\n parsedUrl.pathname.includes(`/${JOIN}`));\r\n\r\n return hostNameBool && pathNameBool;\r\n};\r\n\r\nMeetingInfoUtil.isConversationUrl = (value, webex) => {\r\n const clusterId = webex.internal.services.getClusterId(value);\r\n\r\n if (clusterId) {\r\n return clusterId.endsWith(CONVERSATION_SERVICE);\r\n }\r\n\r\n return false;\r\n};\r\n\r\nMeetingInfoUtil.convertLinkToSip = (value) => {\r\n const parsedUrl = MeetingInfoUtil.getParsedUrl(value);\r\n\r\n if (!parsedUrl) {\r\n return null;\r\n }\r\n let user;\r\n\r\n if (parsedUrl.pathname) {\r\n const userIndex = parsedUrl.pathname.lastIndexOf('/');\r\n\r\n user = parsedUrl.pathname.substring(userIndex + 1);\r\n }\r\n if (!user) {\r\n return null;\r\n }\r\n let company;\r\n\r\n if (parsedUrl.hostname) {\r\n const companyIndex = parsedUrl.hostname.lastIndexOf(`.${WEBEX_DOT_COM}`);\r\n\r\n company = parsedUrl.hostname.substring(0, companyIndex).replace(WWW_DOT, '');\r\n }\r\n if (!company) {\r\n return null;\r\n }\r\n\r\n return `${user}@${company}.${WEBEX_DOT_COM}`;\r\n};\r\n\r\nMeetingInfoUtil.isSipUri = (sipString) => {\r\n // TODO: lets remove regex from this equation and user URI matchers and such\r\n // have not found a great sip uri parser library as of now\r\n const sipUri = DIALER_REGEX.SIP_ADDRESS.exec(sipString);\r\n\r\n return sipUri;\r\n};\r\n\r\nMeetingInfoUtil.isPhoneNumber = (phoneNumber) => {\r\n const isValidNumber = DIALER_REGEX.PHONE_NUMBER.test(phoneNumber);\r\n\r\n return isValidNumber;\r\n};\r\n\r\nMeetingInfoUtil.getHydraId = (destination) => {\r\n const {type, id, cluster} = deconstructHydraId(destination);\r\n\r\n if (id && UUID_REG.test(id)) {\r\n if (type === _ROOM_) {\r\n return {room: true, destination: id, cluster};\r\n }\r\n if (type === _PEOPLE_) {\r\n return {people: true, destination: id, cluster};\r\n }\r\n\r\n return {};\r\n }\r\n\r\n return {};\r\n};\r\n\r\nMeetingInfoUtil.getSipUriFromHydraPersonId = (destination, webex) =>\r\n webex.people\r\n .get(destination)\r\n .then((res) => {\r\n if (res.emails && res.emails.length) {\r\n return res.emails[0];\r\n }\r\n throw new ParameterError('Hydra Id Lookup was an invalid hydra person id.');\r\n })\r\n .catch((err) => {\r\n LoggerProxy.logger.error(\r\n `Meeting-info:util#MeetingInfoUtil.getSipUriFromHydraPersonId --> getSipUriFromHydraPersonId ${err} `\r\n );\r\n throw err;\r\n });\r\n\r\nMeetingInfoUtil.generateOptions = async (from) => {\r\n const {destination, type, webex} = from;\r\n\r\n if (type) {\r\n return {\r\n destination,\r\n type,\r\n };\r\n }\r\n const options: any = {};\r\n const hydraId = MeetingInfoUtil.getHydraId(destination);\r\n\r\n if (MeetingInfoUtil.isMeetingLink(destination)) {\r\n LoggerProxy.logger.warn(\r\n 'Meeting-info:util#generateOptions --> WARN, use of Meeting Link is deprecated, please use a SIP URI instead'\r\n );\r\n\r\n options.type = _MEETING_LINK_;\r\n options.destination = destination;\r\n } else if (MeetingInfoUtil.isSipUri(destination)) {\r\n options.type = _SIP_URI_;\r\n options.destination = destination;\r\n } else if (MeetingInfoUtil.isPhoneNumber(destination)) {\r\n options.type = _SIP_URI_;\r\n options.destination = destination;\r\n } else if (MeetingInfoUtil.isConversationUrl(destination, webex)) {\r\n options.type = _CONVERSATION_URL_;\r\n options.destination = destination;\r\n } else if (hydraId.people) {\r\n options.type = _SIP_URI_;\r\n\r\n return MeetingInfoUtil.getSipUriFromHydraPersonId(hydraId.destination, webex).then((res) => {\r\n options.destination = res;\r\n\r\n // Since hydra person ids require a unique case in which they are\r\n // entirely converted to a SIP URI, we need to set a flag for detecting\r\n // this type of destination.\r\n options.wasHydraPerson = true;\r\n\r\n return Promise.resolve(options);\r\n });\r\n } else if (hydraId.room) {\r\n options.type = _CONVERSATION_URL_;\r\n try {\r\n await webex.internal.services.waitForCatalog('postauth');\r\n\r\n const serviceUrl = webex.internal.services.getServiceUrlFromClusterId(\r\n {\r\n cluster: hydraId.cluster,\r\n },\r\n webex\r\n );\r\n\r\n options.destination = hydraId.destination\r\n ? `${serviceUrl}/conversations/${hydraId.destination}`\r\n : serviceUrl;\r\n } catch (e) {\r\n LoggerProxy.logger.error(`Meeting-info:util#generateOptions --> ${e}`);\r\n throw e;\r\n }\r\n } else {\r\n throw new ParameterError(\r\n 'MeetingInfo is fetched with meeting link, sip uri, phone number, hydra room id, hydra people id, or a conversation url.'\r\n );\r\n }\r\n\r\n return Promise.resolve(options);\r\n};\r\n\r\n/**\r\n * Helper function to build up a correct locus url depending on the value passed\r\n * @param {String} type One of [SIP_URI, PERSONAL_ROOM, MEETING_ID, CONVERSATION_URL, LOCUS_ID, MEETING_LINK]\r\n * @param {Object} value ?? value.value\r\n * @returns {Object} returns an object with {resource, method}\r\n */\r\nMeetingInfoUtil.getResourceUrl = (type: string, value: any) => {\r\n let resource = `/${LOCI}/${MEETINGINFO}`;\r\n let method = HTTP_VERBS.GET;\r\n let uri = null;\r\n\r\n switch (type) {\r\n case _SIP_URI_:\r\n case _PERSONAL_ROOM_:\r\n case _MEETING_ID_:\r\n resource = `/${LOCI}/${MEETINGINFO}/${encodeURIComponent(\r\n value\r\n )}?${TYPE}=${type}&${USE_URI_LOOKUP_FALSE}`;\r\n break;\r\n case _CONVERSATION_URL_:\r\n method = HTTP_VERBS.PUT;\r\n break;\r\n case _LOCUS_ID_:\r\n uri = `${value}/${MEETINGINFO}`;\r\n method = HTTP_VERBS.PUT;\r\n break;\r\n case _MEETING_LINK_:\r\n resource = `$/${LOCI}/${MEETINGINFO}/${btoa(\r\n value\r\n )}?${TYPE}=${_MEETING_LINK_}&${USE_URI_LOOKUP_FALSE}`;\r\n break;\r\n default:\r\n }\r\n\r\n return {\r\n uri,\r\n resource,\r\n method,\r\n };\r\n};\r\n\r\nMeetingInfoUtil.getRequestParams = (resourceOptions, type, value, api) => {\r\n let requestParams: any = {\r\n method: resourceOptions.method,\r\n api,\r\n resource: resourceOptions.resource,\r\n };\r\n\r\n if (resourceOptions.method === HTTP_VERBS.GET) {\r\n // for handling URL redirections\r\n requestParams.resource = requestParams.resource.concat(`&${ALTERNATE_REDIRECT_TRUE}`);\r\n } else if (type !== _LOCUS_ID_) {\r\n // locus id check is a PUT not sure why\r\n requestParams.resource = requestParams.resource.concat(`?${ALTERNATE_REDIRECT_TRUE}`);\r\n requestParams.body = {\r\n value,\r\n lookupType: type,\r\n };\r\n } else if (type === _LOCUS_ID_) {\r\n requestParams = {\r\n method: resourceOptions.method,\r\n uri: resourceOptions.uri,\r\n };\r\n }\r\n\r\n return requestParams;\r\n};\r\n\r\nexport default MeetingInfoUtil;\r\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,IAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,KAAA,GAAAF,sBAAA,CAAAC,OAAA;AAEA,IAAAE,OAAA,GAAAF,OAAA;AAEA,IAAAG,UAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,YAAA,GAAAL,sBAAA,CAAAC,OAAA;AAEA,IAAA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EiB,KAAK,EAAEuG,GAAG,EAAK;EACxE,IAAIC,aAAkB,GAAG;IACvBd,MAAM,EAAEY,eAAe,CAACZ,MAAM;IAC9Ba,GAAG,EAAHA,GAAG;IACHhB,QAAQ,EAAEe,eAAe,CAACf;EAC5B,CAAC;EAED,IAAIe,eAAe,CAACZ,MAAM,KAAKC,qBAAU,CAACC,GAAG,EAAE;IAC7C;IACAY,aAAa,CAACjB,QAAQ,GAAGiB,aAAa,CAACjB,QAAQ,CAAC9F,MAAM,KAAAA,MAAA,CAAKgH,kCAAuB,EAAG;EACvF,CAAC,MAAM,IAAI1H,IAAI,KAAKE,qBAAU,EAAE;IAC9B;IACAuH,aAAa,CAACjB,QAAQ,GAAGiB,aAAa,CAACjB,QAAQ,CAAC9F,MAAM,KAAAA,MAAA,CAAKgH,kCAAuB,EAAG;IACrFD,aAAa,CAACE,IAAI,GAAG;MACnB1G,KAAK,EAALA,KAAK;MACL2G,UAAU,EAAE5H;IACd,CAAC;EACH,CAAC,MAAM,IAAIA,IAAI,KAAKE,qBAAU,EAAE;IAC9BuH,aAAa,GAAG;MACdd,MAAM,EAAEY,eAAe,CAACZ,MAAM;MAC9BG,GAAG,EAAES,eAAe,CAACT;IACvB,CAAC;EACH;EAEA,OAAOW,aAAa;AACtB,CAAC;AAAC,IAAAI,QAAA,GAEahI,eAAe;AAAAiI,OAAA,CAAAlD,OAAA,GAAAiD,QAAA"}
|
|
1
|
+
{"version":3,"names":["_url","_interopRequireDefault","require","_btoa","_common","_parameter","_loggerProxy","_constants","MeetingInfoUtil","extractDestination","destination","type","dest","_LOCUS_ID_","url","ParameterError","getParsedUrl","link","parsedUrl","parse","protocol","concat","HTTPS_PROTOCOL","error","LoggerProxy","logger","warn","isMeetingLink","value","hostNameBool","hostname","includes","WEBEX_DOT_COM","pathNameBool","pathname","MEET","MEET_M","JOIN","isConversationUrl","webex","clusterId","internal","services","getClusterId","endsWith","CONVERSATION_SERVICE","convertLinkToSip","user","userIndex","lastIndexOf","substring","company","companyIndex","replace","WWW_DOT","isSipUri","sipString","sipUri","DIALER_REGEX","SIP_ADDRESS","exec","isPhoneNumber","phoneNumber","isValidNumber","PHONE_NUMBER","test","getHydraId","_deconstructHydraId","deconstructHydraId","id","cluster","UUID_REG","_ROOM_","room","_PEOPLE_","people","getSipUriFromHydraPersonId","get","then","res","emails","length","catch","err","generateOptions","_ref","_asyncToGenerator2","default","_regenerator","mark","_callee","from","options","hydraId","serviceUrl","wrap","_callee$","_context","prev","next","abrupt","_MEETING_LINK_","_SIP_URI_","_CONVERSATION_URL_","wasHydraPerson","_promise","resolve","waitForCatalog","getServiceUrlFromClusterId","t0","stop","_x","apply","arguments","getResourceUrl","resource","LOCI","MEETINGINFO","method","HTTP_VERBS","GET","uri","_PERSONAL_ROOM_","_MEETING_ID_","encodeURIComponent","TYPE","USE_URI_LOOKUP_FALSE","PUT","btoa","getRequestParams","resourceOptions","api","requestParams","ALTERNATE_REDIRECT_TRUE","body","lookupType","_default","exports"],"sources":["util.ts"],"sourcesContent":["import url from 'url';\n\nimport btoa from 'btoa';\n// @ts-ignore\nimport {deconstructHydraId} from '@webex/common';\n\nimport ParameterError from '../common/errors/parameter';\nimport LoggerProxy from '../common/logs/logger-proxy';\n\nimport {\n _SIP_URI_,\n _PERSONAL_ROOM_,\n _MEETING_ID_,\n _CONVERSATION_URL_,\n _LOCUS_ID_,\n _MEETING_LINK_,\n _PEOPLE_,\n _ROOM_,\n HTTP_VERBS,\n USE_URI_LOOKUP_FALSE,\n TYPE,\n LOCI,\n MEETINGINFO,\n ALTERNATE_REDIRECT_TRUE,\n DIALER_REGEX,\n WEBEX_DOT_COM,\n CONVERSATION_SERVICE,\n WWW_DOT,\n JOIN,\n MEET,\n MEET_M,\n HTTPS_PROTOCOL,\n UUID_REG,\n} from '../constants';\n\nconst MeetingInfoUtil: any = {};\n\nMeetingInfoUtil.extractDestination = (destination, type) => {\n let dest = destination;\n\n if (type === _LOCUS_ID_) {\n if (!(destination && destination.url)) {\n throw new ParameterError('You cannot create a meeting by locus without a locus.url defined');\n }\n dest = destination.url;\n }\n\n return dest;\n};\n\nMeetingInfoUtil.getParsedUrl = (link) => {\n try {\n let parsedUrl = url.parse(link);\n\n if (!parsedUrl) {\n return false;\n }\n // hack for links such as <company>.webex.com/meet/<user> without a protocol\n if (!parsedUrl.protocol) {\n parsedUrl = url.parse(`${HTTPS_PROTOCOL}${link}`);\n }\n\n return parsedUrl;\n } catch (error) {\n LoggerProxy.logger.warn(\n `Meeting-info:util#getParsedUrl --> unable to parse the URL, error: ${error}`\n );\n\n return null;\n }\n};\n\n/**\n * Helper function to check if a string matches a known meeting link pattern\n * @param {String} value string to parse and see if it matches a meeting link\n * @returns {Boolean}\n */\nMeetingInfoUtil.isMeetingLink = (value: string) => {\n const parsedUrl = MeetingInfoUtil.getParsedUrl(value);\n const hostNameBool = parsedUrl.hostname && parsedUrl.hostname.includes(WEBEX_DOT_COM);\n const pathNameBool =\n parsedUrl.pathname &&\n (parsedUrl.pathname.includes(`/${MEET}`) ||\n parsedUrl.pathname.includes(`/${MEET_M}`) ||\n parsedUrl.pathname.includes(`/${JOIN}`));\n\n return hostNameBool && pathNameBool;\n};\n\nMeetingInfoUtil.isConversationUrl = (value, webex) => {\n const clusterId = webex.internal.services.getClusterId(value);\n\n if (clusterId) {\n return clusterId.endsWith(CONVERSATION_SERVICE);\n }\n\n return false;\n};\n\nMeetingInfoUtil.convertLinkToSip = (value) => {\n const parsedUrl = MeetingInfoUtil.getParsedUrl(value);\n\n if (!parsedUrl) {\n return null;\n }\n let user;\n\n if (parsedUrl.pathname) {\n const userIndex = parsedUrl.pathname.lastIndexOf('/');\n\n user = parsedUrl.pathname.substring(userIndex + 1);\n }\n if (!user) {\n return null;\n }\n let company;\n\n if (parsedUrl.hostname) {\n const companyIndex = parsedUrl.hostname.lastIndexOf(`.${WEBEX_DOT_COM}`);\n\n company = parsedUrl.hostname.substring(0, companyIndex).replace(WWW_DOT, '');\n }\n if (!company) {\n return null;\n }\n\n return `${user}@${company}.${WEBEX_DOT_COM}`;\n};\n\nMeetingInfoUtil.isSipUri = (sipString) => {\n // TODO: lets remove regex from this equation and user URI matchers and such\n // have not found a great sip uri parser library as of now\n const sipUri = DIALER_REGEX.SIP_ADDRESS.exec(sipString);\n\n return sipUri;\n};\n\nMeetingInfoUtil.isPhoneNumber = (phoneNumber) => {\n const isValidNumber = DIALER_REGEX.PHONE_NUMBER.test(phoneNumber);\n\n return isValidNumber;\n};\n\nMeetingInfoUtil.getHydraId = (destination) => {\n const {type, id, cluster} = deconstructHydraId(destination);\n\n if (id && UUID_REG.test(id)) {\n if (type === _ROOM_) {\n return {room: true, destination: id, cluster};\n }\n if (type === _PEOPLE_) {\n return {people: true, destination: id, cluster};\n }\n\n return {};\n }\n\n return {};\n};\n\nMeetingInfoUtil.getSipUriFromHydraPersonId = (destination, webex) =>\n webex.people\n .get(destination)\n .then((res) => {\n if (res.emails && res.emails.length) {\n return res.emails[0];\n }\n throw new ParameterError('Hydra Id Lookup was an invalid hydra person id.');\n })\n .catch((err) => {\n LoggerProxy.logger.error(\n `Meeting-info:util#MeetingInfoUtil.getSipUriFromHydraPersonId --> getSipUriFromHydraPersonId ${err} `\n );\n throw err;\n });\n\nMeetingInfoUtil.generateOptions = async (from) => {\n const {destination, type, webex} = from;\n\n if (type) {\n return {\n destination,\n type,\n };\n }\n const options: any = {};\n const hydraId = MeetingInfoUtil.getHydraId(destination);\n\n if (MeetingInfoUtil.isMeetingLink(destination)) {\n LoggerProxy.logger.warn(\n 'Meeting-info:util#generateOptions --> WARN, use of Meeting Link is deprecated, please use a SIP URI instead'\n );\n\n options.type = _MEETING_LINK_;\n options.destination = destination;\n } else if (MeetingInfoUtil.isSipUri(destination)) {\n options.type = _SIP_URI_;\n options.destination = destination;\n } else if (MeetingInfoUtil.isPhoneNumber(destination)) {\n options.type = _SIP_URI_;\n options.destination = destination;\n } else if (MeetingInfoUtil.isConversationUrl(destination, webex)) {\n options.type = _CONVERSATION_URL_;\n options.destination = destination;\n } else if (hydraId.people) {\n options.type = _SIP_URI_;\n\n return MeetingInfoUtil.getSipUriFromHydraPersonId(hydraId.destination, webex).then((res) => {\n options.destination = res;\n\n // Since hydra person ids require a unique case in which they are\n // entirely converted to a SIP URI, we need to set a flag for detecting\n // this type of destination.\n options.wasHydraPerson = true;\n\n return Promise.resolve(options);\n });\n } else if (hydraId.room) {\n options.type = _CONVERSATION_URL_;\n try {\n await webex.internal.services.waitForCatalog('postauth');\n\n const serviceUrl = webex.internal.services.getServiceUrlFromClusterId(\n {\n cluster: hydraId.cluster,\n },\n webex\n );\n\n options.destination = hydraId.destination\n ? `${serviceUrl}/conversations/${hydraId.destination}`\n : serviceUrl;\n } catch (e) {\n LoggerProxy.logger.error(`Meeting-info:util#generateOptions --> ${e}`);\n throw e;\n }\n } else {\n throw new ParameterError(\n 'MeetingInfo is fetched with meeting link, sip uri, phone number, hydra room id, hydra people id, or a conversation url.'\n );\n }\n\n return Promise.resolve(options);\n};\n\n/**\n * Helper function to build up a correct locus url depending on the value passed\n * @param {String} type One of [SIP_URI, PERSONAL_ROOM, MEETING_ID, CONVERSATION_URL, LOCUS_ID, MEETING_LINK]\n * @param {Object} value ?? value.value\n * @returns {Object} returns an object with {resource, method}\n */\nMeetingInfoUtil.getResourceUrl = (type: string, value: any) => {\n let resource = `/${LOCI}/${MEETINGINFO}`;\n let method = HTTP_VERBS.GET;\n let uri = null;\n\n switch (type) {\n case _SIP_URI_:\n case _PERSONAL_ROOM_:\n case _MEETING_ID_:\n resource = `/${LOCI}/${MEETINGINFO}/${encodeURIComponent(\n value\n )}?${TYPE}=${type}&${USE_URI_LOOKUP_FALSE}`;\n break;\n case _CONVERSATION_URL_:\n method = HTTP_VERBS.PUT;\n break;\n case _LOCUS_ID_:\n uri = `${value}/${MEETINGINFO}`;\n method = HTTP_VERBS.PUT;\n break;\n case _MEETING_LINK_:\n resource = `$/${LOCI}/${MEETINGINFO}/${btoa(\n value\n )}?${TYPE}=${_MEETING_LINK_}&${USE_URI_LOOKUP_FALSE}`;\n break;\n default:\n }\n\n return {\n uri,\n resource,\n method,\n };\n};\n\nMeetingInfoUtil.getRequestParams = (resourceOptions, type, value, api) => {\n let requestParams: any = {\n method: resourceOptions.method,\n api,\n resource: resourceOptions.resource,\n };\n\n if (resourceOptions.method === HTTP_VERBS.GET) {\n // for handling URL redirections\n requestParams.resource = requestParams.resource.concat(`&${ALTERNATE_REDIRECT_TRUE}`);\n } else if (type !== _LOCUS_ID_) {\n // locus id check is a PUT not sure why\n requestParams.resource = requestParams.resource.concat(`?${ALTERNATE_REDIRECT_TRUE}`);\n requestParams.body = {\n value,\n lookupType: type,\n };\n } else if (type === _LOCUS_ID_) {\n requestParams = {\n method: resourceOptions.method,\n uri: resourceOptions.uri,\n };\n }\n\n return requestParams;\n};\n\nexport default MeetingInfoUtil;\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,IAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,KAAA,GAAAF,sBAAA,CAAAC,OAAA;AAEA,IAAAE,OAAA,GAAAF,OAAA;AAEA,IAAAG,UAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,YAAA,GAAAL,sBAAA,CAAAC,OAAA;AAEA,IAAAK,UAAA,GAAAL,OAAA;AANA;;AAgCA,IAAMM,eAAoB,GAAG,CAAC,CAAC;AAE/BA,eAAe,CAACC,kBAAkB,GAAG,UAACC,WAAW,EAAEC,IAAI,EAAK;EAC1D,IAAIC,IAAI,GAAGF,WAAW;EAEtB,IAAIC,IAAI,KAAKE,qBAAU,EAAE;IACvB,IAAI,EAAEH,WAAW,IAAIA,WAAW,CAACI,GAAG,CAAC,EAAE;MACrC,MAAM,IAAIC,kBAAc,CAAC,kEAAkE,CAAC;IAC9F;IACAH,IAAI,GAAGF,WAAW,CAACI,GAAG;EACxB;EAEA,OAAOF,IAAI;AACb,CAAC;AAEDJ,eAAe,CAACQ,YAAY,GAAG,UAACC,IAAI,EAAK;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a,CAACjB,QAAQ,CAAC9F,MAAM,KAAAA,MAAA,CAAKgH,kCAAuB,EAAG;IACrFD,aAAa,CAACE,IAAI,GAAG;MACnB1G,KAAK,EAALA,KAAK;MACL2G,UAAU,EAAE5H;IACd,CAAC;EACH,CAAC,MAAM,IAAIA,IAAI,KAAKE,qBAAU,EAAE;IAC9BuH,aAAa,GAAG;MACdd,MAAM,EAAEY,eAAe,CAACZ,MAAM;MAC9BG,GAAG,EAAES,eAAe,CAACT;IACvB,CAAC;EACH;EAEA,OAAOW,aAAa;AACtB,CAAC;AAAC,IAAAI,QAAA,GAEahI,eAAe;AAAAiI,OAAA,CAAAlD,OAAA,GAAAiD,QAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const MeetingInfoUtil: any;
|
|
2
|
-
export default MeetingInfoUtil;
|
|
1
|
+
declare const MeetingInfoUtil: any;
|
|
2
|
+
export default MeetingInfoUtil;
|
|
@@ -34,10 +34,10 @@ MeetingInfoUtil.getParsedUrl = function (link) {
|
|
|
34
34
|
}
|
|
35
35
|
};
|
|
36
36
|
|
|
37
|
-
/**
|
|
38
|
-
* Helper function to check if a string matches a known meeting link pattern
|
|
39
|
-
* @param {String} value string to parse and see if it matches a meeting link
|
|
40
|
-
* @returns {Boolean}
|
|
37
|
+
/**
|
|
38
|
+
* Helper function to check if a string matches a known meeting link pattern
|
|
39
|
+
* @param {String} value string to parse and see if it matches a meeting link
|
|
40
|
+
* @returns {Boolean}
|
|
41
41
|
*/
|
|
42
42
|
MeetingInfoUtil.isMeetingLink = function (value) {
|
|
43
43
|
var parsedUrl = MeetingInfoUtil.getParsedUrl(value);
|
|
@@ -244,12 +244,12 @@ MeetingInfoUtil.getDestinationType = /*#__PURE__*/function () {
|
|
|
244
244
|
};
|
|
245
245
|
}();
|
|
246
246
|
|
|
247
|
-
/**
|
|
248
|
-
* Helper function to build up a correct locus url depending on the value passed
|
|
249
|
-
* @param {Object} options type and value to fetch meeting info
|
|
250
|
-
* @param {String} options.type One of [SIP_URI, PERSONAL_ROOM, MEETING_ID, CONVERSATION_URL, LOCUS_ID, MEETING_LINK]
|
|
251
|
-
* @param {Object} options.destination ?? value.value
|
|
252
|
-
* @returns {Object} returns an object with {resource, method}
|
|
247
|
+
/**
|
|
248
|
+
* Helper function to build up a correct locus url depending on the value passed
|
|
249
|
+
* @param {Object} options type and value to fetch meeting info
|
|
250
|
+
* @param {String} options.type One of [SIP_URI, PERSONAL_ROOM, MEETING_ID, CONVERSATION_URL, LOCUS_ID, MEETING_LINK]
|
|
251
|
+
* @param {Object} options.destination ?? value.value
|
|
252
|
+
* @returns {Object} returns an object with {resource, method}
|
|
253
253
|
*/
|
|
254
254
|
MeetingInfoUtil.getRequestBody = function (options) {
|
|
255
255
|
var _destination$info, _destination$info2;
|
|
@@ -303,10 +303,10 @@ MeetingInfoUtil.getRequestBody = function (options) {
|
|
|
303
303
|
return body;
|
|
304
304
|
};
|
|
305
305
|
|
|
306
|
-
/**
|
|
307
|
-
* Helper function to parse the webex site/host from a URI string.
|
|
308
|
-
* @param {String} uri string (e.g. '10019857020@convergedats.webex.com')
|
|
309
|
-
* @returns {String} the site/host part of the URI string (e.g. 'convergedats.webex.com')
|
|
306
|
+
/**
|
|
307
|
+
* Helper function to parse the webex site/host from a URI string.
|
|
308
|
+
* @param {String} uri string (e.g. '10019857020@convergedats.webex.com')
|
|
309
|
+
* @returns {String} the site/host part of the URI string (e.g. 'convergedats.webex.com')
|
|
310
310
|
*/
|
|
311
311
|
MeetingInfoUtil.getWebexSite = function (uri) {
|
|
312
312
|
var _uri$match;
|
|
@@ -315,12 +315,12 @@ MeetingInfoUtil.getWebexSite = function (uri) {
|
|
|
315
315
|
return exceptedDomains.includes(site) ? null : site;
|
|
316
316
|
};
|
|
317
317
|
|
|
318
|
-
/**
|
|
319
|
-
* Helper function to return the direct URI for fetching meeting info (to avoid a redirect).
|
|
320
|
-
* @param {Object} options type and value to fetch meeting info
|
|
321
|
-
* @param {String} options.type One of [SIP_URI, PERSONAL_ROOM, MEETING_ID, CONVERSATION_URL, LOCUS_ID, MEETING_LINK]
|
|
322
|
-
* @param {Object} options.destination ?? value.value
|
|
323
|
-
* @returns {String} returns a URI string or null of there is no direct URI
|
|
318
|
+
/**
|
|
319
|
+
* Helper function to return the direct URI for fetching meeting info (to avoid a redirect).
|
|
320
|
+
* @param {Object} options type and value to fetch meeting info
|
|
321
|
+
* @param {String} options.type One of [SIP_URI, PERSONAL_ROOM, MEETING_ID, CONVERSATION_URL, LOCUS_ID, MEETING_LINK]
|
|
322
|
+
* @param {Object} options.destination ?? value.value
|
|
323
|
+
* @returns {String} returns a URI string or null of there is no direct URI
|
|
324
324
|
*/
|
|
325
325
|
MeetingInfoUtil.getDirectMeetingInfoURI = function (options) {
|
|
326
326
|
var _destination$info3;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_url","_interopRequireDefault","require","_common","_constants","_parameter","_loggerProxy","MeetingInfoUtil","getParsedUrl","link","parsedUrl","url","parse","protocol","concat","HTTPS_PROTOCOL","error","LoggerProxy","logger","warn","isMeetingLink","value","hostNameBool","hostname","includes","WEBEX_DOT_COM","pathNameBool","pathname","MEET","MEET_M","JOIN","isConversationUrl","webex","clusterId","internal","services","getClusterId","endsWith","CONVERSATION_SERVICE","isSipUri","sipString","sipUri","DIALER_REGEX","SIP_ADDRESS","exec","isPhoneNumber","phoneNumber","isValidNumber","PHONE_NUMBER","test","getHydraId","destination","_deconstructHydraId","deconstructHydraId","type","id","cluster","UUID_REG","_ROOM_","room","_PEOPLE_","people","getSipUriFromHydraPersonId","get","then","res","emails","length","ParameterError","catch","err","getDestinationType","_ref","_asyncToGenerator2","default","_regenerator","mark","_callee","from","_options","_res$items$","orgId","userId","options","hydraId","serviceUrl","wrap","_callee$","_context","prev","next","_PERSONAL_ROOM_","device","VALID_EMAIL_ADDRESS","email","list","sent","items","abrupt","config","meetings","disableHydraId","_MEETING_LINK_","_SIP_URI_","_CONVERSATION_URL_","wasHydraPerson","_promise","resolve","waitForCatalog","getServiceUrlFromClusterId","t0","stop","_x","apply","arguments","getRequestBody","_destination$info","_destination$info2","password","captchaInfo","body","supportHostKey","supportCountryList","sipUrl","_MEETING_ID_","meetingKey","conversationUrl","_LOCUS_ID_","info","webExMeetingId","meetingUrl","_MEETING_UUID_","meetingUUID","captchaID","captchaVerifyCode","code","getWebexSite","uri","_uri$match","exceptedDomains","site","match","getDirectMeetingInfoURI","_destination$info3","preferredWebexSite","webExSite","_default","exports"],"sources":["utilv2.ts"],"sourcesContent":["import url from 'url';\r\n\r\n// @ts-ignore\r\nimport {deconstructHydraId} from '@webex/common';\r\n\r\nimport {\r\n _SIP_URI_,\r\n _PERSONAL_ROOM_,\r\n _MEETING_ID_,\r\n _CONVERSATION_URL_,\r\n _LOCUS_ID_,\r\n _MEETING_LINK_,\r\n _PEOPLE_,\r\n _ROOM_,\r\n _MEETING_UUID_,\r\n DIALER_REGEX,\r\n WEBEX_DOT_COM,\r\n CONVERSATION_SERVICE,\r\n JOIN,\r\n MEET,\r\n MEET_M,\r\n HTTPS_PROTOCOL,\r\n UUID_REG,\r\n VALID_EMAIL_ADDRESS,\r\n} from '../constants';\r\nimport ParameterError from '../common/errors/parameter';\r\nimport LoggerProxy from '../common/logs/logger-proxy';\r\n\r\nconst MeetingInfoUtil: any = {};\r\n\r\nMeetingInfoUtil.getParsedUrl = (link) => {\r\n try {\r\n let parsedUrl = url.parse(link);\r\n\r\n if (!parsedUrl) {\r\n return false;\r\n }\r\n // hack for links such as <company>.webex.com/meet/<user> without a protocol\r\n if (!parsedUrl.protocol) {\r\n parsedUrl = url.parse(`${HTTPS_PROTOCOL}${link}`);\r\n }\r\n\r\n return parsedUrl;\r\n } catch (error) {\r\n LoggerProxy.logger.warn(\r\n `Meeting-info:util#getParsedUrl --> unable to parse the URL, error: ${error}`\r\n );\r\n\r\n return null;\r\n }\r\n};\r\n\r\n/**\r\n * Helper function to check if a string matches a known meeting link pattern\r\n * @param {String} value string to parse and see if it matches a meeting link\r\n * @returns {Boolean}\r\n */\r\nMeetingInfoUtil.isMeetingLink = (value: string) => {\r\n const parsedUrl = MeetingInfoUtil.getParsedUrl(value);\r\n const hostNameBool = parsedUrl.hostname && parsedUrl.hostname.includes(WEBEX_DOT_COM);\r\n const pathNameBool =\r\n parsedUrl.pathname &&\r\n (parsedUrl.pathname.includes(`/${MEET}`) ||\r\n parsedUrl.pathname.includes(`/${MEET_M}`) ||\r\n parsedUrl.pathname.includes(`/${JOIN}`));\r\n\r\n return hostNameBool && pathNameBool;\r\n};\r\n\r\nMeetingInfoUtil.isConversationUrl = (value, webex) => {\r\n const clusterId = webex.internal.services.getClusterId(value);\r\n\r\n if (clusterId) {\r\n return clusterId.endsWith(CONVERSATION_SERVICE);\r\n }\r\n\r\n return false;\r\n};\r\n\r\nMeetingInfoUtil.isSipUri = (sipString) => {\r\n // TODO: lets remove regex from this equation and user URI matchers and such\r\n // have not found a great sip uri parser library as of now\r\n const sipUri = DIALER_REGEX.SIP_ADDRESS.exec(sipString);\r\n\r\n return sipUri;\r\n};\r\n\r\nMeetingInfoUtil.isPhoneNumber = (phoneNumber) => {\r\n const isValidNumber = DIALER_REGEX.PHONE_NUMBER.test(phoneNumber);\r\n\r\n return isValidNumber;\r\n};\r\n\r\nMeetingInfoUtil.getHydraId = (destination) => {\r\n const {type, id, cluster} = deconstructHydraId(destination);\r\n\r\n if (id && UUID_REG.test(id)) {\r\n if (type === _ROOM_) {\r\n return {room: true, destination: id, cluster};\r\n }\r\n if (type === _PEOPLE_) {\r\n return {people: true, destination: id, cluster};\r\n }\r\n\r\n return {};\r\n }\r\n\r\n return {};\r\n};\r\n\r\nMeetingInfoUtil.getSipUriFromHydraPersonId = (destination, webex) =>\r\n webex.people\r\n .get(destination)\r\n .then((res) => {\r\n if (res.emails && res.emails.length) {\r\n return res.emails[0];\r\n }\r\n throw new ParameterError('Hydra Id Lookup was an invalid hydra person id.');\r\n })\r\n .catch((err) => {\r\n LoggerProxy.logger.error(\r\n `Meeting-info:util#MeetingInfoUtil.getSipUriFromHydraPersonId --> getSipUriFromHydraPersonId ${err} `\r\n );\r\n throw err;\r\n });\r\n\r\nMeetingInfoUtil.getDestinationType = async (from) => {\r\n const {type, webex} = from;\r\n let {destination} = from;\r\n\r\n if (type === _PERSONAL_ROOM_) {\r\n // this case checks if your type is personal room\r\n if (!destination) {\r\n // if we are not getting anything in desination we fetch org and user ids from webex instance\r\n destination = {\r\n userId: webex.internal.device.userId,\r\n orgId: webex.internal.device.orgId,\r\n };\r\n } else {\r\n const options = VALID_EMAIL_ADDRESS.test(destination)\r\n ? {email: destination}\r\n : {id: destination}; // we are assuming userId as default\r\n const res = await webex.people.list(options);\r\n\r\n let {orgId, id: userId} = res.items[0];\r\n\r\n userId = deconstructHydraId(userId).id;\r\n orgId = deconstructHydraId(orgId).id;\r\n destination = {userId, orgId};\r\n }\r\n }\r\n if (type) {\r\n return {\r\n destination,\r\n type,\r\n };\r\n }\r\n const options: any = {};\r\n let hydraId;\r\n\r\n if (webex && webex.config && webex.config.meetings && webex.config.meetings.disableHydraId) {\r\n hydraId = null;\r\n } else {\r\n hydraId = MeetingInfoUtil.getHydraId(destination);\r\n }\r\n\r\n if (MeetingInfoUtil.isMeetingLink(destination)) {\r\n LoggerProxy.logger.warn(\r\n 'Meeting-info:util#generateOptions --> WARN, use of Meeting Link is deprecated, please use a SIP URI instead'\r\n );\r\n\r\n options.type = _MEETING_LINK_;\r\n options.destination = destination;\r\n } else if (MeetingInfoUtil.isSipUri(destination)) {\r\n options.type = _SIP_URI_;\r\n options.destination = destination;\r\n } else if (MeetingInfoUtil.isPhoneNumber(destination)) {\r\n options.type = _SIP_URI_;\r\n options.destination = destination;\r\n } else if (MeetingInfoUtil.isConversationUrl(destination, webex)) {\r\n options.type = _CONVERSATION_URL_;\r\n options.destination = destination;\r\n } else if (hydraId && hydraId.people) {\r\n options.type = _SIP_URI_;\r\n\r\n return MeetingInfoUtil.getSipUriFromHydraPersonId(hydraId && hydraId.destination, webex).then(\r\n (res) => {\r\n options.destination = res;\r\n\r\n // Since hydra person ids require a unique case in which they are\r\n // entirely converted to a SIP URI, we need to set a flag for detecting\r\n // this type of destination.\r\n options.wasHydraPerson = true;\r\n\r\n return Promise.resolve(options);\r\n }\r\n );\r\n } else if (hydraId && hydraId.room) {\r\n options.type = _CONVERSATION_URL_;\r\n try {\r\n await webex.internal.services.waitForCatalog('postauth');\r\n\r\n const serviceUrl = webex.internal.services.getServiceUrlFromClusterId(\r\n {\r\n cluster: hydraId.cluster,\r\n },\r\n webex\r\n );\r\n\r\n options.destination = hydraId.destination\r\n ? `${serviceUrl}/conversations/${hydraId.destination}`\r\n : serviceUrl;\r\n } catch (e) {\r\n LoggerProxy.logger.error(`Meeting-info:util#getDestinationType --> ${e}`);\r\n throw e;\r\n }\r\n } else {\r\n LoggerProxy.logger.warn(\r\n \"Meeting-info:util#getDestinationType --> ('MeetingInfo is fetched with meeting link, sip uri, phone number, hydra room id, hydra people id, or a conversation url.\"\r\n );\r\n throw new ParameterError(\r\n 'MeetingInfo is fetched with meeting link, sip uri, phone number, hydra room id, hydra people id, or a conversation url.'\r\n );\r\n }\r\n\r\n return Promise.resolve(options);\r\n};\r\n\r\n/**\r\n * Helper function to build up a correct locus url depending on the value passed\r\n * @param {Object} options type and value to fetch meeting info\r\n * @param {String} options.type One of [SIP_URI, PERSONAL_ROOM, MEETING_ID, CONVERSATION_URL, LOCUS_ID, MEETING_LINK]\r\n * @param {Object} options.destination ?? value.value\r\n * @returns {Object} returns an object with {resource, method}\r\n */\r\nMeetingInfoUtil.getRequestBody = (options: {type: string; destination: object} | any) => {\r\n const {type, destination, password, captchaInfo} = options;\r\n const body: any = {\r\n supportHostKey: true,\r\n supportCountryList: true,\r\n };\r\n\r\n switch (type) {\r\n case _SIP_URI_:\r\n body.sipUrl = destination;\r\n break;\r\n case _PERSONAL_ROOM_:\r\n body.userId = destination.userId;\r\n body.orgId = destination.orgId;\r\n break;\r\n case _MEETING_ID_:\r\n body.meetingKey = destination;\r\n break;\r\n case _CONVERSATION_URL_:\r\n body.conversationUrl = destination;\r\n break;\r\n case _LOCUS_ID_:\r\n // use meetingID for the completer meeting info for the already started meeting\r\n if (destination.info?.webExMeetingId) {\r\n body.meetingKey = destination.info.webExMeetingId;\r\n } else if (destination.info?.sipUri) {\r\n body.sipUrl = destination.info.sipUri;\r\n }\r\n break;\r\n case _MEETING_LINK_:\r\n body.meetingUrl = destination;\r\n break;\r\n case _MEETING_UUID_: {\r\n body.meetingUUID = destination;\r\n break;\r\n }\r\n default:\r\n }\r\n\r\n if (password) {\r\n body.password = password;\r\n }\r\n\r\n if (captchaInfo) {\r\n body.captchaID = captchaInfo.id;\r\n body.captchaVerifyCode = captchaInfo.code;\r\n }\r\n\r\n return body;\r\n};\r\n\r\n/**\r\n * Helper function to parse the webex site/host from a URI string.\r\n * @param {String} uri string (e.g. '10019857020@convergedats.webex.com')\r\n * @returns {String} the site/host part of the URI string (e.g. 'convergedats.webex.com')\r\n */\r\nMeetingInfoUtil.getWebexSite = (uri: string) => {\r\n const exceptedDomains = ['meet.webex.com', 'meetup.webex.com', 'ciscospark.com'];\r\n const site = uri?.match(/.+@([^.]+\\.[^.]+\\.[^.]+)$/)?.[1];\r\n\r\n return exceptedDomains.includes(site) ? null : site;\r\n};\r\n\r\n/**\r\n * Helper function to return the direct URI for fetching meeting info (to avoid a redirect).\r\n * @param {Object} options type and value to fetch meeting info\r\n * @param {String} options.type One of [SIP_URI, PERSONAL_ROOM, MEETING_ID, CONVERSATION_URL, LOCUS_ID, MEETING_LINK]\r\n * @param {Object} options.destination ?? value.value\r\n * @returns {String} returns a URI string or null of there is no direct URI\r\n */\r\nMeetingInfoUtil.getDirectMeetingInfoURI = (options: {type: string; destination: any}) => {\r\n const {type, destination} = options;\r\n\r\n let preferredWebexSite = null;\r\n\r\n switch (type) {\r\n case _SIP_URI_:\r\n preferredWebexSite = MeetingInfoUtil.getWebexSite(destination);\r\n break;\r\n case _LOCUS_ID_:\r\n preferredWebexSite = destination.info?.webExSite;\r\n break;\r\n default:\r\n }\r\n\r\n return preferredWebexSite ? `https://${preferredWebexSite}/wbxappapi/v1/meetingInfo` : null;\r\n};\r\n\r\nexport default MeetingInfoUtil;\r\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,IAAA,GAAAC,sBAAA,CAAAC,OAAA;AAGA,IAAAC,OAAA,GAAAD,OAAA;AAEA,IAAAE,UAAA,GAAAF,OAAA;AAoBA,IAAAG,UAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,YAAA,GAAAL,sBAAA,CAAAC,OAAA;AAxBA;;AA0BA,IAAMK,eAAoB,GAAG,CAAC,CAAC;AAE/BA,eAAe,CAACC,YAAY,GAAG,UAACC,IAAI,EAAK;EACvC,IAAI;IACF,IAAIC,SAAS,GAAGC,YAAG,CAACC,KAAK,CAACH,IAAI,CAAC;IAE/B,IAAI,CAACC,SAAS,EAAE;MACd,OAAO,KAAK;IACd;IACA;IACA,IAAI,CAACA,SAAS,CAACG,QAAQ,EAAE;MACvBH,SAAS,GAAGC,YAAG,CAACC,KAAK,IAAAE,MAAA,CAAIC,yBAAc,EAAAD,MAAA,CAAGL,IAAI,EAAG;IACnD;IAEA,OAAOC,SAAS;EAClB,CAAC,CAAC,OAAOM,KAAK,EAAE;IACdC,oBAAW,CAACC,MAAM,CAACC,IAAI,uEAAAL,MAAA,CACiDE,KAAK,EAC5E;IAED,OAAO,IAAI;EACb;AACF,CAAC;;AAED;AACA;AACA;AACA;AACA;AACAT,eAAe,CAACa,aAAa,GAAG,UAACC,KAAa,EAAK;EACjD,IAAMX,SAAS,GAAGH,eAAe,CAACC,YAAY,CAACa,KAAK,CAAC;EACrD,IAAMC,YAAY,GAAGZ,SAAS,CAACa,QAAQ,IAAIb,SAAS,CAACa,QAAQ,CAACC,QAAQ,CAACC,wBAAa,CAAC;EACrF,IAAMC,YAAY,GAChBhB,SAAS,CAACiB,QAAQ,KACjBjB,SAAS,CAACi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;AAED;AACA;AACA;AACA;AACA;AACA;AACA;AACArI,eAAe,CAACuI,uBAAuB,GAAG,UAAC3D,OAAyC,EAAK;EAAA,IAAA4D,kBAAA;EACvF,IAAOzF,IAAI,GAAiB6B,OAAO,CAA5B7B,IAAI;IAAEH,WAAW,GAAIgC,OAAO,CAAtBhC,WAAW;EAExB,IAAI6F,kBAAkB,GAAG,IAAI;EAE7B,QAAQ1F,IAAI;IACV,KAAKiD,oBAAS;MACZyC,kBAAkB,GAAGzI,eAAe,CAACiI,YAAY,CAACrF,WAAW,CAAC;MAC9D;IACF,KAAK4E,qBAAU;MACbiB,kBAAkB,IAAAD,kBAAA,GAAG5F,WAAW,CAAC6E,IAAI,cAAAe,kBAAA,uBAAhBA,kBAAA,CAAkBE,SAAS;MAChD;IACF;EAAQ;EAGV,OAAOD,kBAAkB,cAAAlI,MAAA,CAAckI,kBAAkB,iCAA8B,IAAI;AAC7F,CAAC;AAAC,IAAAE,QAAA,GAEa3I,eAAe;AAAA4I,OAAA,CAAAzE,OAAA,GAAAwE,QAAA"}
|
|
1
|
+
{"version":3,"names":["_url","_interopRequireDefault","require","_common","_constants","_parameter","_loggerProxy","MeetingInfoUtil","getParsedUrl","link","parsedUrl","url","parse","protocol","concat","HTTPS_PROTOCOL","error","LoggerProxy","logger","warn","isMeetingLink","value","hostNameBool","hostname","includes","WEBEX_DOT_COM","pathNameBool","pathname","MEET","MEET_M","JOIN","isConversationUrl","webex","clusterId","internal","services","getClusterId","endsWith","CONVERSATION_SERVICE","isSipUri","sipString","sipUri","DIALER_REGEX","SIP_ADDRESS","exec","isPhoneNumber","phoneNumber","isValidNumber","PHONE_NUMBER","test","getHydraId","destination","_deconstructHydraId","deconstructHydraId","type","id","cluster","UUID_REG","_ROOM_","room","_PEOPLE_","people","getSipUriFromHydraPersonId","get","then","res","emails","length","ParameterError","catch","err","getDestinationType","_ref","_asyncToGenerator2","default","_regenerator","mark","_callee","from","_options","_res$items$","orgId","userId","options","hydraId","serviceUrl","wrap","_callee$","_context","prev","next","_PERSONAL_ROOM_","device","VALID_EMAIL_ADDRESS","email","list","sent","items","abrupt","config","meetings","disableHydraId","_MEETING_LINK_","_SIP_URI_","_CONVERSATION_URL_","wasHydraPerson","_promise","resolve","waitForCatalog","getServiceUrlFromClusterId","t0","stop","_x","apply","arguments","getRequestBody","_destination$info","_destination$info2","password","captchaInfo","body","supportHostKey","supportCountryList","sipUrl","_MEETING_ID_","meetingKey","conversationUrl","_LOCUS_ID_","info","webExMeetingId","meetingUrl","_MEETING_UUID_","meetingUUID","captchaID","captchaVerifyCode","code","getWebexSite","uri","_uri$match","exceptedDomains","site","match","getDirectMeetingInfoURI","_destination$info3","preferredWebexSite","webExSite","_default","exports"],"sources":["utilv2.ts"],"sourcesContent":["import url from 'url';\n\n// @ts-ignore\nimport {deconstructHydraId} from '@webex/common';\n\nimport {\n _SIP_URI_,\n _PERSONAL_ROOM_,\n _MEETING_ID_,\n _CONVERSATION_URL_,\n _LOCUS_ID_,\n _MEETING_LINK_,\n _PEOPLE_,\n _ROOM_,\n _MEETING_UUID_,\n DIALER_REGEX,\n WEBEX_DOT_COM,\n CONVERSATION_SERVICE,\n JOIN,\n MEET,\n MEET_M,\n HTTPS_PROTOCOL,\n UUID_REG,\n VALID_EMAIL_ADDRESS,\n} from '../constants';\nimport ParameterError from '../common/errors/parameter';\nimport LoggerProxy from '../common/logs/logger-proxy';\n\nconst MeetingInfoUtil: any = {};\n\nMeetingInfoUtil.getParsedUrl = (link) => {\n try {\n let parsedUrl = url.parse(link);\n\n if (!parsedUrl) {\n return false;\n }\n // hack for links such as <company>.webex.com/meet/<user> without a protocol\n if (!parsedUrl.protocol) {\n parsedUrl = url.parse(`${HTTPS_PROTOCOL}${link}`);\n }\n\n return parsedUrl;\n } catch (error) {\n LoggerProxy.logger.warn(\n `Meeting-info:util#getParsedUrl --> unable to parse the URL, error: ${error}`\n );\n\n return null;\n }\n};\n\n/**\n * Helper function to check if a string matches a known meeting link pattern\n * @param {String} value string to parse and see if it matches a meeting link\n * @returns {Boolean}\n */\nMeetingInfoUtil.isMeetingLink = (value: string) => {\n const parsedUrl = MeetingInfoUtil.getParsedUrl(value);\n const hostNameBool = parsedUrl.hostname && parsedUrl.hostname.includes(WEBEX_DOT_COM);\n const pathNameBool =\n parsedUrl.pathname &&\n (parsedUrl.pathname.includes(`/${MEET}`) ||\n parsedUrl.pathname.includes(`/${MEET_M}`) ||\n parsedUrl.pathname.includes(`/${JOIN}`));\n\n return hostNameBool && pathNameBool;\n};\n\nMeetingInfoUtil.isConversationUrl = (value, webex) => {\n const clusterId = webex.internal.services.getClusterId(value);\n\n if (clusterId) {\n return clusterId.endsWith(CONVERSATION_SERVICE);\n }\n\n return false;\n};\n\nMeetingInfoUtil.isSipUri = (sipString) => {\n // TODO: lets remove regex from this equation and user URI matchers and such\n // have not found a great sip uri parser library as of now\n const sipUri = DIALER_REGEX.SIP_ADDRESS.exec(sipString);\n\n return sipUri;\n};\n\nMeetingInfoUtil.isPhoneNumber = (phoneNumber) => {\n const isValidNumber = DIALER_REGEX.PHONE_NUMBER.test(phoneNumber);\n\n return isValidNumber;\n};\n\nMeetingInfoUtil.getHydraId = (destination) => {\n const {type, id, cluster} = deconstructHydraId(destination);\n\n if (id && UUID_REG.test(id)) {\n if (type === _ROOM_) {\n return {room: true, destination: id, cluster};\n }\n if (type === _PEOPLE_) {\n return {people: true, destination: id, cluster};\n }\n\n return {};\n }\n\n return {};\n};\n\nMeetingInfoUtil.getSipUriFromHydraPersonId = (destination, webex) =>\n webex.people\n .get(destination)\n .then((res) => {\n if (res.emails && res.emails.length) {\n return res.emails[0];\n }\n throw new ParameterError('Hydra Id Lookup was an invalid hydra person id.');\n })\n .catch((err) => {\n LoggerProxy.logger.error(\n `Meeting-info:util#MeetingInfoUtil.getSipUriFromHydraPersonId --> getSipUriFromHydraPersonId ${err} `\n );\n throw err;\n });\n\nMeetingInfoUtil.getDestinationType = async (from) => {\n const {type, webex} = from;\n let {destination} = from;\n\n if (type === _PERSONAL_ROOM_) {\n // this case checks if your type is personal room\n if (!destination) {\n // if we are not getting anything in desination we fetch org and user ids from webex instance\n destination = {\n userId: webex.internal.device.userId,\n orgId: webex.internal.device.orgId,\n };\n } else {\n const options = VALID_EMAIL_ADDRESS.test(destination)\n ? {email: destination}\n : {id: destination}; // we are assuming userId as default\n const res = await webex.people.list(options);\n\n let {orgId, id: userId} = res.items[0];\n\n userId = deconstructHydraId(userId).id;\n orgId = deconstructHydraId(orgId).id;\n destination = {userId, orgId};\n }\n }\n if (type) {\n return {\n destination,\n type,\n };\n }\n const options: any = {};\n let hydraId;\n\n if (webex && webex.config && webex.config.meetings && webex.config.meetings.disableHydraId) {\n hydraId = null;\n } else {\n hydraId = MeetingInfoUtil.getHydraId(destination);\n }\n\n if (MeetingInfoUtil.isMeetingLink(destination)) {\n LoggerProxy.logger.warn(\n 'Meeting-info:util#generateOptions --> WARN, use of Meeting Link is deprecated, please use a SIP URI instead'\n );\n\n options.type = _MEETING_LINK_;\n options.destination = destination;\n } else if (MeetingInfoUtil.isSipUri(destination)) {\n options.type = _SIP_URI_;\n options.destination = destination;\n } else if (MeetingInfoUtil.isPhoneNumber(destination)) {\n options.type = _SIP_URI_;\n options.destination = destination;\n } else if (MeetingInfoUtil.isConversationUrl(destination, webex)) {\n options.type = _CONVERSATION_URL_;\n options.destination = destination;\n } else if (hydraId && hydraId.people) {\n options.type = _SIP_URI_;\n\n return MeetingInfoUtil.getSipUriFromHydraPersonId(hydraId && hydraId.destination, webex).then(\n (res) => {\n options.destination = res;\n\n // Since hydra person ids require a unique case in which they are\n // entirely converted to a SIP URI, we need to set a flag for detecting\n // this type of destination.\n options.wasHydraPerson = true;\n\n return Promise.resolve(options);\n }\n );\n } else if (hydraId && hydraId.room) {\n options.type = _CONVERSATION_URL_;\n try {\n await webex.internal.services.waitForCatalog('postauth');\n\n const serviceUrl = webex.internal.services.getServiceUrlFromClusterId(\n {\n cluster: hydraId.cluster,\n },\n webex\n );\n\n options.destination = hydraId.destination\n ? `${serviceUrl}/conversations/${hydraId.destination}`\n : serviceUrl;\n } catch (e) {\n LoggerProxy.logger.error(`Meeting-info:util#getDestinationType --> ${e}`);\n throw e;\n }\n } else {\n LoggerProxy.logger.warn(\n \"Meeting-info:util#getDestinationType --> ('MeetingInfo is fetched with meeting link, sip uri, phone number, hydra room id, hydra people id, or a conversation url.\"\n );\n throw new ParameterError(\n 'MeetingInfo is fetched with meeting link, sip uri, phone number, hydra room id, hydra people id, or a conversation url.'\n );\n }\n\n return Promise.resolve(options);\n};\n\n/**\n * Helper function to build up a correct locus url depending on the value passed\n * @param {Object} options type and value to fetch meeting info\n * @param {String} options.type One of [SIP_URI, PERSONAL_ROOM, MEETING_ID, CONVERSATION_URL, LOCUS_ID, MEETING_LINK]\n * @param {Object} options.destination ?? value.value\n * @returns {Object} returns an object with {resource, method}\n */\nMeetingInfoUtil.getRequestBody = (options: {type: string; destination: object} | any) => {\n const {type, destination, password, captchaInfo} = options;\n const body: any = {\n supportHostKey: true,\n supportCountryList: true,\n };\n\n switch (type) {\n case _SIP_URI_:\n body.sipUrl = destination;\n break;\n case _PERSONAL_ROOM_:\n body.userId = destination.userId;\n body.orgId = destination.orgId;\n break;\n case _MEETING_ID_:\n body.meetingKey = destination;\n break;\n case _CONVERSATION_URL_:\n body.conversationUrl = destination;\n break;\n case _LOCUS_ID_:\n // use meetingID for the completer meeting info for the already started meeting\n if (destination.info?.webExMeetingId) {\n body.meetingKey = destination.info.webExMeetingId;\n } else if (destination.info?.sipUri) {\n body.sipUrl = destination.info.sipUri;\n }\n break;\n case _MEETING_LINK_:\n body.meetingUrl = destination;\n break;\n case _MEETING_UUID_: {\n body.meetingUUID = destination;\n break;\n }\n default:\n }\n\n if (password) {\n body.password = password;\n }\n\n if (captchaInfo) {\n body.captchaID = captchaInfo.id;\n body.captchaVerifyCode = captchaInfo.code;\n }\n\n return body;\n};\n\n/**\n * Helper function to parse the webex site/host from a URI string.\n * @param {String} uri string (e.g. '10019857020@convergedats.webex.com')\n * @returns {String} the site/host part of the URI string (e.g. 'convergedats.webex.com')\n */\nMeetingInfoUtil.getWebexSite = (uri: string) => {\n const exceptedDomains = ['meet.webex.com', 'meetup.webex.com', 'ciscospark.com'];\n const site = uri?.match(/.+@([^.]+\\.[^.]+\\.[^.]+)$/)?.[1];\n\n return exceptedDomains.includes(site) ? null : site;\n};\n\n/**\n * Helper function to return the direct URI for fetching meeting info (to avoid a redirect).\n * @param {Object} options type and value to fetch meeting info\n * @param {String} options.type One of [SIP_URI, PERSONAL_ROOM, MEETING_ID, CONVERSATION_URL, LOCUS_ID, MEETING_LINK]\n * @param {Object} options.destination ?? value.value\n * @returns {String} returns a URI string or null of there is no direct URI\n */\nMeetingInfoUtil.getDirectMeetingInfoURI = (options: {type: string; destination: any}) => {\n const {type, destination} = options;\n\n let preferredWebexSite = null;\n\n switch (type) {\n case _SIP_URI_:\n preferredWebexSite = MeetingInfoUtil.getWebexSite(destination);\n break;\n case _LOCUS_ID_:\n preferredWebexSite = destination.info?.webExSite;\n break;\n default:\n }\n\n return preferredWebexSite ? `https://${preferredWebexSite}/wbxappapi/v1/meetingInfo` : null;\n};\n\nexport default MeetingInfoUtil;\n"],"mappings":";;;;;;;;;;;AAAA,IAAAA,IAAA,GAAAC,sBAAA,CAAAC,OAAA;AAGA,IAAAC,OAAA,GAAAD,OAAA;AAEA,IAAAE,UAAA,GAAAF,OAAA;AAoBA,IAAAG,UAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,YAAA,GAAAL,sBAAA,CAAAC,OAAA;AAxBA;;AA0BA,IAAMK,eAAoB,GAAG,CAAC,CAAC;AAE/BA,eAAe,CAACC,YAAY,GAAG,UAACC,IAAI,EAAK;EACvC,IAAI;IACF,IAAIC,SAAS,GAAGC,YAAG,CAACC,KAAK,CAACH,IAAI,CAAC;IAE/B,IAAI,CAACC,SAAS,EAAE;MACd,OAAO,KAAK;IACd;IACA;IACA,IAAI,CAACA,SAAS,CAACG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AAwE,QAAA"}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
import Collection from '../common/collection';
|
|
2
|
-
/**
|
|
3
|
-
* @export
|
|
4
|
-
* @class MeetingCollection
|
|
5
|
-
*/
|
|
6
|
-
export default class MeetingCollection extends Collection {
|
|
7
|
-
/**
|
|
8
|
-
* @constructor
|
|
9
|
-
* @public
|
|
10
|
-
* @memberof MeetingCollection
|
|
11
|
-
*/
|
|
12
|
-
constructor();
|
|
13
|
-
set(meeting: any): any;
|
|
14
|
-
/**
|
|
15
|
-
* get a specific meeting searching for key
|
|
16
|
-
* @param {String} key
|
|
17
|
-
* @param {Any} value
|
|
18
|
-
* @returns {Meeting} if found, else returns null
|
|
19
|
-
* @public
|
|
20
|
-
* @memberof MeetingCollection
|
|
21
|
-
*/
|
|
22
|
-
getByKey(key: string, value: any): any;
|
|
23
|
-
}
|
|
1
|
+
import Collection from '../common/collection';
|
|
2
|
+
/**
|
|
3
|
+
* @export
|
|
4
|
+
* @class MeetingCollection
|
|
5
|
+
*/
|
|
6
|
+
export default class MeetingCollection extends Collection {
|
|
7
|
+
/**
|
|
8
|
+
* @constructor
|
|
9
|
+
* @public
|
|
10
|
+
* @memberof MeetingCollection
|
|
11
|
+
*/
|
|
12
|
+
constructor();
|
|
13
|
+
set(meeting: any): any;
|
|
14
|
+
/**
|
|
15
|
+
* get a specific meeting searching for key
|
|
16
|
+
* @param {String} key
|
|
17
|
+
* @param {Any} value
|
|
18
|
+
* @returns {Meeting} if found, else returns null
|
|
19
|
+
* @public
|
|
20
|
+
* @memberof MeetingCollection
|
|
21
|
+
*/
|
|
22
|
+
getByKey(key: string, value: any): any;
|
|
23
|
+
}
|