@webex/plugin-meetings 3.7.0-next.15 → 3.7.0-next.17

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.
@@ -425,7 +425,7 @@ var Webinar = _webexCore.WebexPlugin.extend({
425
425
  }, _callee7);
426
426
  }))();
427
427
  },
428
- version: "3.7.0-next.15"
428
+ version: "3.7.0-next.17"
429
429
  });
430
430
  var _default = exports.default = Webinar;
431
431
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -43,13 +43,13 @@
43
43
  "@webex/eslint-config-legacy": "0.0.0",
44
44
  "@webex/jest-config-legacy": "0.0.0",
45
45
  "@webex/legacy-tools": "0.0.0",
46
- "@webex/plugin-meetings": "3.7.0-next.15",
47
- "@webex/plugin-rooms": "3.7.0-next.4",
48
- "@webex/test-helper-chai": "3.7.0-next.2",
49
- "@webex/test-helper-mocha": "3.7.0-next.2",
50
- "@webex/test-helper-mock-webex": "3.7.0-next.2",
51
- "@webex/test-helper-retry": "3.7.0-next.2",
52
- "@webex/test-helper-test-users": "3.7.0-next.2",
46
+ "@webex/plugin-meetings": "3.7.0-next.17",
47
+ "@webex/plugin-rooms": "3.7.0-next.6",
48
+ "@webex/test-helper-chai": "3.7.0-next.4",
49
+ "@webex/test-helper-mocha": "3.7.0-next.4",
50
+ "@webex/test-helper-mock-webex": "3.7.0-next.4",
51
+ "@webex/test-helper-retry": "3.7.0-next.4",
52
+ "@webex/test-helper-test-users": "3.7.0-next.4",
53
53
  "chai": "^4.3.4",
54
54
  "chai-as-promised": "^7.1.1",
55
55
  "eslint": "^8.24.0",
@@ -61,21 +61,21 @@
61
61
  "typescript": "^4.7.4"
62
62
  },
63
63
  "dependencies": {
64
- "@webex/common": "3.7.0-next.2",
64
+ "@webex/common": "3.7.0-next.4",
65
65
  "@webex/internal-media-core": "2.12.2",
66
- "@webex/internal-plugin-conversation": "3.7.0-next.4",
67
- "@webex/internal-plugin-device": "3.7.0-next.2",
68
- "@webex/internal-plugin-llm": "3.7.0-next.2",
69
- "@webex/internal-plugin-mercury": "3.7.0-next.2",
70
- "@webex/internal-plugin-metrics": "3.7.0-next.2",
71
- "@webex/internal-plugin-support": "3.7.0-next.5",
72
- "@webex/internal-plugin-user": "3.7.0-next.2",
73
- "@webex/internal-plugin-voicea": "3.7.0-next.15",
74
- "@webex/media-helpers": "3.7.0-next.2",
75
- "@webex/plugin-people": "3.7.0-next.2",
76
- "@webex/plugin-rooms": "3.7.0-next.4",
66
+ "@webex/internal-plugin-conversation": "3.7.0-next.6",
67
+ "@webex/internal-plugin-device": "3.7.0-next.4",
68
+ "@webex/internal-plugin-llm": "3.7.0-next.4",
69
+ "@webex/internal-plugin-mercury": "3.7.0-next.4",
70
+ "@webex/internal-plugin-metrics": "3.7.0-next.4",
71
+ "@webex/internal-plugin-support": "3.7.0-next.7",
72
+ "@webex/internal-plugin-user": "3.7.0-next.4",
73
+ "@webex/internal-plugin-voicea": "3.7.0-next.17",
74
+ "@webex/media-helpers": "3.7.0-next.4",
75
+ "@webex/plugin-people": "3.7.0-next.4",
76
+ "@webex/plugin-rooms": "3.7.0-next.6",
77
77
  "@webex/web-capabilities": "^1.4.0",
78
- "@webex/webex-core": "3.7.0-next.2",
78
+ "@webex/webex-core": "3.7.0-next.4",
79
79
  "ampersand-collection": "^2.0.2",
80
80
  "bowser": "^2.11.0",
81
81
  "btoa": "^1.2.1",
@@ -91,5 +91,5 @@
91
91
  "//": [
92
92
  "TODO: upgrade jwt-decode when moving to node 18"
93
93
  ],
94
- "version": "3.7.0-next.15"
94
+ "version": "3.7.0-next.17"
95
95
  }
@@ -5381,16 +5381,19 @@ export default class Meeting extends StatelessWebexPlugin {
5381
5381
  this.meetingFiniteStateMachine.reset();
5382
5382
  }
5383
5383
 
5384
- // @ts-ignore
5385
- this.webex.internal.newMetrics.submitClientEvent({
5386
- name: 'client.call.initiated',
5387
- payload: {
5388
- trigger: this.callStateForMetrics.joinTrigger || 'user-interaction',
5389
- isRoapCallEnabled: true,
5390
- pstnAudioType: options?.pstnAudioType,
5391
- },
5392
- options: {meetingId: this.id},
5393
- });
5384
+ // send client.call.initiated unless told not to
5385
+ if (options.sendCallInitiated !== false) {
5386
+ // @ts-ignore
5387
+ this.webex.internal.newMetrics.submitClientEvent({
5388
+ name: 'client.call.initiated',
5389
+ payload: {
5390
+ trigger: this.callStateForMetrics.joinTrigger || 'user-interaction',
5391
+ isRoapCallEnabled: true,
5392
+ pstnAudioType: options?.pstnAudioType,
5393
+ },
5394
+ options: {meetingId: this.id},
5395
+ });
5396
+ }
5394
5397
 
