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