@webex/plugin-meetings 1.154.2 → 1.156.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.
@@ -120,6 +120,8 @@ var _reconnectionInProgress = _interopRequireDefault(require("../common/errors/r
120
120
 
121
121
  var _constants = require("../constants");
122
122
 
123
+ var _constants2 = _interopRequireDefault(require("../metrics/constants"));
124
+
123
125
  var _parameter = _interopRequireDefault(require("../common/errors/parameter"));
124
126
 
125
127
  var _media2 = _interopRequireDefault(require("../common/errors/media"));
@@ -539,7 +541,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
539
541
  // report it as an Behavioral metric
540
542
  // This gives visibility into common errors and can help
541
543
  // with further troubleshooting
542
- var metricName = _constants.BEHAVIORAL_METRICS.GET_USER_MEDIA_FAILURE;
544
+ var metricName = _constants2.default.GET_USER_MEDIA_FAILURE;
543
545
  var data = {
544
546
  correlation_id: _this.correlationId,
545
547
  locus_id: (_this$locusUrl = _this.locusUrl) === null || _this$locusUrl === void 0 ? void 0 : _this$locusUrl.split('/').pop(),
@@ -1398,7 +1400,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
1398
1400
  // https:// jira-eng-gpk2.cisco.com/jira/browse/SPARK-240520
1399
1401
  // TODO: send custom parameter explaining why the inactivity happened
1400
1402
  // refresh , no media or network got dsconnected or something else
1401
- _metrics.default.sendBehavioralMetric(_constants.BEHAVIORAL_METRICS.DISCONNECT_DUE_TO_INACTIVITY, {
1403
+ _metrics.default.sendBehavioralMetric(_constants2.default.DISCONNECT_DUE_TO_INACTIVITY, {
1402
1404
  correlation_id: _this4.correlationId,
1403
1405
  locus_id: _this4.locusId
1404
1406
  }); // Upload logs on media inactivity
@@ -2227,7 +2229,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
2227
2229
  }
2228
2230
  });
2229
2231
  this.locusInfo.on(_constants.LOCUSINFO.EVENTS.MEDIA_INACTIVITY, function () {
2230
- _metrics.default.sendBehavioralMetric(_constants.BEHAVIORAL_METRICS.MEETING_MEDIA_INACTIVE, {
2232
+ _metrics.default.sendBehavioralMetric(_constants2.default.MEETING_MEDIA_INACTIVE, {
2231
2233
  correlation_id: _this15.correlationId,
2232
2234
  locus_id: _this15.locusId
2233
2235
  });
@@ -2834,7 +2836,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
2834
2836
  } else {
2835
2837
  trackMediaID = null;
2836
2838
 
2837
- _metrics.default.sendBehavioralMetric(_constants.BEHAVIORAL_METRICS.MUTE_AUDIO_FAILURE, {
2839
+ _metrics.default.sendBehavioralMetric(_constants2.default.MUTE_AUDIO_FAILURE, {
2838
2840
  correlation_id: _this20.correlationId,
2839
2841
  locus_id: _this20.locusUrl.split('/').pop()
2840
2842
  });
@@ -3269,7 +3271,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
3269
3271
  meeting: _this25
3270
3272
  });
3271
3273
 
3272
- _metrics.default.sendBehavioralMetric(_constants.BEHAVIORAL_METRICS.MERCURY_CONNECTION_RESTORED, {
3274
+ _metrics.default.sendBehavioralMetric(_constants2.default.MERCURY_CONNECTION_RESTORED, {
3273
3275
  correlation_id: _this25.correlationId
3274
3276
  });
3275
3277
  }
@@ -3284,7 +3286,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
3284
3286
  meeting: _this25
3285
3287
  });
3286
3288
 
3287
- _metrics.default.sendBehavioralMetric(_constants.BEHAVIORAL_METRICS.MERCURY_CONNECTION_FAILURE, {
3289
+ _metrics.default.sendBehavioralMetric(_constants2.default.MERCURY_CONNECTION_FAILURE, {
3288
3290
  correlation_id: _this25.correlationId
3289
3291
  });
3290
3292
  });
@@ -3372,7 +3374,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
3372
3374
  }
3373
3375
  });
3374
3376
  }).catch(function (error) {
3375
- _metrics.default.sendBehavioralMetric(_constants.BEHAVIORAL_METRICS.MUTE_AUDIO_FAILURE, {
3377
+ _metrics.default.sendBehavioralMetric(_constants2.default.MUTE_AUDIO_FAILURE, {
3376
3378
  correlation_id: _this26.correlationId,
3377
3379
  locus_id: _this26.locusUrl.split('/').pop(),
3378
3380
  reason: error.message,
@@ -3425,7 +3427,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
3425
3427
  }
3426
3428
  });
3427
3429
  }).catch(function (error) {
3428
- _metrics.default.sendBehavioralMetric(_constants.BEHAVIORAL_METRICS.UNMUTE_AUDIO_FAILURE, {
3430
+ _metrics.default.sendBehavioralMetric(_constants2.default.UNMUTE_AUDIO_FAILURE, {
3429
3431
  correlation_id: _this27.correlationId,
3430
3432
  locus_id: _this27.locusUrl.split('/').pop(),
3431
3433
  reason: error.message,
@@ -3477,7 +3479,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
3477
3479
  }
3478
3480
  });
3479
3481
  }).catch(function (error) {
3480
- _metrics.default.sendBehavioralMetric(_constants.BEHAVIORAL_METRICS.MUTE_VIDEO_FAILURE, {
3482
+ _metrics.default.sendBehavioralMetric(_constants2.default.MUTE_VIDEO_FAILURE, {
3481
3483
  correlation_id: _this28.correlationId,
3482
3484
  locus_id: _this28.locusUrl.split('/').pop(),
3483
3485
  reason: error.message,
@@ -3529,7 +3531,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
3529
3531
  }
3530
3532
  });
3531
3533
  }).catch(function (error) {
3532
- _metrics.default.sendBehavioralMetric(_constants.BEHAVIORAL_METRICS.UNMUTE_VIDEO_FAILURE, {
3534
+ _metrics.default.sendBehavioralMetric(_constants2.default.UNMUTE_VIDEO_FAILURE, {
3533
3535
  correlation_id: _this29.correlationId,
3534
3536
  locus_id: _this29.locusUrl.split('/').pop(),
3535
3537
  reason: error.message,
@@ -3600,7 +3602,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
3600
3602
  }).catch(function (error) {
3601
3603
  _loggerProxy.default.logger.error('Meeting:index#joinWithMedia --> ', error);
3602
3604
 
3603
- _metrics.default.sendBehavioralMetric(_constants.BEHAVIORAL_METRICS.JOIN_WITH_MEDIA_FAILURE, {
3605
+ _metrics.default.sendBehavioralMetric(_constants2.default.JOIN_WITH_MEDIA_FAILURE, {
3604
3606
  correlation_id: _this30.correlationId,
3605
3607
  locus_id: _this30.locusUrl.split('/').pop(),
3606
3608
  reason: error.message,
@@ -3673,7 +3675,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
3673
3675
 
3674
3676
  _loggerProxy.default.logger.error('Meeting:index#reconnect --> Meeting reconnect failed', error);
3675
3677
 
3676
- _metrics.default.sendBehavioralMetric(_constants.BEHAVIORAL_METRICS.MEETING_RECONNECT_FAILURE, {
3678
+ _metrics.default.sendBehavioralMetric(_constants2.default.MEETING_RECONNECT_FAILURE, {
3677
3679
  correlation_id: _this31.correlationId,
3678
3680
  locus_id: _this31.locusUrl.split('/').pop(),
3679
3681
  reason: error.message,
@@ -3730,7 +3732,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
3730
3732
 
3731
3733
  _this32.triggerStopReceivingTranscriptionEvent();
3732
3734
 
3733
- _metrics.default.sendBehavioralMetric(_constants.BEHAVIORAL_METRICS.RECEIVE_TRANSCRIPTION_FAILURE, {
3735
+ _metrics.default.sendBehavioralMetric(_constants2.default.RECEIVE_TRANSCRIPTION_FAILURE, {
3734
3736
  correlation_id: _this32.correlationId,
3735
3737
  reason: 'unexpected error: transcription LLM web socket connection error had occured.',
3736
3738
  event: event
@@ -3796,7 +3798,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
3796
3798
 
3797
3799
  _loggerProxy.default.logger.error("Meeting:index#receiveTranscription --> ".concat(_context2.t0));
3798
3800
 
3799
- _metrics.default.sendBehavioralMetric(_constants.BEHAVIORAL_METRICS.RECEIVE_TRANSCRIPTION_FAILURE, {
3801
+ _metrics.default.sendBehavioralMetric(_constants2.default.RECEIVE_TRANSCRIPTION_FAILURE, {
3800
3802
  correlation_id: this.correlationId,
3801
3803
  reason: _context2.t0.message,
3802
3804
  stack: _context2.t0.stack
@@ -3970,7 +3972,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
3970
3972
  joinSuccess(join);
3971
3973
  _this34.deferJoin = undefined;
3972
3974
 
3973
- _metrics.default.sendBehavioralMetric(_constants.BEHAVIORAL_METRICS.JOIN_SUCCESS, {
3975
+ _metrics.default.sendBehavioralMetric(_constants2.default.JOIN_SUCCESS, {
3974
3976
  correlation_id: _this34.correlationId
3975
3977
  });
3976
3978
 
@@ -4031,7 +4033,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
4031
4033
  _loggerProxy.default.logger.error('Meeting:index#join --> Failed', error); // TODO: change this to error codes and pre defined dictionary
4032
4034
 
4033
4035
 
4034
- _metrics.default.sendBehavioralMetric(_constants.BEHAVIORAL_METRICS.JOIN_FAILURE, {
4036
+ _metrics.default.sendBehavioralMetric(_constants2.default.JOIN_FAILURE, {
4035
4037
  correlation_id: _this34.correlationId,
4036
4038
  reason: (_error$error = error.error) === null || _error$error === void 0 ? void 0 : _error$error.message,
4037
4039
  stack: error.stack
@@ -4105,7 +4107,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
4105
4107
  }).catch(function (error) {
4106
4108
  var _error$error2;
4107
4109
 
4108
- _metrics.default.sendBehavioralMetric(_constants.BEHAVIORAL_METRICS.ADD_DIAL_IN_FAILURE, {
4110
+ _metrics.default.sendBehavioralMetric(_constants2.default.ADD_DIAL_IN_FAILURE, {
4109
4111
  correlation_id: _this35.correlationId,
4110
4112
  dial_in_url: _this35.dialInUrl,
4111
4113
  locus_id: locusUrl.split('/').pop(),
@@ -4146,7 +4148,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
4146
4148
  }).catch(function (error) {
4147
4149
  var _error$error3;
4148
4150
 
4149
- _metrics.default.sendBehavioralMetric(_constants.BEHAVIORAL_METRICS.ADD_DIAL_OUT_FAILURE, {
4151
+ _metrics.default.sendBehavioralMetric(_constants2.default.ADD_DIAL_OUT_FAILURE, {
4150
4152
  correlation_id: _this36.correlationId,
4151
4153
  dial_out_url: _this36.dialOutUrl,
4152
4154
  locus_id: locusUrl.split('/').pop(),
@@ -4460,7 +4462,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
4460
4462
  }).catch(function (error) {
4461
4463
  _loggerProxy.default.logger.error("".concat(LOG_HEADER, " Error adding media , setting up peerconnection, "), error);
4462
4464
 
4463
- _metrics.default.sendBehavioralMetric(_constants.BEHAVIORAL_METRICS.ADD_MEDIA_FAILURE, {
4465
+ _metrics.default.sendBehavioralMetric(_constants2.default.ADD_MEDIA_FAILURE, {
4464
4466
  correlation_id: _this39.correlationId,
4465
4467
  locus_id: _this39.locusUrl.split('/').pop(),
4466
4468
  reason: error.message,
@@ -4541,7 +4543,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
4541
4543
  _this39.floorGrantPending = true;
4542
4544
  }
4543
4545
 
4544
- _metrics.default.sendBehavioralMetric(_constants.BEHAVIORAL_METRICS.ADD_MEDIA_SUCCESS, {
4546
+ _metrics.default.sendBehavioralMetric(_constants2.default.ADD_MEDIA_SUCCESS, {
4545
4547
  correlation_id: _this39.correlationId,
4546
4548
  locus_id: _this39.locusUrl.split('/').pop()
4547
4549
  });
@@ -4564,7 +4566,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
4564
4566
 
4565
4567
  _loggerProxy.default.logger.error("".concat(LOG_HEADER, " Error adding media failed to initiate PC and send request, "), error);
4566
4568
 
4567
- _metrics.default.sendBehavioralMetric(_constants.BEHAVIORAL_METRICS.ADD_MEDIA_FAILURE, {
4569
+ _metrics.default.sendBehavioralMetric(_constants2.default.ADD_MEDIA_FAILURE, {
4568
4570
  correlation_id: _this39.correlationId,
4569
4571
  locus_id: _this39.locusUrl.split('/').pop(),
4570
4572
  reason: error.message,
@@ -4682,7 +4684,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
4682
4684
  }).catch(function (error) {
4683
4685
  _loggerProxy.default.logger.error("".concat(LOG_HEADER, " Error updatedMedia, "), error);
4684
4686
 
4685
- _metrics.default.sendBehavioralMetric(_constants.BEHAVIORAL_METRICS.UPDATE_MEDIA_FAILURE, {
4687
+ _metrics.default.sendBehavioralMetric(_constants2.default.UPDATE_MEDIA_FAILURE, {
4686
4688
  correlation_id: _this41.correlationId,
4687
4689
  locus_id: _this41.locusUrl.split('/').pop(),
4688
4690
  reason: error.message,
@@ -5124,7 +5126,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
5124
5126
  function: 'leave'
5125
5127
  }, _constants.EVENTS.REQUEST_UPLOAD_LOGS, _this47);
5126
5128
 
5127
- _metrics.default.sendBehavioralMetric(_constants.BEHAVIORAL_METRICS.MEETING_LEAVE_FAILURE, {
5129
+ _metrics.default.sendBehavioralMetric(_constants2.default.MEETING_LEAVE_FAILURE, {
5128
5130
  correlation_id: _this47.correlationId,
5129
5131
  locus_id: _this47.locusUrl.split('/').pop(),
5130
5132
  reason: error.message,
@@ -5181,7 +5183,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
5181
5183
  }).catch(function (error) {
5182
5184
  _loggerProxy.default.logger.error('Meeting:index#startWhiteboardShare --> Error ', error);
5183
5185
 
5184
- _metrics.default.sendBehavioralMetric(_constants.BEHAVIORAL_METRICS.MEETING_START_WHITEBOARD_SHARE_FAILURE, {
5186
+ _metrics.default.sendBehavioralMetric(_constants2.default.MEETING_START_WHITEBOARD_SHARE_FAILURE, {
5185
5187
  correlation_id: _this48.correlationId,
5186
5188
  locus_id: _this48.locusUrl.split('/').pop(),
5187
5189
  reason: error.message,
@@ -5228,7 +5230,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
5228
5230
  }).catch(function (error) {
5229
5231
  _loggerProxy.default.logger.error('Meeting:index#stopWhiteboardShare --> Error ', error);
5230
5232
 
5231
- _metrics.default.sendBehavioralMetric(_constants.BEHAVIORAL_METRICS.STOP_WHITEBOARD_SHARE_FAILURE, {
5233
+ _metrics.default.sendBehavioralMetric(_constants2.default.STOP_WHITEBOARD_SHARE_FAILURE, {
5232
5234
  correlation_id: _this49.correlationId,
5233
5235
  locus_id: _this49.locusUrl.split('/').pop(),
5234
5236
  reason: error.message,
@@ -5278,7 +5280,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
5278
5280
  }).catch(function (error) {
5279
5281
  _loggerProxy.default.logger.error('Meeting:index#share --> Error ', error);
5280
5282
 
5281
- _metrics.default.sendBehavioralMetric(_constants.BEHAVIORAL_METRICS.MEETING_SHARE_FAILURE, {
5283
+ _metrics.default.sendBehavioralMetric(_constants2.default.MEETING_SHARE_FAILURE, {
5282
5284
  correlation_id: _this50.correlationId,
5283
5285
  locus_id: _this50.locusUrl.split('/').pop(),
5284
5286
  reason: error.message,
@@ -5348,7 +5350,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
5348
5350
  }).catch(function (error) {
5349
5351
  _loggerProxy.default.logger.error('Meeting:index#stopFloorRequest --> Error ', error);
5350
5352
 
5351
- _metrics.default.sendBehavioralMetric(_constants.BEHAVIORAL_METRICS.STOP_FLOOR_REQUEST_FAILURE, {
5353
+ _metrics.default.sendBehavioralMetric(_constants2.default.STOP_FLOOR_REQUEST_FAILURE, {
5352
5354
  correlation_id: _this51.correlationId,
5353
5355
  locus_id: _this51.locusUrl.split('/').pop(),
5354
5356
  reason: error.message,
@@ -5477,7 +5479,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
5477
5479
  }
5478
5480
  /**
5479
5481
  * Sends request to change layout type for the current meeting for the specific participant/device only
5480
- * @param {String} layoutType a layout type that should be available in meeting constants LAYOUT_TYPES
5482
+ * @param {String} layoutType a layout type that should be available in meeting constants {@link #layout_types}
5481
5483
  * @param {Object} renderInfo preferred dimensions for the remote main and content streams (server can ignore it)
5482
5484
  * @param {Object} renderInfo.main preferred dimensions for the remote main video stream
5483
5485
  * @param {Number} renderInfo.main.width preferred width of main video stream
@@ -5685,7 +5687,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
5685
5687
 
5686
5688
  _loggerProxy.default.logger.error("Meeting:index#setMeetingQuality --> ".concat(error.message));
5687
5689
 
5688
- _metrics.default.sendBehavioralMetric(_constants.BEHAVIORAL_METRICS.SET_MEETING_QUALITY_FAILURE, {
5690
+ _metrics.default.sendBehavioralMetric(_constants2.default.SET_MEETING_QUALITY_FAILURE, {
5689
5691
  correlation_id: _this54.correlationId,
5690
5692
  locus_id: _this54.locusUrl.split('/').pop(),
5691
5693
  reason: error.message,
@@ -5735,7 +5737,7 @@ var Meeting = /*#__PURE__*/function (_StatelessWebexPlugin) {
5735
5737
  // with further troubleshooting
5736
5738
  // This metrics will get erros for getDisplayMedia and share errors for now
5737
5739
  // TODO: The getDisplayMedia errors need to be moved inside `media.getDisplayMedia`
5738
- var metricName = _constants.BEHAVIORAL_METRICS.GET_DISPLAY_MEDIA_FAILURE;
5740
+ var metricName = _constants2.default.GET_DISPLAY_MEDIA_FAILURE;
5739
5741
  var data = {
5740
5742
  correlation_id: _this55.correlationId,
5741
5743
  locus_id: _this55.locusUrl.split('/').pop(),