5395
5398
  LoggerProxy.logger.log('Meeting:index#join --> Joining a meeting');
5396
5399
 
@@ -1705,6 +1705,12 @@ describe('plugin-meetings', () => {
1705
1705
  sinon.assert.called(setCorrelationIdSpy);
1706
1706
  assert.equal(meeting.correlationId, '123');
1707
1707
  });
1708
+
1709
+ it('should not send client.call.initiated if told not to', async () => {
1710
+ await meeting.join({sendCallInitiated: false});
1711
+
1712
+ sinon.assert.notCalled(webex.internal.newMetrics.submitClientEvent);
1713
+ });
1708
1714
  });
1709
1715
 
1710
1716
  describe('failure', () => {
@@ -2514,7 +2520,7 @@ describe('plugin-meetings', () => {
2514
2520
  meeting.mediaProperties.webrtcMediaConnection = undefined;
2515
2521
  checkLogCounter(60, 6);
2516
2522
 
2517
- clock.tick(120*1000*60);
2523
+ clock.tick(120 * 1000 * 60);
2518
2524
  assert.equal(logUploadCounter, 6);
2519
2525
 
2520
2526
  clock.restore();
@@ -3741,8 +3747,12 @@ describe('plugin-meetings', () => {
3741
3747
  meeting.setMercuryListener = sinon.stub();
3742
3748
  meeting.locusInfo.onFullLocus = sinon.stub();
3743
3749
  meeting.webex.meetings.geoHintInfo = {regionCode: 'EU', countryCode: 'UK'};
3744
- meeting.webex.meetings.reachability.getReachabilityReportToAttachToRoap = sinon.stub().resolves({id: 'fake reachability'});
3745
- meeting.webex.meetings.reachability.getClientMediaPreferences = sinon.stub().resolves({id: 'fake clientMediaPreferences'});
3750
+ meeting.webex.meetings.reachability.getReachabilityReportToAttachToRoap = sinon
3751
+ .stub()
3752
+ .resolves({id: 'fake reachability'});
3753
+ meeting.webex.meetings.reachability.getClientMediaPreferences = sinon
3754
+ .stub()
3755
+ .resolves({id: 'fake clientMediaPreferences'});
3746
3756
  meeting.roap.doTurnDiscovery = sinon.stub().resolves({
3747
3757
  turnServerInfo: {
3748
3758
  url: 'turns:turn-server-url:443?transport=tcp',
@@ -3928,8 +3938,14 @@ describe('plugin-meetings', () => {
3928
3938
  const checkSdpOfferSent = ({audioMuted, videoMuted}) => {
3929
3939
  const {sdp, seq, tieBreaker} = roapOfferMessage;
3930
3940
 
3931
- assert.calledWith(meeting.webex.meetings.reachability.getClientMediaPreferences, meeting.isMultistream, 0);
3932
- assert.calledWith(meeting.webex.meetings.reachability.getReachabilityReportToAttachToRoap);
3941
+ assert.calledWith(
3942
+ meeting.webex.meetings.reachability.getClientMediaPreferences,
3943
+ meeting.isMultistream,
3944
+ 0
3945
+ );
3946
+ assert.calledWith(
3947
+ meeting.webex.meetings.reachability.getReachabilityReportToAttachToRoap
3948
+ );
3933
3949
 
3934
3950
  assert.calledWith(locusMediaRequestStub, {
3935
3951
  method: 'PUT',
@@ -7860,7 +7876,9 @@ describe('plugin-meetings', () => {
7860
7876
  });
7861
7877
 
7862
7878
  it('should collect ice candidates', () => {
7863
- eventListeners[MediaConnectionEventNames.ICE_CANDIDATE]({candidate: {candidate: 'candidate'}});
7879
+ eventListeners[MediaConnectionEventNames.ICE_CANDIDATE]({
7880
+ candidate: {candidate: 'candidate'},
7881
+ });
7864
7882
 
7865
7883
  assert.equal(meeting.iceCandidatesCount, 1);
7866
7884
  });
@@ -8166,10 +8184,10 @@ describe('plugin-meetings', () => {
8166
8184
  meeting.statsAnalyzer.stopAnalyzer = sinon.stub().resolves();
8167
8185
  meeting.reconnectionManager = {
8168
8186
  reconnect: sinon.stub().resolves(),
8169
- resetReconnectionTimer: () => {}
8187
+ resetReconnectionTimer: () => {},
8170
8188
  };
8171
8189
  meeting.currentMediaStatus = {
8172
- video: true
8190
+ video: true,
8173
8191
  };
8174
8192
 
8175
8193
  await mockFailedEvent();
@@ -9097,7 +9115,7 @@ describe('plugin-meetings', () => {
9097
9115
  {state}
9098
9116
  );
9099
9117
 
9100
- assert.calledOnceWithExactly( meeting.webinar.updatePracticeSessionStatus, state);
9118
+ assert.calledOnceWithExactly(meeting.webinar.updatePracticeSessionStatus, state);
9101
9119
  assert.calledWith(
9102
9120
  TriggerProxy.trigger,
9103
9121
  meeting,