@zowe/cics-for-zowe-cli 6.21.0 → 6.22.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.
Files changed (51) hide show
  1. package/lib/-strings-/en.d.ts +48 -0
  2. package/lib/-strings-/en.js +48 -0
  3. package/lib/-strings-/en.js.map +1 -1
  4. package/lib/close/Close.definition.d.ts +16 -0
  5. package/lib/close/Close.definition.js +36 -0
  6. package/lib/close/Close.definition.js.map +1 -0
  7. package/lib/close/CloseLocalFile.d.ts +15 -0
  8. package/lib/close/CloseLocalFile.js +68 -0
  9. package/lib/close/CloseLocalFile.js.map +1 -0
  10. package/lib/common/LocalFileHandler.d.ts +43 -0
  11. package/lib/common/LocalFileHandler.js +104 -0
  12. package/lib/common/LocalFileHandler.js.map +1 -0
  13. package/lib/open/Open.definition.d.ts +16 -0
  14. package/lib/open/Open.definition.js +36 -0
  15. package/lib/open/Open.definition.js.map +1 -0
  16. package/lib/open/OpenLocalFile.d.ts +15 -0
  17. package/lib/open/OpenLocalFile.js +53 -0
  18. package/lib/open/OpenLocalFile.js.map +1 -0
  19. package/node_modules/@zowe/cics-for-zowe-sdk/lib/constants/CicsCmci.constants.d.ts +28 -0
  20. package/node_modules/@zowe/cics-for-zowe-sdk/lib/constants/CicsCmci.constants.js +24 -0
  21. package/node_modules/@zowe/cics-for-zowe-sdk/lib/constants/CicsCmci.constants.js.map +1 -1
  22. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/ILocalFileParms.d.ts +27 -0
  23. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/ILocalFileParms.js +13 -0
  24. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/ILocalFileParms.js.map +1 -0
  25. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/index.d.ts +1 -0
  26. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/index.js +1 -0
  27. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/index.js.map +1 -1
  28. package/node_modules/@zowe/cics-for-zowe-sdk/lib/index.d.ts +1 -0
  29. package/node_modules/@zowe/cics-for-zowe-sdk/lib/index.js +1 -0
  30. package/node_modules/@zowe/cics-for-zowe-sdk/lib/index.js.map +1 -1
  31. package/node_modules/@zowe/cics-for-zowe-sdk/lib/resources/LocalFile.d.ts +56 -0
  32. package/node_modules/@zowe/cics-for-zowe-sdk/lib/resources/LocalFile.js +116 -0
  33. package/node_modules/@zowe/cics-for-zowe-sdk/lib/resources/LocalFile.js.map +1 -0
  34. package/node_modules/@zowe/cics-for-zowe-sdk/lib/resources/index.d.ts +11 -0
  35. package/node_modules/@zowe/cics-for-zowe-sdk/lib/resources/index.js +28 -0
  36. package/node_modules/@zowe/cics-for-zowe-sdk/lib/resources/index.js.map +1 -0
  37. package/node_modules/@zowe/cics-for-zowe-sdk/lib/rest/CicsCmciRestClient.d.ts +1 -1
  38. package/node_modules/@zowe/cics-for-zowe-sdk/lib/rest/CicsCmciRestClient.js +6 -4
  39. package/node_modules/@zowe/cics-for-zowe-sdk/lib/rest/CicsCmciRestClient.js.map +1 -1
  40. package/node_modules/@zowe/cics-for-zowe-sdk/lib/rest/CicsCmciRestError.d.ts +1 -0
  41. package/node_modules/@zowe/cics-for-zowe-sdk/lib/rest/CicsCmciRestError.js +2 -0
  42. package/node_modules/@zowe/cics-for-zowe-sdk/lib/rest/CicsCmciRestError.js.map +1 -1
  43. package/node_modules/@zowe/cics-for-zowe-sdk/lib/utils/ResourceActions.d.ts +39 -0
  44. package/node_modules/@zowe/cics-for-zowe-sdk/lib/utils/ResourceActions.js +53 -0
  45. package/node_modules/@zowe/cics-for-zowe-sdk/lib/utils/ResourceActions.js.map +1 -0
  46. package/node_modules/@zowe/cics-for-zowe-sdk/lib/utils/index.d.ts +1 -0
  47. package/node_modules/@zowe/cics-for-zowe-sdk/lib/utils/index.js +1 -0
  48. package/node_modules/@zowe/cics-for-zowe-sdk/lib/utils/index.js.map +1 -1
  49. package/node_modules/@zowe/cics-for-zowe-sdk/package.json +1 -1
  50. package/npm-shrinkwrap.json +3 -3
  51. package/package.json +2 -2
