@webex/internal-plugin-ediscovery 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 +62 -62
- package/babel.config.js +3 -3
- package/dist/config.js.map +1 -1
- package/dist/ediscovery-error.js +4 -4
- package/dist/ediscovery-error.js.map +1 -1
- package/dist/ediscovery.js +102 -102
- package/dist/ediscovery.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/report-request.js +10 -10
- package/dist/report-request.js.map +1 -1
- package/dist/retry.js.map +1 -1
- package/dist/transforms.js +23 -23
- package/dist/transforms.js.map +1 -1
- package/jest.config.js +3 -3
- package/package.json +16 -17
- package/process +1 -1
- package/src/config.js +10 -10
- package/src/ediscovery-error.js +16 -16
- package/src/ediscovery.js +457 -457
- package/src/index.js +175 -175
- package/src/report-request.js +34 -34
- package/src/retry.js +43 -43
- package/src/transforms.js +819 -819
- package/test/integration/spec/ediscovery.js +208 -208
- package/test/unit/spec/content.js +1084 -1084
- package/test/unit/spec/report.js +242 -242
- package/test/unit/spec/transforms.js +496 -496
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,62 +1,62 @@
|
|
|
1
|
-
# @webex/internal-plugin-ediscovery
|
|
2
|
-
|
|
3
|
-
[](https://github.com/RichardLitt/standard-readme)
|
|
4
|
-
|
|
5
|
-
> Plugin for the ediscovery report client
|
|
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
|
-
- [@webex/internal-plugin-ediscovery](#webexinternal-plugin-ediscovery)
|
|
10
|
-
- [Install](#Install)
|
|
11
|
-
- [Usage](#Usage)
|
|
12
|
-
- [Tests](#Tests)
|
|
13
|
-
- [Maintainers](#Maintainers)
|
|
14
|
-
- [Contribute](#Contribute)
|
|
15
|
-
- [License](#License)
|
|
16
|
-
|
|
17
|
-
## Install
|
|
18
|
-
|
|
19
|
-
```bash
|
|
20
|
-
npm install --save @webex/internal-plugin-ediscovery
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
## Usage
|
|
24
|
-
|
|
25
|
-
```js
|
|
26
|
-
import '@webex/internal-plugin-ediscovery';
|
|
27
|
-
|
|
28
|
-
import WebexCore from '@webex/webex-core';
|
|
29
|
-
|
|
30
|
-
const webex = new WebexCore();
|
|
31
|
-
webex.internal.plugin.ediscovery.WHATEVER;
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
## Tests
|
|
35
|
-
|
|
36
|
-
Run the ediscovery from the top level using
|
|
37
|
-
|
|
38
|
-
> yarn run test --packages @webex/internal-plugin-ediscovery
|
|
39
|
-
|
|
40
|
-
## Run some unit tests, for example: spaceInfo
|
|
41
|
-
|
|
42
|
-
Run the following command
|
|
43
|
-
|
|
44
|
-
> yarn run test --packages @webex/internal-plugin-ediscovery --grep "spaceInfo" --unit
|
|
45
|
-
|
|
46
|
-
## Debug Tests
|
|
47
|
-
|
|
48
|
-
Run the following command
|
|
49
|
-
|
|
50
|
-
> yarn run test --packages @webex/internal-plugin-ediscovery --grep "test name" --karmaDebug --browsers=Chrome
|
|
51
|
-
|
|
52
|
-
## Maintainers
|
|
53
|
-
|
|
54
|
-
This package is maintained by [Cisco Webex for Developers](https://developer.webex.com/).
|
|
55
|
-
|
|
56
|
-
## Contribute
|
|
57
|
-
|
|
58
|
-
Pull requests welcome. Please see [CONTRIBUTING.md](https://github.com/webex/webex-js-sdk/blob/master/CONTRIBUTING.md) for more details.
|
|
59
|
-
|
|
60
|
-
## License
|
|
61
|
-
|
|
62
|
-
© 2016-2020 Cisco and/or its affiliates. All Rights Reserved.
|
|
1
|
+
# @webex/internal-plugin-ediscovery
|
|
2
|
+
|
|
3
|
+
[](https://github.com/RichardLitt/standard-readme)
|
|
4
|
+
|
|
5
|
+
> Plugin for the ediscovery report client
|
|
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
|
+
- [@webex/internal-plugin-ediscovery](#webexinternal-plugin-ediscovery)
|
|
10
|
+
- [Install](#Install)
|
|
11
|
+
- [Usage](#Usage)
|
|
12
|
+
- [Tests](#Tests)
|
|
13
|
+
- [Maintainers](#Maintainers)
|
|
14
|
+
- [Contribute](#Contribute)
|
|
15
|
+
- [License](#License)
|
|
16
|
+
|
|
17
|
+
## Install
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
npm install --save @webex/internal-plugin-ediscovery
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Usage
|
|
24
|
+
|
|
25
|
+
```js
|
|
26
|
+
import '@webex/internal-plugin-ediscovery';
|
|
27
|
+
|
|
28
|
+
import WebexCore from '@webex/webex-core';
|
|
29
|
+
|
|
30
|
+
const webex = new WebexCore();
|
|
31
|
+
webex.internal.plugin.ediscovery.WHATEVER;
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
## Tests
|
|
35
|
+
|
|
36
|
+
Run the ediscovery from the top level using
|
|
37
|
+
|
|
38
|
+
> yarn run test --packages @webex/internal-plugin-ediscovery
|
|
39
|
+
|
|
40
|
+
## Run some unit tests, for example: spaceInfo
|
|
41
|
+
|
|
42
|
+
Run the following command
|
|
43
|
+
|
|
44
|
+
> yarn run test --packages @webex/internal-plugin-ediscovery --grep "spaceInfo" --unit
|
|
45
|
+
|
|
46
|
+
## Debug Tests
|
|
47
|
+
|
|
48
|
+
Run the following command
|
|
49
|
+
|
|
50
|
+
> yarn run test --packages @webex/internal-plugin-ediscovery --grep "test name" --karmaDebug --browsers=Chrome
|
|
51
|
+
|
|
52
|
+
## Maintainers
|
|
53
|
+
|
|
54
|
+
This package is maintained by [Cisco Webex for Developers](https://developer.webex.com/).
|
|
55
|
+
|
|
56
|
+
## Contribute
|
|
57
|
+
|
|
58
|
+
Pull requests welcome. Please see [CONTRIBUTING.md](https://github.com/webex/webex-js-sdk/blob/master/CONTRIBUTING.md) for more details.
|
|
59
|
+
|
|
60
|
+
## License
|
|
61
|
+
|
|
62
|
+
© 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.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ediscovery","defaultOptions","offset","size","timeoutMs","types","exports","default","_default"],"sources":["config.js"],"sourcesContent":["export default {\
|
|
1
|
+
{"version":3,"names":["ediscovery","defaultOptions","offset","size","timeoutMs","types","exports","default","_default"],"sources":["config.js"],"sourcesContent":["export default {\n ediscovery: {\n defaultOptions: {\n offset: 0,\n size: 100,\n timeoutMs: 30000,\n types: [],\n },\n },\n};\n"],"mappings":";;;;;;;eAAe;EACbA,UAAU,EAAE;IACVC,cAAc,EAAE;MACdC,MAAM,EAAE,CAAC;MACTC,IAAI,EAAE,GAAG;MACTC,SAAS,EAAE,KAAK;MAChBC,KAAK,EAAE;IACT;EACF;AACF,CAAC;AAAAC,OAAA,CAAAC,OAAA,GAAAC,QAAA"}
|
package/dist/ediscovery-error.js
CHANGED
|
@@ -15,8 +15,8 @@ var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime-corejs2/he
|
|
|
15
15
|
var _common = require("@webex/common");
|
|
16
16
|
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); }; }
|
|
17
17
|
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; } }
|
|
18
|
-
/**
|
|
19
|
-
* General ediscovery error
|
|
18
|
+
/**
|
|
19
|
+
* General ediscovery error
|
|
20
20
|
*/
|
|
21
21
|
var EdiscoveryError = /*#__PURE__*/function (_Exception) {
|
|
22
22
|
(0, _inherits2.default)(EdiscoveryError, _Exception);
|
|
@@ -27,8 +27,8 @@ var EdiscoveryError = /*#__PURE__*/function (_Exception) {
|
|
|
27
27
|
}
|
|
28
28
|
return (0, _createClass2.default)(EdiscoveryError);
|
|
29
29
|
}(_common.Exception);
|
|
30
|
-
/**
|
|
31
|
-
* InvalidEmailAddressError is thrown when an email address has been supplied as a parameter and cannot be found in CI
|
|
30
|
+
/**
|
|
31
|
+
* InvalidEmailAddressError is thrown when an email address has been supplied as a parameter and cannot be found in CI
|
|
32
32
|
*/
|
|
33
33
|
exports.EdiscoveryError = EdiscoveryError;
|
|
34
34
|
var InvalidEmailAddressError = /*#__PURE__*/function (_EdiscoveryError) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_common","require","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf2","default","result","NewTarget","constructor","_Reflect$construct","arguments","apply","_possibleConstructorReturn2","Reflect","sham","Proxy","Boolean","prototype","valueOf","call","e","EdiscoveryError","_Exception","_inherits2","_super","_classCallCheck2","_createClass2","Exception","exports","InvalidEmailAddressError","_EdiscoveryError","_super2","key","value","getErrorCode"],"sources":["ediscovery-error.js"],"sourcesContent":["import {Exception} from '@webex/common';\
|
|
1
|
+
{"version":3,"names":["_common","require","_createSuper","Derived","hasNativeReflectConstruct","_isNativeReflectConstruct","_createSuperInternal","Super","_getPrototypeOf2","default","result","NewTarget","constructor","_Reflect$construct","arguments","apply","_possibleConstructorReturn2","Reflect","sham","Proxy","Boolean","prototype","valueOf","call","e","EdiscoveryError","_Exception","_inherits2","_super","_classCallCheck2","_createClass2","Exception","exports","InvalidEmailAddressError","_EdiscoveryError","_super2","key","value","getErrorCode"],"sources":["ediscovery-error.js"],"sourcesContent":["import {Exception} from '@webex/common';\n\n/**\n * General ediscovery error\n */\nexport class EdiscoveryError extends Exception {}\n\n/**\n * InvalidEmailAddressError is thrown when an email address has been supplied as a parameter and cannot be found in CI\n */\nexport class InvalidEmailAddressError extends EdiscoveryError {\n // This value correspondes to the ediscovery error code INVALID_USER_EMAILS_LIST_IN_MESSAGE\n static getErrorCode() {\n return 14400001;\n }\n}\n"],"mappings":";;;;;;;;;;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAAwC,SAAAC,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,MAAA;AAAA,SAAAL,0BAAA,eAAAY,OAAA,qBAAAJ,kBAAA,oBAAAA,kBAAA,CAAAK,IAAA,2BAAAC,KAAA,oCAAAC,OAAA,CAAAC,SAAA,CAAAC,OAAA,CAAAC,IAAA,CAAAV,kBAAA,CAAAO,OAAA,8CAAAI,CAAA;AAExC;AACA;AACA;AAFA,IAGaC,eAAe,0BAAAC,UAAA;EAAA,IAAAC,UAAA,CAAAlB,OAAA,EAAAgB,eAAA,EAAAC,UAAA;EAAA,IAAAE,MAAA,GAAA1B,YAAA,CAAAuB,eAAA;EAAA,SAAAA,gBAAA;IAAA,IAAAI,gBAAA,CAAApB,OAAA,QAAAgB,eAAA;IAAA,OAAAG,MAAA,CAAAb,KAAA,OAAAD,SAAA;EAAA;EAAA,WAAAgB,aAAA,CAAArB,OAAA,EAAAgB,eAAA;AAAA,EAASM,iBAAS;AAE9C;AACA;AACA;AAFAC,OAAA,CAAAP,eAAA,GAAAA,eAAA;AAAA,IAGaQ,wBAAwB,0BAAAC,gBAAA;EAAA,IAAAP,UAAA,CAAAlB,OAAA,EAAAwB,wBAAA,EAAAC,gBAAA;EAAA,IAAAC,OAAA,GAAAjC,YAAA,CAAA+B,wBAAA;EAAA,SAAAA,yBAAA;IAAA,IAAAJ,gBAAA,CAAApB,OAAA,QAAAwB,wBAAA;IAAA,OAAAE,OAAA,CAAApB,KAAA,OAAAD,SAAA;EAAA;EAAA,IAAAgB,aAAA,CAAArB,OAAA,EAAAwB,wBAAA;IAAAG,GAAA;IAAAC,KAAA;IACnC;IACA,SAAAC,aAAA,EAAsB;MACpB,OAAO,QAAQ;IACjB;EAAC;EAAA,OAAAL,wBAAA;AAAA,EAJ2CR,eAAe;AAAAO,OAAA,CAAAC,wBAAA,GAAAA,wBAAA"}
|
package/dist/ediscovery.js
CHANGED
|
@@ -33,12 +33,12 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
33
33
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
34
34
|
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$getOwnPropertyDescriptor2(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
35
35
|
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$getOwnPropertyDescriptor2(source, key)); }); } return target; }
|
|
36
|
-
/**
|
|
37
|
-
* Creates a unique oneflight key for a request from the reportId and options params
|
|
38
|
-
* It is important that the offset params are included if present to ensure paged requests get back the correct data
|
|
39
|
-
* @param {Object} reportId - A set of criteria for determining the focus of the search
|
|
40
|
-
* @param {Object} options - optional parameters for this method
|
|
41
|
-
* @returns {String} oneFlight key which is a composite of the request parameters
|
|
36
|
+
/**
|
|
37
|
+
* Creates a unique oneflight key for a request from the reportId and options params
|
|
38
|
+
* It is important that the offset params are included if present to ensure paged requests get back the correct data
|
|
39
|
+
* @param {Object} reportId - A set of criteria for determining the focus of the search
|
|
40
|
+
* @param {Object} options - optional parameters for this method
|
|
41
|
+
* @returns {String} oneFlight key which is a composite of the request parameters
|
|
42
42
|
*/
|
|
43
43
|
function createOneFlightKey(reportId, options) {
|
|
44
44
|
var key = String(reportId);
|
|
@@ -56,9 +56,9 @@ function createOneFlightKey(reportId, options) {
|
|
|
56
56
|
return key;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
/**
|
|
60
|
-
* @class EDiscovery is used by compliance officers to run compliance reports
|
|
61
|
-
*
|
|
59
|
+
/**
|
|
60
|
+
* @class EDiscovery is used by compliance officers to run compliance reports
|
|
61
|
+
*
|
|
62
62
|
*/
|
|
63
63
|
var EDiscovery = _webexCore.WebexPlugin.extend((_dec = (0, _webexCore.waitForValue)('@'), _dec2 = (0, _webexCore.waitForValue)('@'), _dec3 = (0, _webexCore.waitForValue)('@'), _dec4 = (0, _webexCore.waitForValue)('@'), _dec5 = (0, _webexCore.waitForValue)('@'), _dec6 = (0, _webexCore.waitForValue)('@'), _dec7 = (0, _common.oneFlight)({
|
|
64
64
|
keyFactory: function keyFactory(reportId, options) {
|
|
@@ -82,12 +82,12 @@ var EDiscovery = _webexCore.WebexPlugin.extend((_dec = (0, _webexCore.waitForVal
|
|
|
82
82
|
}
|
|
83
83
|
}
|
|
84
84
|
},
|
|
85
|
-
/**
|
|
86
|
-
* Creates a compliance report with a specific set of search parameters
|
|
87
|
-
* @param {Object} reportRequest - A set of criteria for determining the focus of the search
|
|
88
|
-
* @param {Object} options - optional parameters for this method
|
|
89
|
-
* @param {number} options.timeoutMs - connection timeout in milliseconds, defaults to 30s
|
|
90
|
-
* @returns {Promise<ResponseEntity>} Http response containing the new report record
|
|
85
|
+
/**
|
|
86
|
+
* Creates a compliance report with a specific set of search parameters
|
|
87
|
+
* @param {Object} reportRequest - A set of criteria for determining the focus of the search
|
|
88
|
+
* @param {Object} options - optional parameters for this method
|
|
89
|
+
* @param {number} options.timeoutMs - connection timeout in milliseconds, defaults to 30s
|
|
90
|
+
* @returns {Promise<ResponseEntity>} Http response containing the new report record
|
|
91
91
|
*/
|
|
92
92
|
createReport: function createReport(reportRequest, options) {
|
|
93
93
|
var _this = this;
|
|
@@ -127,10 +127,10 @@ var EDiscovery = _webexCore.WebexPlugin.extend((_dec = (0, _webexCore.waitForVal
|
|
|
127
127
|
}, _callee, null, [[4, 10]]);
|
|
128
128
|
}))();
|
|
129
129
|
},
|
|
130
|
-
/**
|
|
131
|
-
* Checks the error from createReport and ensures the appropriate error is sent to the client
|
|
132
|
-
* @param {Error} reason - Error response thrown by the request to createReport
|
|
133
|
-
* @returns {Promise<Error>} Promise rejection containing the error
|
|
130
|
+
/**
|
|
131
|
+
* Checks the error from createReport and ensures the appropriate error is sent to the client
|
|
132
|
+
* @param {Error} reason - Error response thrown by the request to createReport
|
|
133
|
+
* @returns {Promise<Error>} Promise rejection containing the error
|
|
134
134
|
*/
|
|
135
135
|
_handleReportRequestError: function _handleReportRequestError(reason) {
|
|
136
136
|
if (reason.body.errorCode === _ediscoveryError.InvalidEmailAddressError.getErrorCode()) {
|
|
@@ -148,12 +148,12 @@ var EDiscovery = _webexCore.WebexPlugin.extend((_dec = (0, _webexCore.waitForVal
|
|
|
148
148
|
}
|
|
149
149
|
return _promise.default.reject(reason);
|
|
150
150
|
},
|
|
151
|
-
/**
|
|
152
|
-
* Retrieves information relating to a specified report
|
|
153
|
-
* @param {UUID} reportId - Id of the report being requested
|
|
154
|
-
* @param {Object} options - optional parameters for this method
|
|
155
|
-
* @param {number} options.timeoutMs - connection timeout in milliseconds, defaults to 30s
|
|
156
|
-
* @returns {Promise<ResponseEntity<ReportRecord>>} Http response containing the specified report record
|
|
151
|
+
/**
|
|
152
|
+
* Retrieves information relating to a specified report
|
|
153
|
+
* @param {UUID} reportId - Id of the report being requested
|
|
154
|
+
* @param {Object} options - optional parameters for this method
|
|
155
|
+
* @param {number} options.timeoutMs - connection timeout in milliseconds, defaults to 30s
|
|
156
|
+
* @returns {Promise<ResponseEntity<ReportRecord>>} Http response containing the specified report record
|
|
157
157
|
*/
|
|
158
158
|
getReport: function getReport(reportId, options) {
|
|
159
159
|
var _this2 = this;
|
|
@@ -182,13 +182,13 @@ var EDiscovery = _webexCore.WebexPlugin.extend((_dec = (0, _webexCore.waitForVal
|
|
|
182
182
|
}, _callee2);
|
|
183
183
|
}))();
|
|
184
184
|
},
|
|
185
|
-
/**
|
|
186
|
-
* Retrieves all the compliance officers reports
|
|
187
|
-
* @param {Object} options - optional parameters for this method
|
|
188
|
-
* @param {number} options.offset - start position from which to retrieve records
|
|
189
|
-
* @param {number} options.size - the number of records to retrieve
|
|
190
|
-
* @param {number} options.timeoutMs - connection timeout in milliseconds, defaults to 30s
|
|
191
|
-
* @returns {Promise<ResponseEntity<Array<ReportRecord>>>} Http Response containing a list of report records
|
|
185
|
+
/**
|
|
186
|
+
* Retrieves all the compliance officers reports
|
|
187
|
+
* @param {Object} options - optional parameters for this method
|
|
188
|
+
* @param {number} options.offset - start position from which to retrieve records
|
|
189
|
+
* @param {number} options.size - the number of records to retrieve
|
|
190
|
+
* @param {number} options.timeoutMs - connection timeout in milliseconds, defaults to 30s
|
|
191
|
+
* @returns {Promise<ResponseEntity<Array<ReportRecord>>>} Http Response containing a list of report records
|
|
192
192
|
*/
|
|
193
193
|
getReports: function getReports(options) {
|
|
194
194
|
var _this3 = this;
|
|
@@ -215,12 +215,12 @@ var EDiscovery = _webexCore.WebexPlugin.extend((_dec = (0, _webexCore.waitForVal
|
|
|
215
215
|
}, _callee3);
|
|
216
216
|
}))();
|
|
217
217
|
},
|
|
218
|
-
/**
|
|
219
|
-
* Deletes a specified report
|
|
220
|
-
* @param {UUID} reportId - Id of the report being requested for deletion
|
|
221
|
-
* @param {Object} options - optional parameters for this method
|
|
222
|
-
* @param {number} options.timeoutMs - connection timeout in milliseconds, defaults to 30s
|
|
223
|
-
* @returns {Promise<ResponseEntity>} HttpResponse indicating if delete was successful
|
|
218
|
+
/**
|
|
219
|
+
* Deletes a specified report
|
|
220
|
+
* @param {UUID} reportId - Id of the report being requested for deletion
|
|
221
|
+
* @param {Object} options - optional parameters for this method
|
|
222
|
+
* @param {number} options.timeoutMs - connection timeout in milliseconds, defaults to 30s
|
|
223
|
+
* @returns {Promise<ResponseEntity>} HttpResponse indicating if delete was successful
|
|
224
224
|
*/
|
|
225
225
|
deleteReport: function deleteReport(reportId, options) {
|
|
226
226
|
var _this4 = this;
|
|
@@ -249,12 +249,12 @@ var EDiscovery = _webexCore.WebexPlugin.extend((_dec = (0, _webexCore.waitForVal
|
|
|
249
249
|
}, _callee4);
|
|
250
250
|
}))();
|
|
251
251
|
},
|
|
252
|
-
/**
|
|
253
|
-
* Restarts a completed or cancelled report so that it begins again from scratch
|
|
254
|
-
* @param {UUID} reportId - Id of the report being requested
|
|
255
|
-
* @param {Object} options - optional parameters for this method
|
|
256
|
-
* @param {number} options.timeoutMs - connection timeout in milliseconds, defaults to 30s
|
|
257
|
-
* @returns {Promise<ResponseEntity<ReportRecord>>} Http response containing the report record
|
|
252
|
+
/**
|
|
253
|
+
* Restarts a completed or cancelled report so that it begins again from scratch
|
|
254
|
+
* @param {UUID} reportId - Id of the report being requested
|
|
255
|
+
* @param {Object} options - optional parameters for this method
|
|
256
|
+
* @param {number} options.timeoutMs - connection timeout in milliseconds, defaults to 30s
|
|
257
|
+
* @returns {Promise<ResponseEntity<ReportRecord>>} Http response containing the report record
|
|
258
258
|
*/
|
|
259
259
|
restartReport: function restartReport(reportId, options) {
|
|
260
260
|
var _this5 = this;
|
|
@@ -283,14 +283,14 @@ var EDiscovery = _webexCore.WebexPlugin.extend((_dec = (0, _webexCore.waitForVal
|
|
|
283
283
|
}, _callee5);
|
|
284
284
|
}))();
|
|
285
285
|
},
|
|
286
|
-
/**
|
|
287
|
-
* Retrieves content associated with a report
|
|
288
|
-
* @param {UUID|string} reportId - UUID or url of the report which contains the content
|
|
289
|
-
* @param {Object} options - optional parameters for this method
|
|
290
|
-
* @param {number} options.offset - start position from which to retrieve records
|
|
291
|
-
* @param {number} options.size - the number of records to retrieve
|
|
292
|
-
* @param {number} options.timeoutMs - connection timeout in milliseconds, defaults to 30s
|
|
293
|
-
* @returns {Promise<ResponseEntity<[Activity]>>} Http response containing the activities
|
|
286
|
+
/**
|
|
287
|
+
* Retrieves content associated with a report
|
|
288
|
+
* @param {UUID|string} reportId - UUID or url of the report which contains the content
|
|
289
|
+
* @param {Object} options - optional parameters for this method
|
|
290
|
+
* @param {number} options.offset - start position from which to retrieve records
|
|
291
|
+
* @param {number} options.size - the number of records to retrieve
|
|
292
|
+
* @param {number} options.timeoutMs - connection timeout in milliseconds, defaults to 30s
|
|
293
|
+
* @returns {Promise<ResponseEntity<[Activity]>>} Http response containing the activities
|
|
294
294
|
*/
|
|
295
295
|
getContent: function getContent(reportId, options) {
|
|
296
296
|
var _this6 = this;
|
|
@@ -324,15 +324,15 @@ var EDiscovery = _webexCore.WebexPlugin.extend((_dec = (0, _webexCore.waitForVal
|
|
|
324
324
|
}, _callee6);
|
|
325
325
|
}))();
|
|
326
326
|
},
|
|
327
|
-
/**
|
|
328
|
-
* Retrieves a list of content containers relevant to a specified report
|
|
329
|
-
* @param {UUID|string} reportId - UUID or url of the report being requested
|
|
330
|
-
* @param {Object} options - optional parameters for this method
|
|
331
|
-
* @param {number} options.offset - start position from which to retrieve records
|
|
332
|
-
* @param {number} options.size - the number of records to retrieve
|
|
333
|
-
* @param {number} options.timeoutMs - connection timeout in milliseconds, defaults to 30s
|
|
334
|
-
* @param {Set<Object>} options.types - Set of ContentContainerTypes to be retrieved
|
|
335
|
-
* @returns {Promise<ResponseEntity<ContentContainer>>} Http response containing the content containers
|
|
327
|
+
/**
|
|
328
|
+
* Retrieves a list of content containers relevant to a specified report
|
|
329
|
+
* @param {UUID|string} reportId - UUID or url of the report being requested
|
|
330
|
+
* @param {Object} options - optional parameters for this method
|
|
331
|
+
* @param {number} options.offset - start position from which to retrieve records
|
|
332
|
+
* @param {number} options.size - the number of records to retrieve
|
|
333
|
+
* @param {number} options.timeoutMs - connection timeout in milliseconds, defaults to 30s
|
|
334
|
+
* @param {Set<Object>} options.types - Set of ContentContainerTypes to be retrieved
|
|
335
|
+
* @returns {Promise<ResponseEntity<ContentContainer>>} Http response containing the content containers
|
|
336
336
|
*/
|
|
337
337
|
getContentContainer: function getContentContainer(reportId, options) {
|
|
338
338
|
var _this7 = this;
|
|
@@ -374,13 +374,13 @@ var EDiscovery = _webexCore.WebexPlugin.extend((_dec = (0, _webexCore.waitForVal
|
|
|
374
374
|
}, _callee7);
|
|
375
375
|
}))();
|
|
376
376
|
},
|
|
377
|
-
/**
|
|
378
|
-
* Retrieves information for a specific content container relevant to a specified report
|
|
379
|
-
* @param {UUID|string} reportId - UUID or url of the report being requested
|
|
380
|
-
* @param {UUID} containerId - Id of the contenyt container being requested
|
|
381
|
-
* @param {Object} options - optional parameters for this method
|
|
382
|
-
* @param {number} options.timeoutMs - connection timeout in milliseconds, defaults to 30s
|
|
383
|
-
* @returns {Promise<ResponseEntity<ContentContainer>>} Http response containing the specified content container
|
|
377
|
+
/**
|
|
378
|
+
* Retrieves information for a specific content container relevant to a specified report
|
|
379
|
+
* @param {UUID|string} reportId - UUID or url of the report being requested
|
|
380
|
+
* @param {UUID} containerId - Id of the contenyt container being requested
|
|
381
|
+
* @param {Object} options - optional parameters for this method
|
|
382
|
+
* @param {number} options.timeoutMs - connection timeout in milliseconds, defaults to 30s
|
|
383
|
+
* @returns {Promise<ResponseEntity<ContentContainer>>} Http response containing the specified content container
|
|
384
384
|
*/
|
|
385
385
|
getContentContainerByContainerId: function getContentContainerByContainerId(reportId, containerId, options) {
|
|
386
386
|
var _this8 = this;
|
|
@@ -431,12 +431,12 @@ var EDiscovery = _webexCore.WebexPlugin.extend((_dec = (0, _webexCore.waitForVal
|
|
|
431
431
|
}, _callee8);
|
|
432
432
|
}))();
|
|
433
433
|
},
|
|
434
|
-
/**
|
|
435
|
-
* The results of a getContentContainer or getContentContainerByContainerId request are written to the contentContainerCache
|
|
436
|
-
* since information for a container is likely to be accessed very frequently when decrypting activities
|
|
437
|
-
* @param {UUID} reportId - Id of the report which contains the relevant content summary
|
|
438
|
-
* @param {Array<Object>} containers - List of the container objects to be written to the cache
|
|
439
|
-
* @returns {Promise} - Promise resolution indicating operation is complete
|
|
434
|
+
/**
|
|
435
|
+
* The results of a getContentContainer or getContentContainerByContainerId request are written to the contentContainerCache
|
|
436
|
+
* since information for a container is likely to be accessed very frequently when decrypting activities
|
|
437
|
+
* @param {UUID} reportId - Id of the report which contains the relevant content summary
|
|
438
|
+
* @param {Array<Object>} containers - List of the container objects to be written to the cache
|
|
439
|
+
* @returns {Promise} - Promise resolution indicating operation is complete
|
|
440
440
|
*/
|
|
441
441
|
_writeToContentContainerCache: function _writeToContentContainerCache(reportId, containers) {
|
|
442
442
|
if (!reportId || !containers || !containers.length) {
|
|
@@ -466,19 +466,19 @@ var EDiscovery = _webexCore.WebexPlugin.extend((_dec = (0, _webexCore.waitForVal
|
|
|
466
466
|
_iterator.f();
|
|
467
467
|
}
|
|
468
468
|
},
|
|
469
|
-
/**
|
|
470
|
-
* Wipe the cache used by eDiscovery to store the space summaries and content containers.
|
|
471
|
-
* Good practice to clear it down when finished with a report to save RAM.
|
|
472
|
-
* @returns {undefined}
|
|
469
|
+
/**
|
|
470
|
+
* Wipe the cache used by eDiscovery to store the space summaries and content containers.
|
|
471
|
+
* Good practice to clear it down when finished with a report to save RAM.
|
|
472
|
+
* @returns {undefined}
|
|
473
473
|
*/
|
|
474
474
|
clearCache: function clearCache() {
|
|
475
475
|
this.contentContainerCache.clear();
|
|
476
476
|
},
|
|
477
|
-
/**
|
|
478
|
-
* Retrieves a uuid string from a report url
|
|
479
|
-
* @param {String} reportUrl - full destination address (including report id parameter) for the http request being sent
|
|
480
|
-
* e.g. 'http://ediscovery-intb.wbx2.com/ediscovery/api/v1/reports/3b10e625-2bd5-4efa-b866-58d6c93c505c'
|
|
481
|
-
* @returns {String} - uuid of the report
|
|
477
|
+
/**
|
|
478
|
+
* Retrieves a uuid string from a report url
|
|
479
|
+
* @param {String} reportUrl - full destination address (including report id parameter) for the http request being sent
|
|
480
|
+
* e.g. 'http://ediscovery-intb.wbx2.com/ediscovery/api/v1/reports/3b10e625-2bd5-4efa-b866-58d6c93c505c'
|
|
481
|
+
* @returns {String} - uuid of the report
|
|
482
482
|
*/
|
|
483
483
|
_getReportIdFromUrl: function _getReportIdFromUrl(reportUrl) {
|
|
484
484
|
if (reportUrl) {
|
|
@@ -493,12 +493,12 @@ var EDiscovery = _webexCore.WebexPlugin.extend((_dec = (0, _webexCore.waitForVal
|
|
|
493
493
|
// Regex found from `https://ihateregex.io/expr/url`
|
|
494
494
|
return /https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&\/\/=]*)/g.test(string);
|
|
495
495
|
},
|
|
496
|
-
/**
|
|
497
|
-
* Create the appropriate request options based on whether the reportId is a url or a uuid.
|
|
498
|
-
* @param {UUID|string} reportId - May be either a url for the report or a uuid.
|
|
499
|
-
* e.g. 'http://ediscovery-intb.wbx2.com/ediscovery/api/v1/reports/3b10e625-2bd5-4efa-b866-58d6c93c505c' or '3b10e625-2bd5-4efa-b866-58d6c93c505c'.
|
|
500
|
-
* @param {String} resource - The resource on the remote server to request
|
|
501
|
-
* @returns {[Options, uuid]} - The options to pass to `request` and the report uuid.
|
|
496
|
+
/**
|
|
497
|
+
* Create the appropriate request options based on whether the reportId is a url or a uuid.
|
|
498
|
+
* @param {UUID|string} reportId - May be either a url for the report or a uuid.
|
|
499
|
+
* e.g. 'http://ediscovery-intb.wbx2.com/ediscovery/api/v1/reports/3b10e625-2bd5-4efa-b866-58d6c93c505c' or '3b10e625-2bd5-4efa-b866-58d6c93c505c'.
|
|
500
|
+
* @param {String} resource - The resource on the remote server to request
|
|
501
|
+
* @returns {[Options, uuid]} - The options to pass to `request` and the report uuid.
|
|
502
502
|
*/
|
|
503
503
|
_createRequestOptions: function _createRequestOptions(reportId, resource) {
|
|
504
504
|
var requestOptions;
|
|
@@ -527,11 +527,11 @@ var EDiscovery = _webexCore.WebexPlugin.extend((_dec = (0, _webexCore.waitForVal
|
|
|
527
527
|
}
|
|
528
528
|
return [requestOptions, reportUUID];
|
|
529
529
|
},
|
|
530
|
-
/**
|
|
531
|
-
* Retrieves a config object from the service which can be used by the client for optimal performance, e.g. content page size
|
|
532
|
-
* @param {Object} options - optional parameters for this method
|
|
533
|
-
* @param {number} options.timeoutMs - connection timeout in milliseconds, defaults to 30s
|
|
534
|
-
* @returns {Promise<Config>} Http response containing the config object
|
|
530
|
+
/**
|
|
531
|
+
* Retrieves a config object from the service which can be used by the client for optimal performance, e.g. content page size
|
|
532
|
+
* @param {Object} options - optional parameters for this method
|
|
533
|
+
* @param {number} options.timeoutMs - connection timeout in milliseconds, defaults to 30s
|
|
534
|
+
* @returns {Promise<Config>} Http response containing the config object
|
|
535
535
|
*/
|
|
536
536
|
getClientConfig: function getClientConfig(options) {
|
|
537
537
|
var _this9 = this;
|
|
@@ -554,13 +554,13 @@ var EDiscovery = _webexCore.WebexPlugin.extend((_dec = (0, _webexCore.waitForVal
|
|
|
554
554
|
}, _callee9);
|
|
555
555
|
}))();
|
|
556
556
|
},
|
|
557
|
-
/**
|
|
558
|
-
* Submits an audit event to the eDiscovery service for admin use. Only expected to be used for
|
|
559
|
-
* the getContentContainer API
|
|
560
|
-
* @param {UUID} reportId - Id of the report to send an audit log for
|
|
561
|
-
* @param {Object} options - optional parameters for this method
|
|
562
|
-
* @param {number} options.timeoutMs - connection timeout in milliseconds, defaults to 30s
|
|
563
|
-
* @returns {Promise<Config>} Http response containing the config object
|
|
557
|
+
/**
|
|
558
|
+
* Submits an audit event to the eDiscovery service for admin use. Only expected to be used for
|
|
559
|
+
* the getContentContainer API
|
|
560
|
+
* @param {UUID} reportId - Id of the report to send an audit log for
|
|
561
|
+
* @param {Object} options - optional parameters for this method
|
|
562
|
+
* @param {number} options.timeoutMs - connection timeout in milliseconds, defaults to 30s
|
|
563
|
+
* @returns {Promise<Config>} Http response containing the config object
|
|
564
564
|
*/
|
|
565
565
|
postAuditLog: function postAuditLog(reportId, options) {
|
|
566
566
|
var _this10 = this;
|
|
@@ -589,7 +589,7 @@ var EDiscovery = _webexCore.WebexPlugin.extend((_dec = (0, _webexCore.waitForVal
|
|
|
589
589
|
}, _callee10);
|
|
590
590
|
}))();
|
|
591
591
|
},
|
|
592
|
-
version: "2.59.
|
|
592
|
+
version: "2.59.4"
|
|
593
593
|
}, ((0, _applyDecoratedDescriptor2.default)(_obj, "createReport", [_dec], (0, _getOwnPropertyDescriptor.default)(_obj, "createReport"), _obj), (0, _applyDecoratedDescriptor2.default)(_obj, "getReport", [_dec2], (0, _getOwnPropertyDescriptor.default)(_obj, "getReport"), _obj), (0, _applyDecoratedDescriptor2.default)(_obj, "getReports", [_dec3], (0, _getOwnPropertyDescriptor.default)(_obj, "getReports"), _obj), (0, _applyDecoratedDescriptor2.default)(_obj, "deleteReport", [_dec4], (0, _getOwnPropertyDescriptor.default)(_obj, "deleteReport"), _obj), (0, _applyDecoratedDescriptor2.default)(_obj, "restartReport", [_dec5], (0, _getOwnPropertyDescriptor.default)(_obj, "restartReport"), _obj), (0, _applyDecoratedDescriptor2.default)(_obj, "getContent", [_dec6, _dec7], (0, _getOwnPropertyDescriptor.default)(_obj, "getContent"), _obj), (0, _applyDecoratedDescriptor2.default)(_obj, "getContentContainer", [_dec8, _dec9], (0, _getOwnPropertyDescriptor.default)(_obj, "getContentContainer"), _obj), (0, _applyDecoratedDescriptor2.default)(_obj, "getContentContainerByContainerId", [_dec10, _dec11], (0, _getOwnPropertyDescriptor.default)(_obj, "getContentContainerByContainerId"), _obj), (0, _applyDecoratedDescriptor2.default)(_obj, "getClientConfig", [_dec12], (0, _getOwnPropertyDescriptor.default)(_obj, "getClientConfig"), _obj), (0, _applyDecoratedDescriptor2.default)(_obj, "postAuditLog", [_dec13], (0, _getOwnPropertyDescriptor.default)(_obj, "postAuditLog"), _obj)), _obj)));
|
|
594
594
|
var _default2 = EDiscovery;
|
|
595
595
|
exports.default = _default2;
|