@broadcom/idms-for-zowe-cli 1.2.0 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/Datasources.js +0 -22
- package/lib/api/Datasources.js.map +1 -1
- package/lib/api/Dcmt.js +0 -36
- package/lib/api/Dcmt.js.map +1 -1
- package/lib/api/Dcuf.js +0 -26
- package/lib/api/Dcuf.js.map +1 -1
- package/lib/api/IDMSSession.d.ts +1 -41
- package/lib/api/IDMSSession.js +11 -65
- package/lib/api/IDMSSession.js.map +1 -1
- package/lib/api/Log.js +0 -22
- package/lib/api/Log.js.map +1 -1
- package/lib/api/Systems.js +0 -22
- package/lib/api/Systems.js.map +1 -1
- package/lib/api/TransactionDetails.js +0 -22
- package/lib/api/TransactionDetails.js.map +1 -1
- package/lib/api/UserTasks.js +0 -22
- package/lib/api/UserTasks.js.map +1 -1
- package/lib/api/doc/IDatasource.js +0 -22
- package/lib/api/doc/IDatasource.js.map +1 -1
- package/lib/api/doc/ILogRecord.js +0 -22
- package/lib/api/doc/ILogRecord.js.map +1 -1
- package/lib/api/doc/ILogReport.js +0 -22
- package/lib/api/doc/ILogReport.js.map +1 -1
- package/lib/api/doc/ISystem.js +0 -22
- package/lib/api/doc/ISystem.js.map +1 -1
- package/lib/api/doc/ITaskCommand.js +0 -22
- package/lib/api/doc/ITaskCommand.js.map +1 -1
- package/lib/api/doc/ITransactionDetail.js +0 -22
- package/lib/api/doc/ITransactionDetail.js.map +1 -1
- package/lib/api/doc/IUserTask.js +0 -22
- package/lib/api/doc/IUserTask.js.map +1 -1
- package/lib/cli/-strings-/en.js +0 -54
- package/lib/cli/-strings-/en.js.map +1 -1
- package/lib/cli/IDMSBaseHandler.js +0 -25
- package/lib/cli/IDMSBaseHandler.js.map +1 -1
- package/lib/cli/issue/Issue.definition.js +0 -22
- package/lib/cli/issue/Issue.definition.js.map +1 -1
- package/lib/cli/issue/dcmt-display/DcmtDisplay.definition.js +0 -25
- package/lib/cli/issue/dcmt-display/DcmtDisplay.definition.js.map +1 -1
- package/lib/cli/issue/dcmt-display/DcmtDisplay.handler.js +0 -25
- package/lib/cli/issue/dcmt-display/DcmtDisplay.handler.js.map +1 -1
- package/lib/cli/issue/dcmt-help/DcmtHelp.definition.js +0 -25
- package/lib/cli/issue/dcmt-help/DcmtHelp.definition.js.map +1 -1
- package/lib/cli/issue/dcmt-help/DcmtHelp.handler.js +0 -25
- package/lib/cli/issue/dcmt-help/DcmtHelp.handler.js.map +1 -1
- package/lib/cli/issue/dcmt-quiesce/DcmtQuiesce.definition.js +0 -25
- package/lib/cli/issue/dcmt-quiesce/DcmtQuiesce.definition.js.map +1 -1
- package/lib/cli/issue/dcmt-quiesce/DcmtQuiesce.handler.js +0 -25
- package/lib/cli/issue/dcmt-quiesce/DcmtQuiesce.handler.js.map +1 -1
- package/lib/cli/issue/dcmt-shutdown/DcmtShutdown.definition.js +0 -25
- package/lib/cli/issue/dcmt-shutdown/DcmtShutdown.definition.js.map +1 -1
- package/lib/cli/issue/dcmt-shutdown/DcmtShutdown.handler.js +0 -25
- package/lib/cli/issue/dcmt-shutdown/DcmtShutdown.handler.js.map +1 -1
- package/lib/cli/issue/dcmt-statistics/DcmtStatistics.definition.js +0 -25
- package/lib/cli/issue/dcmt-statistics/DcmtStatistics.definition.js.map +1 -1
- package/lib/cli/issue/dcmt-statistics/DcmtStatistics.handler.js +0 -25
- package/lib/cli/issue/dcmt-statistics/DcmtStatistics.handler.js.map +1 -1
- package/lib/cli/issue/dcmt-test/DcmtTest.definition.js +0 -26
- package/lib/cli/issue/dcmt-test/DcmtTest.definition.js.map +1 -1
- package/lib/cli/issue/dcmt-test/DcmtTest.handler.js +0 -25
- package/lib/cli/issue/dcmt-test/DcmtTest.handler.js.map +1 -1
- package/lib/cli/issue/dcmt-vary/DcmtVary.definition.js +0 -25
- package/lib/cli/issue/dcmt-vary/DcmtVary.definition.js.map +1 -1
- package/lib/cli/issue/dcmt-vary/DcmtVary.handler.js +0 -22
- package/lib/cli/issue/dcmt-vary/DcmtVary.handler.js.map +1 -1
- package/lib/cli/issue/dcuf-help/DcufHelp.definition.js +0 -25
- package/lib/cli/issue/dcuf-help/DcufHelp.definition.js.map +1 -1
- package/lib/cli/issue/dcuf-help/DcufHelp.handler.js +0 -22
- package/lib/cli/issue/dcuf-help/DcufHelp.handler.js.map +1 -1
- package/lib/cli/issue/dcuf-show/DcufShow.definition.js +0 -25
- package/lib/cli/issue/dcuf-show/DcufShow.definition.js.map +1 -1
- package/lib/cli/issue/dcuf-show/DcufShow.handler.js +0 -22
- package/lib/cli/issue/dcuf-show/DcufShow.handler.js.map +1 -1
- package/lib/cli/list/List.definition.js +0 -22
- package/lib/cli/list/List.definition.js.map +1 -1
- package/lib/cli/list/datasources/Datasources.definition.js +0 -24
- package/lib/cli/list/datasources/Datasources.definition.js.map +1 -1
- package/lib/cli/list/datasources/Datasources.handler.d.ts +0 -17
- package/lib/cli/list/datasources/Datasources.handler.js +0 -40
- package/lib/cli/list/datasources/Datasources.handler.js.map +1 -1
- package/lib/cli/list/log/Log.definition.js +0 -25
- package/lib/cli/list/log/Log.definition.js.map +1 -1
- package/lib/cli/list/log/Log.handler.js +0 -22
- package/lib/cli/list/log/Log.handler.js.map +1 -1
- package/lib/cli/list/systems/Systems.definition.js +0 -25
- package/lib/cli/list/systems/Systems.definition.js.map +1 -1
- package/lib/cli/list/systems/Systems.handler.d.ts +0 -17
- package/lib/cli/list/systems/Systems.handler.js +0 -40
- package/lib/cli/list/systems/Systems.handler.js.map +1 -1
- package/lib/cli/list/transactions/TransactionDetails.definition.js +0 -25
- package/lib/cli/list/transactions/TransactionDetails.definition.js.map +1 -1
- package/lib/cli/list/transactions/TransactionDetails.handler.js +0 -22
- package/lib/cli/list/transactions/TransactionDetails.handler.js.map +1 -1
- package/lib/cli/list/user-tasks/UserTasks.definition.js +0 -25
- package/lib/cli/list/user-tasks/UserTasks.definition.js.map +1 -1
- package/lib/cli/list/user-tasks/UserTasks.handler.js +0 -22
- package/lib/cli/list/user-tasks/UserTasks.handler.js.map +1 -1
- package/lib/imperative.js +6 -24
- package/lib/imperative.js.map +1 -1
- package/lib/index.d.ts +0 -9
- package/lib/index.js +0 -31
- package/lib/index.js.map +1 -1
- package/lib/util/IdmsRestClient.d.ts +0 -10
- package/lib/util/IdmsRestClient.js +2 -38
- package/lib/util/IdmsRestClient.js.map +1 -1
- package/package.json +7 -14
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAgCA,6CAA2B;AAC3B,6CAA2B;AAC3B,gDAA8B"}
|
|
@@ -1,15 +1,5 @@
|
|
|
1
1
|
import { IImperativeError, Logger, RestClient } from "@zowe/imperative";
|
|
2
2
|
export declare class IdmsRestClient extends RestClient {
|
|
3
|
-
/**
|
|
4
|
-
* Use the Zowe logger instead of the imperative logger
|
|
5
|
-
* @type {Logger}
|
|
6
|
-
*/
|
|
7
3
|
get log(): Logger;
|
|
8
|
-
/**
|
|
9
|
-
* Process an error encountered in the rest client
|
|
10
|
-
* @param {IImperativeError} original - the original error automatically built by the abstract rest client
|
|
11
|
-
* @returns {IImperativeError} - the processed error with details added
|
|
12
|
-
* @memberof IdmsRestClient
|
|
13
|
-
*/
|
|
14
4
|
protected processError(original: IImperativeError): IImperativeError;
|
|
15
5
|
}
|
|
@@ -1,64 +1,28 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
/*
|
|
3
|
-
* Copyright (c) 2022 Broadcom. All Rights Reserved. The term
|
|
4
|
-
* "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
|
|
5
|
-
*
|
|
6
|
-
* This software and all information contained therein is
|
|
7
|
-
* confidential and proprietary and shall not be duplicated,
|
|
8
|
-
* used, disclosed, or disseminated in any way except as
|
|
9
|
-
* authorized by the applicable license agreement, without the
|
|
10
|
-
* express written permission of Broadcom. All authorized
|
|
11
|
-
* reproductions must be marked with this language.
|
|
12
|
-
*
|
|
13
|
-
* EXCEPT AS SET FORTH IN THE APPLICABLE LICENSE AGREEMENT, TO
|
|
14
|
-
* THE EXTENT PERMITTED BY APPLICABLE LAW, BROADCOM PROVIDES THIS
|
|
15
|
-
* SOFTWARE WITHOUT WARRANTY OF ANY KIND, INCLUDING WITHOUT
|
|
16
|
-
* LIMITATION, ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR
|
|
17
|
-
* FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT WILL BROADCOM
|
|
18
|
-
* BE LIABLE TO THE END USER OR ANY THIRD PARTY FOR ANY LOSS OR
|
|
19
|
-
* DAMAGE, DIRECT OR INDIRECT, FROM THE USE OF THIS SOFTWARE,
|
|
20
|
-
* INCLUDING WITHOUT LIMITATION, LOST PROFITS, BUSINESS
|
|
21
|
-
* INTERRUPTION, GOODWILL, OR LOST DATA, EVEN IF BROADCOM IS
|
|
22
|
-
* EXPRESSLY ADVISED OF SUCH LOSS OR DAMAGE.
|
|
23
|
-
*/
|
|
24
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
3
|
exports.IdmsRestClient = void 0;
|
|
26
4
|
const imperative_1 = require("@zowe/imperative");
|
|
27
5
|
class IdmsRestClient extends imperative_1.RestClient {
|
|
28
|
-
/**
|
|
29
|
-
* Use the Zowe logger instead of the imperative logger
|
|
30
|
-
* @type {Logger}
|
|
31
|
-
*/
|
|
32
6
|
get log() {
|
|
33
7
|
return imperative_1.Logger.getAppLogger();
|
|
34
8
|
}
|
|
35
|
-
/**
|
|
36
|
-
* Process an error encountered in the rest client
|
|
37
|
-
* @param {IImperativeError} original - the original error automatically built by the abstract rest client
|
|
38
|
-
* @returns {IImperativeError} - the processed error with details added
|
|
39
|
-
* @memberof IdmsRestClient
|
|
40
|
-
*/
|
|
41
9
|
processError(original) {
|
|
42
10
|
original.msg = "IDMS REST API Error:\n" + original.msg;
|
|
43
11
|
let details = original.causeErrors;
|
|
44
12
|
try {
|
|
45
13
|
const json = JSON.parse(details);
|
|
46
|
-
// if we didn't get an error trying to parse json, check if there is a stack
|
|
47
|
-
// on the JSON error and delete it
|
|
48
14
|
if (json.stack != null) {
|
|
49
15
|
this.log.error("An error was encountered in z/OSMF with a stack." +
|
|
50
16
|
" Here is the full error before deleting the stack:\n%s", JSON.stringify(json));
|
|
51
17
|
this.log.error("The stack has been deleted from the error before displaying the error to the user");
|
|
52
|
-
delete json.stack;
|
|
18
|
+
delete json.stack;
|
|
53
19
|
}
|
|
54
|
-
// if we didn't get an error, make the parsed details part of the error
|
|
55
20
|
details = imperative_1.TextUtils.prettyJson(json, undefined, false);
|
|
56
21
|
}
|
|
57
22
|
catch (_a) {
|
|
58
|
-
// if there's an error, the causeErrors text is not json
|
|
59
23
|
this.log.debug("Encountered an error trying to parse causeErrors as JSON - causeErrors is likely not JSON format");
|
|
60
24
|
}
|
|
61
|
-
original.msg += "\n" + details;
|
|
25
|
+
original.msg += "\n" + details;
|
|
62
26
|
return original;
|
|
63
27
|
}
|
|
64
28
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"IdmsRestClient.js","sourceRoot":"","sources":["../../src/util/IdmsRestClient.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"IdmsRestClient.js","sourceRoot":"","sources":["../../src/util/IdmsRestClient.ts"],"names":[],"mappings":";;;AAuBA,iDAAmF;AAEnF,MAAa,cAAe,SAAQ,uBAAU;IAK1C,IAAW,GAAG;QACV,OAAO,mBAAM,CAAC,YAAY,EAAE,CAAC;IACjC,CAAC;IAQS,YAAY,CAAC,QAA0B;QAC7C,QAAQ,CAAC,GAAG,GAAG,wBAAwB,GAAG,QAAQ,CAAC,GAAG,CAAC;QACvD,IAAI,OAAO,GAAG,QAAQ,CAAC,WAAW,CAAC;QAEnC,IAAI,CAAC;YACD,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;YAGjC,IAAI,IAAI,CAAC,KAAK,IAAI,IAAI,EAAE,CAAC;gBACrB,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,kDAAkD;oBAC7D,wDAAwD,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC;gBACpF,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,mFAAmF,CAAC,CAAC;gBACpG,OAAO,IAAI,CAAC,KAAK,CAAC;YACtB,CAAC;YAGD,OAAO,GAAG,sBAAS,CAAC,UAAU,CAAC,IAAI,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC;QAC3D,CAAC;QAAC,WAAM,CAAC;YAEL,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,mGAAmG,CAAC,CAAC;QACxH,CAAC;QAED,QAAQ,CAAC,GAAG,IAAI,IAAI,GAAG,OAAO,CAAC;QAC/B,OAAO,QAAQ,CAAC;IACpB,CAAC;CACJ;AAxCD,wCAwCC"}
|
package/package.json
CHANGED
|
@@ -1,34 +1,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@broadcom/idms-for-zowe-cli",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.2",
|
|
4
4
|
"description": "IDMS plug-in for Zowe CLI",
|
|
5
|
-
"homepage": "https://github.gwd.broadcom.net/MFD/idms-cli#readme",
|
|
6
|
-
"bugs": {
|
|
7
|
-
"url": "https://github.gwd.broadcom.net/MFD/idms-cli/issues"
|
|
8
|
-
},
|
|
9
5
|
"keywords": [
|
|
10
6
|
"zowe",
|
|
11
7
|
"cli",
|
|
12
8
|
"idms",
|
|
13
9
|
"plugin"
|
|
14
10
|
],
|
|
15
|
-
"repository": "",
|
|
16
|
-
"publishConfig": {
|
|
17
|
-
"registry": "https://registry.npmjs.org/"
|
|
18
|
-
},
|
|
19
11
|
"main": "lib/index.js",
|
|
20
12
|
"files": [
|
|
21
13
|
"lib",
|
|
22
14
|
"images"
|
|
23
15
|
],
|
|
24
16
|
"scripts": {
|
|
17
|
+
"ci:install": "npm ci --ignore-scripts --no-audit --no-fund",
|
|
25
18
|
"build": "node scripts/updateLicense.js && tsc --pretty && npm run checkTestsCompile",
|
|
26
19
|
"checkTestsCompile": "echo \"Checking that test source compiles...\" && tsc --project __tests__/test-tsconfig.json --noEmit ",
|
|
27
20
|
"prebuild": "npm run clean && npm run lint && echo Using TypeScript && tsc --version",
|
|
28
21
|
"clean": "rimraf lib",
|
|
29
22
|
"watch": "tsc --pretty --watch",
|
|
30
|
-
"prepublishOnly": "
|
|
31
|
-
"lint": "eslint \"src/**/*.ts\"",
|
|
23
|
+
"prepublishOnly": "npm run build",
|
|
24
|
+
"lint": "eslint \"src/**/*.ts\" --max-warnings 0",
|
|
32
25
|
"test": "npm run test:unit && npm run test:integration && npm run test:system",
|
|
33
26
|
"test:system": "env-cmd -f __tests__/__resources__/env/system.env jest .*/__system__/.* --coverage false",
|
|
34
27
|
"test:integration": "env-cmd -f __tests__/__resources__/env/integration.env jest .*/__integration__/.* --coverage false",
|
|
@@ -47,9 +40,9 @@
|
|
|
47
40
|
"@types/node": "^22.13.0",
|
|
48
41
|
"@typescript-eslint/eslint-plugin": "^8.23.0",
|
|
49
42
|
"@typescript-eslint/parser": "^8.23.0",
|
|
50
|
-
"@zowe/cli": "^8.
|
|
43
|
+
"@zowe/cli": "^8.32.2",
|
|
51
44
|
"@zowe/cli-test-utils": "^8.12.0",
|
|
52
|
-
"@zowe/imperative": "^8.
|
|
45
|
+
"@zowe/imperative": "^8.32.2",
|
|
53
46
|
"env-cmd": "^10.1.0",
|
|
54
47
|
"eslint": "^9.19.0",
|
|
55
48
|
"eslint-plugin-jest": "^28.11.0",
|
|
@@ -62,7 +55,7 @@
|
|
|
62
55
|
"jest-environment-node": "^29.7.0",
|
|
63
56
|
"jest-environment-node-debug": "^2.0.0",
|
|
64
57
|
"jest-html-reporter": "^3.10.2",
|
|
65
|
-
"jest-junit": "^
|
|
58
|
+
"jest-junit": "^17.0.0",
|
|
66
59
|
"jest-stare": "^2.5.2",
|
|
67
60
|
"json-server": "^0.17.4",
|
|
68
61
|
"madge": "^8.0.0",
|