@webex/plugin-meetings 3.12.0-next.131 → 3.12.0-next.132
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.
- package/dist/aiEnableRequest/index.js +1 -1
- package/dist/breakouts/breakout.js +1 -1
- package/dist/breakouts/index.js +1 -1
- package/dist/interpretation/index.js +1 -1
- package/dist/interpretation/siLanguage.js +1 -1
- package/dist/locus-info/types.js +2 -1
- package/dist/locus-info/types.js.map +1 -1
- package/dist/meeting/index.js +13 -2
- package/dist/meeting/index.js.map +1 -1
- package/dist/types/locus-info/types.d.ts +1 -0
- package/dist/types/meeting/index.d.ts +1 -0
- package/dist/webinar/index.js +1 -1
- package/package.json +1 -1
- package/src/locus-info/types.ts +1 -0
- package/src/meeting/index.ts +11 -3
- package/test/unit/spec/meeting/index.js +72 -0
|
@@ -191,7 +191,7 @@ var AIEnableRequest = _webexCore.WebexPlugin.extend({
|
|
|
191
191
|
method: _constants.HTTP_VERBS.PUT
|
|
192
192
|
});
|
|
193
193
|
},
|
|
194
|
-
version: "3.12.0-next.
|
|
194
|
+
version: "3.12.0-next.132"
|
|
195
195
|
});
|
|
196
196
|
var _default = exports.default = AIEnableRequest;
|
|
197
197
|
//# sourceMappingURL=index.js.map
|
package/dist/breakouts/index.js
CHANGED
|
@@ -1204,7 +1204,7 @@ var Breakouts = _webexCore.WebexPlugin.extend({
|
|
|
1204
1204
|
this.trigger(_constants.BREAKOUTS.EVENTS.ASK_RETURN_TO_MAIN);
|
|
1205
1205
|
}
|
|
1206
1206
|
},
|
|
1207
|
-
version: "3.12.0-next.
|
|
1207
|
+
version: "3.12.0-next.132"
|
|
1208
1208
|
});
|
|
1209
1209
|
var _default = exports.default = Breakouts;
|
|
1210
1210
|
//# sourceMappingURL=index.js.map
|
|
@@ -381,7 +381,7 @@ var SimultaneousInterpretation = _webexCore.WebexPlugin.extend({
|
|
|
381
381
|
throw error;
|
|
382
382
|
});
|
|
383
383
|
},
|
|
384
|
-
version: "3.12.0-next.
|
|
384
|
+
version: "3.12.0-next.132"
|
|
385
385
|
});
|
|
386
386
|
var _default = exports.default = SimultaneousInterpretation;
|
|
387
387
|
//# 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.12.0-next.
|
|
21
|
+
version: "3.12.0-next.132"
|
|
22
22
|
});
|
|
23
23
|
var _default = exports.default = SILanguage;
|
|
24
24
|
//# sourceMappingURL=siLanguage.js.map
|
package/dist/locus-info/types.js
CHANGED
|
@@ -21,6 +21,7 @@ var EndMeetingReason = exports.EndMeetingReason = {
|
|
|
21
21
|
breakoutEnded: 'BREAKOUT_ENDED' // indicates that only a breakout session ended, not the whole meeting
|
|
22
22
|
};
|
|
23
23
|
var LocusErrorCodes = exports.LocusErrorCodes = {
|
|
24
|
-
LOCUS_INACTIVE: 2403004
|
|
24
|
+
LOCUS_INACTIVE: 2403004,
|
|
25
|
+
LOCUS_USER_FULL: 2423001
|
|
25
26
|
};
|
|
26
27
|
//# sourceMappingURL=types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["EndMeetingReason","exports","maxMeetingDuration","allParticipantsLeft","sipHostLeft","noHost","waitingForMpsEndMeetingTimeout","fraudDetection","meetingEndedByHost","meetingUpdated","meetingCancelled","autoEndWithSingleParticipant","breakoutEnded","LocusErrorCodes","LOCUS_INACTIVE"],"sources":["types.ts"],"sourcesContent":["import {Enum} from '../constants';\nimport {HtMeta} from '../hashTree/types';\n\nexport const EndMeetingReason = {\n maxMeetingDuration: 'MAX_MEETING_DURATION',\n allParticipantsLeft: 'ALL_PARTICIPANTS_LEFT',\n sipHostLeft: 'SIP_HOST_LEFT',\n noHost: 'NO_HOST',\n waitingForMpsEndMeetingTimeout: 'WAITING_FOR_MPS_END_MEETING_TIMEOUT',\n fraudDetection: 'FRAUD_DETECTION',\n meetingEndedByHost: 'MEETING_ENDED_BY_HOST',\n meetingUpdated: 'MEETING_UPDATED', // Locus code has comment about EndMeetingIfPossible reason for this one\n meetingCancelled: 'MEETING_CANCELLED', // Locus code has comment about EndMeetingIfPossible reason for this one\n autoEndWithSingleParticipant: 'AUTO_END_WITH_SINGLE_PARTICIPANT',\n breakoutEnded: 'BREAKOUT_ENDED', // indicates that only a breakout session ended, not the whole meeting\n} as const;\n\nexport type EndMeetingReason = Enum<typeof EndMeetingReason>;\n\nexport type LocusFullState = {\n active: boolean;\n count: number;\n lastActive: string;\n locked: boolean;\n sessionId: string;\n sessionIds: string[];\n startTime: number;\n state: string;\n type: string;\n endMeetingReason?: EndMeetingReason;\n};\n\nexport type Links = {\n services: Record<'breakout' | 'record', {url: string}>; // there exist also other services, but these are the ones we currently use\n resources: Record<'webcastInstance' | 'visibleDataSets', {url: string}>; // there exist also other resources, but these are the ones we currently use\n};\n\nexport type LocusDTO = {\n controls?: any;\n embeddedApps?: any[];\n fullState?: LocusFullState;\n host?: {\n id: string;\n incomingCallProtocols: any[];\n isExternal: boolean;\n name: string;\n orgId: string;\n };\n htMeta?: HtMeta;\n info?: any;\n jsSdkMeta?: {\n removedParticipantIds: string[]; // list of ids of participants that are removed in the last update\n forceReplaceMembers?: boolean; // when true, forces a full replacement of meeting members (e.g. when switching to a new hash tree parser - when moving between breakouts)\n };\n links?: Links;\n mediaShares?: any[];\n meetings?: any[];\n participants: any[];\n replaces?: any[];\n self?: any;\n sequence?: {\n dirtyParticipants: number;\n entries: number[];\n rangeEnd: number;\n rangeStart: number;\n sequenceHash: number;\n sessionToken: string;\n since: string;\n totalParticipants: number;\n };\n syncUrl?: string;\n url?: string;\n};\n\nexport type ReplacesInfo = {\n locusUrl: string;\n replacedAt: string;\n sessionId: string;\n};\n\nexport const LocusErrorCodes = {\n LOCUS_INACTIVE: 2403004,\n} as const;\n\nexport type LocusErrorCodes = Enum<typeof LocusErrorCodes>;\n"],"mappings":";;;;;;;AAGO,IAAMA,gBAAgB,GAAAC,OAAA,CAAAD,gBAAA,GAAG;EAC9BE,kBAAkB,EAAE,sBAAsB;EAC1CC,mBAAmB,EAAE,uBAAuB;EAC5CC,WAAW,EAAE,eAAe;EAC5BC,MAAM,EAAE,SAAS;EACjBC,8BAA8B,EAAE,qCAAqC;EACrEC,cAAc,EAAE,iBAAiB;EACjCC,kBAAkB,EAAE,uBAAuB;EAC3CC,cAAc,EAAE,iBAAiB;EAAE;EACnCC,gBAAgB,EAAE,mBAAmB;EAAE;EACvCC,4BAA4B,EAAE,kCAAkC;EAChEC,aAAa,EAAE,gBAAgB,CAAE;AACnC,CAAU;AAiEH,IAAMC,eAAe,GAAAZ,OAAA,CAAAY,eAAA,GAAG;EAC7BC,cAAc,EAAE;
|
|
1
|
+
{"version":3,"names":["EndMeetingReason","exports","maxMeetingDuration","allParticipantsLeft","sipHostLeft","noHost","waitingForMpsEndMeetingTimeout","fraudDetection","meetingEndedByHost","meetingUpdated","meetingCancelled","autoEndWithSingleParticipant","breakoutEnded","LocusErrorCodes","LOCUS_INACTIVE","LOCUS_USER_FULL"],"sources":["types.ts"],"sourcesContent":["import {Enum} from '../constants';\nimport {HtMeta} from '../hashTree/types';\n\nexport const EndMeetingReason = {\n maxMeetingDuration: 'MAX_MEETING_DURATION',\n allParticipantsLeft: 'ALL_PARTICIPANTS_LEFT',\n sipHostLeft: 'SIP_HOST_LEFT',\n noHost: 'NO_HOST',\n waitingForMpsEndMeetingTimeout: 'WAITING_FOR_MPS_END_MEETING_TIMEOUT',\n fraudDetection: 'FRAUD_DETECTION',\n meetingEndedByHost: 'MEETING_ENDED_BY_HOST',\n meetingUpdated: 'MEETING_UPDATED', // Locus code has comment about EndMeetingIfPossible reason for this one\n meetingCancelled: 'MEETING_CANCELLED', // Locus code has comment about EndMeetingIfPossible reason for this one\n autoEndWithSingleParticipant: 'AUTO_END_WITH_SINGLE_PARTICIPANT',\n breakoutEnded: 'BREAKOUT_ENDED', // indicates that only a breakout session ended, not the whole meeting\n} as const;\n\nexport type EndMeetingReason = Enum<typeof EndMeetingReason>;\n\nexport type LocusFullState = {\n active: boolean;\n count: number;\n lastActive: string;\n locked: boolean;\n sessionId: string;\n sessionIds: string[];\n startTime: number;\n state: string;\n type: string;\n endMeetingReason?: EndMeetingReason;\n};\n\nexport type Links = {\n services: Record<'breakout' | 'record', {url: string}>; // there exist also other services, but these are the ones we currently use\n resources: Record<'webcastInstance' | 'visibleDataSets', {url: string}>; // there exist also other resources, but these are the ones we currently use\n};\n\nexport type LocusDTO = {\n controls?: any;\n embeddedApps?: any[];\n fullState?: LocusFullState;\n host?: {\n id: string;\n incomingCallProtocols: any[];\n isExternal: boolean;\n name: string;\n orgId: string;\n };\n htMeta?: HtMeta;\n info?: any;\n jsSdkMeta?: {\n removedParticipantIds: string[]; // list of ids of participants that are removed in the last update\n forceReplaceMembers?: boolean; // when true, forces a full replacement of meeting members (e.g. when switching to a new hash tree parser - when moving between breakouts)\n };\n links?: Links;\n mediaShares?: any[];\n meetings?: any[];\n participants: any[];\n replaces?: any[];\n self?: any;\n sequence?: {\n dirtyParticipants: number;\n entries: number[];\n rangeEnd: number;\n rangeStart: number;\n sequenceHash: number;\n sessionToken: string;\n since: string;\n totalParticipants: number;\n };\n syncUrl?: string;\n url?: string;\n};\n\nexport type ReplacesInfo = {\n locusUrl: string;\n replacedAt: string;\n sessionId: string;\n};\n\nexport const LocusErrorCodes = {\n LOCUS_INACTIVE: 2403004,\n LOCUS_USER_FULL: 2423001,\n} as const;\n\nexport type LocusErrorCodes = Enum<typeof LocusErrorCodes>;\n"],"mappings":";;;;;;;AAGO,IAAMA,gBAAgB,GAAAC,OAAA,CAAAD,gBAAA,GAAG;EAC9BE,kBAAkB,EAAE,sBAAsB;EAC1CC,mBAAmB,EAAE,uBAAuB;EAC5CC,WAAW,EAAE,eAAe;EAC5BC,MAAM,EAAE,SAAS;EACjBC,8BAA8B,EAAE,qCAAqC;EACrEC,cAAc,EAAE,iBAAiB;EACjCC,kBAAkB,EAAE,uBAAuB;EAC3CC,cAAc,EAAE,iBAAiB;EAAE;EACnCC,gBAAgB,EAAE,mBAAmB;EAAE;EACvCC,4BAA4B,EAAE,kCAAkC;EAChEC,aAAa,EAAE,gBAAgB,CAAE;AACnC,CAAU;AAiEH,IAAMC,eAAe,GAAAZ,OAAA,CAAAY,eAAA,GAAG;EAC7BC,cAAc,EAAE,OAAO;EACvBC,eAAe,EAAE;AACnB,CAAU","ignoreList":[]}
|
package/dist/meeting/index.js
CHANGED
|
@@ -94,6 +94,7 @@ var _joinWebinarError = _interopRequireDefault(require("../common/errors/join-we
|
|
|
94
94
|
var _brbState = require("./brbState");
|
|
95
95
|
var _multistreamNotSupportedError = _interopRequireDefault(require("../common/errors/multistream-not-supported-error"));
|
|
96
96
|
var _joinForbiddenError = _interopRequireDefault(require("../common/errors/join-forbidden-error"));
|
|
97
|
+
var _types = require("../locus-info/types");
|
|
97
98
|
var _aiEnableRequest = _interopRequireDefault(require("../aiEnableRequest"));
|
|
98
99
|
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof _Symbol && r[_Symbol$iterator] || r["@@iterator"]; if (!t) { if (_Array$isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
|
|
99
100
|
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? _Array$from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
@@ -6495,9 +6496,10 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
6495
6496
|
|
|
6496
6497
|
// let's do a retry (but not on 1-1 calls, because the flow would get too complicated)
|
|
6497
6498
|
shouldRetry = !_util3.default.isOneOnOneCall(this.locusInfo.parsedLocus) && (retryCount < 1 || (_t10 instanceof _webexErrors.UserNotJoinedError || this.isErrorMeaningLocusDroppedUs(_t10)) && retryCount < JOIN_WITH_MEDIA_RETRY_MAX_COUNT);
|
|
6498
|
-
if (_internalPluginMetrics.CallDiagnosticUtils.isSdpOfferCreationError(_t10) || _internalPluginMetrics.CallDiagnosticUtils.isWebrtcApiNotAvailableError(_t10)) {
|
|
6499
|
+
if (_internalPluginMetrics.CallDiagnosticUtils.isSdpOfferCreationError(_t10) || _internalPluginMetrics.CallDiagnosticUtils.isWebrtcApiNotAvailableError(_t10) || this.isLocusUserFullError(_t10)) {
|
|
6499
6500
|
// errors related to offer creation (for example missing H264 codec) will happen again no matter how many times we try,
|
|
6500
6501
|
// so there is no point doing a retry
|
|
6502
|
+
// when the locus is full, we also don't want to retry, because it will just fail again
|
|
6501
6503
|
shouldRetry = false;
|
|
6502
6504
|
}
|
|
6503
6505
|
if (_internalPluginMetrics.CallDiagnosticUtils.isBrowserMediaError(_t10)) {
|
|
@@ -6566,7 +6568,10 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
6566
6568
|
prevError: undefined
|
|
6567
6569
|
};
|
|
6568
6570
|
this.locusInfo.suspendDestroyMeeting(false);
|
|
6569
|
-
|
|
6571
|
+
|
|
6572
|
+
// LOCUS_USER_FULL is a definitive capacity error the client must surface, so it takes
|
|
6573
|
+
// precedence over any earlier retryable error stored in firstError.
|
|
6574
|
+
throw this.isLocusUserFullError(_t10) ? _t10 : firstError !== null && firstError !== void 0 ? firstError : _t10;
|
|
6570
6575
|
case 18:
|
|
6571
6576
|
case "end":
|
|
6572
6577
|
return _context17.stop();
|
|
@@ -7920,6 +7925,12 @@ var Meeting = exports.default = /*#__PURE__*/function (_StatelessWebexPlugin) {
|
|
|
7920
7925
|
var causeStatusCode = error === null || error === void 0 ? void 0 : (_cause = error.cause) === null || _cause === void 0 ? void 0 : _cause.statusCode;
|
|
7921
7926
|
return statusCode === 409 || statusCode === 403 || causeStatusCode === 409 || causeStatusCode === 403;
|
|
7922
7927
|
}
|
|
7928
|
+
}, {
|
|
7929
|
+
key: "isLocusUserFullError",
|
|
7930
|
+
value: function isLocusUserFullError(error) {
|
|
7931
|
+
var _error6, _error6$body;
|
|
7932
|
+
return (error === null || error === void 0 ? void 0 : (_error6 = error.error) === null || _error6 === void 0 ? void 0 : (_error6$body = _error6.body) === null || _error6$body === void 0 ? void 0 : _error6$body.errorCode) === _types.LocusErrorCodes.LOCUS_USER_FULL;
|
|
7933
|
+
}
|
|
7923
7934
|
|
|
7924
7935
|
/**
|
|
7925
7936
|
* Determines if the next media attempt should use only TURN-TLS (iceTransportPolicy='relay').
|