@webex/internal-plugin-lyra 3.0.0-bnr.4 → 3.0.0

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/.eslintrc.js ADDED
@@ -0,0 +1,6 @@
1
+ const config = {
2
+ root: true,
3
+ extends: ['@webex/eslint-config-legacy'],
4
+ };
5
+
6
+ module.exports = config;
@@ -0,0 +1,3 @@
1
+ const babelConfigLegacy = require('@webex/babel-config-legacy');
2
+
3
+ module.exports = babelConfigLegacy;
package/dist/config.js CHANGED
@@ -8,8 +8,7 @@ exports.default = void 0;
8
8
  /*!
9
9
  * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
10
10
  */
11
- var _default = {
11
+ var _default = exports.default = {
12
12
  lyra: {}
13
13
  };
14
- exports.default = _default;
15
14
  //# sourceMappingURL=config.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["lyra"],"sources":["config.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\nexport default {\n lyra: {},\n};\n"],"mappings":";;;;;;;AAAA;AACA;AACA;AAFA,eAIe;EACbA,IAAI,EAAE,CAAC;AACT,CAAC;AAAA"}
1
+ {"version":3,"names":["_default","exports","default","lyra"],"sources":["config.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\nexport default {\n lyra: {},\n};\n"],"mappings":";;;;;;;AAAA;AACA;AACA;AAFA,IAAAA,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAIe;EACbC,IAAI,EAAE,CAAC;AACT,CAAC"}
package/dist/device.js CHANGED
@@ -124,8 +124,7 @@ var Device = _webexCore.WebexPlugin.extend({
124
124
  }
125
125
  });
126
126
  },
127
- version: "3.0.0-bnr.4"
127
+ version: "3.0.0"
128
128
  });
129
- var _default = Device;
130
- exports.default = _default;
129
+ var _default = exports.default = Device;
131
130
  //# sourceMappingURL=device.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["Device","WebexPlugin","extend","namespace","getAudioState","space","webex","request","method","uri","url","then","res","body","putAudioState","audioState","deviceUrl","reject","Error","mute","unmute","increaseVolume","decreaseVolume","setVolume","level"],"sources":["device.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\nimport {WebexPlugin} from '@webex/webex-core';\n\n/**\n * @class\n * @extends {Lyra}\n * @memberof Lyra\n */\nconst Device = WebexPlugin.extend({\n namespace: 'Lyra',\n\n /**\n * Gets the audio state of the device\n * @param {Types~LyraSpace} space\n * @param {string} space.url\n * @returns {Promise<LyraAudioState>} {volume, microphones, url}\n */\n getAudioState(space) {\n return this.webex\n .request({\n method: 'GET',\n uri: `${space.url}/audio`,\n })\n .then((res) => res.body);\n },\n\n /**\n * Updates audio state for lyra device, should be called every 10 minutes or\n * when mic or volume state is changed\n * @param {Types~LyraSpace} space\n * @param {string} space.url\n * @param {Types~LyraAudioState} audioState\n * @param {object} audioState.volume optional\n * @param {boolean} audioState.volume.level\n * @param {object} audioState.microphones optional\n * @param {boolean} audioState.microphones.muted\n * @param {string} audioState.deviceUrl\n * @returns {Promise}\n */\n putAudioState(space, audioState = {}) {\n if (!audioState.deviceUrl) {\n return Promise.reject(new Error('audioState.deviceUrl is required'));\n }\n\n return this.webex\n .request({\n method: 'PUT',\n uri: `${space.url}/audio`,\n body: audioState,\n })\n .then((res) => res.body);\n },\n\n /**\n * Mutes lyra device\n * @param {Types~LyraSpace} space\n * @param {string} space.url\n * @returns {Promise}\n */\n mute(space) {\n return this.webex.request({\n method: 'POST',\n uri: `${space.url}/audio/microphones/actions/mute/invoke`,\n });\n },\n\n /**\n * Unmutes lyra device\n * @param {Types~LyraSpace} space\n * @param {string} space.url\n * @returns {Promise}\n */\n unmute(space) {\n return this.webex.request({\n method: 'POST',\n uri: `${space.url}/audio/microphones/actions/un-mute/invoke`,\n });\n },\n\n /**\n * Increases lyra device's volume\n * @param {Types~LyraSpace} space\n * @param {string} space.url\n * @returns {Promise}\n */\n increaseVolume(space) {\n return this.webex.request({\n method: 'POST',\n uri: `${space.url}/audio/volume/actions/increase/invoke`,\n });\n },\n\n /**\n * Decreases lyra device's volume\n * @param {Types~LyraSpace} space\n * @param {string} space.url\n * @returns {Promise}\n */\n decreaseVolume(space) {\n return this.webex.request({\n method: 'POST',\n uri: `${space.url}/audio/volume/actions/decrease/invoke`,\n });\n },\n\n /**\n * Sets lyra device's volume but should use increase and decrease api instead\n * @param {Types~LyraSpace} space\n * @param {string} space.url\n * @param {integer} level to be set\n * @returns {Promise}\n */\n setVolume(space, level = 0) {\n return this.webex.request({\n method: 'POST',\n uri: `${space.url}/audio/volume/actions/set/invoke`,\n body: {\n level,\n },\n });\n },\n});\n\nexport default Device;\n"],"mappings":";;;;;;;;;AAIA;AAJA;AACA;AACA;;AAIA;AACA;AACA;AACA;AACA;AACA,IAAMA,MAAM,GAAGC,sBAAW,CAACC,MAAM,CAAC;EAChCC,SAAS,EAAE,MAAM;EAEjB;AACF;AACA;AACA;AACA;AACA;EACEC,aAAa,yBAACC,KAAK,EAAE;IACnB,OAAO,IAAI,CAACC,KAAK,CACdC,OAAO,CAAC;MACPC,MAAM,EAAE,KAAK;MACbC,GAAG,YAAKJ,KAAK,CAACK,GAAG;IACnB,CAAC,CAAC,CACDC,IAAI,CAAC,UAACC,GAAG;MAAA,OAAKA,GAAG,CAACC,IAAI;IAAA,EAAC;EAC5B,CAAC;EAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACEC,aAAa,yBAACT,KAAK,EAAmB;IAAA,IAAjBU,UAAU,uEAAG,CAAC,CAAC;IAClC,IAAI,CAACA,UAAU,CAACC,SAAS,EAAE;MACzB,OAAO,iBAAQC,MAAM,CAAC,IAAIC,KAAK,CAAC,kCAAkC,CAAC,CAAC;IACtE;IAEA,OAAO,IAAI,CAACZ,KAAK,CACdC,OAAO,CAAC;MACPC,MAAM,EAAE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W,KAAK,EAALA;MACF;IACF,CAAC,CAAC;EACJ,CAAC;EAAA;AACH,CAAC,CAAC;AAAC,eAEYxB,MAAM;AAAA"}
