@webex/internal-plugin-lyra 2.59.3-next.1 → 2.59.4
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 +6 -6
- package/README.md +42 -42
- package/babel.config.js +3 -3
- package/dist/config.js +2 -2
- package/dist/config.js.map +1 -1
- package/dist/device.js +50 -50
- package/dist/device.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/lyra.js +23 -23
- package/dist/lyra.js.map +1 -1
- package/dist/space.js +83 -83
- package/dist/space.js.map +1 -1
- package/jest.config.js +3 -3
- package/package.json +19 -20
- package/process +1 -1
- package/src/config.js +7 -7
- package/src/device.js +127 -127
- package/src/index.js +20 -20
- package/src/lyra.js +53 -53
- package/src/space.js +367 -367
- package/test/integration/spec/device.js +203 -203
- package/test/integration/spec/space.js +232 -232
- package/test/unit/spec/device.js +65 -65
- package/test/unit/spec/lyra.js +45 -45
- package/test/unit/spec/space.js +189 -189
package/.eslintrc.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const config = {
|
|
2
|
-
root: true,
|
|
3
|
-
extends: ['@webex/eslint-config-legacy'],
|
|
4
|
-
};
|
|
5
|
-
|
|
6
|
-
module.exports = config;
|
|
1
|
+
const config = {
|
|
2
|
+
root: true,
|
|
3
|
+
extends: ['@webex/eslint-config-legacy'],
|
|
4
|
+
};
|
|
5
|
+
|
|
6
|
+
module.exports = config;
|
package/README.md
CHANGED
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
# @webex/internal-plugin-lyra
|
|
2
|
-
|
|
3
|
-
[](https://github.com/RichardLitt/standard-readme)
|
|
4
|
-
|
|
5
|
-
> Plugin for the Lyra service
|
|
6
|
-
|
|
7
|
-
This is an internal Cisco Webex plugin. As such, it does not strictly adhere to semantic versioning. Use at your own risk. If you're not working on one of our first party clients, please look at our [developer api](https://developer.webex.com/) and stick to our public plugins.
|
|
8
|
-
|
|
9
|
-
- [Install](#install)
|
|
10
|
-
- [Usage](#usage)
|
|
11
|
-
- [Contribute](#contribute)
|
|
12
|
-
- [Maintainers](#maintainers)
|
|
13
|
-
- [License](#license)
|
|
14
|
-
|
|
15
|
-
## Install
|
|
16
|
-
|
|
17
|
-
```bash
|
|
18
|
-
npm install --save @webex/internal-plugin-lyra
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
## Usage
|
|
22
|
-
|
|
23
|
-
```js
|
|
24
|
-
import '@webex/internal-plugin-lyra';
|
|
25
|
-
|
|
26
|
-
import WebexCore from '@webex/webex-core';
|
|
27
|
-
|
|
28
|
-
const webex = new WebexCore();
|
|
29
|
-
webex.internal.lyra.WHATEVER;
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
## Maintainers
|
|
33
|
-
|
|
34
|
-
This package is maintained by [Cisco Webex for Developers](https://developer.webex.com/).
|
|
35
|
-
|
|
36
|
-
## Contribute
|
|
37
|
-
|
|
38
|
-
Pull requests welcome. Please see [CONTRIBUTING.md](https://github.com/webex/webex-js-sdk/blob/master/CONTRIBUTING.md) for more details.
|
|
39
|
-
|
|
40
|
-
## License
|
|
41
|
-
|
|
42
|
-
© 2016-2020 Cisco and/or its affiliates. All Rights Reserved.
|
|
1
|
+
# @webex/internal-plugin-lyra
|
|
2
|
+
|
|
3
|
+
[](https://github.com/RichardLitt/standard-readme)
|
|
4
|
+
|
|
5
|
+
> Plugin for the Lyra service
|
|
6
|
+
|
|
7
|
+
This is an internal Cisco Webex plugin. As such, it does not strictly adhere to semantic versioning. Use at your own risk. If you're not working on one of our first party clients, please look at our [developer api](https://developer.webex.com/) and stick to our public plugins.
|
|
8
|
+
|
|
9
|
+
- [Install](#install)
|
|
10
|
+
- [Usage](#usage)
|
|
11
|
+
- [Contribute](#contribute)
|
|
12
|
+
- [Maintainers](#maintainers)
|
|
13
|
+
- [License](#license)
|
|
14
|
+
|
|
15
|
+
## Install
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
npm install --save @webex/internal-plugin-lyra
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Usage
|
|
22
|
+
|
|
23
|
+
```js
|
|
24
|
+
import '@webex/internal-plugin-lyra';
|
|
25
|
+
|
|
26
|
+
import WebexCore from '@webex/webex-core';
|
|
27
|
+
|
|
28
|
+
const webex = new WebexCore();
|
|
29
|
+
webex.internal.lyra.WHATEVER;
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
## Maintainers
|
|
33
|
+
|
|
34
|
+
This package is maintained by [Cisco Webex for Developers](https://developer.webex.com/).
|
|
35
|
+
|
|
36
|
+
## Contribute
|
|
37
|
+
|
|
38
|
+
Pull requests welcome. Please see [CONTRIBUTING.md](https://github.com/webex/webex-js-sdk/blob/master/CONTRIBUTING.md) for more details.
|
|
39
|
+
|
|
40
|
+
## License
|
|
41
|
+
|
|
42
|
+
© 2016-2020 Cisco and/or its affiliates. All Rights Reserved.
|
package/babel.config.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
const babelConfigLegacy = require('@webex/babel-config-legacy');
|
|
2
|
-
|
|
3
|
-
module.exports = babelConfigLegacy;
|
|
1
|
+
const babelConfigLegacy = require('@webex/babel-config-legacy');
|
|
2
|
+
|
|
3
|
+
module.exports = babelConfigLegacy;
|
package/dist/config.js
CHANGED
|
@@ -5,8 +5,8 @@ _Object$defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
|
-
/*!
|
|
9
|
-
* Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
|
|
8
|
+
/*!
|
|
9
|
+
* Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
|
|
10
10
|
*/
|
|
11
11
|
var _default = {
|
|
12
12
|
lyra: {}
|
package/dist/config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_default","lyra","exports","default"],"sources":["config.js"],"sourcesContent":["/*!\
|
|
1
|
+
{"version":3,"names":["_default","lyra","exports","default"],"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,GAIe;EACbC,IAAI,EAAE,CAAC;AACT,CAAC;AAAAC,OAAA,CAAAC,OAAA,GAAAH,QAAA"}
|
package/dist/device.js
CHANGED
|
@@ -8,22 +8,22 @@ _Object$defineProperty(exports, "__esModule", {
|
|
|
8
8
|
exports.default = void 0;
|
|
9
9
|
var _promise = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/promise"));
|
|
10
10
|
var _webexCore = require("@webex/webex-core");
|
|
11
|
-
/*!
|
|
12
|
-
* Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
|
|
11
|
+
/*!
|
|
12
|
+
* Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
|
-
/**
|
|
16
|
-
* @class
|
|
17
|
-
* @extends {Lyra}
|
|
18
|
-
* @memberof Lyra
|
|
15
|
+
/**
|
|
16
|
+
* @class
|
|
17
|
+
* @extends {Lyra}
|
|
18
|
+
* @memberof Lyra
|
|
19
19
|
*/
|
|
20
20
|
var Device = _webexCore.WebexPlugin.extend({
|
|
21
21
|
namespace: 'Lyra',
|
|
22
|
-
/**
|
|
23
|
-
* Gets the audio state of the device
|
|
24
|
-
* @param {Types~LyraSpace} space
|
|
25
|
-
* @param {string} space.url
|
|
26
|
-
* @returns {Promise<LyraAudioState>} {volume, microphones, url}
|
|
22
|
+
/**
|
|
23
|
+
* Gets the audio state of the device
|
|
24
|
+
* @param {Types~LyraSpace} space
|
|
25
|
+
* @param {string} space.url
|
|
26
|
+
* @returns {Promise<LyraAudioState>} {volume, microphones, url}
|
|
27
27
|
*/
|
|
28
28
|
getAudioState: function getAudioState(space) {
|
|
29
29
|
return this.webex.request({
|
|
@@ -33,18 +33,18 @@ var Device = _webexCore.WebexPlugin.extend({
|
|
|
33
33
|
return res.body;
|
|
34
34
|
});
|
|
35
35
|
},
|
|
36
|
-
/**
|
|
37
|
-
* Updates audio state for lyra device, should be called every 10 minutes or
|
|
38
|
-
* when mic or volume state is changed
|
|
39
|
-
* @param {Types~LyraSpace} space
|
|
40
|
-
* @param {string} space.url
|
|
41
|
-
* @param {Types~LyraAudioState} audioState
|
|
42
|
-
* @param {object} audioState.volume optional
|
|
43
|
-
* @param {boolean} audioState.volume.level
|
|
44
|
-
* @param {object} audioState.microphones optional
|
|
45
|
-
* @param {boolean} audioState.microphones.muted
|
|
46
|
-
* @param {string} audioState.deviceUrl
|
|
47
|
-
* @returns {Promise}
|
|
36
|
+
/**
|
|
37
|
+
* Updates audio state for lyra device, should be called every 10 minutes or
|
|
38
|
+
* when mic or volume state is changed
|
|
39
|
+
* @param {Types~LyraSpace} space
|
|
40
|
+
* @param {string} space.url
|
|
41
|
+
* @param {Types~LyraAudioState} audioState
|
|
42
|
+
* @param {object} audioState.volume optional
|
|
43
|
+
* @param {boolean} audioState.volume.level
|
|
44
|
+
* @param {object} audioState.microphones optional
|
|
45
|
+
* @param {boolean} audioState.microphones.muted
|
|
46
|
+
* @param {string} audioState.deviceUrl
|
|
47
|
+
* @returns {Promise}
|
|
48
48
|
*/
|
|
49
49
|
putAudioState: function putAudioState(space) {
|
|
50
50
|
var audioState = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
@@ -59,11 +59,11 @@ var Device = _webexCore.WebexPlugin.extend({
|
|
|
59
59
|
return res.body;
|
|
60
60
|
});
|
|
61
61
|
},
|
|
62
|
-
/**
|
|
63
|
-
* Mutes lyra device
|
|
64
|
-
* @param {Types~LyraSpace} space
|
|
65
|
-
* @param {string} space.url
|
|
66
|
-
* @returns {Promise}
|
|
62
|
+
/**
|
|
63
|
+
* Mutes lyra device
|
|
64
|
+
* @param {Types~LyraSpace} space
|
|
65
|
+
* @param {string} space.url
|
|
66
|
+
* @returns {Promise}
|
|
67
67
|
*/
|
|
68
68
|
mute: function mute(space) {
|
|
69
69
|
return this.webex.request({
|
|
@@ -71,11 +71,11 @@ var Device = _webexCore.WebexPlugin.extend({
|
|
|
71
71
|
uri: "".concat(space.url, "/audio/microphones/actions/mute/invoke")
|
|
72
72
|
});
|
|
73
73
|
},
|
|
74
|
-
/**
|
|
75
|
-
* Unmutes lyra device
|
|
76
|
-
* @param {Types~LyraSpace} space
|
|
77
|
-
* @param {string} space.url
|
|
78
|
-
* @returns {Promise}
|
|
74
|
+
/**
|
|
75
|
+
* Unmutes lyra device
|
|
76
|
+
* @param {Types~LyraSpace} space
|
|
77
|
+
* @param {string} space.url
|
|
78
|
+
* @returns {Promise}
|
|
79
79
|
*/
|
|
80
80
|
unmute: function unmute(space) {
|
|
81
81
|
return this.webex.request({
|
|
@@ -83,11 +83,11 @@ var Device = _webexCore.WebexPlugin.extend({
|
|
|
83
83
|
uri: "".concat(space.url, "/audio/microphones/actions/un-mute/invoke")
|
|
84
84
|
});
|
|
85
85
|
},
|
|
86
|
-
/**
|
|
87
|
-
* Increases lyra device's volume
|
|
88
|
-
* @param {Types~LyraSpace} space
|
|
89
|
-
* @param {string} space.url
|
|
90
|
-
* @returns {Promise}
|
|
86
|
+
/**
|
|
87
|
+
* Increases lyra device's volume
|
|
88
|
+
* @param {Types~LyraSpace} space
|
|
89
|
+
* @param {string} space.url
|
|
90
|
+
* @returns {Promise}
|
|
91
91
|
*/
|
|
92
92
|
increaseVolume: function increaseVolume(space) {
|
|
93
93
|
return this.webex.request({
|
|
@@ -95,11 +95,11 @@ var Device = _webexCore.WebexPlugin.extend({
|
|
|
95
95
|
uri: "".concat(space.url, "/audio/volume/actions/increase/invoke")
|
|
96
96
|
});
|
|
97
97
|
},
|
|
98
|
-
/**
|
|
99
|
-
* Decreases lyra device's volume
|
|
100
|
-
* @param {Types~LyraSpace} space
|
|
101
|
-
* @param {string} space.url
|
|
102
|
-
* @returns {Promise}
|
|
98
|
+
/**
|
|
99
|
+
* Decreases lyra device's volume
|
|
100
|
+
* @param {Types~LyraSpace} space
|
|
101
|
+
* @param {string} space.url
|
|
102
|
+
* @returns {Promise}
|
|
103
103
|
*/
|
|
104
104
|
decreaseVolume: function decreaseVolume(space) {
|
|
105
105
|
return this.webex.request({
|
|
@@ -107,12 +107,12 @@ var Device = _webexCore.WebexPlugin.extend({
|
|
|
107
107
|
uri: "".concat(space.url, "/audio/volume/actions/decrease/invoke")
|
|
108
108
|
});
|
|
109
109
|
},
|
|
110
|
-
/**
|
|
111
|
-
* Sets lyra device's volume but should use increase and decrease api instead
|
|
112
|
-
* @param {Types~LyraSpace} space
|
|
113
|
-
* @param {string} space.url
|
|
114
|
-
* @param {integer} level to be set
|
|
115
|
-
* @returns {Promise}
|
|
110
|
+
/**
|
|
111
|
+
* Sets lyra device's volume but should use increase and decrease api instead
|
|
112
|
+
* @param {Types~LyraSpace} space
|
|
113
|
+
* @param {string} space.url
|
|
114
|
+
* @param {integer} level to be set
|
|
115
|
+
* @returns {Promise}
|
|
116
116
|
*/
|
|
117
117
|
setVolume: function setVolume(space) {
|
|
118
118
|
var level = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
@@ -124,7 +124,7 @@ var Device = _webexCore.WebexPlugin.extend({
|
|
|
124
124
|
}
|
|
125
125
|
});
|
|
126
126
|
},
|
|
127
|
-
version: "2.59.
|
|
127
|
+
version: "2.59.4"
|
|
128
128
|
});
|
|
129
129
|
var _default = Device;
|
|
130
130
|
exports.default = _default;
|
package/dist/device.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
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":["/*!\
|
|
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":"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"}
|
package/dist/index.js
CHANGED
|
@@ -24,8 +24,8 @@ require("@webex/internal-plugin-feature");
|
|
|
24
24
|
var _webexCore = require("@webex/webex-core");
|
|
25
25
|
var _lyra = _interopRequireDefault(require("./lyra"));
|
|
26
26
|
var _config = _interopRequireDefault(require("./config"));
|
|
27
|
-
/*!
|
|
28
|
-
* Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
|
|
27
|
+
/*!
|
|
28
|
+
* Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
|
|
29
29
|
*/
|
|
30
30
|
|
|
31
31
|
(0, _webexCore.registerInternalPlugin)('lyra', _lyra.default, {
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["require","_webexCore","_lyra","_interopRequireDefault","_config","registerInternalPlugin","Lyra","config"],"sources":["index.js"],"sourcesContent":["/*!\
|
|
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
|
@@ -9,37 +9,37 @@ exports.default = void 0;
|
|
|
9
9
|
var _webexCore = require("@webex/webex-core");
|
|
10
10
|
var _space = _interopRequireDefault(require("./space"));
|
|
11
11
|
var _device = _interopRequireDefault(require("./device"));
|
|
12
|
-
/*!
|
|
13
|
-
* Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
|
|
12
|
+
/*!
|
|
13
|
+
* Copyright (c) 2015-2020 Cisco Systems, Inc. See LICENSE file.
|
|
14
14
|
*/
|
|
15
15
|
|
|
16
16
|
var Lyra = _webexCore.WebexPlugin.extend({
|
|
17
|
-
/**
|
|
18
|
-
* @typedef {Object} Endpoint
|
|
19
|
-
* @property {Object} advertiser
|
|
20
|
-
* @property {string} advertiser.id
|
|
21
|
-
* @property {string} advertiser.displayName
|
|
22
|
-
* @property {string} advertiser.orgId
|
|
23
|
-
* @property {Object} links
|
|
24
|
-
* @property {Object} links.addMeToSpace
|
|
25
|
-
* @property {string} links.addMeToSpace.href
|
|
26
|
-
* @property {string} links.addMeToSpace.method
|
|
27
|
-
* @property {Object} links.lyra_space
|
|
28
|
-
* @property {string} links.lyra_space.href
|
|
29
|
-
* @property {string} links.lyra_space.method
|
|
30
|
-
* @property {string} proof
|
|
31
|
-
* @property {Object} token
|
|
32
|
-
* @property {string} token.value
|
|
17
|
+
/**
|
|
18
|
+
* @typedef {Object} Endpoint
|
|
19
|
+
* @property {Object} advertiser
|
|
20
|
+
* @property {string} advertiser.id
|
|
21
|
+
* @property {string} advertiser.displayName
|
|
22
|
+
* @property {string} advertiser.orgId
|
|
23
|
+
* @property {Object} links
|
|
24
|
+
* @property {Object} links.addMeToSpace
|
|
25
|
+
* @property {string} links.addMeToSpace.href
|
|
26
|
+
* @property {string} links.addMeToSpace.method
|
|
27
|
+
* @property {Object} links.lyra_space
|
|
28
|
+
* @property {string} links.lyra_space.href
|
|
29
|
+
* @property {string} links.lyra_space.method
|
|
30
|
+
* @property {string} proof
|
|
31
|
+
* @property {Object} token
|
|
32
|
+
* @property {string} token.value
|
|
33
33
|
*/
|
|
34
34
|
namespace: 'Lyra',
|
|
35
35
|
children: {
|
|
36
36
|
space: _space.default,
|
|
37
37
|
device: _device.default
|
|
38
38
|
},
|
|
39
|
-
/**
|
|
40
|
-
* Get the endpoint information
|
|
41
|
-
* @param {string} token - ultrasound token decoded
|
|
42
|
-
* @returns {Promise<Endpoint>}
|
|
39
|
+
/**
|
|
40
|
+
* Get the endpoint information
|
|
41
|
+
* @param {string} token - ultrasound token decoded
|
|
42
|
+
* @returns {Promise<Endpoint>}
|
|
43
43
|
*/
|
|
44
44
|
getAdvertisedEndpoint: function getAdvertisedEndpoint(token) {
|
|
45
45
|
return this.webex.request({
|
|
@@ -53,7 +53,7 @@ var Lyra = _webexCore.WebexPlugin.extend({
|
|
|
53
53
|
return res.body;
|
|
54
54
|
});
|
|
55
55
|
},
|
|
56
|
-
version: "2.59.
|
|
56
|
+
version: "2.59.4"
|
|
57
57
|
});
|
|
58
58
|
var _default = Lyra;
|
|
59
59
|
exports.default = _default;
|
package/dist/lyra.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
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":["/*!\
|
|
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,GAEYrB,IAAI;AAAAsB,OAAA,CAAAC,OAAA,GAAAF,QAAA"}
|