@webex/plugin-meetings 3.9.0-next.1 → 3.9.0-next.11

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 (45) 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/locus-info/index.js +15 -6
  6. package/dist/locus-info/index.js.map +1 -1
  7. package/dist/locus-info/parser.js +4 -1
  8. package/dist/locus-info/parser.js.map +1 -1
  9. package/dist/meeting/index.js +101 -79
  10. package/dist/meeting/index.js.map +1 -1
  11. package/dist/meeting-info/meeting-info-v2.js +29 -21
  12. package/dist/meeting-info/meeting-info-v2.js.map +1 -1
  13. package/dist/meetings/index.js +31 -25
  14. package/dist/meetings/index.js.map +1 -1
  15. package/dist/members/index.js +3 -2
  16. package/dist/members/index.js.map +1 -1
  17. package/dist/members/util.js +7 -2
  18. package/dist/members/util.js.map +1 -1
  19. package/dist/reachability/index.js +3 -3
  20. package/dist/reachability/index.js.map +1 -1
  21. package/dist/types/locus-info/index.d.ts +2 -0
  22. package/dist/types/meeting/index.d.ts +1 -0
  23. package/dist/types/meeting-info/meeting-info-v2.d.ts +6 -3
  24. package/dist/types/meetings/index.d.ts +3 -1
  25. package/dist/types/members/index.d.ts +2 -1
  26. package/dist/types/members/util.d.ts +6 -3
  27. package/dist/webinar/index.js +1 -1
  28. package/package.json +13 -13
  29. package/src/locus-info/index.ts +13 -5
  30. package/src/locus-info/parser.ts +5 -1
  31. package/src/meeting/index.ts +29 -3
  32. package/src/meeting-info/meeting-info-v2.ts +24 -5
  33. package/src/meetings/index.ts +9 -3
  34. package/src/members/index.ts +9 -2
  35. package/src/members/util.ts +18 -2
  36. package/src/reachability/index.ts +3 -3
  37. package/test/unit/spec/locus-info/index.js +7 -7
  38. package/test/unit/spec/locus-info/parser.js +3 -2
  39. package/test/unit/spec/meeting/index.js +96 -22
  40. package/test/unit/spec/meeting-info/meetinginfov2.js +8 -3
  41. package/test/unit/spec/meetings/index.js +10 -1
  42. package/test/unit/spec/members/index.js +30 -2
  43. package/test/unit/spec/members/request.js +55 -0
  44. package/test/unit/spec/members/utils.js +116 -14
  45. package/test/unit/spec/reachability/index.ts +158 -3
@@ -209,7 +209,7 @@ var Breakout = _webexCore.WebexPlugin.extend({
209
209
  sessionId: this.sessionId
210
210
  });
211
211
  },
212
- version: "3.9.0-next.1"
212
+ version: "3.9.0-next.11"
213
213
  });
214
214
  var _default = exports.default = Breakout;
215
215
  //# sourceMappingURL=breakout.js.map
@@ -1110,7 +1110,7 @@ var Breakouts = _webexCore.WebexPlugin.extend({
1110
1110
  this.trigger(_constants.BREAKOUTS.EVENTS.ASK_RETURN_TO_MAIN);
1111
1111
  }
1112
1112
  },
1113
- version: "3.9.0-next.1"
1113
+ version: "3.9.0-next.11"
1114
1114
  });
1115
1115
  var _default = exports.default = Breakouts;
1116
1116
  //# sourceMappingURL=index.js.map
@@ -373,7 +373,7 @@ var SimultaneousInterpretation = _webexCore.WebexPlugin.extend({
373
373
  throw error;
374
374
  });
375
375
  },
376
- version: "3.9.0-next.1"
376
+ version: "3.9.0-next.11"
377
377
  });
378
378
  var _default = exports.default = SimultaneousInterpretation;
379
379
  //# sourceMappingURL=index.js.map
@@ -18,7 +18,7 @@ var SILanguage = _webexCore.WebexPlugin.extend({
18
18
  languageCode: 'number',
19
19
  languageName: 'string'
20
20
  },
21
- version: "3.9.0-next.1"
21
+ version: "3.9.0-next.11"
22
22
  });
23
23
  var _default = exports.default = SILanguage;
24
24
  //# sourceMappingURL=siLanguage.js.map
@@ -105,21 +105,29 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
105
105
  * Does a Locus sync. It tries to get the latest delta DTO or if it can't, it falls back to getting the full Locus DTO.
106
106
  *
107
107
  * @param {Meeting} meeting
108
+ * @param {boolean} isLocusUrlChanged
109
+ * @param {Locus} locus
108
110
  * @returns {undefined}
109
111
  */
110
112
  (0, _createClass2.default)(LocusInfo, [{
111
113
  key: "doLocusSync",
112
- value: function doLocusSync(meeting) {
113
- var _this2 = this;
114
- var isDelta;
114
+ value: function doLocusSync(meeting, isLocusUrlChanged, locus) {
115
+ var _this$locusParser$wor,
116
+ _this2 = this;
115
117
  var url;
118
+ var isDelta = false;
116
119
  var meetingDestroyed = false;
117
- if (this.locusParser.workingCopy.syncUrl) {
120
+ if (isLocusUrlChanged) {
121
+ // for the locus url changed case from breakout to main session, we should always do a full sync, in this case, the url from locus is always on main session,
122
+ // so use the main session locus url to get the full locus(full participants list in the response).
123
+ // for the locus url changed case from main session to breakout, we don't need to care about it here,
124
+ // because it is a USE_INCOMING case, it will not be executed here.
125
+ url = locus.url;
126
+ } else if ((_this$locusParser$wor = this.locusParser.workingCopy) !== null && _this$locusParser$wor !== void 0 && _this$locusParser$wor.syncUrl) {
118
127
  url = this.locusParser.workingCopy.syncUrl;
119
128
  isDelta = true;
120
129
  } else {
121
130
  url = meeting.locusUrl;
122
- isDelta = false;
123
131
  }
124
132
  _loggerProxy.default.logger.info("Locus-info:index#doLocusSync --> doing Locus sync (getting ".concat(isDelta ? 'delta' : 'full', " DTO)"));
125
133
 
@@ -210,6 +218,7 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
210
218
  USE_INCOMING = _LocusDeltaParser$loc.USE_INCOMING,
211
219
  WAIT = _LocusDeltaParser$loc.WAIT,
212
220
  LOCUS_URL_CHANGED = _LocusDeltaParser$loc.LOCUS_URL_CHANGED;
221
+ var isLocusUrlChanged = action === LOCUS_URL_CHANGED;
213
222
  switch (action) {
214
223
  case USE_INCOMING:
215
224
  meeting.locusInfo.onDeltaLocus(locus);
@@ -220,7 +229,7 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
220
229
  break;
221
230
  case DESYNC:
222
231
  case LOCUS_URL_CHANGED:
223
- this.doLocusSync(meeting);
232
+ this.doLocusSync(meeting, isLocusUrlChanged, locus);
224
233
  break;
225
234
  default:
226
235
  _loggerProxy.default.logger.info("Locus-info:index#applyLocusDeltaData --> Unknown locus delta action: ".concat(action));