@broadcom/idms-for-zowe-cli 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +36 -5
- package/images/zowe-conformant-cli-zowev1-color.png +0 -0
- package/images/zowe-conformant-zowev2-cli-color.png +0 -0
- package/lib/api/Datasources.js.map +1 -1
- package/lib/api/Dcmt.js.map +1 -1
- package/lib/api/Dcuf.js.map +1 -1
- package/lib/api/IDMSSession.d.ts +7 -0
- package/lib/api/IDMSSession.js +32 -28
- package/lib/api/IDMSSession.js.map +1 -1
- package/lib/api/Log.js.map +1 -1
- package/lib/api/Systems.js.map +1 -1
- package/lib/api/TransactionDetails.js.map +1 -1
- package/lib/api/UserTasks.js.map +1 -1
- package/lib/cli/-strings-/en.js +14 -7
- package/lib/cli/-strings-/en.js.map +1 -1
- package/lib/cli/IDMSBaseHandler.d.ts +2 -3
- package/lib/cli/IDMSBaseHandler.js +1 -1
- package/lib/cli/IDMSBaseHandler.js.map +1 -1
- package/lib/cli/issue/Issue.definition.js +1 -22
- package/lib/cli/issue/Issue.definition.js.map +1 -1
- package/lib/cli/issue/dcmt-display/DcmtDisplay.definition.js +6 -3
- package/lib/cli/issue/dcmt-display/DcmtDisplay.definition.js.map +1 -1
- package/lib/cli/issue/dcmt-display/DcmtDisplay.handler.js.map +1 -1
- package/lib/cli/issue/dcmt-help/DcmtHelp.definition.js +6 -3
- package/lib/cli/issue/dcmt-help/DcmtHelp.definition.js.map +1 -1
- package/lib/cli/issue/dcmt-help/DcmtHelp.handler.js.map +1 -1
- package/lib/cli/issue/dcmt-quiesce/DcmtQuiesce.definition.js +6 -3
- package/lib/cli/issue/dcmt-quiesce/DcmtQuiesce.definition.js.map +1 -1
- package/lib/cli/issue/dcmt-quiesce/DcmtQuiesce.handler.js.map +1 -1
- package/lib/cli/issue/dcmt-shutdown/DcmtShutdown.definition.js +6 -3
- package/lib/cli/issue/dcmt-shutdown/DcmtShutdown.definition.js.map +1 -1
- package/lib/cli/issue/dcmt-shutdown/DcmtShutdown.handler.js.map +1 -1
- package/lib/cli/issue/dcmt-statistics/DcmtStatistics.definition.js +6 -3
- package/lib/cli/issue/dcmt-statistics/DcmtStatistics.definition.js.map +1 -1
- package/lib/cli/issue/dcmt-statistics/DcmtStatistics.handler.js.map +1 -1
- package/lib/cli/issue/dcmt-test/DcmtTest.definition.js +9 -4
- package/lib/cli/issue/dcmt-test/DcmtTest.definition.js.map +1 -1
- package/lib/cli/issue/dcmt-test/DcmtTest.handler.js.map +1 -1
- package/lib/cli/issue/dcmt-vary/DcmtVary.definition.js +6 -3
- package/lib/cli/issue/dcmt-vary/DcmtVary.definition.js.map +1 -1
- package/lib/cli/issue/dcmt-vary/DcmtVary.handler.js.map +1 -1
- package/lib/cli/issue/dcuf-help/DcufHelp.definition.js +6 -3
- package/lib/cli/issue/dcuf-help/DcufHelp.definition.js.map +1 -1
- package/lib/cli/issue/dcuf-help/DcufHelp.handler.js.map +1 -1
- package/lib/cli/issue/dcuf-show/DcufShow.definition.js +6 -3
- package/lib/cli/issue/dcuf-show/DcufShow.definition.js.map +1 -1
- package/lib/cli/issue/dcuf-show/DcufShow.handler.js.map +1 -1
- package/lib/cli/list/List.definition.js.map +1 -1
- package/lib/cli/list/datasources/Datasources.definition.js +3 -1
- package/lib/cli/list/datasources/Datasources.definition.js.map +1 -1
- package/lib/cli/list/datasources/Datasources.handler.js +1 -1
- package/lib/cli/list/datasources/Datasources.handler.js.map +1 -1
- package/lib/cli/list/log/Log.definition.js +6 -12
- package/lib/cli/list/log/Log.definition.js.map +1 -1
- package/lib/cli/list/log/Log.handler.js.map +1 -1
- package/lib/cli/list/systems/Systems.definition.js +5 -2
- package/lib/cli/list/systems/Systems.definition.js.map +1 -1
- package/lib/cli/list/systems/Systems.handler.js +1 -1
- package/lib/cli/list/systems/Systems.handler.js.map +1 -1
- package/lib/cli/list/transactions/TransactionDetails.definition.js +5 -2
- package/lib/cli/list/transactions/TransactionDetails.definition.js.map +1 -1
- package/lib/cli/list/transactions/TransactionDetails.handler.js.map +1 -1
- package/lib/cli/list/user-tasks/UserTasks.definition.js +5 -2
- package/lib/cli/list/user-tasks/UserTasks.definition.js.map +1 -1
- package/lib/cli/list/user-tasks/UserTasks.handler.js.map +1 -1
- package/lib/imperative.js +9 -27
- package/lib/imperative.js.map +1 -1
- package/lib/util/IdmsRestClient.js +1 -1
- package/lib/util/IdmsRestClient.js.map +1 -1
- package/package.json +32 -28
- package/lib/healthCheck.Handler.d.ts +0 -4
- package/lib/healthCheck.Handler.js +0 -46
- package/lib/healthCheck.Handler.js.map +0 -1
- package/lib/overrides/CredentialManager.override.d.ts +0 -0
- package/lib/overrides/CredentialManager.override.js +0 -83
- package/lib/overrides/CredentialManager.override.js.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@broadcom/idms-for-zowe-cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "IDMS plug-in for Zowe CLI",
|
|
5
5
|
"homepage": "https://github.gwd.broadcom.net/MFD/idms-cli#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -18,7 +18,8 @@
|
|
|
18
18
|
},
|
|
19
19
|
"main": "lib/index.js",
|
|
20
20
|
"files": [
|
|
21
|
-
"lib"
|
|
21
|
+
"lib",
|
|
22
|
+
"images"
|
|
22
23
|
],
|
|
23
24
|
"scripts": {
|
|
24
25
|
"build": "node scripts/updateLicense.js && tsc --pretty && npm run checkTestsCompile",
|
|
@@ -38,36 +39,39 @@
|
|
|
38
39
|
"configurationModule": "lib/imperative.js"
|
|
39
40
|
},
|
|
40
41
|
"peerDependencies": {
|
|
41
|
-
"@zowe/imperative": "^
|
|
42
|
+
"@zowe/imperative": "^8.12.0"
|
|
42
43
|
},
|
|
43
44
|
"devDependencies": {
|
|
44
|
-
"@types/fs-extra": "^11.0.
|
|
45
|
-
"@types/jest": "^
|
|
46
|
-
"@types/node": "^
|
|
47
|
-
"@
|
|
48
|
-
"@typescript-eslint/
|
|
49
|
-
"@
|
|
50
|
-
"@zowe/cli": "^
|
|
51
|
-
"@zowe/imperative": "^
|
|
45
|
+
"@types/fs-extra": "^11.0.4",
|
|
46
|
+
"@types/jest": "^29.5.14",
|
|
47
|
+
"@types/node": "^22.13.0",
|
|
48
|
+
"@typescript-eslint/eslint-plugin": "^8.23.0",
|
|
49
|
+
"@typescript-eslint/parser": "^8.23.0",
|
|
50
|
+
"@zowe/cli": "^8.14.1",
|
|
51
|
+
"@zowe/cli-test-utils": "^8.12.0",
|
|
52
|
+
"@zowe/imperative": "^8.14.1",
|
|
52
53
|
"env-cmd": "^10.1.0",
|
|
53
|
-
"eslint": "^
|
|
54
|
-
"eslint-plugin-jest": "^
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"jest
|
|
54
|
+
"eslint": "^9.19.0",
|
|
55
|
+
"eslint-plugin-jest": "^28.11.0",
|
|
56
|
+
"eslint-plugin-license-header": "^0.6.1",
|
|
57
|
+
"eslint-plugin-unused-imports": "^4.1.4",
|
|
58
|
+
"fs-extra": "^11.3.0",
|
|
59
|
+
"husky": "^9.1.7",
|
|
60
|
+
"jest": "^29.7.0",
|
|
61
|
+
"jest-cli": "^29.7.0",
|
|
62
|
+
"jest-environment-node": "^29.7.0",
|
|
60
63
|
"jest-environment-node-debug": "^2.0.0",
|
|
61
|
-
"jest-html-reporter": "^3.
|
|
62
|
-
"jest-junit": "^
|
|
63
|
-
"jest-stare": "^2.
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"ts-
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"
|
|
64
|
+
"jest-html-reporter": "^3.10.2",
|
|
65
|
+
"jest-junit": "^16.0.0",
|
|
66
|
+
"jest-stare": "^2.5.2",
|
|
67
|
+
"json-server": "^0.17.4",
|
|
68
|
+
"madge": "^8.0.0",
|
|
69
|
+
"rimraf": "^6.0.1",
|
|
70
|
+
"ts-jest": "^29.2.5",
|
|
71
|
+
"ts-node": "^10.9.2",
|
|
72
|
+
"typedoc": "^0.27.6",
|
|
73
|
+
"typescript": "^5.7.3",
|
|
74
|
+
"uuid": "^11.0.5"
|
|
71
75
|
},
|
|
72
76
|
"jest": {
|
|
73
77
|
"modulePathIgnorePatterns": [
|
|
@@ -1,46 +0,0 @@
|
|
|
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
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
25
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
26
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
27
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
28
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
29
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
30
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
31
|
-
});
|
|
32
|
-
};
|
|
33
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
34
|
-
const imperative_1 = require("@zowe/imperative");
|
|
35
|
-
class HealthCheckHandler {
|
|
36
|
-
process(params) {
|
|
37
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
38
|
-
imperative_1.Logger.getImperativeLogger().debug("Invoked health check handler");
|
|
39
|
-
params.response.console.log("You would report problems identified by healthCheck.\n" +
|
|
40
|
-
"This handler is not currently called by Imperative, but\n" +
|
|
41
|
-
"its existence prevents a warning during plugin validation.");
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
exports.default = HealthCheckHandler;
|
|
46
|
-
//# sourceMappingURL=healthCheck.Handler.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"healthCheck.Handler.js","sourceRoot":"","sources":["../src/healthCheck.Handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;EAqBE;;;;;;;;;;;AAEF,iDAA6E;AAE7E,MAAqB,kBAAkB;IACxB,OAAO,CAAC,MAA0B;;YAC7C,mBAAM,CAAC,mBAAmB,EAAE,CAAC,KAAK,CAAC,8BAA8B,CAAC,CAAC;YACnE,MAAM,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,wDAAwD;gBAClF,2DAA2D;gBAC3D,4DAA4D,CAC7D,CAAC;QACJ,CAAC;KAAA;CACF;AARD,qCAQC"}
|
|
File without changes
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) 2022 Broadcom. All Rights Reserved. The term
|
|
3
|
-
* "Broadcom" refers to Broadcom Inc. and/or its subsidiaries.
|
|
4
|
-
*
|
|
5
|
-
* This software and all information contained therein is
|
|
6
|
-
* confidential and proprietary and shall not be duplicated,
|
|
7
|
-
* used, disclosed, or disseminated in any way except as
|
|
8
|
-
* authorized by the applicable license agreement, without the
|
|
9
|
-
* express written permission of Broadcom. All authorized
|
|
10
|
-
* reproductions must be marked with this language.
|
|
11
|
-
*
|
|
12
|
-
* EXCEPT AS SET FORTH IN THE APPLICABLE LICENSE AGREEMENT, TO
|
|
13
|
-
* THE EXTENT PERMITTED BY APPLICABLE LAW, BROADCOM PROVIDES THIS
|
|
14
|
-
* SOFTWARE WITHOUT WARRANTY OF ANY KIND, INCLUDING WITHOUT
|
|
15
|
-
* LIMITATION, ANY IMPLIED WARRANTIES OF MERCHANTABILITY OR
|
|
16
|
-
* FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT WILL BROADCOM
|
|
17
|
-
* BE LIABLE TO THE END USER OR ANY THIRD PARTY FOR ANY LOSS OR
|
|
18
|
-
* DAMAGE, DIRECT OR INDIRECT, FROM THE USE OF THIS SOFTWARE,
|
|
19
|
-
* INCLUDING WITHOUT LIMITATION, LOST PROFITS, BUSINESS
|
|
20
|
-
* INTERRUPTION, GOODWILL, OR LOST DATA, EVEN IF BROADCOM IS
|
|
21
|
-
* EXPRESSLY ADVISED OF SUCH LOSS OR DAMAGE.
|
|
22
|
-
*/
|
|
23
|
-
// import {AbstractCredentialManager, IProfileLoaded, Logger, SecureCredential} from "@zowe/imperative";
|
|
24
|
-
/*
|
|
25
|
-
* This is an example of overriding the CredentialManager component of the
|
|
26
|
-
* Imperative framework. You can enable it for a test by editing
|
|
27
|
-
*
|
|
28
|
-
* $ZOWE_CLI_HOME/settings/imperative.json
|
|
29
|
-
*
|
|
30
|
-
* to contain:
|
|
31
|
-
* {
|
|
32
|
-
* "overrides": {
|
|
33
|
-
* "CredentialManager": "@zowe/zowe-cli-sample-plugin"
|
|
34
|
-
* }
|
|
35
|
-
*
|
|
36
|
-
* You can then try this CredentialManager override with commands like the following:
|
|
37
|
-
*
|
|
38
|
-
* zowe profiles create zosmf-profile YourTestProfileName ...
|
|
39
|
-
* zowe profiles delete zosmf-profile YourTestProfileName
|
|
40
|
-
*
|
|
41
|
-
* This is just a sample of the mechanism. Do not try to actually use this to
|
|
42
|
-
* store any credentials. Instead, use the Imperative default CredentialManager,
|
|
43
|
-
* or write a real CredentialManager override of your own.
|
|
44
|
-
*/
|
|
45
|
-
/*export = class CredentialManagerOverrides extends AbstractCredentialManager {
|
|
46
|
-
|
|
47
|
-
private consoleLog = Logger.getConsoleLogger();
|
|
48
|
-
|
|
49
|
-
constructor(service: string, displayName: string) {
|
|
50
|
-
super(service, displayName);
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
public async deleteCredentials(account: string) {
|
|
54
|
-
this.consoleLog.info("CredentialManager in sample-plugin is deleting:\n" +
|
|
55
|
-
` service = ${this.service}\n` +
|
|
56
|
-
` account = ${account}`
|
|
57
|
-
);
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
public async loadCredentials(account: string) {
|
|
61
|
-
this.consoleLog.info("CredentialManager in sample-plugin is loading:\n" +
|
|
62
|
-
` service = ${this.service}\n` +
|
|
63
|
-
` account = ${account}`
|
|
64
|
-
);
|
|
65
|
-
const loadedProfResult: IProfileLoaded = {
|
|
66
|
-
message: "Creds loaded from sample-plugin",
|
|
67
|
-
type: "SomeTypeOfProfile",
|
|
68
|
-
failNotFound: true
|
|
69
|
-
};
|
|
70
|
-
const loadResultString = JSON.stringify(loadedProfResult, null, 2);
|
|
71
|
-
return Buffer.from(loadResultString).toString("base64");
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
public async saveCredentials(account: string, credentials: SecureCredential) {
|
|
75
|
-
this.consoleLog.info("CredentialManager in sample-plugin is saving these creds:\n" +
|
|
76
|
-
` service = ${this.service}\n` +
|
|
77
|
-
` account = ${account}\n` +
|
|
78
|
-
` credentials = ${credentials.length * Math.random()}`
|
|
79
|
-
);
|
|
80
|
-
}
|
|
81
|
-
};
|
|
82
|
-
*/
|
|
83
|
-
//# sourceMappingURL=CredentialManager.override.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"CredentialManager.override.js","sourceRoot":"","sources":["../../src/overrides/CredentialManager.override.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;EAqBE;AAEF,wGAAwG;AAExG;;;;;;;;;;;;;;;;;;;;GAoBG;AACH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqCE"}
|