@@ -151,6 +151,22 @@ exports.CicsCmciConstants = {
151
151
  * The CICS CMCI local file
152
152
  */
153
153
  CICS_CMCI_LOCAL_FILE: "CICSLocalFile",
154
+ /**
155
+ * The criteria field name for local file resources
156
+ */
157
+ CICS_LOCAL_FILE_CRITERIA_FIELD: "file",
158
+ /**
159
+ * Valid BUSY parameter values for closing local files
160
+ */
161
+ CICS_LOCAL_FILE_BUSY_VALUES: ["WAIT", "NOWAIT", "FORCE"],
162
+ /**
163
+ * Maximum length for CICS local file names
164
+ */
165
+ CICS_LOCAL_FILE_MAX_LENGTH: 8,
166
+ /**
167
+ * Valid action types for local file operations
168
+ */
169
+ CICS_LOCAL_FILE_ACTIONS: ["CLOSE", "OPEN", "ENABLE", "DISABLE"],
154
170
  /**
155
171
  * The CICS CMCI remote file
156
172
  */
@@ -203,6 +219,10 @@ exports.CicsCmciConstants = {
203
219
  * CMCI RESP 1 Code for INVALIDPARM
204
220
  */
205
221
  INVALIDPARM: 1028,
222
+ /**
223
+ * CMCI RESP 1 Code for NOTPERMIT
224
+ */
225
+ NOTPERMIT: 1031,
206
226
  /**
207
227
  * CMCI RESP 1 Code for NOTAVAILABLE
208
228
  */
@@ -216,5 +236,9 @@ exports.CicsCmciConstants = {
216
236
  * Default Resp Code
217
237
  */
218
238
  DEFAULT_RESP_CODE: "0000",
239
+ /**
240
+ * Resource type constant for GET operations documentation
241
+ */
242
+ DOC_RESOURCE_TYPE_GET: "get",
219
243
  };
220
244
  //# sourceMappingURL=CicsCmci.constants.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"CicsCmci.constants.js","sourceRoot":"","sources":["../../src/constants/CicsCmci.constants.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;;;AAEH;;GAEG;AACU,QAAA,iBAAiB,GAAG;IAC/B;;OAEG;IACH,sBAAsB,EAAE,sBAAsB;IAE9C;;OAEG;IACH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gC,EAAE,2BAA2B;IAE7D;;OAEG;IACH,2BAA2B,EAAE,sBAAsB;IAEnD;;OAEG;IACH,4BAA4B,EAAE,uBAAuB;IAErD;;OAEG;IACH,oBAAoB,EAAE,eAAe;IAErC;;OAEG;IACH,qBAAqB,EAAE,gBAAgB;IAEvC;;OAEG;IACH,cAAc,EAAE,UAAU;IAE1B;;OAEG;IACH,kBAAkB,EAAE,cAAc;IAElC;;OAEG;IACH,qBAAqB,EAAE,gBAAgB;IAEvC;;OAEG;IACH,kBAAkB,EAAE,aAAa;IAEjC;;OAEG;IACH,yBAAyB,EAAE,mBAAmB;IAE9C;;OAEG;IACH,gBAAgB,EAAE,YAAY;IAE9B;;OAEG;IACH,qBAAqB,EAAE,gBAAgB;IACvC;;OAEG;IACH,sBAAsB,EAAE,iBAAiB;IAEzC;;OAEG;IACH,gBAAgB,EAAE;QAChB;;WAEG;QACH,EAAE,EAAE,IAAI;QAER;;WAEG;QACH,MAAM,EAAE,IAAI;QAEZ;;WAEG;QACH,WAAW,EAAE,IAAI;QAEjB;;WAEG;QACH,YAAY,EAAE,IAAI;QAElB;;WAEG;QACH,WAAW,EAAE,IAAI;KAClB;IACD;;OAEG;IACH,iBAAiB,EAAE,MAAM;CAC1B,CAAC"}
1
+ {"version":3,"file":"CicsCmci.constants.js","sourceRoot":"","sources":["../../src/constants/CicsCmci.constants.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;;;AAEH;;GAEG;AACU,QAAA,iBAAiB,GAAG;IAC/B;;OAEG;IACH,sBAAsB,EAAE,sBAAsB;IAE9C;;OAEG;IACH,qBAAqB,EAAE,qBAAqB;IAE5C;;OAEG;IACH,uBAAuB,EAAE,uBAAuB;IAEhD;;OAEG;IACH,sBAAsB,EAAE,sBAAsB;IAE9C;;OAEG;IACH,2BAA2B,EAAE,2BAA2B;IAExD;;OAEG;IACH,qBAAqB,EAAE,aAAa;IAEpC;;OAEG;IACH,qBAAqB,EAAE,aAAa;IAEpC;;OAEG;IACH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AO,CAAC;IAExD;;OAEG;IACH,0BAA0B,EAAE,CAAC;IAE7B;;OAEG;IACH,uBAAuB,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,CAAC;IAE/D;;OAEG;IACH,qBAAqB,EAAE,gBAAgB;IAEvC;;OAEG;IACH,cAAc,EAAE,UAAU;IAE1B;;OAEG;IACH,kBAAkB,EAAE,cAAc;IAElC;;OAEG;IACH,qBAAqB,EAAE,gBAAgB;IAEvC;;OAEG;IACH,kBAAkB,EAAE,aAAa;IAEjC;;OAEG;IACH,yBAAyB,EAAE,mBAAmB;IAE9C;;OAEG;IACH,gBAAgB,EAAE,YAAY;IAE9B;;OAEG;IACH,qBAAqB,EAAE,gBAAgB;IACvC;;OAEG;IACH,sBAAsB,EAAE,iBAAiB;IAEzC;;OAEG;IACH,gBAAgB,EAAE;QAChB;;WAEG;QACH,EAAE,EAAE,IAAI;QAER;;WAEG;QACH,MAAM,EAAE,IAAI;QAEZ;;WAEG;QACH,WAAW,EAAE,IAAI;QAEjB;;WAEG;QACH,SAAS,EAAE,IAAI;QAEf;;WAEG;QACH,YAAY,EAAE,IAAI;QAElB;;WAEG;QACH,WAAW,EAAE,IAAI;KAClB;IACD;;OAEG;IACH,iBAAiB,EAAE,MAAM;IAEzB;;OAEG;IACH,qBAAqB,EAAE,KAAK;CAC7B,CAAC"}
@@ -0,0 +1,27 @@
1
+ /**
2
+ * This program and the accompanying materials are made available under the terms of the
3
+ * Eclipse Public License v2.0 which accompanies this distribution, and is available at
4
+ * https://www.eclipse.org/legal/epl-v20.html
5
+ *
6
+ * SPDX-License-Identifier: EPL-2.0
7
+ *
8
+ * Copyright Contributors to the Zowe Project.
9
+ *
10
+ */
11
+ import type { IResourceParms } from "./IResourceParms";
12
+ /**
13
+ * Interface for CICS local file parameters
14
+ * @export
15
+ * @interface ILocalFileParms
16
+ * @extends {IResourceParms}
17
+ */
18
+ export interface ILocalFileParms extends IResourceParms {
19
+ /**
20
+ * The busy condition option for closing the file
21
+ * Valid values: "WAIT", "NOWAIT", "FORCE" (case-insensitive)
22
+ * Value will be automatically converted to uppercase
23
+ * @type {string}
24
+ * @memberof ILocalFileParms
25
+ */
26
+ busy?: string;
27
+ }
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ /**
3
+ * This program and the accompanying materials are made available under the terms of the
4
+ * Eclipse Public License v2.0 which accompanies this distribution, and is available at
5
+ * https://www.eclipse.org/legal/epl-v20.html
6
+ *
7
+ * SPDX-License-Identifier: EPL-2.0
8
+ *
9
+ * Copyright Contributors to the Zowe Project.
10
+ *
11
+ */
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ //# sourceMappingURL=ILocalFileParms.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ILocalFileParms.js","sourceRoot":"","sources":["../../src/doc/ILocalFileParms.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG"}
@@ -17,6 +17,7 @@ export * from "./ICMCIResponseErrors";
17
17
  export * from "./ICSDGroupParms";
18
18
  export * from "./ICacheParms";
19
19
  export * from "./IGetResourceUriOptions";
20
+ export * from "./ILocalFileParms";
20
21
  export * from "./IProgramParms";
21
22
  export * from "./IResourceParms";
22
23
  export * from "./IResourceQueryParms";
@@ -33,6 +33,7 @@ __exportStar(require("./ICMCIResponseErrors"), exports);
33
33
  __exportStar(require("./ICSDGroupParms"), exports);
34
34
  __exportStar(require("./ICacheParms"), exports);
35
35
  __exportStar(require("./IGetResourceUriOptions"), exports);
36
+ __exportStar(require("./ILocalFileParms"), exports);
36
37
  __exportStar(require("./IProgramParms"), exports);
37
38
  __exportStar(require("./IResourceParms"), exports);
38
39
  __exportStar(require("./IResourceQueryParms"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/doc/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;;;;;;;;;;;;;;;;AAEH,iDAA+B;AAC/B,qDAAmC;AACnC,wDAAsC;AACtC,+DAA6C;AAC7C,+DAA6C;AAC7C,wDAAsC;AACtC,mDAAiC;AACjC,gDAA8B;AAC9B,2DAAyC;AACzC,kDAAgC;AAChC,mDAAiC;AACjC,wDAAsC;AACtC,sDAAoC;AACpC,sDAAoC;AACpC,iDAA+B;AAC/B,qDAAmC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/doc/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;;;;;;;;;;;;;;;;AAEH,iDAA+B;AAC/B,qDAAmC;AACnC,wDAAsC;AACtC,+DAA6C;AAC7C,+DAA6C;AAC7C,wDAAsC;AACtC,mDAAiC;AACjC,gDAA8B;AAC9B,2DAAyC;AACzC,oDAAkC;AAClC,kDAAgC;AAChC,mDAAiC;AACjC,wDAAsC;AACtC,sDAAoC;AACpC,sDAAoC;AACpC,iDAA+B;AAC/B,qDAAmC"}
@@ -12,5 +12,6 @@ export * from "./constants";
12
12
  export * from "./core";
13
13
  export * from "./doc";
14
14
  export * from "./methods";
15
+ export * from "./resources";
15
16
  export * from "./rest";
16
17
  export * from "./utils";
@@ -28,6 +28,7 @@ __exportStar(require("./constants"), exports);
28
28
  __exportStar(require("./core"), exports);
29
29
  __exportStar(require("./doc"), exports);
30
30
  __exportStar(require("./methods"), exports);
31
+ __exportStar(require("./resources"), exports);
31
32
  __exportStar(require("./rest"), exports);
32
33
  __exportStar(require("./utils"), exports);
33
34
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;;;;;;;;;;;;;;;;AAEH,8CAA4B;AAC5B,yCAAuB;AACvB,wCAAsB;AACtB,4CAA0B;AAC1B,yCAAuB;AACvB,0CAAwB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;;;;;;;;;;;;;;;;AAEH,8CAA4B;AAC5B,yCAAuB;AACvB,wCAAsB;AACtB,4CAA0B;AAC1B,8CAA4B;AAC5B,yCAAuB;AACvB,0CAAwB"}
@@ -0,0 +1,56 @@
1
+ /**
2
+ * This program and the accompanying materials are made available under the terms of the
3
+ * Eclipse Public License v2.0 which accompanies this distribution, and is available at
4
+ * https://www.eclipse.org/legal/epl-v20.html
5
+ *
6
+ * SPDX-License-Identifier: EPL-2.0
7
+ *
8
+ * Copyright Contributors to the Zowe Project.
9
+ *
10
+ */
11
+ import { type AbstractSession } from "@zowe/imperative";
12
+ import type { ICMCIApiResponse, ILocalFileParms } from "../doc";
13
+ /**
14
+ * Close a local file in CICS
15
+ * @param {AbstractSession} session - the session to connect to CMCI with
16
+ * @param {ILocalFileParms} parms - parameters for closing the local file
17
+ * @param {string} parms.name - the name of the local file to close (1-8 characters)
18
+ * @param {string} parms.regionName - the CICS region name
19
+ * @param {string} [parms.cicsPlex] - the CICSPlex name (optional)
20
+ * @param {string} [parms.busy] - busy condition option: "WAIT", "NOWAIT", or "FORCE" (case-insensitive, optional, default: "WAIT")
21
+ * @returns {Promise<ICMCIApiResponse>} promise that resolves to the response
22
+ * @throws {ImperativeError} CICS local file name not defined, blank, or exceeds maximum length
23
+ * @throws {ImperativeError} CICS region name not defined or blank
24
+ * @throws {ImperativeError} Invalid BUSY parameter value
25
+ * @throws {ImperativeError} CicsCmciRestClient request fails
26
+ */
27
+ export declare function closeLocalFile(session: AbstractSession, parms: ILocalFileParms): Promise<ICMCIApiResponse>;
28
+ /**
29
+ * Open a local file in CICS
30
+ * @param {AbstractSession} session - the session to connect to CMCI with
31
+ * @param {ILocalFileParms} parms - parameters for opening the local file
32
+ * @param {string} parms.name - the name of the local file to open (1-8 characters)
33
+ * @param {string} parms.regionName - the CICS region name
34
+ * @param {string} [parms.cicsPlex] - the CICSPlex name (optional)
35
+ * @returns {Promise<ICMCIApiResponse>} promise that resolves to the response
36
+ * @throws {ImperativeError} CICS local file name not defined, blank, or exceeds maximum length
37
+ * @throws {ImperativeError} CICS region name not defined or blank
38
+ * @throws {ImperativeError} CicsCmciRestClient request fails
39
+ */
40
+ export declare function openLocalFile(session: AbstractSession, parms: ILocalFileParms): Promise<ICMCIApiResponse>;
41
+ /**
42
+ * Enable a local file in CICS (future implementation)
43
+ * @param {AbstractSession} session - the session to connect to CMCI with
44
+ * @param {ILocalFileParms} parms - parameters for enabling the local file
45
+ * @returns {Promise<ICMCIApiResponse>} promise that resolves to the response
46
+ * @throws {ImperativeError} Feature not yet implemented
47
+ */
48
+ export declare function enableLocalFile(session: AbstractSession, parms: ILocalFileParms): Promise<ICMCIApiResponse>;
49
+ /**
50
+ * Disable a local file in CICS (future implementation)
51
+ * @param {AbstractSession} session - the session to connect to CMCI with
52
+ * @param {ILocalFileParms} parms - parameters for disabling the local file
53
+ * @returns {Promise<ICMCIApiResponse>} promise that resolves to the response
54
+ * @throws {ImperativeError} Feature not yet implemented
55
+ */
56
+ export declare function disableLocalFile(session: AbstractSession, parms: ILocalFileParms): Promise<ICMCIApiResponse>;
@@ -0,0 +1,116 @@
1
+ "use strict";
2
+ /**
3
+ * This program and the accompanying materials are made available under the terms of the
4
+ * Eclipse Public License v2.0 which accompanies this distribution, and is available at
5
+ * https://www.eclipse.org/legal/epl-v20.html
6
+ *
7
+ * SPDX-License-Identifier: EPL-2.0
8
+ *
9
+ * Copyright Contributors to the Zowe Project.
10
+ *
11
+ */
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ exports.disableLocalFile = exports.enableLocalFile = exports.openLocalFile = exports.closeLocalFile = void 0;
14
+ const imperative_1 = require("@zowe/imperative");
15
+ const constants_1 = require("../constants");
16
+ const ResourceActions_1 = require("../utils/ResourceActions");
17
+ /**
18
+ * Close a local file in CICS
19
+ * @param {AbstractSession} session - the session to connect to CMCI with
20
+ * @param {ILocalFileParms} parms - parameters for closing the local file
21
+ * @param {string} parms.name - the name of the local file to close (1-8 characters)
22
+ * @param {string} parms.regionName - the CICS region name
23
+ * @param {string} [parms.cicsPlex] - the CICSPlex name (optional)
24
+ * @param {string} [parms.busy] - busy condition option: "WAIT", "NOWAIT", or "FORCE" (case-insensitive, optional, default: "WAIT")
25
+ * @returns {Promise<ICMCIApiResponse>} promise that resolves to the response
26
+ * @throws {ImperativeError} CICS local file name not defined, blank, or exceeds maximum length
27
+ * @throws {ImperativeError} CICS region name not defined or blank
28
+ * @throws {ImperativeError} Invalid BUSY parameter value
29
+ * @throws {ImperativeError} CicsCmciRestClient request fails
30
+ */
31
+ async function closeLocalFile(session, parms) {
32
+ // Validate required parameters
33
+ imperative_1.ImperativeExpect.toBeDefinedAndNonBlank(parms.name, "CICS Local File name", "CICS local file name is required");
34
+ imperative_1.ImperativeExpect.toBeDefinedAndNonBlank(parms.regionName, "CICS Region name", "CICS region name is required");
35
+ // Validate file name length (CICS resource names are limited to 8 characters)
36
+ if (parms.name.length > constants_1.CicsCmciConstants.CICS_LOCAL_FILE_MAX_LENGTH) {
37
+ throw new imperative_1.ImperativeError({
38
+ msg: `CICS local file name "${parms.name}" exceeds maximum length of ${constants_1.CicsCmciConstants.CICS_LOCAL_FILE_MAX_LENGTH} characters`,
39
+ });
40
+ }
41
+ imperative_1.Logger.getAppLogger().debug(`Attempting to close a local file with the following parameters:\n%s`, JSON.stringify(parms));
42
+ // Get busy parameter value
43
+ const busyValue = parms.busy ? parms.busy.trim().toUpperCase() : "WAIT";
44
+ // Validate busy parameter
45
+ if (!constants_1.CicsCmciConstants.CICS_LOCAL_FILE_BUSY_VALUES.includes(busyValue)) {
46
+ const allowedValuesStr = constants_1.CicsCmciConstants.CICS_LOCAL_FILE_BUSY_VALUES.join(", ");
47
+ throw new imperative_1.ImperativeError({
48
+ msg: `Invalid BUSY parameter value: "${busyValue}". Must be one of: ${allowedValuesStr}`,
49
+ });
50
+ }
51
+ // Use generic performAction utility
52
+ return (0, ResourceActions_1.performAction)(session, constants_1.CicsCmciConstants.CICS_CMCI_LOCAL_FILE, "CLOSE", {
53
+ name: parms.name,
54
+ regionName: parms.regionName,
55
+ cicsPlex: parms.cicsPlex,
56
+ }, constants_1.CicsCmciConstants.CICS_LOCAL_FILE_CRITERIA_FIELD, { name: "BUSY", value: busyValue });
57
+ }
58
+ exports.closeLocalFile = closeLocalFile;
59
+ /**
60
+ * Open a local file in CICS
61
+ * @param {AbstractSession} session - the session to connect to CMCI with
62
+ * @param {ILocalFileParms} parms - parameters for opening the local file
63
+ * @param {string} parms.name - the name of the local file to open (1-8 characters)
64
+ * @param {string} parms.regionName - the CICS region name
65
+ * @param {string} [parms.cicsPlex] - the CICSPlex name (optional)
66
+ * @returns {Promise<ICMCIApiResponse>} promise that resolves to the response
67
+ * @throws {ImperativeError} CICS local file name not defined, blank, or exceeds maximum length
68
+ * @throws {ImperativeError} CICS region name not defined or blank
69
+ * @throws {ImperativeError} CicsCmciRestClient request fails
70
+ */
71
+ async function openLocalFile(session, parms) {
72
+ // Validate required parameters
73
+ imperative_1.ImperativeExpect.toBeDefinedAndNonBlank(parms.name, "CICS Local File name", "CICS local file name is required");
74
+ imperative_1.ImperativeExpect.toBeDefinedAndNonBlank(parms.regionName, "CICS Region name", "CICS region name is required");
75
+ // Validate file name length (CICS resource names are limited to 8 characters)
76
+ if (parms.name.length > constants_1.CicsCmciConstants.CICS_LOCAL_FILE_MAX_LENGTH) {
77
+ throw new imperative_1.ImperativeError({
78
+ msg: `CICS local file name "${parms.name}" exceeds maximum length of ${constants_1.CicsCmciConstants.CICS_LOCAL_FILE_MAX_LENGTH} characters`,
79
+ });
80
+ }
81
+ imperative_1.Logger.getAppLogger().debug(`Attempting to open a local file with the following parameters:\n%s`, JSON.stringify(parms));
82
+ // Use generic performAction utility (no additional parameters needed for OPEN)
83
+ return (0, ResourceActions_1.performAction)(session, constants_1.CicsCmciConstants.CICS_CMCI_LOCAL_FILE, "OPEN", {
84
+ name: parms.name,
85
+ regionName: parms.regionName,
86
+ cicsPlex: parms.cicsPlex,
87
+ }, constants_1.CicsCmciConstants.CICS_LOCAL_FILE_CRITERIA_FIELD);
88
+ }
89
+ exports.openLocalFile = openLocalFile;
90
+ /**
91
+ * Enable a local file in CICS (future implementation)
92
+ * @param {AbstractSession} session - the session to connect to CMCI with
93
+ * @param {ILocalFileParms} parms - parameters for enabling the local file
94
+ * @returns {Promise<ICMCIApiResponse>} promise that resolves to the response
95
+ * @throws {ImperativeError} Feature not yet implemented
96
+ */
97
+ async function enableLocalFile(session, parms) {
98
+ throw new imperative_1.ImperativeError({
99
+ msg: "ENABLE action not yet implemented. This feature requires SDK support for enabling local files.",
100
+ });
101
+ }
102
+ exports.enableLocalFile = enableLocalFile;
103
+ /**
104
+ * Disable a local file in CICS (future implementation)
105
+ * @param {AbstractSession} session - the session to connect to CMCI with
106
+ * @param {ILocalFileParms} parms - parameters for disabling the local file
107
+ * @returns {Promise<ICMCIApiResponse>} promise that resolves to the response
108
+ * @throws {ImperativeError} Feature not yet implemented
109
+ */
110
+ async function disableLocalFile(session, parms) {
111
+ throw new imperative_1.ImperativeError({
112
+ msg: "DISABLE action not yet implemented. This feature requires SDK support for disabling local files.",
113
+ });
114
+ }
115
+ exports.disableLocalFile = disableLocalFile;
116
+ //# sourceMappingURL=LocalFile.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LocalFile.js","sourceRoot":"","sources":["../../src/resources/LocalFile.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;;;AAEH,iDAAmG;AACnG,4CAAiD;AAEjD,8DAAyD;AAEzD;;;;;;;;;;;;;GAaG;AACI,KAAK,UAAU,cAAc,CAAC,OAAwB,EAAE,KAAsB;IACnF,+BAA+B;IAC/B,6BAAgB,CAAC,sBAAsB,CAAC,KAAK,CAAC,IAAI,EAAE,sBAAsB,EAAE,kCAAkC,CAAC,CAAC;IAChH,6BAAgB,CAAC,sBAAsB,CAAC,KAAK,CAAC,UAAU,EAAE,kBAAkB,EAAE,8BAA8B,CAAC,CAAC;IAE9G,8EAA8E;IAC9E,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,GAAG,6BAAiB,CAAC,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E,kCAAkC,CAAC,CAAC;IAChH,6BAAgB,CAAC,sBAAsB,CAAC,KAAK,CAAC,UAAU,EAAE,kBAAkB,EAAE,8BAA8B,CAAC,CAAC;IAE9G,8EAA8E;IAC9E,IAAI,KAAK,CAAC,IAAI,CAAC,MAAM,GAAG,6BAAiB,CAAC,0BAA0B,EAAE,CAAC;QACrE,MAAM,IAAI,4BAAe,CAAC;YACxB,GAAG,EAAE,yBAAyB,KAAK,CAAC,IAAI,+BAA+B,6BAAiB,CAAC,0BAA0B,aAAa;SACjI,CAAC,CAAC;IACL,CAAC;IAED,mBAAM,CAAC,YAAY,EAAE,CAAC,KAAK,CACzB,oEAAoE,EACpE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CACtB,CAAC;IAEF,+EAA+E;IAC/E,OAAO,IAAA,+BAAa,EAClB,OAAO,EACP,6BAAiB,CAAC,oBAAoB,EACtC,MAAM,EACN;QACE,IAAI,EAAE,KAAK,CAAC,IAAI;QAChB,UAAU,EAAE,KAAK,CAAC,UAAU;QAC5B,QAAQ,EAAE,KAAK,CAAC,QAAQ;KACzB,EACD,6BAAiB,CAAC,8BAA8B,CACjD,CAAC;AACJ,CAAC;AA7BD,sCA6BC;AAED;;;;;;GAMG;AACI,KAAK,UAAU,eAAe,CAAC,OAAwB,EAAE,KAAsB;IACpF,MAAM,IAAI,4BAAe,CAAC;QACxB,GAAG,EAAE,gGAAgG;KACtG,CAAC,CAAC;AACL,CAAC;AAJD,0CAIC;AAED;;;;;;GAMG;AACI,KAAK,UAAU,gBAAgB,CAAC,OAAwB,EAAE,KAAsB;IACrF,MAAM,IAAI,4BAAe,CAAC;QACxB,GAAG,EAAE,kGAAkG;KACxG,CAAC,CAAC;AACL,CAAC;AAJD,4CAIC"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * This program and the accompanying materials are made available under the terms of the
3
+ * Eclipse Public License v2.0 which accompanies this distribution, and is available at
4
+ * https://www.eclipse.org/legal/epl-v20.html
5
+ *
6
+ * SPDX-License-Identifier: EPL-2.0
7
+ *
8
+ * Copyright Contributors to the Zowe Project.
9
+ *
10
+ */
11
+ export * from "./LocalFile";
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ /**
3
+ * This program and the accompanying materials are made available under the terms of the
4
+ * Eclipse Public License v2.0 which accompanies this distribution, and is available at
5
+ * https://www.eclipse.org/legal/epl-v20.html
6
+ *
7
+ * SPDX-License-Identifier: EPL-2.0
8
+ *
9
+ * Copyright Contributors to the Zowe Project.
10
+ *
11
+ */
12
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ var desc = Object.getOwnPropertyDescriptor(m, k);
15
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
16
+ desc = { enumerable: true, get: function() { return m[k]; } };
17
+ }
18
+ Object.defineProperty(o, k2, desc);
19
+ }) : (function(o, m, k, k2) {
20
+ if (k2 === undefined) k2 = k;
21
+ o[k2] = m[k];
22
+ }));
23
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
24
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
25
+ };
26
+ Object.defineProperty(exports, "__esModule", { value: true });
27
+ __exportStar(require("./LocalFile"), exports);
28
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;;;;;;;;;;;;;;;;AAEH,8CAA4B"}
@@ -108,7 +108,7 @@ export declare class CicsCmciRestClient extends AbstractRestClient {
108
108
  * Check that we got the expected response codes from the API after a request
109
109
  * @param {ICMCIApiResponse} apiResponse - the parsed response
110
110
  * @returns {ICMCIApiResponse} - the response if it was correct
111
- * @throws {ImperativeError} request did not get the expected codes
111
+ * @throws {ImperativeError} if the request failed. The error might include records that were retrieved.
112
112
  */
113
113
  private static verifyResponseCodes;
114
114
  /**
@@ -172,16 +172,18 @@ class CicsCmciRestClient extends imperative_1.AbstractRestClient {
172
172
  * Check that we got the expected response codes from the API after a request
173
173
  * @param {ICMCIApiResponse} apiResponse - the parsed response
174
174
  * @returns {ICMCIApiResponse} - the response if it was correct
175
- * @throws {ImperativeError} request did not get the expected codes
175
+ * @throws {ImperativeError} if the request failed. The error might include records that were retrieved.
176
176
  */
177
177
  static verifyResponseCodes(apiResponse, requestOptions) {
178
- const okResponse1Codes = [`${constants_1.CicsCmciConstants.RESPONSE_1_CODES.OK}`];
178
+ const responseCode = [`${constants_1.CicsCmciConstants.RESPONSE_1_CODES.OK}`];
179
179
  if (requestOptions?.failOnNoData === false) {
180
- okResponse1Codes.push(`${constants_1.CicsCmciConstants.RESPONSE_1_CODES.NODATA}`);
180
+ responseCode.push(`${constants_1.CicsCmciConstants.RESPONSE_1_CODES.NODATA}`);
181
181
  }
182
- if (okResponse1Codes.includes(apiResponse.response?.resultsummary?.api_response1)) {
182
+ // If response code is OK or NODATA (when allowed), return it
183
+ if (responseCode.includes(apiResponse.response?.resultsummary?.api_response1)) {
183
184
  return apiResponse;
184
185
  }
186
+ // Error code present - throw error (error will include any records retrieved))
185
187
  if (requestOptions?.useCICSCmciRestError) {
186
188
  throw new CicsCmciRestError_1.CicsCmciRestError(CicsCmci_messages_1.CicsCmciMessages.cmciRequestFailed.message, apiResponse);
187
189
  }
@@ -1 +1 @@
1
- {"version":3,"file":"CicsCmciRestClient.js","sourceRoot":"","sources":["../../src/rest/CicsCmciRestClient.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;;;AAEH,iDAAmJ;AACnJ,mCAAyC;AACzC,4CAAiD;AACjD,sEAAkE;AAGlE,2DAAwD;AAExD;;;;;;GAMG;AACH,MAAa,kBAAmB,SAAQ,+BAAkB;IACxD;;;OAGG;IACI,MAAM,CAAU,uBAAuB,GAAG,MAAM,CAAC;IAExD;;;OAGG;IACI,MAAM,CAAU,uBAAuB,GAAG,GAAG,CAAC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AAC;IAED;;;;OAIG;IACO,YAAY,CAAC,QAA0B;QAC/C,QAAQ,CAAC,GAAG,GAAG,6BAA6B,GAAG,QAAQ,CAAC,GAAG,CAAC;QAC5D,IAAI,OAAO,GAAG,QAAQ,CAAC,WAAW,CAAC;QACnC,IAAI,CAAC;YACH,MAAM,UAAU,GAAG,kBAAkB,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC;YAC/D,uEAAuE;YACvE,OAAO,GAAG,sBAAS,CAAC,UAAU,CAAC,UAAU,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC;QAC/D,CAAC;QAAC,OAAO,EAAE,EAAE,CAAC;YACZ,wDAAwD;YACxD,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,kGAAkG,CAAC,CAAC;QACrH,CAAC;QACD,QAAQ,CAAC,GAAG,IAAI,IAAI,GAAG,OAAO,CAAC,CAAC,kDAAkD;QAClF,OAAO,QAAQ,CAAC;IAClB,CAAC;;AA9OH,gDA+OC"}
@@ -14,6 +14,7 @@ import type { ICMCIResponseErrors } from "../doc/ICMCIResponseErrors";
14
14
  export declare class CicsCmciRestError extends ImperativeError {
15
15
  resultSummary: ICMCIResponseResultSummary;
16
16
  errors: ICMCIResponseErrors;
17
+ records?: Record<string, object | object[]>;
17
18
  RESPONSE_1: number;
18
19
  RESPONSE_2: number;
19
20
  RESPONSE_1_ALT: string;
@@ -16,6 +16,7 @@ const constants_1 = require("../constants");
16
16
  class CicsCmciRestError extends imperative_1.ImperativeError {
17
17
  resultSummary;
18
18
  errors;
19
+ records;
19
20
  RESPONSE_1;
20
21
  RESPONSE_2;
21
22
  RESPONSE_1_ALT;
@@ -29,6 +30,7 @@ class CicsCmciRestError extends imperative_1.ImperativeError {
29
30
  super({ msg });
30
31
  this.resultSummary = response.response.resultsummary;
31
32
  this.errors = response.response.errors;
33
+ this.records = response.response.records;
32
34
  this.parseResultSummary();
33
35
  }
34
36
  parseResultSummary() {
@@ -1 +1 @@
1
- {"version":3,"file":"CicsCm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iB,CAAC;QAC3D,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,aAAa,CAAC,iBAAiB,CAAC;QAC3D,IAAI,CAAC,YAAY,GAAG,QAAQ,CAAC,IAAI,CAAC,MAAM,EAAE,QAAQ,EAAE,IAAI,IAAI,6BAAiB,CAAC,iBAAiB,CAAC,CAAC;QACjG,IAAI,CAAC,cAAc,GAAG,QAAQ,CAAC,IAAI,CAAC,MAAM,EAAE,QAAQ,EAAE,KAAK,IAAI,6BAAiB,CAAC,iBAAiB,CAAC,CAAC;QACpG,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC,MAAM,EAAE,QAAQ,EAAE,MAAM,CAAC;QACrD,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,MAAM,EAAE,QAAQ,EAAE,QAAQ,CAAC;QACxD,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,MAAM,EAAE,QAAQ,EAAE,SAAS,CAAC;IACpD,CAAC;CAEF;AAnCD,8CAmCC"}
@@ -0,0 +1,39 @@
1
+ /**
2
+ * This program and the accompanying materials are made available under the terms of the
3
+ * Eclipse Public License v2.0 which accompanies this distribution, and is available at
4
+ * https://www.eclipse.org/legal/epl-v20.html
5
+ *
6
+ * SPDX-License-Identifier: EPL-2.0
7
+ *
8
+ * Copyright Contributors to the Zowe Project.
9
+ *
10
+ */
11
+ import type { AbstractSession } from "@zowe/imperative";
12
+ import type { ICMCIApiResponse } from "../doc/ICMCIApiResponse";
13
+ /**
14
+ * Base parameters for resource actions
15
+ */
16
+ export interface IResourceActionParms {
17
+ /** The name of the resource */
18
+ name: string;
19
+ /** The CICS region name */
20
+ regionName: string;
21
+ /** The CICSPlex name (optional) */
22
+ cicsPlex?: string;
23
+ /** The CSD group name (optional) */
24
+ csdGroup?: string;
25
+ }
26
+ /**
27
+ * Performs a generic action on a CICS resource
28
+ * @param session - The CMCI session
29
+ * @param resourceType - The CMCI resource type (e.g., "CICSLocalFile")
30
+ * @param action - The action to perform (e.g., "CLOSE", "OPEN")
31
+ * @param params - The resource parameters
32
+ * @param criteriaField - The resource selection criteria field (e.g., "FILE")
33
+ * @param additionalParams - Additional action-specific parameters (e.g., { name: "BUSY", value: "WAIT" })
34
+ * @returns The CMCI API response
35
+ */
36
+ export declare function performAction(session: AbstractSession, resourceType: string, action: string, params: IResourceActionParms, criteriaField: string, additionalParams?: {
37
+ name: string;
38
+ value: string;
39
+ }): Promise<ICMCIApiResponse>;
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ /**
3
+ * This program and the accompanying materials are made available under the terms of the
4
+ * Eclipse Public License v2.0 which accompanies this distribution, and is available at
5
+ * https://www.eclipse.org/legal/epl-v20.html
6
+ *
7
+ * SPDX-License-Identifier: EPL-2.0
8
+ *
9
+ * Copyright Contributors to the Zowe Project.
10
+ *
11
+ */
12
+ Object.defineProperty(exports, "__esModule", { value: true });
13
+ exports.performAction = void 0;
14
+ const rest_1 = require("../rest");
15
+ const Utils_1 = require("./Utils");
16
+ /**
17
+ * Performs a generic action on a CICS resource
18
+ * @param session - The CMCI session
19
+ * @param resourceType - The CMCI resource type (e.g., "CICSLocalFile")
20
+ * @param action - The action to perform (e.g., "CLOSE", "OPEN")
21
+ * @param params - The resource parameters
22
+ * @param criteriaField - The resource selection criteria field (e.g., "FILE")
23
+ * @param additionalParams - Additional action-specific parameters (e.g., { name: "BUSY", value: "WAIT" })
24
+ * @returns The CMCI API response
25
+ */
26
+ async function performAction(session, resourceType, action, params, criteriaField, additionalParams) {
27
+ // Build CMCI resource URI using the existing Utils helper
28
+ const options = {
29
+ cicsPlex: params.cicsPlex,
30
+ regionName: params.regionName,
31
+ criteria: `${criteriaField}=${params.name}`,
32
+ };
33
+ const cmciResource = Utils_1.Utils.getResourceUri(resourceType, options);
34
+ // Build request body
35
+ const requestBody = {
36
+ request: {
37
+ action: {
38
+ $: {
39
+ name: action,
40
+ },
41
+ },
42
+ },
43
+ };
44
+ // Add additional parameters if provided
45
+ if (additionalParams) {
46
+ requestBody.request.action.parameter = {
47
+ $: additionalParams,
48
+ };
49
+ }
50
+ return rest_1.CicsCmciRestClient.putExpectParsedXml(session, cmciResource, [], requestBody);
51
+ }
52
+ exports.performAction = performAction;
53
+ //# sourceMappingURL=ResourceActions.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ResourceActions.js","sourceRoot":"","sources":["../../src/utils/ResourceActions.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;;;AAGH,kCAA6C;AAG7C,mCAAgC;AAgBhC;;;;;;;;;GASG;AACI,KAAK,UAAU,aAAa,CACjC,OAAwB,EACxB,YAAoB,EACpB,MAAc,EACd,MAA4B,EAC5B,aAAqB,EACrB,gBAAkD;IAElD,0DAA0D;IAC1D,MAAM,OAAO,GAA2B;QACtC,QAAQ,EAAE,MAAM,CAAC,QAAQ;QACzB,UAAU,EAAE,MAAM,CAAC,UAAU;QAC7B,QAAQ,EAAE,GAAG,aAAa,IAAI,MAAM,CAAC,IAAI,EAAE;KAC5C,CAAC;IAEF,MAAM,YAAY,GAAG,aAAK,CAAC,cAAc,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;IAEjE,qBAAqB;IACrB,MAAM,WAAW,GAAQ;QACvB,OAAO,EAAE;YACP,MAAM,EAAE;gBACN,CAAC,EAAE;oBACD,IAAI,EAAE,MAAM;iBACb;aACF;SACF;KACF,CAAC;IAEF,wCAAwC;IACxC,IAAI,gBAAgB,EAAE,CAAC;QACrB,WAAW,CAAC,OAAO,CAAC,MAAM,CAAC,SAAS,GAAG;YACrC,CAAC,EAAE,gBAAgB;SACpB,CAAC;IACJ,CAAC;IAED,OAAO,yBAAkB,CAAC,kBAAkB,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,EAAE,WAAW,CAAC,CAAC;AACvF,CAAC;AApCD,sCAoCC"}
@@ -9,3 +9,4 @@
9
9
  *
10
10
  */
11
11
  export * from "./Utils";
12
+ export * from "./ResourceActions";
@@ -25,4 +25,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
25
25
  };
26
26
  Object.defineProperty(exports, "__esModule", { value: true });
27
27
  __exportStar(require("./Utils"), exports);
28
+ __exportStar(require("./ResourceActions"), exports);
28
29
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;;;;;;;;;;;;;;;;AAEH,0CAAwB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;;;;;;;;;;;;;;;;AAEH,0CAAwB;AACxB,oDAAkC"}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zowe/cics-for-zowe-sdk",
3
- "version": "6.21.0",
3
+ "version": "6.22.0",
4
4
  "author": "Zowe",
5
5
  "license": "EPL-2.0",
6
6
  "description": "Zowe SDK for IBM CICS Transaction Server",
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "@zowe/cics-for-zowe-cli",
3
- "version": "6.21.0",
3
+ "version": "6.22.0",
4
4
  "lockfileVersion": 2,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@zowe/cics-for-zowe-cli",
9
- "version": "6.21.0",
9
+ "version": "6.22.0",
10
10
  "bundleDependencies": [
11
11
  "@zowe/cics-for-zowe-sdk"
12
12
  ],
13
13
  "license": "EPL-2.0",
14
14
  "dependencies": {
15
- "@zowe/cics-for-zowe-sdk": "6.21.0"
15
+ "@zowe/cics-for-zowe-sdk": "6.22.0"
16
16
  },
17
17
  "engines": {
18
18
  "node": ">=18.12.0"