@webex/plugin-meetings 3.10.0-webex-services-ready.1 → 3.10.0-webex-services-ready.2
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/breakouts/breakout.js +1 -1
- package/dist/breakouts/index.js +1 -1
- package/dist/hashTree/types.js +3 -2
- package/dist/hashTree/types.js.map +1 -1
- package/dist/interpretation/index.js +1 -1
- package/dist/interpretation/siLanguage.js +1 -1
- package/dist/locus-info/index.js +19 -28
- package/dist/locus-info/index.js.map +1 -1
- package/dist/locus-info/types.js.map +1 -1
- package/dist/meeting/index.js +22 -7
- package/dist/meeting/index.js.map +1 -1
- package/dist/types/hashTree/types.d.ts +2 -0
- package/dist/types/locus-info/index.d.ts +5 -15
- package/dist/types/locus-info/types.d.ts +9 -1
- package/dist/webinar/index.js +1 -1
- package/package.json +20 -20
- package/src/hashTree/types.ts +2 -0
- package/src/locus-info/index.ts +17 -23
- package/src/locus-info/types.ts +6 -1
- package/src/meeting/index.ts +20 -1
- package/test/unit/spec/locus-info/index.js +55 -3
- package/test/unit/spec/meeting/index.js +29 -0
|
@@ -209,7 +209,7 @@ var Breakout = _webexCore.WebexPlugin.extend({
|
|
|
209
209
|
sessionId: this.sessionId
|
|
210
210
|
});
|
|
211
211
|
},
|
|
212
|
-
version: "3.10.0-webex-services-ready.
|
|
212
|
+
version: "3.10.0-webex-services-ready.2"
|
|
213
213
|
});
|
|
214
214
|
var _default = exports.default = Breakout;
|
|
215
215
|
//# sourceMappingURL=breakout.js.map
|
package/dist/breakouts/index.js
CHANGED
|
@@ -1109,7 +1109,7 @@ var Breakouts = _webexCore.WebexPlugin.extend({
|
|
|
1109
1109
|
this.trigger(_constants.BREAKOUTS.EVENTS.ASK_RETURN_TO_MAIN);
|
|
1110
1110
|
}
|
|
1111
1111
|
},
|
|
1112
|
-
version: "3.10.0-webex-services-ready.
|
|
1112
|
+
version: "3.10.0-webex-services-ready.2"
|
|
1113
1113
|
});
|
|
1114
1114
|
var _default = exports.default = Breakouts;
|
|
1115
1115
|
//# sourceMappingURL=index.js.map
|
package/dist/hashTree/types.js
CHANGED
|
@@ -14,8 +14,9 @@ var ObjectType = exports.ObjectType = {
|
|
|
14
14
|
locus: 'locus',
|
|
15
15
|
mediaShare: 'mediashare',
|
|
16
16
|
info: 'info',
|
|
17
|
-
fullState: 'fullstate'
|
|
17
|
+
fullState: 'fullstate',
|
|
18
|
+
links: 'links'
|
|
18
19
|
};
|
|
19
20
|
// mapping from ObjectType to top level LocusDTO keys
|
|
20
|
-
var ObjectTypeToLocusKeyMap = exports.ObjectTypeToLocusKeyMap = (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, ObjectType.info, 'info'), ObjectType.fullState, 'fullState'), ObjectType.self, 'self'), ObjectType.participant, 'participants'), ObjectType.mediaShare, 'mediaShares');
|
|
21
|
+
var ObjectTypeToLocusKeyMap = exports.ObjectTypeToLocusKeyMap = (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, ObjectType.links, 'links'), ObjectType.info, 'info'), ObjectType.fullState, 'fullState'), ObjectType.self, 'self'), ObjectType.participant, 'participants'), ObjectType.mediaShare, 'mediaShares');
|
|
21
22
|
//# sourceMappingURL=types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ObjectType","exports","participant","self","locus","mediaShare","info","fullState","ObjectTypeToLocusKeyMap","_defineProperty2","default"],"sources":["types.ts"],"sourcesContent":["import {Enum} from '../constants';\n\n// todo: Locus docs have now more types like CONTROL_ENTRY, EMBEDDED_APP - need to add support for them once Locus implements them\nexport const ObjectType = {\n participant: 'participant',\n self: 'self',\n locus: 'locus',\n mediaShare: 'mediashare',\n info: 'info',\n fullState: 'fullstate',\n} as const;\n\nexport type ObjectType = Enum<typeof ObjectType>;\n\n// mapping from ObjectType to top level LocusDTO keys\nexport const ObjectTypeToLocusKeyMap = {\n [ObjectType.info]: 'info',\n [ObjectType.fullState]: 'fullState',\n [ObjectType.self]: 'self',\n [ObjectType.participant]: 'participants', // note: each object is a single participant in participants array\n [ObjectType.mediaShare]: 'mediaShares', // note: each object is a single mediaShare in mediaShares array\n};\nexport interface HtMeta {\n elementId: {\n type: ObjectType;\n id: number;\n version: number;\n };\n dataSetNames: string[];\n}\n"],"mappings":";;;;;;;;;AAEA;AACO,IAAMA,UAAU,GAAAC,OAAA,CAAAD,UAAA,GAAG;EACxBE,WAAW,EAAE,aAAa;EAC1BC,IAAI,EAAE,MAAM;EACZC,KAAK,EAAE,OAAO;EACdC,UAAU,EAAE,YAAY;EACxBC,IAAI,EAAE,MAAM;EACZC,SAAS,EAAE;
|
|
1
|
+
{"version":3,"names":["ObjectType","exports","participant","self","locus","mediaShare","info","fullState","links","ObjectTypeToLocusKeyMap","_defineProperty2","default"],"sources":["types.ts"],"sourcesContent":["import {Enum} from '../constants';\n\n// todo: Locus docs have now more types like CONTROL_ENTRY, EMBEDDED_APP - need to add support for them once Locus implements them\nexport const ObjectType = {\n participant: 'participant',\n self: 'self',\n locus: 'locus',\n mediaShare: 'mediashare',\n info: 'info',\n fullState: 'fullstate',\n links: 'links',\n} as const;\n\nexport type ObjectType = Enum<typeof ObjectType>;\n\n// mapping from ObjectType to top level LocusDTO keys\nexport const ObjectTypeToLocusKeyMap = {\n [ObjectType.links]: 'links',\n [ObjectType.info]: 'info',\n [ObjectType.fullState]: 'fullState',\n [ObjectType.self]: 'self',\n [ObjectType.participant]: 'participants', // note: each object is a single participant in participants array\n [ObjectType.mediaShare]: 'mediaShares', // note: each object is a single mediaShare in mediaShares array\n};\nexport interface HtMeta {\n elementId: {\n type: ObjectType;\n id: number;\n version: number;\n };\n dataSetNames: string[];\n}\n"],"mappings":";;;;;;;;;AAEA;AACO,IAAMA,UAAU,GAAAC,OAAA,CAAAD,UAAA,GAAG;EACxBE,WAAW,EAAE,aAAa;EAC1BC,IAAI,EAAE,MAAM;EACZC,KAAK,EAAE,OAAO;EACdC,UAAU,EAAE,YAAY;EACxBC,IAAI,EAAE,MAAM;EACZC,SAAS,EAAE,WAAW;EACtBC,KAAK,EAAE;AACT,CAAU;AAIV;AACO,IAAMC,uBAAuB,GAAAR,OAAA,CAAAQ,uBAAA,OAAAC,gBAAA,CAAAC,OAAA,MAAAD,gBAAA,CAAAC,OAAA,MAAAD,gBAAA,CAAAC,OAAA,MAAAD,gBAAA,CAAAC,OAAA,MAAAD,gBAAA,CAAAC,OAAA,MAAAD,gBAAA,CAAAC,OAAA,MACjCX,UAAU,CAACQ,KAAK,EAAG,OAAO,GAC1BR,UAAU,CAACM,IAAI,EAAG,MAAM,GACxBN,UAAU,CAACO,SAAS,EAAG,WAAW,GAClCP,UAAU,CAACG,IAAI,EAAG,MAAM,GACxBH,UAAU,CAACE,WAAW,EAAG,cAAc,GACvCF,UAAU,CAACK,UAAU,EAAG,aAAa,CACvC","ignoreList":[]}
|
|
@@ -372,7 +372,7 @@ var SimultaneousInterpretation = _webexCore.WebexPlugin.extend({
|
|
|
372
372
|
throw error;
|
|
373
373
|
});
|
|
374
374
|
},
|
|
375
|
-
version: "3.10.0-webex-services-ready.
|
|
375
|
+
version: "3.10.0-webex-services-ready.2"
|
|
376
376
|
});
|
|
377
377
|
var _default = exports.default = SimultaneousInterpretation;
|
|
378
378
|
//# 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.10.0-webex-services-ready.
|
|
21
|
+
version: "3.10.0-webex-services-ready.2"
|
|
22
22
|
});
|
|
23
23
|
var _default = exports.default = SILanguage;
|
|
24
24
|
//# sourceMappingURL=siLanguage.js.map
|
package/dist/locus-info/index.js
CHANGED
|
@@ -109,8 +109,7 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
109
109
|
(0, _defineProperty2.default)(_this, "mediaShares", void 0);
|
|
110
110
|
(0, _defineProperty2.default)(_this, "replace", void 0);
|
|
111
111
|
(0, _defineProperty2.default)(_this, "url", void 0);
|
|
112
|
-
(0, _defineProperty2.default)(_this, "
|
|
113
|
-
(0, _defineProperty2.default)(_this, "resources", void 0);
|
|
112
|
+
(0, _defineProperty2.default)(_this, "links", void 0);
|
|
114
113
|
(0, _defineProperty2.default)(_this, "mainSessionLocusCache", void 0);
|
|
115
114
|
(0, _defineProperty2.default)(_this, "self", void 0);
|
|
116
115
|
(0, _defineProperty2.default)(_this, "hashTreeParser", void 0);
|
|
@@ -299,7 +298,6 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
299
298
|
}, {
|
|
300
299
|
key: "init",
|
|
301
300
|
value: function init() {
|
|
302
|
-
var _locus$links, _locus$links2;
|
|
303
301
|
var locus = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
304
302
|
this.created = locus.created || null;
|
|
305
303
|
this.scheduledMeeting = locus.meeting || null;
|
|
@@ -335,8 +333,7 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
335
333
|
this.updateSelf(locus.self);
|
|
336
334
|
this.updateHostInfo(locus.host);
|
|
337
335
|
this.updateMediaShares(locus.mediaShares);
|
|
338
|
-
this.
|
|
339
|
-
this.updateResources((_locus$links2 = locus.links) === null || _locus$links2 === void 0 ? void 0 : _locus$links2.resources);
|
|
336
|
+
this.updateLinks(locus.links);
|
|
340
337
|
}
|
|
341
338
|
|
|
342
339
|
/**
|
|
@@ -564,12 +561,13 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
564
561
|
this.hashTreeObjectId2ParticipantId.delete(object.htMeta.elementId.id);
|
|
565
562
|
}
|
|
566
563
|
break;
|
|
564
|
+
case _types.ObjectType.links:
|
|
567
565
|
case _types.ObjectType.info:
|
|
568
566
|
case _types.ObjectType.fullState:
|
|
569
567
|
case _types.ObjectType.self:
|
|
570
568
|
if (!object.data) {
|
|
571
569
|
// self without data is handled inside HashTreeParser and results in LocusInfoUpdateType.MEETING_ENDED, so we should never get here
|
|
572
|
-
// other types
|
|
570
|
+
// all other types info, fullstate, etc - Locus should never send them without data
|
|
573
571
|
_loggerProxy.default.logger.warn("Locus-info:index#updateLocusFromHashTreeObject --> received ".concat(type, " object without data, this is not expected! version=").concat(object.htMeta.elementId.version));
|
|
574
572
|
} else {
|
|
575
573
|
_loggerProxy.default.logger.info("Locus-info:index#updateLocusFromHashTreeObject --> ".concat(type, " object updated to version ").concat(object.htMeta.elementId.version));
|
|
@@ -942,7 +940,7 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
942
940
|
}, {
|
|
943
941
|
key: "updateLocusInfo",
|
|
944
942
|
value: function updateLocusInfo(locus) {
|
|
945
|
-
var _locus$self, _locus$self2
|
|
943
|
+
var _locus$self, _locus$self2;
|
|
946
944
|
if (((_locus$self = locus.self) === null || _locus$self === void 0 ? void 0 : _locus$self.reason) === 'MOVED' && ((_locus$self2 = locus.self) === null || _locus$self2 === void 0 ? void 0 : _locus$self2.state) === 'LEFT') {
|
|
947
945
|
// When moved to a breakout session locus sends a message for the previous locus
|
|
948
946
|
// indicating that we have been moved. It isn't helpful to continue parsing this
|
|
@@ -966,8 +964,7 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
966
964
|
this.updateMemberShip(locus.membership);
|
|
967
965
|
this.updateIdentifiers(locus.identities);
|
|
968
966
|
this.updateEmbeddedApps(locus.embeddedApps);
|
|
969
|
-
this.
|
|
970
|
-
this.updateResources((_locus$links4 = locus.links) === null || _locus$links4 === void 0 ? void 0 : _locus$links4.resources);
|
|
967
|
+
this.updateLinks(locus.links);
|
|
971
968
|
this.compareAndUpdate();
|
|
972
969
|
// update which required to compare different objects from locus
|
|
973
970
|
}
|
|
@@ -1516,41 +1513,35 @@ var LocusInfo = exports.default = /*#__PURE__*/function (_EventsScope) {
|
|
|
1516
1513
|
}
|
|
1517
1514
|
|
|
1518
1515
|
/**
|
|
1519
|
-
*
|
|
1516
|
+
* Updates links and emits appropriate events if services or resources have changed
|
|
1517
|
+
* @param {Object} links
|
|
1520
1518
|
* @returns {undefined}
|
|
1521
1519
|
* @memberof LocusInfo
|
|
1522
1520
|
*/
|
|
1523
1521
|
}, {
|
|
1524
|
-
key: "
|
|
1525
|
-
value: function
|
|
1526
|
-
|
|
1527
|
-
|
|
1522
|
+
key: "updateLinks",
|
|
1523
|
+
value: function updateLinks(links) {
|
|
1524
|
+
var _this$links, _this$links2;
|
|
1525
|
+
var _ref2 = links || {},
|
|
1526
|
+
services = _ref2.services,
|
|
1527
|
+
resources = _ref2.resources;
|
|
1528
|
+
if (services && !(0, _lodash.isEqual)((_this$links = this.links) === null || _this$links === void 0 ? void 0 : _this$links.services, services)) {
|
|
1528
1529
|
this.emitScoped({
|
|
1529
1530
|
file: 'locus-info',
|
|
1530
|
-
function: '
|
|
1531
|
+
function: 'updateLinks'
|
|
1531
1532
|
}, _constants.LOCUSINFO.EVENTS.LINKS_SERVICES, {
|
|
1532
1533
|
services: services
|
|
1533
1534
|
});
|
|
1534
1535
|
}
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
/**
|
|
1538
|
-
* @param {Object} resources
|
|
1539
|
-
* @returns {undefined}
|
|
1540
|
-
* @memberof LocusInfo
|
|
1541
|
-
*/
|
|
1542
|
-
}, {
|
|
1543
|
-
key: "updateResources",
|
|
1544
|
-
value: function updateResources(resources) {
|
|
1545
|
-
if (resources && !(0, _lodash.isEqual)(this.resources, resources)) {
|
|
1546
|
-
this.resources = resources;
|
|
1536
|
+
if (resources && !(0, _lodash.isEqual)((_this$links2 = this.links) === null || _this$links2 === void 0 ? void 0 : _this$links2.resources, resources)) {
|
|
1547
1537
|
this.emitScoped({
|
|
1548
1538
|
file: 'locus-info',
|
|
1549
|
-
function: '
|
|
1539
|
+
function: 'updateLinks'
|
|
1550
1540
|
}, _constants.LOCUSINFO.EVENTS.LINKS_RESOURCES, {
|
|
1551
1541
|
resources: resources
|
|
1552
1542
|
});
|
|
1553
1543
|
}
|
|
1544
|
+
this.links = links;
|
|
1554
1545
|
}
|
|
1555
1546
|
|
|
1556
1547
|
/**
|