@webex/plugin-meetings 3.4.0-next.9 → 3.5.0-next.1

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 (42) hide show
  1. package/dist/breakouts/breakout.js +1 -1
  2. package/dist/breakouts/index.js +1 -1
  3. package/dist/interpretation/index.js +1 -1
  4. package/dist/interpretation/siLanguage.js +1 -1
  5. package/dist/meeting/index.js +106 -12
  6. package/dist/meeting/index.js.map +1 -1
  7. package/dist/meeting/util.js +1 -0
  8. package/dist/meeting/util.js.map +1 -1
  9. package/dist/meetings/index.js +7 -0
  10. package/dist/meetings/index.js.map +1 -1
  11. package/dist/types/meeting/index.d.ts +20 -0
  12. package/dist/types/meetings/index.d.ts +2 -1
  13. package/dist/webinar/index.js +1 -1
  14. package/package.json +22 -22
  15. package/src/meeting/index.ts +73 -4
  16. package/src/meeting/util.ts +2 -0
  17. package/src/meetings/index.ts +7 -1
  18. package/test/integration/spec/converged-space-meetings.js +1 -1
  19. package/test/unit/spec/breakouts/index.ts +1 -0
  20. package/test/unit/spec/interceptors/locusRetry.ts +11 -10
  21. package/test/unit/spec/media/MediaConnectionAwaiter.ts +1 -0
  22. package/test/unit/spec/media/index.ts +1 -0
  23. package/test/unit/spec/media/properties.ts +1 -1
  24. package/test/unit/spec/meeting/connectionStateHandler.ts +1 -0
  25. package/test/unit/spec/meeting/index.js +67 -6
  26. package/test/unit/spec/meeting/locusMediaRequest.ts +3 -2
  27. package/test/unit/spec/meeting/request.js +1 -0
  28. package/test/unit/spec/meeting/utils.js +4 -0
  29. package/test/unit/spec/meeting-info/meetinginfov2.js +10 -11
  30. package/test/unit/spec/meeting-info/request.js +1 -1
  31. package/test/unit/spec/meetings/index.js +10 -2
  32. package/test/unit/spec/members/request.js +2 -1
  33. package/test/unit/spec/multistream/mediaRequestManager.ts +1 -0
  34. package/test/unit/spec/multistream/receiveSlot.ts +1 -0
  35. package/test/unit/spec/multistream/receiveSlotManager.ts +1 -0
  36. package/test/unit/spec/multistream/remoteMedia.ts +1 -0
  37. package/test/unit/spec/multistream/remoteMediaGroup.ts +1 -0
  38. package/test/unit/spec/multistream/remoteMediaManager.ts +1 -0
  39. package/test/unit/spec/multistream/sendSlotManager.ts +1 -0
  40. package/test/unit/spec/personal-meeting-room/personal-meeting-room.js +0 -1
  41. package/test/unit/spec/reachability/request.js +1 -0
  42. package/test/unit/spec/roap/request.ts +1 -0
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
3
3
  */
4
-
4
+ import 'jsdom-global/register';
5
5
  import {assert} from '@webex/test-helper-chai';
6
6
  import sinon from 'sinon';
7
7
  import MockWebex from '@webex/test-helper-mock-webex';
@@ -23,7 +23,6 @@ import MeetingInfoUtil from '@webex/plugin-meetings/src/meeting-info/utilv2';
23
23
  import Metrics from '@webex/plugin-meetings/src/metrics';
24
24
  import BEHAVIORAL_METRICS from '@webex/plugin-meetings/src/metrics/constants';
25
25
  import {forEach} from 'lodash';
26
- import { request } from 'express';
27
26
 
