@webex/plugin-meetings 3.10.0 → 3.11.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/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 +38 -27
- 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 +2 -2
- package/dist/config.js.map +1 -1
- package/dist/constants.js +13 -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 +1250 -0
- package/dist/hashTree/hashTreeParser.js.map +1 -0
- package/dist/hashTree/types.js +23 -0
- package/dist/hashTree/types.js.map +1 -0
- package/dist/hashTree/utils.js +59 -0
- package/dist/hashTree/utils.js.map +1 -0
- package/dist/index.js +8 -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 +33 -13
- 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 +5 -3
- 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 +619 -177
- 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 +5 -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 +1632 -1535
- 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 +200 -148
- 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 +36 -30
- 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 +4 -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 +188 -352
- package/dist/reachability/clusterReachability.js.map +1 -1
- package/dist/reachability/index.js +206 -206
- 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/common/errors/webex-errors.d.ts +12 -0
- package/dist/types/config.d.ts +1 -0
- package/dist/types/constants.d.ts +27 -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 +250 -0
- package/dist/types/hashTree/types.d.ts +33 -0
- package/dist/types/hashTree/utils.d.ts +16 -0
- package/dist/types/index.d.ts +2 -1
- package/dist/types/interceptors/locusRouteToken.d.ts +2 -0
- package/dist/types/locus-info/index.d.ts +98 -80
- package/dist/types/locus-info/types.d.ts +54 -0
- package/dist/types/meeting/index.d.ts +35 -9
- package/dist/types/meetings/index.d.ts +9 -2
- package/dist/types/metrics/constants.d.ts +3 -0
- package/dist/types/reachability/clusterReachability.d.ts +33 -84
- 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 +24 -23
- package/src/common/errors/webex-errors.ts +19 -0
- package/src/config.ts +1 -0
- package/src/constants.ts +15 -2
- package/src/hashTree/constants.ts +9 -0
- package/src/hashTree/hashTree.ts +463 -0
- package/src/hashTree/hashTreeParser.ts +1143 -0
- package/src/hashTree/types.ts +39 -0
- package/src/hashTree/utils.ts +53 -0
- package/src/index.ts +2 -0
- package/src/interceptors/locusRouteToken.ts +22 -5
- package/src/locus-info/controlsUtils.ts +6 -0
- package/src/locus-info/index.ts +641 -164
- package/src/locus-info/types.ts +53 -0
- package/src/media/index.ts +6 -0
- package/src/meeting/index.ts +137 -28
- package/src/meeting/util.ts +1 -0
- package/src/meetings/index.ts +119 -59
- package/src/meetings/util.ts +10 -9
- package/src/metrics/constants.ts +3 -0
- package/src/reachability/clusterReachability.ts +159 -330
- package/src/reachability/index.ts +6 -1
- package/src/reachability/reachability.types.ts +15 -1
- package/src/reachability/reachabilityPeerConnection.ts +418 -0
- package/test/unit/spec/hashTree/hashTree.ts +655 -0
- package/test/unit/spec/hashTree/hashTreeParser.ts +1524 -0
- package/test/unit/spec/hashTree/utils.ts +140 -0
- package/test/unit/spec/interceptors/locusRouteToken.ts +44 -0
- package/test/unit/spec/locus-info/controlsUtils.js +27 -1
- package/test/unit/spec/locus-info/index.js +879 -16
- package/test/unit/spec/media/index.ts +140 -9
- package/test/unit/spec/meeting/index.js +299 -94
- package/test/unit/spec/meeting/utils.js +78 -1
- package/test/unit/spec/meetings/index.js +263 -29
- package/test/unit/spec/meetings/utils.js +51 -1
- package/test/unit/spec/reachability/clusterReachability.ts +404 -137
- package/test/unit/spec/reachability/index.ts +3 -3
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
import {HashTreeObject, ObjectType} from '../../../../src/hashTree/types';
|
|
2
|
+
import {deleteNestedObjectsWithHtMeta, isSelf} from '../../../../src/hashTree/utils';
|
|
3
|
+
|
|
4
|
+
import {assert} from '@webex/test-helper-chai';
|
|
5
|
+
|
|
6
|
+
describe('Hash Tree Utils', () => {
|
|
7
|
+
describe('#deleteNestedObjectsWithHtMeta', () => {
|
|
8
|
+
it('should delete nested objects with htMeta', () => {
|
|
9
|
+
const locusPart = {
|
|
10
|
+
a: {
|
|
11
|
+
htMeta: {
|
|
12
|
+
id: '1',
|
|
13
|
+
},
|
|
14
|
+
value: 'to be deleted',
|
|
15
|
+
},
|
|
16
|
+
b: {
|
|
17
|
+
c: {
|
|
18
|
+
htMeta: {
|
|
19
|
+
id: '2',
|
|
20
|
+
},
|
|
21
|
+
value: 'to be deleted',
|
|
22
|
+
},
|
|
23
|
+
d: 'to be kept',
|
|
24
|
+
},
|
|
25
|
+
e: [
|
|
26
|
+
{
|
|
27
|
+
htMeta: {
|
|
28
|
+
id: '3',
|
|
29
|
+
},
|
|
30
|
+
value: 'to be deleted',
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
f: 'to be kept',
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
htMeta: {
|
|
37
|
+
id: '4',
|
|
38
|
+
},
|
|
39
|
+
value: 'to be deleted',
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
g: 'to be kept',
|
|
43
|
+
},
|
|
44
|
+
],
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
deleteNestedObjectsWithHtMeta(locusPart);
|
|
48
|
+
|
|
49
|
+
assert.deepEqual(locusPart, {
|
|
50
|
+
b: {
|
|
51
|
+
d: 'to be kept',
|
|
52
|
+
},
|
|
53
|
+
e: [
|
|
54
|
+
{
|
|
55
|
+
f: 'to be kept',
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
g: 'to be kept',
|
|
59
|
+
},
|
|
60
|
+
],
|
|
61
|
+
});
|
|
62
|
+
});
|
|
63
|
+
|
|
64
|
+
it('should handle arrays correctly', () => {
|
|
65
|
+
const locusPart = {
|
|
66
|
+
htMeta: {
|
|
67
|
+
id: '0', // this should not be deleted
|
|
68
|
+
},
|
|
69
|
+
participants: [
|
|
70
|
+
{
|
|
71
|
+
htMeta: {
|
|
72
|
+
id: '1',
|
|
73
|
+
},
|
|
74
|
+
id: 'participant1',
|
|
75
|
+
value: 'to be deleted',
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
htMeta: {
|
|
79
|
+
id: '2',
|
|
80
|
+
},
|
|
81
|
+
id: 'participant2',
|
|
82
|
+
value: 'to be deleted',
|
|
83
|
+
},
|
|
84
|
+
],
|
|
85
|
+
self: {
|
|
86
|
+
htMeta: {
|
|
87
|
+
id: '3',
|
|
88
|
+
},
|
|
89
|
+
id: 'self1',
|
|
90
|
+
value: 'to be deleted',
|
|
91
|
+
},
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
deleteNestedObjectsWithHtMeta(locusPart);
|
|
95
|
+
|
|
96
|
+
assert.deepEqual(locusPart, {
|
|
97
|
+
htMeta: {
|
|
98
|
+
id: '0',
|
|
99
|
+
},
|
|
100
|
+
participants: [],
|
|
101
|
+
});
|
|
102
|
+
});
|
|
103
|
+
});
|
|
104
|
+
|
|
105
|
+
describe('#isSelf', () => {
|
|
106
|
+
['self', 'SELF', 'Self'].forEach((type) => {
|
|
107
|
+
it(`should return true for object with type="${type}"`, () => {
|
|
108
|
+
const selfObject = {
|
|
109
|
+
htMeta: {
|
|
110
|
+
elementId: {
|
|
111
|
+
type,
|
|
112
|
+
id: 1,
|
|
113
|
+
version: 1,
|
|
114
|
+
},
|
|
115
|
+
dataSetNames: [],
|
|
116
|
+
},
|
|
117
|
+
data: {},
|
|
118
|
+
};
|
|
119
|
+
|
|
120
|
+
assert.isTrue(isSelf(selfObject as HashTreeObject));
|
|
121
|
+
});
|
|
122
|
+
});
|
|
123
|
+
|
|
124
|
+
it('should return false for non-self object', () => {
|
|
125
|
+
const participantObject = {
|
|
126
|
+
htMeta: {
|
|
127
|
+
elementId: {
|
|
128
|
+
type: ObjectType.participant,
|
|
129
|
+
id: 2,
|
|
130
|
+
version: 1,
|
|
131
|
+
},
|
|
132
|
+
dataSetNames: [],
|
|
133
|
+
},
|
|
134
|
+
data: {},
|
|
135
|
+
};
|
|
136
|
+
|
|
137
|
+
assert.isFalse(isSelf(participantObject));
|
|
138
|
+
});
|
|
139
|
+
});
|
|
140
|
+
});
|
|
@@ -54,6 +54,40 @@ describe('LocusRouteTokenInterceptor', () => {
|
|
|
54
54
|
assert.equal(interceptor.getToken(TEST_LOCUS_ID), 'test-token');
|
|
55
55
|
});
|
|
56
56
|
|
|
57
|
+
it('onResponse should store route token when body exists', async () => {
|
|
58
|
+
const response = {
|
|
59
|
+
headers: {
|
|
60
|
+
[X_CISCO_PART_ROUTE_TOKEN]: 'test-token',
|
|
61
|
+
},
|
|
62
|
+
body: {
|
|
63
|
+
locus: {
|
|
64
|
+
url: `https://locus-test.webex.com/locus/api/v1/loci/${TEST_LOCUS_ID}`,
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
const result = await interceptor.onResponse({},response);
|
|
70
|
+
assert.equal(result, response);
|
|
71
|
+
assert.equal(interceptor.getToken(TEST_LOCUS_ID), 'test-token');
|
|
72
|
+
});
|
|
73
|
+
|
|
74
|
+
it('get route token case insensitively ', async () => {
|
|
75
|
+
const response = {
|
|
76
|
+
headers: {
|
|
77
|
+
['x-cisco-part-route-token']: 'test-token',
|
|
78
|
+
},
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
const result = await interceptor.onResponse(
|
|
82
|
+
{
|
|
83
|
+
uri: `https://locus-test.webex.com/locus/api/v1/loci/${TEST_LOCUS_ID}/foo`,
|
|
84
|
+
},
|
|
85
|
+
response
|
|
86
|
+
);
|
|
87
|
+
assert.equal(result, response);
|
|
88
|
+
assert.equal(interceptor.getToken(TEST_LOCUS_ID), 'test-token');
|
|
89
|
+
});
|
|
90
|
+
|
|
57
91
|
it('onResponse should not store token when header missing', async () => {
|
|
58
92
|
interceptor.updateToken(TEST_LOCUS_ID);
|
|
59
93
|
const response = {headers: {}};
|
|
@@ -84,4 +118,14 @@ describe('LocusRouteTokenInterceptor', () => {
|
|
|
84
118
|
interceptor.updateToken(TEST_LOCUS_ID, 'abc456');
|
|
85
119
|
assert.equal(interceptor.getToken(TEST_LOCUS_ID), 'abc456');
|
|
86
120
|
});
|
|
121
|
+
|
|
122
|
+
it('should delete token when updateToken called with "null"', () => {
|
|
123
|
+
interceptor.updateToken(TEST_LOCUS_ID, 'null');
|
|
124
|
+
assert.isUndefined(interceptor.getToken(TEST_LOCUS_ID));
|
|
125
|
+
});
|
|
126
|
+
|
|
127
|
+
it('should delete token when updateToken called with null', () => {
|
|
128
|
+
interceptor.updateToken(TEST_LOCUS_ID, null);
|
|
129
|
+
assert.isUndefined(interceptor.getToken(TEST_LOCUS_ID));
|
|
130
|
+
});
|
|
87
131
|
});
|
|
@@ -164,7 +164,7 @@ describe('plugin-meetings', () => {
|
|
|
164
164
|
|
|
165
165
|
assert.equal(parsedControls.rdcControl.enabled, newControls.rdcControl.enabled);
|
|
166
166
|
});
|
|
167
|
-
|
|
167
|
+
|
|
168
168
|
it('should parse the pollingQAControl control', () => {
|
|
169
169
|
const newControls = {pollingQAControl: {enabled: true}};
|
|
170
170
|
|
|
@@ -173,6 +173,14 @@ describe('plugin-meetings', () => {
|
|
|
173
173
|
assert.equal(parsedControls.pollingQAControl.enabled, newControls.pollingQAControl.enabled);
|
|
174
174
|
});
|
|
175
175
|
|
|
176
|
+
it('should parse the hesiodLlmId in transcribe control', () => {
|
|
177
|
+
const newControls = {transcribe: {hesiodLlmId: 'llm-123', transcribing: true, caption: true, spokenLanguage: 'en-US'}};
|
|
178
|
+
|
|
179
|
+
const parsedControls = ControlsUtils.parse(newControls);
|
|
180
|
+
|
|
181
|
+
assert.equal(parsedControls.transcribe.hesiodLlmId, newControls.transcribe.hesiodLlmId);
|
|
182
|
+
});
|
|
183
|
+
|
|
176
184
|
describe('videoEnabled', () => {
|
|
177
185
|
it('returns expected', () => {
|
|
178
186
|
const result = ControlsUtils.parse({video: {enabled: true}});
|
|
@@ -463,6 +471,24 @@ describe('plugin-meetings', () => {
|
|
|
463
471
|
assert.equal(updates.hasTranscribeSpokenLanguageChanged, true);
|
|
464
472
|
});
|
|
465
473
|
|
|
474
|
+
it('returns false when previous hesiodLlmId is undefined and current is a invalid value', () => {
|
|
475
|
+
const previous = { transcribe: undefined };
|
|
476
|
+
const current = { transcribe: { hesiodLlmId: null } };
|
|
477
|
+
|
|
478
|
+
const {updates} = ControlsUtils.getControls(previous, current);
|
|
479
|
+
|
|
480
|
+
assert.equal(updates.hasHesiodLLMIdChanged, false);
|
|
481
|
+
});
|
|
482
|
+
|
|
483
|
+
it('detects hesiodLlmId change when previous is undefined and current is a valid value', () => {
|
|
484
|
+
const previous = { transcribe: undefined };
|
|
485
|
+
const current = { transcribe: { hesiodLlmId: '123a-456b' } };
|
|
486
|
+
|
|
487
|
+
const {updates} = ControlsUtils.getControls(previous, current);
|
|
488
|
+
|
|
489
|
+
assert.equal(updates.hasHesiodLLMIdChanged, true);
|
|
490
|
+
});
|
|
491
|
+
|
|
466
492
|
describe('videoEnabled', () => {
|
|
467
493
|
const testVideoEnabled = (oldControls, newControls, updatedProperty) => {
|
|
468
494
|
const result = ControlsUtils.getControls(oldControls, newControls);
|