1
+ {"version":3,"names":["_webexCore","require","Device","WebexPlugin","extend","namespace","getAudioState","space","webex","request","method","uri","concat","url","then","res","body","putAudioState","audioState","arguments","length","undefined","deviceUrl","_promise","default","reject","Error","mute","unmute","increaseVolume","decreaseVolume","setVolume","level","version","_default","exports"],"sources":["device.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\nimport {WebexPlugin} from '@webex/webex-core';\n\n/**\n * @class\n * @extends {Lyra}\n * @memberof Lyra\n */\nconst Device = WebexPlugin.extend({\n namespace: 'Lyra',\n\n /**\n * Gets the audio state of the device\n * @param {Types~LyraSpace} space\n * @param {string} space.url\n * @returns {Promise<LyraAudioState>} {volume, microphones, url}\n */\n getAudioState(space) {\n return this.webex\n .request({\n method: 'GET',\n uri: `${space.url}/audio`,\n })\n .then((res) => res.body);\n },\n\n /**\n * Updates audio state for lyra device, should be called every 10 minutes or\n * when mic or volume state is changed\n * @param {Types~LyraSpace} space\n * @param {string} space.url\n * @param {Types~LyraAudioState} audioState\n * @param {object} audioState.volume optional\n * @param {boolean} audioState.volume.level\n * @param {object} audioState.microphones optional\n * @param {boolean} audioState.microphones.muted\n * @param {string} audioState.deviceUrl\n * @returns {Promise}\n */\n putAudioState(space, audioState = {}) {\n if (!audioState.deviceUrl) {\n return Promise.reject(new Error('audioState.deviceUrl is required'));\n }\n\n return this.webex\n .request({\n method: 'PUT',\n uri: `${space.url}/audio`,\n body: audioState,\n })\n .then((res) => res.body);\n },\n\n /**\n * Mutes lyra device\n * @param {Types~LyraSpace} space\n * @param {string} space.url\n * @returns {Promise}\n */\n mute(space) {\n return this.webex.request({\n method: 'POST',\n uri: `${space.url}/audio/microphones/actions/mute/invoke`,\n });\n },\n\n /**\n * Unmutes lyra device\n * @param {Types~LyraSpace} space\n * @param {string} space.url\n * @returns {Promise}\n */\n unmute(space) {\n return this.webex.request({\n method: 'POST',\n uri: `${space.url}/audio/microphones/actions/un-mute/invoke`,\n });\n },\n\n /**\n * Increases lyra device's volume\n * @param {Types~LyraSpace} space\n * @param {string} space.url\n * @returns {Promise}\n */\n increaseVolume(space) {\n return this.webex.request({\n method: 'POST',\n uri: `${space.url}/audio/volume/actions/increase/invoke`,\n });\n },\n\n /**\n * Decreases lyra device's volume\n * @param {Types~LyraSpace} space\n * @param {string} space.url\n * @returns {Promise}\n */\n decreaseVolume(space) {\n return this.webex.request({\n method: 'POST',\n uri: `${space.url}/audio/volume/actions/decrease/invoke`,\n });\n },\n\n /**\n * Sets lyra device's volume but should use increase and decrease api instead\n * @param {Types~LyraSpace} space\n * @param {string} space.url\n * @param {integer} level to be set\n * @returns {Promise}\n */\n setVolume(space, level = 0) {\n return this.webex.request({\n method: 'POST',\n uri: `${space.url}/audio/volume/actions/set/invoke`,\n body: {\n level,\n },\n });\n },\n});\n\nexport default Device;\n"],"mappings":";;;;;;;;;AAIA,IAAAA,UAAA,GAAAC,OAAA;AAJA;AACA;AACA;;AAIA;AACA;AACA;AACA;AACA;AACA,IAAMC,MAAM,GAAGC,sBAAW,CAACC,MAAM,CAAC;EAChCC,SAAS,EAAE,MAAM;EAEjB;AACF;AACA;AACA;AACA;AACA;EACEC,aAAa,WAAAA,cAACC,KAAK,EAAE;IACnB,OAAO,IAAI,CAACC,KAAK,CACdC,OAAO,CAAC;MACPC,MAAM,EAAE,KAAK;MACbC,GAAG,KAAAC,MAAA,CAAKL,KAAK,CAACM,GAAG;IACnB,CAAC,CAAC,CACDC,IAAI,CAAC,UAACC,GAAG;MAAA,OAAKA,GAAG,CAACC,IAAI;IAAA,EAAC;EAC5B,CAAC;EAED;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACEC,aAAa,WAAAA,cAACV,KAAK,EAAmB;IAAA,IAAjBW,UAAU,GAAAC,SAAA,CAAA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AAO,CAAC;MACxBC,MAAM,EAAE,MAAM;MACdC,GAAG,KAAAC,MAAA,CAAKL,KAAK,CAACM,GAAG;IACnB,CAAC,CAAC;EACJ,CAAC;EAED;AACF;AACA;AACA;AACA;AACA;AACA;EACEkB,SAAS,WAAAA,UAACxB,KAAK,EAAa;IAAA,IAAXyB,KAAK,GAAAb,SAAA,CAAAC,MAAA,QAAAD,SAAA,QAAAE,SAAA,GAAAF,SAAA,MAAG,CAAC;IACxB,OAAO,IAAI,CAACX,KAAK,CAACC,OAAO,CAAC;MACxBC,MAAM,EAAE,MAAM;MACdC,GAAG,KAAAC,MAAA,CAAKL,KAAK,CAACM,GAAG,qCAAkC;MACnDG,IAAI,EAAE;QACJgB,KAAK,EAALA;MACF;IACF,CAAC,CAAC;EACJ,CAAC;EAAAC,OAAA;AACH,CAAC,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAX,OAAA,GAEYtB,MAAM"}
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"names":["registerInternalPlugin","Lyra","config"],"sources":["index.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\nimport '@webex/internal-plugin-mercury';\nimport '@webex/internal-plugin-encryption';\nimport '@webex/internal-plugin-conversation';\nimport '@webex/internal-plugin-feature';\n\nimport {registerInternalPlugin} from '@webex/webex-core';\n\nimport Lyra from './lyra';\nimport config from './config';\n\nregisterInternalPlugin('lyra', Lyra, {\n config,\n});\n\nexport {default} from './lyra';\nexport {config};\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAIA;AACA;AACA;AACA;AAEA;AAEA;AACA;AAZA;AACA;AACA;;AAYA,IAAAA,iCAAsB,EAAC,MAAM,EAAEC,aAAI,EAAE;EACnCC,MAAM,EAANA;AACF,CAAC,CAAC"}
1
+ {"version":3,"names":["require","_webexCore","_lyra","_interopRequireDefault","_config","registerInternalPlugin","Lyra","config"],"sources":["index.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\nimport '@webex/internal-plugin-mercury';\nimport '@webex/internal-plugin-encryption';\nimport '@webex/internal-plugin-conversation';\nimport '@webex/internal-plugin-feature';\n\nimport {registerInternalPlugin} from '@webex/webex-core';\n\nimport Lyra from './lyra';\nimport config from './config';\n\nregisterInternalPlugin('lyra', Lyra, {\n config,\n});\n\nexport {default} from './lyra';\nexport {config};\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAIAA,OAAA;AACAA,OAAA;AACAA,OAAA;AACAA,OAAA;AAEA,IAAAC,UAAA,GAAAD,OAAA;AAEA,IAAAE,KAAA,GAAAC,sBAAA,CAAAH,OAAA;AACA,IAAAI,OAAA,GAAAD,sBAAA,CAAAH,OAAA;AAZA;AACA;AACA;;AAYA,IAAAK,iCAAsB,EAAC,MAAM,EAAEC,aAAI,EAAE;EACnCC,MAAM,EAANA;AACF,CAAC,CAAC"}
package/dist/lyra.js CHANGED
@@ -53,8 +53,7 @@ var Lyra = _webexCore.WebexPlugin.extend({
53
53
  return res.body;
54
54
  });
55
55
  },