28
27
  describe('plugin-meetings', () => {
29
28
  const conversation = {
@@ -433,7 +432,7 @@ describe('plugin-meetings', () => {
433
432
  assert.deepEqual(submitInternalEventCalls[1].args[0], {
434
433
  name: 'internal.client.meetinginfo.response',
435
434
  });
436
-
435
+
437
436
  assert.deepEqual(submitClientEventCalls[1].args[0], {
438
437
  name: 'client.meetinginfo.response',
439
438
  payload: {
@@ -484,9 +483,9 @@ describe('plugin-meetings', () => {
484
483
  requestResponse.body.confIdStr = confIdStr;
485
484
  }
486
485
  const extraParams = {mtid: 'm9fe0afd8c435e892afcce9ea25b97046', joinTXId: 'TSmrX61wNF'}
487
-
486
+
488
487
  webex.request.resolves(requestResponse);
489
-
488
+
490
489
  const result = await meetingInfo.fetchMeetingInfo(
491
490
  '1234323',
492
491
  DESTINATION_TYPE.MEETING_ID,
@@ -497,7 +496,7 @@ describe('plugin-meetings', () => {
497
496
  extraParams,
498
497
  {meetingId, sendCAevents}
499
498
  );
500
-
499
+
501
500
  assert.calledWith(webex.request, {
502
501
  method: 'POST',
503
502
  service: WBXAPPAPI_SERVICE,
@@ -515,7 +514,7 @@ describe('plugin-meetings', () => {
515
514
  Metrics.sendBehavioralMetric,
516
515
  BEHAVIORAL_METRICS.FETCH_MEETING_INFO_V1_SUCCESS
517
516
  );
518
-
517
+
519
518
  const submitInternalEventCalls = webex.internal.newMetrics.submitInternalEvent.getCalls();
520
519
  const submitClientEventCalls = webex.internal.newMetrics.submitClientEvent.getCalls();
521
520
 
@@ -529,7 +528,7 @@ describe('plugin-meetings', () => {
529
528
  meetingId,
530
529
  }
531
530
  });
532
-
531
+
533
532
  assert.deepEqual(submitInternalEventCalls[1].args[0], {
534
533
  name: 'internal.client.meetinginfo.response',
535
534
  });
@@ -591,7 +590,7 @@ describe('plugin-meetings', () => {
591
590
 
592
591
  const submitInternalEventCalls = webex.internal.newMetrics.submitInternalEvent.getCalls();
593
592
  const submitClientEventCalls = webex.internal.newMetrics.submitClientEvent.getCalls();
594
-
593
+
595
594
  assert.deepEqual(submitInternalEventCalls[0].args[0], {
596
595
  name: 'internal.client.meetinginfo.request',
597
596
  });
@@ -601,7 +600,7 @@ describe('plugin-meetings', () => {
601
600
  meetingId: 'meetingId',
602
601
  }
603
602
  });
604
-
603
+
605
604
  assert.deepEqual(submitInternalEventCalls[1].args[0], {
606
605
  name: 'internal.client.meetinginfo.response',
607
606
  });
@@ -629,7 +628,7 @@ describe('plugin-meetings', () => {
629
628
  it(`should not send CA metric if meetingId is not provided disregarding if sendCAevents is ${sendCAevents}`, async () => {
630
629
  const message = 'a message';
631
630
  const meetingInfoData = 'meeting info';
632
-
631
+
633
632
  webex.request = sinon.stub().rejects({
634
633
  statusCode: 403,
635
634
  body: {message, code: 403102, data: {meetingInfo: meetingInfoData}},
@@ -1,7 +1,7 @@
1
1
  /*!
2
2
  * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
3
3
  */
4
-
4
+ import 'jsdom-global/register';
5
5
  import {assert} from '@webex/test-helper-chai';
6
6
  import sinon from 'sinon';
7
7
  import MockWebex from '@webex/test-helper-mock-webex';
@@ -753,7 +753,9 @@ describe('plugin-meetings', () => {
753
753
 
754
754
  const FAKE_USE_RANDOM_DELAY = true;
755
755
  const correlationId = 'my-correlationId';
756
+ const sessionCorrelationId = 'my-session-correlationId';
756
757
  const callStateForMetrics = {
758
+ sessionCorrelationId: 'my-session-correlationId2',
757
759
  correlationId: 'my-correlationId2',
758
760
  joinTrigger: 'my-join-trigger',
759
761
  loginType: 'my-login-type',
@@ -769,11 +771,15 @@ describe('plugin-meetings', () => {
769
771
  {},
770
772
  correlationId,
771
773
  true,
772
- callStateForMetrics
774
+ callStateForMetrics,
775
+ undefined,
776
+ undefined,
777
+ sessionCorrelationId
773
778
  );
774
779
  assert.calledOnceWithExactly(fakeMeeting.setCallStateForMetrics, {
775
780
  ...callStateForMetrics,
776
781
  correlationId,
782
+ sessionCorrelationId,
777
783
  });
778
784
  });
779
785
 
@@ -814,13 +820,14 @@ describe('plugin-meetings', () => {
814
820
  undefined,
815
821
  meetingInfo,
816
822
  'meetingLookupURL',
823
+ sessionCorrelationId
817
824
  ],
818
825
  [
819
826
  test1,
820
827
  test2,
821
828
  FAKE_USE_RANDOM_DELAY,
822
829
  {},
823
- {correlationId},
830
+ {correlationId, sessionCorrelationId},
824
831
  true,
825
832
  meetingInfo,
826
833
  'meetingLookupURL',
@@ -1719,6 +1726,7 @@ describe('plugin-meetings', () => {
1719
1726
  const expectedMeetingData = {
1720
1727
  correlationId: 'my-correlationId',
1721
1728
  callStateForMetrics: {
1729
+ sessionCorrelationId: '',
1722
1730
  correlationId: 'my-correlationId',
1723
1731
  joinTrigger: 'my-join-trigger',
1724
1732
  loginType: 'my-login-type',
@@ -1,3 +1,4 @@
1
+ import 'jsdom-global/register';
1
2
  import sinon from 'sinon';
2
3
  import chai from 'chai';
3
4
  import uuid from 'uuid';
@@ -131,7 +132,7 @@ describe('plugin-meetings', () => {
131
132
  locusUrl: url1,
132
133
  memberIds: ['1', '2'],
133
134
  };
134
-
135
+
135
136
  await membersRequest.admitMember(options)
136
137
 
137
138
  checkRequest({
@@ -1,3 +1,4 @@
1
+ import 'jsdom-global/register';
1
2
  import {MediaRequestManager} from '@webex/plugin-meetings/src/multistream/mediaRequestManager';
2
3
  import {ReceiveSlot} from '@webex/plugin-meetings/src/multistream/receiveSlot';
3
4
  import sinon from 'sinon';
@@ -1,4 +1,5 @@
1
1
  /* eslint-disable require-jsdoc */
2
+ import 'jsdom-global/register';
2
3
  import EventEmitter from 'events';
3
4
 
4
5
  import {MediaType, ReceiveSlotEvents as WcmeReceiveSlotEvents} from '@webex/internal-media-core';
@@ -1,3 +1,4 @@
1
+ import 'jsdom-global/register';
1
2
  import sinon from 'sinon';
2
3
  import {assert} from '@webex/test-helper-chai';
3
4
  import {MediaType} from '@webex/internal-media-core';
@@ -1,4 +1,5 @@
1
1
  /* eslint-disable require-jsdoc */
2
+ import 'jsdom-global/register';
2
3
  import EventEmitter from 'events';
3
4
 
4
5
  import {MediaType} from '@webex/internal-media-core';
@@ -1,3 +1,4 @@
1
+ import 'jsdom-global/register';
1
2
  import EventEmitter from 'events';
2
3
 
3
4
  import {MediaType} from '@webex/internal-media-core';
@@ -1,4 +1,5 @@
1
1
  /* eslint-disable require-jsdoc */
2
+ import 'jsdom-global/register';
2
3
  import EventEmitter from 'events';
3
4
 
4
5
  import {MediaType} from '@webex/internal-media-core';
@@ -1,3 +1,4 @@
1
+ import 'jsdom-global/register';
1
2
  import SendSlotManager from '@webex/plugin-meetings/src/multistream/sendSlotManager';
2
3
  import { LocalStream, MediaType, MultistreamRoapMediaConnection } from "@webex/internal-media-core";
3
4
  import {expect} from '@webex/test-helper-chai';
@@ -1,7 +1,6 @@
1
1
  /*!
2
2
  * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
3
3
  */
4
-
5
4
  import 'jsdom-global/register';
6
5
  import {assert} from '@webex/test-helper-chai';
7
6
  import sinon from 'sinon';
@@ -1,3 +1,4 @@
1
+ import 'jsdom-global/register';
1
2
  import sinon from 'sinon';
2
3
  import {assert} from '@webex/test-helper-chai';
3
4
  import MockWebex from '@webex/test-helper-mock-webex';
@@ -1,3 +1,4 @@
1
+ import 'jsdom-global/register';
1
2
  import sinon from 'sinon';
2
3
  import {assert} from '@webex/test-helper-chai';
3
4
  import MockWebex from '@webex/test-helper-mock-webex';