@webex/plugin-meetings 1.157.0 → 1.159.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.
Files changed (40) hide show
  1. package/README.md +3 -3
  2. package/browsers.js +1 -1
  3. package/dist/config.js +2 -1
  4. package/dist/config.js.map +1 -1
  5. package/dist/index.js +1 -2
  6. package/dist/index.js.map +1 -1
  7. package/dist/meeting-info/meeting-info-v2.js +172 -36
  8. package/dist/meeting-info/meeting-info-v2.js.map +1 -1
  9. package/dist/meeting-info/utilv2.js +44 -0
  10. package/dist/meeting-info/utilv2.js.map +1 -1
  11. package/dist/meetings/index.js +67 -17
  12. package/dist/meetings/index.js.map +1 -1
  13. package/dist/meetings/request.js +16 -6
  14. package/dist/meetings/request.js.map +1 -1
  15. package/dist/meetings/util.js +17 -0
  16. package/dist/meetings/util.js.map +1 -1
  17. package/package.json +6 -5
  18. package/src/config.js +2 -1
  19. package/src/index.js +0 -1
  20. package/src/meeting-info/meeting-info-v2.js +90 -5
  21. package/src/meeting-info/utilv2.js +39 -0
  22. package/src/meetings/index.js +44 -2
  23. package/src/meetings/request.js +15 -6
  24. package/src/meetings/util.js +19 -0
  25. package/test/{unit/spec/transcription/index.js → integration/spec/transcription.js} +1 -1
  26. package/test/unit/spec/common/browser-detection.js +1 -0
  27. package/test/unit/spec/locus-info/index.js +1 -1
  28. package/test/unit/spec/meeting/index.js +43 -3
  29. package/test/unit/spec/meeting-info/meetinginfov2.js +99 -2
  30. package/test/unit/spec/meeting-info/utilv2.js +72 -0
  31. package/test/unit/spec/meetings/index.js +323 -86
  32. package/test/unit/spec/meetings/utils.js +18 -0
  33. package/test/unit/spec/members/index.js +1 -0
  34. package/test/unit/spec/metrics/index.js +7 -26
  35. package/test/unit/spec/networkQualityMonitor/index.js +1 -0
  36. package/test/unit/spec/peerconnection-manager/index.js +11 -1
  37. package/test/unit/spec/personal-meeting-room/personal-meeting-room.js +1 -0
  38. package/test/unit/spec/reconnection-manager/index.js +1 -0
  39. package/test/unit/spec/roap/util.js +1 -0
  40. package/test/unit/spec/stats-analyzer/index.js +1 -0
@@ -211,5 +211,77 @@ describe('plugin-meetings', () => {
211
211
  assert.equal(res.conversationUrl, 'https://conv-a.wbx2.com/conversation/api/v1/conversations/bfb49280');
212
212
  });
213
213
  });
214
+
215
+ describe('#getWebexSite', () => {
216
+ it('SIP meeting address', () => {
217
+ assert.equal(MeetingInfoUtil.getWebexSite('10019857020@convergedats.webex.com'), 'convergedats.webex.com');
218
+ });
219
+ it('SIP meeting address from excepted domain', () => {
220
+ assert.equal(MeetingInfoUtil.getWebexSite('10019857020@meet.webex.com'), null);
221
+ });
222
+ it('invalid domain', () => {
223
+ assert.equal(MeetingInfoUtil.getWebexSite('invaliddomain'), null);
224
+ });
225
+ });
226
+
227
+ describe('#getDirectMeetingInfoURI', () => {
228
+ it('for _SIP_URI_', () => {
229
+ assert.equal(MeetingInfoUtil.getDirectMeetingInfoURI({
230
+ type: _SIP_URI_,
231
+ destination: 'testing@convergedats.webex.com'
232
+ }), 'https://convergedats.webex.com/wbxappapi/v1/meetingInfo');
233
+ });
234
+
235
+ it('for _LOCUS_ID_ with webExSite', () => {
236
+ assert.equal(MeetingInfoUtil.getDirectMeetingInfoURI({
237
+ type: _LOCUS_ID_,
238
+ destination: {
239
+ info: {
240
+ webExMeetingId: '123456',
241
+ webExSite: 'convergedats.webex.com'
242
+ }
243
+ }
244
+ }), 'https://convergedats.webex.com/wbxappapi/v1/meetingInfo');
245
+ });
246
+
247
+ // null means fall back to default meeting info URI
248
+ it('for _PERSONAL_ROOM_', () => {
249
+ assert.equal(MeetingInfoUtil.getDirectMeetingInfoURI({
250
+ type: _PERSONAL_ROOM_,
251
+ destination: {
252
+ userId: '01824b9b-adef-4b10-b5c1-8a2fe2fb7c0e',
253
+ orgId: '1eb65fdf-9643-417f-9974-ad72cae0e10f'
254
+ }
255
+ }), null);
256
+ });
257
+
258
+ it('for _MEETING_ID_', () => {
259
+ assert.equal(MeetingInfoUtil.getDirectMeetingInfoURI({
260
+ type: _MEETING_ID_,
261
+ destination: '1234323'
262
+ }), null);
263
+ });
264
+
265
+ it('for _MEETING_UUID_', () => {
266
+ assert.equal(MeetingInfoUtil.getDirectMeetingInfoURI({
267
+ type: _MEETING_UUID_,
268
+ destination: 'xsddsdsdsdssdsdsdsdsd'
269
+ }), null);
270
+ });
271
+
272
+ it('for _LOCUS_ID_ with sipUri with excepted domain', () => {
273
+ assert.equal(MeetingInfoUtil.getDirectMeetingInfoURI({
274
+ type: _LOCUS_ID_,
275
+ destination: {info: {webExMeetingId: '123456', sipUri: 'testing@meetup.webex.com'}}
276
+ }), null);
277
+ });
278
+
279
+ it('for _CONVERSATION_URL_', () => {
280
+ assert.equal(MeetingInfoUtil.getDirectMeetingInfoURI({
281
+ type: _CONVERSATION_URL_,
282
+ destination: 'https://conv-a.wbx2.com/conversation/api/v1/conversations/bfb49280'
283
+ }), null);
284
+ });
285
+ });
214
286
  });
215
287
  });