@webex/plugin-meetings 3.12.0 → 3.13.0-next.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.sdd/manifest.json +1312 -0
- package/.sdd/templates/.source.json +30 -0
- package/.sdd/templates/component-repo/module-docs/module-spec-quality.md +111 -0
- package/.sdd/templates/component-repo/module-docs/module-spec.template.md +321 -0
- package/.sdd/templates/component-repo/reference-docs/adr/_adr-example.md +59 -0
- package/.sdd/templates/component-repo/reference-docs/patterns/_pattern-example.md +49 -0
- package/.sdd/templates/component-repo/reference-docs/rules/_rule-example.md +42 -0
- package/.sdd/templates/component-repo/standing-docs/AGENTS.template.md +120 -0
- package/.sdd/templates/component-repo/standing-docs/ARCHITECTURE.template.md +206 -0
- package/.sdd/templates/component-repo/standing-docs/CONTRACTS.template.md +90 -0
- package/.sdd/templates/component-repo/standing-docs/DATA_MODEL.template.md +68 -0
- package/.sdd/templates/component-repo/standing-docs/GETTING_STARTED.template.md +111 -0
- package/.sdd/templates/component-repo/standing-docs/GLOSSARY.template.md +57 -0
- package/.sdd/templates/component-repo/standing-docs/REVIEW_CHECKLIST.template.md +69 -0
- package/.sdd/templates/component-repo/standing-docs/RULES.template.md +96 -0
- package/.sdd/templates/component-repo/standing-docs/SECURITY.template.md +84 -0
- package/.sdd/templates/component-repo/standing-docs/SERVICE_STATE.template.md +82 -0
- package/.sdd/templates/component-repo/standing-docs/SPEC_INDEX.template.md +94 -0
- package/.sdd/templates/component-repo/standing-docs/TEST_INDEX.template.md +64 -0
- package/.sdd/templates/component-repo/template-map.json +112 -0
- package/AGENTS.md +135 -0
- package/ai-docs/ARCHITECTURE.md +208 -0
- package/ai-docs/CONTRACTS.md +267 -0
- package/ai-docs/DATA_MODEL.md +64 -0
- package/ai-docs/GETTING_STARTED.md +73 -0
- package/ai-docs/GLOSSARY.md +56 -0
- package/ai-docs/REVIEW_CHECKLIST.md +45 -0
- package/ai-docs/RULES.md +79 -0
- package/ai-docs/SECURITY.md +74 -0
- package/ai-docs/SERVICE_STATE.md +59 -0
- package/ai-docs/SPEC_INDEX.md +85 -0
- package/ai-docs/TEST_INDEX.md +45 -0
- package/ai-docs/adr/0001-migrate-existing-docs-into-sdd.md +61 -0
- package/ai-docs/patterns/defensive-error-propagation.md +55 -0
- package/ai-docs/patterns/event-scope-emission.md +46 -0
- package/ai-docs/patterns/source-to-test-path-mirroring.md +45 -0
- package/ai-docs/patterns/stateless-plugin-request-classes.md +53 -0
- package/ai-docs/patterns/typed-constants-and-enum-values.md +47 -0
- package/assets/README.md +28 -0
- package/assets/e2ee-0.0.1.js +2 -0
- package/assets/e2ee-0.0.1.wasm +0 -0
- package/babel.config.js +17 -1
- package/dist/aiEnableRequest/index.js +15 -2
- package/dist/aiEnableRequest/index.js.map +1 -1
- package/dist/annotation/index.js +55 -19
- package/dist/annotation/index.js.map +1 -1
- package/dist/assets/e2ee-0.0.1.js +2 -0
- package/dist/assets/e2ee-0.0.1.wasm +0 -0
- package/dist/breakouts/breakout.js +8 -3
- package/dist/breakouts/breakout.js.map +1 -1
- package/dist/breakouts/events.js +29 -14
- package/dist/breakouts/events.js.map +1 -1
- package/dist/breakouts/index.js +128 -7
- package/dist/breakouts/index.js.map +1 -1
- package/dist/common/errors/webex-errors.js +54 -5
- package/dist/common/errors/webex-errors.js.map +1 -1
- package/dist/common/wasm-loader.js +174 -0
- package/dist/common/wasm-loader.js.map +1 -0
- package/dist/config.js +5 -2
- package/dist/config.js.map +1 -1
- package/dist/constants.js +39 -11
- package/dist/constants.js.map +1 -1
- package/dist/controls-options-manager/constants.js +11 -1
- package/dist/controls-options-manager/constants.js.map +1 -1
- package/dist/controls-options-manager/index.js +67 -29
- package/dist/controls-options-manager/index.js.map +1 -1
- package/dist/controls-options-manager/util.js +91 -0
- package/dist/controls-options-manager/util.js.map +1 -1
- package/dist/e2ee/E2eeManager.js +91 -0
- package/dist/e2ee/E2eeManager.js.map +1 -0
- package/dist/e2ee/E2eeSignaling.js +200 -0
- package/dist/e2ee/E2eeSignaling.js.map +1 -0
- package/dist/e2ee/MediaEncryptionService.js +75 -0
- package/dist/e2ee/MediaEncryptionService.js.map +1 -0
- package/dist/e2ee/mls.js +558 -0
- package/dist/e2ee/mls.js.map +1 -0
- package/dist/e2ee/types.js +59 -0
- package/dist/e2ee/types.js.map +1 -0
- package/dist/e2ee/wasm.d.js +7 -0
- package/dist/e2ee/wasm.d.js.map +1 -0
- package/dist/hashTree/constants.js +13 -1
- package/dist/hashTree/constants.js.map +1 -1
- package/dist/hashTree/hashTreeParser.js +1245 -404
- package/dist/hashTree/hashTreeParser.js.map +1 -1
- package/dist/hashTree/utils.js +42 -0
- package/dist/hashTree/utils.js.map +1 -1
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -1
- package/dist/interceptors/dataChannelAuthToken.js +58 -16
- package/dist/interceptors/dataChannelAuthToken.js.map +1 -1
- package/dist/interceptors/locusRetry.js +24 -9
- package/dist/interceptors/locusRetry.js.map +1 -1
- package/dist/interpretation/index.js +55 -12
- package/dist/interpretation/index.js.map +1 -1
- package/dist/interpretation/interpretation.types.js +7 -0
- package/dist/interpretation/interpretation.types.js.map +1 -0
- package/dist/interpretation/siLanguage.js +1 -1
- package/dist/locus-info/controlsUtils.js +4 -1
- package/dist/locus-info/controlsUtils.js.map +1 -1
- package/dist/locus-info/index.js +914 -196
- package/dist/locus-info/index.js.map +1 -1
- package/dist/locus-info/infoUtils.js +36 -5
- package/dist/locus-info/infoUtils.js.map +1 -1
- package/dist/locus-info/types.js +20 -0
- package/dist/locus-info/types.js.map +1 -1
- package/dist/media/MediaConnectionAwaiter.js +229 -166
- package/dist/media/MediaConnectionAwaiter.js.map +1 -1
- package/dist/media/index.js +8 -2
- package/dist/media/index.js.map +1 -1
- package/dist/media/properties.js +4 -5
- package/dist/media/properties.js.map +1 -1
- package/dist/meeting/in-meeting-actions.js +5 -1
- package/dist/meeting/in-meeting-actions.js.map +1 -1
- package/dist/meeting/index.js +1931 -887
- package/dist/meeting/index.js.map +1 -1
- package/dist/meeting/locusMediaRequest.js +229 -82
- package/dist/meeting/locusMediaRequest.js.map +1 -1
- package/dist/meeting/muteState.js +10 -1
- package/dist/meeting/muteState.js.map +1 -1
- package/dist/meeting/request.js +5 -2
- package/dist/meeting/request.js.map +1 -1
- package/dist/meeting/util.js +42 -3
- package/dist/meeting/util.js.map +1 -1
- package/dist/meeting/voicea-meeting.js +2 -1
- package/dist/meeting/voicea-meeting.js.map +1 -1
- package/dist/meeting-info/meeting-info-v2.js +12 -5
- package/dist/meeting-info/meeting-info-v2.js.map +1 -1
- package/dist/meetings/index.js +342 -129
- package/dist/meetings/index.js.map +1 -1
- package/dist/meetings/meetings.types.js +6 -1
- package/dist/meetings/meetings.types.js.map +1 -1
- package/dist/meetings/request.js +39 -0
- package/dist/meetings/request.js.map +1 -1
- package/dist/meetings/util.js +116 -18
- package/dist/meetings/util.js.map +1 -1
- package/dist/member/index.js +10 -0
- package/dist/member/index.js.map +1 -1
- package/dist/member/types.js.map +1 -1
- package/dist/member/util.js +30 -0
- package/dist/member/util.js.map +1 -1
- package/dist/members/index.js +101 -43
- package/dist/members/index.js.map +1 -1
- package/dist/members/util.js +8 -1
- package/dist/members/util.js.map +1 -1
- package/dist/metrics/constants.js +11 -1
- package/dist/metrics/constants.js.map +1 -1
- package/dist/multistream/codec/constants.js +63 -0
- package/dist/multistream/codec/constants.js.map +1 -0
- package/dist/multistream/mediaRequestManager.js +62 -15
- package/dist/multistream/mediaRequestManager.js.map +1 -1
- package/dist/multistream/receiveSlot.js +9 -0
- package/dist/multistream/receiveSlot.js.map +1 -1
- package/dist/multistream/remoteMediaManager.js +32 -4
- package/dist/multistream/remoteMediaManager.js.map +1 -1
- package/dist/multistream/sendSlotManager.js +127 -3
- package/dist/multistream/sendSlotManager.js.map +1 -1
- package/dist/reachability/clusterReachability.js.map +1 -1
- package/dist/reachability/index.js +121 -83
- package/dist/reachability/index.js.map +1 -1
- package/dist/reachability/reachability.types.js +2 -0
- package/dist/reachability/reachability.types.js.map +1 -1
- package/dist/reachability/util.js +45 -0
- package/dist/reachability/util.js.map +1 -1
- package/dist/reactions/reactions.type.js.map +1 -1
- package/dist/recording-controller/index.js +1 -3
- package/dist/recording-controller/index.js.map +1 -1
- package/dist/roap/turnDiscovery.js +8 -1
- package/dist/roap/turnDiscovery.js.map +1 -1
- package/dist/types/annotation/index.d.ts +19 -0
- package/dist/types/common/errors/webex-errors.d.ts +36 -2
- package/dist/types/common/wasm-loader.d.ts +55 -0
- package/dist/types/config.d.ts +5 -2
- package/dist/types/constants.d.ts +15 -2
- package/dist/types/controls-options-manager/constants.d.ts +6 -1
- package/dist/types/controls-options-manager/index.d.ts +16 -0
- package/dist/types/e2ee/E2eeManager.d.ts +23 -0
- package/dist/types/e2ee/E2eeSignaling.d.ts +94 -0
- package/dist/types/e2ee/MediaEncryptionService.d.ts +27 -0
- package/dist/types/e2ee/mls.d.ts +191 -0
- package/dist/types/e2ee/types.d.ts +104 -0
- package/dist/types/hashTree/constants.d.ts +2 -0
- package/dist/types/hashTree/hashTreeParser.d.ts +230 -18
- package/dist/types/hashTree/utils.d.ts +18 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/interceptors/locusRetry.d.ts +4 -4
- package/dist/types/interpretation/interpretation.types.d.ts +10 -0
- package/dist/types/locus-info/index.d.ts +151 -15
- package/dist/types/locus-info/infoUtils.d.ts +8 -0
- package/dist/types/locus-info/types.d.ts +28 -1
- package/dist/types/media/MediaConnectionAwaiter.d.ts +66 -49
- package/dist/types/media/properties.d.ts +6 -2
- package/dist/types/meeting/in-meeting-actions.d.ts +4 -0
- package/dist/types/meeting/index.d.ts +247 -13
- package/dist/types/meeting/locusMediaRequest.d.ts +12 -0
- package/dist/types/meeting/request.d.ts +1 -0
- package/dist/types/meeting/util.d.ts +12 -1
- package/dist/types/meeting-info/meeting-info-v2.d.ts +1 -0
- package/dist/types/meetings/index.d.ts +44 -19
- package/dist/types/meetings/meetings.types.d.ts +15 -0
- package/dist/types/meetings/request.d.ts +14 -0
- package/dist/types/member/index.d.ts +1 -0
- package/dist/types/member/types.d.ts +1 -0
- package/dist/types/member/util.d.ts +9 -0
- package/dist/types/members/index.d.ts +15 -2
- package/dist/types/members/util.d.ts +1 -5
- package/dist/types/metrics/constants.d.ts +10 -0
- package/dist/types/multistream/codec/constants.d.ts +7 -0
- package/dist/types/multistream/mediaRequestManager.d.ts +22 -5
- package/dist/types/multistream/remoteMediaManager.d.ts +18 -0
- package/dist/types/multistream/sendSlotManager.d.ts +28 -2
- package/dist/types/reachability/clusterReachability.d.ts +3 -3
- package/dist/types/reachability/index.d.ts +10 -3
- package/dist/types/reachability/reachability.types.d.ts +7 -0
- package/dist/types/reachability/util.d.ts +17 -0
- package/dist/types/reactions/reactions.type.d.ts +3 -0
- package/dist/webinar/index.js +539 -245
- package/dist/webinar/index.js.map +1 -1
- package/package.json +26 -24
- package/src/aiEnableRequest/ai-docs/ai-enable-request-spec.md +223 -0
- package/src/aiEnableRequest/index.ts +16 -0
- package/src/annotation/ai-docs/annotation-spec.md +236 -0
- package/src/annotation/index.ts +61 -29
- package/src/breakouts/ai-docs/breakouts-spec.md +324 -0
- package/src/breakouts/breakout.ts +3 -1
- package/src/breakouts/events.ts +33 -11
- package/src/breakouts/index.ts +145 -3
- package/src/common/errors/webex-errors.ts +56 -3
- package/src/common/wasm-loader.ts +124 -0
- package/src/config.ts +9 -3
- package/src/constants.ts +23 -4
- package/src/controls-options-manager/ai-docs/controls-options-manager-spec.md +243 -0
- package/src/controls-options-manager/constants.ts +14 -1
- package/src/controls-options-manager/index.ts +87 -28
- package/src/controls-options-manager/util.ts +81 -1
- package/src/e2ee/E2eeManager.ts +58 -0
- package/src/e2ee/E2eeSignaling.ts +215 -0
- package/src/e2ee/MediaEncryptionService.ts +41 -0
- package/src/e2ee/mls.ts +548 -0
- package/src/e2ee/types.ts +114 -0
- package/src/e2ee/wasm.d.ts +153 -0
- package/src/hashTree/ai-docs/hash-tree-spec.md +267 -0
- package/src/hashTree/constants.ts +16 -0
- package/src/hashTree/hashTreeParser.ts +1021 -214
- package/src/hashTree/utils.ts +36 -0
- package/src/index.ts +7 -0
- package/src/interceptors/ai-docs/interceptors-spec.md +247 -0
- package/src/interceptors/dataChannelAuthToken.ts +59 -12
- package/src/interceptors/locusRetry.ts +26 -5
- package/src/interpretation/ai-docs/interpretation-spec.md +256 -0
- package/src/interpretation/index.ts +65 -10
- package/src/interpretation/interpretation.types.ts +11 -0
- package/src/locus-info/ai-docs/locus-info-spec.md +293 -0
- package/src/locus-info/controlsUtils.ts +3 -1
- package/src/locus-info/index.ts +907 -184
- package/src/locus-info/infoUtils.ts +41 -6
- package/src/locus-info/types.ts +33 -1
- package/src/media/MediaConnectionAwaiter.ts +229 -196
- package/src/media/ai-docs/media-spec.md +267 -0
- package/src/media/index.ts +10 -1
- package/src/media/properties.ts +8 -3
- package/src/meeting/ai-docs/meeting-spec.md +404 -0
- package/src/meeting/in-meeting-actions.ts +8 -0
- package/src/meeting/index.ts +1237 -254
- package/src/meeting/locusMediaRequest.ts +106 -6
- package/src/meeting/muteState.ts +10 -1
- package/src/meeting/request.ts +11 -0
- package/src/meeting/util.ts +53 -8
- package/src/meeting/voicea-meeting.ts +1 -1
- package/src/meeting-info/ai-docs/meeting-info-spec.md +261 -0
- package/src/meeting-info/meeting-info-v2.ts +11 -4
- package/src/meetings/ai-docs/meetings-spec.md +298 -0
- package/src/meetings/index.ts +242 -80
- package/src/meetings/meetings.types.ts +19 -0
- package/src/meetings/request.ts +43 -0
- package/src/meetings/util.ts +117 -4
- package/src/member/ai-docs/member-spec.md +196 -0
- package/src/member/index.ts +10 -0
- package/src/member/types.ts +1 -0
- package/src/member/util.ts +29 -0
- package/src/members/ai-docs/members-spec.md +256 -0
- package/src/members/index.ts +70 -7
- package/src/members/util.ts +12 -4
- package/src/metrics/ai-docs/metrics-spec.md +185 -0
- package/src/metrics/constants.ts +11 -0
- package/src/multistream/ai-docs/multistream-spec.md +295 -0
- package/src/multistream/codec/constants.ts +58 -0
- package/src/multistream/mediaRequestManager.ts +119 -28
- package/src/multistream/receiveSlot.ts +18 -0
- package/src/multistream/remoteMediaManager.ts +23 -1
- package/src/multistream/sendSlotManager.ts +112 -4
- package/src/personal-meeting-room/ai-docs/personal-meeting-room-spec.md +234 -0
- package/src/reachability/ai-docs/reachability-spec.md +261 -0
- package/src/reachability/clusterReachability.ts +3 -2
- package/src/reachability/index.ts +47 -16
- package/src/reachability/reachability.types.ts +11 -0
- package/src/reachability/util.ts +36 -0
- package/src/reactions/ai-docs/reactions-spec.md +198 -0
- package/src/reactions/reactions.type.ts +3 -0
- package/src/reconnection-manager/ai-docs/reconnection-manager-spec.md +272 -0
- package/src/recording-controller/ai-docs/recording-controller-spec.md +223 -0
- package/src/recording-controller/index.ts +1 -2
- package/src/roap/ai-docs/roap-spec.md +241 -0
- package/src/roap/turnDiscovery.ts +9 -1
- package/src/webinar/ai-docs/webinar-spec.md +243 -0
- package/src/webinar/index.ts +333 -73
- package/test/unit/spec/aiEnableRequest/index.ts +86 -0
- package/test/unit/spec/annotation/index.ts +214 -182
- package/test/unit/spec/breakouts/breakout.ts +9 -3
- package/test/unit/spec/breakouts/events.ts +120 -2
- package/test/unit/spec/breakouts/index.ts +336 -15
- package/test/unit/spec/common/errors/webex-errors.ts +78 -0
- package/test/unit/spec/common/wasm-loader.ts +171 -0
- package/test/unit/spec/controls-options-manager/index.js +244 -29
- package/test/unit/spec/controls-options-manager/util.js +165 -0
- package/test/unit/spec/e2ee/E2eeManager.ts +82 -0
- package/test/unit/spec/e2ee/E2eeSignaling.ts +172 -0
- package/test/unit/spec/e2ee/MediaEncryptionService.ts +43 -0
- package/test/unit/spec/e2ee/mls.ts +765 -0
- package/test/unit/spec/hashTree/hashTreeParser.ts +3126 -238
- package/test/unit/spec/hashTree/utils.ts +125 -1
- package/test/unit/spec/interceptors/dataChannelAuthToken.ts +179 -1
- package/test/unit/spec/interceptors/locusRetry.ts +234 -5
- package/test/unit/spec/interpretation/index.ts +119 -4
- package/test/unit/spec/locus-info/controlsUtils.js +172 -57
- package/test/unit/spec/locus-info/index.js +1880 -136
- package/test/unit/spec/locus-info/infoUtils.js +184 -1
- package/test/unit/spec/media/MediaConnectionAwaiter.ts +479 -17
- package/test/unit/spec/media/index.ts +92 -0
- package/test/unit/spec/media/properties.ts +26 -26
- package/test/unit/spec/meeting/in-meeting-actions.ts +4 -0
- package/test/unit/spec/meeting/index.js +3697 -501
- package/test/unit/spec/meeting/locusMediaRequest.ts +406 -4
- package/test/unit/spec/meeting/muteState.js +81 -0
- package/test/unit/spec/meeting/request.js +12 -0
- package/test/unit/spec/meeting/utils.js +206 -16
- package/test/unit/spec/meeting/voicea-meeting.ts +85 -1
- package/test/unit/spec/meeting-info/index.js +2 -3
- package/test/unit/spec/meeting-info/meetinginfov2.js +88 -11
- package/test/unit/spec/meetings/index.js +606 -53
- package/test/unit/spec/meetings/request.js +141 -0
- package/test/unit/spec/meetings/utils.js +402 -51
- package/test/unit/spec/member/index.js +7 -0
- package/test/unit/spec/member/util.js +89 -0
- package/test/unit/spec/members/index.js +216 -0
- package/test/unit/spec/members/request.js +37 -1
- package/test/unit/spec/members/utils.js +63 -0
- package/test/unit/spec/multistream/mediaRequestManager.ts +501 -37
- package/test/unit/spec/multistream/remoteMediaManager.ts +46 -0
- package/test/unit/spec/multistream/sendSlotManager.ts +165 -38
- package/test/unit/spec/reachability/index.ts +128 -46
- package/test/unit/spec/reachability/util.ts +31 -0
- package/test/unit/spec/recording-controller/index.js +9 -8
- package/test/unit/spec/roap/turnDiscovery.ts +20 -0
- package/test/unit/spec/webinar/index.ts +982 -328
package/dist/meetings/index.js
CHANGED
|
@@ -14,12 +14,13 @@ _Object$defineProperty(exports, "__esModule", {
|
|
|
14
14
|
value: true
|
|
15
15
|
});
|
|
16
16
|
exports.default = void 0;
|
|
17
|
+
var _regenerator = _interopRequireDefault(require("@babel/runtime-corejs2/regenerator"));
|
|
18
|
+
var _stringify = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/json/stringify"));
|
|
17
19
|
var _map = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/map"));
|
|
18
20
|
var _promise = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/promise"));
|
|
19
21
|
var _now = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/date/now"));
|
|
20
22
|
var _keys = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/object/keys"));
|
|
21
23
|
var _values = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/object/values"));
|
|
22
|
-
var _regenerator = _interopRequireDefault(require("@babel/runtime-corejs2/regenerator"));
|
|
23
24
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/toConsumableArray"));
|
|
24
25
|
var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/asyncToGenerator"));
|
|
25
26
|
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/possibleConstructorReturn"));
|
|
@@ -29,6 +30,7 @@ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs2/he
|
|
|
29
30
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/classCallCheck"));
|
|
30
31
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/createClass"));
|
|
31
32
|
var _lodash = require("lodash");
|
|
33
|
+
var _webCapabilities = require("@webex/web-capabilities");
|
|
32
34
|
require("@webex/internal-plugin-mercury");
|
|
33
35
|
require("@webex/internal-plugin-conversation");
|
|
34
36
|
require("@webex/internal-plugin-metrics");
|
|
@@ -44,11 +46,13 @@ var _request = _interopRequireDefault(require("../common/logs/request"));
|
|
|
44
46
|
var _triggerProxy = _interopRequireDefault(require("../common/events/trigger-proxy"));
|
|
45
47
|
var _media = _interopRequireDefault(require("../media"));
|
|
46
48
|
var _util = _interopRequireDefault(require("../meeting/util"));
|
|
49
|
+
var _wasmLoader = _interopRequireDefault(require("../common/wasm-loader"));
|
|
50
|
+
var _E2eeManager = _interopRequireDefault(require("../e2ee/E2eeManager"));
|
|
47
51
|
var _constants = require("../constants");
|
|
48
52
|
var _constants2 = _interopRequireDefault(require("../metrics/constants"));
|
|
49
53
|
var _meetingInfo = _interopRequireDefault(require("../meeting-info"));
|
|
50
54
|
var _meetingInfoV = _interopRequireDefault(require("../meeting-info/meeting-info-v2"));
|
|
51
|
-
var _meeting =
|
|
55
|
+
var _meeting = _interopRequireWildcard(require("../meeting"));
|
|
52
56
|
var _personalMeetingRoom = _interopRequireDefault(require("../personal-meeting-room"));
|
|
53
57
|
var _reachability = _interopRequireDefault(require("../reachability"));
|
|
54
58
|
var _request2 = _interopRequireDefault(require("./request"));
|
|
@@ -64,7 +68,7 @@ var _noMeetingInfo = _interopRequireDefault(require("../common/errors/no-meeting
|
|
|
64
68
|
var _joinForbiddenError = _interopRequireDefault(require("../common/errors/join-forbidden-error"));
|
|
65
69
|
var _utils = require("../hashTree/utils");
|
|
66
70
|
var _locusInfo = require("../locus-info");
|
|
67
|
-
function _interopRequireWildcard(e, t) { if ("function" == typeof _WeakMap) var r = new _WeakMap(), n = new _WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var
|
|
71
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof _WeakMap) var r = new _WeakMap(), n = new _WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t4 in e) "default" !== _t4 && {}.hasOwnProperty.call(e, _t4) && ((i = (o = _Object$defineProperty) && _Object$getOwnPropertyDescriptor(e, _t4)) && (i.get || i.set) ? o(f, _t4, i) : f[_t4] = e[_t4]); return f; })(e, t); }
|
|
68
72
|
function ownKeys(e, r) { var t = _Object$keys2(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
69
73
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
70
74
|
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2.default)(o), (0, _possibleConstructorReturn2.default)(t, _isNativeReflectConstruct() ? _Reflect$construct(o, e || [], (0, _getPrototypeOf2.default)(t).constructor) : o.apply(t, e)); }
|
|
@@ -204,6 +208,53 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
204
208
|
(0, _defineProperty2.default)(_this, "breakoutLocusForHandleLater", void 0);
|
|
205
209
|
(0, _defineProperty2.default)(_this, "namespace", _constants.MEETINGS);
|
|
206
210
|
(0, _defineProperty2.default)(_this, "registrationStatus", void 0);
|
|
211
|
+
(0, _defineProperty2.default)(_this, "wasmLoader", void 0);
|
|
212
|
+
(0, _defineProperty2.default)(_this, "e2eeManager", void 0);
|
|
213
|
+
/**
|
|
214
|
+
* Emits a metric describing how well this browser runs WebAssembly, used to spot browsers
|
|
215
|
+
* where real-time WASM effects (e.g. background noise removal) run poorly.
|
|
216
|
+
*
|
|
217
|
+
* @param {string} correlationId - correlation id to report the result against
|
|
218
|
+
* @returns {void}
|
|
219
|
+
*/
|
|
220
|
+
(0, _defineProperty2.default)(_this, "emitWasmRuntimePerformance", (0, _lodash.once)(function (correlationId) {
|
|
221
|
+
// Probe and telemetry failures must not prevent meeting creation.
|
|
222
|
+
_webCapabilities.WasmRuntimeProbe.check().then(function (result) {
|
|
223
|
+
var status = result.status,
|
|
224
|
+
capability = result.capability,
|
|
225
|
+
reason = result.reason,
|
|
226
|
+
measurements = result.measurements;
|
|
227
|
+
var _ref = measurements !== null && measurements !== void 0 ? measurements : {},
|
|
228
|
+
_ref$divRatio = _ref.divRatio,
|
|
229
|
+
divRatio = _ref$divRatio === void 0 ? null : _ref$divRatio,
|
|
230
|
+
_ref$sqrtRatio = _ref.sqrtRatio,
|
|
231
|
+
sqrtRatio = _ref$sqrtRatio === void 0 ? null : _ref$sqrtRatio,
|
|
232
|
+
_ref$addNsPerOp = _ref.addNsPerOp,
|
|
233
|
+
addNsPerOp = _ref$addNsPerOp === void 0 ? null : _ref$addNsPerOp,
|
|
234
|
+
_ref$addMedianMs = _ref.addMedianMs,
|
|
235
|
+
addMedianMs = _ref$addMedianMs === void 0 ? null : _ref$addMedianMs,
|
|
236
|
+
_ref$divMedianMs = _ref.divMedianMs,
|
|
237
|
+
divMedianMs = _ref$divMedianMs === void 0 ? null : _ref$divMedianMs,
|
|
238
|
+
_ref$sqrtMedianMs = _ref.sqrtMedianMs,
|
|
239
|
+
sqrtMedianMs = _ref$sqrtMedianMs === void 0 ? null : _ref$sqrtMedianMs;
|
|
240
|
+
var measurementsLog = (0, _stringify.default)(measurements);
|
|
241
|
+
_loggerProxy.default.logger.log("Meetings:index#emitWasmRuntimePerformance --> WASM runtime performance status: ".concat(status, ", capability: ").concat(capability, ", reason: ").concat(reason, ", measurements: ").concat(measurementsLog));
|
|
242
|
+
return _metrics.default.sendBehavioralMetric(_constants2.default.WASM_RUNTIME_PERFORMANCE, {
|
|
243
|
+
status: status,
|
|
244
|
+
capability: capability,
|
|
245
|
+
reason: reason,
|
|
246
|
+
divRatio: divRatio,
|
|
247
|
+
sqrtRatio: sqrtRatio,
|
|
248
|
+
addNsPerOp: addNsPerOp,
|
|
249
|
+
addMedianMs: addMedianMs,
|
|
250
|
+
divMedianMs: divMedianMs,
|
|
251
|
+
sqrtMedianMs: sqrtMedianMs,
|
|
252
|
+
correlation_id: correlationId
|
|
253
|
+
});
|
|
254
|
+
}).catch(function (error) {
|
|
255
|
+
_loggerProxy.default.logger.error("Meetings:index#emitWasmRuntimePerformance --> ERROR, failed to probe or report WASM runtime performance: ".concat(error.message));
|
|
256
|
+
});
|
|
257
|
+
}));
|
|
207
258
|
/**
|
|
208
259
|
* Creates a noise reduction effect
|
|
209
260
|
*
|
|
@@ -213,7 +264,7 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
213
264
|
* @memberof Meetings
|
|
214
265
|
*/
|
|
215
266
|
(0, _defineProperty2.default)(_this, "createNoiseReductionEffect", /*#__PURE__*/function () {
|
|
216
|
-
var
|
|
267
|
+
var _ref2 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee(options) {
|
|
217
268
|
var authToken;
|
|
218
269
|
return _regenerator.default.wrap(function (_context) {
|
|
219
270
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -230,7 +281,7 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
230
281
|
}, _callee);
|
|
231
282
|
}));
|
|
232
283
|
return function (_x) {
|
|
233
|
-
return
|
|
284
|
+
return _ref2.apply(this, arguments);
|
|
234
285
|
};
|
|
235
286
|
}());
|
|
236
287
|
/**
|
|
@@ -242,7 +293,7 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
242
293
|
* @memberof Meetings
|
|
243
294
|
*/
|
|
244
295
|
(0, _defineProperty2.default)(_this, "createVirtualBackgroundEffect", /*#__PURE__*/function () {
|
|
245
|
-
var
|
|
296
|
+
var _ref3 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2(options) {
|
|
246
297
|
var authToken;
|
|
247
298
|
return _regenerator.default.wrap(function (_context2) {
|
|
248
299
|
while (1) switch (_context2.prev = _context2.next) {
|
|
@@ -259,7 +310,7 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
259
310
|
}, _callee2);
|
|
260
311
|
}));
|
|
261
312
|
return function (_x2) {
|
|
262
|
-
return
|
|
313
|
+
return _ref3.apply(this, arguments);
|
|
263
314
|
};
|
|
264
315
|
}());
|
|
265
316
|
_this.mediaHelpers = mediaHelpersModule;
|
|
@@ -338,6 +389,9 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
338
389
|
_this.media = {
|
|
339
390
|
getUserMedia: _media.default.getUserMedia
|
|
340
391
|
};
|
|
392
|
+
|
|
393
|
+
// Shared runtime cache for WASM modules used by meetings.
|
|
394
|
+
_this.wasmLoader = new _wasmLoader.default();
|
|
341
395
|
_this.onReady();
|
|
342
396
|
return _this;
|
|
343
397
|
}
|
|
@@ -354,11 +408,11 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
354
408
|
return (0, _createClass2.default)(Meetings, [{
|
|
355
409
|
key: "isNeedHandleMainLocus",
|
|
356
410
|
value: function isNeedHandleMainLocus(meeting, newLocus) {
|
|
357
|
-
var _newLocus$controls, _newLocus$controls$br, _newLocus$self,
|
|
411
|
+
var _newLocus$controls, _newLocus$controls$br, _newLocus$self, _breakoutLocus$joined, _newLocus$self2;
|
|
358
412
|
var breakoutUrl = (_newLocus$controls = newLocus.controls) === null || _newLocus$controls === void 0 ? void 0 : (_newLocus$controls$br = _newLocus$controls.breakout) === null || _newLocus$controls$br === void 0 ? void 0 : _newLocus$controls$br.url;
|
|
359
413
|
var breakoutLocus = this.meetingCollection.getActiveBreakoutLocus(breakoutUrl);
|
|
360
414
|
var isSelfJoined = (newLocus === null || newLocus === void 0 ? void 0 : (_newLocus$self = newLocus.self) === null || _newLocus$self === void 0 ? void 0 : _newLocus$self.state) === _constants._JOINED_;
|
|
361
|
-
var isSelfMoved =
|
|
415
|
+
var isSelfMoved = _util2.default.isSelfMovedOrBreakoutEnded(newLocus);
|
|
362
416
|
// @ts-ignore
|
|
363
417
|
var deviceFromNewLocus = _util2.default.getThisDevice(newLocus, this.webex.internal.device.url);
|
|
364
418
|
var isResourceMovedOnThisDevice = (deviceFromNewLocus === null || deviceFromNewLocus === void 0 ? void 0 : deviceFromNewLocus.state) === _constants._LEFT_ && (deviceFromNewLocus === null || deviceFromNewLocus === void 0 ? void 0 : deviceFromNewLocus.reason) === _constants._MOVED_;
|
|
@@ -383,7 +437,7 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
383
437
|
_loggerProxy.default.logger.log("Meetings:index#isNeedHandleMainLocus --> there is active breakout session and joined on this device, and don't need to handle main session: ".concat(breakoutUrl));
|
|
384
438
|
return false;
|
|
385
439
|
}
|
|
386
|
-
if (isSelfMoved && (newLocus !== null && newLocus !== void 0 && (_newLocus$
|
|
440
|
+
if (isSelfMoved && (newLocus !== null && newLocus !== void 0 && (_newLocus$self2 = newLocus.self) !== null && _newLocus$self2 !== void 0 && _newLocus$self2.removed || isResourceMovedOnThisDevice)) {
|
|
387
441
|
_loggerProxy.default.logger.log('Meetings:index#isNeedHandleMainLocus --> self moved main locus with self removed status or with device resource moved, not need to handle');
|
|
388
442
|
return false;
|
|
389
443
|
}
|
|
@@ -407,15 +461,15 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
407
461
|
key: "isNeedHandleLocusDTO",
|
|
408
462
|
value: function isNeedHandleLocusDTO(meeting, newLocus) {
|
|
409
463
|
if (newLocus) {
|
|
410
|
-
var _newLocus$
|
|
464
|
+
var _newLocus$self3, _newLocus$self3$devic, _newLocus$self3$devic2, _newLocus$self4, _newLocus$self4$devic, _newLocus$self4$devic2;
|
|
411
465
|
var isNewLocusAsBreakout = _util2.default.isBreakoutLocusDTO(newLocus);
|
|
412
|
-
var isSelfMoved =
|
|
413
|
-
var isSelfMovedToLobby = (newLocus === null || newLocus === void 0 ? void 0 : (_newLocus$
|
|
466
|
+
var isSelfMoved = _util2.default.isSelfMovedOrBreakoutEnded(newLocus);
|
|
467
|
+
var isSelfMovedToLobby = (newLocus === null || newLocus === void 0 ? void 0 : (_newLocus$self3 = newLocus.self) === null || _newLocus$self3 === void 0 ? void 0 : (_newLocus$self3$devic = _newLocus$self3.devices[0]) === null || _newLocus$self3$devic === void 0 ? void 0 : (_newLocus$self3$devic2 = _newLocus$self3$devic.intent) === null || _newLocus$self3$devic2 === void 0 ? void 0 : _newLocus$self3$devic2.reason) === _constants._ON_HOLD_LOBBY_ && (newLocus === null || newLocus === void 0 ? void 0 : (_newLocus$self4 = newLocus.self) === null || _newLocus$self4 === void 0 ? void 0 : (_newLocus$self4$devic = _newLocus$self4.devices[0]) === null || _newLocus$self4$devic === void 0 ? void 0 : (_newLocus$self4$devic2 = _newLocus$self4$devic.intent) === null || _newLocus$self4$devic2 === void 0 ? void 0 : _newLocus$self4$devic2.type) === _constants._WAIT_;
|
|
414
468
|
if (!meeting) {
|
|
415
469
|
if (isNewLocusAsBreakout) {
|
|
416
|
-
var _newLocus$fullState, _newLocus$
|
|
470
|
+
var _newLocus$fullState, _newLocus$self5;
|
|
417
471
|
_loggerProxy.default.logger.log("Meetings:index#isNeedHandleLocusDTO --> the first breakout session locusDTO active status: ".concat((_newLocus$fullState = newLocus.fullState) === null || _newLocus$fullState === void 0 ? void 0 : _newLocus$fullState.active));
|
|
418
|
-
return ((_newLocus$
|
|
472
|
+
return ((_newLocus$self5 = newLocus.self) === null || _newLocus$self5 === void 0 ? void 0 : _newLocus$self5.state) === _constants._JOINED_;
|
|
419
473
|
}
|
|
420
474
|
return this.isNeedHandleMainLocus(meeting, newLocus);
|
|
421
475
|
}
|
|
@@ -449,6 +503,13 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
449
503
|
if (existingMeeting) {
|
|
450
504
|
return existingMeeting;
|
|
451
505
|
}
|
|
506
|
+
if (data.eventType === _constants.LOCUSEVENT.HASH_TREE_DATA_UPDATED) {
|
|
507
|
+
// need to check if maybe this event indicates a move to/from breakout
|
|
508
|
+
var meetingForHashTreeMessage = (0, _locusInfo.findMeetingForHashTreeMessage)(data === null || data === void 0 ? void 0 : data.stateElementsMessage, this.meetingCollection);
|
|
509
|
+
if (meetingForHashTreeMessage) {
|
|
510
|
+
return meetingForHashTreeMessage;
|
|
511
|
+
}
|
|
512
|
+
}
|
|
452
513
|
|
|
453
514
|
// if that didn't work, fallback to other fields like correlationId, sipUri, etc
|
|
454
515
|
|
|
@@ -484,6 +545,10 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
484
545
|
var _this2 = this;
|
|
485
546
|
var useRandomDelayForInfo = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
486
547
|
var meeting = this.getCorrespondingMeetingByLocus(data);
|
|
548
|
+
// @ts-ignore
|
|
549
|
+
if (this.config.experimental.storeLocusHashTreeEventsForDebugging) {
|
|
550
|
+
(0, _meeting.storeEventForDebugging)('mercury', data);
|
|
551
|
+
}
|
|
487
552
|
|
|
488
553
|
// Special case when locus has got replaced, This only happend once if a replace locus exists
|
|
489
554
|
// https://sqbu-github.cisco.com/WebExSquared/locus/wiki/Locus-changing-mid-call
|
|
@@ -495,7 +560,7 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
495
560
|
meeting = this.meetingCollection.getByKey(_meetings.MEETING_KEY.LOCUS_URL, data.locus.replaces[data.locus.replaces.length - 1].locusUrl);
|
|
496
561
|
}
|
|
497
562
|
if (meeting && !_util2.default.isBreakoutLocusDTO(data.locus)) {
|
|
498
|
-
meeting.locusInfo.updateMainSessionLocusCache(data.locus);
|
|
563
|
+
meeting.locusInfo.updateMainSessionLocusCache(data.locus); // here data.locus will never be a complete locus
|
|
499
564
|
}
|
|
500
565
|
if (!this.isNeedHandleLocusDTO(meeting, data.locus)) {
|
|
501
566
|
_loggerProxy.default.logger.log("Meetings:index#handleLocusEvent --> doesn't need to process locus event");
|
|
@@ -547,7 +612,7 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
547
612
|
return;
|
|
548
613
|
}
|
|
549
614
|
this.create(data.locus, _constants.DESTINATION_TYPE.LOCUS_ID, useRandomDelayForInfo).then(/*#__PURE__*/function () {
|
|
550
|
-
var
|
|
615
|
+
var _ref4 = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee3(newMeeting) {
|
|
551
616
|
var _t;
|
|
552
617
|
return _regenerator.default.wrap(function (_context3) {
|
|
553
618
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -559,6 +624,8 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
559
624
|
trigger: data.eventType === _constants.LOCUSEVENT.SDK_LOCUS_FROM_SYNC_MEETINGS ? 'get-loci-response' : 'locus-message',
|
|
560
625
|
locus: data.locus,
|
|
561
626
|
hashTreeMessage: data.stateElementsMessage
|
|
627
|
+
}, function (locus) {
|
|
628
|
+
meeting.finalizeMeetingAfterInitialLocusSetup(locus);
|
|
562
629
|
});
|
|
563
630
|
case 2:
|
|
564
631
|
_context3.next = 4;
|
|
@@ -578,7 +645,7 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
578
645
|
}, _callee3, null, [[1, 3]]);
|
|
579
646
|
}));
|
|
580
647
|
return function (_x3) {
|
|
581
|
-
return
|
|
648
|
+
return _ref4.apply(this, arguments);
|
|
582
649
|
};
|
|
583
650
|
}()).catch(function (e) {
|
|
584
651
|
_loggerProxy.default.logger.error(e);
|
|
@@ -670,8 +737,13 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
670
737
|
|
|
671
738
|
// @ts-ignore
|
|
672
739
|
this.webex.internal.mercury.on(_constants.ONLINE, function () {
|
|
740
|
+
// Fire-and-forget sync on socket recovery. Unlike the reconnection manager (which awaits and
|
|
741
|
+
// retries), nothing consumes this promise, so catch its rejection to avoid an unhandled
|
|
742
|
+
// promise rejection (a transient guest classic-sync failure would otherwise crash Node hosts).
|
|
673
743
|
_this3.syncMeetings({
|
|
674
744
|
keepOnlyLocusMeetings: false
|
|
745
|
+
}).catch(function (error) {
|
|
746
|
+
_loggerProxy.default.logger.warn("Meetings:index#listenForEvents --> syncMeetings after ONLINE event failed: ".concat(error));
|
|
675
747
|
});
|
|
676
748
|
});
|
|
677
749
|
|
|
@@ -718,6 +790,13 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
718
790
|
mediaLogger = new MediaLogger();
|
|
719
791
|
(0, _internalMediaCore.setLogger)(mediaLogger);
|
|
720
792
|
|
|
793
|
+
// Construct after READY because the manager uses the initialized webex client and config.
|
|
794
|
+
// @ts-ignore
|
|
795
|
+
_this4.e2eeManager = new _E2eeManager.default({
|
|
796
|
+
webex: _this4.webex,
|
|
797
|
+
wasmLoader: _this4.wasmLoader
|
|
798
|
+
});
|
|
799
|
+
|
|
721
800
|
/**
|
|
722
801
|
* The MeetingInfo object to interact with server
|
|
723
802
|
* @instance
|
|
@@ -811,46 +890,6 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
811
890
|
}
|
|
812
891
|
}
|
|
813
892
|
|
|
814
|
-
/**
|
|
815
|
-
* API to toggle TCP reachability, needs to be called before webex.meetings.register()
|
|
816
|
-
* @param {Boolean} newValue
|
|
817
|
-
* @private
|
|
818
|
-
* @memberof Meetings
|
|
819
|
-
* @returns {undefined}
|
|
820
|
-
*/
|
|
821
|
-
}, {
|
|
822
|
-
key: "_toggleTcpReachability",
|
|
823
|
-
value: function _toggleTcpReachability(newValue) {
|
|
824
|
-
if (typeof newValue !== 'boolean') {
|
|
825
|
-
return;
|
|
826
|
-
}
|
|
827
|
-
// @ts-ignore
|
|
828
|
-
if (this.config.experimental.enableTcpReachability !== newValue) {
|
|
829
|
-
// @ts-ignore
|
|
830
|
-
this.config.experimental.enableTcpReachability = newValue;
|
|
831
|
-
}
|
|
832
|
-
}
|
|
833
|
-
|
|
834
|
-
/**
|
|
835
|
-
* API to toggle TLS reachability, needs to be called before webex.meetings.register()
|
|
836
|
-
* @param {Boolean} newValue
|
|
837
|
-
* @private
|
|
838
|
-
* @memberof Meetings
|
|
839
|
-
* @returns {undefined}
|
|
840
|
-
*/
|
|
841
|
-
}, {
|
|
842
|
-
key: "_toggleTlsReachability",
|
|
843
|
-
value: function _toggleTlsReachability(newValue) {
|
|
844
|
-
if (typeof newValue !== 'boolean') {
|
|
845
|
-
return;
|
|
846
|
-
}
|
|
847
|
-
// @ts-ignore
|
|
848
|
-
if (this.config.experimental.enableTlsReachability !== newValue) {
|
|
849
|
-
// @ts-ignore
|
|
850
|
-
this.config.experimental.enableTlsReachability = newValue;
|
|
851
|
-
}
|
|
852
|
-
}
|
|
853
|
-
|
|
854
893
|
/**
|
|
855
894
|
* API to toggle backend ipv6 native support config, needs to be called before webex.meetings.register()
|
|
856
895
|
*
|
|
@@ -916,6 +955,29 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
916
955
|
}
|
|
917
956
|
}
|
|
918
957
|
|
|
958
|
+
/**
|
|
959
|
+
* API to toggle AV1 codec support for video slides in multistream,
|
|
960
|
+
* needs to be called before webex.meetings.joinWithMedia()
|
|
961
|
+
*
|
|
962
|
+
* @param {Boolean} newValue
|
|
963
|
+
* @private
|
|
964
|
+
* @memberof Meetings
|
|
965
|
+
* @returns {undefined}
|
|
966
|
+
*/
|
|
967
|
+
}, {
|
|
968
|
+
key: "_toggleEnableAv1SlidesSupport",
|
|
969
|
+
value: function _toggleEnableAv1SlidesSupport(newValue) {
|
|
970
|
+
if (typeof newValue !== 'boolean') {
|
|
971
|
+
return;
|
|
972
|
+
}
|
|
973
|
+
|
|
974
|
+
// @ts-ignore
|
|
975
|
+
if (this.config.enableAv1SlidesSupport !== newValue) {
|
|
976
|
+
// @ts-ignore
|
|
977
|
+
this.config.enableAv1SlidesSupport = newValue;
|
|
978
|
+
}
|
|
979
|
+
}
|
|
980
|
+
|
|
919
981
|
/**
|
|
920
982
|
* API to toggle stopping ICE Candidates Gathering after first relay candidate,
|
|
921
983
|
* needs to be called before webex.meetings.joinWithMedia()
|
|
@@ -1024,6 +1086,7 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
1024
1086
|
}), this.executeRegistrationStep(function () {
|
|
1025
1087
|
return _promise.default.resolve(_util2.default.checkH264Support.call(_this6));
|
|
1026
1088
|
}, 'checkH264Support')]).then(function () {
|
|
1089
|
+
var _this6$e2eeManager;
|
|
1027
1090
|
_this6.listenForEvents();
|
|
1028
1091
|
_triggerProxy.default.trigger(_this6, {
|
|
1029
1092
|
file: 'meetings',
|
|
@@ -1031,6 +1094,11 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
1031
1094
|
}, _constants.EVENT_TRIGGERS.MEETINGS_REGISTERED);
|
|
1032
1095
|
_this6.registered = true;
|
|
1033
1096
|
_metrics.default.sendBehavioralMetric(_constants2.default.MEETINGS_REGISTRATION_SUCCESS);
|
|
1097
|
+
|
|
1098
|
+
// Preload is best-effort and must not delay or fail Meetings registration.
|
|
1099
|
+
(_this6$e2eeManager = _this6.e2eeManager) === null || _this6$e2eeManager === void 0 ? void 0 : _this6$e2eeManager.preload().catch(function (error) {
|
|
1100
|
+
_loggerProxy.default.logger.warn("Meetings:index#register --> E2EE preload failed: ".concat((error === null || error === void 0 ? void 0 : error.message) || error));
|
|
1101
|
+
});
|
|
1034
1102
|
}).catch(function (error) {
|
|
1035
1103
|
_loggerProxy.default.logger.error("Meetings:index#register --> ERROR, Unable to register, ".concat(error.message));
|
|
1036
1104
|
_metrics.default.sendBehavioralMetric(_constants2.default.MEETINGS_REGISTRATION_FAILED, {
|
|
@@ -1261,6 +1329,31 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
1261
1329
|
return this.personalMeetingRoom;
|
|
1262
1330
|
}
|
|
1263
1331
|
|
|
1332
|
+
/**
|
|
1333
|
+
* Fetches site preferences for the provided Webex site, or the preferred Webex site.
|
|
1334
|
+
* This is used to determine capabilities of the site, such as whether scheduling a webinar is supported.
|
|
1335
|
+
*
|
|
1336
|
+
* @param {object} [options]
|
|
1337
|
+
* @param {string} [options.siteUrl] - Webex site URL. Defaults to preferredWebexSite, for example "cisco.webex.com".
|
|
1338
|
+
* @param {string} [options.siteName] - Site name query override. Defaults to the site name derived from siteUrl, for example "cisco" for "cisco.webex.com".
|
|
1339
|
+
* @param {SitePreferenceSelectOption[]} [options.selectOptions] - Preference sections to fetch. Defaults to 'scheduling'.
|
|
1340
|
+
* @returns {Promise<SitePreferencesResponse>} site preferences response body
|
|
1341
|
+
* @throws {ParameterError}
|
|
1342
|
+
* @public
|
|
1343
|
+
* @memberof Meetings
|
|
1344
|
+
* @example
|
|
1345
|
+
* const preferences = await webex.meetings.fetchSitePreferencesMeViaSite();
|
|
1346
|
+
* const supportScheduleWebinar = preferences?.scheduling?.supportScheduleWebinar;
|
|
1347
|
+
*/
|
|
1348
|
+
}, {
|
|
1349
|
+
key: "fetchSitePreferencesMeViaSite",
|
|
1350
|
+
value: function fetchSitePreferencesMeViaSite() {
|
|
1351
|
+
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
1352
|
+
return this.request.fetchSitePreferencesMeViaSite(_objectSpread(_objectSpread({}, options), {}, {
|
|
1353
|
+
siteUrl: options.siteUrl || this.preferredWebexSite
|
|
1354
|
+
}));
|
|
1355
|
+
}
|
|
1356
|
+
|
|
1264
1357
|
/**
|
|
1265
1358
|
* Returns basic information about a meeting that exists or
|
|
1266
1359
|
* used to exist in the MeetingCollection
|
|
@@ -1285,8 +1378,14 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
1285
1378
|
}, {
|
|
1286
1379
|
key: "destroy",
|
|
1287
1380
|
value: function destroy(meeting, reason) {
|
|
1288
|
-
var _meeting$locusInfo, _meeting$locusInfo2, _meeting$
|
|
1289
|
-
_util.default.cleanUp(meeting
|
|
1381
|
+
var _meeting$locusInfo, _meeting$locusInfo2, _meeting$locusInfo3, _meeting$locusInfo3$f, _meeting$locusInfo4, _meeting$locusInfo4$f;
|
|
1382
|
+
_util.default.cleanUp(meeting, {
|
|
1383
|
+
preserveVoiceaChannel: false
|
|
1384
|
+
});
|
|
1385
|
+
|
|
1386
|
+
// Tear down hash tree parsers here (and not in MeetingUtil.cleanUp) so they survive
|
|
1387
|
+
// leave/endMeetingForAll to consume the final sentinel END message from Locus.
|
|
1388
|
+
(_meeting$locusInfo = meeting.locusInfo) === null || _meeting$locusInfo === void 0 ? void 0 : _meeting$locusInfo.cleanUp();
|
|
1290
1389
|
// keep some basic info about the deleted meeting forever
|
|
1291
1390
|
this.deletedMeetings.set(meeting.id, {
|
|
1292
1391
|
id: meeting.id,
|
|
@@ -1298,10 +1397,10 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
1298
1397
|
meetingInfo: (0, _lodash.cloneDeep)(meeting.meetingInfo),
|
|
1299
1398
|
locusInfo: {
|
|
1300
1399
|
// locusInfo can be quite big, so keep just the minimal info
|
|
1301
|
-
url: (_meeting$
|
|
1400
|
+
url: (_meeting$locusInfo2 = meeting.locusInfo) === null || _meeting$locusInfo2 === void 0 ? void 0 : _meeting$locusInfo2.url,
|
|
1302
1401
|
fullState: {
|
|
1303
|
-
lastActive: (_meeting$
|
|
1304
|
-
sessionId: (_meeting$
|
|
1402
|
+
lastActive: (_meeting$locusInfo3 = meeting.locusInfo) === null || _meeting$locusInfo3 === void 0 ? void 0 : (_meeting$locusInfo3$f = _meeting$locusInfo3.fullState) === null || _meeting$locusInfo3$f === void 0 ? void 0 : _meeting$locusInfo3$f.lastActive,
|
|
1403
|
+
sessionId: (_meeting$locusInfo4 = meeting.locusInfo) === null || _meeting$locusInfo4 === void 0 ? void 0 : (_meeting$locusInfo4$f = _meeting$locusInfo4.fullState) === null || _meeting$locusInfo4$f === void 0 ? void 0 : _meeting$locusInfo4$f.sessionId
|
|
1305
1404
|
}
|
|
1306
1405
|
},
|
|
1307
1406
|
roles: meeting.roles,
|
|
@@ -1456,6 +1555,7 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
1456
1555
|
});
|
|
1457
1556
|
}
|
|
1458
1557
|
});
|
|
1558
|
+
_this1.emitWasmRuntimePerformance(createdMeeting.correlationId);
|
|
1459
1559
|
} else {
|
|
1460
1560
|
_loggerProxy.default.logger.error("Meetings:index#create --> ERROR, meeting does not have on method, will not be destroyed, meeting cleanup impossible for meeting: ".concat(meeting));
|
|
1461
1561
|
}
|
|
@@ -1553,6 +1653,8 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
1553
1653
|
isMeetingActive,
|
|
1554
1654
|
enableUnifiedMeetings,
|
|
1555
1655
|
meetingInfoOptions,
|
|
1656
|
+
shouldDeferMeetingInfoFetch,
|
|
1657
|
+
isOneOnOneCallLocus,
|
|
1556
1658
|
meetingAddedType,
|
|
1557
1659
|
_args4 = arguments,
|
|
1558
1660
|
_t2;
|
|
@@ -1607,16 +1709,18 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
1607
1709
|
extraParams: infoExtraParams,
|
|
1608
1710
|
sendCAevents: !!(callStateForMetrics !== null && callStateForMetrics !== void 0 && callStateForMetrics.correlationId) // if client sends correlation id as argument of public create(), then it means that this meeting creation is part of a pre-join intent from user
|
|
1609
1711
|
};
|
|
1712
|
+
shouldDeferMeetingInfoFetch = type === _constants.DESTINATION_TYPE.LOCUS_ID && !(destination !== null && destination !== void 0 && destination.info);
|
|
1713
|
+
isOneOnOneCallLocus = type === _constants.DESTINATION_TYPE.LOCUS_ID && _util2.default.isOneOnOneCall(destination);
|
|
1610
1714
|
if (!meetingInfo) {
|
|
1611
1715
|
_context4.next = 2;
|
|
1612
1716
|
break;
|
|
1613
1717
|
}
|
|
1614
1718
|
meeting.injectMeetingInfo(meetingInfo, meetingInfoOptions, meetingLookupUrl);
|
|
1615
|
-
_context4.next =
|
|
1719
|
+
_context4.next = 6;
|
|
1616
1720
|
break;
|
|
1617
1721
|
case 2:
|
|
1618
|
-
if (!(type !== _constants.DESTINATION_TYPE.ONE_ON_ONE_CALL)) {
|
|
1619
|
-
_context4.next =
|
|
1722
|
+
if (!(type !== _constants.DESTINATION_TYPE.ONE_ON_ONE_CALL && !isOneOnOneCallLocus)) {
|
|
1723
|
+
_context4.next = 6;
|
|
1620
1724
|
break;
|
|
1621
1725
|
}
|
|
1622
1726
|
if (!(enableUnifiedMeetings && !isMeetingActive && useRandomDelayForInfo && waitingTime > 0)) {
|
|
@@ -1627,41 +1731,54 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
1627
1731
|
return meeting.fetchMeetingInfo(meetingInfoOptions);
|
|
1628
1732
|
}, waitingTime);
|
|
1629
1733
|
meeting.parseMeetingInfo(undefined, destination);
|
|
1630
|
-
_context4.next =
|
|
1734
|
+
_context4.next = 6;
|
|
1631
1735
|
break;
|
|
1632
1736
|
case 3:
|
|
1737
|
+
if (shouldDeferMeetingInfoFetch) {
|
|
1738
|
+
_context4.next = 5;
|
|
1739
|
+
break;
|
|
1740
|
+
}
|
|
1633
1741
|
_context4.next = 4;
|
|
1634
1742
|
return meeting.fetchMeetingInfo(meetingInfoOptions);
|
|
1635
1743
|
case 4:
|
|
1636
|
-
_context4.next =
|
|
1744
|
+
_context4.next = 6;
|
|
1637
1745
|
break;
|
|
1638
1746
|
case 5:
|
|
1639
|
-
|
|
1747
|
+
_loggerProxy.default.logger.info('Meetings:index#createMeeting --> defer fetchMeetingInfo for incomplete locus, will do it after locus initialSetup');
|
|
1748
|
+
case 6:
|
|
1749
|
+
_context4.next = 10;
|
|
1750
|
+
break;
|
|
1751
|
+
case 7:
|
|
1752
|
+
_context4.prev = 7;
|
|
1640
1753
|
_t2 = _context4["catch"](1);
|
|
1641
1754
|
if (!(!(_t2 instanceof _captchaError.default) && !(_t2 instanceof _passwordError.default) && !(_t2 instanceof _permission.default) && !(_t2 instanceof _joinWebinarError.default) && !(_t2 instanceof _joinForbiddenError.default))) {
|
|
1642
|
-
_context4.next =
|
|
1755
|
+
_context4.next = 9;
|
|
1643
1756
|
break;
|
|
1644
1757
|
}
|
|
1645
1758
|
_loggerProxy.default.logger.info("Meetings:index#createMeeting --> Info Unable to fetch meeting info for ".concat(destination, "."));
|
|
1646
1759
|
if (!failOnMissingMeetingInfo) {
|
|
1647
|
-
_context4.next =
|
|
1760
|
+
_context4.next = 8;
|
|
1648
1761
|
break;
|
|
1649
1762
|
}
|
|
1650
1763
|
_loggerProxy.default.logger.info("Meetings:index#createMeeting --> Destroying meeting due to missing meeting info.");
|
|
1651
1764
|
// @ts-ignore
|
|
1652
1765
|
this.destroy(meeting, _constants.MEETING_REMOVED_REASON.MISSING_MEETING_INFO);
|
|
1653
1766
|
throw new _noMeetingInfo.default();
|
|
1654
|
-
case
|
|
1767
|
+
case 8:
|
|
1655
1768
|
// if there is no meeting info and no error should be thrown then we assume its a 1:1 call or wireless share
|
|
1656
1769
|
_loggerProxy.default.logger.info('Meetings:index#createMeeting --> Info assuming this destination is a 1:1 or wireless share');
|
|
1657
|
-
case
|
|
1770
|
+
case 9:
|
|
1658
1771
|
_loggerProxy.default.logger.debug("Meetings:index#createMeeting --> Debug ".concat(_t2, " fetching /meetingInfo for creation."));
|
|
1659
|
-
case
|
|
1660
|
-
_context4.prev =
|
|
1772
|
+
case 10:
|
|
1773
|
+
_context4.prev = 10;
|
|
1661
1774
|
// For type LOCUS_ID we need to parse the locus object to get the information
|
|
1662
1775
|
// about the caller and callee
|
|
1663
1776
|
// Meeting Added event will be created in `handleLocusEvent`
|
|
1664
|
-
if
|
|
1777
|
+
// Only emit MEETING_ADDED if the meeting still exists in the collection.
|
|
1778
|
+
// If fetchMeetingInfo failed and the meeting was destroyed in the catch block,
|
|
1779
|
+
// skip emitting to prevent orphaned meeting references on the consumer side.
|
|
1780
|
+
// @ts-ignore - getMeetingByType types value as object but accepts strings (same as handleLocusEvent)
|
|
1781
|
+
if (type !== _constants.DESTINATION_TYPE.LOCUS_ID && this.getMeetingByType(_constants._ID_, meeting.id)) {
|
|
1665
1782
|
if (!meeting.sipUri) {
|
|
1666
1783
|
meeting.setSipUri(destination);
|
|
1667
1784
|
}
|
|
@@ -1677,14 +1794,14 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
1677
1794
|
type: meetingAddedType
|
|
1678
1795
|
});
|
|
1679
1796
|
}
|
|
1680
|
-
return _context4.finish(
|
|
1681
|
-
case
|
|
1797
|
+
return _context4.finish(10);
|
|
1798
|
+
case 11:
|
|
1682
1799
|
return _context4.abrupt("return", meeting);
|
|
1683
|
-
case
|
|
1800
|
+
case 12:
|
|
1684
1801
|
case "end":
|
|
1685
1802
|
return _context4.stop();
|
|
1686
1803
|
}
|
|
1687
|
-
}, _callee4, this, [[1,
|
|
1804
|
+
}, _callee4, this, [[1, 7, 10, 11]]);
|
|
1688
1805
|
}));
|
|
1689
1806
|
function createMeeting(_x4) {
|
|
1690
1807
|
return _createMeeting.apply(this, arguments);
|
|
@@ -1719,7 +1836,8 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
1719
1836
|
}
|
|
1720
1837
|
|
|
1721
1838
|
/**
|
|
1722
|
-
* Syncs all the meetings from server.
|
|
1839
|
+
* Syncs all the meetings from server. For unverified guests it skips the getActiveMeetings() call
|
|
1840
|
+
* (which Locus rejects for them) and instead resyncs each meeting individually via LocusInfo#sync.
|
|
1723
1841
|
* @param {boolean} keepOnlyLocusMeetings - whether the sync should keep only locus meetings or any other meeting in meetingCollection
|
|
1724
1842
|
* @returns {Promise<void>}
|
|
1725
1843
|
* @public
|
|
@@ -1727,51 +1845,147 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
1727
1845
|
*/
|
|
1728
1846
|
}, {
|
|
1729
1847
|
key: "syncMeetings",
|
|
1730
|
-
value: function
|
|
1731
|
-
var
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
// (they had a locusUrl previously but are no longer active) in the sync
|
|
1758
|
-
for (var _i = 0, _Object$values = (0, _values.default)(meetingsCollection); _i < _Object$values.length; _i++) {
|
|
1759
|
-
var meeting = _Object$values[_i];
|
|
1760
|
-
// @ts-ignore
|
|
1761
|
-
var locusUrl = meeting.locusUrl;
|
|
1762
|
-
if ((keepOnlyLocusMeetings || locusUrl) && !activeLocusUrl.includes(locusUrl)) {
|
|
1763
|
-
// destroy function also uploads logs
|
|
1848
|
+
value: (function () {
|
|
1849
|
+
var _syncMeetings = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee5() {
|
|
1850
|
+
var _this11 = this;
|
|
1851
|
+
var _ref5,
|
|
1852
|
+
_ref5$keepOnlyLocusMe,
|
|
1853
|
+
keepOnlyLocusMeetings,
|
|
1854
|
+
_ref5$skipHashTreeSyn,
|
|
1855
|
+
skipHashTreeSync,
|
|
1856
|
+
isUnverifiedGuest,
|
|
1857
|
+
locusArray,
|
|
1858
|
+
activeLocusUrl,
|
|
1859
|
+
lociToUpdate,
|
|
1860
|
+
meetingsCollection,
|
|
1861
|
+
_loop,
|
|
1862
|
+
_i,
|
|
1863
|
+
_Object$values,
|
|
1864
|
+
remainingMeetings,
|
|
1865
|
+
syncPromises,
|
|
1866
|
+
_i2,
|
|
1867
|
+
_arr,
|
|
1868
|
+
meeting,
|
|
1869
|
+
_args6 = arguments,
|
|
1870
|
+
_t3;
|
|
1871
|
+
return _regenerator.default.wrap(function (_context6) {
|
|
1872
|
+
while (1) switch (_context6.prev = _context6.next) {
|
|
1873
|
+
case 0:
|
|
1874
|
+
_ref5 = _args6.length > 0 && _args6[0] !== undefined ? _args6[0] : {}, _ref5$keepOnlyLocusMe = _ref5.keepOnlyLocusMeetings, keepOnlyLocusMeetings = _ref5$keepOnlyLocusMe === void 0 ? true : _ref5$keepOnlyLocusMe, _ref5$skipHashTreeSyn = _ref5.skipHashTreeSync, skipHashTreeSync = _ref5$skipHashTreeSyn === void 0 ? false : _ref5$skipHashTreeSyn;
|
|
1764
1875
|
// @ts-ignore
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
throw new Error(error);
|
|
1772
|
-
});
|
|
1773
|
-
}
|
|
1876
|
+
isUnverifiedGuest = Boolean(this.webex.credentials.isUnverifiedGuest);
|
|
1877
|
+
if (!isUnverifiedGuest) {
|
|
1878
|
+
_context6.next = 1;
|
|
1879
|
+
break;
|
|
1880
|
+
}
|
|
1881
|
+
_loggerProxy.default.logger.info('Meetings:index#syncMeetings --> user is unverified guest, skipping calling Locus for meeting sync');
|
|
1774
1882
|
|
|
1883
|
+
// Locus rejects getActiveMeetings() for unverified guests, so the per-meeting sync below
|
|
1884
|
+
// (with canSyncClassicLocus enabled) resyncs each classic meeting individually instead.
|
|
1885
|
+
_context6.next = 7;
|
|
1886
|
+
break;
|
|
1887
|
+
case 1:
|
|
1888
|
+
_context6.prev = 1;
|
|
1889
|
+
_context6.next = 2;
|
|
1890
|
+
return this.request.getActiveMeetings();
|
|
1891
|
+
case 2:
|
|
1892
|
+
locusArray = _context6.sent;
|
|
1893
|
+
activeLocusUrl = [];
|
|
1894
|
+
if (locusArray !== null && locusArray !== void 0 && locusArray.loci && locusArray.loci.length > 0) {
|
|
1895
|
+
lociToUpdate = this.sortLocusArrayToUpdate(locusArray.loci);
|
|
1896
|
+
lociToUpdate.forEach(function (locus) {
|
|
1897
|
+
activeLocusUrl.push(locus.url);
|
|
1898
|
+
_this11.handleLocusEvent({
|
|
1899
|
+
eventType: _constants.LOCUSEVENT.SDK_LOCUS_FROM_SYNC_MEETINGS,
|
|
1900
|
+
locus: locus,
|
|
1901
|
+
locusUrl: locus.url
|
|
1902
|
+
});
|
|
1903
|
+
});
|
|
1904
|
+
}
|
|
1905
|
+
meetingsCollection = this.meetingCollection.getAll();
|
|
1906
|
+
if (!((0, _keys.default)(meetingsCollection).length > 0)) {
|
|
1907
|
+
_context6.next = 5;
|
|
1908
|
+
break;
|
|
1909
|
+
}
|
|
1910
|
+
_loop = /*#__PURE__*/_regenerator.default.mark(function _loop() {
|
|
1911
|
+
var meeting, locusUrl, locusInfo, _locusInfo$info, _locusArray$loci, globalMeetingId;
|
|
1912
|
+
return _regenerator.default.wrap(function (_context5) {
|
|
1913
|
+
while (1) switch (_context5.prev = _context5.next) {
|
|
1914
|
+
case 0:
|
|
1915
|
+
meeting = _Object$values[_i];
|
|
1916
|
+
// @ts-ignore
|
|
1917
|
+
locusUrl = meeting.locusUrl, locusInfo = meeting.locusInfo;
|
|
1918
|
+
if ((keepOnlyLocusMeetings || locusUrl) && !activeLocusUrl.includes(locusUrl)) {
|
|
1919
|
+
globalMeetingId = locusInfo === null || locusInfo === void 0 ? void 0 : (_locusInfo$info = locusInfo.info) === null || _locusInfo$info === void 0 ? void 0 : _locusInfo$info.globalMeetingId;
|
|
1920
|
+
if (globalMeetingId && locusArray !== null && locusArray !== void 0 && (_locusArray$loci = locusArray.loci) !== null && _locusArray$loci !== void 0 && _locusArray$loci.some(function (locus) {
|
|
1921
|
+
var _locus$info;
|
|
1922
|
+
return ((_locus$info = locus.info) === null || _locus$info === void 0 ? void 0 : _locus$info.globalMeetingId) === globalMeetingId;
|
|
1923
|
+
})) {
|
|
1924
|
+
// don't destroy the meeting as Locus API still returned some Locus that shares
|
|
1925
|
+
// the same globalMeetingId - that happens for example if a webinar user (who hasn't scheduled it)
|
|
1926
|
+
// is in a breakout and gets moved to a different breakout while we were offline
|
|
1927
|
+
} else {
|
|
1928
|
+
// destroy function also uploads logs
|
|
1929
|
+
// @ts-ignore
|
|
1930
|
+
_this11.destroy(meeting, _constants.MEETING_REMOVED_REASON.NO_MEETINGS_TO_SYNC);
|
|
1931
|
+
}
|
|
1932
|
+
}
|
|
1933
|
+
case 1:
|
|
1934
|
+
case "end":
|
|
1935
|
+
return _context5.stop();
|
|
1936
|
+
}
|
|
1937
|
+
}, _loop);
|
|
1938
|
+
});
|
|
1939
|
+
_i = 0, _Object$values = (0, _values.default)(meetingsCollection);
|
|
1940
|
+
case 3:
|
|
1941
|
+
if (!(_i < _Object$values.length)) {
|
|
1942
|
+
_context6.next = 5;
|
|
1943
|
+
break;
|
|
1944
|
+
}
|
|
1945
|
+
return _context6.delegateYield(_loop(), "t0", 4);
|
|
1946
|
+
case 4:
|
|
1947
|
+
_i++;
|
|
1948
|
+
_context6.next = 3;
|
|
1949
|
+
break;
|
|
1950
|
+
case 5:
|
|
1951
|
+
_context6.next = 7;
|
|
1952
|
+
break;
|
|
1953
|
+
case 6:
|
|
1954
|
+
_context6.prev = 6;
|
|
1955
|
+
_t3 = _context6["catch"](1);
|
|
1956
|
+
_loggerProxy.default.logger.error("Meetings:index#syncMeetings --> failed to sync meetings, ".concat(_t3));
|
|
1957
|
+
throw _t3;
|
|
1958
|
+
case 7:
|
|
1959
|
+
// Resync each remaining meeting via LocusInfo#sync, which routes to hash tree or classic. For
|
|
1960
|
+
// signed-in users classic meetings were already synced above, so only the hash tree sync runs.
|
|
1961
|
+
remainingMeetings = this.meetingCollection.getAll();
|
|
1962
|
+
syncPromises = [];
|
|
1963
|
+
for (_i2 = 0, _arr = (0, _values.default)(remainingMeetings); _i2 < _arr.length; _i2++) {
|
|
1964
|
+
meeting = _arr[_i2];
|
|
1965
|
+
if (meeting.locusInfo) {
|
|
1966
|
+
syncPromises.push(meeting.locusInfo.sync(meeting, {
|
|
1967
|
+
canSyncClassicLocus: isUnverifiedGuest,
|
|
1968
|
+
canSyncHashTree: !skipHashTreeSync
|
|
1969
|
+
}));
|
|
1970
|
+
}
|
|
1971
|
+
}
|
|
1972
|
+
if (!(syncPromises.length > 0)) {
|
|
1973
|
+
_context6.next = 8;
|
|
1974
|
+
break;
|
|
1975
|
+
}
|
|
1976
|
+
_context6.next = 8;
|
|
1977
|
+
return _promise.default.all(syncPromises);
|
|
1978
|
+
case 8:
|
|
1979
|
+
case "end":
|
|
1980
|
+
return _context6.stop();
|
|
1981
|
+
}
|
|
1982
|
+
}, _callee5, this, [[1, 6]]);
|
|
1983
|
+
}));
|
|
1984
|
+
function syncMeetings() {
|
|
1985
|
+
return _syncMeetings.apply(this, arguments);
|
|
1986
|
+
}
|
|
1987
|
+
return syncMeetings;
|
|
1988
|
+
}()
|
|
1775
1989
|
/**
|
|
1776
1990
|
* sort out locus array for initial creating
|
|
1777
1991
|
* @param {Array} loci original locus array
|
|
@@ -1779,6 +1993,7 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
1779
1993
|
* @public
|
|
1780
1994
|
* @memberof Meetings
|
|
1781
1995
|
*/
|
|
1996
|
+
)
|
|
1782
1997
|
}, {
|
|
1783
1998
|
key: "sortLocusArrayToUpdate",
|
|
1784
1999
|
value: function sortLocusArrayToUpdate(loci) {
|
|
@@ -1793,8 +2008,7 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
1793
2008
|
var lociToUpdate = (0, _toConsumableArray2.default)(mainLoci);
|
|
1794
2009
|
breakoutLoci.forEach(function (breakoutLocus) {
|
|
1795
2010
|
var associateMainLocus = mainLoci.find(function (mainLocus) {
|
|
1796
|
-
|
|
1797
|
-
return ((_mainLocus$controls = mainLocus.controls) === null || _mainLocus$controls === void 0 ? void 0 : (_mainLocus$controls$b = _mainLocus$controls.breakout) === null || _mainLocus$controls$b === void 0 ? void 0 : _mainLocus$controls$b.url) === ((_breakoutLocus$contro = breakoutLocus.controls) === null || _breakoutLocus$contro === void 0 ? void 0 : (_breakoutLocus$contro2 = _breakoutLocus$contro.breakout) === null || _breakoutLocus$contro2 === void 0 ? void 0 : _breakoutLocus$contro2.url);
|
|
2011
|
+
return _util2.default.isMainAssociatedWithBreakout(mainLocus, breakoutLocus);
|
|
1798
2012
|
});
|
|
1799
2013
|
var existCorrespondingMeeting = _this12.getCorrespondingMeetingByLocus({
|
|
1800
2014
|
eventType: _constants.LOCUSEVENT.SDK_NO_EVENT,
|
|
@@ -1830,15 +2044,14 @@ var Meetings = exports.default = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
1830
2044
|
return;
|
|
1831
2045
|
}
|
|
1832
2046
|
var existIndex = this.breakoutLocusForHandleLater.findIndex(function (breakoutLocus) {
|
|
1833
|
-
|
|
1834
|
-
return ((_breakoutLocus$contro3 = breakoutLocus.controls) === null || _breakoutLocus$contro3 === void 0 ? void 0 : (_breakoutLocus$contro4 = _breakoutLocus$contro3.breakout) === null || _breakoutLocus$contro4 === void 0 ? void 0 : _breakoutLocus$contro4.url) === ((_newCreatedLocus$cont = newCreatedLocus.controls) === null || _newCreatedLocus$cont === void 0 ? void 0 : (_newCreatedLocus$cont2 = _newCreatedLocus$cont.breakout) === null || _newCreatedLocus$cont2 === void 0 ? void 0 : _newCreatedLocus$cont2.url);
|
|
2047
|
+
return _util2.default.isMainAssociatedWithBreakout(newCreatedLocus, breakoutLocus);
|
|
1835
2048
|
});
|
|
1836
2049
|
if (existIndex < 0) {
|
|
1837
2050
|
return;
|
|
1838
2051
|
}
|
|
1839
2052
|
var associateBreakoutLocus = this.breakoutLocusForHandleLater[existIndex];
|
|
1840
2053
|
this.handleLocusEvent({
|
|
1841
|
-
eventType: _constants.LOCUSEVENT.
|
|
2054
|
+
eventType: _constants.LOCUSEVENT.SDK_LOCUS_FROM_SYNC_MEETINGS,
|
|
1842
2055
|
locus: associateBreakoutLocus,
|
|
1843
2056
|
locusUrl: associateBreakoutLocus.url
|
|
1844
2057
|
});
|