@webex/plugin-meetings 3.10.0-next.8 → 3.10.0-webex-services-ready.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/annotation/annotation.types.js.map +1 -1
- package/dist/annotation/constants.js.map +1 -1
- package/dist/annotation/index.js +19 -22
- package/dist/annotation/index.js.map +1 -1
- package/dist/breakouts/breakout.js +6 -6
- package/dist/breakouts/breakout.js.map +1 -1
- package/dist/breakouts/collection.js.map +1 -1
- package/dist/breakouts/edit-lock-error.js +9 -11
- package/dist/breakouts/edit-lock-error.js.map +1 -1
- package/dist/breakouts/events.js.map +1 -1
- package/dist/breakouts/index.js +126 -127
- package/dist/breakouts/index.js.map +1 -1
- package/dist/breakouts/request.js +6 -8
- package/dist/breakouts/request.js.map +1 -1
- package/dist/breakouts/utils.js.map +1 -1
- package/dist/common/browser-detection.js.map +1 -1
- package/dist/common/collection.js +1 -2
- package/dist/common/collection.js.map +1 -1
- package/dist/common/config.js.map +1 -1
- package/dist/common/errors/captcha-error.js +9 -11
- package/dist/common/errors/captcha-error.js.map +1 -1
- package/dist/common/errors/intent-to-join.js +10 -12
- package/dist/common/errors/intent-to-join.js.map +1 -1
- package/dist/common/errors/join-forbidden-error.js +10 -12
- package/dist/common/errors/join-forbidden-error.js.map +1 -1
- package/dist/common/errors/join-meeting.js +10 -12
- package/dist/common/errors/join-meeting.js.map +1 -1
- package/dist/common/errors/join-webinar-error.js +9 -11
- package/dist/common/errors/join-webinar-error.js.map +1 -1
- package/dist/common/errors/media.js +9 -11
- package/dist/common/errors/media.js.map +1 -1
- package/dist/common/errors/multistream-not-supported-error.js +9 -11
- package/dist/common/errors/multistream-not-supported-error.js.map +1 -1
- package/dist/common/errors/no-meeting-info.js +9 -11
- package/dist/common/errors/no-meeting-info.js.map +1 -1
- package/dist/common/errors/parameter.js +11 -14
- package/dist/common/errors/parameter.js.map +1 -1
- package/dist/common/errors/password-error.js +9 -11
- package/dist/common/errors/password-error.js.map +1 -1
- package/dist/common/errors/permission.js +9 -11
- package/dist/common/errors/permission.js.map +1 -1
- package/dist/common/errors/reclaim-host-role-errors.js +32 -38
- package/dist/common/errors/reclaim-host-role-errors.js.map +1 -1
- package/dist/common/errors/reconnection-not-started.js +5 -6
- package/dist/common/errors/reconnection-not-started.js.map +1 -1
- package/dist/common/errors/reconnection.js +9 -11
- package/dist/common/errors/reconnection.js.map +1 -1
- package/dist/common/errors/stats.js +9 -11
- package/dist/common/errors/stats.js.map +1 -1
- package/dist/common/errors/webex-errors.js +20 -29
- package/dist/common/errors/webex-errors.js.map +1 -1
- package/dist/common/errors/webex-meetings-error.js +9 -12
- package/dist/common/errors/webex-meetings-error.js.map +1 -1
- package/dist/common/events/events-scope.js +9 -10
- package/dist/common/events/events-scope.js.map +1 -1
- package/dist/common/events/events.js +9 -10
- package/dist/common/events/events.js.map +1 -1
- package/dist/common/events/trigger-proxy.js.map +1 -1
- package/dist/common/events/util.js.map +1 -1
- package/dist/common/logs/logger-config.js.map +1 -1
- package/dist/common/logs/logger-proxy.js.map +1 -1
- package/dist/common/logs/request.js +17 -17
- package/dist/common/logs/request.js.map +1 -1
- package/dist/common/queue.js +1 -2
- package/dist/common/queue.js.map +1 -1
- package/dist/config.js +0 -1
- package/dist/config.js.map +1 -1
- package/dist/constants.js +11 -8
- package/dist/constants.js.map +1 -1
- package/dist/controls-options-manager/constants.js.map +1 -1
- package/dist/controls-options-manager/enums.js.map +1 -1
- package/dist/controls-options-manager/index.js +1 -2
- package/dist/controls-options-manager/index.js.map +1 -1
- package/dist/controls-options-manager/types.js.map +1 -1
- package/dist/controls-options-manager/util.js +1 -2
- package/dist/controls-options-manager/util.js.map +1 -1
- package/dist/hashTree/constants.js +20 -0
- package/dist/hashTree/constants.js.map +1 -0
- package/dist/hashTree/hashTree.js +515 -0
- package/dist/hashTree/hashTree.js.map +1 -0
- package/dist/hashTree/hashTreeParser.js +1266 -0
- package/dist/hashTree/hashTreeParser.js.map +1 -0
- package/dist/hashTree/types.js +21 -0
- package/dist/hashTree/types.js.map +1 -0
- package/dist/hashTree/utils.js +48 -0
- package/dist/hashTree/utils.js.map +1 -0
- package/dist/index.js +1 -2
- package/dist/index.js.map +1 -1
- package/dist/interceptors/index.js.map +1 -1
- package/dist/interceptors/locusRetry.js +6 -8
- package/dist/interceptors/locusRetry.js.map +1 -1
- package/dist/interceptors/locusRouteToken.js +6 -8
- package/dist/interceptors/locusRouteToken.js.map +1 -1
- package/dist/interpretation/collection.js.map +1 -1
- package/dist/interpretation/index.js +1 -2
- package/dist/interpretation/index.js.map +1 -1
- package/dist/interpretation/siLanguage.js +1 -1
- package/dist/interpretation/siLanguage.js.map +1 -1
- package/dist/locus-info/controlsUtils.js.map +1 -1
- package/dist/locus-info/embeddedAppsUtils.js.map +1 -1
- package/dist/locus-info/fullState.js.map +1 -1
- package/dist/locus-info/hostUtils.js.map +1 -1
- package/dist/locus-info/index.js +551 -94
- package/dist/locus-info/index.js.map +1 -1
- package/dist/locus-info/infoUtils.js.map +1 -1
- package/dist/locus-info/mediaSharesUtils.js.map +1 -1
- package/dist/locus-info/parser.js +3 -4
- package/dist/locus-info/parser.js.map +1 -1
- package/dist/locus-info/selfUtils.js.map +1 -1
- package/dist/locus-info/types.js +7 -0
- package/dist/locus-info/types.js.map +1 -0
- package/dist/media/MediaConnectionAwaiter.js +1 -2
- package/dist/media/MediaConnectionAwaiter.js.map +1 -1
- package/dist/media/index.js +0 -2
- package/dist/media/index.js.map +1 -1
- package/dist/media/properties.js +15 -17
- package/dist/media/properties.js.map +1 -1
- package/dist/media/util.js.map +1 -1
- package/dist/meeting/brbState.js +8 -9
- package/dist/meeting/brbState.js.map +1 -1
- package/dist/meeting/connectionStateHandler.js +10 -13
- package/dist/meeting/connectionStateHandler.js.map +1 -1
- package/dist/meeting/in-meeting-actions.js.map +1 -1
- package/dist/meeting/index.js +1555 -1527
- package/dist/meeting/index.js.map +1 -1
- package/dist/meeting/locusMediaRequest.js +13 -17
- package/dist/meeting/locusMediaRequest.js.map +1 -1
- package/dist/meeting/muteState.js +11 -12
- package/dist/meeting/muteState.js.map +1 -1
- package/dist/meeting/request.js +101 -104
- package/dist/meeting/request.js.map +1 -1
- package/dist/meeting/request.type.js.map +1 -1
- package/dist/meeting/state.js.map +1 -1
- package/dist/meeting/type.js.map +1 -1
- package/dist/meeting/util.js +24 -23
- package/dist/meeting/util.js.map +1 -1
- package/dist/meeting/voicea-meeting.js +3 -3
- package/dist/meeting/voicea-meeting.js.map +1 -1
- package/dist/meeting-info/collection.js +7 -10
- package/dist/meeting-info/collection.js.map +1 -1
- package/dist/meeting-info/index.js +1 -2
- package/dist/meeting-info/index.js.map +1 -1
- package/dist/meeting-info/meeting-info-v2.js +135 -146
- package/dist/meeting-info/meeting-info-v2.js.map +1 -1
- package/dist/meeting-info/request.js +1 -2
- package/dist/meeting-info/request.js.map +1 -1
- package/dist/meeting-info/util.js +36 -37
- package/dist/meeting-info/util.js.map +1 -1
- package/dist/meeting-info/utilv2.js +30 -31
- package/dist/meeting-info/utilv2.js.map +1 -1
- package/dist/meetings/collection.js +6 -8
- package/dist/meetings/collection.js.map +1 -1
- package/dist/meetings/index.js +179 -141
- package/dist/meetings/index.js.map +1 -1
- package/dist/meetings/meetings.types.js.map +1 -1
- package/dist/meetings/request.js +6 -8
- package/dist/meetings/request.js.map +1 -1
- package/dist/meetings/util.js +25 -23
- package/dist/meetings/util.js.map +1 -1
- package/dist/member/index.js +1 -2
- package/dist/member/index.js.map +1 -1
- package/dist/member/types.js +6 -3
- package/dist/member/types.js.map +1 -1
- package/dist/member/util.js.map +1 -1
- package/dist/members/collection.js +1 -2
- package/dist/members/collection.js.map +1 -1
- package/dist/members/index.js +18 -21
- package/dist/members/index.js.map +1 -1
- package/dist/members/request.js +8 -11
- package/dist/members/request.js.map +1 -1
- package/dist/members/types.js.map +1 -1
- package/dist/members/util.js.map +1 -1
- package/dist/metrics/constants.js +3 -1
- package/dist/metrics/constants.js.map +1 -1
- package/dist/metrics/index.js +3 -4
- package/dist/metrics/index.js.map +1 -1
- package/dist/multistream/mediaRequestManager.js +1 -2
- package/dist/multistream/mediaRequestManager.js.map +1 -1
- package/dist/multistream/receiveSlot.js +34 -45
- package/dist/multistream/receiveSlot.js.map +1 -1
- package/dist/multistream/receiveSlotManager.js +8 -9
- package/dist/multistream/receiveSlotManager.js.map +1 -1
- package/dist/multistream/remoteMedia.js +12 -15
- package/dist/multistream/remoteMedia.js.map +1 -1
- package/dist/multistream/remoteMediaGroup.js +1 -2
- package/dist/multistream/remoteMediaGroup.js.map +1 -1
- package/dist/multistream/remoteMediaManager.js +122 -123
- package/dist/multistream/remoteMediaManager.js.map +1 -1
- package/dist/multistream/sendSlotManager.js +29 -30
- package/dist/multistream/sendSlotManager.js.map +1 -1
- package/dist/personal-meeting-room/index.js +16 -19
- package/dist/personal-meeting-room/index.js.map +1 -1
- package/dist/personal-meeting-room/request.js +7 -10
- package/dist/personal-meeting-room/request.js.map +1 -1
- package/dist/personal-meeting-room/util.js.map +1 -1
- package/dist/reachability/clusterReachability.js +56 -373
- package/dist/reachability/clusterReachability.js.map +1 -1
- package/dist/reachability/index.js +203 -205
- package/dist/reachability/index.js.map +1 -1
- package/dist/reachability/reachability.types.js +14 -1
- package/dist/reachability/reachability.types.js.map +1 -1
- package/dist/reachability/reachabilityPeerConnection.js +445 -0
- package/dist/reachability/reachabilityPeerConnection.js.map +1 -0
- package/dist/reachability/request.js.map +1 -1
- package/dist/reachability/util.js.map +1 -1
- package/dist/reactions/constants.js.map +1 -1
- package/dist/reactions/reactions.js.map +1 -1
- package/dist/reactions/reactions.type.js.map +1 -1
- package/dist/reconnection-manager/index.js +178 -176
- package/dist/reconnection-manager/index.js.map +1 -1
- package/dist/recording-controller/enums.js.map +1 -1
- package/dist/recording-controller/index.js +1 -2
- package/dist/recording-controller/index.js.map +1 -1
- package/dist/recording-controller/util.js.map +1 -1
- package/dist/roap/index.js +12 -15
- package/dist/roap/index.js.map +1 -1
- package/dist/roap/request.js +24 -26
- package/dist/roap/request.js.map +1 -1
- package/dist/roap/turnDiscovery.js +75 -76
- package/dist/roap/turnDiscovery.js.map +1 -1
- package/dist/roap/types.js.map +1 -1
- package/dist/transcription/index.js +4 -5
- package/dist/transcription/index.js.map +1 -1
- package/dist/types/constants.d.ts +26 -21
- package/dist/types/hashTree/constants.d.ts +8 -0
- package/dist/types/hashTree/hashTree.d.ts +129 -0
- package/dist/types/hashTree/hashTreeParser.d.ts +260 -0
- package/dist/types/hashTree/types.d.ts +25 -0
- package/dist/types/hashTree/utils.d.ts +9 -0
- package/dist/types/locus-info/index.d.ts +91 -42
- package/dist/types/locus-info/types.d.ts +46 -0
- package/dist/types/meeting/index.d.ts +22 -9
- package/dist/types/meetings/index.d.ts +9 -2
- package/dist/types/metrics/constants.d.ts +2 -0
- package/dist/types/reachability/clusterReachability.d.ts +10 -88
- package/dist/types/reachability/reachability.types.d.ts +12 -1
- package/dist/types/reachability/reachabilityPeerConnection.d.ts +111 -0
- package/dist/webinar/collection.js +1 -2
- package/dist/webinar/collection.js.map +1 -1
- package/dist/webinar/index.js +148 -158
- package/dist/webinar/index.js.map +1 -1
- package/package.json +22 -21
- package/src/constants.ts +13 -1
- package/src/hashTree/constants.ts +9 -0
- package/src/hashTree/hashTree.ts +463 -0
- package/src/hashTree/hashTreeParser.ts +1161 -0
- package/src/hashTree/types.ts +30 -0
- package/src/hashTree/utils.ts +42 -0
- package/src/locus-info/index.ts +556 -85
- package/src/locus-info/types.ts +48 -0
- package/src/meeting/index.ts +58 -26
- package/src/meeting/util.ts +1 -0
- package/src/meetings/index.ts +104 -51
- package/src/metrics/constants.ts +2 -0
- package/src/reachability/clusterReachability.ts +50 -347
- package/src/reachability/reachability.types.ts +15 -1
- package/src/reachability/reachabilityPeerConnection.ts +416 -0
- package/test/unit/spec/hashTree/hashTree.ts +655 -0
- package/test/unit/spec/hashTree/hashTreeParser.ts +1532 -0
- package/test/unit/spec/hashTree/utils.ts +103 -0
- package/test/unit/spec/locus-info/index.js +667 -1
- package/test/unit/spec/meeting/index.js +91 -20
- package/test/unit/spec/meeting/utils.js +77 -0
- package/test/unit/spec/meetings/index.js +71 -26
- package/test/unit/spec/reachability/clusterReachability.ts +281 -138
package/dist/meeting/request.js
CHANGED
|
@@ -19,10 +19,9 @@ var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime-corejs2/
|
|
|
19
19
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/objectWithoutProperties"));
|
|
20
20
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/classCallCheck"));
|
|
21
21
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/createClass"));
|
|
22
|
-
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/assertThisInitialized"));
|
|
23
|
-
var _inherits2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/inherits"));
|
|
24
22
|
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/possibleConstructorReturn"));
|
|
25
23
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/getPrototypeOf"));
|
|
24
|
+
var _inherits2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/inherits"));
|
|
26
25
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs2/helpers/defineProperty"));
|
|
27
26
|
var _uuid = _interopRequireDefault(require("uuid"));
|
|
28
27
|
var _lodash = require("lodash");
|
|
@@ -35,15 +34,13 @@ var _util = _interopRequireDefault(require("./util"));
|
|
|
35
34
|
var _excluded = ["meeting"];
|
|
36
35
|
function ownKeys(e, r) { var t = _Object$keys(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; }
|
|
37
36
|
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; }
|
|
38
|
-
function
|
|
39
|
-
function _isNativeReflectConstruct() {
|
|
37
|
+
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)); }
|
|
38
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); } // @ts-ignore
|
|
40
39
|
// @ts-ignore
|
|
41
40
|
/**
|
|
42
41
|
* @class MeetingRequest
|
|
43
42
|
*/
|
|
44
43
|
var MeetingRequest = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
45
|
-
(0, _inherits2.default)(MeetingRequest, _StatelessWebexPlugin);
|
|
46
|
-
var _super = _createSuper(MeetingRequest);
|
|
47
44
|
/**
|
|
48
45
|
* Constructor
|
|
49
46
|
* @param {Object} attrs
|
|
@@ -54,49 +51,49 @@ var MeetingRequest = exports.default = /*#__PURE__*/function (_StatelessWebexPlu
|
|
|
54
51
|
(0, _classCallCheck2.default)(this, MeetingRequest);
|
|
55
52
|
var meeting = attrs.meeting,
|
|
56
53
|
otherAttrs = (0, _objectWithoutProperties2.default)(attrs, _excluded);
|
|
57
|
-
_this =
|
|
58
|
-
(0, _defineProperty2.default)(
|
|
59
|
-
(0, _defineProperty2.default)(
|
|
60
|
-
(0, _defineProperty2.default)(
|
|
61
|
-
(0, _defineProperty2.default)(
|
|
54
|
+
_this = _callSuper(this, MeetingRequest, [otherAttrs, options]);
|
|
55
|
+
(0, _defineProperty2.default)(_this, "changeVideoLayoutDebounced", void 0);
|
|
56
|
+
(0, _defineProperty2.default)(_this, "meetingRef", void 0);
|
|
57
|
+
(0, _defineProperty2.default)(_this, "locusDeltaRequest", void 0);
|
|
58
|
+
(0, _defineProperty2.default)(_this, "buildLocusDeltaRequestOptions", void 0);
|
|
62
59
|
/**
|
|
63
60
|
* Returns joinCookie from boundedStorage if present.
|
|
64
61
|
* @returns {Object} joinCookie
|
|
65
62
|
*/
|
|
66
|
-
(0, _defineProperty2.default)(
|
|
67
|
-
var joinCookieRaw, joinCookie;
|
|
68
|
-
return _regenerator.default.wrap(function
|
|
63
|
+
(0, _defineProperty2.default)(_this, "getJoinCookie", /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee() {
|
|
64
|
+
var joinCookieRaw, joinCookie, _t;
|
|
65
|
+
return _regenerator.default.wrap(function (_context) {
|
|
69
66
|
while (1) switch (_context.prev = _context.next) {
|
|
70
67
|
case 0:
|
|
71
|
-
_context.next =
|
|
68
|
+
_context.next = 1;
|
|
72
69
|
return _this.webex.boundedStorage.get(_constants.REACHABILITY.namespace, _constants.REACHABILITY.localStorageJoinCookie).catch(function () {});
|
|
73
|
-
case
|
|
70
|
+
case 1:
|
|
74
71
|
joinCookieRaw = _context.sent;
|
|
75
72
|
if (!joinCookieRaw) {
|
|
76
|
-
_context.next =
|
|
73
|
+
_context.next = 5;
|
|
77
74
|
break;
|
|
78
75
|
}
|
|
79
|
-
_context.prev =
|
|
76
|
+
_context.prev = 2;
|
|
80
77
|
joinCookie = JSON.parse(joinCookieRaw);
|
|
81
78
|
if (!joinCookie) {
|
|
82
|
-
_context.next =
|
|
79
|
+
_context.next = 3;
|
|
83
80
|
break;
|
|
84
81
|
}
|
|
85
82
|
return _context.abrupt("return", joinCookie);
|
|
86
|
-
case
|
|
87
|
-
_context.next =
|
|
83
|
+
case 3:
|
|
84
|
+
_context.next = 5;
|
|
88
85
|
break;
|
|
89
|
-
case
|
|
90
|
-
_context.prev =
|
|
91
|
-
|
|
92
|
-
_loggerProxy.default.logger.error("MeetingRequest#constructor --> Error in parsing join cookie data: ".concat(
|
|
93
|
-
case
|
|
86
|
+
case 4:
|
|
87
|
+
_context.prev = 4;
|
|
88
|
+
_t = _context["catch"](2);
|
|
89
|
+
_loggerProxy.default.logger.error("MeetingRequest#constructor --> Error in parsing join cookie data: ".concat(_t));
|
|
90
|
+
case 5:
|
|
94
91
|
return _context.abrupt("return", null);
|
|
95
|
-
case
|
|
92
|
+
case 6:
|
|
96
93
|
case "end":
|
|
97
94
|
return _context.stop();
|
|
98
95
|
}
|
|
99
|
-
}, _callee, null, [[
|
|
96
|
+
}, _callee, null, [[2, 4]]);
|
|
100
97
|
})));
|
|
101
98
|
_this.locusDeltaRequest = _util.default.generateLocusDeltaRequest(meeting);
|
|
102
99
|
_this.buildLocusDeltaRequestOptions = _util.default.generateBuildLocusDeltaRequestOptions(meeting);
|
|
@@ -106,7 +103,8 @@ var MeetingRequest = exports.default = /*#__PURE__*/function (_StatelessWebexPlu
|
|
|
106
103
|
});
|
|
107
104
|
return _this;
|
|
108
105
|
}
|
|
109
|
-
(0,
|
|
106
|
+
(0, _inherits2.default)(MeetingRequest, _StatelessWebexPlugin);
|
|
107
|
+
return (0, _createClass2.default)(MeetingRequest, [{
|
|
110
108
|
key: "joinMeeting",
|
|
111
109
|
value: (
|
|
112
110
|
/**
|
|
@@ -130,9 +128,9 @@ var MeetingRequest = exports.default = /*#__PURE__*/function (_StatelessWebexPlu
|
|
|
130
128
|
* @returns {Promise}
|
|
131
129
|
*/
|
|
132
130
|
function () {
|
|
133
|
-
var _joinMeeting = (0, _asyncToGenerator2.default)(
|
|
134
|
-
var asResourceOccupant, inviteeAddress, meetingNumber, permissionToken, deviceUrl, locusUrl, locusClusterUrl, resourceId, correlationId, ensureConversation, moderator, pin, moveToResource, roapMessage, reachability, breakoutsSupported, locale, _options$deviceCapabi, deviceCapabilities, liveAnnotationSupported, clientMediaPreferences, alias, url, body, clusterUrl;
|
|
135
|
-
return _regenerator.default.wrap(function
|
|
131
|
+
var _joinMeeting = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee2(options) {
|
|
132
|
+
var asResourceOccupant, inviteeAddress, meetingNumber, permissionToken, deviceUrl, locusUrl, locusClusterUrl, resourceId, correlationId, ensureConversation, moderator, pin, moveToResource, roapMessage, reachability, breakoutsSupported, locale, _options$deviceCapabi, deviceCapabilities, liveAnnotationSupported, clientMediaPreferences, alias, url, body, clusterUrl, _t2;
|
|
133
|
+
return _regenerator.default.wrap(function (_context2) {
|
|
136
134
|
while (1) switch (_context2.prev = _context2.next) {
|
|
137
135
|
case 0:
|
|
138
136
|
asResourceOccupant = options.asResourceOccupant, inviteeAddress = options.inviteeAddress, meetingNumber = options.meetingNumber, permissionToken = options.permissionToken, deviceUrl = options.deviceUrl, locusUrl = options.locusUrl, locusClusterUrl = options.locusClusterUrl, resourceId = options.resourceId, correlationId = options.correlationId, ensureConversation = options.ensureConversation, moderator = options.moderator, pin = options.pin, moveToResource = options.moveToResource, roapMessage = options.roapMessage, reachability = options.reachability, breakoutsSupported = options.breakoutsSupported, locale = options.locale, _options$deviceCapabi = options.deviceCapabilities, deviceCapabilities = _options$deviceCapabi === void 0 ? [] : _options$deviceCapabi, liveAnnotationSupported = options.liveAnnotationSupported, clientMediaPreferences = options.clientMediaPreferences, alias = options.alias;
|
|
@@ -198,44 +196,44 @@ var MeetingRequest = exports.default = /*#__PURE__*/function (_StatelessWebexPlu
|
|
|
198
196
|
body.pin = pin;
|
|
199
197
|
}
|
|
200
198
|
if (!locusUrl) {
|
|
201
|
-
_context2.next =
|
|
199
|
+
_context2.next = 1;
|
|
202
200
|
break;
|
|
203
201
|
}
|
|
204
202
|
url = "".concat(locusUrl, "/").concat(_constants.PARTICIPANT);
|
|
205
|
-
_context2.next =
|
|
203
|
+
_context2.next = 7;
|
|
206
204
|
break;
|
|
207
|
-
case
|
|
205
|
+
case 1:
|
|
208
206
|
if (!(inviteeAddress || meetingNumber)) {
|
|
209
|
-
_context2.next =
|
|
207
|
+
_context2.next = 7;
|
|
210
208
|
break;
|
|
211
209
|
}
|
|
212
|
-
_context2.prev =
|
|
210
|
+
_context2.prev = 2;
|
|
213
211
|
if (!locusClusterUrl) {
|
|
214
|
-
_context2.next =
|
|
212
|
+
_context2.next = 3;
|
|
215
213
|
break;
|
|
216
214
|
}
|
|
217
215
|
clusterUrl = "https://".concat(locusClusterUrl, "/locus/api/v1");
|
|
218
|
-
_context2.next =
|
|
216
|
+
_context2.next = 5;
|
|
219
217
|
break;
|
|
220
|
-
case
|
|
221
|
-
_context2.next =
|
|
218
|
+
case 3:
|
|
219
|
+
_context2.next = 4;
|
|
222
220
|
return this.webex.internal.services.waitForCatalog('postauth');
|
|
223
|
-
case
|
|
221
|
+
case 4:
|
|
224
222
|
// @ts-ignore
|
|
225
223
|
clusterUrl = this.webex.internal.services.get('locus');
|
|
226
|
-
case
|
|
224
|
+
case 5:
|
|
227
225
|
url = "".concat(clusterUrl, "/").concat(_constants.LOCI, "/").concat(_constants.CALL);
|
|
228
226
|
body.invitee = {
|
|
229
227
|
address: inviteeAddress || "wbxmn:".concat(meetingNumber)
|
|
230
228
|
};
|
|
231
|
-
_context2.next =
|
|
229
|
+
_context2.next = 7;
|
|
232
230
|
break;
|
|
233
|
-
case
|
|
234
|
-
_context2.prev =
|
|
235
|
-
|
|
236
|
-
_loggerProxy.default.logger.error("Meeting:request#joinMeeting Error Joining ".concat(inviteeAddress || meetingNumber, " --> ").concat(
|
|
237
|
-
throw
|
|
238
|
-
case
|
|
231
|
+
case 6:
|
|
232
|
+
_context2.prev = 6;
|
|
233
|
+
_t2 = _context2["catch"](2);
|
|
234
|
+
_loggerProxy.default.logger.error("Meeting:request#joinMeeting Error Joining ".concat(inviteeAddress || meetingNumber, " --> ").concat(_t2));
|
|
235
|
+
throw _t2;
|
|
236
|
+
case 7:
|
|
239
237
|
// TODO: -- this will be resolved in SDK request
|
|
240
238
|
url = url.concat("?".concat(_constants.ALTERNATE_REDIRECT_TRUE));
|
|
241
239
|
if (resourceId === inviteeAddress) {
|
|
@@ -258,11 +256,11 @@ var MeetingRequest = exports.default = /*#__PURE__*/function (_StatelessWebexPlu
|
|
|
258
256
|
uri: url,
|
|
259
257
|
body: body
|
|
260
258
|
}));
|
|
261
|
-
case
|
|
259
|
+
case 8:
|
|
262
260
|
case "end":
|
|
263
261
|
return _context2.stop();
|
|
264
262
|
}
|
|
265
|
-
}, _callee2, this, [[
|
|
263
|
+
}, _callee2, this, [[2, 6]]);
|
|
266
264
|
}));
|
|
267
265
|
function joinMeeting(_x) {
|
|
268
266
|
return _joinMeeting.apply(this, arguments);
|
|
@@ -747,8 +745,8 @@ var MeetingRequest = exports.default = /*#__PURE__*/function (_StatelessWebexPlu
|
|
|
747
745
|
*/
|
|
748
746
|
}, {
|
|
749
747
|
key: "endMeetingForAll",
|
|
750
|
-
value: function endMeetingForAll(
|
|
751
|
-
var locusUrl =
|
|
748
|
+
value: function endMeetingForAll(_ref0) {
|
|
749
|
+
var locusUrl = _ref0.locusUrl;
|
|
752
750
|
var uri = "".concat(locusUrl, "/").concat(_constants.END);
|
|
753
751
|
|
|
754
752
|
// @ts-ignore
|
|
@@ -766,8 +764,8 @@ var MeetingRequest = exports.default = /*#__PURE__*/function (_StatelessWebexPlu
|
|
|
766
764
|
*/
|
|
767
765
|
}, {
|
|
768
766
|
key: "keepAlive",
|
|
769
|
-
value: function keepAlive(
|
|
770
|
-
var keepAliveUrl =
|
|
767
|
+
value: function keepAlive(_ref1) {
|
|
768
|
+
var keepAliveUrl = _ref1.keepAliveUrl;
|
|
771
769
|
// @ts-ignore
|
|
772
770
|
return this.request({
|
|
773
771
|
method: _constants.HTTP_VERBS.GET,
|
|
@@ -785,10 +783,10 @@ var MeetingRequest = exports.default = /*#__PURE__*/function (_StatelessWebexPlu
|
|
|
785
783
|
*/
|
|
786
784
|
}, {
|
|
787
785
|
key: "sendReaction",
|
|
788
|
-
value: function sendReaction(
|
|
789
|
-
var reactionChannelUrl =
|
|
790
|
-
reaction =
|
|
791
|
-
participantId =
|
|
786
|
+
value: function sendReaction(_ref10) {
|
|
787
|
+
var reactionChannelUrl = _ref10.reactionChannelUrl,
|
|
788
|
+
reaction = _ref10.reaction,
|
|
789
|
+
participantId = _ref10.participantId;
|
|
792
790
|
var uri = reactionChannelUrl;
|
|
793
791
|
|
|
794
792
|
// @ts-ignore
|
|
@@ -816,11 +814,11 @@ var MeetingRequest = exports.default = /*#__PURE__*/function (_StatelessWebexPlu
|
|
|
816
814
|
*/
|
|
817
815
|
}, {
|
|
818
816
|
key: "extendMeeting",
|
|
819
|
-
value: function extendMeeting(
|
|
820
|
-
var meetingInstanceId =
|
|
821
|
-
participantId =
|
|
822
|
-
extensionMinutes =
|
|
823
|
-
meetingPolicyUrl =
|
|
817
|
+
value: function extendMeeting(_ref11) {
|
|
818
|
+
var meetingInstanceId = _ref11.meetingInstanceId,
|
|
819
|
+
participantId = _ref11.participantId,
|
|
820
|
+
extensionMinutes = _ref11.extensionMinutes,
|
|
821
|
+
meetingPolicyUrl = _ref11.meetingPolicyUrl;
|
|
824
822
|
if (!meetingPolicyUrl) {
|
|
825
823
|
return _promise.default.reject(new Error('meetingPolicyUrl is required'));
|
|
826
824
|
}
|
|
@@ -846,10 +844,10 @@ var MeetingRequest = exports.default = /*#__PURE__*/function (_StatelessWebexPlu
|
|
|
846
844
|
*/
|
|
847
845
|
}, {
|
|
848
846
|
key: "toggleReactions",
|
|
849
|
-
value: function toggleReactions(
|
|
850
|
-
var enable =
|
|
851
|
-
locusUrl =
|
|
852
|
-
requestingParticipantId =
|
|
847
|
+
value: function toggleReactions(_ref12) {
|
|
848
|
+
var enable = _ref12.enable,
|
|
849
|
+
locusUrl = _ref12.locusUrl,
|
|
850
|
+
requestingParticipantId = _ref12.requestingParticipantId;
|
|
853
851
|
var uri = "".concat(locusUrl, "/").concat(_constants.CONTROLS);
|
|
854
852
|
|
|
855
853
|
// @ts-ignore
|
|
@@ -886,11 +884,11 @@ var MeetingRequest = exports.default = /*#__PURE__*/function (_StatelessWebexPlu
|
|
|
886
884
|
*/
|
|
887
885
|
}, {
|
|
888
886
|
key: "setBrb",
|
|
889
|
-
value: function setBrb(
|
|
890
|
-
var enabled =
|
|
891
|
-
locusUrl =
|
|
892
|
-
deviceUrl =
|
|
893
|
-
selfId =
|
|
887
|
+
value: function setBrb(_ref13) {
|
|
888
|
+
var enabled = _ref13.enabled,
|
|
889
|
+
locusUrl = _ref13.locusUrl,
|
|
890
|
+
deviceUrl = _ref13.deviceUrl,
|
|
891
|
+
selfId = _ref13.selfId;
|
|
894
892
|
var uri = "".concat(locusUrl, "/").concat(_constants.PARTICIPANT, "/").concat(selfId, "/").concat(_constants.CONTROLS);
|
|
895
893
|
return this.locusDeltaRequest({
|
|
896
894
|
method: _constants.HTTP_VERBS.PATCH,
|
|
@@ -916,11 +914,11 @@ var MeetingRequest = exports.default = /*#__PURE__*/function (_StatelessWebexPlu
|
|
|
916
914
|
*/
|
|
917
915
|
}, {
|
|
918
916
|
key: "setPostMeetingDataConsent",
|
|
919
|
-
value: function setPostMeetingDataConsent(
|
|
920
|
-
var postMeetingDataConsent =
|
|
921
|
-
locusUrl =
|
|
922
|
-
deviceUrl =
|
|
923
|
-
selfId =
|
|
917
|
+
value: function setPostMeetingDataConsent(_ref14) {
|
|
918
|
+
var postMeetingDataConsent = _ref14.postMeetingDataConsent,
|
|
919
|
+
locusUrl = _ref14.locusUrl,
|
|
920
|
+
deviceUrl = _ref14.deviceUrl,
|
|
921
|
+
selfId = _ref14.selfId;
|
|
924
922
|
var uri = "".concat(locusUrl, "/").concat(_constants.PARTICIPANT, "/").concat(selfId, "/").concat(_constants.CONTROLS);
|
|
925
923
|
return this.locusDeltaRequest({
|
|
926
924
|
method: _constants.HTTP_VERBS.PATCH,
|
|
@@ -990,9 +988,9 @@ var MeetingRequest = exports.default = /*#__PURE__*/function (_StatelessWebexPlu
|
|
|
990
988
|
}, {
|
|
991
989
|
key: "sipCallOut",
|
|
992
990
|
value: (function () {
|
|
993
|
-
var _sipCallOut = (0, _asyncToGenerator2.default)(
|
|
994
|
-
var body, response;
|
|
995
|
-
return _regenerator.default.wrap(function
|
|
991
|
+
var _sipCallOut = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee3(meetingId, meetingNumber, address, displayName) {
|
|
992
|
+
var body, response, _t3;
|
|
993
|
+
return _regenerator.default.wrap(function (_context3) {
|
|
996
994
|
while (1) switch (_context3.prev = _context3.next) {
|
|
997
995
|
case 0:
|
|
998
996
|
body = {
|
|
@@ -1002,7 +1000,7 @@ var MeetingRequest = exports.default = /*#__PURE__*/function (_StatelessWebexPlu
|
|
|
1002
1000
|
displayName: displayName
|
|
1003
1001
|
};
|
|
1004
1002
|
_context3.prev = 1;
|
|
1005
|
-
_context3.next =
|
|
1003
|
+
_context3.next = 2;
|
|
1006
1004
|
return this.request({
|
|
1007
1005
|
method: _constants.HTTP_VERBS.POST,
|
|
1008
1006
|
service: 'hydra',
|
|
@@ -1012,20 +1010,20 @@ var MeetingRequest = exports.default = /*#__PURE__*/function (_StatelessWebexPlu
|
|
|
1012
1010
|
Accept: 'application/json'
|
|
1013
1011
|
}
|
|
1014
1012
|
});
|
|
1015
|
-
case
|
|
1013
|
+
case 2:
|
|
1016
1014
|
response = _context3.sent;
|
|
1017
1015
|
_loggerProxy.default.logger.info('Meetings:request#sipCallOut --> SIP call-out successful', response);
|
|
1018
1016
|
return _context3.abrupt("return", response.body);
|
|
1019
|
-
case
|
|
1020
|
-
_context3.prev =
|
|
1021
|
-
|
|
1022
|
-
_loggerProxy.default.logger.error("Meetings:request#sipCallOut --> Error calling out SIP participant, error ".concat((0, _stringify.default)(
|
|
1023
|
-
throw
|
|
1024
|
-
case
|
|
1017
|
+
case 3:
|
|
1018
|
+
_context3.prev = 3;
|
|
1019
|
+
_t3 = _context3["catch"](1);
|
|
1020
|
+
_loggerProxy.default.logger.error("Meetings:request#sipCallOut --> Error calling out SIP participant, error ".concat((0, _stringify.default)(_t3)));
|
|
1021
|
+
throw _t3;
|
|
1022
|
+
case 4:
|
|
1025
1023
|
case "end":
|
|
1026
1024
|
return _context3.stop();
|
|
1027
1025
|
}
|
|
1028
|
-
}, _callee3, this, [[1,
|
|
1026
|
+
}, _callee3, this, [[1, 3]]);
|
|
1029
1027
|
}));
|
|
1030
1028
|
function sipCallOut(_x2, _x3, _x4, _x5) {
|
|
1031
1029
|
return _sipCallOut.apply(this, arguments);
|
|
@@ -1042,16 +1040,16 @@ var MeetingRequest = exports.default = /*#__PURE__*/function (_StatelessWebexPlu
|
|
|
1042
1040
|
}, {
|
|
1043
1041
|
key: "cancelSipCallOut",
|
|
1044
1042
|
value: (function () {
|
|
1045
|
-
var _cancelSipCallOut = (0, _asyncToGenerator2.default)(
|
|
1046
|
-
var body, response;
|
|
1047
|
-
return _regenerator.default.wrap(function
|
|
1043
|
+
var _cancelSipCallOut = (0, _asyncToGenerator2.default)(/*#__PURE__*/_regenerator.default.mark(function _callee4(participantId) {
|
|
1044
|
+
var body, response, _t4;
|
|
1045
|
+
return _regenerator.default.wrap(function (_context4) {
|
|
1048
1046
|
while (1) switch (_context4.prev = _context4.next) {
|
|
1049
1047
|
case 0:
|
|
1050
1048
|
body = {
|
|
1051
1049
|
participantId: participantId
|
|
1052
1050
|
};
|
|
1053
1051
|
_context4.prev = 1;
|
|
1054
|
-
_context4.next =
|
|
1052
|
+
_context4.next = 2;
|
|
1055
1053
|
return this.request({
|
|
1056
1054
|
method: _constants.HTTP_VERBS.POST,
|
|
1057
1055
|
service: 'hydra',
|
|
@@ -1061,20 +1059,20 @@ var MeetingRequest = exports.default = /*#__PURE__*/function (_StatelessWebexPlu
|
|
|
1061
1059
|
Accept: 'application/json'
|
|
1062
1060
|
}
|
|
1063
1061
|
});
|
|
1064
|
-
case
|
|
1062
|
+
case 2:
|
|
1065
1063
|
response = _context4.sent;
|
|
1066
1064
|
_loggerProxy.default.logger.info('Meetings:request#cancelSipCallOut --> SIP call-out cancelled successfully', response);
|
|
1067
1065
|
return _context4.abrupt("return", response.body);
|
|
1068
|
-
case
|
|
1069
|
-
_context4.prev =
|
|
1070
|
-
|
|
1071
|
-
_loggerProxy.default.logger.error("Meetings:request#cancelSipCallOut --> Error cancelling SIP participant call-out, error ".concat((0, _stringify.default)(
|
|
1072
|
-
throw
|
|
1073
|
-
case
|
|
1066
|
+
case 3:
|
|
1067
|
+
_context4.prev = 3;
|
|
1068
|
+
_t4 = _context4["catch"](1);
|
|
1069
|
+
_loggerProxy.default.logger.error("Meetings:request#cancelSipCallOut --> Error cancelling SIP participant call-out, error ".concat((0, _stringify.default)(_t4)));
|
|
1070
|
+
throw _t4;
|
|
1071
|
+
case 4:
|
|
1074
1072
|
case "end":
|
|
1075
1073
|
return _context4.stop();
|
|
1076
1074
|
}
|
|
1077
|
-
}, _callee4, this, [[1,
|
|
1075
|
+
}, _callee4, this, [[1, 3]]);
|
|
1078
1076
|
}));
|
|
1079
1077
|
function cancelSipCallOut(_x6) {
|
|
1080
1078
|
return _cancelSipCallOut.apply(this, arguments);
|
|
@@ -1082,6 +1080,5 @@ var MeetingRequest = exports.default = /*#__PURE__*/function (_StatelessWebexPlu
|
|
|
1082
1080
|
return cancelSipCallOut;
|
|
1083
1081
|
}())
|
|
1084
1082
|
}]);
|
|
1085
|
-
return MeetingRequest;
|
|
1086
1083
|
}(_webexCore.StatelessWebexPlugin);
|
|
1087
1084
|
//# sourceMappingURL=request.js.map
|