56
- version: "3.0.0-bnr.4"
56
+ version: "3.0.0"
57
57
  });
58
- var _default = Lyra;
59
- exports.default = _default;
58
+ var _default = exports.default = Lyra;
60
59
  //# sourceMappingURL=lyra.js.map
package/dist/lyra.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"names":["Lyra","WebexPlugin","extend","namespace","children","space","Space","device","Device","getAdvertisedEndpoint","token","webex","request","method","api","resource","qs","then","res","body"],"sources":["lyra.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\nimport {WebexPlugin} from '@webex/webex-core';\n\nimport Space from './space';\nimport Device from './device';\n\nconst Lyra = WebexPlugin.extend({\n /**\n * @typedef {Object} Endpoint\n * @property {Object} advertiser\n * @property {string} advertiser.id\n * @property {string} advertiser.displayName\n * @property {string} advertiser.orgId\n * @property {Object} links\n * @property {Object} links.addMeToSpace\n * @property {string} links.addMeToSpace.href\n * @property {string} links.addMeToSpace.method\n * @property {Object} links.lyra_space\n * @property {string} links.lyra_space.href\n * @property {string} links.lyra_space.method\n * @property {string} proof\n * @property {Object} token\n * @property {string} token.value\n */\n namespace: 'Lyra',\n children: {\n space: Space,\n device: Device,\n },\n\n /**\n * Get the endpoint information\n * @param {string} token - ultrasound token decoded\n * @returns {Promise<Endpoint>}\n */\n getAdvertisedEndpoint(token) {\n return this.webex\n .request({\n method: 'GET',\n api: 'proximity',\n resource: '/ultrasound/advertisements',\n qs: {\n token,\n },\n })\n .then((res) => res.body);\n },\n});\n\nexport default Lyra;\n"],"mappings":";;;;;;;;AAIA;AAEA;AACA;AAPA;AACA;AACA;;AAOA,IAAMA,IAAI,GAAGC,sBAAW,CAACC,MAAM,CAAC;EAC9B;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACEC,SAAS,EAAE,MAAM;EACjBC,QAAQ,EAAE;IACRC,KAAK,EAAEC,cAAK;IACZC,MAAM,EAAEC;EACV,CAAC;EAED;AACF;AACA;AACA;AACA;EACEC,qBAAqB,iCAACC,KAAK,EAAE;IAC3B,OAAO,IAAI,CAACC,KAAK,CACdC,OAAO,CAAC;MACPC,MAAM,EAAE,KAAK;MACbC,GAAG,EAAE,WAAW;MAChBC,QAAQ,EAAE,4BAA4B;MACtCC,EAAE,EAAE;QACFN,KAAK,EAALA;MACF;IACF,CAAC,CAAC,CACDO,IAAI,CAAC,UAACC,GAAG;MAAA,OAAKA,GAAG,CAACC,IAAI;IAAA,EAAC;EAC5B,CAAC;EAAA;AACH,CAAC,CAAC;AAAC,eAEYnB,IAAI;AAAA"}
1
+ {"version":3,"names":["_webexCore","require","_space","_interopRequireDefault","_device","Lyra","WebexPlugin","extend","namespace","children","space","Space","device","Device","getAdvertisedEndpoint","token","webex","request","method","api","resource","qs","then","res","body","version","_default","exports","default"],"sources":["lyra.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\nimport {WebexPlugin} from '@webex/webex-core';\n\nimport Space from './space';\nimport Device from './device';\n\nconst Lyra = WebexPlugin.extend({\n /**\n * @typedef {Object} Endpoint\n * @property {Object} advertiser\n * @property {string} advertiser.id\n * @property {string} advertiser.displayName\n * @property {string} advertiser.orgId\n * @property {Object} links\n * @property {Object} links.addMeToSpace\n * @property {string} links.addMeToSpace.href\n * @property {string} links.addMeToSpace.method\n * @property {Object} links.lyra_space\n * @property {string} links.lyra_space.href\n * @property {string} links.lyra_space.method\n * @property {string} proof\n * @property {Object} token\n * @property {string} token.value\n */\n namespace: 'Lyra',\n children: {\n space: Space,\n device: Device,\n },\n\n /**\n * Get the endpoint information\n * @param {string} token - ultrasound token decoded\n * @returns {Promise<Endpoint>}\n */\n getAdvertisedEndpoint(token) {\n return this.webex\n .request({\n method: 'GET',\n api: 'proximity',\n resource: '/ultrasound/advertisements',\n qs: {\n token,\n },\n })\n .then((res) => res.body);\n },\n});\n\nexport default Lyra;\n"],"mappings":";;;;;;;;AAIA,IAAAA,UAAA,GAAAC,OAAA;AAEA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,OAAA,GAAAD,sBAAA,CAAAF,OAAA;AAPA;AACA;AACA;;AAOA,IAAMI,IAAI,GAAGC,sBAAW,CAACC,MAAM,CAAC;EAC9B;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACEC,SAAS,EAAE,MAAM;EACjBC,QAAQ,EAAE;IACRC,KAAK,EAAEC,cAAK;IACZC,MAAM,EAAEC;EACV,CAAC;EAED;AACF;AACA;AACA;AACA;EACEC,qBAAqB,WAAAA,sBAACC,KAAK,EAAE;IAC3B,OAAO,IAAI,CAACC,KAAK,CACdC,OAAO,CAAC;MACPC,MAAM,EAAE,KAAK;MACbC,GAAG,EAAE,WAAW;MAChBC,QAAQ,EAAE,4BAA4B;MACtCC,EAAE,EAAE;QACFN,KAAK,EAALA;MACF;IACF,CAAC,CAAC,CACDO,IAAI,CAAC,UAACC,GAAG;MAAA,OAAKA,GAAG,CAACC,IAAI;IAAA,EAAC;EAC5B,CAAC;EAAAC,OAAA;AACH,CAAC,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEYvB,IAAI"}
package/dist/space.js CHANGED
@@ -16,8 +16,10 @@ var _promise = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/pr
16
16
  var _querystring = _interopRequireDefault(require("querystring"));
17
17
  var _webexCore = require("@webex/webex-core");
18
18
  var _common = require("@webex/common");
