@zowe/cics-for-zowe-cli 6.2.2 → 6.2.3

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 (195) hide show
  1. package/npm-shrinkwrap.json +6 -10
  2. package/package.json +1 -4
  3. package/node_modules/@zowe/cics-for-zowe-sdk/LICENSE +0 -277
  4. package/node_modules/@zowe/cics-for-zowe-sdk/README.md +0 -161
  5. package/node_modules/@zowe/cics-for-zowe-sdk/lib/constants/CicsCmci.constants.d.ts +0 -84
  6. package/node_modules/@zowe/cics-for-zowe-sdk/lib/constants/CicsCmci.constants.js +0 -91
  7. package/node_modules/@zowe/cics-for-zowe-sdk/lib/constants/CicsCmci.constants.js.map +0 -1
  8. package/node_modules/@zowe/cics-for-zowe-sdk/lib/constants/CicsCmci.messages.d.ts +0 -17
  9. package/node_modules/@zowe/cics-for-zowe-sdk/lib/constants/CicsCmci.messages.js +0 -22
  10. package/node_modules/@zowe/cics-for-zowe-sdk/lib/constants/CicsCmci.messages.js.map +0 -1
  11. package/node_modules/@zowe/cics-for-zowe-sdk/lib/constants/index.d.ts +0 -12
  12. package/node_modules/@zowe/cics-for-zowe-sdk/lib/constants/index.js +0 -29
  13. package/node_modules/@zowe/cics-for-zowe-sdk/lib/constants/index.js.map +0 -1
  14. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/ICMCIApiResponse.d.ts +0 -33
  15. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/ICMCIApiResponse.js +0 -13
  16. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/ICMCIApiResponse.js.map +0 -1
  17. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/ICMCIResponseResultSummary.d.ts +0 -28
  18. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/ICMCIResponseResultSummary.js +0 -13
  19. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/ICMCIResponseResultSummary.js.map +0 -1
  20. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/ICSDGroupParms.d.ts +0 -30
  21. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/ICSDGroupParms.js +0 -13
  22. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/ICSDGroupParms.js.map +0 -1
  23. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/ICacheParms.d.ts +0 -17
  24. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/ICacheParms.js +0 -13
  25. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/ICacheParms.js.map +0 -1
  26. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IGetResourceUriOptions.d.ts +0 -42
  27. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IGetResourceUriOptions.js +0 -13
  28. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IGetResourceUriOptions.js.map +0 -1
  29. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IProgramParms.d.ts +0 -30
  30. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IProgramParms.js +0 -13
  31. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IProgramParms.js.map +0 -1
  32. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IResourceParms.d.ts +0 -17
  33. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IResourceParms.js +0 -13
  34. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IResourceParms.js.map +0 -1
  35. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IResourceQueryParms.d.ts +0 -24
  36. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IResourceQueryParms.js +0 -13
  37. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IResourceQueryParms.js.map +0 -1
  38. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IResultCacheParms.d.ts +0 -21
  39. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IResultCacheParms.js +0 -13
  40. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IResultCacheParms.js.map +0 -1
  41. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/ITransactionParms.d.ts +0 -35
  42. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/ITransactionParms.js +0 -13
  43. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/ITransactionParms.js.map +0 -1
  44. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IURIMapParms.d.ts +0 -89
  45. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IURIMapParms.js +0 -13
  46. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IURIMapParms.js.map +0 -1
  47. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IWebServiceParms.d.ts +0 -55
  48. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IWebServiceParms.js +0 -13
  49. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IWebServiceParms.js.map +0 -1
  50. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/index.d.ts +0 -22
  51. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/index.js +0 -39
  52. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/index.js.map +0 -1
  53. package/node_modules/@zowe/cics-for-zowe-sdk/lib/index.d.ts +0 -15
  54. package/node_modules/@zowe/cics-for-zowe-sdk/lib/index.js +0 -32
  55. package/node_modules/@zowe/cics-for-zowe-sdk/lib/index.js.map +0 -1
  56. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/add-to-list/AddToList.d.ts +0 -23
  57. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/add-to-list/AddToList.js +0 -57
  58. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/add-to-list/AddToList.js.map +0 -1
  59. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/add-to-list/index.d.ts +0 -11
  60. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/add-to-list/index.js +0 -28
  61. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/add-to-list/index.js.map +0 -1
  62. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/cache/Cache.d.ts +0 -14
  63. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/cache/Cache.js +0 -30
  64. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/cache/Cache.js.map +0 -1
  65. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/cache/index.d.ts +0 -11
  66. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/cache/index.js +0 -28
  67. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/cache/index.js.map +0 -1
  68. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/define/Define.d.ts +0 -85
  69. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/define/Define.js +0 -301
  70. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/define/Define.js.map +0 -1
  71. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/define/index.d.ts +0 -11
  72. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/define/index.js +0 -28
  73. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/define/index.js.map +0 -1
  74. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/delete/Delete.d.ts +0 -58
  75. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/delete/Delete.js +0 -120
  76. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/delete/Delete.js.map +0 -1
  77. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/delete/index.d.ts +0 -11
  78. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/delete/index.js +0 -28
  79. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/delete/index.js.map +0 -1
  80. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/disable/Disable.d.ts +0 -24
  81. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/disable/Disable.js +0 -53
  82. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/disable/Disable.js.map +0 -1
  83. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/disable/index.d.ts +0 -11
  84. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/disable/index.js +0 -28
  85. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/disable/index.js.map +0 -1
  86. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/discard/Discard.d.ts +0 -35
  87. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/discard/Discard.js +0 -77
  88. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/discard/Discard.js.map +0 -1
  89. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/discard/index.d.ts +0 -11
  90. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/discard/index.js +0 -28
  91. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/discard/index.js.map +0 -1
  92. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/enable/Enable.d.ts +0 -24
  93. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/enable/Enable.js +0 -53
  94. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/enable/Enable.js.map +0 -1
  95. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/enable/index.d.ts +0 -11
  96. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/enable/index.js +0 -28
  97. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/enable/index.js.map +0 -1
  98. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/get/Get.d.ts +0 -23
  99. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/get/Get.js +0 -41
  100. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/get/Get.js.map +0 -1
  101. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/get/index.d.ts +0 -11
  102. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/get/index.js +0 -28
  103. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/get/index.js.map +0 -1
  104. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/index.d.ts +0 -21
  105. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/index.js +0 -38
  106. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/index.js.map +0 -1
  107. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/install/Install.d.ts +0 -48
  108. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/install/Install.js +0 -123
  109. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/install/Install.js.map +0 -1
  110. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/install/index.d.ts +0 -11
  111. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/install/index.js +0 -28
  112. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/install/index.js.map +0 -1
  113. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/remove-from-list/RemoveFromList.d.ts +0 -23
  114. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/remove-from-list/RemoveFromList.js +0 -42
  115. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/remove-from-list/RemoveFromList.js.map +0 -1
  116. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/remove-from-list/index.d.ts +0 -11
  117. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/remove-from-list/index.js +0 -28
  118. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/remove-from-list/index.js.map +0 -1
  119. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/set/Set.d.ts +0 -23
  120. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/set/Set.js +0 -50
  121. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/set/Set.js.map +0 -1
  122. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/set/index.d.ts +0 -11
  123. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/set/index.js +0 -28
  124. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/set/index.js.map +0 -1
  125. package/node_modules/@zowe/cics-for-zowe-sdk/lib/rest/CicsCmciRestClient.d.ts +0 -128
  126. package/node_modules/@zowe/cics-for-zowe-sdk/lib/rest/CicsCmciRestClient.js +0 -220
  127. package/node_modules/@zowe/cics-for-zowe-sdk/lib/rest/CicsCmciRestClient.js.map +0 -1
  128. package/node_modules/@zowe/cics-for-zowe-sdk/lib/rest/index.d.ts +0 -11
  129. package/node_modules/@zowe/cics-for-zowe-sdk/lib/rest/index.js +0 -28
  130. package/node_modules/@zowe/cics-for-zowe-sdk/lib/rest/index.js.map +0 -1
  131. package/node_modules/@zowe/cics-for-zowe-sdk/lib/utils/Utils.d.ts +0 -27
  132. package/node_modules/@zowe/cics-for-zowe-sdk/lib/utils/Utils.js +0 -80
  133. package/node_modules/@zowe/cics-for-zowe-sdk/lib/utils/Utils.js.map +0 -1
  134. package/node_modules/@zowe/cics-for-zowe-sdk/lib/utils/index.d.ts +0 -11
  135. package/node_modules/@zowe/cics-for-zowe-sdk/lib/utils/index.js +0 -28
  136. package/node_modules/@zowe/cics-for-zowe-sdk/lib/utils/index.js.map +0 -1
  137. package/node_modules/@zowe/cics-for-zowe-sdk/package.json +0 -54
  138. package/node_modules/sax/LICENSE +0 -41
  139. package/node_modules/sax/README.md +0 -228
  140. package/node_modules/sax/lib/sax.js +0 -1597
  141. package/node_modules/sax/package.json +0 -29
  142. package/node_modules/xml2js/LICENSE +0 -19
  143. package/node_modules/xml2js/README.md +0 -507
  144. package/node_modules/xml2js/lib/bom.js +0 -12
  145. package/node_modules/xml2js/lib/builder.js +0 -127
  146. package/node_modules/xml2js/lib/defaults.js +0 -72
  147. package/node_modules/xml2js/lib/parser.js +0 -385
  148. package/node_modules/xml2js/lib/processors.js +0 -34
  149. package/node_modules/xml2js/lib/xml2js.js +0 -39
  150. package/node_modules/xml2js/node_modules/xmlbuilder/CHANGELOG.md +0 -470
  151. package/node_modules/xml2js/node_modules/xmlbuilder/LICENSE +0 -21
  152. package/node_modules/xml2js/node_modules/xmlbuilder/README.md +0 -86
  153. package/node_modules/xml2js/node_modules/xmlbuilder/appveyor.yml +0 -20
  154. package/node_modules/xml2js/node_modules/xmlbuilder/lib/Derivation.js +0 -10
  155. package/node_modules/xml2js/node_modules/xmlbuilder/lib/DocumentPosition.js +0 -12
  156. package/node_modules/xml2js/node_modules/xmlbuilder/lib/NodeType.js +0 -23
  157. package/node_modules/xml2js/node_modules/xmlbuilder/lib/OperationType.js +0 -11
  158. package/node_modules/xml2js/node_modules/xmlbuilder/lib/Utility.js +0 -83
  159. package/node_modules/xml2js/node_modules/xmlbuilder/lib/WriterState.js +0 -10
  160. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLAttribute.js +0 -108
  161. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLCData.js +0 -36
  162. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLCharacterData.js +0 -79
  163. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLComment.js +0 -36
  164. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDOMConfiguration.js +0 -64
  165. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDOMErrorHandler.js +0 -16
  166. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDOMImplementation.js +0 -32
  167. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDOMStringList.js +0 -28
  168. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDTDAttList.js +0 -55
  169. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDTDElement.js +0 -38
  170. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDTDEntity.js +0 -97
  171. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDTDNotation.js +0 -52
  172. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDeclaration.js +0 -43
  173. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDocType.js +0 -186
  174. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDocument.js +0 -242
  175. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDocumentCB.js +0 -528
  176. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDocumentFragment.js +0 -24
  177. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLDummy.js +0 -31
  178. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLElement.js +0 -298
  179. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLNamedNodeMap.js +0 -58
  180. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLNode.js +0 -785
  181. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLNodeFilter.js +0 -48
  182. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLNodeList.js +0 -28
  183. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLProcessingInstruction.js +0 -49
  184. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLRaw.js +0 -35
  185. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLStreamWriter.js +0 -176
  186. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLStringWriter.js +0 -35
  187. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLStringifier.js +0 -240
  188. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLText.js +0 -69
  189. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLTypeInfo.js +0 -21
  190. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLUserDataHandler.js +0 -16
  191. package/node_modules/xml2js/node_modules/xmlbuilder/lib/XMLWriterBase.js +0 -428
  192. package/node_modules/xml2js/node_modules/xmlbuilder/lib/index.js +0 -65
  193. package/node_modules/xml2js/node_modules/xmlbuilder/package.json +0 -39
  194. package/node_modules/xml2js/node_modules/xmlbuilder/typings/index.d.ts +0 -153
  195. package/node_modules/xml2js/package.json +0 -93
