@zowe/cics-for-zowe-cli 6.0.0 → 6.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/constants/CicsCmci.constants.d.ts +69 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/constants/CicsCmci.constants.js +8 -0
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/constants/CicsCmci.constants.js.map +1 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/ICacheParms.d.ts +17 -0
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/ICacheParms.js +13 -0
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/ICacheParms.js.map +1 -0
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IGetResourceUriOptions.d.ts +42 -0
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IGetResourceUriOptions.js +13 -0
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IGetResourceUriOptions.js.map +1 -0
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IResourceParms.d.ts +2 -26
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IResourceQueryParms.d.ts +24 -0
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IResourceQueryParms.js +13 -0
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IResourceQueryParms.js.map +1 -0
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IResultCacheParms.d.ts +21 -0
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IResultCacheParms.js +13 -0
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IResultCacheParms.js.map +1 -0
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/index.d.ts +4 -0
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/index.js +4 -0
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/index.js.map +1 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/index.d.ts +1 -0
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/index.js +1 -0
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/index.js.map +1 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/add-to-list/AddToList.js +7 -4
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/add-to-list/AddToList.js.map +1 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/cache/Cache.d.ts +14 -0
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/cache/Cache.js +30 -0
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/cache/Cache.js.map +1 -0
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/cache/index.d.ts +11 -0
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/cache/index.js +28 -0
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/cache/index.js.map +1 -0
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/define/Define.js +31 -20
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/define/Define.js.map +1 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/delete/Delete.js +29 -16
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/delete/Delete.js.map +1 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/disable/Disable.js +7 -4
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/disable/Disable.js.map +1 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/discard/Discard.js +19 -12
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/discard/Discard.js.map +1 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/enable/Enable.js +7 -4
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/enable/Enable.js.map +1 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/get/Get.js +9 -13
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/get/Get.js.map +1 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/index.d.ts +1 -0
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/index.js +1 -0
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/index.js.map +1 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/install/Install.js +22 -12
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/install/Install.js.map +1 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/remove-from-list/RemoveFromList.js +7 -4
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/remove-from-list/RemoveFromList.js.map +1 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/set/Set.js +7 -4
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/set/Set.js.map +1 -1
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/utils/Utils.d.ts +27 -0
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/utils/Utils.js +80 -0
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/utils/Utils.js.map +1 -0
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/utils/index.d.ts +11 -0
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/utils/index.js +28 -0
- package/node_modules/@zowe/cics-for-zowe-sdk/lib/utils/index.js.map +1 -0
- package/node_modules/@zowe/cics-for-zowe-sdk/package.json +1 -1
- package/npm-shrinkwrap.json +31 -31
- package/package.json +3 -4
- /package/node_modules/{@zowe/cics-for-zowe-sdk/node_modules/xml2js → xml2js}/LICENSE +0 -0
- /package/node_modules/{@zowe/cics-for-zowe-sdk/node_modules/xml2js → xml2js}/README.md +0 -0
- /package/node_modules/{@zowe/cics-for-zowe-sdk/node_modules/xml2js → xml2js}/lib/bom.js +0 -0
- /package/node_modules/{@zowe/cics-for-zowe-sdk/node_modules/xml2js → xml2js}/lib/builder.js +0 -0
- /package/node_modules/{@zowe/cics-for-zowe-sdk/node_modules/xml2js → xml2js}/lib/defaults.js +0 -0
- /package/node_modules/{@zowe/cics-for-zowe-sdk/node_modules/xml2js → xml2js}/lib/parser.js +0 -0
- /package/node_modules/{@zowe/cics-for-zowe-sdk/node_modules/xml2js → xml2js}/lib/processors.js +0 -0
- /package/node_modules/{@zowe/cics-for-zowe-sdk/node_modules/xml2js → xml2js}/lib/xml2js.js +0 -0
- /package/node_modules/{@zowe/cics-for-zowe-sdk → xml2js}/node_modules/xmlbuilder/CHANGELOG.md +0 -0
- /package/node_modules/{@zowe/cics-for-zowe-sdk → xml2js}/node_modules/xmlbuilder/LICENSE +0 -0
- /package/node_modules/{@zowe/cics-for-zowe-sdk → xml2js}/node_modules/xmlbuilder/README.md +0 -0
- /package/node_modules/{@zowe/cics-for-zowe-sdk → xml2js}/node_modules/xmlbuilder/appveyor.yml +0 -0
- /package/node_modules/{@zowe/cics-for-zowe-sdk → xml2js}/node_modules/xmlbuilder/lib/Derivation.js +0 -0
- /package/node_modules/{@zowe/cics-for-zowe-sdk → xml2js}/node_modules/xmlbuilder/lib/DocumentPosition.js +0 -0
- /package/node_modules/{@zowe/cics-for-zowe-sdk → xml2js}/node_modules/xmlbuilder/lib/NodeType.js +0 -0
- /package/node_modules/{@zowe/cics-for-zowe-sdk → xml2js}/node_modules/xmlbuilder/lib/OperationType.js +0 -0
- /package/node_modules/{@zowe/cics-for-zowe-sdk → xml2js}/node_modules/xmlbuilder/lib/Utility.js +0 -0
- /package/node_modules/{@zowe/cics-for-zowe-sdk → xml2js}/node_modules/xmlbuilder/lib/WriterState.js +0 -0
- /package/node_modules/{@zowe/cics-for-zowe-sdk → xml2js}/node_modules/xmlbuilder/lib/XMLAttribute.js +0 -0
- /package/node_modules/{@zowe/cics-for-zowe-sdk → xml2js}/node_modules/xmlbuilder/lib/XMLCData.js +0 -0
- /package/node_modules/{@zowe/cics-for-zowe-sdk → xml2js}/node_modules/xmlbuilder/lib/XMLCharacterData.js +0 -0
- /package/node_modules/{@zowe/cics-for-zowe-sdk → xml2js}/node_modules/xmlbuilder/lib/XMLComment.js +0 -0
- /package/node_modules/{@zowe/cics-for-zowe-sdk → xml2js}/node_modules/xmlbuilder/lib/XMLDOMConfiguration.js +0 -0
- /package/node_modules/{@zowe/cics-for-zowe-sdk → xml2js}/node_modules/xmlbuilder/lib/XMLDOMErrorHandler.js +0 -0
- /package/node_modules/{@zowe/cics-for-zowe-sdk → xml2js}/node_modules/xmlbuilder/lib/XMLDOMImplementation.js +0 -0
- /package/node_modules/{@zowe/cics-for-zowe-sdk → xml2js}/node_modules/xmlbuilder/lib/XMLDOMStringList.js +0 -0
- /package/node_modules/{@zowe/cics-for-zowe-sdk → xml2js}/node_modules/xmlbuilder/lib/XMLDTDAttList.js +0 -0
- /package/node_modules/{@zowe/cics-for-zowe-sdk → xml2js}/node_modules/xmlbuilder/lib/XMLDTDElement.js +0 -0
- /package/node_modules/{@zowe/cics-for-zowe-sdk → xml2js}/node_modules/xmlbuilder/lib/XMLDTDEntity.js +0 -0
- /package/node_modules/{@zowe/cics-for-zowe-sdk → xml2js}/node_modules/xmlbuilder/lib/XMLDTDNotation.js +0 -0
- /package/node_modules/{@zowe/cics-for-zowe-sdk → xml2js}/node_modules/xmlbuilder/lib/XMLDeclaration.js +0 -0
- /package/node_modules/{@zowe/cics-for-zowe-sdk → xml2js}/node_modules/xmlbuilder/lib/XMLDocType.js +0 -0
- /package/node_modules/{@zowe/cics-for-zowe-sdk → xml2js}/node_modules/xmlbuilder/lib/XMLDocument.js +0 -0
- /package/node_modules/{@zowe/cics-for-zowe-sdk → xml2js}/node_modules/xmlbuilder/lib/XMLDocumentCB.js +0 -0
- /package/node_modules/{@zowe/cics-for-zowe-sdk → xml2js}/node_modules/xmlbuilder/lib/XMLDocumentFragment.js +0 -0
- /package/node_modules/{@zowe/cics-for-zowe-sdk → xml2js}/node_modules/xmlbuilder/lib/XMLDummy.js +0 -0
- /package/node_modules/{@zowe/cics-for-zowe-sdk → xml2js}/node_modules/xmlbuilder/lib/XMLElement.js +0 -0
- /package/node_modules/{@zowe/cics-for-zowe-sdk → xml2js}/node_modules/xmlbuilder/lib/XMLNamedNodeMap.js +0 -0
- /package/node_modules/{@zowe/cics-for-zowe-sdk → xml2js}/node_modules/xmlbuilder/lib/XMLNode.js +0 -0
- /package/node_modules/{@zowe/cics-for-zowe-sdk → xml2js}/node_modules/xmlbuilder/lib/XMLNodeFilter.js +0 -0
- /package/node_modules/{@zowe/cics-for-zowe-sdk → xml2js}/node_modules/xmlbuilder/lib/XMLNodeList.js +0 -0
- /package/node_modules/{@zowe/cics-for-zowe-sdk → xml2js}/node_modules/xmlbuilder/lib/XMLProcessingInstruction.js +0 -0
- /package/node_modules/{@zowe/cics-for-zowe-sdk → xml2js}/node_modules/xmlbuilder/lib/XMLRaw.js +0 -0
- /package/node_modules/{@zowe/cics-for-zowe-sdk → xml2js}/node_modules/xmlbuilder/lib/XMLStreamWriter.js +0 -0
- /package/node_modules/{@zowe/cics-for-zowe-sdk → xml2js}/node_modules/xmlbuilder/lib/XMLStringWriter.js +0 -0
- /package/node_modules/{@zowe/cics-for-zowe-sdk → xml2js}/node_modules/xmlbuilder/lib/XMLStringifier.js +0 -0
- /package/node_modules/{@zowe/cics-for-zowe-sdk → xml2js}/node_modules/xmlbuilder/lib/XMLText.js +0 -0
- /package/node_modules/{@zowe/cics-for-zowe-sdk → xml2js}/node_modules/xmlbuilder/lib/XMLTypeInfo.js +0 -0
- /package/node_modules/{@zowe/cics-for-zowe-sdk → xml2js}/node_modules/xmlbuilder/lib/XMLUserDataHandler.js +0 -0
- /package/node_modules/{@zowe/cics-for-zowe-sdk → xml2js}/node_modules/xmlbuilder/lib/XMLWriterBase.js +0 -0
- /package/node_modules/{@zowe/cics-for-zowe-sdk → xml2js}/node_modules/xmlbuilder/lib/index.js +0 -0
- /package/node_modules/{@zowe/cics-for-zowe-sdk → xml2js}/node_modules/xmlbuilder/package.json +0 -0
- /package/node_modules/{@zowe/cics-for-zowe-sdk → xml2js}/node_modules/xmlbuilder/typings/index.d.ts +0 -0
- /package/node_modules/{@zowe/cics-for-zowe-sdk/node_modules/xml2js → xml2js}/package.json +0 -0
|
@@ -12,5 +12,73 @@
|
|
|
12
12
|
* Constants to be used by the API
|
|
13
13
|
*/
|
|
14
14
|
export declare const CicsCmciConstants: {
|
|
15
|
-
|
|
15
|
+
/**
|
|
16
|
+
* Specifies the required part of the REST interface URI
|
|
17
|
+
*/
|
|
18
|
+
CICS_SYSTEM_MANAGEMENT: string;
|
|
19
|
+
/**
|
|
20
|
+
* Specifies the required part of the REST interface URI to access program definitions
|
|
21
|
+
*/
|
|
22
|
+
CICS_DEFINITION_PROGRAM: string;
|
|
23
|
+
/**
|
|
24
|
+
* Specifies the required part of the REST interface URI to update installed transactions
|
|
25
|
+
*/
|
|
26
|
+
CICS_LOCAL_TRANSACTION: string;
|
|
27
|
+
/**
|
|
28
|
+
* Specifies the required part of the REST interface URI to access transaction definitions
|
|
29
|
+
*/
|
|
30
|
+
CICS_DEFINITION_TRANSACTION: string;
|
|
31
|
+
/**
|
|
32
|
+
* Specifies the required part of the REST interface URI to access program resources
|
|
33
|
+
*/
|
|
34
|
+
CICS_PROGRAM_RESOURCE: string;
|
|
35
|
+
/**
|
|
36
|
+
* Specifies the required part of the REST interface URI to access URIMap definitions
|
|
37
|
+
*/
|
|
38
|
+
CICS_DEFINITION_URIMAP: string;
|
|
39
|
+
/**
|
|
40
|
+
* Specifies the required part of the REST interface URI to access webservice definitions
|
|
41
|
+
*/
|
|
42
|
+
CICS_DEFINITION_WEBSERVICE: string;
|
|
43
|
+
CICS_URIMAP: string;
|
|
44
|
+
/**
|
|
45
|
+
* Specifies the required part of the REST interface URI to access CSD Group definitions
|
|
46
|
+
*/
|
|
47
|
+
CICS_CSDGROUP: string;
|
|
48
|
+
/**
|
|
49
|
+
* Specifies the required part of the REST interface URI to access CSD Group in list definitions
|
|
50
|
+
*/
|
|
51
|
+
CICS_CSDGROUP_IN_LIST: string;
|
|
52
|
+
/**
|
|
53
|
+
* Specifies the Result Cache part of the URI
|
|
54
|
+
*/
|
|
55
|
+
CICS_RESULT_CACHE: string;
|
|
56
|
+
/**
|
|
57
|
+
* ORDERBY parameter
|
|
58
|
+
*/
|
|
59
|
+
ORDER_BY: string;
|
|
60
|
+
/**
|
|
61
|
+
* SUMMONLY parameter
|
|
62
|
+
*/
|
|
63
|
+
SUMM_ONLY: string;
|
|
64
|
+
/**
|
|
65
|
+
* NODISCARD parameter
|
|
66
|
+
*/
|
|
67
|
+
NO_DISCARD: string;
|
|
68
|
+
/**
|
|
69
|
+
* OVERRIDEWARNINGCOUNT parameter
|
|
70
|
+
*/
|
|
71
|
+
OVERRIDE_WARNING_COUNT: string;
|
|
72
|
+
/**
|
|
73
|
+
* CRITERIA parameter
|
|
74
|
+
*/
|
|
75
|
+
CRITERIA: string;
|
|
76
|
+
/**
|
|
77
|
+
* PARAMETER parameter
|
|
78
|
+
*/
|
|
79
|
+
PARAMETER: string;
|
|
80
|
+
/**
|
|
81
|
+
* The CICS CMCI external resource names
|
|
82
|
+
*/
|
|
83
|
+
CICS_CMCI_EXTERNAL_RESOURCES: string[];
|
|
16
84
|
};
|
|
@@ -55,6 +55,10 @@ exports.CicsCmciConstants = {
|
|
|
55
55
|
* Specifies the required part of the REST interface URI to access CSD Group in list definitions
|
|
56
56
|
*/
|
|
57
57
|
CICS_CSDGROUP_IN_LIST: "CICSCSDGroupInList",
|
|
58
|
+
/**
|
|
59
|
+
* Specifies the Result Cache part of the URI
|
|
60
|
+
*/
|
|
61
|
+
CICS_RESULT_CACHE: "CICSResultCache",
|
|
58
62
|
/**
|
|
59
63
|
* ORDERBY parameter
|
|
60
64
|
*/
|
|
@@ -67,6 +71,10 @@ exports.CicsCmciConstants = {
|
|
|
67
71
|
* NODISCARD parameter
|
|
68
72
|
*/
|
|
69
73
|
NO_DISCARD: "NODISCARD",
|
|
74
|
+
/**
|
|
75
|
+
* OVERRIDEWARNINGCOUNT parameter
|
|
76
|
+
*/
|
|
77
|
+
OVERRIDE_WARNING_COUNT: "OVERRIDEWARNINGCOUNT",
|
|
70
78
|
/**
|
|
71
79
|
* CRITERIA parameter
|
|
72
80
|
*/
|
|
@@ -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,
|
|
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;;SAEK;IACL,sBAAsB,EAAE,sBAAsB;IAE9C;;SAEK;IACL,uBAAuB,EAAE,uBAAuB;IAEhD;;SAEK;IACL,sBAAsB,EAAE,sBAAsB;IAE9C;;SAEK;IACL,2BAA2B,EAAE,2BAA2B;IAExD;;SAEK;IACL,qBAAqB,EAAE,aAAa;IAEpC;;SAEK;IACL,sBAAsB,EAAE,sBAAsB;IAE9C;;SAEK;IACL,0BAA0B,EAAE,0BAA0B;IAEtD;;SAEK;IACL,WAAW,EAAE,YAAY;IAEzB;;SAEK;IAEL,aAAa,EAAE,cAAc;IAE7B;;SAEK;IACL,qBAAqB,EAAE,oBAAoB;IAE3C;;SAEK;IACL,iBAAiB,EAAE,iBAAiB;IAEpC;;SAEK;IACL,QAAQ,EAAE,SAAS;IAEnB;;SAEK;IACL,SAAS,EAAE,UAAU;IAErB;;SAEK;IACL,UAAU,EAAE,WAAW;IAEvB;;SAEK;IACL,sBAAsB,EAAE,sBAAsB;IAE9C;;SAEK;IACL,QAAQ,EAAE,UAAU;IAEpB;;SAEK;IACL,SAAS,EAAE,WAAW;IAEtB;;SAEK;IACL,4BAA4B,EAAE,CAAC,sBAAsB,EAAE,uBAAuB,EAAE,2BAA2B,EAAE,eAAe,CAAC;CAE9H,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
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 { IResultCacheParms } from "./IResultCacheParms";
|
|
12
|
+
export interface ICacheParms extends IResultCacheParms {
|
|
13
|
+
/**
|
|
14
|
+
* The cache token to be fetched
|
|
15
|
+
*/
|
|
16
|
+
cacheToken: string;
|
|
17
|
+
}
|
|
@@ -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=ICacheParms.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ICacheParms.js","sourceRoot":"","sources":["../../src/doc/ICacheParms.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG"}
|
|
@@ -0,0 +1,42 @@
|
|
|
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 { IResourceQueryParams } from "./IResourceQueryParms";
|
|
12
|
+
export interface IGetResourceUriOptions {
|
|
13
|
+
/**
|
|
14
|
+
* CICS Plex of the program
|
|
15
|
+
*/
|
|
16
|
+
cicsPlex?: string;
|
|
17
|
+
/**
|
|
18
|
+
* The name of the CICS region of the program
|
|
19
|
+
*/
|
|
20
|
+
regionName?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Criteria by which to filter the records
|
|
23
|
+
*
|
|
24
|
+
* Examples:
|
|
25
|
+
* "TRANID=TRAN"
|
|
26
|
+
* "PROGRAM=PRG*"
|
|
27
|
+
* "NAME=C* AND PROGRAM=D*"
|
|
28
|
+
*/
|
|
29
|
+
criteria?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Parameter by which to refine the records
|
|
32
|
+
*
|
|
33
|
+
* Example:
|
|
34
|
+
* "CSDGROUP(GRP1)"
|
|
35
|
+
* "CSDGROUP(D*)"
|
|
36
|
+
*/
|
|
37
|
+
parameter?: string;
|
|
38
|
+
/**
|
|
39
|
+
* Query parameters to be used in the HTTP request
|
|
40
|
+
*/
|
|
41
|
+
queryParams?: IResourceQueryParams;
|
|
42
|
+
}
|
|
@@ -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=IGetResourceUriOptions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IGetResourceUriOptions.js","sourceRoot":"","sources":["../../src/doc/IGetResourceUriOptions.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG"}
|
|
@@ -8,34 +8,10 @@
|
|
|
8
8
|
* Copyright Contributors to the Zowe Project.
|
|
9
9
|
*
|
|
10
10
|
*/
|
|
11
|
-
|
|
11
|
+
import { IGetResourceUriOptions } from "./IGetResourceUriOptions";
|
|
12
|
+
export interface IResourceParms extends IGetResourceUriOptions {
|
|
12
13
|
/**
|
|
13
14
|
* The name of the resource
|
|
14
15
|
*/
|
|
15
16
|
name: string;
|
|
16
|
-
/**
|
|
17
|
-
* Criteria by which to filter the records
|
|
18
|
-
*
|
|
19
|
-
* Examples:
|
|
20
|
-
* "TRANID=TRAN"
|
|
21
|
-
* "PROGRAM=PRG*"
|
|
22
|
-
* "NAME=C* AND PROGRAM=D*"
|
|
23
|
-
*/
|
|
24
|
-
criteria?: string;
|
|
25
|
-
/**
|
|
26
|
-
* Parameter by which to refine the records
|
|
27
|
-
*
|
|
28
|
-
* Example:
|
|
29
|
-
* "CSDGROUP(GRP1)"
|
|
30
|
-
* "CSDGROUP(D*)"
|
|
31
|
-
*/
|
|
32
|
-
parameter?: string;
|
|
33
|
-
/**
|
|
34
|
-
* The name of the CICS region of the program
|
|
35
|
-
*/
|
|
36
|
-
regionName: string;
|
|
37
|
-
/**
|
|
38
|
-
* CICS Plex of the program
|
|
39
|
-
*/
|
|
40
|
-
cicsPlex?: string;
|
|
41
17
|
}
|
|
@@ -0,0 +1,24 @@
|
|
|
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 interface IResourceQueryParams {
|
|
12
|
+
/**
|
|
13
|
+
* Include SUMMONLY query parameter
|
|
14
|
+
*/
|
|
15
|
+
summonly?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Include NODISCARD query parameter
|
|
18
|
+
*/
|
|
19
|
+
nodiscard?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Include OVERRIDEWARNINGCOUNT query parameter
|
|
22
|
+
*/
|
|
23
|
+
overrideWarningCount?: boolean;
|
|
24
|
+
}
|
|
@@ -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=IResourceQueryParms.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IResourceQueryParms.js","sourceRoot":"","sources":["../../src/doc/IResourceQueryParms.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG"}
|
|
@@ -0,0 +1,21 @@
|
|
|
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 { IResourceQueryParams } from "./IResourceQueryParms";
|
|
12
|
+
export interface IResultCacheParms extends IResourceQueryParams {
|
|
13
|
+
/**
|
|
14
|
+
* Index of first record to collect from the results cache
|
|
15
|
+
*/
|
|
16
|
+
startIndex?: number;
|
|
17
|
+
/**
|
|
18
|
+
* Number of records to fetch from the cache
|
|
19
|
+
*/
|
|
20
|
+
count?: number;
|
|
21
|
+
}
|
|
@@ -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=IResultCacheParms.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IResultCacheParms.js","sourceRoot":"","sources":["../../src/doc/IResultCacheParms.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG"}
|
|
@@ -8,11 +8,15 @@
|
|
|
8
8
|
* Copyright Contributors to the Zowe Project.
|
|
9
9
|
*
|
|
10
10
|
*/
|
|
11
|
+
export * from "./ICacheParms";
|
|
11
12
|
export * from "./ICMCIApiResponse";
|
|
12
13
|
export * from "./ICMCIResponseResultSummary";
|
|
13
14
|
export * from "./ICSDGroupParms";
|
|
14
15
|
export * from "./IProgramParms";
|
|
15
16
|
export * from "./IResourceParms";
|
|
17
|
+
export * from "./IResourceQueryParms";
|
|
18
|
+
export * from "./IResultCacheParms";
|
|
16
19
|
export * from "./ITransactionParms";
|
|
17
20
|
export * from "./IURIMapParms";
|
|
18
21
|
export * from "./IWebServiceParms";
|
|
22
|
+
export * from "./IGetResourceUriOptions";
|
|
@@ -24,12 +24,16 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
24
24
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
25
25
|
};
|
|
26
26
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
+
__exportStar(require("./ICacheParms"), exports);
|
|
27
28
|
__exportStar(require("./ICMCIApiResponse"), exports);
|
|
28
29
|
__exportStar(require("./ICMCIResponseResultSummary"), exports);
|
|
29
30
|
__exportStar(require("./ICSDGroupParms"), exports);
|
|
30
31
|
__exportStar(require("./IProgramParms"), exports);
|
|
31
32
|
__exportStar(require("./IResourceParms"), exports);
|
|
33
|
+
__exportStar(require("./IResourceQueryParms"), exports);
|
|
34
|
+
__exportStar(require("./IResultCacheParms"), exports);
|
|
32
35
|
__exportStar(require("./ITransactionParms"), exports);
|
|
33
36
|
__exportStar(require("./IURIMapParms"), exports);
|
|
34
37
|
__exportStar(require("./IWebServiceParms"), exports);
|
|
38
|
+
__exportStar(require("./IGetResourceUriOptions"), exports);
|
|
35
39
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/doc/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;;;;;;;;;;;;;;;;AAEH,qDAAmC;AACnC,+DAA6C;AAC7C,mDAAiC;AACjC,kDAAgC;AAChC,mDAAiC;AACjC,sDAAoC;AACpC,iDAA+B;AAC/B,qDAAmC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/doc/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;;;;;;;;;;;;;;;;AAEH,gDAA8B;AAC9B,qDAAmC;AACnC,+DAA6C;AAC7C,mDAAiC;AACjC,kDAAgC;AAChC,mDAAiC;AACjC,wDAAsC;AACtC,sDAAoC;AACpC,sDAAoC;AACpC,iDAA+B;AAC/B,qDAAmC;AACnC,2DAAyC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;;;;;;;;;;;;;;;;AAEH,8CAA4B;AAC5B,4CAA0B;AAC1B,wCAAsB;AACtB,yCAAuB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;;;;;;;;;;;;;;;;AAEH,8CAA4B;AAC5B,4CAA0B;AAC1B,wCAAsB;AACtB,yCAAuB;AACvB,0CAAwB"}
|
|
@@ -14,6 +14,7 @@ exports.addCSDGroupToList = void 0;
|
|
|
14
14
|
const imperative_1 = require("@zowe/imperative");
|
|
15
15
|
const rest_1 = require("../../rest");
|
|
16
16
|
const constants_1 = require("../../constants");
|
|
17
|
+
const utils_1 = require("../../utils");
|
|
17
18
|
/**
|
|
18
19
|
* Add a new CSD Group resource to a CSD List in CICS through CMCI REST API
|
|
19
20
|
* @param {AbstractSession} session - the session to connect to CMCI with
|
|
@@ -29,10 +30,12 @@ function addCSDGroupToList(session, parms) {
|
|
|
29
30
|
imperative_1.ImperativeExpect.toBeDefinedAndNonBlank(parms.csdList, "CICS CSD List", "CICS CSD List is required");
|
|
30
31
|
imperative_1.ImperativeExpect.toBeDefinedAndNonBlank(parms.regionName, "CICS Region name", "CICS region name is required");
|
|
31
32
|
imperative_1.Logger.getAppLogger().debug("Attempting to add a CSD Group to a CSD List with the following parameters:\n%s", JSON.stringify(parms));
|
|
32
|
-
const
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
"
|
|
33
|
+
const options = {
|
|
34
|
+
"cicsPlex": parms.cicsPlex,
|
|
35
|
+
"regionName": parms.regionName,
|
|
36
|
+
"criteria": `NAME=='${parms.name}'`
|
|
37
|
+
};
|
|
38
|
+
const cmciResource = utils_1.Utils.getResourceUri(constants_1.CicsCmciConstants.CICS_CSDGROUP, options);
|
|
36
39
|
const requestBody = {
|
|
37
40
|
request: {
|
|
38
41
|
action: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AddToList.js","sourceRoot":"","sources":["../../../src/methods/add-to-list/AddToList.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;;;AAEH,iDAA6E;AAC7E,qCAAgD;AAChD,+CAAoD;
|
|
1
|
+
{"version":3,"file":"AddToList.js","sourceRoot":"","sources":["../../../src/methods/add-to-list/AddToList.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;;;AAEH,iDAA6E;AAC7E,qCAAgD;AAChD,+CAAoD;AACpD,uCAAoC;AAGpC;;;;;;;;;GASG;AACH,SAAgB,iBAAiB,CAAC,OAAwB,EAAE,KAAqB;IAC/E,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,gFAAgF,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;IAErI,MAAM,OAAO,GAA2B;QACtC,UAAU,EAAE,KAAK,CAAC,QAAQ;QAC1B,YAAY,EAAE,KAAK,CAAC,UAAU;QAC9B,UAAU,EAAE,UAAU,KAAK,CAAC,IAAI,GAAG;KACpC,CAAC;IAEF,MAAM,YAAY,GAAG,aAAK,CAAC,cAAc,CAAC,6BAAiB,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC;IAEpF,MAAM,WAAW,GAAQ;QACvB,OAAO,EAAE;YACP,MAAM,EAAE;gBACN,CAAC,EAAE;oBACD,IAAI,EAAE,QAAQ;iBACf;gBACD,SAAS,EAAE;oBACT,CAAC,EAAE;wBACD,IAAI,EAAE,YAAY;wBAClB,KAAK,EAAE,KAAK,CAAC,OAAO;qBACrB;iBACF;aACF;SACF;KACF,CAAC;IACF,OAAO,yBAAkB,CAAC,kBAAkB,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,EAAE,WAAW,CAAQ,CAAC;AAC9F,CAAC;AA/BD,8CA+BC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
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 } from "../../doc";
|
|
13
|
+
import { ICacheParms } from "../../doc/ICacheParms";
|
|
14
|
+
export declare function getCache(session: AbstractSession, parms: ICacheParms): Promise<ICMCIApiResponse>;
|
|
@@ -0,0 +1,30 @@
|
|
|
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.getCache = void 0;
|
|
14
|
+
const imperative_1 = require("@zowe/imperative");
|
|
15
|
+
const rest_1 = require("../../rest");
|
|
16
|
+
const utils_1 = require("../../utils");
|
|
17
|
+
async function getCache(session, parms) {
|
|
18
|
+
imperative_1.ImperativeExpect.toBeDefinedAndNonBlank(parms.cacheToken, "CICS Result Cache Token", "CICS Result Cache Token is required");
|
|
19
|
+
imperative_1.Logger.getAppLogger().debug("Attempting to get cache with the following parameters:\n%s", JSON.stringify(parms));
|
|
20
|
+
const options = {
|
|
21
|
+
count: parms.count,
|
|
22
|
+
startIndex: parms.startIndex,
|
|
23
|
+
summonly: parms.summonly,
|
|
24
|
+
nodiscard: parms.nodiscard,
|
|
25
|
+
};
|
|
26
|
+
const cmciResource = utils_1.Utils.getCacheUri(parms.cacheToken, options);
|
|
27
|
+
return rest_1.CicsCmciRestClient.getExpectParsedXml(session, cmciResource, []);
|
|
28
|
+
}
|
|
29
|
+
exports.getCache = getCache;
|
|
30
|
+
//# sourceMappingURL=Cache.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Cache.js","sourceRoot":"","sources":["../../../src/methods/cache/Cache.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;;;AAEH,iDAA6E;AAI7E,qCAAgD;AAChD,uCAAoC;AAE7B,KAAK,UAAU,QAAQ,CAAC,OAAwB,EAAE,KAAkB;IACzE,6BAAgB,CAAC,sBAAsB,CAAC,KAAK,CAAC,UAAU,EAAE,yBAAyB,EAAE,qCAAqC,CAAC,CAAC;IAC5H,mBAAM,CAAC,YAAY,EAAE,CAAC,KAAK,CAAC,4DAA4D,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;IAEjH,MAAM,OAAO,GAAsB;QACjC,KAAK,EAAE,KAAK,CAAC,KAAK;QAClB,UAAU,EAAE,KAAK,CAAC,UAAU;QAC5B,QAAQ,EAAE,KAAK,CAAC,QAAQ;QACxB,SAAS,EAAE,KAAK,CAAC,SAAS;KAC3B,CAAC;IACF,MAAM,YAAY,GAAG,aAAK,CAAC,WAAW,CAAC,KAAK,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;IAElE,OAAO,yBAAkB,CAAC,kBAAkB,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,CAAC,CAAC;AAC1E,CAAC;AAbD,4BAaC"}
|
|
@@ -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 "./Cache";
|
|
@@ -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("./Cache"), exports);
|
|
28
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/methods/cache/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;;;;;;;;;;;;;;;;AAEH,0CAAwB"}
|
|
@@ -14,6 +14,7 @@ exports.defineWebservice = exports.defineUrimapPipeline = exports.defineUrimapCl
|
|
|
14
14
|
const imperative_1 = require("@zowe/imperative");
|
|
15
15
|
const rest_1 = require("../../rest");
|
|
16
16
|
const constants_1 = require("../../constants");
|
|
17
|
+
const utils_1 = require("../../utils");
|
|
17
18
|
/**
|
|
18
19
|
* Define a new program resource to CICS through CMCI REST API
|
|
19
20
|
* @param {AbstractSession} session - the session to connect to CMCI with
|
|
@@ -47,9 +48,11 @@ function defineProgram(session, parms) {
|
|
|
47
48
|
}
|
|
48
49
|
}
|
|
49
50
|
};
|
|
50
|
-
const
|
|
51
|
-
|
|
52
|
-
|
|
51
|
+
const options = {
|
|
52
|
+
"cicsPlex": parms.cicsPlex,
|
|
53
|
+
"regionName": parms.regionName
|
|
54
|
+
};
|
|
55
|
+
const cmciResource = utils_1.Utils.getResourceUri(constants_1.CicsCmciConstants.CICS_DEFINITION_PROGRAM, options);
|
|
53
56
|
return rest_1.CicsCmciRestClient.postExpectParsedXml(session, cmciResource, [], requestBody);
|
|
54
57
|
}
|
|
55
58
|
exports.defineProgram = defineProgram;
|
|
@@ -89,10 +92,11 @@ function defineTransaction(session, parms) {
|
|
|
89
92
|
}
|
|
90
93
|
}
|
|
91
94
|
};
|
|
92
|
-
const
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
95
|
+
const options = {
|
|
96
|
+
"cicsPlex": parms.cicsPlex,
|
|
97
|
+
"regionName": parms.regionName
|
|
98
|
+
};
|
|
99
|
+
const cmciResource = utils_1.Utils.getResourceUri(constants_1.CicsCmciConstants.CICS_DEFINITION_TRANSACTION, options);
|
|
96
100
|
return rest_1.CicsCmciRestClient.postExpectParsedXml(session, cmciResource, [], requestBody);
|
|
97
101
|
}
|
|
98
102
|
exports.defineTransaction = defineTransaction;
|
|
@@ -117,9 +121,11 @@ function defineUrimapServer(session, parms) {
|
|
|
117
121
|
imperative_1.Logger.getAppLogger().debug("Attempting to define a server URIMap with the following parameters:\n%s", JSON.stringify(parms));
|
|
118
122
|
const requestBody = buildUrimapRequestBody(parms, "server");
|
|
119
123
|
requestBody.request.create.attributes.$.program = parms.programName;
|
|
120
|
-
const
|
|
121
|
-
|
|
122
|
-
|
|
124
|
+
const options = {
|
|
125
|
+
"cicsPlex": parms.cicsPlex,
|
|
126
|
+
"regionName": parms.regionName
|
|
127
|
+
};
|
|
128
|
+
const cmciResource = utils_1.Utils.getResourceUri(constants_1.CicsCmciConstants.CICS_DEFINITION_URIMAP, options);
|
|
123
129
|
return rest_1.CicsCmciRestClient.postExpectParsedXml(session, cmciResource, [], requestBody);
|
|
124
130
|
}
|
|
125
131
|
exports.defineUrimapServer = defineUrimapServer;
|
|
@@ -141,9 +147,11 @@ function defineUrimapClient(session, parms) {
|
|
|
141
147
|
validateUrimapParms(parms);
|
|
142
148
|
imperative_1.Logger.getAppLogger().debug("Attempting to define a client URIMap with the following parameters:\n%s", JSON.stringify(parms));
|
|
143
149
|
const requestBody = buildUrimapRequestBody(parms, "client");
|
|
144
|
-
const
|
|
145
|
-
|
|
146
|
-
|
|
150
|
+
const options = {
|
|
151
|
+
"cicsPlex": parms.cicsPlex,
|
|
152
|
+
"regionName": parms.regionName
|
|
153
|
+
};
|
|
154
|
+
const cmciResource = utils_1.Utils.getResourceUri(constants_1.CicsCmciConstants.CICS_DEFINITION_URIMAP, options);
|
|
147
155
|
return rest_1.CicsCmciRestClient.postExpectParsedXml(session, cmciResource, [], requestBody);
|
|
148
156
|
}
|
|
149
157
|
exports.defineUrimapClient = defineUrimapClient;
|
|
@@ -168,9 +176,11 @@ function defineUrimapPipeline(session, parms) {
|
|
|
168
176
|
imperative_1.Logger.getAppLogger().debug("Attempting to define a pipeline URIMap with the following parameters:\n%s", JSON.stringify(parms));
|
|
169
177
|
const requestBody = buildUrimapRequestBody(parms, "pipeline");
|
|
170
178
|
requestBody.request.create.attributes.$.pipeline = parms.pipelineName;
|
|
171
|
-
const
|
|
172
|
-
|
|
173
|
-
|
|
179
|
+
const options = {
|
|
180
|
+
"cicsPlex": parms.cicsPlex,
|
|
181
|
+
"regionName": parms.regionName
|
|
182
|
+
};
|
|
183
|
+
const cmciResource = utils_1.Utils.getResourceUri(constants_1.CicsCmciConstants.CICS_DEFINITION_URIMAP, options);
|
|
174
184
|
return rest_1.CicsCmciRestClient.postExpectParsedXml(session, cmciResource, [], requestBody);
|
|
175
185
|
}
|
|
176
186
|
exports.defineUrimapPipeline = defineUrimapPipeline;
|
|
@@ -280,10 +290,11 @@ function defineWebservice(session, parms) {
|
|
|
280
290
|
}
|
|
281
291
|
}
|
|
282
292
|
};
|
|
283
|
-
const
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
293
|
+
const options = {
|
|
294
|
+
"cicsPlex": parms.cicsPlex,
|
|
295
|
+
"regionName": parms.regionName
|
|
296
|
+
};
|
|
297
|
+
const cmciResource = utils_1.Utils.getResourceUri(constants_1.CicsCmciConstants.CICS_DEFINITION_WEBSERVICE, options);
|
|
287
298
|
return rest_1.CicsCmciRestClient.postExpectParsedXml(session, cmciResource, [], requestBody);
|
|
288
299
|
}
|
|
289
300
|
exports.defineWebservice = defineWebservice;
|