@zowe/cics-for-zowe-cli 6.2.2 → 6.2.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/npm-shrinkwrap.json +13 -17
- package/package.json +2 -5
- package/node_modules/@zowe/cics-for-zowe-sdk/LICENSE +0 -277
- package/node_modules/@zowe/cics-for-zowe-sdk/README.md +0 -161
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/constants/CicsCmci.constants.d.ts +0 -84
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/constants/CicsCmci.constants.js +0 -91
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/constants/CicsCmci.constants.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/constants/CicsCmci.messages.d.ts +0 -17
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/constants/CicsCmci.messages.js +0 -22
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/constants/CicsCmci.messages.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/constants/index.d.ts +0 -12
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/constants/index.js +0 -29
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/constants/index.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/ICMCIApiResponse.d.ts +0 -33
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/ICMCIApiResponse.js +0 -13
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/ICMCIApiResponse.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/ICMCIResponseResultSummary.d.ts +0 -28
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/ICMCIResponseResultSummary.js +0 -13
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/ICMCIResponseResultSummary.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/ICSDGroupParms.d.ts +0 -30
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/ICSDGroupParms.js +0 -13
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/ICSDGroupParms.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/ICacheParms.d.ts +0 -17
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/ICacheParms.js +0 -13
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/ICacheParms.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IGetResourceUriOptions.d.ts +0 -42
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IGetResourceUriOptions.js +0 -13
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IGetResourceUriOptions.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IProgramParms.d.ts +0 -30
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IProgramParms.js +0 -13
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IProgramParms.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IResourceParms.d.ts +0 -17
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IResourceParms.js +0 -13
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IResourceParms.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IResourceQueryParms.d.ts +0 -24
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IResourceQueryParms.js +0 -13
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IResourceQueryParms.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IResultCacheParms.d.ts +0 -21
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IResultCacheParms.js +0 -13
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IResultCacheParms.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/ITransactionParms.d.ts +0 -35
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/ITransactionParms.js +0 -13
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/ITransactionParms.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IURIMapParms.d.ts +0 -89
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IURIMapParms.js +0 -13
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IURIMapParms.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IWebServiceParms.d.ts +0 -55
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IWebServiceParms.js +0 -13
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IWebServiceParms.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/index.d.ts +0 -22
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/index.js +0 -39
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/index.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/index.d.ts +0 -15
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/index.js +0 -32
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/index.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/add-to-list/AddToList.d.ts +0 -23
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/add-to-list/AddToList.js +0 -57
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/add-to-list/AddToList.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/add-to-list/index.d.ts +0 -11
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/add-to-list/index.js +0 -28
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/add-to-list/index.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/cache/Cache.d.ts +0 -14
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/cache/Cache.js +0 -30
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/cache/Cache.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/cache/index.d.ts +0 -11
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/cache/index.js +0 -28
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/cache/index.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/define/Define.d.ts +0 -85
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/define/Define.js +0 -301
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/define/Define.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/define/index.d.ts +0 -11
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/define/index.js +0 -28
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/define/index.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/delete/Delete.d.ts +0 -58
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/delete/Delete.js +0 -120
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/delete/Delete.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/delete/index.d.ts +0 -11
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/delete/index.js +0 -28
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/delete/index.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/disable/Disable.d.ts +0 -24
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/disable/Disable.js +0 -53
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/disable/Disable.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/disable/index.d.ts +0 -11
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/disable/index.js +0 -28
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/disable/index.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/discard/Discard.d.ts +0 -35
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/discard/Discard.js +0 -77
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/discard/Discard.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/discard/index.d.ts +0 -11
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/discard/index.js +0 -28
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/discard/index.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/enable/Enable.d.ts +0 -24
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/enable/Enable.js +0 -53
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/enable/Enable.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/enable/index.d.ts +0 -11
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/enable/index.js +0 -28
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/enable/index.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/get/Get.d.ts +0 -23
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/get/Get.js +0 -41
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/get/Get.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/get/index.d.ts +0 -11
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/get/index.js +0 -28
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/get/index.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/index.d.ts +0 -21
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/index.js +0 -38
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/index.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/install/Install.d.ts +0 -48
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/install/Install.js +0 -123
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/install/Install.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/install/index.d.ts +0 -11
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/install/index.js +0 -28
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/install/index.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/remove-from-list/RemoveFromList.d.ts +0 -23
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/remove-from-list/RemoveFromList.js +0 -42
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/remove-from-list/RemoveFromList.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/remove-from-list/index.d.ts +0 -11
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/remove-from-list/index.js +0 -28
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/remove-from-list/index.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/set/Set.d.ts +0 -23
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/set/Set.js +0 -50
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/set/Set.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/set/index.d.ts +0 -11
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/set/index.js +0 -28
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/set/index.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/rest/CicsCmciRestClient.d.ts +0 -128
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/rest/CicsCmciRestClient.js +0 -220
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/rest/CicsCmciRestClient.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/rest/index.d.ts +0 -11
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/rest/index.js +0 -28
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/rest/index.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/utils/Utils.d.ts +0 -27
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/utils/Utils.js +0 -80
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/utils/Utils.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/utils/index.d.ts +0 -11
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/utils/index.js +0 -28
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/utils/index.js.map +0 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/package.json +0 -54
- package/node_modules/sax/LICENSE +0 -41
- package/node_modules/sax/README.md +0 -228
- package/node_modules/sax/lib/sax.js +0 -1597
- package/node_modules/sax/package.json +0 -29
- package/node_modules/xml2js/LICENSE +0 -19
- package/node_modules/xml2js/README.md +0 -507
- package/node_modules/xml2js/lib/bom.js +0 -12
- package/node_modules/xml2js/lib/builder.js +0 -127
- package/node_modules/xml2js/lib/defaults.js +0 -72
- package/node_modules/xml2js/lib/parser.js +0 -385
- package/node_modules/xml2js/lib/processors.js +0 -34
- package/node_modules/xml2js/lib/xml2js.js +0 -39
- package/node_modules/xml2js/node_modules/xmlbuilder/CHANGELOG.md +0 -470
- package/node_modules/xml2js/node_modules/xmlbuilder/LICENSE +0 -21
- package/node_modules/xml2js/node_modules/xmlbuilder/README.md +0 -86
- package/node_modules/xml2js/node_modules/xmlbuilder/appveyor.yml +0 -20
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/Derivation.js +0 -10
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/DocumentPosition.js +0 -12
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/NodeType.js +0 -23
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/OperationType.js +0 -11
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/Utility.js +0 -83
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/WriterState.js +0 -10
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLAttribute.js +0 -108
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLCData.js +0 -36
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLCharacterData.js +0 -79
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLComment.js +0 -36
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDOMConfiguration.js +0 -64
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDOMErrorHandler.js +0 -16
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDOMImplementation.js +0 -32
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDOMStringList.js +0 -28
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDTDAttList.js +0 -55
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDTDElement.js +0 -38
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDTDEntity.js +0 -97
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDTDNotation.js +0 -52
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDeclaration.js +0 -43
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDocType.js +0 -186
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDocument.js +0 -242
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDocumentCB.js +0 -528
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDocumentFragment.js +0 -24
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDummy.js +0 -31
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLElement.js +0 -298
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLNamedNodeMap.js +0 -58
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLNode.js +0 -785
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLNodeFilter.js +0 -48
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLNodeList.js +0 -28
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLProcessingInstruction.js +0 -49
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLRaw.js +0 -35
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLStreamWriter.js +0 -176
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLStringWriter.js +0 -35
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLStringifier.js +0 -240
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLText.js +0 -69
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLTypeInfo.js +0 -21
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLUserDataHandler.js +0 -16
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLWriterBase.js +0 -428
- package/node_modules/xml2js/node_modules/xmlbuilder/lib/index.js +0 -65
- package/node_modules/xml2js/node_modules/xmlbuilder/package.json +0 -39
- package/node_modules/xml2js/node_modules/xmlbuilder/typings/index.d.ts +0 -153
- package/node_modules/xml2js/package.json +0 -93
|
@@ -1,123 +0,0 @@
|
|
|
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.installUrimap = exports.installTransaction = exports.installProgram = void 0;
|
|
14
|
-
const imperative_1 = require("@zowe/imperative");
|
|
15
|
-
const rest_1 = require("../../rest");
|
|
16
|
-
const constants_1 = require("../../constants");
|
|
17
|
-
const utils_1 = require("../../utils");
|
|
18
|
-
/**
|
|
19
|
-
* Install a program definition to CICS through CMCI REST API
|
|
20
|
-
* @param {AbstractSession} session - the session to connect to CMCI with
|
|
21
|
-
* @param {IProgramParms} parms - parameters for installing your program
|
|
22
|
-
* @returns {Promise<any>} promise that resolves to the response (XML parsed into a javascript object)
|
|
23
|
-
* when the request is complete
|
|
24
|
-
* @throws {ImperativeError} CICS program name not defined or blank
|
|
25
|
-
* @throws {ImperativeError} CICS CSD group not defined or blank
|
|
26
|
-
* @throws {ImperativeError} CICS region name not defined or blank
|
|
27
|
-
* @throws {ImperativeError} CicsCmciRestClient request fails
|
|
28
|
-
*/
|
|
29
|
-
function installProgram(session, parms) {
|
|
30
|
-
imperative_1.ImperativeExpect.toBeDefinedAndNonBlank(parms.name, "CICS Program name", "CICS program name is required");
|
|
31
|
-
imperative_1.ImperativeExpect.toBeDefinedAndNonBlank(parms.csdGroup, "CICS CSD Group", "CICS CSD group is required");
|
|
32
|
-
imperative_1.ImperativeExpect.toBeDefinedAndNonBlank(parms.regionName, "CICS Region name", "CICS region name is required");
|
|
33
|
-
imperative_1.Logger.getAppLogger().debug("Attempting to install a program with the following parameters:\n%s", JSON.stringify(parms));
|
|
34
|
-
const requestBody = {
|
|
35
|
-
request: {
|
|
36
|
-
action: {
|
|
37
|
-
$: {
|
|
38
|
-
name: "CSDINSTALL",
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
const options = {
|
|
44
|
-
"cicsPlex": parms.cicsPlex,
|
|
45
|
-
"regionName": parms.regionName,
|
|
46
|
-
"criteria": `NAME=${parms.name}`,
|
|
47
|
-
"parameter": `CSDGROUP(${parms.csdGroup})`
|
|
48
|
-
};
|
|
49
|
-
const cmciResource = utils_1.Utils.getResourceUri(constants_1.CicsCmciConstants.CICS_DEFINITION_PROGRAM, options);
|
|
50
|
-
return rest_1.CicsCmciRestClient.putExpectParsedXml(session, cmciResource, [], requestBody);
|
|
51
|
-
}
|
|
52
|
-
exports.installProgram = installProgram;
|
|
53
|
-
/**
|
|
54
|
-
* Install a transaction definition to CICS through CMCI REST API
|
|
55
|
-
* @param {AbstractSession} session - the session to connect to CMCI with
|
|
56
|
-
* @param {IProgramParms} parms - parameters for installing your transaction
|
|
57
|
-
* @returns {Promise<any>} promise that resolves to the response (XML parsed into a javascript object)
|
|
58
|
-
* when the request is complete
|
|
59
|
-
* @throws {ImperativeError} CICS transaction name not defined or blank
|
|
60
|
-
* @throws {ImperativeError} CICS CSD group not defined or blank
|
|
61
|
-
* @throws {ImperativeError} CICS region name not defined or blank
|
|
62
|
-
* @throws {ImperativeError} CicsCmciRestClient request fails
|
|
63
|
-
*/
|
|
64
|
-
function installTransaction(session, parms) {
|
|
65
|
-
imperative_1.ImperativeExpect.toBeDefinedAndNonBlank(parms.name, "CICS Transaction name", "CICS transaction name is required");
|
|
66
|
-
imperative_1.ImperativeExpect.toBeDefinedAndNonBlank(parms.csdGroup, "CICS CSD Group", "CICS CSD group is required");
|
|
67
|
-
imperative_1.ImperativeExpect.toBeDefinedAndNonBlank(parms.regionName, "CICS Region name", "CICS region name is required");
|
|
68
|
-
imperative_1.Logger.getAppLogger().debug("Attempting to install a transaction with the following parameters:\n%s", JSON.stringify(parms));
|
|
69
|
-
const requestBody = {
|
|
70
|
-
request: {
|
|
71
|
-
action: {
|
|
72
|
-
$: {
|
|
73
|
-
name: "CSDINSTALL",
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
};
|
|
78
|
-
const options = {
|
|
79
|
-
"cicsPlex": parms.cicsPlex,
|
|
80
|
-
"regionName": parms.regionName,
|
|
81
|
-
"criteria": `NAME=${parms.name}`,
|
|
82
|
-
"parameter": `CSDGROUP(${parms.csdGroup})`
|
|
83
|
-
};
|
|
84
|
-
const cmciResource = utils_1.Utils.getResourceUri(constants_1.CicsCmciConstants.CICS_DEFINITION_TRANSACTION, options);
|
|
85
|
-
return rest_1.CicsCmciRestClient.putExpectParsedXml(session, cmciResource, [], requestBody);
|
|
86
|
-
}
|
|
87
|
-
exports.installTransaction = installTransaction;
|
|
88
|
-
/**
|
|
89
|
-
* Install a URIMap installed in CICS through CMCI REST API
|
|
90
|
-
* @param {AbstractSession} session - the session to connect to CMCI with
|
|
91
|
-
* @param {IURIMapParms} parms - parameters for enabling your URIMap
|
|
92
|
-
* @returns {Promise<ICMCIApiResponse>} promise that resolves to the response (XML parsed into a javascript object)
|
|
93
|
-
* when the request is complete
|
|
94
|
-
* @throws {ImperativeError} CICS URIMap name not defined or blank
|
|
95
|
-
* @throws {ImperativeError} CICS CSD group not defined or blank
|
|
96
|
-
* @throws {ImperativeError} CICS region name not defined or blank
|
|
97
|
-
* @throws {ImperativeError} CicsCmciRestClient request fails
|
|
98
|
-
*/
|
|
99
|
-
function installUrimap(session, parms) {
|
|
100
|
-
imperative_1.ImperativeExpect.toBeDefinedAndNonBlank(parms.name, "CICS URIMap name", "CICS URIMap name is required");
|
|
101
|
-
imperative_1.ImperativeExpect.toBeDefinedAndNonBlank(parms.csdGroup, "CICS CSD group", "CICS CSD group name is required");
|
|
102
|
-
imperative_1.ImperativeExpect.toBeDefinedAndNonBlank(parms.regionName, "CICS Region name", "CICS region name is required");
|
|
103
|
-
imperative_1.Logger.getAppLogger().debug("Attempting to install a URIMap with the following parameters:\n%s", JSON.stringify(parms));
|
|
104
|
-
const options = {
|
|
105
|
-
"cicsPlex": parms.cicsPlex,
|
|
106
|
-
"regionName": parms.regionName,
|
|
107
|
-
"criteria": `NAME=${parms.name}`,
|
|
108
|
-
"parameter": `CSDGROUP(${parms.csdGroup})`
|
|
109
|
-
};
|
|
110
|
-
const cmciResource = utils_1.Utils.getResourceUri(constants_1.CicsCmciConstants.CICS_DEFINITION_URIMAP, options);
|
|
111
|
-
const requestBody = {
|
|
112
|
-
request: {
|
|
113
|
-
action: {
|
|
114
|
-
$: {
|
|
115
|
-
name: "CSDINSTALL",
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
};
|
|
120
|
-
return rest_1.CicsCmciRestClient.putExpectParsedXml(session, cmciResource, [], requestBody);
|
|
121
|
-
}
|
|
122
|
-
exports.installUrimap = installUrimap;
|
|
123
|
-
//# sourceMappingURL=Install.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Install.js","sourceRoot":"","sources":["../../../src/methods/install/Install.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,11 +0,0 @@
|
|
|
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 "./Install";
|
|
@@ -1,28 +0,0 @@
|
|
|
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("./Install"), exports);
|
|
28
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/methods/install/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;;;;;;;;;;;;;;;;AAEH,4CAA0B"}
|
package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/remove-from-list/RemoveFromList.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
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 { AbstractSession } from "@zowe/imperative";
|
|
12
|
-
import { ICMCIApiResponse, ICSDGroupParms } from "../../doc";
|
|
13
|
-
/**
|
|
14
|
-
* Remove a CSD Group resource from a CSD List in CICS through CMCI REST API
|
|
15
|
-
* @param {AbstractSession} session - the session to connect to CMCI with
|
|
16
|
-
* @param {ICSDGroupParms} parms - parameters for defining your CSD Group
|
|
17
|
-
* @returns {Promise<any>} promise that resolves to the response (XML parsed into a javascript object)
|
|
18
|
-
* when the request is complete
|
|
19
|
-
* @throws {ImperativeError} CICS CSD Group name not defined or blank
|
|
20
|
-
* @throws {ImperativeError} CICS CSD List not defined or blank
|
|
21
|
-
* @throws {ImperativeError} CicsCmciRestClient request fails
|
|
22
|
-
*/
|
|
23
|
-
export declare function removeCSDGroupFromList(session: AbstractSession, parms: ICSDGroupParms): Promise<ICMCIApiResponse>;
|
|
@@ -1,42 +0,0 @@
|
|
|
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.removeCSDGroupFromList = void 0;
|
|
14
|
-
const imperative_1 = require("@zowe/imperative");
|
|
15
|
-
const rest_1 = require("../../rest");
|
|
16
|
-
const constants_1 = require("../../constants");
|
|
17
|
-
const utils_1 = require("../../utils");
|
|
18
|
-
/**
|
|
19
|
-
* Remove a CSD Group resource from a CSD List in CICS through CMCI REST API
|
|
20
|
-
* @param {AbstractSession} session - the session to connect to CMCI with
|
|
21
|
-
* @param {ICSDGroupParms} parms - parameters for defining your CSD Group
|
|
22
|
-
* @returns {Promise<any>} promise that resolves to the response (XML parsed into a javascript object)
|
|
23
|
-
* when the request is complete
|
|
24
|
-
* @throws {ImperativeError} CICS CSD Group name not defined or blank
|
|
25
|
-
* @throws {ImperativeError} CICS CSD List not defined or blank
|
|
26
|
-
* @throws {ImperativeError} CicsCmciRestClient request fails
|
|
27
|
-
*/
|
|
28
|
-
function removeCSDGroupFromList(session, parms) {
|
|
29
|
-
imperative_1.ImperativeExpect.toBeDefinedAndNonBlank(parms.name, "CICS CSD Group Name", "CICS CSD Group Name is required");
|
|
30
|
-
imperative_1.ImperativeExpect.toBeDefinedAndNonBlank(parms.csdList, "CICS CSD List", "CICS CSD List is required");
|
|
31
|
-
imperative_1.ImperativeExpect.toBeDefinedAndNonBlank(parms.regionName, "CICS Region name", "CICS region name is required");
|
|
32
|
-
imperative_1.Logger.getAppLogger().debug("Attempting to remove a CSD Group from a CSD List with the following parameters:\n%s", JSON.stringify(parms));
|
|
33
|
-
const options = {
|
|
34
|
-
"cicsPlex": parms.cicsPlex,
|
|
35
|
-
"regionName": parms.regionName,
|
|
36
|
-
"criteria": `(CSDLIST=='${parms.csdList}') AND (CSDGROUP=='${parms.name}')`
|
|
37
|
-
};
|
|
38
|
-
const cmciResource = utils_1.Utils.getResourceUri(constants_1.CicsCmciConstants.CICS_CSDGROUP_IN_LIST, options);
|
|
39
|
-
return rest_1.CicsCmciRestClient.deleteExpectParsedXml(session, cmciResource, []);
|
|
40
|
-
}
|
|
41
|
-
exports.removeCSDGroupFromList = removeCSDGroupFromList;
|
|
42
|
-
//# sourceMappingURL=RemoveFromList.js.map
|
package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/remove-from-list/RemoveFromList.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"RemoveFromList.js","sourceRoot":"","sources":["../../../src/methods/remove-from-list/RemoveFromList.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;;;AAEH,iDAA6E;AAC7E,qCAAgD;AAChD,+CAAoD;AACpD,uCAAoC;AAGpC;;;;;;;;;GASG;AACH,SAAgB,sBAAsB,CAAC,OAAwB,EAAE,KAAqB;IACpF,6BAAgB,CAAC,sBAAsB,CAAC,KAAK,CAAC,IAAI,EAAE,qBAAqB,EAAE,iCAAiC,CAAC,CAAC;IAC9G,6BAAgB,CAAC,sBAAsB,CAAC,KAAK,CAAC,OAAO,EAAE,eAAe,EAAE,2BAA2B,CAAC,CAAC;IACrG,6BAAgB,CAAC,sBAAsB,CAAC,KAAK,CAAC,UAAU,EAAE,kBAAkB,EAAE,8BAA8B,CAAC,CAAC;IAE9G,mBAAM,CAAC,YAAY,EAAE,CAAC,KAAK,CAAC,qFAAqF,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;IAE1I,MAAM,OAAO,GAA2B;QACtC,UAAU,EAAE,KAAK,CAAC,QAAQ;QAC1B,YAAY,EAAE,KAAK,CAAC,UAAU;QAC9B,UAAU,EAAE,cAAc,KAAK,CAAC,OAAO,sBAAsB,KAAK,CAAC,IAAI,IAAI;KAC5E,CAAC;IAEF,MAAM,YAAY,GAAG,aAAK,CAAC,cAAc,CAAC,6BAAiB,CAAC,qBAAqB,EAAE,OAAO,CAAC,CAAC;IAE5F,OAAO,yBAAkB,CAAC,qBAAqB,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,CAAQ,CAAC;AACpF,CAAC;AAhBD,wDAgBC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
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 "./RemoveFromList";
|
|
@@ -1,28 +0,0 @@
|
|
|
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("./RemoveFromList"), exports);
|
|
28
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/methods/remove-from-list/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;;;;;;;;;;;;;;;;AAEH,mDAAiC"}
|
|
@@ -1,23 +0,0 @@
|
|
|
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 { AbstractSession } from "@zowe/imperative";
|
|
12
|
-
import { ICMCIApiResponse, IProgramParms } from "../../doc";
|
|
13
|
-
/**
|
|
14
|
-
* Refresh a program definition on CICS through CMCI REST API
|
|
15
|
-
* @param {AbstractSession} session - the session to connect to CMCI with
|
|
16
|
-
* @param {IProgramParms} parms - parameters for refreshing your program
|
|
17
|
-
* @returns {Promise<any>} promise that resolves to the response (XML parsed into a javascript object)
|
|
18
|
-
* when the request is complete
|
|
19
|
-
* @throws {ImperativeError} CICS program name not defined or blank
|
|
20
|
-
* @throws {ImperativeError} CICS region name not defined or blank
|
|
21
|
-
* @throws {ImperativeError} CicsCmciRestClient request fails
|
|
22
|
-
*/
|
|
23
|
-
export declare function programNewcopy(session: AbstractSession, parms: IProgramParms): Promise<ICMCIApiResponse>;
|
|
@@ -1,50 +0,0 @@
|
|
|
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.programNewcopy = void 0;
|
|
14
|
-
const imperative_1 = require("@zowe/imperative");
|
|
15
|
-
const rest_1 = require("../../rest");
|
|
16
|
-
const constants_1 = require("../../constants");
|
|
17
|
-
const utils_1 = require("../../utils");
|
|
18
|
-
/**
|
|
19
|
-
* Refresh a program definition on CICS through CMCI REST API
|
|
20
|
-
* @param {AbstractSession} session - the session to connect to CMCI with
|
|
21
|
-
* @param {IProgramParms} parms - parameters for refreshing your program
|
|
22
|
-
* @returns {Promise<any>} promise that resolves to the response (XML parsed into a javascript object)
|
|
23
|
-
* when the request is complete
|
|
24
|
-
* @throws {ImperativeError} CICS program name not defined or blank
|
|
25
|
-
* @throws {ImperativeError} CICS region name not defined or blank
|
|
26
|
-
* @throws {ImperativeError} CicsCmciRestClient request fails
|
|
27
|
-
*/
|
|
28
|
-
function programNewcopy(session, parms) {
|
|
29
|
-
imperative_1.ImperativeExpect.toBeDefinedAndNonBlank(parms.name, "CICS Program name", "CICS program name is required");
|
|
30
|
-
imperative_1.ImperativeExpect.toBeDefinedAndNonBlank(parms.regionName, "CICS Region name", "CICS region name is required");
|
|
31
|
-
imperative_1.Logger.getAppLogger().debug("Attempting to refresh a program with the following parameters:\n%s", JSON.stringify(parms));
|
|
32
|
-
const requestBody = {
|
|
33
|
-
request: {
|
|
34
|
-
action: {
|
|
35
|
-
$: {
|
|
36
|
-
name: "NEWCOPY",
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
};
|
|
41
|
-
const options = {
|
|
42
|
-
"cicsPlex": parms.cicsPlex,
|
|
43
|
-
"regionName": parms.regionName,
|
|
44
|
-
"criteria": `PROGRAM=${parms.name}`
|
|
45
|
-
};
|
|
46
|
-
const cmciResource = utils_1.Utils.getResourceUri(constants_1.CicsCmciConstants.CICS_PROGRAM_RESOURCE, options);
|
|
47
|
-
return rest_1.CicsCmciRestClient.putExpectParsedXml(session, cmciResource, [], requestBody);
|
|
48
|
-
}
|
|
49
|
-
exports.programNewcopy = programNewcopy;
|
|
50
|
-
//# sourceMappingURL=Set.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Set.js","sourceRoot":"","sources":["../../../src/methods/set/Set.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;;;AAEH,iDAA6E;AAC7E,qCAAgD;AAChD,+CAAoD;AACpD,uCAAoC;AAGpC;;;;;;;;;GASG;AACH,SAAgB,cAAc,CAAC,OAAwB,EAAE,KAAoB;IAC3E,6BAAgB,CAAC,sBAAsB,CAAC,KAAK,CAAC,IAAI,EAAE,mBAAmB,EAAE,+BAA+B,CAAC,CAAC;IAC1G,6BAAgB,CAAC,sBAAsB,CAAC,KAAK,CAAC,UAAU,EAAE,kBAAkB,EAAE,8BAA8B,CAAC,CAAC;IAE9G,mBAAM,CAAC,YAAY,EAAE,CAAC,KAAK,CAAC,oEAAoE,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;IACzH,MAAM,WAAW,GAAQ;QACvB,OAAO,EAAE;YACP,MAAM,EAAE;gBACN,CAAC,EAAE;oBACD,IAAI,EAAE,SAAS;iBAChB;aACF;SACF;KACF,CAAC;IAEF,MAAM,OAAO,GAA2B;QACtC,UAAU,EAAE,KAAK,CAAC,QAAQ;QAC1B,YAAY,EAAE,KAAK,CAAC,UAAU;QAC9B,UAAU,EAAE,WAAW,KAAK,CAAC,IAAI,EAAE;KACpC,CAAC;IAEF,MAAM,YAAY,GAAG,aAAK,CAAC,cAAc,CAAC,6BAAiB,CAAC,qBAAqB,EAAE,OAAO,CAAC,CAAC;IAE5F,OAAO,yBAAkB,CAAC,kBAAkB,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,EAAE,WAAW,CAAQ,CAAC;AAC9F,CAAC;AAxBD,wCAwBC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
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 "./Set";
|
|
@@ -1,28 +0,0 @@
|
|
|
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("./Set"), exports);
|
|
28
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/methods/set/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;;;;;;;;;;;;;;;;AAEH,wCAAsB"}
|
|
@@ -1,128 +0,0 @@
|
|
|
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 { AbstractSession, IImperativeError, RestClient } from "@zowe/imperative";
|
|
12
|
-
import { ICMCIApiResponse } from "../doc/ICMCIApiResponse";
|
|
13
|
-
/**
|
|
14
|
-
* Wrapper for invoke CICS CMCI API through the RestClient to perform common error
|
|
15
|
-
* handling and checking and resolve promises according to generic types
|
|
16
|
-
* @export
|
|
17
|
-
* @class CicsCmciRestClient
|
|
18
|
-
* @extends {RestClient}
|
|
19
|
-
*/
|
|
20
|
-
export declare class CicsCmciRestClient extends RestClient {
|
|
21
|
-
/**
|
|
22
|
-
* If the API request is successful, this value should be in
|
|
23
|
-
* api_response2 in the resultsummary object in the response
|
|
24
|
-
*/
|
|
25
|
-
static readonly CMCI_SUCCESS_RESPONSE_1 = "1024";
|
|
26
|
-
/**
|
|
27
|
-
* If the API request is successful, this value should be in
|
|
28
|
-
* api_response2 in the resultsummary object in the response
|
|
29
|
-
*/
|
|
30
|
-
static readonly CMCI_SUCCESS_RESPONSE_2 = "0";
|
|
31
|
-
/**
|
|
32
|
-
* Convert an object to XML using the xml2js package
|
|
33
|
-
* @param obj - the object to convert to XML
|
|
34
|
-
* @returns {string} the string of XML generated by xml2js
|
|
35
|
-
*/
|
|
36
|
-
static convertObjectToXML(obj: any): string;
|
|
37
|
-
/**
|
|
38
|
-
* Call the RestClient.getExpectString function assuming the response is XML, then return a promise of the JSON representation.
|
|
39
|
-
* @static
|
|
40
|
-
* @param {AbstractSession} session - representing connection to this api
|
|
41
|
-
* @param {string} resource - URI for which this request should go against
|
|
42
|
-
* @param {any} reqHeaders - headers to include in the REST request
|
|
43
|
-
* @returns {Promise<*>} - response body content from http(s) call
|
|
44
|
-
* @throws {ImperativeError} verifyResponseCodes fails
|
|
45
|
-
*/
|
|
46
|
-
static getExpectParsedXml(session: AbstractSession, resource: string, reqHeaders?: any[]): Promise<ICMCIApiResponse>;
|
|
47
|
-
/**
|
|
48
|
-
* Call the RestClient.deleteExpectString function assuming the response is XML, then return a promise of the JSON representation.
|
|
49
|
-
* @static
|
|
50
|
-
* @param {AbstractSession} session - representing connection to this api
|
|
51
|
-
* @param {string} resource - URI for which this request should go against
|
|
52
|
-
* @param {any} reqHeaders - headers to include in the REST request
|
|
53
|
-
* @returns {Promise<*>} - response body content from http(s) call
|
|
54
|
-
* @throws {ImperativeError} verifyResponseCodes fails
|
|
55
|
-
*/
|
|
56
|
-
static deleteExpectParsedXml(session: AbstractSession, resource: string, reqHeaders?: any[]): Promise<ICMCIApiResponse>;
|
|
57
|
-
/**
|
|
58
|
-
* PUT a CMCI endpoint expecting an XML return value parsed into a JCL
|
|
59
|
-
* Call the RestClient.putExpectString function assuming the response is XML, then return a promise of the JSON representation.
|
|
60
|
-
* @static
|
|
61
|
-
* @param {AbstractSession} session - representing connection to this api
|
|
62
|
-
* @param {string} resource - URI for which this request should go against
|
|
63
|
-
* @param {any} reqHeaders - headers to include in the REST request
|
|
64
|
-
* @param payload - XML body to put or a javascript object to convert to XML
|
|
65
|
-
* @returns {Promise<*>} - response body content from http(s) call
|
|
66
|
-
* @throws {ImperativeError} verifyResponseCodes fails
|
|
67
|
-
*/
|
|
68
|
-
static putExpectParsedXml(session: AbstractSession, resource: string, reqHeaders: any[], payload: any): Promise<ICMCIApiResponse>;
|
|
69
|
-
/**
|
|
70
|
-
* POST a CMCI endpoint expecting a XML return value
|
|
71
|
-
* Calls the RestClient.postExpectString function assuming the response is XML, then return a promise of the JSON representation.
|
|
72
|
-
* @static
|
|
73
|
-
* @param {AbstractSession} session - representing connection to this api
|
|
74
|
-
* @param {string} resource - URI for which this request should go against
|
|
75
|
-
* @param {any} reqHeaders - headers to include in the REST request
|
|
76
|
-
* @param payload - XML body to put or a javascript object to convert to XML
|
|
77
|
-
* @returns {Promise<*>} - response body content from http(s) call
|
|
78
|
-
* @throws {ImperativeError} verifyResponseCodes fails
|
|
79
|
-
*/
|
|
80
|
-
static postExpectParsedXml(session: AbstractSession, resource: string, reqHeaders: any[], payload: any): Promise<ICMCIApiResponse>;
|
|
81
|
-
/**
|
|
82
|
-
* Internal logger
|
|
83
|
-
*/
|
|
84
|
-
private static mLogger;
|
|
85
|
-
/**
|
|
86
|
-
* Internal parser
|
|
87
|
-
*/
|
|
88
|
-
private static mParser;
|
|
89
|
-
/**
|
|
90
|
-
* Detect if a payload is a string or an object
|
|
91
|
-
* If it is an object, convert it to XML using xml2js
|
|
92
|
-
* @param payload - the request body / payload
|
|
93
|
-
* @returns {string} the XML that can be used as the request body
|
|
94
|
-
*/
|
|
95
|
-
private static convertPayloadToXML;
|
|
96
|
-
/**
|
|
97
|
-
* Use the Zowe logger instead of the imperative logger
|
|
98
|
-
* @return {Logger}
|
|
99
|
-
*/
|
|
100
|
-
private static get log();
|
|
101
|
-
/**
|
|
102
|
-
* Use a configured parser
|
|
103
|
-
* @return {Parser}
|
|
104
|
-
*/
|
|
105
|
-
private static get parser();
|
|
106
|
-
/**
|
|
107
|
-
* Check that we got the expected response codes from the API after a request
|
|
108
|
-
* @param {ICMCIApiResponse} apiResponse - the parsed response
|
|
109
|
-
* @returns {ICMCIApiResponse} - the response if it was correct
|
|
110
|
-
* @throws {ImperativeError} request did not get the expected codes
|
|
111
|
-
*/
|
|
112
|
-
private static verifyResponseCodes;
|
|
113
|
-
/**
|
|
114
|
-
* parse an XML string with XML2js
|
|
115
|
-
* The API is already synchronous according to their documentation but requires a callback.
|
|
116
|
-
* This is a wrapper that doesn't require a callback.
|
|
117
|
-
* @param {string} str - the string of XML to parse
|
|
118
|
-
* @returns {any} the object parsed from the XML
|
|
119
|
-
* @throws {Error} xml2js.parseString fails
|
|
120
|
-
*/
|
|
121
|
-
private static parseStringSync;
|
|
122
|
-
/**
|
|
123
|
-
* Process an error encountered in the rest client
|
|
124
|
-
* @param {IImperativeError} original - the original error automatically built by the abstract rest client
|
|
125
|
-
* @returns {IImperativeError} - the processed error with details added
|
|
126
|
-
*/
|
|
127
|
-
protected processError(original: IImperativeError): IImperativeError;
|
|
128
|
-
}
|