@@ -1,220 +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.CicsCmciRestClient = void 0;
14
- const imperative_1 = require("@zowe/imperative");
15
- const xml2js_1 = require("xml2js");
16
- const CicsCmci_messages_1 = require("../constants/CicsCmci.messages");
17
- /**
18
- * Wrapper for invoke CICS CMCI API through the RestClient to perform common error
19
- * handling and checking and resolve promises according to generic types
20
- * @export
21
- * @class CicsCmciRestClient
22
- * @extends {RestClient}
23
- */
24
- class CicsCmciRestClient extends imperative_1.RestClient {
25
- /**
26
- * If the API request is successful, this value should be in
27
- * api_response2 in the resultsummary object in the response
28
- */
29
- static CMCI_SUCCESS_RESPONSE_1 = "1024";
30
- /**
31
- * If the API request is successful, this value should be in
32
- * api_response2 in the resultsummary object in the response
33
- */
34
- static CMCI_SUCCESS_RESPONSE_2 = "0";
35
- /**
36
- * Convert an object to XML using the xml2js package
37
- * @param obj - the object to convert to XML
38
- * @returns {string} the string of XML generated by xml2js
39
- */
40
- static convertObjectToXML(obj) {
41
- this.log.trace("Converting the following object to XML via xml2js:\n%s", JSON.stringify(obj, null, 2));
42
- const builder = new xml2js_1.Builder({ headless: true });
43
- return builder.buildObject(obj);
44
- }
45
- /**
46
- * Call the RestClient.getExpectString function assuming the response is XML, then return a promise of the JSON representation.
47
- * @static
48
- * @param {AbstractSession} session - representing connection to this api
49
- * @param {string} resource - URI for which this request should go against
50
- * @param {any} reqHeaders - headers to include in the REST request
51
- * @returns {Promise<*>} - response body content from http(s) call
52
- * @throws {ImperativeError} verifyResponseCodes fails
53
- */
54
- static async getExpectParsedXml(session, resource, reqHeaders = []) {
55
- const data = await CicsCmciRestClient.getExpectString(session, resource, reqHeaders);
56
- const apiResponse = CicsCmciRestClient.parseStringSync(data);
57
- return CicsCmciRestClient.verifyResponseCodes(apiResponse);
58
- }
59
- /**
60
- * Call the RestClient.deleteExpectString function assuming the response is XML, then return a promise of the JSON representation.
61
- * @static
62
- * @param {AbstractSession} session - representing connection to this api
63
- * @param {string} resource - URI for which this request should go against
64
- * @param {any} reqHeaders - headers to include in the REST request
65
- * @returns {Promise<*>} - response body content from http(s) call
66
- * @throws {ImperativeError} verifyResponseCodes fails
67
- */
68
- static async deleteExpectParsedXml(session, resource, reqHeaders = []) {
69
- const data = await CicsCmciRestClient.deleteExpectString(session, resource, reqHeaders);
70
- const apiResponse = CicsCmciRestClient.parseStringSync(data);
71
- return CicsCmciRestClient.verifyResponseCodes(apiResponse);
72
- }
73
- /**
74
- * PUT a CMCI endpoint expecting an XML return value parsed into a JCL
75
- * Call the RestClient.putExpectString function assuming the response is XML, then return a promise of the JSON representation.
76
- * @static
77
- * @param {AbstractSession} session - representing connection to this api
78
- * @param {string} resource - URI for which this request should go against
79
- * @param {any} reqHeaders - headers to include in the REST request
80
- * @param payload - XML body to put or a javascript object to convert to XML
81
- * @returns {Promise<*>} - response body content from http(s) call
82
- * @throws {ImperativeError} verifyResponseCodes fails
83
- */
84
- static async putExpectParsedXml(session, resource, reqHeaders = [], payload) {
85
- if (payload != null) {
86
- payload = CicsCmciRestClient.convertPayloadToXML(payload);
87
- }
88
- const data = await CicsCmciRestClient.putExpectString(session, resource, reqHeaders, payload);
89
- const apiResponse = CicsCmciRestClient.parseStringSync(data);
90
- return CicsCmciRestClient.verifyResponseCodes(apiResponse);
91
- }
92
- /**
93
- * POST a CMCI endpoint expecting a XML return value
94
- * Calls the RestClient.postExpectString function assuming the response is XML, then return a promise of the JSON representation.
95
- * @static
96
- * @param {AbstractSession} session - representing connection to this api
97
- * @param {string} resource - URI for which this request should go against
98
- * @param {any} reqHeaders - headers to include in the REST request
99
- * @param payload - XML body to put or a javascript object to convert to XML
100
- * @returns {Promise<*>} - response body content from http(s) call
101
- * @throws {ImperativeError} verifyResponseCodes fails
102
- */
103
- static async postExpectParsedXml(session, resource, reqHeaders = [], payload) {
104
- if (payload != null) {
105
- payload = CicsCmciRestClient.convertPayloadToXML(payload);
106
- }
107
- const data = await CicsCmciRestClient.postExpectString(session, resource, reqHeaders, payload);
108
- const apiResponse = CicsCmciRestClient.parseStringSync(data);
109
- return CicsCmciRestClient.verifyResponseCodes(apiResponse);
110
- }
111
- /**
112
- * Internal logger
113
- */
114
- static mLogger;
115
- /**
116
- * Internal parser
117
- */
118
- static mParser;
119
- /**
120
- * Detect if a payload is a string or an object
121
- * If it is an object, convert it to XML using xml2js
122
- * @param payload - the request body / payload
123
- * @returns {string} the XML that can be used as the request body
124
- */
125
- static convertPayloadToXML(payload) {
126
- if (typeof payload === "string") {
127
- // if it's already a string, use it verbatim
128
- return payload;
129
- }
130
- else {
131
- // if it's an object, turn it into XML
132
- return this.convertObjectToXML(payload);
133
- }
134
- }
135
- /**
136
- * Use the Zowe logger instead of the imperative logger
137
- * @return {Logger}
138
- */
139
- static get log() {
140
- if (this.mLogger == null) {
141
- this.mLogger = imperative_1.Logger.getAppLogger();
142
- }
143
- return this.mLogger;
144
- }
145
- /**
146
- * Use a configured parser
147
- * @return {Parser}
148
- */
149
- static get parser() {
150
- if (this.mParser == null) {
151
- this.mParser = new xml2js_1.Parser({
152
- explicitArray: false, // Only create arrays if there are multiple tags with the same name
153
- mergeAttrs: true, // Do not use the attrKey, instead merge all attributes with the parent
154
- normalizeTags: true // Guarantee that all tags are going to be lowercase
155
- });
156
- }
157
- return this.mParser;
158
- }
159
- /**
160
- * Check that we got the expected response codes from the API after a request
161
- * @param {ICMCIApiResponse} apiResponse - the parsed response
162
- * @returns {ICMCIApiResponse} - the response if it was correct
163
- * @throws {ImperativeError} request did not get the expected codes
164
- */
165
- static verifyResponseCodes(apiResponse) {
166
- if (apiResponse.response != null && apiResponse.response.resultsummary != null
167
- && apiResponse.response.resultsummary.api_response1 === CicsCmciRestClient.CMCI_SUCCESS_RESPONSE_1
168
- && apiResponse.response.resultsummary.api_response2 === CicsCmciRestClient.CMCI_SUCCESS_RESPONSE_2) {
169
- // expected return code and reason code specify
170
- return apiResponse;
171
- }
172
- else {
173
- throw new imperative_1.ImperativeError({
174
- msg: CicsCmci_messages_1.CicsCmciMessages.cmciRequestFailed.message + "\n" + imperative_1.TextUtils.prettyJson(apiResponse),
175
- });
176
- }
177
- }
178
- /**
179
- * parse an XML string with XML2js
180
- * The API is already synchronous according to their documentation but requires a callback.
181
- * This is a wrapper that doesn't require a callback.
182
- * @param {string} str - the string of XML to parse
183
- * @returns {any} the object parsed from the XML
184
- * @throws {Error} xml2js.parseString fails
185
- */
186
- static parseStringSync(str) {
187
- let result;
188
- let error;
189
- this.parser.parseString(str, (err, r) => {
190
- error = err;
191
- result = r;
192
- });
193
- if (error != null) {
194
- throw error;
195
- }
196
- return result;
197
- }
198
- /**
199
- * Process an error encountered in the rest client
200
- * @param {IImperativeError} original - the original error automatically built by the abstract rest client
201
- * @returns {IImperativeError} - the processed error with details added
202
- */
203
- processError(original) {
204
- original.msg = "CICS CMCI REST API Error:\n" + original.msg;
205
- let details = original.causeErrors;
206
- try {
207
- const xmlDetails = CicsCmciRestClient.parseStringSync(details);
208
- // if we didn't get an error, make the parsed details part of the error
209
- details = imperative_1.TextUtils.prettyJson(xmlDetails, undefined, false);
210
- }
211
- catch (e) {
212
- // if there's an error, the causeErrors text is not json
213
- this.log.debug("Encountered an error trying to parse causeErrors as XML - causeErrors is likely not JSON format");
214
- }
215
- original.msg += "\n" + details; // add the data string which is the original error
216
- return original;
217
- }
218
- }
219
- exports.CicsCmciRestClient = CicsCmciRestClient;
220
- //# sourceMappingURL=CicsCmciRestClient.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CicsCmciRestClient.js","sourceRoot":"","sources":["../../src/rest/CicsCmciRestClient.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;;;AAEH,iDAAqH;AACrH,mCAAyC;AAEzC,sEAAkE;AAElE;;;;;;GAMG;AACH,MAAa,kBAAm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AY,CAAC;QACjB,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,GAAG,EAAE,CAAC,GAAQ,EAAE,CAAM,EAAE,EAAE;YAChD,KAAK,GAAG,GAAG,CAAC;YACZ,MAAM,GAAG,CAAC,CAAC;QACb,CAAC,CAAC,CAAC;QACH,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;YAClB,MAAM,KAAK,CAAC;QACd,CAAC;QACD,OAAO,MAAM,CAAC;IAChB,CAAC;IAED;;;;QAII;IACM,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,CAAC,EAAE,CAAC;YACX,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;;AAnNH,gDAoNC"}
@@ -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 "./CicsCmciRestClient";
@@ -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("./CicsCmciRestClient"), exports);
28
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/rest/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;;;;;;;;;;;;;;;;AAEH,uDAAqC"}
@@ -1,27 +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 { IGetResourceUriOptions } from "../doc";
12
- import { IResultCacheParms } from "../doc/IResultCacheParms";
13
- /**
14
- * Class for providing static utility methods
15
- * @export
16
- * @class Utils
17
- */
18
- export declare class Utils {
19
- /**
20
- * Get uri for requesting a resources in CICS through CMCI REST API
21
- * @param {string} resourceName - CMCI resource name
22
- * @param {IGetResourceUriOptions} options - CMCI resource options
23
- */
24
- static getResourceUri(resourceName: string, options?: IGetResourceUriOptions): string;
25
- static getCacheUri(cacheToken: string, options?: IResultCacheParms): string;
26
- static enforceParentheses(input: string): string;
27
- }
@@ -1,80 +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.Utils = void 0;
14
- const imperative_1 = require("@zowe/imperative");
15
- const constants_1 = require("../constants");
16
- /**
17
- * Class for providing static utility methods
18
- * @export
19
- * @class Utils
20
- */
21
- class Utils {
22
- /**
23
- * Get uri for requesting a resources in CICS through CMCI REST API
24
- * @param {string} resourceName - CMCI resource name
25
- * @param {IGetResourceUriOptions} options - CMCI resource options
26
- */
27
- static getResourceUri(resourceName, options) {
28
- imperative_1.ImperativeExpect.toBeDefinedAndNonBlank(resourceName, "CICS Resource name", "CICS resource name is required");
29
- let delimiter = "?"; // initial delimiter
30
- const cicsPlex = (options && options.cicsPlex) == null ? "" : `${options.cicsPlex}/`;
31
- const region = (options && options.regionName) == null ? "" : options.regionName;
32
- let cmciResource = `/${constants_1.CicsCmciConstants.CICS_SYSTEM_MANAGEMENT}/${resourceName}/${cicsPlex}${region}`;
33
- if (options && options.criteria) {
34
- cmciResource += `${delimiter}${constants_1.CicsCmciConstants.CRITERIA}=${this.enforceParentheses(encodeURIComponent(options.criteria))}`;
35
- delimiter = "&";
36
- }
37
- if (options && options.parameter) {
38
- cmciResource += `${delimiter}PARAMETER=${encodeURIComponent(options.parameter)}`;
39
- delimiter = "&";
40
- }
41
- if (options && options.queryParams && options.queryParams.summonly) {
42
- cmciResource += `${delimiter}${constants_1.CicsCmciConstants.SUMM_ONLY}`;
43
- delimiter = "&";
44
- }
45
- if (options && options.queryParams && options.queryParams.nodiscard) {
46
- cmciResource += `${delimiter}${constants_1.CicsCmciConstants.NO_DISCARD}`;
47
- delimiter = "&";
48
- }
49
- if (options && options.queryParams && options.queryParams.overrideWarningCount) {
50
- cmciResource += `${delimiter}${constants_1.CicsCmciConstants.OVERRIDE_WARNING_COUNT}`;
51
- delimiter = "&";
52
- }
53
- return cmciResource;
54
- }
55
- static getCacheUri(cacheToken, options) {
56
- imperative_1.ImperativeExpect.toBeDefinedAndNonBlank(cacheToken, "CICS Results Cache Token", "CICS Results Cache Token is required");
57
- let cmciResource = `/${constants_1.CicsCmciConstants.CICS_SYSTEM_MANAGEMENT}/${constants_1.CicsCmciConstants.CICS_RESULT_CACHE}/${cacheToken}`;
58
- if (options && options.startIndex) {
59
- cmciResource += `/${options.startIndex}`;
60
- if (options.count) {
61
- cmciResource += `/${options.count}`;
62
- }
63
- }
64
- let delimiter = "?";
65
- // Add NODISCARD unless explicitally told not to
66
- if (!options || options.nodiscard == null || options.nodiscard === true) {
67
- cmciResource += `${delimiter}${constants_1.CicsCmciConstants.NO_DISCARD}`;
68
- delimiter = "&";
69
- }
70
- if (options && options.summonly) {
71
- cmciResource += `${delimiter}${constants_1.CicsCmciConstants.SUMM_ONLY}`;
72
- }
73
- return cmciResource;
74
- }
75
- static enforceParentheses(input) {
76
- return input.startsWith("(") ? input : `(${input})`;
77
- }
78
- }
79
- exports.Utils = Utils;
80
- //# sourceMappingURL=Utils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Utils.js","sourceRoot":"","sources":["../../src/utils/Utils.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;;;AAEH,iDAAoD;AACpD,4CAAiD;AAIjD;;;;GAIG;AACH,MAAa,KAAK;IAEhB;;;;OAIG;IACI,MAAM,CAAC,cAAc,CAAC,YAAoB,EAAE,OAAgC;QACjF,6BAAgB,CAAC,sBAAsB,CAAC,YAAY,EAAE,oBAAoB,EAAE,gCAAgC,CAAC,CAAC;QAE9G,IAAI,SAAS,GAAG,GAAG,CAAC,CAAC,oBAAoB;QAEzC,MA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G,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,KAAK,GAAG,CAAC;IACtD,CAAC;CACF;AA5ED,sBA4EC"}
@@ -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 "./Utils";
@@ -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("./Utils"), exports);
28
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;;;;;;;;;;;;;;;;AAEH,0CAAwB"}
@@ -1,54 +0,0 @@
1
- {
2
- "name": "@zowe/cics-for-zowe-sdk",
3
- "version": "6.2.1",
4
- "author": "Zowe",
5
- "license": "EPL-2.0",
6
- "description": "IBM CICS for Zowe SDK",
7
- "homepage": "https://github.com/zowe/cics-for-zowe-client/blob/main/packages/sdk/README.md",
8
- "bugs": {
9
- "url": "https://github.com/zowe/cics-for-zowe-client/issues"
10
- },
11
- "keywords": [
12
- "zowe",
13
- "sdk",
14
- "cics"
15
- ],
16
- "repository": {
17
- "type": "git",
18
- "url": "https://github.com/zowe/cics-for-zowe-client.git"
19
- },
20
- "main": "lib/index.js",
21
- "files": [
22
- "lib"
23
- ],
24
- "publishConfig": {
25
- "registry": "https://zowe.jfrog.io/zowe/api/npm/npm-local-release/"
26
- },
27
- "scripts": {
28
- "build": "tsc --pretty && npm run checkTestsCompile && npm run madge",
29
- "checkTestsCompile": "echo \"Checking that test source compiles...\" && tsc --project __tests__/test-tsconfig.json --noEmit ",
30
- "madge": "madge -c lib",
31
- "prebuild": "npm run clean && echo Using TypeScript && tsc --version",
32
- "clean": "rimraf lib",
33
- "watch": "tsc --pretty --watch",
34
- "prepublishOnly": "npm run build",
35
- "lint": "eslint \"src/**/*.ts\" \"**/__tests__/**/*.ts\"",
36
- "lint:src": "eslint \"src/**/*.ts\" --ignore-pattern \"**/__tests__/**/*.ts\"",
37
- "lint:tests": "eslint \"**/__tests__/**/*.ts\"",
38
- "package": "npm pack --pack-destination=../../dist",
39
- "test": "npm run test:unit && npm run test:system",
40
- "test:system": "jest --config system.jest_config.ts",
41
- "test:unit": "jest --config unit.jest_config.ts",
42
- "installPlugin": "npm install && npm run clean && npm run build && zowe plugins install .",
43
- "typedoc": "typedoc --out ./docs/typedoc/ ./src/ --disableOutputCheck"
44
- },
45
- "dependencies": {
46
- "xml2js": "0.5.0"
47
- },
48
- "peerDependencies": {
49
- "@zowe/imperative": "^8.0.0"
50
- },
51
- "engines": {
52
- "node": ">=18.12.0"
53
- }
54
- }
@@ -1,41 +0,0 @@
1
- The ISC License
2
-
3
- Copyright (c) 2010-2024 Isaac Z. Schlueter and Contributors
4
-
5
- Permission to use, copy, modify, and/or distribute this software for any
6
- purpose with or without fee is hereby granted, provided that the above
7
- copyright notice and this permission notice appear in all copies.
8
-
9
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10
- WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11
- MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12
- ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13
- WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14
- ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
15
- IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
16
-
17
- ====
18
-
19
- `String.fromCodePoint` by Mathias Bynens used according to terms of MIT
20
- License, as follows:
21
-
22
- Copyright (c) 2010-2024 Mathias Bynens <https://mathiasbynens.be/>
23
-
24
- Permission is hereby granted, free of charge, to any person obtaining
25
- a copy of this software and associated documentation files (the
26
- "Software"), to deal in the Software without restriction, including
27
- without limitation the rights to use, copy, modify, merge, publish,
28
- distribute, sublicense, and/or sell copies of the Software, and to
29
- permit persons to whom the Software is furnished to do so, subject to
30
- the following conditions:
31
-
32
- The above copyright notice and this permission notice shall be
33
- included in all copies or substantial portions of the Software.
34
-
35
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
36
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
37
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
38
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
39
- LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
40
- OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
41
- WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.