@webex/plugin-meetings 2.14.4 → 2.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/dist/analyzer/analyzer.js.map +1 -1
- package/dist/analyzer/calculator.js.map +1 -1
- package/dist/common/browser-detection.js.map +1 -1
- package/dist/common/collection.js +2 -3
- package/dist/common/collection.js.map +1 -1
- package/dist/common/errors/captcha-error.js.map +1 -1
- package/dist/common/errors/intent-to-join.js.map +1 -1
- package/dist/common/errors/join-meeting.js.map +1 -1
- package/dist/common/errors/media.js.map +1 -1
- package/dist/common/errors/parameter.js +20 -5
- package/dist/common/errors/parameter.js.map +1 -1
- package/dist/common/errors/password-error.js.map +1 -1
- package/dist/common/errors/permission.js.map +1 -1
- package/dist/common/errors/reconnection.js.map +1 -1
- package/dist/common/errors/stats.js.map +1 -1
- package/dist/common/events/events-scope.js.map +1 -1
- 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-proxy.js.map +1 -1
- package/dist/common/logs/request.js.map +1 -1
- package/dist/common/queue.js +3 -0
- package/dist/common/queue.js.map +1 -1
- package/dist/config.js.map +1 -1
- package/dist/constants.js +2 -1
- package/dist/constants.js.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/locus-info/fullState.js.map +1 -1
- package/dist/locus-info/index.js +5 -3
- package/dist/locus-info/index.js.map +1 -1
- package/dist/locus-info/infoUtils.js +8 -6
- package/dist/locus-info/infoUtils.js.map +1 -1
- package/dist/locus-info/parser.js.map +1 -1
- package/dist/locus-info/selfUtils.js +22 -9
- package/dist/locus-info/selfUtils.js.map +1 -1
- package/dist/media/index.js.map +1 -1
- package/dist/media/properties.js.map +1 -1
- package/dist/media/util.js.map +1 -1
- package/dist/meeting/effectsState.js.map +1 -1
- package/dist/meeting/in-meeting-actions.js +3 -1
- package/dist/meeting/in-meeting-actions.js.map +1 -1
- package/dist/meeting/index.js +7 -3
- package/dist/meeting/index.js.map +1 -1
- package/dist/meeting/muteState.js.map +1 -1
- package/dist/meeting/request.js.map +1 -1
- package/dist/meeting/state.js.map +1 -1
- package/dist/meeting/util.js +4 -0
- package/dist/meeting/util.js.map +1 -1
- package/dist/meeting-info/index.js.map +1 -1
- package/dist/meeting-info/meeting-info-v2.js.map +1 -1
- package/dist/meeting-info/request.js.map +1 -1
- package/dist/meeting-info/util.js +0 -3
- package/dist/meeting-info/util.js.map +1 -1
- package/dist/meeting-info/utilv2.js +0 -3
- package/dist/meeting-info/utilv2.js.map +1 -1
- package/dist/meetings/index.js.map +1 -1
- package/dist/meetings/request.js.map +1 -1
- package/dist/meetings/util.js.map +1 -1
- package/dist/member/index.js.map +1 -1
- package/dist/members/index.js.map +1 -1
- package/dist/members/request.js.map +1 -1
- package/dist/members/util.js.map +1 -1
- package/dist/metrics/index.js.map +1 -1
- package/dist/metrics/mqa-processor.js.map +1 -1
- package/dist/networkQualityMonitor/index.js.map +1 -1
- package/dist/peer-connection-manager/index.js.map +1 -1
- package/dist/personal-meeting-room/request.js.map +1 -1
- package/dist/personal-meeting-room/util.js.map +1 -1
- package/dist/reachability/index.js.map +1 -1
- package/dist/reachability/request.js.map +1 -1
- package/dist/reconnection-manager/index.js +0 -3
- package/dist/reconnection-manager/index.js.map +1 -1
- package/dist/roap/collection.js.map +1 -1
- package/dist/roap/handler.js.map +1 -1
- package/dist/roap/index.js.map +1 -1
- package/dist/roap/request.js.map +1 -1
- package/dist/roap/state.js.map +1 -1
- package/dist/roap/util.js.map +1 -1
- package/dist/stats/data.js.map +1 -1
- package/dist/stats/events.js.map +1 -1
- package/dist/stats/filter.js.map +1 -1
- package/dist/stats/index.js.map +1 -1
- package/dist/stats/metrics.js.map +1 -1
- package/dist/stats/stats.js.map +1 -1
- package/dist/stats/stream.js.map +1 -1
- package/dist/stats/transformer.js.map +1 -1
- package/dist/stats/util.js.map +1 -1
- package/dist/statsAnalyzer/index.js.map +1 -1
- package/dist/statsAnalyzer/mqaUtil.js.map +1 -1
- package/dist/transcription/index.js.map +1 -1
- package/package.json +6 -6
- package/src/common/{collection.js → collection.ts} +2 -2
- package/src/common/errors/parameter.ts +29 -0
- package/src/common/{queue.js → queue.ts} +1 -0
- package/src/{constants.js → constants.ts} +1 -0
- package/src/locus-info/index.js +4 -4
- package/src/locus-info/infoUtils.js +15 -7
- package/src/locus-info/selfUtils.js +18 -9
- package/src/meeting/in-meeting-actions.js +2 -0
- package/src/meeting/index.js +6 -1
- package/src/meeting/util.js +2 -0
- package/test/unit/spec/locus-info/index.js +4 -1
- package/test/unit/spec/locus-info/infoUtils.js +33 -10
- package/test/unit/spec/locus-info/selfUtils.js +20 -0
- package/test/unit/spec/meeting/in-meeting-actions.js +2 -0
- package/test/unit/spec/meeting/index.js +5 -2
- package/test/unit/spec/meeting/utils.js +7 -0
- package/dist/common/constants.js +0 -15
- package/dist/common/constants.js.map +0 -1
- package/src/common/constants.js +0 -6
- package/src/common/errors/parameter.js +0 -26
|
@@ -928,10 +928,10 @@ describe('plugin-meetings', () => {
|
|
|
928
928
|
});
|
|
929
929
|
});
|
|
930
930
|
|
|
931
|
-
it('should reject promise if user is
|
|
931
|
+
it('should reject promise if user is in lobby ', async () => {
|
|
932
932
|
meeting.meetingState = 'ACTIVE';
|
|
933
933
|
meeting.locusInfo.parsedLocus = {self: {state: 'IDLE'}};
|
|
934
|
-
meeting.
|
|
934
|
+
meeting.isUserUnadmitted = true;
|
|
935
935
|
|
|
936
936
|
try {
|
|
937
937
|
await meeting.addMedia();
|
|
@@ -3543,6 +3543,7 @@ describe('plugin-meetings', () => {
|
|
|
3543
3543
|
let canUserResumeSpy;
|
|
3544
3544
|
let canUserRaiseHandSpy;
|
|
3545
3545
|
let canUserLowerAllHandsSpy;
|
|
3546
|
+
let canUserLowerSomeoneElsesHandSpy;
|
|
3546
3547
|
|
|
3547
3548
|
|
|
3548
3549
|
beforeEach(() => {
|
|
@@ -3556,6 +3557,7 @@ describe('plugin-meetings', () => {
|
|
|
3556
3557
|
inMeetingActionsSetSpy = sinon.spy(meeting.inMeetingActions, 'set');
|
|
3557
3558
|
canUserRaiseHandSpy = sinon.spy(MeetingUtil, 'canUserRaiseHand');
|
|
3558
3559
|
canUserLowerAllHandsSpy = sinon.spy(MeetingUtil, 'canUserLowerAllHands');
|
|
3560
|
+
canUserLowerSomeoneElsesHandSpy = sinon.spy(MeetingUtil, 'canUserLowerSomeoneElsesHand');
|
|
3559
3561
|
});
|
|
3560
3562
|
|
|
3561
3563
|
afterEach(() => {
|
|
@@ -3590,6 +3592,7 @@ describe('plugin-meetings', () => {
|
|
|
3590
3592
|
assert.calledWith(canUserResumeSpy, payload.info.userDisplayHints);
|
|
3591
3593
|
assert.calledWith(canUserRaiseHandSpy, payload.info.userDisplayHints);
|
|
3592
3594
|
assert.calledWith(canUserLowerAllHandsSpy, payload.info.userDisplayHints);
|
|
3595
|
+
assert.calledWith(canUserLowerSomeoneElsesHandSpy, payload.info.userDisplayHints);
|
|
3593
3596
|
|
|
3594
3597
|
assert.calledWith(
|
|
3595
3598
|
TriggerProxy.trigger,
|
|
@@ -228,6 +228,13 @@ describe('plugin-meetings', () => {
|
|
|
228
228
|
});
|
|
229
229
|
});
|
|
230
230
|
|
|
231
|
+
describe('canUserLowerSomeoneElsesHand', () => {
|
|
232
|
+
it('works as expected', () => {
|
|
233
|
+
assert.deepEqual(MeetingUtil.canUserLowerSomeoneElsesHand(['LOWER_SOMEONE_ELSES_HAND']), true);
|
|
234
|
+
assert.deepEqual(MeetingUtil.canUserLowerSomeoneElsesHand([]), false);
|
|
235
|
+
});
|
|
236
|
+
});
|
|
237
|
+
|
|
231
238
|
describe('canUserLock', () => {
|
|
232
239
|
it('works as expected', () => {
|
|
233
240
|
assert.deepEqual(MeetingUtil.canUserLock(['LOCK_CONTROL_LOCK', 'LOCK_STATUS_UNLOCKED']), true);
|
package/dist/common/constants.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _Object$defineProperty = require("@babel/runtime-corejs2/core-js/object/define-property");
|
|
4
|
-
|
|
5
|
-
_Object$defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
|
|
9
|
-
exports.default = void 0;
|
|
10
|
-
// TODO: populate and test
|
|
11
|
-
var constants = {};
|
|
12
|
-
constants.INCOMING = 'INCOMING';
|
|
13
|
-
var _default = constants;
|
|
14
|
-
exports.default = _default;
|
|
15
|
-
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["constants","INCOMING"],"sources":["constants.js"],"sourcesContent":["// TODO: populate and test\nconst constants = {};\n\nconstants.INCOMING = 'INCOMING';\n\nexport default constants;\n"],"mappings":";;;;;;;;;AAAA;AACA,IAAMA,SAAS,GAAG,EAAlB;AAEAA,SAAS,CAACC,QAAV,GAAqB,UAArB;eAEeD,S"}
|
package/src/common/constants.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import {ERROR_DICTIONARY} from '../../constants';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Extended Error object for general parameter errors
|
|
5
|
-
*/
|
|
6
|
-
export default class ParameterError extends Error {
|
|
7
|
-
/**
|
|
8
|
-
*
|
|
9
|
-
* @constructor
|
|
10
|
-
* @param {String} [message]
|
|
11
|
-
* @param {Object} [error]
|
|
12
|
-
*/
|
|
13
|
-
constructor(message = ERROR_DICTIONARY.PARAMETER.MESSAGE, error = null) {
|
|
14
|
-
super(message);
|
|
15
|
-
|
|
16
|
-
if (Error.captureStackTrace) {
|
|
17
|
-
Error.captureStackTrace(this, ParameterError);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
this.name = ERROR_DICTIONARY.PARAMETER.NAME;
|
|
21
|
-
this.sdkMessage = message || ERROR_DICTIONARY.PARAMETER.MESSAGE;
|
|
22
|
-
this.error = error;
|
|
23
|
-
|
|
24
|
-
this.code = ERROR_DICTIONARY.PARAMETER.CODE;
|
|
25
|
-
}
|
|
26
|
-
}
|