19
- function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
20
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { (0, _defineProperty2.default)(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
19
+ function ownKeys(e, r) { var t = _Object$keys(e); if (_Object$getOwnPropertySymbols) { var o = _Object$getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return _Object$getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
20
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2.default)(e, r, t[r]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(e, _Object$getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { _Object$defineProperty(e, r, _Object$getOwnPropertyDescriptor(t, r)); }); } return e; } /*!
21
+ * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
22
+ */
21
23
  /**
22
24
  * @class
23
25
  * @extends {Lyra}
@@ -345,8 +347,7 @@ var Space = _webexCore.WebexPlugin.extend({
345
347
  });
346
348
  });
347
349
  },
348
- version: "3.0.0-bnr.4"
350
+ version: "3.0.0"
349
351
  });
350
- var _default = Space;
351
- exports.default = _default;
352
+ var _default = exports.default = Space;
352
353
  //# sourceMappingURL=space.js.map
package/dist/space.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"names":["Space","WebexPlugin","extend","namespace","list","webex","request","method","api","resource","then","res","body","items","get","space","spaceId","id","identity","reject","Error","join","options","passType","pass","type","deviceUrl","internal","device","url","data","verificationInitiation","uri","leave","removeAllDevices","params","base64","toBase64Url","querystring","stringify","verifyOccupant","occupantId","getCurrentBindings","bindConversation","conversation","kmsResourceObjectUrl","kmsMessage","resourceUri","userIds","conversationUrl","_bindConversation","resolve","encodedDeviceUrl","encode","bindingCleanupAfterCall","unbindConversation","parameters","authId","encryption","kms","prepareRequest","req","wrapped","deleteBinding","bindingId"],"sources":["space.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\nimport querystring from 'querystring';\n\nimport {WebexPlugin} from '@webex/webex-core';\nimport {base64} from '@webex/common';\n\n/**\n * @class\n * @extends {Lyra}\n * @memberof Lyra\n */\nconst Space = WebexPlugin.extend({\n namespace: 'Lyra',\n\n /**\n * Lists lyra spaces associated with user\n *\n * @returns {Promise<Array>} spaces\n */\n list() {\n return this.webex\n .request({\n method: 'GET',\n api: 'lyra',\n resource: '/spaces',\n })\n .then((res) => res.body.items);\n },\n\n /**\n * Retrieves a lyra space info\n * @param {Types~LyraSpace} space\n * @param {string} space.id\n * @param {string} space.identity.id\n * @returns {Promise<LyraSpace>} response body\n */\n get(space = {}) {\n const spaceId = space.id || (space.identity && space.identity.id);\n\n if (!spaceId) {\n return Promise.reject(new Error('space.id is required'));\n }\n\n return this.webex\n .request({\n method: 'GET',\n api: 'lyra',\n resource: `/spaces/${spaceId}`,\n })\n .then((res) => res.body);\n },\n\n /**\n * Joins a lyra space, update every 10 minutes to keep alive for MANUAL\n * @param {Types~LyraSpace} space\n * @param {string} space.url\n * @param {object} options\n * @param {string} options.passType\n * @param {string} options.data additional data such as proof for ultrasound\n * @param {string} options.uri use a custom uri\n * @returns {Promise}\n */\n join(space, options) {\n options = {\n passType: 'MANUAL',\n ...options,\n };\n\n const body = {\n pass: {\n type: options.passType,\n },\n deviceUrl: this.webex.internal.device.url,\n };\n\n if (options.data) {\n body.pass.data = options.data;\n }\n\n if (options.verificationInitiation) {\n body.verificationInitiation = options.verificationInitiation;\n }\n\n // if options.uri is available use it, since that would have the\n // complete lyra service URL\n if (options.uri) {\n return this.webex.request({\n method: 'PUT',\n uri: options.uri,\n body,\n });\n }\n\n return this.webex.request({\n method: 'PUT',\n api: 'lyra',\n resource: `${space.url}/occupants/@me`,\n body,\n });\n },\n\n /**\n * Leaves a lyra space\n * @param {Types~LyraSpace} space\n * @param {string} space.url\n * @param {object} options\n * @param {boolean} options.removeAllDevices remove all devices of current user also\n * @returns {Promise}\n */\n leave(space, options = {}) {\n // all devices are removed by default (when deviceUrl is not supplied)\n let uri = `${space.url}/occupants/@me`;\n\n if (!options.removeAllDevices) {\n const params = {\n deviceUrl: base64.toBase64Url(this.webex.internal.device.url),\n };\n\n uri += `?${querystring.stringify(params)}`;\n }\n\n return this.webex.request({\n method: 'DELETE',\n api: 'lyra',\n resource: uri,\n });\n },\n\n /**\n * Verifies a space occupant (to be used by the lyra device)\n * @param {Types~LyraSpace} space\n * @param {string} space.url\n * @param {string} occupantId id of user to verify\n * @returns {Promise}\n */\n verifyOccupant(space, occupantId) {\n const body = {\n pass: {\n type: 'VERIFICATION',\n },\n };\n\n return this.webex.request({\n method: 'PUT',\n uri: `${space.url}/occupants/${occupantId}`,\n body,\n });\n },\n\n /**\n * Gets the state of bindings in this Lyra space\n * @param {Types~LyraSpace} space\n * @param {string} space.url\n * @returns {Promise<LyraBindings>} bindings response body\n */\n getCurrentBindings(space) {\n return this.webex\n .request({\n method: 'GET',\n uri: `${space.url}/bindings`,\n })\n .then((res) => res.body);\n },\n\n /**\n * Binds a conversation to lyra space\n * @param {Types~LyraSpace} space\n * @param {string} space.url\n * @param {string} space.id\n * @param {string} space.identity.id\n * @param {Types~Conversation} conversation\n * @param {string} conversation.kmsResourceObjectUrl\n * @param {string} conversation.url\n * @param {object} options\n * @param {boolean} options.uri complete lyra service URL\n * @returns {Promise<LyraBindings>} bindings response body\n */\n bindConversation(space = {}, conversation = {}, options = {}) {\n const spaceId = space.id || (space.identity && space.identity.id);\n\n if (!space.url) {\n return Promise.reject(new Error('space.url is required'));\n }\n\n if (!spaceId) {\n return Promise.reject(new Error('space.id is required'));\n }\n\n if (!conversation.kmsResourceObjectUrl) {\n return Promise.reject(new Error('conversation.kmsResourceObjectUrl is required'));\n }\n\n if (!conversation.url) {\n return Promise.reject(new Error('conversation.url is required'));\n }\n\n const body = {\n kmsMessage: {\n method: 'create',\n uri: '/authorizations',\n resourceUri: `${conversation.kmsResourceObjectUrl}`,\n userIds: [spaceId],\n },\n conversationUrl: conversation.url,\n };\n\n const request = {\n method: 'POST',\n body,\n };\n\n // if options.uri is available use it, since that would have the\n // complete lyra service URL\n if (options.uri) {\n request.uri = options.uri;\n } else {\n request.api = 'lyra';\n request.resource = `${space.url}/bindings`;\n }\n\n return this._bindConversation(spaceId)\n .then(() => this.webex.request(request))\n .then((res) => res.body);\n },\n\n /**\n * Binds a conversation to lyra space by posting capabilities to Lyra.\n *\n * Lyra no longer automatically enables binding for a space containing a device with type \"SPARK_BOARD\".\n * Webexboard now is running the CE code stack which supports posting of capabilities to Lyra.\n * @param {String} spaceId space ID\n * @returns {Promise<LyraBindings>} bindings response body\n */\n _bindConversation(spaceId) {\n // Skip until we can bind a conversation to lyra space by posting capabilities to Lyra.\n /* eslint no-unreachable: 1 */\n return Promise.resolve();\n\n // PUT /lyra/api/v1/spaces/{spaceId}/devices/{encodedDeviceUrl}/capabilities\n const encodedDeviceUrl = base64.encode(this.webex.internal.device.url);\n const resource = `spaces/${spaceId}/devices/${encodedDeviceUrl}/capabilities`;\n\n return this.webex.request({\n method: 'PUT',\n api: 'lyra',\n resource,\n body: {\n bindingCleanupAfterCall: true,\n },\n });\n },\n\n /**\n * Removes binding between a conversation and a lyra space using conversation\n * url\n * @param {Types~LyraSpace} space\n * @param {string} space.url\n * @param {string} space.id\n * @param {string} space.identity.id\n * @param {Types~Conversation} conversation\n * @param {string} conversation.kmsResourceObjectUrl\n * @param {string} conversation.url\n * @param {object} options\n * @param {boolean} options.uri complete lyra service URL\n * @returns {Promise<LyraBindings>} bindings response body\n */\n unbindConversation(space = {}, conversation = {}, options = {}) {\n const spaceId = space.id || (space.identity && space.identity.id);\n\n if (!space.url) {\n return Promise.reject(new Error('space.url is required'));\n }\n\n if (!spaceId) {\n return Promise.reject(new Error('space.id is required'));\n }\n\n if (!conversation.url) {\n return Promise.reject(new Error('conversation.url is required'));\n }\n\n if (!conversation.kmsResourceObjectUrl) {\n return Promise.reject(new Error('conversation.kmsResourceObjectUrl is required'));\n }\n\n const parameters = {\n kmsMessage: {\n method: 'delete',\n uri: `${conversation.kmsResourceObjectUrl}/authorizations?${querystring.stringify({\n authId: spaceId,\n })}`,\n },\n conversationUrl: base64.toBase64Url(conversation.url),\n };\n\n return this.webex.internal.encryption.kms.prepareRequest(parameters.kmsMessage).then((req) => {\n parameters.kmsMessage = req.wrapped;\n // if options.uri is available use it, since that would have the\n // complete lyra service URL\n if (options.uri) {\n return this.webex.request({\n method: 'DELETE',\n uri: `${options.uri}?${querystring.stringify(parameters)}`,\n });\n }\n\n return this.webex.request({\n method: 'DELETE',\n api: 'lyra',\n resource: `${space.url}/bindings?${querystring.stringify(parameters)}`,\n });\n });\n },\n\n /**\n * Delete a binding using binding id\n * @param {Types~LyraSpace} space\n * @param {string} space.url\n * @param {string} space.identity.id\n * @param {object} options\n * @param {string} options.kmsResourceObjectUrl\n * @param {string} options.bindingId\n * @returns {Promise<LyraBindings>} bindings response body\n */\n deleteBinding(space = {}, options = {}) {\n const spaceId = space.id || (space.identity && space.identity.id);\n\n if (!space.url) {\n return Promise.reject(new Error('space.url is required'));\n }\n\n if (!spaceId) {\n return Promise.reject(new Error('space.id is required'));\n }\n\n if (!options.kmsResourceObjectUrl) {\n return Promise.reject(new Error('options.kmsResourceObjectUrl is required'));\n }\n\n if (!options.bindingId) {\n return Promise.reject(new Error('options.bindingId is required'));\n }\n\n const parameters = {\n kmsMessage: {\n method: 'delete',\n uri: `${options.kmsResourceObjectUrl}/authorizations?${querystring.stringify({\n authId: spaceId,\n })}`,\n },\n };\n\n return this.webex.internal.encryption.kms.prepareRequest(parameters.kmsMessage).then((req) => {\n parameters.kmsMessage = req.wrapped;\n\n return this.webex.request({\n method: 'DELETE',\n uri: `${space.url}/bindings/${options.bindingId}?${querystring.stringify(parameters)}`,\n });\n });\n },\n});\n\nexport default Space;\n"],"mappings":";;;;;;;;;;;;;;;AAIA;AAEA;AACA;AAAqC;AAAA;AAErC;AACA;AACA;AACA;AACA;AACA,IAAMA,KAAK,GAAGC,sBAAW,CAACC,MAAM,CAAC;EAC/BC,SAAS,EAAE,MAAM;EAEjB;AACF;AACA;AACA;AACA;EACEC,IAAI,kBAAG;IACL,OAAO,IAAI,CAACC,KAAK,CACdC,OAAO,CAAC;MACPC,MAAM,EAAE,KAAK;MACbC,GAAG,EAAE,MAAM;MACXC,QAAQ,EAAE;IACZ,CAAC,CAAC,CACDC,IAAI,CAAC,UAACC,GAAG;MAAA,OAAKA,GAAG,CAACC,IAAI,CAACC,KAAK;IAAA,EAAC;EAClC,CAAC;EAED;AACF;AACA;AACA;AACA;AACA;AACA;EACEC,GAAG,iBAAa;IAA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C,CAAC;MACJ;IACF,CAAC;IAED,OAAO,IAAI,CAACX,KAAK,CAACsB,QAAQ,CAAC+B,UAAU,CAACC,GAAG,CAACC,cAAc,CAACJ,UAAU,CAACV,UAAU,CAAC,CAACpC,IAAI,CAAC,UAACmD,GAAG,EAAK;MAC5FL,UAAU,CAACV,UAAU,GAAGe,GAAG,CAACC,OAAO;MAEnC,OAAO,MAAI,CAACzD,KAAK,CAACC,OAAO,CAAC;QACxBC,MAAM,EAAE,QAAQ;QAChByB,GAAG,YAAKjB,KAAK,CAACc,GAAG,uBAAaP,OAAO,CAAC0C,SAAS,cAAI1B,oBAAW,CAACC,SAAS,CAACiB,UAAU,CAAC;MACtF,CAAC,CAAC;IACJ,CAAC,CAAC;EACJ,CAAC;EAAA;AACH,CAAC,CAAC;AAAC,eAEYxD,KAAK;AAAA"}
1
+ {"version":3,"names":["_querystring","_interopRequireDefault","require","_webexCore","_common","ownKeys","e","r","t","_Object$keys","_Object$getOwnPropertySymbols","o","filter","_Object$getOwnPropertyDescriptor","enumerable","push","apply","_objectSpread","arguments","length","Object","forEach","_defineProperty2","default","_Object$getOwnPropertyDescriptors","_Object$defineProperties","_Object$defineProperty","Space","WebexPlugin","extend","namespace","list","webex","request","method","api","resource","then","res","body","items","get","space","undefined","spaceId","id","identity","_promise","reject","Error","concat","join","options","passType","pass","type","deviceUrl","internal","device","url","data","verificationInitiation","uri","leave","removeAllDevices","params","base64","toBase64Url","querystring","stringify","verifyOccupant","occupantId","getCurrentBindings","bindConversation","_this","conversation","kmsResourceObjectUrl","kmsMessage","resourceUri","userIds","conversationUrl","_bindConversation","resolve","encodedDeviceUrl","encode","bindingCleanupAfterCall","unbindConversation","_this2","parameters","authId","encryption","kms","prepareRequest","req","wrapped","deleteBinding","_this3","bindingId","version","_default","exports"],"sources":["space.js"],"sourcesContent":["/*!\n * Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.\n */\n\nimport querystring from 'querystring';\n\nimport {WebexPlugin} from '@webex/webex-core';\nimport {base64} from '@webex/common';\n\n/**\n * @class\n * @extends {Lyra}\n * @memberof Lyra\n */\nconst Space = WebexPlugin.extend({\n namespace: 'Lyra',\n\n /**\n * Lists lyra spaces associated with user\n *\n * @returns {Promise<Array>} spaces\n */\n list() {\n return this.webex\n .request({\n method: 'GET',\n api: 'lyra',\n resource: '/spaces',\n })\n .then((res) => res.body.items);\n },\n\n /**\n * Retrieves a lyra space info\n * @param {Types~LyraSpace} space\n * @param {string} space.id\n * @param {string} space.identity.id\n * @returns {Promise<LyraSpace>} response body\n */\n get(space = {}) {\n const spaceId = space.id || (space.identity && space.identity.id);\n\n if (!spaceId) {\n return Promise.reject(new Error('space.id is required'));\n }\n\n return this.webex\n .request({\n method: 'GET',\n api: 'lyra',\n resource: `/spaces/${spaceId}`,\n })\n .then((res) => res.body);\n },\n\n /**\n * Joins a lyra space, update every 10 minutes to keep alive for MANUAL\n * @param {Types~LyraSpace} space\n * @param {string} space.url\n * @param {object} options\n * @param {string} options.passType\n * @param {string} options.data additional data such as proof for ultrasound\n * @param {string} options.uri use a custom uri\n * @returns {Promise}\n */\n join(space, options) {\n options = {\n passType: 'MANUAL',\n ...options,\n };\n\n const body = {\n pass: {\n type: options.passType,\n },\n deviceUrl: this.webex.internal.device.url,\n };\n\n if (options.data) {\n body.pass.data = options.data;\n }\n\n if (options.verificationInitiation) {\n body.verificationInitiation = options.verificationInitiation;\n }\n\n // if options.uri is available use it, since that would have the\n // complete lyra service URL\n if (options.uri) {\n return this.webex.request({\n method: 'PUT',\n uri: options.uri,\n body,\n });\n }\n\n return this.webex.request({\n method: 'PUT',\n api: 'lyra',\n resource: `${space.url}/occupants/@me`,\n body,\n });\n },\n\n /**\n * Leaves a lyra space\n * @param {Types~LyraSpace} space\n * @param {string} space.url\n * @param {object} options\n * @param {boolean} options.removeAllDevices remove all devices of current user also\n * @returns {Promise}\n */\n leave(space, options = {}) {\n // all devices are removed by default (when deviceUrl is not supplied)\n let uri = `${space.url}/occupants/@me`;\n\n if (!options.removeAllDevices) {\n const params = {\n deviceUrl: base64.toBase64Url(this.webex.internal.device.url),\n };\n\n uri += `?${querystring.stringify(params)}`;\n }\n\n return this.webex.request({\n method: 'DELETE',\n api: 'lyra',\n resource: uri,\n });\n },\n\n /**\n * Verifies a space occupant (to be used by the lyra device)\n * @param {Types~LyraSpace} space\n * @param {string} space.url\n * @param {string} occupantId id of user to verify\n * @returns {Promise}\n */\n verifyOccupant(space, occupantId) {\n const body = {\n pass: {\n type: 'VERIFICATION',\n },\n };\n\n return this.webex.request({\n method: 'PUT',\n uri: `${space.url}/occupants/${occupantId}`,\n body,\n });\n },\n\n /**\n * Gets the state of bindings in this Lyra space\n * @param {Types~LyraSpace} space\n * @param {string} space.url\n * @returns {Promise<LyraBindings>} bindings response body\n */\n getCurrentBindings(space) {\n return this.webex\n .request({\n method: 'GET',\n uri: `${space.url}/bindings`,\n })\n .then((res) => res.body);\n },\n\n /**\n * Binds a conversation to lyra space\n * @param {Types~LyraSpace} space\n * @param {string} space.url\n * @param {string} space.id\n * @param {string} space.identity.id\n * @param {Types~Conversation} conversation\n * @param {string} conversation.kmsResourceObjectUrl\n * @param {string} conversation.url\n * @param {object} options\n * @param {boolean} options.uri complete lyra service URL\n * @returns {Promise<LyraBindings>} bindings response body\n */\n bindConversation(space = {}, conversation = {}, options = {}) {\n const spaceId = space.id || (space.identity && space.identity.id);\n\n if (!space.url) {\n return Promise.reject(new Error('space.url is required'));\n }\n\n if (!spaceId) {\n return Promise.reject(new Error('space.id is required'));\n }\n\n if (!conversation.kmsResourceObjectUrl) {\n return Promise.reject(new Error('conversation.kmsResourceObjectUrl is required'));\n }\n\n if (!conversation.url) {\n return Promise.reject(new Error('conversation.url is required'));\n }\n\n const body = {\n kmsMessage: {\n method: 'create',\n uri: '/authorizations',\n resourceUri: `${conversation.kmsResourceObjectUrl}`,\n userIds: [spaceId],\n },\n conversationUrl: conversation.url,\n };\n\n const request = {\n method: 'POST',\n body,\n };\n\n // if options.uri is available use it, since that would have the\n // complete lyra service URL\n if (options.uri) {\n request.uri = options.uri;\n } else {\n request.api = 'lyra';\n request.resource = `${space.url}/bindings`;\n }\n\n return this._bindConversation(spaceId)\n .then(() => this.webex.request(request))\n .then((res) => res.body);\n },\n\n /**\n * Binds a conversation to lyra space by posting capabilities to Lyra.\n *\n * Lyra no longer automatically enables binding for a space containing a device with type \"SPARK_BOARD\".\n * Webexboard now is running the CE code stack which supports posting of capabilities to Lyra.\n * @param {String} spaceId space ID\n * @returns {Promise<LyraBindings>} bindings response body\n */\n _bindConversation(spaceId) {\n // Skip until we can bind a conversation to lyra space by posting capabilities to Lyra.\n /* eslint no-unreachable: 1 */\n return Promise.resolve();\n\n // PUT /lyra/api/v1/spaces/{spaceId}/devices/{encodedDeviceUrl}/capabilities\n const encodedDeviceUrl = base64.encode(this.webex.internal.device.url);\n const resource = `spaces/${spaceId}/devices/${encodedDeviceUrl}/capabilities`;\n\n return this.webex.request({\n method: 'PUT',\n api: 'lyra',\n resource,\n body: {\n bindingCleanupAfterCall: true,\n },\n });\n },\n\n /**\n * Removes binding between a conversation and a lyra space using conversation\n * url\n * @param {Types~LyraSpace} space\n * @param {string} space.url\n * @param {string} space.id\n * @param {string} space.identity.id\n * @param {Types~Conversation} conversation\n * @param {string} conversation.kmsResourceObjectUrl\n * @param {string} conversation.url\n * @param {object} options\n * @param {boolean} options.uri complete lyra service URL\n * @returns {Promise<LyraBindings>} bindings response body\n */\n unbindConversation(space = {}, conversation = {}, options = {}) {\n const spaceId = space.id || (space.identity && space.identity.id);\n\n if (!space.url) {\n return Promise.reject(new Error('space.url is required'));\n }\n\n if (!spaceId) {\n return Promise.reject(new Error('space.id is required'));\n }\n\n if (!conversation.url) {\n return Promise.reject(new Error('conversation.url is required'));\n }\n\n if (!conversation.kmsResourceObjectUrl) {\n return Promise.reject(new Error('conversation.kmsResourceObjectUrl is required'));\n }\n\n const parameters = {\n kmsMessage: {\n method: 'delete',\n uri: `${conversation.kmsResourceObjectUrl}/authorizations?${querystring.stringify({\n authId: spaceId,\n })}`,\n },\n conversationUrl: base64.toBase64Url(conversation.url),\n };\n\n return this.webex.internal.encryption.kms.prepareRequest(parameters.kmsMessage).then((req) => {\n parameters.kmsMessage = req.wrapped;\n // if options.uri is available use it, since that would have the\n // complete lyra service URL\n if (options.uri) {\n return this.webex.request({\n method: 'DELETE',\n uri: `${options.uri}?${querystring.stringify(parameters)}`,\n });\n }\n\n return this.webex.request({\n method: 'DELETE',\n api: 'lyra',\n resource: `${space.url}/bindings?${querystring.stringify(parameters)}`,\n });\n });\n },\n\n /**\n * Delete a binding using binding id\n * @param {Types~LyraSpace} space\n * @param {string} space.url\n * @param {string} space.identity.id\n * @param {object} options\n * @param {string} options.kmsResourceObjectUrl\n * @param {string} options.bindingId\n * @returns {Promise<LyraBindings>} bindings response body\n */\n deleteBinding(space = {}, options = {}) {\n const spaceId = space.id || (space.identity && space.identity.id);\n\n if (!space.url) {\n return Promise.reject(new Error('space.url is required'));\n }\n\n if (!spaceId) {\n return Promise.reject(new Error('space.id is required'));\n }\n\n if (!options.kmsResourceObjectUrl) {\n return Promise.reject(new Error('options.kmsResourceObjectUrl is required'));\n }\n\n if (!options.bindingId) {\n return Promise.reject(new Error('options.bindingId is required'));\n }\n\n const parameters = {\n kmsMessage: {\n method: 'delete',\n uri: `${options.kmsResourceObjectUrl}/authorizations?${querystring.stringify({\n authId: spaceId,\n })}`,\n },\n };\n\n return this.webex.internal.encryption.kms.prepareRequest(parameters.kmsMessage).then((req) => {\n parameters.kmsMessage = req.wrapped;\n\n return this.webex.request({\n method: 'DELETE',\n uri: `${space.url}/bindings/${options.bindingId}?${querystring.stringify(parameters)}`,\n });\n });\n },\n});\n\nexport default Space;\n"],"mappings":";;;;;;;;;;;;;;;AAIA,IAAAA,YAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,UAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AAAqC,SAAAG,QAAAC,CAAA,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AE;MACtB,OAAOlD,QAAA,CAAAxB,OAAA,CAAQyB,MAAM,CAAC,IAAIC,KAAK,CAAC,+BAA+B,CAAC,CAAC;IACnE;IAEA,IAAMuC,UAAU,GAAG;MACjBX,UAAU,EAAE;QACV3C,MAAM,EAAE,QAAQ;QAChB4B,GAAG,KAAAZ,MAAA,CAAKE,OAAO,CAACwB,oBAAoB,sBAAA1B,MAAA,CAAmBkB,oBAAW,CAACC,SAAS,CAAC;UAC3EoB,MAAM,EAAE7C;QACV,CAAC,CAAC;MACJ;IACF,CAAC;IAED,OAAO,IAAI,CAACZ,KAAK,CAACyB,QAAQ,CAACiC,UAAU,CAACC,GAAG,CAACC,cAAc,CAACJ,UAAU,CAACX,UAAU,CAAC,CAACxC,IAAI,CAAC,UAACwD,GAAG,EAAK;MAC5FL,UAAU,CAACX,UAAU,GAAGgB,GAAG,CAACC,OAAO;MAEnC,OAAOE,MAAI,CAAChE,KAAK,CAACC,OAAO,CAAC;QACxBC,MAAM,EAAE,QAAQ;QAChB4B,GAAG,KAAAZ,MAAA,CAAKR,KAAK,CAACiB,GAAG,gBAAAT,MAAA,CAAaE,OAAO,CAAC6C,SAAS,OAAA/C,MAAA,CAAIkB,oBAAW,CAACC,SAAS,CAACmB,UAAU,CAAC;MACtF,CAAC,CAAC;IACJ,CAAC,CAAC;EACJ,CAAC;EAAAU,OAAA;AACH,CAAC,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAA7E,OAAA,GAEYI,KAAK"}
package/jest.config.js ADDED
@@ -0,0 +1,3 @@
1
+ const config = require('@webex/jest-config-legacy');
2
+
3
+ module.exports = config;
package/package.json CHANGED
@@ -1,6 +1,5 @@
1
1
  {
2
2
  "name": "@webex/internal-plugin-lyra",
3
- "version": "3.0.0-bnr.4",
4
3
  "description": "",
5
4
  "license": "MIT",
6
5
  "author": "Tran Tu <tratu@cisco.com>",
@@ -21,23 +20,42 @@
21
20
  ]
22
21
  },
23
22
  "devDependencies": {
23
+ "@babel/core": "^7.17.10",
24
24
  "@ciscospark/test-users-legacy": "^1.2.0",
25
- "@webex/test-helper-chai": "workspace:^",
26
- "@webex/test-helper-mock-webex": "workspace:^",
27
- "@webex/test-helper-retry": "workspace:^",
28
- "@webex/test-helper-test-users": "workspace:^",
25
+ "@types/randomstring": "^1",
26
+ "@webex/babel-config-legacy": "0.0.0",
27
+ "@webex/eslint-config-legacy": "0.0.0",
28
+ "@webex/jest-config-legacy": "0.0.0",
29
+ "@webex/legacy-tools": "0.0.0",
30
+ "@webex/test-helper-chai": "3.0.0",
31
+ "@webex/test-helper-mocha": "3.0.0",
32
+ "@webex/test-helper-mock-webex": "3.0.0",
33
+ "@webex/test-helper-retry": "3.0.0",
34
+ "@webex/test-helper-test-users": "3.0.0",
35
+ "eslint": "^8.24.0",
36
+ "prettier": "^2.7.1",
37
+ "randomstring": "^1.3.0",
29
38
  "sinon": "^9.2.4"
30
39
  },
31
40
  "dependencies": {
32
- "@webex/common": "workspace:^",
33
- "@webex/internal-plugin-conversation": "workspace:^",
34
- "@webex/internal-plugin-encryption": "workspace:^",
35
- "@webex/internal-plugin-feature": "workspace:^",
36
- "@webex/internal-plugin-locus": "workspace:^",
37
- "@webex/internal-plugin-lyra": "workspace:^",
38
- "@webex/internal-plugin-mercury": "workspace:^",
39
- "@webex/webex-core": "workspace:^",
41
+ "@webex/common": "3.0.0",
42
+ "@webex/internal-plugin-conversation": "3.0.0",
43
+ "@webex/internal-plugin-encryption": "3.0.0",
44
+ "@webex/internal-plugin-feature": "3.0.0",
45
+ "@webex/internal-plugin-locus": "3.0.0",
46
+ "@webex/internal-plugin-mercury": "3.0.0",
47
+ "@webex/webex-core": "3.0.0",
40
48
  "bowser": "^2.11.0",
41
49
  "uuid": "^3.3.2"
42
- }
43
- }
50
+ },
51
+ "scripts": {
52
+ "build": "yarn build:src",
53
+ "build:src": "webex-legacy-tools build -dest \"./dist\" -src \"./src\" -js -ts -maps",
54
+ "deploy:npm": "yarn npm publish",
55
+ "test": "yarn test:style && yarn test:unit && yarn test:integration && yarn test:browser",
56
+ "test:browser": "webex-legacy-tools test --integration --runner karma",
57
+ "test:style": "eslint ./src/**/*.*",
58
+ "test:unit": "webex-legacy-tools test --unit --runner jest"
59
+ },
60
+ "version": "3.0.0"
61
+ }
package/process ADDED
@@ -0,0 +1 @@
1
+ module.exports = {browser: true};
@@ -9,7 +9,7 @@ import retry from '@webex/test-helper-retry';
9
9
  import testUsers from '@webex/test-helper-test-users';
10
10
  // FIXME
11
11
  // eslint-disable-next-line import/no-unresolved
12
- import {generateRandomString} from '@ciscospark/test-users-legacy';
12
+ import {generate} from 'randomstring';
13
13
  import WebexCore from '@webex/webex-core';
14
14
  import uuid from 'uuid';
15
15
 
@@ -30,7 +30,7 @@ describe('plugin-lyra', () => {
30
30
  config: {
31
31
  machineType: 'LYRA_SPACE',
32
32
  type: 'MACHINE',
33
- password: `${generateRandomString(32)}d_wA*`,
33
+ password: `${generate(32)}d_wA*`,
34
34
  },
35
35
  })
36
36
  )
