@webex/internal-plugin-scheduler 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/LICENSE.md +1 -1
- package/README.md +44 -44
- package/babel.config.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/payloadTransformer/index.js.map +1 -1
- package/dist/payloadTransformer/predicates.js +28 -28
- package/dist/payloadTransformer/predicates.js.map +1 -1
- package/dist/payloadTransformer/transformers.js +21 -21
- package/dist/payloadTransformer/transformers.js.map +1 -1
- package/dist/scheduler/index.js.map +1 -1
- package/dist/scheduler/scheduler.config.js +5 -5
- package/dist/scheduler/scheduler.config.js.map +1 -1
- package/dist/scheduler/scheduler.constants.js.map +1 -1
- package/dist/scheduler/scheduler.js +42 -42
- package/dist/scheduler/scheduler.js.map +1 -1
- package/jest.config.js +3 -3
- package/package.json +19 -20
- package/process +1 -1
- package/src/index.js +16 -16
- package/src/payloadTransformer/index.js +9 -9
- package/src/payloadTransformer/predicates.js +68 -68
- package/src/payloadTransformer/transformers.js +65 -65
- package/src/scheduler/index.js +7 -7
- package/src/scheduler/scheduler.config.js +17 -17
- package/src/scheduler/scheduler.constants.js +8 -8
- package/src/scheduler/scheduler.js +156 -156
- package/test/integration/spec/payloadTransformer/predicates.js +44 -44
- package/test/integration/spec/payloadTransformer/transformers.js +44 -44
- package/test/integration/spec/scheduler/scheduler.js +44 -44
- package/test/unit/spec/scheduler/scheduler.js +57 -57
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/LICENSE.md
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
All contents are licensed under the Cisco EULA
|
|
1
|
+
All contents are licensed under the Cisco EULA
|
|
2
2
|
(https://www.cisco.com/c/en/us/products/end-user-license-agreement.html)
|
package/README.md
CHANGED
|
@@ -1,44 +1,44 @@
|
|
|
1
|
-
# @webex/internal-plugin-scheduler
|
|
2
|
-
|
|
3
|
-
[](https://github.com/RichardLitt/standard-readme)
|
|
4
|
-
|
|
5
|
-
> Plugin for scheduler management
|
|
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
|
-
- [Maintainers](#maintainers)
|
|
12
|
-
- [Contribute](#contribute)
|
|
13
|
-
- [License](#license)
|
|
14
|
-
|
|
15
|
-
## Install
|
|
16
|
-
|
|
17
|
-
```bash
|
|
18
|
-
npm install --save @webex/internal-plugin-scheduler
|
|
19
|
-
```
|
|
20
|
-
|
|
21
|
-
## Usage
|
|
22
|
-
|
|
23
|
-
```js
|
|
24
|
-
import '@webex/internal-plugin-scheduler';
|
|
25
|
-
|
|
26
|
-
import WebexCore from '@webex/webex-core';
|
|
27
|
-
|
|
28
|
-
const webex = new WebexCore();
|
|
29
|
-
|
|
30
|
-
// Namespace.
|
|
31
|
-
webex.internal.scheduler;
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
## Maintainers
|
|
35
|
-
|
|
36
|
-
This package is maintained by {...}.
|
|
37
|
-
|
|
38
|
-
## Contribute
|
|
39
|
-
|
|
40
|
-
Pull requests welcome. Please see [CONTRIBUTING.md](https://github.com/webex/webex-js-sdk/blob/master/CONTRIBUTING.md) for more details.
|
|
41
|
-
|
|
42
|
-
## License
|
|
43
|
-
|
|
44
|
-
© 2016-2020 Cisco and/or its affiliates. All Rights Reserved.
|
|
1
|
+
# @webex/internal-plugin-scheduler
|
|
2
|
+
|
|
3
|
+
[](https://github.com/RichardLitt/standard-readme)
|
|
4
|
+
|
|
5
|
+
> Plugin for scheduler management
|
|
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
|
+
- [Maintainers](#maintainers)
|
|
12
|
+
- [Contribute](#contribute)
|
|
13
|
+
- [License](#license)
|
|
14
|
+
|
|
15
|
+
## Install
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
npm install --save @webex/internal-plugin-scheduler
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Usage
|
|
22
|
+
|
|
23
|
+
```js
|
|
24
|
+
import '@webex/internal-plugin-scheduler';
|
|
25
|
+
|
|
26
|
+
import WebexCore from '@webex/webex-core';
|
|
27
|
+
|
|
28
|
+
const webex = new WebexCore();
|
|
29
|
+
|
|
30
|
+
// Namespace.
|
|
31
|
+
webex.internal.scheduler;
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## Maintainers
|
|
35
|
+
|
|
36
|
+
This package is maintained by {...}.
|
|
37
|
+
|
|
38
|
+
## Contribute
|
|
39
|
+
|
|
40
|
+
Pull requests welcome. Please see [CONTRIBUTING.md](https://github.com/webex/webex-js-sdk/blob/master/CONTRIBUTING.md) for more details.
|
|
41
|
+
|
|
42
|
+
## License
|
|
43
|
+
|
|
44
|
+
© 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/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["require","_webexCore","_scheduler","_interopRequireWildcard","_payloadTransformer","_interopRequireDefault","_getRequireWildcardCache","nodeInterop","_WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","_typeof","default","cache","has","get","newObj","hasPropertyDescriptor","_Object$defineProperty","_Object$getOwnPropertyDescriptor","key","Object","prototype","hasOwnProperty","call","desc","set","registerInternalPlugin","CONSTANTS","NAMESPACE","Scheduler","payloadTransformer","config","_default","exports"],"sources":["index.js"],"sourcesContent":["// Import all plugins used within this plugin here, as they are singletons\
|
|
1
|
+
{"version":3,"names":["require","_webexCore","_scheduler","_interopRequireWildcard","_payloadTransformer","_interopRequireDefault","_getRequireWildcardCache","nodeInterop","_WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","_typeof","default","cache","has","get","newObj","hasPropertyDescriptor","_Object$defineProperty","_Object$getOwnPropertyDescriptor","key","Object","prototype","hasOwnProperty","call","desc","set","registerInternalPlugin","CONSTANTS","NAMESPACE","Scheduler","payloadTransformer","config","_default","exports"],"sources":["index.js"],"sourcesContent":["// Import all plugins used within this plugin here, as they are singletons\n// and must be mounted prior to any other mounting logic within this plugin.\nimport '@webex/internal-plugin-encryption';\n\nimport {registerInternalPlugin} from '@webex/webex-core';\n\nimport Scheduler, {config, CONSTANTS} from './scheduler';\nimport payloadTransformer from './payloadTransformer';\n\n// Mounts the plugin to `webex.internal.{NAMESPACE}` and begins initialization.\nregisterInternalPlugin(CONSTANTS.NAMESPACE, Scheduler, {\n payloadTransformer,\n config,\n});\n\nexport default Scheduler;\n"],"mappings":";;;;;;;;;;;AAEAA,OAAA;AAEA,IAAAC,UAAA,GAAAD,OAAA;AAEA,IAAAE,UAAA,GAAAC,uBAAA,CAAAH,OAAA;AACA,IAAAI,mBAAA,GAAAC,sBAAA,CAAAL,OAAA;A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AEYH,kBAAS;AAAAI,OAAA,CAAAtB,OAAA,GAAAqB,QAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_predicates","_interopRequireDefault","require","_transformers","payloadTransformer","predicates","_values","default","transforms","transformers","_default","exports"],"sources":["index.js"],"sourcesContent":["import predicates from './predicates';\
|
|
1
|
+
{"version":3,"names":["_predicates","_interopRequireDefault","require","_transformers","payloadTransformer","predicates","_values","default","transforms","transformers","_default","exports"],"sources":["index.js"],"sourcesContent":["import predicates from './predicates';\nimport transformers from './transformers';\n\nconst payloadTransformer = {\n predicates: Object.values(predicates),\n transforms: Object.values(transformers),\n};\n\nexport default payloadTransformer;\n"],"mappings":";;;;;;;;;AAAA,IAAAA,WAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,aAAA,GAAAF,sBAAA,CAAAC,OAAA;AAEA,IAAME,kBAAkB,GAAG;EACzBC,UAAU,EAAE,IAAAC,OAAA,CAAAC,OAAA,EAAcF,mBAAU,CAAC;EACrCG,UAAU,EAAE,IAAAF,OAAA,CAAAC,OAAA,EAAcE,qBAAY;AACxC,CAAC;AAAC,IAAAC,QAAA,GAEaN,kBAAkB;AAAAO,OAAA,CAAAJ,OAAA,GAAAG,QAAA"}
|
|
@@ -7,44 +7,44 @@ _Object$defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
9
|
var _promise = _interopRequireDefault(require("@babel/runtime-corejs2/core-js/promise"));
|
|
10
|
-
/**
|
|
11
|
-
* Predicates are used to validate whether or not a transformer should be
|
|
12
|
-
* triggered, and with what data.
|
|
10
|
+
/**
|
|
11
|
+
* Predicates are used to validate whether or not a transformer should be
|
|
12
|
+
* triggered, and with what data.
|
|
13
13
|
*/
|
|
14
14
|
var exampleGeneralPredicate = {
|
|
15
|
-
/**
|
|
16
|
-
* Name of the transformer to be called.
|
|
17
|
-
*
|
|
18
|
-
* A predicate will `test()` if the payload is valid for the transform, and
|
|
19
|
-
* then `extract()` the necessary data to be passed into the transformer.
|
|
20
|
-
*
|
|
21
|
-
* @type {string}
|
|
15
|
+
/**
|
|
16
|
+
* Name of the transformer to be called.
|
|
17
|
+
*
|
|
18
|
+
* A predicate will `test()` if the payload is valid for the transform, and
|
|
19
|
+
* then `extract()` the necessary data to be passed into the transformer.
|
|
20
|
+
*
|
|
21
|
+
* @type {string}
|
|
22
22
|
*/
|
|
23
23
|
name: 'exampleGeneralTransformer',
|
|
24
|
-
/**
|
|
25
|
-
* Direction this predicate should process on. This allows for different
|
|
26
|
-
* predicates to be used for inbound and outbound transforms.
|
|
27
|
-
*
|
|
28
|
-
* @type {'inbound' | 'outbound' | undefined}
|
|
24
|
+
/**
|
|
25
|
+
* Direction this predicate should process on. This allows for different
|
|
26
|
+
* predicates to be used for inbound and outbound transforms.
|
|
27
|
+
*
|
|
28
|
+
* @type {'inbound' | 'outbound' | undefined}
|
|
29
29
|
*/
|
|
30
30
|
direction: undefined,
|
|
31
|
-
/**
|
|
32
|
-
* Test is used to validate if the `extract()` method should be called to be
|
|
33
|
-
* processed by the associated `name` transformer.
|
|
34
|
-
*
|
|
35
|
-
* @param {Record<'webex' | 'transform', any>} ctx - An Object containing a webex instance and transform prop
|
|
36
|
-
* @param {Object} data - Data from the event or request
|
|
37
|
-
* @returns {boolean} - Whether to process the `extract()` method.
|
|
31
|
+
/**
|
|
32
|
+
* Test is used to validate if the `extract()` method should be called to be
|
|
33
|
+
* processed by the associated `name` transformer.
|
|
34
|
+
*
|
|
35
|
+
* @param {Record<'webex' | 'transform', any>} ctx - An Object containing a webex instance and transform prop
|
|
36
|
+
* @param {Object} data - Data from the event or request
|
|
37
|
+
* @returns {boolean} - Whether to process the `extract()` method.
|
|
38
38
|
*/
|
|
39
39
|
test: function test(ctx, data) {
|
|
40
40
|
return _promise.default.resolve(!!data.value);
|
|
41
41
|
},
|
|
42
|
-
/**
|
|
43
|
-
* Extract a given set of data from a request or event to be processed by the
|
|
44
|
-
* associated `name` transform.
|
|
45
|
-
*
|
|
46
|
-
* @param {Object} data - Data from the event or request
|
|
47
|
-
* @returns {any} - Data to send to the named transform.
|
|
42
|
+
/**
|
|
43
|
+
* Extract a given set of data from a request or event to be processed by the
|
|
44
|
+
* associated `name` transform.
|
|
45
|
+
*
|
|
46
|
+
* @param {Object} data - Data from the event or request
|
|
47
|
+
* @returns {any} - Data to send to the named transform.
|
|
48
48
|
*/
|
|
49
49
|
extract: function extract(data) {
|
|
50
50
|
return _promise.default.resolve(data.value);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["exampleGeneralPredicate","name","direction","undefined","test","ctx","data","_promise","default","resolve","value","extract","exampleInboundPredicate","inboundValue","exampleOutboundPredicate","outboundValue","predicates","_default","exports"],"sources":["predicates.js"],"sourcesContent":["/**\
|
|
1
|
+
{"version":3,"names":["exampleGeneralPredicate","name","direction","undefined","test","ctx","data","_promise","default","resolve","value","extract","exampleInboundPredicate","inboundValue","exampleOutboundPredicate","outboundValue","predicates","_default","exports"],"sources":["predicates.js"],"sourcesContent":["/**\n * Predicates are used to validate whether or not a transformer should be\n * triggered, and with what data.\n */\nconst exampleGeneralPredicate = {\n /**\n * Name of the transformer to be called.\n *\n * A predicate will `test()` if the payload is valid for the transform, and\n * then `extract()` the necessary data to be passed into the transformer.\n *\n * @type {string}\n */\n name: 'exampleGeneralTransformer',\n\n /**\n * Direction this predicate should process on. This allows for different\n * predicates to be used for inbound and outbound transforms.\n *\n * @type {'inbound' | 'outbound' | undefined}\n */\n direction: undefined,\n\n /**\n * Test is used to validate if the `extract()` method should be called to be\n * processed by the associated `name` transformer.\n *\n * @param {Record<'webex' | 'transform', any>} ctx - An Object containing a webex instance and transform prop\n * @param {Object} data - Data from the event or request\n * @returns {boolean} - Whether to process the `extract()` method.\n */\n test: (ctx, data) => Promise.resolve(!!data.value),\n\n /**\n * Extract a given set of data from a request or event to be processed by the\n * associated `name` transform.\n *\n * @param {Object} data - Data from the event or request\n * @returns {any} - Data to send to the named transform.\n */\n extract: (data) => Promise.resolve(data.value),\n};\n\n// NOTE - additional predicate examples [start]\n\nconst exampleInboundPredicate = {\n name: 'exampleInboundTransformer',\n direction: 'inbound',\n test: (ctx, data) => Promise.resolve(!!data.inboundValue),\n extract: (data) => Promise.resolve(data.inboundValue),\n};\n\nconst exampleOutboundPredicate = {\n name: 'exampleOutboundTransformer',\n direction: 'outbound',\n test: (ctx, data) => Promise.resolve(!!data.outboundValue),\n extract: (data) => Promise.resolve(data.outboundValue),\n};\n\n// NOTE - additional predicate examples [end]\n\nconst predicates = {\n exampleGeneralPredicate,\n exampleInboundPredicate,\n exampleOutboundPredicate,\n};\n\nexport default predicates;\n"],"mappings":";;;;;;;;;AAAA;AACA;AACA;AACA;AACA,IAAMA,uBAAuB,GAAG;EAC9B;AACF;AACA;AACA;AACA;AACA;AACA;AACA;EACEC,IAAI,EAAE,2BAA2B;EAEjC;AACF;AACA;AACA;AACA;AACA;EACEC,SAAS,EAAEC,SAAS;EAEpB;AACF;AACA;AACA;AACA;AACA;AACA;AACA;EACEC,IAAI,EAAE,SAAAA,KAACC,GAAG,EAAEC,IAAI;IAAA,OAAKC,QAAA,CAAAC,OAAA,CAAQC,OAAO,CAAC,CAAC,CAACH,IAAI,CAACI,KAAK,CAAC;EAAA;EAElD;AACF;AACA;AACA;AACA;AACA;AACA;EACEC,OAAO,EAAE,SAAAA,QAACL,IAAI;IAAA,OAAKC,QAAA,CAAAC,OAAA,CAAQC,OAAO,CAACH,IAAI,CAACI,KAAK,CAAC;EAAA;AAChD,CAAC;;AAED;;AAEA,IAAME,uBAAuB,GAAG;EAC9BX,IAAI,EAAE,2BAA2B;EACjCC,SAAS,EAAE,SAAS;EACpBE,IAAI,EAAE,SAAAA,KAACC,GAAG,EAAEC,IAAI;IAAA,OAAKC,QAAA,CAAAC,OAAA,CAAQC,OAAO,CAAC,CAAC,CAACH,IAAI,CAACO,YAAY,CAAC;EAAA;EACzDF,OAAO,EAAE,SAAAA,QAACL,IAAI;IAAA,OAAKC,QAAA,CAAAC,OAAA,CAAQC,OAAO,CAACH,IAAI,CAACO,YAAY,CAAC;EAAA;AACvD,CAAC;AAED,IAAMC,wBAAwB,GAAG;EAC/Bb,IAAI,EAAE,4BAA4B;EAClCC,SAAS,EAAE,UAAU;EACrBE,IAAI,EAAE,SAAAA,KAACC,GAAG,EAAEC,IAAI;IAAA,OAAKC,QAAA,CAAAC,OAAA,CAAQC,OAAO,CAAC,CAAC,CAACH,IAAI,CAACS,aAAa,CAAC;EAAA;EAC1DJ,OAAO,EAAE,SAAAA,QAACL,IAAI;IAAA,OAAKC,QAAA,CAAAC,OAAA,CAAQC,OAAO,CAACH,IAAI,CAACS,aAAa,CAAC;EAAA;AACxD,CAAC;;AAED;;AAEA,IAAMC,UAAU,GAAG;EACjBhB,uBAAuB,EAAvBA,uBAAuB;EACvBY,uBAAuB,EAAvBA,uBAAuB;EACvBE,wBAAwB,EAAxBA;AACF,CAAC;AAAC,IAAAG,QAAA,GAEaD,UAAU;AAAAE,OAAA,CAAAV,OAAA,GAAAS,QAAA"}
|
|
@@ -5,33 +5,33 @@ _Object$defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
|
-
/**
|
|
9
|
-
* Transformers are used to process data from requests and events, performing
|
|
10
|
-
* actions prior to the resolution of a `request` or `event` within the calling
|
|
11
|
-
* stack.
|
|
8
|
+
/**
|
|
9
|
+
* Transformers are used to process data from requests and events, performing
|
|
10
|
+
* actions prior to the resolution of a `request` or `event` within the calling
|
|
11
|
+
* stack.
|
|
12
12
|
*/
|
|
13
13
|
var exampleGeneralTransformer = {
|
|
14
|
-
/**
|
|
15
|
-
* Name of this transformer.
|
|
16
|
-
*
|
|
17
|
-
* The usage of this transformer can be validated via a predicate. See the
|
|
18
|
-
* `predicates.js` file for more details.
|
|
19
|
-
*
|
|
20
|
-
* @type {string}
|
|
14
|
+
/**
|
|
15
|
+
* Name of this transformer.
|
|
16
|
+
*
|
|
17
|
+
* The usage of this transformer can be validated via a predicate. See the
|
|
18
|
+
* `predicates.js` file for more details.
|
|
19
|
+
*
|
|
20
|
+
* @type {string}
|
|
21
21
|
*/
|
|
22
22
|
name: 'exampleGeneralTransformer',
|
|
23
|
-
/**
|
|
24
|
-
* Direction this transformer should process on. This allows for different
|
|
25
|
-
* directions to be handled differently when sending/receiving data.
|
|
26
|
-
*
|
|
27
|
-
* @type {'inbound' | 'outbound' | undefined}
|
|
23
|
+
/**
|
|
24
|
+
* Direction this transformer should process on. This allows for different
|
|
25
|
+
* directions to be handled differently when sending/receiving data.
|
|
26
|
+
*
|
|
27
|
+
* @type {'inbound' | 'outbound' | undefined}
|
|
28
28
|
*/
|
|
29
29
|
direction: undefined,
|
|
30
|
-
/**
|
|
31
|
-
* The main transformation function
|
|
32
|
-
* @param {Record<'webex' | 'transform', any>} ctx - An Object containing a webex instance and transform prop.
|
|
33
|
-
* @param {any} data - Data from the event or request.
|
|
34
|
-
* @returns {Promise<any>} - Data after transformation.
|
|
30
|
+
/**
|
|
31
|
+
* The main transformation function
|
|
32
|
+
* @param {Record<'webex' | 'transform', any>} ctx - An Object containing a webex instance and transform prop.
|
|
33
|
+
* @param {any} data - Data from the event or request.
|
|
34
|
+
* @returns {Promise<any>} - Data after transformation.
|
|
35
35
|
*/
|
|
36
36
|
fn: function fn(ctx, data) {
|
|
37
37
|
return ctx.transform('exampleInboundTransformer', ctx, data).then(function (transformed) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["exampleGeneralTransformer","name","direction","undefined","fn","ctx","data","transform","then","transformed","webex","internal","encryption","example","exampleInboundTransformer","exampleOutboundTransformer","transformers","_default","exports","default"],"sources":["transformers.js"],"sourcesContent":["/**\
|
|
1
|
+
{"version":3,"names":["exampleGeneralTransformer","name","direction","undefined","fn","ctx","data","transform","then","transformed","webex","internal","encryption","example","exampleInboundTransformer","exampleOutboundTransformer","transformers","_default","exports","default"],"sources":["transformers.js"],"sourcesContent":["/**\n * Transformers are used to process data from requests and events, performing\n * actions prior to the resolution of a `request` or `event` within the calling\n * stack.\n */\nconst exampleGeneralTransformer = {\n /**\n * Name of this transformer.\n *\n * The usage of this transformer can be validated via a predicate. See the\n * `predicates.js` file for more details.\n *\n * @type {string}\n */\n name: 'exampleGeneralTransformer',\n\n /**\n * Direction this transformer should process on. This allows for different\n * directions to be handled differently when sending/receiving data.\n *\n * @type {'inbound' | 'outbound' | undefined}\n */\n direction: undefined,\n\n /**\n * The main transformation function\n * @param {Record<'webex' | 'transform', any>} ctx - An Object containing a webex instance and transform prop.\n * @param {any} data - Data from the event or request.\n * @returns {Promise<any>} - Data after transformation.\n */\n fn: (ctx, data) =>\n ctx\n .transform('exampleInboundTransformer', ctx, data)\n .then((transformed) => ctx.webex.internal.encryption.example(transformed)),\n};\n\n// NOTE - additional predicate examples [start]\n\nconst exampleInboundTransformer = {\n name: 'exampleInboundTransformer',\n direction: 'inbound',\n fn: (ctx, data) =>\n ctx\n .transform('exampleGeneralTransformer', ctx, data)\n .then((transformed) => ctx.webex.internal.encryption.example(transformed)),\n};\n\nconst exampleOutboundTransformer = {\n name: 'exampleOutboundTransformer',\n direction: 'outbound',\n fn: (ctx, data) =>\n ctx\n .transform('exampleGeneralTransformer', ctx, data)\n .then((transformed) => ctx.webex.internal.encryption.example(transformed)),\n};\n\n// NOTE - additional predicate examples [end]\n\nconst transformers = {\n exampleGeneralTransformer,\n exampleInboundTransformer,\n exampleOutboundTransformer,\n};\n\nexport default transformers;\n"],"mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA,IAAMA,yBAAyB,GAAG;EAChC;AACF;AACA;AACA;AACA;AACA;AACA;AACA;EACEC,IAAI,EAAE,2BAA2B;EAEjC;AACF;AACA;AACA;AACA;AACA;EACEC,SAAS,EAAEC,SAAS;EAEpB;AACF;AACA;AACA;AACA;AACA;EACEC,EAAE,EAAE,SAAAA,GAACC,GAAG,EAAEC,IAAI;IA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2","_scheduler3","_default","Scheduler","exports","default"],"sources":["index.js"],"sourcesContent":["import Scheduler from './scheduler';\
|
|
1
|
+
{"version":3,"names":["_scheduler","_interopRequireDefault","require","_scheduler2","_scheduler3","_default","Scheduler","exports","default"],"sources":["index.js"],"sourcesContent":["import Scheduler from './scheduler';\nimport config from './scheduler.config';\nimport CONSTANTS from './scheduler.constants';\n\nexport {config, CONSTANTS};\n\nexport default Scheduler;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,WAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,WAAA,GAAAH,sBAAA,CAAAC,OAAA;AAA8C,IAAAG,QAAA,GAI/BC,kBAAS;AAAAC,OAAA,CAAAC,OAAA,GAAAH,QAAA"}
|
|
@@ -5,11 +5,11 @@ _Object$defineProperty(exports, "__esModule", {
|
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
|
-
/**
|
|
9
|
-
* The configuration object for this plugin.
|
|
10
|
-
*
|
|
11
|
-
* Each of the values can be retreived from `this.webex.config.scheduler.{property}.
|
|
12
|
-
* When these properties mount/update, `this.webex` object emits `change:config`.
|
|
8
|
+
/**
|
|
9
|
+
* The configuration object for this plugin.
|
|
10
|
+
*
|
|
11
|
+
* Each of the values can be retreived from `this.webex.config.scheduler.{property}.
|
|
12
|
+
* When these properties mount/update, `this.webex` object emits `change:config`.
|
|
13
13
|
*/
|
|
14
14
|
var config = {
|
|
15
15
|
scheduler: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["config","scheduler","configurationBoolean","configurationString","configurationNumber","configurationArray","configurationObject","a","b","c","_default","exports","default"],"sources":["scheduler.config.js"],"sourcesContent":["/**\
|
|
1
|
+
{"version":3,"names":["config","scheduler","configurationBoolean","configurationString","configurationNumber","configurationArray","configurationObject","a","b","c","_default","exports","default"],"sources":["scheduler.config.js"],"sourcesContent":["/**\n * The configuration object for this plugin.\n *\n * Each of the values can be retreived from `this.webex.config.scheduler.{property}.\n * When these properties mount/update, `this.webex` object emits `change:config`.\n */\nconst config = {\n scheduler: {\n configurationBoolean: true,\n configurationString: 'hello',\n configurationNumber: 1234,\n configurationArray: [1, 2, 3, 4],\n configurationObject: {a: 1, b: 2, c: 3},\n },\n};\n\nexport default config;\n"],"mappings":";;;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA,IAAMA,MAAM,GAAG;EACbC,SAAS,EAAE;IACTC,oBAAoB,EAAE,IAAI;IAC1BC,mBAAmB,EAAE,OAAO;IAC5BC,mBAAmB,EAAE,IAAI;IACzBC,kBAAkB,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;IAChCC,mBAAmB,EAAE;MAACC,CAAC,EAAE,CAAC;MAAEC,CAAC,EAAE,CAAC;MAAEC,CAAC,EAAE;IAAC;EACxC;AACF,CAAC;AAAC,IAAAC,QAAA,GAEaV,MAAM;AAAAW,OAAA,CAAAC,OAAA,GAAAF,QAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["NAMESPACE","CONSTANTS","_default","exports","default"],"sources":["scheduler.constants.js"],"sourcesContent":["// Namespace to store this plugin under within `webex` or `webex.internal`.\
|
|
1
|
+
{"version":3,"names":["NAMESPACE","CONSTANTS","_default","exports","default"],"sources":["scheduler.constants.js"],"sourcesContent":["// Namespace to store this plugin under within `webex` or `webex.internal`.\nconst NAMESPACE = 'scheduler';\n\nconst CONSTANTS = {\n NAMESPACE,\n};\n\nexport default CONSTANTS;\n"],"mappings":";;;;;;;AAAA;AACA,IAAMA,SAAS,GAAG,WAAW;AAE7B,IAAMC,SAAS,GAAG;EAChBD,SAAS,EAATA;AACF,CAAC;AAAC,IAAAE,QAAA,GAEaD,SAAS;AAAAE,OAAA,CAAAC,OAAA,GAAAF,QAAA"}
|
|
@@ -18,20 +18,20 @@ var _webexCore = require("@webex/webex-core");
|
|
|
18
18
|
var _scheduler = _interopRequireDefault(require("./scheduler.constants"));
|
|
19
19
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = (0, _getPrototypeOf2.default)(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = (0, _getPrototypeOf2.default)(this).constructor; result = _Reflect$construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return (0, _possibleConstructorReturn2.default)(this, result); }; }
|
|
20
20
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !_Reflect$construct) return false; if (_Reflect$construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(_Reflect$construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
21
|
-
/**
|
|
22
|
-
* Scheduler WebexPlugin class.
|
|
21
|
+
/**
|
|
22
|
+
* Scheduler WebexPlugin class.
|
|
23
23
|
*/
|
|
24
24
|
var Scheduler = /*#__PURE__*/function (_WebexPlugin) {
|
|
25
25
|
(0, _inherits2.default)(Scheduler, _WebexPlugin);
|
|
26
26
|
var _super = _createSuper(Scheduler);
|
|
27
|
-
/**
|
|
28
|
-
* Namespace, or key, to register a `Scheduler` class object to within the
|
|
29
|
-
* `webex.internal` object. Note that only one instance of this class can be
|
|
30
|
-
* used against a single `webex` class instance.
|
|
27
|
+
/**
|
|
28
|
+
* Namespace, or key, to register a `Scheduler` class object to within the
|
|
29
|
+
* `webex.internal` object. Note that only one instance of this class can be
|
|
30
|
+
* used against a single `webex` class instance.
|
|
31
31
|
*/
|
|
32
32
|
|
|
33
|
-
/**
|
|
34
|
-
* @param {Object} args Arguments for constructing a new Scheduler instance.
|
|
33
|
+
/**
|
|
34
|
+
* @param {Object} args Arguments for constructing a new Scheduler instance.
|
|
35
35
|
*/
|
|
36
36
|
function Scheduler() {
|
|
37
37
|
var _this;
|
|
@@ -41,31 +41,31 @@ var Scheduler = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
41
41
|
}
|
|
42
42
|
_this = _super.call.apply(_super, [this].concat(args)); // Required to properly mount the singleton class instance.
|
|
43
43
|
|
|
44
|
-
/**
|
|
45
|
-
* The `this.request` method should now be available for usage.
|
|
46
|
-
* See `http-core` for this tooling.
|
|
44
|
+
/**
|
|
45
|
+
* The `this.request` method should now be available for usage.
|
|
46
|
+
* See `http-core` for this tooling.
|
|
47
47
|
*/
|
|
48
48
|
|
|
49
|
-
/**
|
|
50
|
-
* The mercury connection is available for initialization
|
|
49
|
+
/**
|
|
50
|
+
* The mercury connection is available for initialization
|
|
51
51
|
*/
|
|
52
52
|
|
|
53
|
-
/**
|
|
54
|
-
* The `this.logger` object should now be available for usage.
|
|
55
|
-
* `this.logger.log()`, `this.logger.error()`, `this.logger.warn()`, etc.
|
|
53
|
+
/**
|
|
54
|
+
* The `this.logger` object should now be available for usage.
|
|
55
|
+
* `this.logger.log()`, `this.logger.error()`, `this.logger.warn()`, etc.
|
|
56
56
|
*/
|
|
57
57
|
(0, _defineProperty2.default)((0, _assertThisInitialized2.default)(_this), "namespace", _scheduler.default.NAMESPACE);
|
|
58
58
|
_this.logger.log('plugin example constructed'); // example, remove this.
|
|
59
59
|
return _this;
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
/**
|
|
63
|
-
* WebexPlugin initialize method. This triggers once Webex has completed its
|
|
64
|
-
* initialization workflow.
|
|
65
|
-
*
|
|
66
|
-
* If the plugin is meant to perform startup actions, place them in this
|
|
67
|
-
* `initialize()` method instead of the `constructor()` method.
|
|
68
|
-
* @returns {void}
|
|
62
|
+
/**
|
|
63
|
+
* WebexPlugin initialize method. This triggers once Webex has completed its
|
|
64
|
+
* initialization workflow.
|
|
65
|
+
*
|
|
66
|
+
* If the plugin is meant to perform startup actions, place them in this
|
|
67
|
+
* `initialize()` method instead of the `constructor()` method.
|
|
68
|
+
* @returns {void}
|
|
69
69
|
*/
|
|
70
70
|
(0, _createClass2.default)(Scheduler, [{
|
|
71
71
|
key: "initialize",
|
|
@@ -83,10 +83,10 @@ var Scheduler = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
83
83
|
});
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
-
/**
|
|
87
|
-
* Example request usage. `this.request` returns a promise using XHR. and the
|
|
88
|
-
* `request` npm package.
|
|
89
|
-
* @returns {void}
|
|
86
|
+
/**
|
|
87
|
+
* Example request usage. `this.request` returns a promise using XHR. and the
|
|
88
|
+
* `request` npm package.
|
|
89
|
+
* @returns {void}
|
|
90
90
|
*/
|
|
91
91
|
}, {
|
|
92
92
|
key: "exampleRequestUsage",
|
|
@@ -118,16 +118,16 @@ var Scheduler = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
118
118
|
});
|
|
119
119
|
}
|
|
120
120
|
|
|
121
|
-
/**
|
|
122
|
-
* Example event usage. Note that an event engine is mapped to `this`
|
|
123
|
-
* upon extending the `WebexPlugin` class constructor. This includes
|
|
124
|
-
* the following methods:
|
|
125
|
-
* `this.listenTo()`, `this.stopListening()`, `this.trigger()`, `this.on()`, etc.
|
|
126
|
-
*
|
|
127
|
-
* Note that all methods provided as event handlers should be associated with
|
|
128
|
-
* a namespace so that they can be referenced/destroyed if/when necessary.
|
|
129
|
-
*
|
|
130
|
-
* @returns {void}
|
|
121
|
+
/**
|
|
122
|
+
* Example event usage. Note that an event engine is mapped to `this`
|
|
123
|
+
* upon extending the `WebexPlugin` class constructor. This includes
|
|
124
|
+
* the following methods:
|
|
125
|
+
* `this.listenTo()`, `this.stopListening()`, `this.trigger()`, `this.on()`, etc.
|
|
126
|
+
*
|
|
127
|
+
* Note that all methods provided as event handlers should be associated with
|
|
128
|
+
* a namespace so that they can be referenced/destroyed if/when necessary.
|
|
129
|
+
*
|
|
130
|
+
* @returns {void}
|
|
131
131
|
*/
|
|
132
132
|
}, {
|
|
133
133
|
key: "exampleEventUsage",
|
|
@@ -164,11 +164,11 @@ var Scheduler = /*#__PURE__*/function (_WebexPlugin) {
|
|
|
164
164
|
});
|
|
165
165
|
}
|
|
166
166
|
|
|
167
|
-
/**
|
|
168
|
-
* Example mercury connection setup. See the above `exampleEventUsage()` for
|
|
169
|
-
* event usage definition.
|
|
170
|
-
*
|
|
171
|
-
* @returns {void}
|
|
167
|
+
/**
|
|
168
|
+
* Example mercury connection setup. See the above `exampleEventUsage()` for
|
|
169
|
+
* event usage definition.
|
|
170
|
+
*
|
|
171
|
+
* @returns {void}
|
|
172
172
|
*/
|
|
173
173
|
}, {
|
|
174
174
|
key: "exampleMercuryConnection",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_webexCore","require","_scheduler","_interopRequireDefault","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf2","default","result","NewTarget","constructor","_Reflect$construct","arguments","apply","_possibleConstructorReturn2","Reflect","sham","Proxy","Boolean","prototype","valueOf","call","e","Scheduler","_WebexPlugin","_inherits2","_super","_this","_classCallCheck2","_len","length","args","Array","_key","concat","_defineProperty2","_assertThisInitialized2","CONSTANTS","NAMESPACE","logger","log","_createClass2","key","value","initialize","listenToOnce","webex","exampleRequestUsage","request","method","service","resource","uri","headers","accept","authorization","body","exampleEventUsage","_this2","on","event","off","internal","scheduler","listenTo","pluginName","stopListening","exampleMercuryConnection","_this3","mercury","connect","then","handler","trigger","WebexPlugin","_default","exports"],"sources":["scheduler.js"],"sourcesContent":["import {WebexPlugin} from '@webex/webex-core';\r\n\r\nimport CONSTANTS from './scheduler.constants';\r\n\r\n/**\r\n * Scheduler WebexPlugin class.\r\n */\r\nclass Scheduler extends WebexPlugin {\r\n /**\r\n * Namespace, or key, to register a `Scheduler` class object to within the\r\n * `webex.internal` object. Note that only one instance of this class can be\r\n * used against a single `webex` class instance.\r\n */\r\n namespace = CONSTANTS.NAMESPACE;\r\n\r\n /**\r\n * @param {Object} args Arguments for constructing a new Scheduler instance.\r\n */\r\n constructor(...args) {\r\n super(...args); // Required to properly mount the singleton class instance.\r\n\r\n /**\r\n * The `this.request` method should now be available for usage.\r\n * See `http-core` for this tooling.\r\n */\r\n\r\n /**\r\n * The mercury connection is available for initialization\r\n */\r\n\r\n /**\r\n * The `this.logger` object should now be available for usage.\r\n * `this.logger.log()`, `this.logger.error()`, `this.logger.warn()`, etc.\r\n */\r\n this.logger.log('plugin example constructed'); // example, remove this.\r\n }\r\n\r\n /**\r\n * WebexPlugin initialize method. This triggers once Webex has completed its\r\n * initialization workflow.\r\n *\r\n * If the plugin is meant to perform startup actions, place them in this\r\n * `initialize()` method instead of the `constructor()` method.\r\n * @returns {void}\r\n */\r\n initialize() {\r\n // Used to perform actions based on the provided configuration object once\r\n // the configuration object is ready.\r\n this.listenToOnce(this.webex, 'change:config', () => {\r\n /* ...perform actions once the configuration object is mounted... */\r\n });\r\n\r\n // Used to perform actions after webex is fully qualified and ready for\r\n // operation.\r\n this.listenToOnce(this.webex, 'ready', () => {\r\n /* ...perform actions once the webex object is fully qualified... */\r\n });\r\n }\r\n\r\n /**\r\n * Example request usage. `this.request` returns a promise using XHR. and the\r\n * `request` npm package.\r\n * @returns {void}\r\n */\r\n exampleRequestUsage() {\r\n // Simple example\r\n this.request({\r\n method: 'GET', // method to use for this request\r\n service: 'example-service', // `service` is federated from U2C. See `this.webex.services.list()` at runtime.\r\n resource: 'example/resource/path', // full resource path,\r\n });\r\n\r\n // Complex example\r\n return this.request({\r\n uri: 'https://www.example.com', // a URI can be used in place of service/resource.\r\n method: 'POST',\r\n headers: {\r\n accept: 'application/json',\r\n authorization: 'example-token',\r\n 'x-custom-header': 'x-custom-header-example-value',\r\n },\r\n body: {\r\n 'example-param-a': 'example-param-a-value',\r\n 'example-param-b': 'example-param-b-value',\r\n 'example-param-c': 'example-param-c-value',\r\n },\r\n });\r\n }\r\n\r\n /**\r\n * Example event usage. Note that an event engine is mapped to `this`\r\n * upon extending the `WebexPlugin` class constructor. This includes\r\n * the following methods:\r\n * `this.listenTo()`, `this.stopListening()`, `this.trigger()`, `this.on()`, etc.\r\n *\r\n * Note that all methods provided as event handlers should be associated with\r\n * a namespace so that they can be referenced/destroyed if/when necessary.\r\n *\r\n * @returns {void}\r\n */\r\n exampleEventUsage() {\r\n // listen for locally scoped events [using on, internal]\r\n this.on('event:scope', (event) => {\r\n this.logger.log(event);\r\n });\r\n\r\n // stop listening for locally scoped events.\r\n this.off('event:scope', () => {\r\n /* use previous `on` method param namespace instead of arrow function */\r\n });\r\n\r\n // listen for scoped events [using on, external], replace `this.webex` with `webex` namespace.\r\n this.webex.internal.scheduler.on('event:scope', (event) => {\r\n this.logger.log(event);\r\n });\r\n\r\n // stop listening for scoped events [using on, external], replace `this.webex` with `webex` namespace.\r\n this.webex.internal.scheduler.off('event:scope', () => {\r\n /* use previous `on` method param namespace instead of arrow function */\r\n });\r\n\r\n // listen for scoped events [using listenTo(), plugin-to-plugin].\r\n this.listenTo(this.webex.pluginName, 'event:scope', (event) => {\r\n this.logger.log(event);\r\n });\r\n\r\n // stop listening for scoped events [using listenTo(), plugin-to-plugin].\r\n this.stopListening(this.webex.pluginName, 'event:scope', () => {\r\n /* use previous `listenTo` method param namespace instead of arrow function */\r\n });\r\n }\r\n\r\n /**\r\n * Example mercury connection setup. See the above `exampleEventUsage()` for\r\n * event usage definition.\r\n *\r\n * @returns {void}\r\n */\r\n exampleMercuryConnection() {\r\n this.webex.internal.mercury.connect().then(() => {\r\n // Scope this listener to a trackable namespace\r\n this.handler = (event) => {\r\n this.logger.log(event);\r\n this.trigger('event:scope', event);\r\n };\r\n\r\n // Start handling events.\r\n this.listenTo(this.webex.internal.mercury, 'event:scope', this.handler);\r\n\r\n // Stop handling events.\r\n this.stopListening(this.webex.internal.mercury, 'event:scope', this.handler);\r\n });\r\n }\r\n}\r\n\r\nexport default Scheduler;\r\n"],"mappings":";;;;;;;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAEA,IAAAC,UAAA,GAAAC,sBAAA,CAAAF,OAAA;AAA8C,SAAAG,aAAAC,OAAA,QAAAC,y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CAACJ,QAAQ,CAACI,MAAI,CAACtB,KAAK,CAACgB,QAAQ,CAACO,OAAO,EAAE,aAAa,EAAED,MAAI,CAACI,OAAO,CAAC;;QAEvE;QACAJ,MAAI,CAACF,aAAa,CAACE,MAAI,CAACtB,KAAK,CAACgB,QAAQ,CAACO,OAAO,EAAE,aAAa,EAAED,MAAI,CAACI,OAAO,CAAC;MAC9E,CAAC,CAAC;IACJ;EAAC;EAAA,OAAAjD,SAAA;AAAA,EAjJqBmD,sBAAW;AAAA,IAAAC,QAAA,GAoJpBpD,SAAS;AAAAqD,OAAA,CAAArE,OAAA,GAAAoE,QAAA"}
|
|
1
|
+
{"version":3,"names":["_webexCore","require","_scheduler","_interopRequireDefault","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf2","default","result","NewTarget","constructor","_Reflect$construct","arguments","apply","_possibleConstructorReturn2","Reflect","sham","Proxy","Boolean","prototype","valueOf","call","e","Scheduler","_WebexPlugin","_inherits2","_super","_this","_classCallCheck2","_len","length","args","Array","_key","concat","_defineProperty2","_assertThisInitialized2","CONSTANTS","NAMESPACE","logger","log","_createClass2","key","value","initialize","listenToOnce","webex","exampleRequestUsage","request","method","service","resource","uri","headers","accept","authorization","body","exampleEventUsage","_this2","on","event","off","internal","scheduler","listenTo","pluginName","stopListening","exampleMercuryConnection","_this3","mercury","connect","then","handler","trigger","WebexPlugin","_default","exports"],"sources":["scheduler.js"],"sourcesContent":["import {WebexPlugin} from '@webex/webex-core';\n\nimport CONSTANTS from './scheduler.constants';\n\n/**\n * Scheduler WebexPlugin class.\n */\nclass Scheduler extends WebexPlugin {\n /**\n * Namespace, or key, to register a `Scheduler` class object to within the\n * `webex.internal` object. Note that only one instance of this class can be\n * used against a single `webex` class instance.\n */\n namespace = CONSTANTS.NAMESPACE;\n\n /**\n * @param {Object} args Arguments for constructing a new Scheduler instance.\n */\n constructor(...args) {\n super(...args); // Required to properly mount the singleton class instance.\n\n /**\n * The `this.request` method should now be available for usage.\n * See `http-core` for this tooling.\n */\n\n /**\n * The mercury connection is available for initialization\n */\n\n /**\n * The `this.logger` object should now be available for usage.\n * `this.logger.log()`, `this.logger.error()`, `this.logger.warn()`, etc.\n */\n this.logger.log('plugin example constructed'); // example, remove this.\n }\n\n /**\n * WebexPlugin initialize method. This triggers once Webex has completed its\n * initialization workflow.\n *\n * If the plugin is meant to perform startup actions, place them in this\n * `initialize()` method instead of the `constructor()` method.\n * @returns {void}\n */\n initialize() {\n // Used to perform actions based on the provided configuration object once\n // the configuration object is ready.\n this.listenToOnce(this.webex, 'change:config', () => {\n /* ...perform actions once the configuration object is mounted... */\n });\n\n // Used to perform actions after webex is fully qualified and ready for\n // operation.\n this.listenToOnce(this.webex, 'ready', () => {\n /* ...perform actions once the webex object is fully qualified... */\n });\n }\n\n /**\n * Example request usage. `this.request` returns a promise using XHR. and the\n * `request` npm package.\n * @returns {void}\n */\n exampleRequestUsage() {\n // Simple example\n this.request({\n method: 'GET', // method to use for this request\n service: 'example-service', // `service` is federated from U2C. See `this.webex.services.list()` at runtime.\n resource: 'example/resource/path', // full resource path,\n });\n\n // Complex example\n return this.request({\n uri: 'https://www.example.com', // a URI can be used in place of service/resource.\n method: 'POST',\n headers: {\n accept: 'application/json',\n authorization: 'example-token',\n 'x-custom-header': 'x-custom-header-example-value',\n },\n body: {\n 'example-param-a': 'example-param-a-value',\n 'example-param-b': 'example-param-b-value',\n 'example-param-c': 'example-param-c-value',\n },\n });\n }\n\n /**\n * Example event usage. Note that an event engine is mapped to `this`\n * upon extending the `WebexPlugin` class constructor. This includes\n * the following methods:\n * `this.listenTo()`, `this.stopListening()`, `this.trigger()`, `this.on()`, etc.\n *\n * Note that all methods provided as event handlers should be associated with\n * a namespace so that they can be referenced/destroyed if/when necessary.\n *\n * @returns {void}\n */\n exampleEventUsage() {\n // listen for locally scoped events [using on, internal]\n this.on('event:scope', (event) => {\n this.logger.log(event);\n });\n\n // stop listening for locally scoped events.\n this.off('event:scope', () => {\n /* use previous `on` method param namespace instead of arrow function */\n });\n\n // listen for scoped events [using on, external], replace `this.webex` with `webex` namespace.\n this.webex.internal.scheduler.on('event:scope', (event) => {\n this.logger.log(event);\n });\n\n // stop listening for scoped events [using on, external], replace `this.webex` with `webex` namespace.\n this.webex.internal.scheduler.off('event:scope', () => {\n /* use previous `on` method param namespace instead of arrow function */\n });\n\n // listen for scoped events [using listenTo(), plugin-to-plugin].\n this.listenTo(this.webex.pluginName, 'event:scope', (event) => {\n this.logger.log(event);\n });\n\n // stop listening for scoped events [using listenTo(), plugin-to-plugin].\n this.stopListening(this.webex.pluginName, 'event:scope', () => {\n /* use previous `listenTo` method param namespace instead of arrow function */\n });\n }\n\n /**\n * Example mercury connection setup. See the above `exampleEventUsage()` for\n * event usage definition.\n *\n * @returns {void}\n */\n exampleMercuryConnection() {\n this.webex.internal.mercury.connect().then(() => {\n // Scope this listener to a trackable namespace\n this.handler = (event) => {\n this.logger.log(event);\n this.trigger('event:scope', event);\n };\n\n // Start handling events.\n this.listenTo(this.webex.internal.mercury, 'event:scope', this.handler);\n\n // Stop handling events.\n this.stopListening(this.webex.internal.mercury, 'event:scope', this.handler);\n });\n }\n}\n\nexport default Scheduler;\n"],"mappings":";;;;;;;;;;;;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAEA,IAAAC,UAAA,GAAAC,sBAAA,CAAAF,OAAA;AAA8C,SAAAG,aAAAC,OAAA,QAAAC,yBAAA,GAAAC,yBAAA,oBAAAC,qBAAA,QAAAC,KAAA,OAAAC,gBAAA,CAAAC,OAAA,EAAAN,OAAA,GAAAO,MAAA,MAAAN,yBAAA,QAAAO,SAAA,OAAAH,gBAAA,CAAAC,OAAA,QAAAG,WAAA,EAAAF,MAAA,GAAAG,kBAAA,CAAAN,KAAA,EAAAO,SAAA,EAAAH,SAAA,YAAAD,MAAA,GAAAH,KAAA,CAAAQ,KAAA,OAAAD,SAAA,gBAAAE,2BAAA,CAAAP,OAAA,QAAAC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A,GAoJpBpD,SAAS;AAAAqD,OAAA,CAAArE,OAAA,GAAAoE,QAAA"}
|
package/jest.config.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
const config = require('@webex/jest-config-legacy');
|
|
2
|
-
|
|
3
|
-
module.exports = config;
|
|
1
|
+
const config = require('@webex/jest-config-legacy');
|
|
2
|
+
|
|
3
|
+
module.exports = config;
|
package/package.json
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webex/internal-plugin-scheduler",
|
|
3
|
+
"version": "2.59.4",
|
|
3
4
|
"description": "",
|
|
4
5
|
"license": "MIT",
|
|
5
6
|
"main": "dist/index.js",
|
|
@@ -20,14 +21,14 @@
|
|
|
20
21
|
},
|
|
21
22
|
"devDependencies": {
|
|
22
23
|
"@babel/core": "^7.17.10",
|
|
23
|
-
"@webex/babel-config-legacy": "
|
|
24
|
-
"@webex/eslint-config-legacy": "
|
|
25
|
-
"@webex/jest-config-legacy": "
|
|
26
|
-
"@webex/legacy-tools": "
|
|
27
|
-
"@webex/test-helper-chai": "
|
|
28
|
-
"@webex/test-helper-mocha": "
|
|
29
|
-
"@webex/test-helper-mock-webex": "
|
|
30
|
-
"@webex/test-helper-test-users": "
|
|
24
|
+
"@webex/babel-config-legacy": "2.59.4",
|
|
25
|
+
"@webex/eslint-config-legacy": "2.59.4",
|
|
26
|
+
"@webex/jest-config-legacy": "2.59.4",
|
|
27
|
+
"@webex/legacy-tools": "2.59.4",
|
|
28
|
+
"@webex/test-helper-chai": "2.59.4",
|
|
29
|
+
"@webex/test-helper-mocha": "2.59.4",
|
|
30
|
+
"@webex/test-helper-mock-webex": "2.59.4",
|
|
31
|
+
"@webex/test-helper-test-users": "2.59.4",
|
|
31
32
|
"chai": "^4.3.4",
|
|
32
33
|
"chai-as-promised": "^7.1.1",
|
|
33
34
|
"eslint": "^8.24.0",
|
|
@@ -35,14 +36,14 @@
|
|
|
35
36
|
"sinon": "^9.2.4"
|
|
36
37
|
},
|
|
37
38
|
"dependencies": {
|
|
38
|
-
"@webex/common": "
|
|
39
|
-
"@webex/common-timers": "
|
|
40
|
-
"@webex/http-core": "
|
|
41
|
-
"@webex/internal-plugin-device": "
|
|
42
|
-
"@webex/internal-plugin-encryption": "
|
|
43
|
-
"@webex/internal-plugin-mercury": "
|
|
44
|
-
"@webex/internal-plugin-metrics": "
|
|
45
|
-
"@webex/webex-core": "
|
|
39
|
+
"@webex/common": "2.59.4",
|
|
40
|
+
"@webex/common-timers": "2.59.4",
|
|
41
|
+
"@webex/http-core": "2.59.4",
|
|
42
|
+
"@webex/internal-plugin-device": "2.59.4",
|
|
43
|
+
"@webex/internal-plugin-encryption": "2.59.4",
|
|
44
|
+
"@webex/internal-plugin-mercury": "2.59.4",
|
|
45
|
+
"@webex/internal-plugin-metrics": "2.59.4",
|
|
46
|
+
"@webex/webex-core": "2.59.4",
|
|
46
47
|
"ampersand-collection": "^2.0.2",
|
|
47
48
|
"ampersand-state": "^5.0.3",
|
|
48
49
|
"lodash": "^4.17.21"
|
|
@@ -50,12 +51,10 @@
|
|
|
50
51
|
"scripts": {
|
|
51
52
|
"build": "yarn build:src",
|
|
52
53
|
"build:src": "webex-legacy-tools build -dest \"./dist\" -src \"./src\" -js -ts -maps",
|
|
53
|
-
"deploy:npm": "yarn npm publish",
|
|
54
54
|
"test": "yarn test:style && yarn test:unit && yarn test:integration && yarn test:browser",
|
|
55
55
|
"test:browser:broken": "webex-legacy-tools test --integration --unit --runner karma",
|
|
56
56
|
"test:integration": "webex-legacy-tools test --integration --runner mocha",
|
|
57
57
|
"test:style": "eslint ./src/**/*.*",
|
|
58
58
|
"test:unit": "webex-legacy-tools test --unit --runner jest"
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
}
|
|
59
|
+
}
|
|
60
|
+
}
|
package/process
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
module.exports = {browser: true};
|
|
1
|
+
module.exports = {browser: true};
|