@webex/plugin-meetings 3.0.0-beta.87 → 3.0.0-beta.89
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 +7 -0
- package/dist/annotation/annotation.types.js.map +1 -0
- package/dist/annotation/constants.js +48 -0
- package/dist/annotation/constants.js.map +1 -0
- package/dist/annotation/index.js +325 -0
- package/dist/annotation/index.js.map +1 -0
- package/dist/breakouts/breakout.js +1 -1
- package/dist/breakouts/index.js +13 -7
- package/dist/breakouts/index.js.map +1 -1
- package/dist/constants.js +6 -2
- package/dist/constants.js.map +1 -1
- package/dist/meeting/index.js +15 -1
- package/dist/meeting/index.js.map +1 -1
- package/dist/meeting/request.js +29 -17
- package/dist/meeting/request.js.map +1 -1
- package/dist/types/annotation/annotation.types.d.ts +33 -0
- package/dist/types/annotation/constants.d.ts +31 -0
- package/dist/types/annotation/index.d.ts +117 -0
- package/dist/types/constants.d.ts +3 -0
- package/dist/types/meeting/index.d.ts +1 -0
- package/dist/types/meeting/request.d.ts +3 -0
- package/package.json +19 -19
- package/src/annotation/annotation.types.ts +37 -0
- package/src/annotation/constants.ts +36 -0
- package/src/annotation/index.ts +314 -0
- package/src/breakouts/index.ts +11 -4
- package/src/constants.ts +3 -0
- package/src/meeting/index.ts +12 -0
- package/src/meeting/request.ts +16 -1
- package/test/unit/spec/annotation/index.ts +420 -0
- package/test/unit/spec/breakouts/index.ts +72 -52
- package/test/unit/spec/meeting/index.js +13 -1
- package/test/unit/spec/meeting/request.js +65 -1
- package/test/unit/spec/meeting/utils.js +1 -0
|
@@ -202,7 +202,22 @@ describe('plugin-meetings', () => {
|
|
|
202
202
|
assert.deepEqual(requestParams.body.deviceCapabilities, ['BREAKOUTS_SUPPORTED']);
|
|
203
203
|
});
|
|
204
204
|
|
|
205
|
-
it('
|
|
205
|
+
it('adds deviceCapabilities to request when live annotation are supported', async () => {
|
|
206
|
+
await meetingsRequest.joinMeeting({
|
|
207
|
+
liveAnnotationSupported: true
|
|
208
|
+
});
|
|
209
|
+
const requestParams = meetingsRequest.request.getCall(0).args[0];
|
|
210
|
+
assert.deepEqual(requestParams.body.deviceCapabilities, ['ANNOTATION_ON_SHARE_SUPPORTED']);
|
|
211
|
+
});
|
|
212
|
+
it('adds deviceCapabilities to request when breakouts and live annotation are supported', async () => {
|
|
213
|
+
await meetingsRequest.joinMeeting({
|
|
214
|
+
liveAnnotationSupported: true,
|
|
215
|
+
breakoutsSupported: true,
|
|
216
|
+
});
|
|
217
|
+
const requestParams = meetingsRequest.request.getCall(0).args[0];
|
|
218
|
+
assert.deepEqual(requestParams.body.deviceCapabilities, ['BREAKOUTS_SUPPORTED','ANNOTATION_ON_SHARE_SUPPORTED']);
|
|
219
|
+
});
|
|
220
|
+
it('does not add deviceCapabilities to request when breakouts and live annotation are not supported', async () => {
|
|
206
221
|
await meetingsRequest.joinMeeting({});
|
|
207
222
|
|
|
208
223
|
const requestParams = meetingsRequest.request.getCall(0).args[0];
|
|
@@ -389,4 +404,53 @@ describe('plugin-meetings', () => {
|
|
|
389
404
|
})
|
|
390
405
|
});
|
|
391
406
|
});
|
|
407
|
+
describe('#changeMeetingFloor', () => {
|
|
408
|
+
|
|
409
|
+
it('change meeting floor', async () => {
|
|
410
|
+
const options = {
|
|
411
|
+
disposition: 'GRANTED',
|
|
412
|
+
personUrl: 'personUrl',
|
|
413
|
+
deviceUrl: 'deviceUrl',
|
|
414
|
+
resourceId: 'resourceId',
|
|
415
|
+
resourceUrl: 'resourceUrl',
|
|
416
|
+
uri: 'optionsUrl',
|
|
417
|
+
annotation:{
|
|
418
|
+
version: '1',
|
|
419
|
+
policy: 'Approval',
|
|
420
|
+
},
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
const expectBody = {
|
|
424
|
+
annotation: {
|
|
425
|
+
policy: 'Approval',
|
|
426
|
+
version: '1',
|
|
427
|
+
},
|
|
428
|
+
floor: {
|
|
429
|
+
beneficiary: {
|
|
430
|
+
devices: [
|
|
431
|
+
{
|
|
432
|
+
deviceType: undefined,
|
|
433
|
+
url: "deviceUrl"
|
|
434
|
+
}
|
|
435
|
+
],
|
|
436
|
+
url: 'personUrl',
|
|
437
|
+
},
|
|
438
|
+
disposition: 'GRANTED',
|
|
439
|
+
requester: {
|
|
440
|
+
"url": "personUrl"
|
|
441
|
+
}
|
|
442
|
+
},
|
|
443
|
+
resourceUrl: 'resourceUrl',
|
|
444
|
+
};
|
|
445
|
+
|
|
446
|
+
|
|
447
|
+
await meetingsRequest.changeMeetingFloor(options);
|
|
448
|
+
|
|
449
|
+
assert.deepEqual(meetingsRequest.request.getCall(0).args[0], {
|
|
450
|
+
method: 'PUT',
|
|
451
|
+
uri: 'optionsUrl',
|
|
452
|
+
body: expectBody,
|
|
453
|
+
})
|
|
454
|
+
});
|
|
455
|
+
});
|
|
392
456
|
});
|