@@ -64,13 +64,13 @@ describe('plugin-lyra', () => {
64
64
  spock = participants[0];
65
65
 
66
66
  return Promise.all(
67
- Array.map(participants, (participant) => {
67
+ participants.map((participant) => {
68
68
  participant.webex = new WebexCore({
69
69
  credentials: {
70
70
  authorization: participant.token,
71
71
  },
72
72
  });
73
-
73
+
74
74
  return participant.webex.internal.mercury.connect();
75
75
  })
76
76
  );
@@ -4,12 +4,12 @@
4
4
 
5
5
  import bowser from 'bowser';
6
6
  import '@webex/internal-plugin-lyra';
7
+ import {generate} from 'randomstring';
7
8
  import {assert} from '@webex/test-helper-chai';
8
9
  import retry from '@webex/test-helper-retry';
9
10
  import testUsers from '@webex/test-helper-test-users';
10
11
  // FIXME
11
12
  // eslint-disable-next-line import/no-unresolved
12
- import {generateRandomString} from '@ciscospark/test-users-legacy';
13
13
  import WebexCore from '@webex/webex-core';
14
14
  import '@webex/internal-plugin-locus';
15
15
 
@@ -31,7 +31,7 @@ describe('plugin-lyra', function () {
31
31
  config: {
32
32
  machineType: 'LYRA_SPACE',
33
33
  type: 'MACHINE',
34
- password: `${generateRandomString(32)}d_wA*`,
34
+ password: `${generate(32)}d_wA*`,
35
35
  },
36
36
  })
37
37
  )
@@ -65,13 +65,13 @@ describe('plugin-lyra', function () {
65
65
  spock = participants[0];
66
66
 
67
67
  return Promise.all(
68
- Array.map(participants, (participant) => {
68
+ participants.map((participant) => {
69
69
  participant.webex = new WebexCore({
70
70
  credentials: {
71
71
  authorization: participant.token,
72
72
  },
73
73
  });
74
-
74
+
75
75
  return participant.webex.internal.mercury.connect();
76
76
  })
77
77
  );
@@ -19,7 +19,7 @@ describe('plugin-lyra', () => {
19
19
 
20
20
  let webex;
21
21
 
22
- before(() => {
22
+ beforeAll(() => {
23
23
  webex = new MockWebex({
24
24
  children: {
25
25
  lyra: Lyra,
@@ -10,7 +10,7 @@ import Lyra, {config as lyraConfig} from '@webex/internal-plugin-lyra';
10
10
  describe('plugin-lyra', () => {
11
11
  let webex;
12
12
 
13
- before(() => {
13
+ beforeAll(() => {
14
14
  webex = new MockWebex({
15
15
  children: {
16
16
  lyra: Lyra,
@@ -23,7 +23,7 @@ describe('plugin-lyra', () => {
23
23
 
24
24
  let webex;
25
25
 
26
- before(() => {
26
+ beforeAll(() => {
27
27
  webex = new MockWebex({
28
28
  children: {
29
29
  lyra: Lyra,
@@ -1,8 +0,0 @@
1
- export declare namespace config {
2
- const lyra: {};
3
- }
4
-
5
- declare const Lyra: any;
6
- export default Lyra;
7
-
8
- export { }
@@ -1,11 +0,0 @@
1
- // This file is read by tools that parse documentation comments conforming to the TSDoc standard.
2
- // It should be published with your NPM package. It should not be tracked by Git.
3
- {
4
- "tsdocVersion": "0.12",
5
- "toolPackages": [
6
- {
7
- "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.34.4"
9
- }
10
- ]
11
- }
@@ -1,4 +0,0 @@
1
- declare namespace _default {
2
- const lyra: {};
3
- }
4
- export default _default;
@@ -1,7 +0,0 @@
1
- export default Device;
2
- /**
3
- * @class
4
- * @extends {Lyra}
5
- * @memberof Lyra
6
- */
7
- declare const Device: any;
@@ -1,3 +0,0 @@
1
- export { default } from "./lyra";
2
- export { config };
3
- import config from "./config";
@@ -1,2 +0,0 @@
1
- export default Lyra;
2
- declare const Lyra: any;
@@ -1,7 +0,0 @@
1
- export default Space;
2
- /**
3
- * @class
4
- * @extends {Lyra}
5
- * @memberof Lyra
6
- */
7
- declare const Space: any;