@zowe/cics-for-zowe-cli 4.0.3 → 5.0.0-next.202201241457

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 CHANGED
@@ -17,39 +17,39 @@ The IBM CICS Plug-in for Zowe CLI lets you extend Zowe CLI to interact with IBM
17
17
 
18
18
  As an application developer, you can use the plug-in to perform various CICS-related tasks, such as the following:
19
19
 
20
- - Deploy code changes to CICS applications that were developed with COBOL.
21
- - Deploy changes to CICS regions for testing or delivery.
22
- - Automate CICS interaction steps in your CI/CD pipeline with Jenkins Automation Server or TravisCI.
20
+ - Deploy code changes to CICS applications that were developed with COBOL.
21
+ - Deploy changes to CICS regions for testing or delivery.
22
+ - Automate CICS interaction steps in your CI/CD pipeline with Jenkins Automation Server or TravisCI.
23
23
 
24
- The plug-in uses the IBM CICS management client interface (CMCI) API to achieve the interaction with CICS. For more information, see [CICS management client interface](https://www.ibm.com/docs/en/cics-ts/5.6?topic=environment-cics-management-client-interface-cmci).
24
+ The plug-in uses the IBM CICS Management Client Interface (CMCI) API to achieve the interaction with CICS. For more information, see [CICS management client interface](https://www.ibm.com/support/knowledgecenter/en/SSGMCP_5.3.0/com.ibm.cics.ts.clientapi.doc/topics/clientapi_overview.html) on the IBM Knowledge Center.
25
25
 
26
26
  ## Software requirements
27
27
 
28
28
  Before you install and use the plug-in:
29
29
 
30
- - Install Zowe CLI on your computer.
30
+ - Install Zowe CLI on your computer.
31
31
 
32
- **Note:** For more information, see [Installing Zowe CLI](https://docs.zowe.org/stable/user-guide/cli-installcli/).
32
+ **Note:** For more information, see [Installing Zowe CLI](https://zowe.github.io/docs-site/latest/user-guide/cli-installcli.html).
33
33
 
34
- - Ensure that [IBM CICS Transaction Server V5.3](https://www.ibm.com/docs/en/cics-ts/5.3) or later is installed and running in your mainframe environment.
34
+ - Ensure that [IBM CICS Transaction Server v5.2](https://www.ibm.com/support/knowledgecenter/en/SSGMCP_5.2.0/com.ibm.cics.ts.home.doc/welcomePage/welcomePage.html) or later is installed and running in your mainframe environment.
35
35
 
36
- - Ensure that [CICS management client interface](https://www.ibm.com/docs/en/cics-ts/5.6?topic=environment-cics-management-client-interface-cmci) is configured and running in your CICS region.
36
+ - Ensure that [IBM CICS Management Client Interface (CMCI)](https://www.ibm.com/support/knowledgecenter/en/SSGMCP_5.2.0/com.ibm.cics.ts.clientapi.doc/topics/clientapi_overview.html) is configured and running in your CICS region.
37
37
 
38
38
  ## Installing
39
39
 
40
40
  Use one of the following methods to install the plug-in:
41
41
 
42
- - Install the plug-in from an online registry or a local package.
42
+ - Install the plug-in from an online registry or a local package.
43
43
 
44
- Use the online registry / local package method when you simply want to install the plug-in to Zowe CLI and start using it.
44
+ Use the online registry/local package method when you simply want to install the plug-in to Zowe CLI and start using it.
45
45
 
46
- For more information, see [Installing Zowe CLI plug-ins](https://docs.zowe.org/stable/user-guide/cli-installplugins/) on Zowe Docs.
46
+ For more information, see [Installing plug-ins](https://zowe.github.io/docs-site/latest/user-guide/cli-installplugins.html) on the [Zowe Docs](https://zowe.github.io/docs-site/latest/) website.
47
47
 
48
- - Build the plug-in from source and install it into your Zowe CLI implementation.
48
+ - Build the plug-in from source and install it into your Zowe CLI implementation.
49
49
 
50
50
  Use the build from source method when you want to install the plug-in to Zowe CLI using the most current binaries and modify the behavior of the plug-in. For example, you want to create a new command and use the plug-in with the command that you created.
51
-
52
- For more information, see [Building from source](#building-from-source).
51
+
52
+ For more information, see [Building the plug-in from source](#building-the-plug-in-from-source).
53
53
 
54
54
  ## Building from source
55
55
 
@@ -57,41 +57,36 @@ Use one of the following methods to install the plug-in:
57
57
 
58
58
  **Follow these steps:**
59
59
 
60
- 1. The first time that you clone the IBM CICS Plug-in for Zowe CLI GitHub repository, issue the following command against the local directory:
60
+ 1. The first time that you clone the IBM CICS Plug-in for Zowe CLI GitHub repository, issue the following command against the local directory:
61
61
 
62
- ```console
62
+ ```
63
63
  npm install
64
64
  ```
65
-
66
65
  The command installs the required dependencies for the plug-in and several development tools. You can run the task at any time to update the tools as needed.
67
66
 
68
- 2. To build your code changes, issue the following command:
69
-
70
- ```console
67
+ 2. To build your code changes, issue the following command:
68
+ ```
71
69
  npm run build
72
70
  ```
73
-
74
71
  The first time you build your code changes, you will be prompted for the location of the Imperative CLI Framework package, which is located in the `node_modules/@zowe` folder in the Zowe CLI home directory.
75
72
 
76
73
  **Note:** When you update `package.json` to include new dependencies, or when you pull changes that affect `package.json`, issue the `npm update` command to download the dependencies.
77
74
 
78
- 3. Issue one of the following commands to install the plug-in:
79
-
80
- ```console
75
+ 3. Issue one of the following commands to install the plug-in:
76
+
77
+ ```
81
78
  zowe plugins install @zowe/cics-for-zowe-cli
82
79
  ```
83
-
84
80
  Or:
85
-
86
- ```console
81
+ ```
87
82
  zowe plugins install .
88
83
  ```
89
84
 
90
- **Tip:** After the installation process completes, it validates that the plug-in was installed correct and the names of its commands, options, and arguments do not conflict with that of the other plug-ins that you installed into your Zowe CLI implementation.
85
+ **Tip:** After the installation process completes, it validates that the plug-in was installed correct and the names of its commands, options, and arguments do not conflict with that of the other plug-ins that you installed into your Zowe CLI implimentation.
91
86
 
92
87
  When the validation process is successful, the following message displays:
93
88
 
94
- ```console
89
+ ```
95
90
  Validation results for plugin 'cics':
96
91
  Successfully validated.
97
92
  ```
@@ -102,13 +97,12 @@ When an unsuccessful message displays, you can troubleshoot the installation by
102
97
 
103
98
  You can set up a CICS profile to avoid typing your connection details on every command. The profile contains your host, port, username, and password for the CMCI instance of your choice. You can create multiple profiles and switch between them if necessary. Issue the following command to create a cics profile:
104
99
 
105
- ```console
100
+ ```
106
101
  zowe profiles create cics <profile name> -H <host> -P <port> -u <user> -p <password>
107
102
  ```
108
103
 
109
104
  **Note:** For more information, issue the following command:
110
-
111
- ```console
105
+ ```
112
106
  zowe profiles create cis --help
113
107
  ```
114
108
 
@@ -140,9 +134,8 @@ Any failures potentially indicate an issue with the set-up of the Rest API or co
140
134
 
141
135
  **Follow these steps:**
142
136
 
143
- 1. To uninstall the plug-in from a base application, issue the following command:
144
-
145
- ```console
137
+ 1. To uninstall the plug-in from a base application, issue the following command:
138
+ ```
146
139
  zowe plugins uninstall @zowe/cics-for-zowe-cli
147
140
  ```
148
141
 
@@ -37,7 +37,7 @@ class CicsBaseHandler {
37
37
  process(commandParameters) {
38
38
  return __awaiter(this, void 0, void 0, function* () {
39
39
  const profile = commandParameters.profiles.get("cics", false) || {};
40
- const session = CicsSession_1.CicsSession.createBasicCicsSessionFromArguments(commandParameters.arguments);
40
+ const session = yield CicsSession_1.CicsSession.createSessCfgFromArgs(commandParameters.arguments);
41
41
  const response = yield this.processWithSession(commandParameters, session, profile);
42
42
  commandParameters.response.progress.endBar(); // end any progress bars
43
43
  // Return as an object when using --response-format-json
@@ -1 +1 @@
1
- {"version":3,"file":"CicsBaseHandler.js","sourceRoot":"","sources":["../../src/cli/CicsBaseHandler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;;AAIF,+CAA4C;AAE5C;;;GAGG;AACH,MAAsB,eAAe;IACjC;;;;;;;OAOG;IACU,OAAO,CAAC,iBAAqC;;YACtD,MAAM,OAAO,GAAG,iBAAiB,CAAC,QAAQ,CAAC,GAAG,CAAC,MAAM,EAAE,KAAK,CAAC,IAAI,EAAE,CAAC;YACpE,MAAM,OAAO,GAAG,yBAAW,CAAC,mCAAmC,CAAC,iBAAiB,CAAC,SAAS,CAAC,CAAC;YAE7F,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,kBAAkB,CAAC,iBAAiB,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;YAEpF,iBAAiB,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC,wBAAwB;YAEtE,wDAAwD;YACxD,iBAAiB,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;QACrD,CAAC;KAAA;CAiBJ;AApCD,0CAoCC"}
1
+ {"version":3,"file":"CicsBaseHandler.js","sourceRoot":"","sources":["../../src/cli/CicsBaseHandler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;;;;;;;;;;AAIF,+CAA4C;AAE5C;;;GAGG;AACH,MAAsB,eAAe;IACjC;;;;;;;OAOG;IACU,OAAO,CAAC,iBAAqC;;YACtD,MAAM,OAAO,GAAG,iBAAiB,CAAC,QAAQ,CAAC,GAAG,CAAC,MAAM,EAAE,KAAK,CAAC,IAAI,EAAE,CAAC;YACpE,MAAM,OAAO,GAAG,MAAM,yBAAW,CAAC,qBAAqB,CAAC,iBAAiB,CAAC,SAAS,CAAC,CAAC;YAErF,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,kBAAkB,CAAC,iBAAiB,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;YAEpF,iBAAiB,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC,wBAAwB;YAEtE,wDAAwD;YACxD,iBAAiB,CAAC,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;QACrD,CAAC;KAAA;CAiBJ;AApCD,0CAoCC"}
@@ -48,5 +48,13 @@ export declare class CicsSession {
48
48
  * @returns {Session} - A session for usage in the CMCI REST Client
49
49
  */
50
50
  static createBasicCicsSessionFromArguments(args: ICommandArguments): Session;
51
+ /**
52
+ * Given command line arguments, create a REST Client Session.
53
+ * @static
54
+ * @param {IProfile} args - The arguments specified by the user
55
+ * @param {boolean} doPrompting - Whether to prompt for missing arguments (defaults to true)
56
+ * @returns {Session} - A session for usage in the CMCI REST Client
57
+ */
58
+ static createSessCfgFromArgs(args: ICommandArguments, doPrompting?: boolean): Promise<Session>;
51
59
  private static get log();
52
60
  }
@@ -9,6 +9,15 @@
9
9
  * Copyright Contributors to the Zowe Project. *
10
10
  * *
11
11
  */
12
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
13
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
14
+ return new (P || (P = Promise))(function (resolve, reject) {
15
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
16
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
17
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
18
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
19
+ });
20
+ };
12
21
  Object.defineProperty(exports, "__esModule", { value: true });
13
22
  exports.CicsSession = void 0;
14
23
  const imperative_1 = require("@zowe/imperative");
@@ -54,6 +63,29 @@ class CicsSession {
54
63
  protocol: args.protocol || "https",
55
64
  });
56
65
  }
66
+ /**
67
+ * Given command line arguments, create a REST Client Session.
68
+ * @static
69
+ * @param {IProfile} args - The arguments specified by the user
70
+ * @param {boolean} doPrompting - Whether to prompt for missing arguments (defaults to true)
71
+ * @returns {Session} - A session for usage in the CMCI REST Client
72
+ */
73
+ static createSessCfgFromArgs(args, doPrompting = true) {
74
+ return __awaiter(this, void 0, void 0, function* () {
75
+ const sessCfg = {
76
+ type: "basic",
77
+ hostname: args.host,
78
+ port: args.port,
79
+ user: args.user,
80
+ password: args.password,
81
+ basePath: args.basePath,
82
+ rejectUnauthorized: args.rejectUnauthorized,
83
+ protocol: args.protocol || "https",
84
+ };
85
+ const sessCfgWithCreds = yield imperative_1.ConnectionPropsForSessCfg.addPropsOrPrompt(sessCfg, args, { doPrompting });
86
+ return new imperative_1.Session(sessCfgWithCreds);
87
+ });
88
+ }
57
89
  static get log() {
58
90
  return imperative_1.Logger.getAppLogger();
59
91
  }
@@ -68,7 +100,6 @@ CicsSession.CICS_OPTION_HOST = {
68
100
  aliases: ["H"],
69
101
  description: "The CICS server host name.",
70
102
  type: "string",
71
- required: true,
72
103
  group: CicsSession.CICS_CONNECTION_OPTION_GROUP
73
104
  };
74
105
  /**
@@ -90,7 +121,6 @@ CicsSession.CICS_OPTION_USER = {
90
121
  aliases: ["u"],
91
122
  description: "Mainframe (CICS) user name, which can be the same as your TSO login.",
92
123
  type: "string",
93
- required: true,
94
124
  group: CicsSession.CICS_CONNECTION_OPTION_GROUP
95
125
  };
96
126
  /**
@@ -102,7 +132,6 @@ CicsSession.CICS_OPTION_PASSWORD = {
102
132
  description: "Mainframe (CICS) password, which can be the same as your TSO password.",
103
133
  type: "string",
104
134
  group: CicsSession.CICS_CONNECTION_OPTION_GROUP,
105
- required: true
106
135
  };
107
136
  /**
108
137
  * Option used in profile creation and commands for rejectUnauthorized setting for connecting to FMP
@@ -113,7 +142,6 @@ CicsSession.CICS_OPTION_REJECT_UNAUTHORIZED = {
113
142
  description: "Reject self-signed certificates.",
114
143
  type: "boolean",
115
144
  defaultValue: true,
116
- required: false,
117
145
  group: CicsSession.CICS_CONNECTION_OPTION_GROUP
118
146
  };
119
147
  /**
@@ -125,7 +153,6 @@ CicsSession.CICS_OPTION_PROTOCOL = {
125
153
  description: "Specifies CMCI protocol (http or https).",
126
154
  type: "string",
127
155
  defaultValue: "https",
128
- required: true,
129
156
  allowableValues: { values: ["http", "https"], caseSensitive: false },
130
157
  group: CicsSession.CICS_CONNECTION_OPTION_GROUP
131
158
  };
@@ -1 +1 @@
1
- {"version":3,"file":"CicsSession.js","sourceRoot":"","sources":["../../src/cli/CicsSession.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;;;AAEF,iDAA0G;AAE1G;;;GAGG;AACH,MAAa,WAAW;IA0FpB;;;;;OAKG;IACI,MAAM,CAAC,sBAAsB,CAAC,OAAiB;QAClD,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,mDAAmD,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;QAClF,OAAO,IAAI,oBAAO,CAAC;YACf,IAAI,EAAE,OAAO;YACb,QAAQ,EAAE,OAAO,CAAC,IAAI;YACtB,IAAI,EAAE,OAAO,CAAC,IAAI;YAClB,IAAI,EAAE,OAAO,CAAC,IAAI;YAClB,QAAQ,EAAE,OAAO,CAAC,IAAI;YACtB,QAAQ,EAAE,OAAO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,wEAAwE;IACrF,IAAI,EAAE,QAAQ;IACd,KAAK,EAAE,WAAW,CAAC,4BAA4B;CAClD,CAAC;AACF;;GAEG;AACW,2CAA+B,GAA6B;IACtE,IAAI,EAAE,qBAAqB;IAC3B,OAAO,EAAE,CAAC,IAAI,CAAC;IACf,WAAW,EAAE,kCAAkC;IAC/C,IAAI,EAAE,SAAS;IACf,YAAY,EAAE,IAAI;IAClB,KAAK,EAAE,WAAW,CAAC,4BAA4B;CAClD,CAAC;AACF;;GAEG;AACW,gCAAoB,GAA6B;IAC3D,IAAI,EAAE,UAAU;IAChB,OAAO,EAAE,CAAC,GAAG,CAAC;IACd,WAAW,EAAE,0CAA0C;IACvD,IAAI,EAAE,QAAQ;IACd,YAAY,EAAE,OAAO;IACrB,eAAe,EAAE,EAAC,MAAM,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,aAAa,EAAE,KAAK,EAAC;IAClE,KAAK,EAAE,WAAW,CAAC,4BAA4B;CAClD,CAAC;AAEF;;;GAGG;AACW,mCAAuB,GAA+B;IAChE,WAAW,CAAC,gBAAgB;IAC5B,WAAW,CAAC,gBAAgB;IAC5B,WAAW,CAAC,gBAAgB;IAC5B,WAAW,CAAC,oBAAoB;IAChC,WAAW,CAAC,+BAA+B;IAC3C,WAAW,CAAC,oBAAoB;CACnC,CAAC"}
package/lib/imperative.js CHANGED
@@ -17,6 +17,13 @@ const config = {
17
17
  productDisplayName: PluginConstants_1.PluginConstants.PLUGIN_NAME,
18
18
  name: PluginConstants_1.PluginConstants.PLUGIN_GROUP_NAME,
19
19
  pluginHealthCheck: "./lib/healthCheck.handler",
20
+ apimlConnLookup: [
21
+ {
22
+ apiId: "place_the_cics_apiId_here",
23
+ gatewayUrl: "api/v1",
24
+ connProfType: "cics"
25
+ }
26
+ ],
20
27
  profiles: [
21
28
  {
22
29
  type: "cics",
@@ -34,7 +41,6 @@ const config = {
34
41
  aliases: ["H"],
35
42
  description: "The CMCI server host name",
36
43
  type: "string",
37
- required: true,
38
44
  },
39
45
  },
40
46
  port: {
@@ -56,7 +62,6 @@ const config = {
56
62
  description: "Your username to connect to CICS",
57
63
  type: "string",
58
64
  implies: ["password"],
59
- required: true,
60
65
  },
61
66
  },
62
67
  password: {
@@ -68,7 +73,6 @@ const config = {
68
73
  description: "Your password to connect to CICS",
69
74
  type: "string",
70
75
  implies: ["user"],
71
- required: true,
72
76
  },
73
77
  },
74
78
  regionName: {
@@ -96,7 +100,7 @@ const config = {
96
100
  optionDefinition: CicsSession_1.CicsSession.CICS_OPTION_PROTOCOL
97
101
  }
98
102
  },
99
- required: ["host"],
103
+ required: [],
100
104
  },
101
105
  createProfileExamples: [
102
106
  {
@@ -1 +1 @@
1
- {"version":3,"file":"imperative.js","sourceRoot":"","sources":["../src/imperative.ts"],"names":[],"mappings":";AAAA;;;;;;;;;EASE;AAIF,qEAAkE;AAClE,mDAAgD;AAEhD,MAAM,MAAM,GAAsB;IAC9B,kBAAkB,EAAE,CAAC,+BAA+B,CAAC;IACrD,sBAAsB,EAAE,iCAAe,CAAC,kBAAkB;IAC1D,kBAAkB,EAAE,iCAAe,CAAC,WAAW;IAC/C,IAAI,EAAE,iCAAe,CAAC,iBAAiB;IACvC,iBAAiB,EAAE,2BAA2B;IAC9C,QAAQ,EAAE;QACN;YACI,IAAI,EAAE,MAAM;YACZ,MAAM,EAAE;gBACJ,IAAI,EAAE,QAAQ;gBACd,KAAK,EAAE,cAAc;gBACrB,WAAW,EAAE,4FAA4F;oBACrG,mFAAmF;oBACnF,4EAA4E;gBAChF,UAAU,EAAE;oBACR,IAAI,EAAE;wBACF,IAAI,EAAE,QAAQ;wBACd,gBAAgB,EAAE;4BACd,IAAI,EAAE,MAAM;4BACZ,OAAO,EAAE,CAAC,GAAG,CAAC;4BACd,WAAW,EAAE,2BAA2B;4BACxC,IAAI,EAAE,QAAQ;4BACd,QAAQ,EAAE,IAAI;yBACjB;qBACJ;oBACD,IAAI,EAAE;wBACF,IAAI,EAAE,QAAQ;w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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zowe/cics-for-zowe-cli",
3
- "version": "4.0.3",
3
+ "version": "5.0.0-next.202201241457",
4
4
  "description": "IBM CICS Plug-in for Zowe CLI",
5
5
  "homepage": "https://github.com/zowe/zowe-cli-cics-plugin#readme",
6
6
  "bugs": {
@@ -47,8 +47,7 @@
47
47
  "xml2js": "0.4.19"
48
48
  },
49
49
  "peerDependencies": {
50
- "@zowe/cli": "^6.0.0",
51
- "@zowe/imperative": "^4.0.0"
50
+ "@zowe/imperative": ">=5.0.0-next.202106221817 <5.0.0"
52
51
  },
53
52
  "devDependencies": {
54
53
  "@types/fs-extra": "^5.0.5",
@@ -58,7 +57,8 @@
58
57
  "@types/yargs": "8.0.2",
59
58
  "@typescript-eslint/eslint-plugin": "^4.29.0",
60
59
  "@typescript-eslint/parser": "^4.29.0",
61
- "@zowe/imperative": "4.17.2",
60
+ "@zowe/cli-test-utils": ">=7.0.0-next.202106242030 <8.0.0",
61
+ "@zowe/imperative": ">=5.0.0-next <6.0.0",
62
62
  "env-cmd": "^8.0.2",
63
63
  "eslint": "^7.32.0",
64
64
  "eslint-plugin-jest": "^24.4.0",
@@ -76,8 +76,7 @@
76
76
  "ts-jest": "^25.5.1",
77
77
  "ts-node": "^3.2.0",
78
78
  "typedoc": "^0.20.36",
79
- "typescript": "^3.7.4",
80
- "uuid": "^3.2.1"
79
+ "typescript": "^3.7.4"
81
80
  },
82
81
  "jest": {
83
82
  "setupFilesAfterEnv": [