@webex/plugin-meetings 3.0.0-beta.412 → 3.0.0-beta.413
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/breakouts/breakout.js +1 -1
- package/dist/breakouts/index.js +1 -1
- package/dist/constants.js +1 -1
- package/dist/constants.js.map +1 -1
- package/dist/interpretation/index.js +1 -1
- package/dist/interpretation/siLanguage.js +1 -1
- package/dist/meeting/index.js +3 -3
- package/dist/meeting/index.js.map +1 -1
- package/dist/types/constants.d.ts +1 -1
- package/dist/types/meeting/index.d.ts +3 -2
- package/dist/webinar/index.js +1 -1
- package/package.json +19 -19
- package/src/constants.ts +1 -1
- package/src/meeting/index.ts +6 -4
- package/test/unit/spec/meetings/index.js +19 -17
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
import { StatelessWebexPlugin } from '@webex/webex-core';
|
|
3
3
|
import { ClientEvent, ClientEventLeaveReason } from '@webex/internal-plugin-metrics';
|
|
4
|
+
import { ClientEvent as RawClientEvent } from '@webex/event-dictionary-ts';
|
|
4
5
|
import { MediaType } from '@webex/internal-media-core';
|
|
5
6
|
import { LocalStream, LocalCameraStream, LocalDisplayStream, LocalSystemAudioStream, LocalMicrophoneStream } from '@webex/media-helpers';
|
|
6
7
|
import { StatsAnalyzer } from '../statsAnalyzer';
|
|
@@ -1692,9 +1693,9 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
1692
1693
|
private handleMediaLogging;
|
|
1693
1694
|
/**
|
|
1694
1695
|
*
|
|
1695
|
-
* @returns {string} one of 'attendee','host','cohost', returns the user type of the current user
|
|
1696
|
+
* @returns {string} one of 'panelist', 'attendee', 'host', 'cohost', returns the user type of the current user
|
|
1696
1697
|
*/
|
|
1697
|
-
getCurUserType():
|
|
1698
|
+
getCurUserType(): RawClientEvent['userType'] | null;
|
|
1698
1699
|
/**
|
|
1699
1700
|
* End the current meeting for all
|
|
1700
1701
|
* @returns {Promise}
|
package/dist/webinar/index.js
CHANGED
|
@@ -62,7 +62,7 @@ var Webinar = _webexCore.WebexPlugin.extend({
|
|
|
62
62
|
updateCanManageWebcast: function updateCanManageWebcast(canManageWebcast) {
|
|
63
63
|
this.set('canManageWebcast', canManageWebcast);
|
|
64
64
|
},
|
|
65
|
-
version: "3.0.0-beta.
|
|
65
|
+
version: "3.0.0-beta.413"
|
|
66
66
|
});
|
|
67
67
|
var _default = Webinar;
|
|
68
68
|
exports.default = _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webex/plugin-meetings",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.413",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "Cisco EULA (https://www.cisco.com/c/en/us/products/end-user-license-agreement.html)",
|
|
6
6
|
"contributors": [
|
|
@@ -33,12 +33,12 @@
|
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@peculiar/webcrypto": "^1.4.3",
|
|
36
|
-
"@webex/plugin-meetings": "3.0.0-beta.
|
|
37
|
-
"@webex/test-helper-chai": "3.0.0-beta.
|
|
38
|
-
"@webex/test-helper-mocha": "3.0.0-beta.
|
|
39
|
-
"@webex/test-helper-mock-webex": "3.0.0-beta.
|
|
40
|
-
"@webex/test-helper-retry": "3.0.0-beta.
|
|
41
|
-
"@webex/test-helper-test-users": "3.0.0-beta.
|
|
36
|
+
"@webex/plugin-meetings": "3.0.0-beta.413",
|
|
37
|
+
"@webex/test-helper-chai": "3.0.0-beta.413",
|
|
38
|
+
"@webex/test-helper-mocha": "3.0.0-beta.413",
|
|
39
|
+
"@webex/test-helper-mock-webex": "3.0.0-beta.413",
|
|
40
|
+
"@webex/test-helper-retry": "3.0.0-beta.413",
|
|
41
|
+
"@webex/test-helper-test-users": "3.0.0-beta.413",
|
|
42
42
|
"chai": "^4.3.4",
|
|
43
43
|
"chai-as-promised": "^7.1.1",
|
|
44
44
|
"jsdom-global": "3.0.2",
|
|
@@ -47,19 +47,19 @@
|
|
|
47
47
|
"typescript": "^4.7.4"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@webex/common": "3.0.0-beta.
|
|
50
|
+
"@webex/common": "3.0.0-beta.413",
|
|
51
51
|
"@webex/internal-media-core": "2.3.2",
|
|
52
|
-
"@webex/internal-plugin-conversation": "3.0.0-beta.
|
|
53
|
-
"@webex/internal-plugin-device": "3.0.0-beta.
|
|
54
|
-
"@webex/internal-plugin-llm": "3.0.0-beta.
|
|
55
|
-
"@webex/internal-plugin-mercury": "3.0.0-beta.
|
|
56
|
-
"@webex/internal-plugin-metrics": "3.0.0-beta.
|
|
57
|
-
"@webex/internal-plugin-support": "3.0.0-beta.
|
|
58
|
-
"@webex/internal-plugin-user": "3.0.0-beta.
|
|
59
|
-
"@webex/media-helpers": "3.0.0-beta.
|
|
60
|
-
"@webex/plugin-people": "3.0.0-beta.
|
|
61
|
-
"@webex/plugin-rooms": "3.0.0-beta.
|
|
62
|
-
"@webex/webex-core": "3.0.0-beta.
|
|
52
|
+
"@webex/internal-plugin-conversation": "3.0.0-beta.413",
|
|
53
|
+
"@webex/internal-plugin-device": "3.0.0-beta.413",
|
|
54
|
+
"@webex/internal-plugin-llm": "3.0.0-beta.413",
|
|
55
|
+
"@webex/internal-plugin-mercury": "3.0.0-beta.413",
|
|
56
|
+
"@webex/internal-plugin-metrics": "3.0.0-beta.413",
|
|
57
|
+
"@webex/internal-plugin-support": "3.0.0-beta.413",
|
|
58
|
+
"@webex/internal-plugin-user": "3.0.0-beta.413",
|
|
59
|
+
"@webex/media-helpers": "3.0.0-beta.413",
|
|
60
|
+
"@webex/plugin-people": "3.0.0-beta.413",
|
|
61
|
+
"@webex/plugin-rooms": "3.0.0-beta.413",
|
|
62
|
+
"@webex/webex-core": "3.0.0-beta.413",
|
|
63
63
|
"ampersand-collection": "^2.0.2",
|
|
64
64
|
"bowser": "^2.11.0",
|
|
65
65
|
"btoa": "^1.2.1",
|
package/src/constants.ts
CHANGED
package/src/meeting/index.ts
CHANGED
|
@@ -10,6 +10,8 @@ import {
|
|
|
10
10
|
ClientEventLeaveReason,
|
|
11
11
|
CallDiagnosticUtils,
|
|
12
12
|
} from '@webex/internal-plugin-metrics';
|
|
13
|
+
import {ClientEvent as RawClientEvent} from '@webex/event-dictionary-ts';
|
|
14
|
+
|
|
13
15
|
import {
|
|
14
16
|
ConnectionState,
|
|
15
17
|
Errors,
|
|
@@ -7940,9 +7942,9 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
7940
7942
|
|
|
7941
7943
|
/**
|
|
7942
7944
|
*
|
|
7943
|
-
* @returns {string} one of 'attendee','host','cohost', returns the user type of the current user
|
|
7945
|
+
* @returns {string} one of 'panelist', 'attendee', 'host', 'cohost', returns the user type of the current user
|
|
7944
7946
|
*/
|
|
7945
|
-
getCurUserType() {
|
|
7947
|
+
getCurUserType(): RawClientEvent['userType'] | null {
|
|
7946
7948
|
const {roles} = this;
|
|
7947
7949
|
if (roles) {
|
|
7948
7950
|
if (roles.includes(SELF_ROLES.MODERATOR)) {
|
|
@@ -7951,8 +7953,8 @@ export default class Meeting extends StatelessWebexPlugin {
|
|
|
7951
7953
|
if (roles.includes(SELF_ROLES.COHOST)) {
|
|
7952
7954
|
return 'cohost';
|
|
7953
7955
|
}
|
|
7954
|
-
if (roles.includes(SELF_ROLES.
|
|
7955
|
-
return '
|
|
7956
|
+
if (roles.includes(SELF_ROLES.PANELIST)) {
|
|
7957
|
+
return 'panelist';
|
|
7956
7958
|
}
|
|
7957
7959
|
if (roles.includes(SELF_ROLES.ATTENDEE)) {
|
|
7958
7960
|
return 'attendee';
|
|
@@ -2008,24 +2008,27 @@ describe('plugin-meetings', () => {
|
|
|
2008
2008
|
assert.notCalled(loggerProxySpy);
|
|
2009
2009
|
});
|
|
2010
2010
|
|
|
2011
|
-
forEach(
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2011
|
+
forEach(
|
|
2012
|
+
[
|
|
2013
|
+
{user: undefined},
|
|
2014
|
+
{user: {userPreferences: {}}},
|
|
2015
|
+
{user: {userPreferences: {userPreferencesItems: {}}}},
|
|
2016
|
+
{user: {userPreferences: {userPreferencesItems: {preferredWebExSite: undefined}}}},
|
|
2017
|
+
],
|
|
2018
|
+
({user}) => {
|
|
2019
|
+
it(`should handle invalid user data ${user}`, async () => {
|
|
2020
|
+
setup({user});
|
|
2019
2021
|
|
|
2020
|
-
|
|
2022
|
+
await webex.meetings.fetchUserPreferredWebexSite();
|
|
2021
2023
|
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2024
|
+
assert.equal(webex.meetings.preferredWebexSite, '');
|
|
2025
|
+
assert.calledOnceWithExactly(
|
|
2026
|
+
loggerProxySpy,
|
|
2027
|
+
'Failed to fetch preferred site from user - no site will be set'
|
|
2028
|
+
);
|
|
2029
|
+
});
|
|
2030
|
+
}
|
|
2031
|
+
);
|
|
2029
2032
|
|
|
2030
2033
|
it('should handle a get user failure', async () => {
|
|
2031
2034
|
setup();
|
|
@@ -2040,7 +2043,6 @@ describe('plugin-meetings', () => {
|
|
|
2040
2043
|
'Failed to fetch preferred site from user - no site will be set'
|
|
2041
2044
|
);
|
|
2042
2045
|
});
|
|
2043
|
-
|
|
2044
2046
|
});
|
|
2045
2047
|
});
|
|
2046
2048
|
|