@zowe/cics-for-zowe-cli 5.0.0 → 5.0.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.
Files changed (573) hide show
  1. package/lib/{cli/-strings- → -strings-}/en.d.ts +10 -0
  2. package/lib/{cli/-strings- → -strings-}/en.js +10 -10
  3. package/lib/-strings-/en.js.map +1 -0
  4. package/lib/{cli/-strings- → -strings-}/es.d.ts +10 -0
  5. package/lib/{cli/-strings- → -strings-}/es.js +10 -10
  6. package/lib/-strings-/es.js.map +1 -0
  7. package/lib/CicsBaseHandler.d.ts +38 -0
  8. package/lib/CicsBaseHandler.js +38 -0
  9. package/lib/CicsBaseHandler.js.map +1 -0
  10. package/lib/CicsSession.d.ts +71 -0
  11. package/lib/CicsSession.js +161 -0
  12. package/lib/CicsSession.js.map +1 -0
  13. package/lib/PluginConstants.d.ts +24 -0
  14. package/lib/PluginConstants.js +29 -0
  15. package/lib/PluginConstants.js.map +1 -0
  16. package/lib/add-to-list/AddToList.definition.d.ts +16 -0
  17. package/lib/{cli/add-to-list → add-to-list}/AddToList.definition.js +10 -10
  18. package/lib/add-to-list/AddToList.definition.js.map +1 -0
  19. package/lib/add-to-list/csdGroup/CSDGroup.definition.d.ts +12 -0
  20. package/lib/{cli/add-to-list → add-to-list}/csdGroup/CSDGroup.definition.js +10 -10
  21. package/lib/add-to-list/csdGroup/CSDGroup.definition.js.map +1 -0
  22. package/lib/{cli/add-to-list → add-to-list}/csdGroup/CSDGroup.handler.d.ts +11 -1
  23. package/lib/add-to-list/csdGroup/CSDGroup.handler.js +43 -0
  24. package/lib/add-to-list/csdGroup/CSDGroup.handler.js.map +1 -0
  25. package/lib/define/Define.definition.d.ts +16 -0
  26. package/lib/{cli/define → define}/Define.definition.js +10 -10
  27. package/lib/define/Define.definition.js.map +1 -0
  28. package/lib/define/program/Program.definition.d.ts +12 -0
  29. package/lib/{cli/define → define}/program/Program.definition.js +10 -10
  30. package/lib/define/program/Program.definition.js.map +1 -0
  31. package/lib/{cli/define → define}/program/Program.handler.d.ts +11 -1
  32. package/lib/define/program/Program.handler.js +43 -0
  33. package/lib/define/program/Program.handler.js.map +1 -0
  34. package/lib/define/transaction/Transaction.definition.d.ts +12 -0
  35. package/lib/{cli/define → define}/transaction/Transaction.definition.js +10 -10
  36. package/lib/define/transaction/Transaction.definition.js.map +1 -0
  37. package/lib/{cli/define → define}/transaction/Transaction.handler.d.ts +11 -1
  38. package/lib/define/transaction/Transaction.handler.js +44 -0
  39. package/lib/define/transaction/Transaction.handler.js.map +1 -0
  40. package/lib/define/urimap-client/UrimapClient.definition.d.ts +12 -0
  41. package/lib/{cli/define → define}/urimap-client/UrimapClient.definition.js +10 -10
  42. package/lib/define/urimap-client/UrimapClient.definition.js.map +1 -0
  43. package/lib/{cli/define → define}/urimap-client/UrimapClient.handler.d.ts +11 -1
  44. package/lib/define/urimap-client/UrimapClient.handler.js +50 -0
  45. package/lib/define/urimap-client/UrimapClient.handler.js.map +1 -0
  46. package/lib/define/urimap-pipeline/UrimapPipeline.definition.d.ts +12 -0
  47. package/lib/{cli/define → define}/urimap-pipeline/UrimapPipeline.definition.js +10 -10
  48. package/lib/define/urimap-pipeline/UrimapPipeline.definition.js.map +1 -0
  49. package/lib/{cli/define → define}/urimap-pipeline/UrimapPipeline.handler.d.ts +11 -1
  50. package/lib/define/urimap-pipeline/UrimapPipeline.handler.js +52 -0
  51. package/lib/define/urimap-pipeline/UrimapPipeline.handler.js.map +1 -0
  52. package/lib/define/urimap-server/UrimapServer.definition.d.ts +12 -0
  53. package/lib/{cli/define → define}/urimap-server/UrimapServer.definition.js +10 -10
  54. package/lib/define/urimap-server/UrimapServer.definition.js.map +1 -0
  55. package/lib/{cli/define → define}/urimap-server/UrimapServer.handler.d.ts +11 -1
  56. package/lib/define/urimap-server/UrimapServer.handler.js +50 -0
  57. package/lib/define/urimap-server/UrimapServer.handler.js.map +1 -0
  58. package/lib/define/webservice/Webservice.definition.d.ts +12 -0
  59. package/lib/{cli/define → define}/webservice/Webservice.definition.js +10 -10
  60. package/lib/define/webservice/Webservice.definition.js.map +1 -0
  61. package/lib/{cli/define → define}/webservice/Webservice.handler.d.ts +11 -1
  62. package/lib/define/webservice/Webservice.handler.js +60 -0
  63. package/lib/define/webservice/Webservice.handler.js.map +1 -0
  64. package/lib/delete/Delete.definition.d.ts +16 -0
  65. package/lib/{cli/delete → delete}/Delete.definition.js +10 -10
  66. package/lib/delete/Delete.definition.js.map +1 -0
  67. package/lib/delete/program/Program.definition.d.ts +12 -0
  68. package/lib/{cli/delete → delete}/program/Program.definition.js +10 -10
  69. package/lib/delete/program/Program.definition.js.map +1 -0
  70. package/lib/{cli/delete → delete}/program/Program.handler.d.ts +11 -1
  71. package/lib/delete/program/Program.handler.js +43 -0
  72. package/lib/delete/program/Program.handler.js.map +1 -0
  73. package/lib/delete/transaction/Transaction.definition.d.ts +12 -0
  74. package/lib/{cli/delete → delete}/transaction/Transaction.definition.js +10 -10
  75. package/lib/delete/transaction/Transaction.definition.js.map +1 -0
  76. package/lib/{cli/delete → delete}/transaction/Transaction.handler.d.ts +11 -1
  77. package/lib/delete/transaction/Transaction.handler.js +43 -0
  78. package/lib/delete/transaction/Transaction.handler.js.map +1 -0
  79. package/lib/delete/urimap/Urimap.definition.d.ts +12 -0
  80. package/lib/{cli/delete → delete}/urimap/Urimap.definition.js +10 -10
  81. package/lib/delete/urimap/Urimap.definition.js.map +1 -0
  82. package/lib/{cli/delete → delete}/urimap/Urimap.handler.d.ts +11 -1
  83. package/lib/delete/urimap/Urimap.handler.js +42 -0
  84. package/lib/delete/urimap/Urimap.handler.js.map +1 -0
  85. package/lib/delete/webservice/Webservice.definition.d.ts +12 -0
  86. package/lib/{cli/delete → delete}/webservice/Webservice.definition.js +10 -10
  87. package/lib/delete/webservice/Webservice.definition.js.map +1 -0
  88. package/lib/{cli/delete → delete}/webservice/Webservice.handler.d.ts +11 -1
  89. package/lib/delete/webservice/Webservice.handler.js +42 -0
  90. package/lib/delete/webservice/Webservice.handler.js.map +1 -0
  91. package/lib/disable/Disable.definition.d.ts +16 -0
  92. package/lib/{cli/disable → disable}/Disable.definition.js +10 -10
  93. package/lib/disable/Disable.definition.js.map +1 -0
  94. package/lib/disable/urimap/Urimap.definition.d.ts +12 -0
  95. package/lib/{cli/disable → disable}/urimap/Urimap.definition.js +10 -10
  96. package/lib/disable/urimap/Urimap.definition.js.map +1 -0
  97. package/lib/{cli/disable → disable}/urimap/Urimap.handler.d.ts +11 -1
  98. package/lib/disable/urimap/Urimap.handler.js +41 -0
  99. package/lib/disable/urimap/Urimap.handler.js.map +1 -0
  100. package/lib/discard/Discard.definition.d.ts +16 -0
  101. package/lib/{cli/discard → discard}/Discard.definition.js +10 -10
  102. package/lib/discard/Discard.definition.js.map +1 -0
  103. package/lib/discard/program/Program.definition.d.ts +12 -0
  104. package/lib/{cli/discard → discard}/program/Program.definition.js +10 -10
  105. package/lib/discard/program/Program.definition.js.map +1 -0
  106. package/lib/{cli/discard → discard}/program/Program.handler.d.ts +11 -1
  107. package/lib/discard/program/Program.handler.js +42 -0
  108. package/lib/discard/program/Program.handler.js.map +1 -0
  109. package/lib/discard/transaction/Transaction.definition.d.ts +12 -0
  110. package/lib/{cli/discard → discard}/transaction/Transaction.definition.js +10 -10
  111. package/lib/discard/transaction/Transaction.definition.js.map +1 -0
  112. package/lib/{cli/discard → discard}/transaction/Transaction.handler.d.ts +11 -1
  113. package/lib/discard/transaction/Transaction.handler.js +42 -0
  114. package/lib/discard/transaction/Transaction.handler.js.map +1 -0
  115. package/lib/discard/urimap/Urimap.definition.d.ts +12 -0
  116. package/lib/{cli/discard → discard}/urimap/Urimap.definition.js +10 -10
  117. package/lib/discard/urimap/Urimap.definition.js.map +1 -0
  118. package/lib/{cli/discard → discard}/urimap/Urimap.handler.d.ts +11 -1
  119. package/lib/discard/urimap/Urimap.handler.js +41 -0
  120. package/lib/discard/urimap/Urimap.handler.js.map +1 -0
  121. package/lib/enable/Enable.definition.d.ts +16 -0
  122. package/lib/{cli/enable → enable}/Enable.definition.js +10 -10
  123. package/lib/enable/Enable.definition.js.map +1 -0
  124. package/lib/enable/urimap/Urimap.definition.d.ts +12 -0
  125. package/lib/{cli/enable → enable}/urimap/Urimap.definition.js +10 -10
  126. package/lib/enable/urimap/Urimap.definition.js.map +1 -0
  127. package/lib/{cli/enable → enable}/urimap/Urimap.handler.d.ts +11 -1
  128. package/lib/enable/urimap/Urimap.handler.js +41 -0
  129. package/lib/enable/urimap/Urimap.handler.js.map +1 -0
  130. package/lib/get/Get.definition.d.ts +16 -0
  131. package/lib/{cli/get → get}/Get.definition.js +10 -10
  132. package/lib/get/Get.definition.js.map +1 -0
  133. package/lib/get/resource/Resource.definition.d.ts +12 -0
  134. package/lib/{cli/get → get}/resource/Resource.definition.js +10 -10
  135. package/lib/get/resource/Resource.definition.js.map +1 -0
  136. package/lib/{cli/get → get}/resource/Resource.handler.d.ts +11 -1
  137. package/lib/get/resource/Resource.handler.js +46 -0
  138. package/lib/get/resource/Resource.handler.js.map +1 -0
  139. package/lib/healthCheck.handler.d.ts +10 -0
  140. package/lib/healthCheck.handler.js +10 -10
  141. package/lib/healthCheck.handler.js.map +1 -1
  142. package/lib/imperative.d.ts +10 -0
  143. package/lib/imperative.js +13 -13
  144. package/lib/imperative.js.map +1 -1
  145. package/lib/index.d.ts +11 -1
  146. package/lib/index.js +17 -13
  147. package/lib/index.js.map +1 -1
  148. package/lib/install/Install.definition.d.ts +16 -0
  149. package/lib/{cli/install → install}/Install.definition.js +10 -10
  150. package/lib/install/Install.definition.js.map +1 -0
  151. package/lib/install/program/Program.definition.d.ts +12 -0
  152. package/lib/{cli/install → install}/program/Program.definition.js +10 -10
  153. package/lib/install/program/Program.definition.js.map +1 -0
  154. package/lib/{cli/install → install}/program/Program.handler.d.ts +11 -1
  155. package/lib/install/program/Program.handler.js +43 -0
  156. package/lib/install/program/Program.handler.js.map +1 -0
  157. package/lib/install/transaction/Transaction.definition.d.ts +12 -0
  158. package/lib/{cli/install → install}/transaction/Transaction.definition.js +10 -10
  159. package/lib/install/transaction/Transaction.definition.js.map +1 -0
  160. package/lib/{cli/install → install}/transaction/Transaction.handler.d.ts +11 -1
  161. package/lib/install/transaction/Transaction.handler.js +43 -0
  162. package/lib/install/transaction/Transaction.handler.js.map +1 -0
  163. package/lib/install/urimap/Urimap.definition.d.ts +12 -0
  164. package/lib/{cli/install → install}/urimap/Urimap.definition.js +10 -10
  165. package/lib/install/urimap/Urimap.definition.js.map +1 -0
  166. package/lib/{cli/install → install}/urimap/Urimap.handler.d.ts +11 -1
  167. package/lib/install/urimap/Urimap.handler.js +42 -0
  168. package/lib/install/urimap/Urimap.handler.js.map +1 -0
  169. package/lib/refresh/Refresh.definition.d.ts +16 -0
  170. package/lib/{cli/refresh → refresh}/Refresh.definition.js +10 -10
  171. package/lib/refresh/Refresh.definition.js.map +1 -0
  172. package/lib/refresh/program/Program.definition.d.ts +12 -0
  173. package/lib/{cli/refresh → refresh}/program/Program.definition.js +10 -10
  174. package/lib/refresh/program/Program.definition.js.map +1 -0
  175. package/lib/{cli/refresh → refresh}/program/Program.handler.d.ts +11 -1
  176. package/lib/refresh/program/Program.handler.js +42 -0
  177. package/lib/refresh/program/Program.handler.js.map +1 -0
  178. package/lib/remove-from-list/RemoveFromList.definition.d.ts +16 -0
  179. package/lib/{cli/remove-from-list → remove-from-list}/RemoveFromList.definition.js +10 -10
  180. package/lib/remove-from-list/RemoveFromList.definition.js.map +1 -0
  181. package/lib/remove-from-list/csdGroup/CSDGroup.definition.d.ts +12 -0
  182. package/lib/{cli/remove-from-list → remove-from-list}/csdGroup/CSDGroup.definition.js +10 -10
  183. package/lib/remove-from-list/csdGroup/CSDGroup.definition.js.map +1 -0
  184. package/lib/{cli/remove-from-list → remove-from-list}/csdGroup/CSDGroup.handler.d.ts +11 -1
  185. package/lib/remove-from-list/csdGroup/CSDGroup.handler.js +43 -0
  186. package/lib/remove-from-list/csdGroup/CSDGroup.handler.js.map +1 -0
  187. package/node_modules/@zowe/cics-for-zowe-sdk/LICENSE +277 -0
  188. package/node_modules/@zowe/cics-for-zowe-sdk/README.md +161 -0
  189. package/node_modules/@zowe/cics-for-zowe-sdk/lib/constants/CicsCmci.constants.d.ts +16 -0
  190. package/node_modules/@zowe/cics-for-zowe-sdk/lib/constants/CicsCmci.constants.js +83 -0
  191. package/node_modules/@zowe/cics-for-zowe-sdk/lib/constants/CicsCmci.constants.js.map +1 -0
  192. package/node_modules/@zowe/cics-for-zowe-sdk/lib/constants/CicsCmci.messages.d.ts +17 -0
  193. package/node_modules/@zowe/cics-for-zowe-sdk/lib/constants/CicsCmci.messages.js +22 -0
  194. package/node_modules/@zowe/cics-for-zowe-sdk/lib/constants/CicsCmci.messages.js.map +1 -0
  195. package/node_modules/@zowe/cics-for-zowe-sdk/lib/constants/index.d.ts +12 -0
  196. package/node_modules/@zowe/cics-for-zowe-sdk/lib/constants/index.js +29 -0
  197. package/node_modules/@zowe/cics-for-zowe-sdk/lib/constants/index.js.map +1 -0
  198. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/ICMCIApiResponse.d.ts +33 -0
  199. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/ICMCIApiResponse.js +13 -0
  200. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/ICMCIApiResponse.js.map +1 -0
  201. package/{lib/api → node_modules/@zowe/cics-for-zowe-sdk/lib}/doc/ICMCIResponseResultSummary.d.ts +10 -0
  202. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/ICMCIResponseResultSummary.js +13 -0
  203. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/ICMCIResponseResultSummary.js.map +1 -0
  204. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/ICSDGroupParms.d.ts +30 -0
  205. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/ICSDGroupParms.js +13 -0
  206. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/ICSDGroupParms.js.map +1 -0
  207. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IProgramParms.d.ts +30 -0
  208. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IProgramParms.js +13 -0
  209. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IProgramParms.js.map +1 -0
  210. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IResourceParms.d.ts +41 -0
  211. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IResourceParms.js +13 -0
  212. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IResourceParms.js.map +1 -0
  213. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/ITransactionParms.d.ts +35 -0
  214. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/ITransactionParms.js +13 -0
  215. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/ITransactionParms.js.map +1 -0
  216. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IURIMapParms.d.ts +89 -0
  217. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IURIMapParms.js +13 -0
  218. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IURIMapParms.js.map +1 -0
  219. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IWebServiceParms.d.ts +55 -0
  220. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IWebServiceParms.js +13 -0
  221. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/IWebServiceParms.js.map +1 -0
  222. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/index.d.ts +18 -0
  223. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/index.js +35 -0
  224. package/node_modules/@zowe/cics-for-zowe-sdk/lib/doc/index.js.map +1 -0
  225. package/node_modules/@zowe/cics-for-zowe-sdk/lib/index.d.ts +14 -0
  226. package/node_modules/@zowe/cics-for-zowe-sdk/lib/index.js +31 -0
  227. package/node_modules/@zowe/cics-for-zowe-sdk/lib/index.js.map +1 -0
  228. package/{lib/api → node_modules/@zowe/cics-for-zowe-sdk/lib}/methods/add-to-list/AddToList.d.ts +10 -0
  229. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/add-to-list/AddToList.js +54 -0
  230. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/add-to-list/AddToList.js.map +1 -0
  231. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/add-to-list/index.d.ts +11 -0
  232. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/add-to-list/index.js +28 -0
  233. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/add-to-list/index.js.map +1 -0
  234. package/{lib/api → node_modules/@zowe/cics-for-zowe-sdk/lib}/methods/define/Define.d.ts +10 -0
  235. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/define/Define.js +290 -0
  236. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/define/Define.js.map +1 -0
  237. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/define/index.d.ts +11 -0
  238. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/define/index.js +28 -0
  239. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/define/index.js.map +1 -0
  240. package/{lib/api → node_modules/@zowe/cics-for-zowe-sdk/lib}/methods/delete/Delete.d.ts +10 -0
  241. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/delete/Delete.js +107 -0
  242. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/delete/Delete.js.map +1 -0
  243. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/delete/index.d.ts +11 -0
  244. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/delete/index.js +28 -0
  245. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/delete/index.js.map +1 -0
  246. package/{lib/api → node_modules/@zowe/cics-for-zowe-sdk/lib}/methods/disable/Disable.d.ts +10 -0
  247. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/disable/Disable.js +50 -0
  248. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/disable/Disable.js.map +1 -0
  249. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/disable/index.d.ts +11 -0
  250. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/disable/index.js +28 -0
  251. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/disable/index.js.map +1 -0
  252. package/{lib/api → node_modules/@zowe/cics-for-zowe-sdk/lib}/methods/discard/Discard.d.ts +10 -0
  253. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/discard/Discard.js +70 -0
  254. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/discard/Discard.js.map +1 -0
  255. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/discard/index.d.ts +11 -0
  256. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/discard/index.js +28 -0
  257. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/discard/index.js.map +1 -0
  258. package/{lib/api → node_modules/@zowe/cics-for-zowe-sdk/lib}/methods/enable/Enable.d.ts +10 -0
  259. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/enable/Enable.js +50 -0
  260. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/enable/Enable.js.map +1 -0
  261. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/enable/index.d.ts +11 -0
  262. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/enable/index.js +28 -0
  263. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/enable/index.js.map +1 -0
  264. package/{lib/api → node_modules/@zowe/cics-for-zowe-sdk/lib}/methods/get/Get.d.ts +10 -0
  265. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/get/Get.js +45 -0
  266. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/get/Get.js.map +1 -0
  267. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/get/index.d.ts +11 -0
  268. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/get/index.js +28 -0
  269. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/get/index.js.map +1 -0
  270. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/index.d.ts +20 -0
  271. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/index.js +37 -0
  272. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/index.js.map +1 -0
  273. package/{lib/api → node_modules/@zowe/cics-for-zowe-sdk/lib}/methods/install/Install.d.ts +10 -0
  274. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/install/Install.js +113 -0
  275. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/install/Install.js.map +1 -0
  276. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/install/index.d.ts +11 -0
  277. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/install/index.js +28 -0
  278. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/install/index.js.map +1 -0
  279. package/{lib/api → node_modules/@zowe/cics-for-zowe-sdk/lib}/methods/remove-from-list/RemoveFromList.d.ts +10 -0
  280. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/remove-from-list/RemoveFromList.js +39 -0
  281. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/remove-from-list/RemoveFromList.js.map +1 -0
  282. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/remove-from-list/index.d.ts +11 -0
  283. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/remove-from-list/index.js +28 -0
  284. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/remove-from-list/index.js.map +1 -0
  285. package/{lib/api → node_modules/@zowe/cics-for-zowe-sdk/lib}/methods/set/Set.d.ts +10 -0
  286. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/set/Set.js +47 -0
  287. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/set/Set.js.map +1 -0
  288. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/set/index.d.ts +11 -0
  289. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/set/index.js +28 -0
  290. package/node_modules/@zowe/cics-for-zowe-sdk/lib/methods/set/index.js.map +1 -0
  291. package/node_modules/@zowe/cics-for-zowe-sdk/lib/rest/CicsCmciRestClient.d.ts +128 -0
  292. package/node_modules/@zowe/cics-for-zowe-sdk/lib/rest/CicsCmciRestClient.js +221 -0
  293. package/node_modules/@zowe/cics-for-zowe-sdk/lib/rest/CicsCmciRestClient.js.map +1 -0
  294. package/node_modules/@zowe/cics-for-zowe-sdk/lib/rest/index.d.ts +11 -0
  295. package/node_modules/@zowe/cics-for-zowe-sdk/lib/rest/index.js +28 -0
  296. package/node_modules/@zowe/cics-for-zowe-sdk/lib/rest/index.js.map +1 -0
  297. package/node_modules/@zowe/cics-for-zowe-sdk/package.json +51 -0
  298. package/node_modules/sax/LICENSE +41 -0
  299. package/node_modules/sax/README.md +225 -0
  300. package/node_modules/sax/lib/sax.js +1574 -0
  301. package/node_modules/sax/package.json +29 -0
  302. package/node_modules/xml2js/LICENSE +19 -0
  303. package/node_modules/xml2js/README.md +507 -0
  304. package/node_modules/xml2js/lib/bom.js +12 -0
  305. package/node_modules/xml2js/lib/builder.js +127 -0
  306. package/node_modules/xml2js/lib/defaults.js +72 -0
  307. package/node_modules/xml2js/lib/parser.js +385 -0
  308. package/node_modules/xml2js/lib/processors.js +34 -0
  309. package/node_modules/xml2js/lib/xml2js.js +39 -0
  310. package/node_modules/xml2js/package.json +93 -0
  311. package/node_modules/xmlbuilder/CHANGELOG.md +470 -0
  312. package/node_modules/xmlbuilder/LICENSE +21 -0
  313. package/node_modules/xmlbuilder/README.md +86 -0
  314. package/node_modules/xmlbuilder/appveyor.yml +20 -0
  315. package/node_modules/xmlbuilder/lib/Derivation.js +10 -0
  316. package/node_modules/xmlbuilder/lib/DocumentPosition.js +12 -0
  317. package/node_modules/xmlbuilder/lib/NodeType.js +23 -0
  318. package/node_modules/xmlbuilder/lib/OperationType.js +11 -0
  319. package/node_modules/xmlbuilder/lib/Utility.js +83 -0
  320. package/node_modules/xmlbuilder/lib/WriterState.js +10 -0
  321. package/node_modules/xmlbuilder/lib/XMLAttribute.js +108 -0
  322. package/node_modules/xmlbuilder/lib/XMLCData.js +36 -0
  323. package/node_modules/xmlbuilder/lib/XMLCharacterData.js +79 -0
  324. package/node_modules/xmlbuilder/lib/XMLComment.js +36 -0
  325. package/node_modules/xmlbuilder/lib/XMLDOMConfiguration.js +64 -0
  326. package/node_modules/xmlbuilder/lib/XMLDOMErrorHandler.js +16 -0
  327. package/node_modules/xmlbuilder/lib/XMLDOMImplementation.js +32 -0
  328. package/node_modules/xmlbuilder/lib/XMLDOMStringList.js +28 -0
  329. package/node_modules/xmlbuilder/lib/XMLDTDAttList.js +55 -0
  330. package/node_modules/xmlbuilder/lib/XMLDTDElement.js +38 -0
  331. package/node_modules/xmlbuilder/lib/XMLDTDEntity.js +97 -0
  332. package/node_modules/xmlbuilder/lib/XMLDTDNotation.js +52 -0
  333. package/node_modules/xmlbuilder/lib/XMLDeclaration.js +43 -0
  334. package/node_modules/xmlbuilder/lib/XMLDocType.js +186 -0
  335. package/node_modules/xmlbuilder/lib/XMLDocument.js +242 -0
  336. package/node_modules/xmlbuilder/lib/XMLDocumentCB.js +528 -0
  337. package/node_modules/xmlbuilder/lib/XMLDocumentFragment.js +24 -0
  338. package/node_modules/xmlbuilder/lib/XMLDummy.js +31 -0
  339. package/node_modules/xmlbuilder/lib/XMLElement.js +298 -0
  340. package/node_modules/xmlbuilder/lib/XMLNamedNodeMap.js +58 -0
  341. package/node_modules/xmlbuilder/lib/XMLNode.js +785 -0
  342. package/node_modules/xmlbuilder/lib/XMLNodeFilter.js +48 -0
  343. package/node_modules/xmlbuilder/lib/XMLNodeList.js +28 -0
  344. package/node_modules/xmlbuilder/lib/XMLProcessingInstruction.js +49 -0
  345. package/node_modules/xmlbuilder/lib/XMLRaw.js +35 -0
  346. package/node_modules/xmlbuilder/lib/XMLStreamWriter.js +176 -0
  347. package/node_modules/xmlbuilder/lib/XMLStringWriter.js +35 -0
  348. package/node_modules/xmlbuilder/lib/XMLStringifier.js +240 -0
  349. package/node_modules/xmlbuilder/lib/XMLText.js +69 -0
  350. package/node_modules/xmlbuilder/lib/XMLTypeInfo.js +21 -0
  351. package/node_modules/xmlbuilder/lib/XMLUserDataHandler.js +16 -0
  352. package/node_modules/xmlbuilder/lib/XMLWriterBase.js +428 -0
  353. package/node_modules/xmlbuilder/lib/index.js +65 -0
  354. package/node_modules/xmlbuilder/package.json +39 -0
  355. package/node_modules/xmlbuilder/typings/index.d.ts +153 -0
  356. package/package.json +19 -94
  357. package/lib/api/constants/CicsCmci.constants.d.ts +0 -6
  358. package/lib/api/constants/CicsCmci.constants.js +0 -83
  359. package/lib/api/constants/CicsCmci.constants.js.map +0 -1
  360. package/lib/api/constants/CicsCmci.messages.d.ts +0 -7
  361. package/lib/api/constants/CicsCmci.messages.js +0 -22
  362. package/lib/api/constants/CicsCmci.messages.js.map +0 -1
  363. package/lib/api/constants/PluginConstants.d.ts +0 -14
  364. package/lib/api/constants/PluginConstants.js +0 -29
  365. package/lib/api/constants/PluginConstants.js.map +0 -1
  366. package/lib/api/constants/index.d.ts +0 -2
  367. package/lib/api/constants/index.js +0 -25
  368. package/lib/api/constants/index.js.map +0 -1
  369. package/lib/api/doc/ICMCIApiResponse.d.ts +0 -23
  370. package/lib/api/doc/ICMCIApiResponse.js +0 -13
  371. package/lib/api/doc/ICMCIApiResponse.js.map +0 -1
  372. package/lib/api/doc/ICMCIResponseResultSummary.js +0 -13
  373. package/lib/api/doc/ICMCIResponseResultSummary.js.map +0 -1
  374. package/lib/api/doc/ICSDGroupParms.d.ts +0 -20
  375. package/lib/api/doc/ICSDGroupParms.js +0 -13
  376. package/lib/api/doc/ICSDGroupParms.js.map +0 -1
  377. package/lib/api/doc/IProgramParms.d.ts +0 -20
  378. package/lib/api/doc/IProgramParms.js +0 -13
  379. package/lib/api/doc/IProgramParms.js.map +0 -1
  380. package/lib/api/doc/IResourceParms.d.ts +0 -31
  381. package/lib/api/doc/IResourceParms.js +0 -13
  382. package/lib/api/doc/IResourceParms.js.map +0 -1
  383. package/lib/api/doc/ITransactionParms.d.ts +0 -25
  384. package/lib/api/doc/ITransactionParms.js +0 -13
  385. package/lib/api/doc/ITransactionParms.js.map +0 -1
  386. package/lib/api/doc/IURIMapParms.d.ts +0 -79
  387. package/lib/api/doc/IURIMapParms.js +0 -13
  388. package/lib/api/doc/IURIMapParms.js.map +0 -1
  389. package/lib/api/doc/IWebServiceParms.d.ts +0 -45
  390. package/lib/api/doc/IWebServiceParms.js +0 -13
  391. package/lib/api/doc/IWebServiceParms.js.map +0 -1
  392. package/lib/api/doc/index.d.ts +0 -8
  393. package/lib/api/doc/index.js +0 -31
  394. package/lib/api/doc/index.js.map +0 -1
  395. package/lib/api/index.d.ts +0 -4
  396. package/lib/api/index.js +0 -27
  397. package/lib/api/index.js.map +0 -1
  398. package/lib/api/methods/add-to-list/AddToList.js +0 -65
  399. package/lib/api/methods/add-to-list/AddToList.js.map +0 -1
  400. package/lib/api/methods/add-to-list/index.d.ts +0 -1
  401. package/lib/api/methods/add-to-list/index.js +0 -24
  402. package/lib/api/methods/add-to-list/index.js.map +0 -1
  403. package/lib/api/methods/define/Define.js +0 -311
  404. package/lib/api/methods/define/Define.js.map +0 -1
  405. package/lib/api/methods/define/index.d.ts +0 -1
  406. package/lib/api/methods/define/index.js +0 -24
  407. package/lib/api/methods/define/index.js.map +0 -1
  408. package/lib/api/methods/delete/Delete.js +0 -124
  409. package/lib/api/methods/delete/Delete.js.map +0 -1
  410. package/lib/api/methods/delete/index.d.ts +0 -1
  411. package/lib/api/methods/delete/index.js +0 -24
  412. package/lib/api/methods/delete/index.js.map +0 -1
  413. package/lib/api/methods/disable/Disable.js +0 -61
  414. package/lib/api/methods/disable/Disable.js.map +0 -1
  415. package/lib/api/methods/disable/index.d.ts +0 -1
  416. package/lib/api/methods/disable/index.js +0 -24
  417. package/lib/api/methods/disable/index.js.map +0 -1
  418. package/lib/api/methods/discard/Discard.js +0 -85
  419. package/lib/api/methods/discard/Discard.js.map +0 -1
  420. package/lib/api/methods/discard/index.d.ts +0 -1
  421. package/lib/api/methods/discard/index.js +0 -24
  422. package/lib/api/methods/discard/index.js.map +0 -1
  423. package/lib/api/methods/enable/Enable.js +0 -61
  424. package/lib/api/methods/enable/Enable.js.map +0 -1
  425. package/lib/api/methods/enable/index.d.ts +0 -1
  426. package/lib/api/methods/enable/index.js +0 -24
  427. package/lib/api/methods/enable/index.js.map +0 -1
  428. package/lib/api/methods/get/Get.js +0 -56
  429. package/lib/api/methods/get/Get.js.map +0 -1
  430. package/lib/api/methods/get/index.d.ts +0 -1
  431. package/lib/api/methods/get/index.js +0 -24
  432. package/lib/api/methods/get/index.js.map +0 -1
  433. package/lib/api/methods/index.d.ts +0 -10
  434. package/lib/api/methods/index.js +0 -33
  435. package/lib/api/methods/index.js.map +0 -1
  436. package/lib/api/methods/install/Install.js +0 -128
  437. package/lib/api/methods/install/Install.js.map +0 -1
  438. package/lib/api/methods/install/index.d.ts +0 -1
  439. package/lib/api/methods/install/index.js +0 -24
  440. package/lib/api/methods/install/index.js.map +0 -1
  441. package/lib/api/methods/remove-from-list/RemoveFromList.js +0 -50
  442. package/lib/api/methods/remove-from-list/RemoveFromList.js.map +0 -1
  443. package/lib/api/methods/remove-from-list/index.d.ts +0 -1
  444. package/lib/api/methods/remove-from-list/index.js +0 -24
  445. package/lib/api/methods/remove-from-list/index.js.map +0 -1
  446. package/lib/api/methods/set/Set.js +0 -58
  447. package/lib/api/methods/set/Set.js.map +0 -1
  448. package/lib/api/methods/set/index.d.ts +0 -1
  449. package/lib/api/methods/set/index.js +0 -24
  450. package/lib/api/methods/set/index.js.map +0 -1
  451. package/lib/api/rest/CicsCmciRestClient.d.ts +0 -118
  452. package/lib/api/rest/CicsCmciRestClient.js +0 -230
  453. package/lib/api/rest/CicsCmciRestClient.js.map +0 -1
  454. package/lib/api/rest/index.d.ts +0 -1
  455. package/lib/api/rest/index.js +0 -24
  456. package/lib/api/rest/index.js.map +0 -1
  457. package/lib/cli/-strings-/en.js.map +0 -1
  458. package/lib/cli/-strings-/es.js.map +0 -1
  459. package/lib/cli/CicsBaseHandler.d.ts +0 -28
  460. package/lib/cli/CicsBaseHandler.js +0 -49
  461. package/lib/cli/CicsBaseHandler.js.map +0 -1
  462. package/lib/cli/CicsSession.d.ts +0 -61
  463. package/lib/cli/CicsSession.js +0 -172
  464. package/lib/cli/CicsSession.js.map +0 -1
  465. package/lib/cli/add-to-list/AddToList.definition.d.ts +0 -6
  466. package/lib/cli/add-to-list/AddToList.definition.js.map +0 -1
  467. package/lib/cli/add-to-list/csdGroup/CSDGroup.definition.d.ts +0 -2
  468. package/lib/cli/add-to-list/csdGroup/CSDGroup.definition.js.map +0 -1
  469. package/lib/cli/add-to-list/csdGroup/CSDGroup.handler.js +0 -54
  470. package/lib/cli/add-to-list/csdGroup/CSDGroup.handler.js.map +0 -1
  471. package/lib/cli/define/Define.definition.d.ts +0 -6
  472. package/lib/cli/define/Define.definition.js.map +0 -1
  473. package/lib/cli/define/program/Program.definition.d.ts +0 -2
  474. package/lib/cli/define/program/Program.definition.js.map +0 -1
  475. package/lib/cli/define/program/Program.handler.js +0 -54
  476. package/lib/cli/define/program/Program.handler.js.map +0 -1
  477. package/lib/cli/define/transaction/Transaction.definition.d.ts +0 -2
  478. package/lib/cli/define/transaction/Transaction.definition.js.map +0 -1
  479. package/lib/cli/define/transaction/Transaction.handler.js +0 -55
  480. package/lib/cli/define/transaction/Transaction.handler.js.map +0 -1
  481. package/lib/cli/define/urimap-client/UrimapClient.definition.d.ts +0 -2
  482. package/lib/cli/define/urimap-client/UrimapClient.definition.js.map +0 -1
  483. package/lib/cli/define/urimap-client/UrimapClient.handler.js +0 -61
  484. package/lib/cli/define/urimap-client/UrimapClient.handler.js.map +0 -1
  485. package/lib/cli/define/urimap-pipeline/UrimapPipeline.definition.d.ts +0 -2
  486. package/lib/cli/define/urimap-pipeline/UrimapPipeline.definition.js.map +0 -1
  487. package/lib/cli/define/urimap-pipeline/UrimapPipeline.handler.js +0 -63
  488. package/lib/cli/define/urimap-pipeline/UrimapPipeline.handler.js.map +0 -1
  489. package/lib/cli/define/urimap-server/UrimapServer.definition.d.ts +0 -2
  490. package/lib/cli/define/urimap-server/UrimapServer.definition.js.map +0 -1
  491. package/lib/cli/define/urimap-server/UrimapServer.handler.js +0 -61
  492. package/lib/cli/define/urimap-server/UrimapServer.handler.js.map +0 -1
  493. package/lib/cli/define/webservice/Webservice.definition.d.ts +0 -2
  494. package/lib/cli/define/webservice/Webservice.definition.js.map +0 -1
  495. package/lib/cli/define/webservice/Webservice.handler.js +0 -71
  496. package/lib/cli/define/webservice/Webservice.handler.js.map +0 -1
  497. package/lib/cli/delete/Delete.definition.d.ts +0 -6
  498. package/lib/cli/delete/Delete.definition.js.map +0 -1
  499. package/lib/cli/delete/program/Program.definition.d.ts +0 -2
  500. package/lib/cli/delete/program/Program.definition.js.map +0 -1
  501. package/lib/cli/delete/program/Program.handler.js +0 -54
  502. package/lib/cli/delete/program/Program.handler.js.map +0 -1
  503. package/lib/cli/delete/transaction/Transaction.definition.d.ts +0 -2
  504. package/lib/cli/delete/transaction/Transaction.definition.js.map +0 -1
  505. package/lib/cli/delete/transaction/Transaction.handler.js +0 -54
  506. package/lib/cli/delete/transaction/Transaction.handler.js.map +0 -1
  507. package/lib/cli/delete/urimap/Urimap.definition.d.ts +0 -2
  508. package/lib/cli/delete/urimap/Urimap.definition.js.map +0 -1
  509. package/lib/cli/delete/urimap/Urimap.handler.js +0 -53
  510. package/lib/cli/delete/urimap/Urimap.handler.js.map +0 -1
  511. package/lib/cli/delete/webservice/Webservice.definition.d.ts +0 -2
  512. package/lib/cli/delete/webservice/Webservice.definition.js.map +0 -1
  513. package/lib/cli/delete/webservice/Webservice.handler.js +0 -53
  514. package/lib/cli/delete/webservice/Webservice.handler.js.map +0 -1
  515. package/lib/cli/disable/Disable.definition.d.ts +0 -6
  516. package/lib/cli/disable/Disable.definition.js.map +0 -1
  517. package/lib/cli/disable/urimap/Urimap.definition.d.ts +0 -2
  518. package/lib/cli/disable/urimap/Urimap.definition.js.map +0 -1
  519. package/lib/cli/disable/urimap/Urimap.handler.js +0 -52
  520. package/lib/cli/disable/urimap/Urimap.handler.js.map +0 -1
  521. package/lib/cli/discard/Discard.definition.d.ts +0 -6
  522. package/lib/cli/discard/Discard.definition.js.map +0 -1
  523. package/lib/cli/discard/program/Program.definition.d.ts +0 -2
  524. package/lib/cli/discard/program/Program.definition.js.map +0 -1
  525. package/lib/cli/discard/program/Program.handler.js +0 -53
  526. package/lib/cli/discard/program/Program.handler.js.map +0 -1
  527. package/lib/cli/discard/transaction/Transaction.definition.d.ts +0 -2
  528. package/lib/cli/discard/transaction/Transaction.definition.js.map +0 -1
  529. package/lib/cli/discard/transaction/Transaction.handler.js +0 -53
  530. package/lib/cli/discard/transaction/Transaction.handler.js.map +0 -1
  531. package/lib/cli/discard/urimap/Urimap.definition.d.ts +0 -2
  532. package/lib/cli/discard/urimap/Urimap.definition.js.map +0 -1
  533. package/lib/cli/discard/urimap/Urimap.handler.js +0 -52
  534. package/lib/cli/discard/urimap/Urimap.handler.js.map +0 -1
  535. package/lib/cli/enable/Enable.definition.d.ts +0 -6
  536. package/lib/cli/enable/Enable.definition.js.map +0 -1
  537. package/lib/cli/enable/urimap/Urimap.definition.d.ts +0 -2
  538. package/lib/cli/enable/urimap/Urimap.definition.js.map +0 -1
  539. package/lib/cli/enable/urimap/Urimap.handler.js +0 -52
  540. package/lib/cli/enable/urimap/Urimap.handler.js.map +0 -1
  541. package/lib/cli/get/Get.definition.d.ts +0 -6
  542. package/lib/cli/get/Get.definition.js.map +0 -1
  543. package/lib/cli/get/resource/Resource.definition.d.ts +0 -2
  544. package/lib/cli/get/resource/Resource.definition.js.map +0 -1
  545. package/lib/cli/get/resource/Resource.handler.js +0 -57
  546. package/lib/cli/get/resource/Resource.handler.js.map +0 -1
  547. package/lib/cli/install/Install.definition.d.ts +0 -6
  548. package/lib/cli/install/Install.definition.js.map +0 -1
  549. package/lib/cli/install/program/Program.definition.d.ts +0 -2
  550. package/lib/cli/install/program/Program.definition.js.map +0 -1
  551. package/lib/cli/install/program/Program.handler.js +0 -54
  552. package/lib/cli/install/program/Program.handler.js.map +0 -1
  553. package/lib/cli/install/transaction/Transaction.definition.d.ts +0 -2
  554. package/lib/cli/install/transaction/Transaction.definition.js.map +0 -1
  555. package/lib/cli/install/transaction/Transaction.handler.js +0 -54
  556. package/lib/cli/install/transaction/Transaction.handler.js.map +0 -1
  557. package/lib/cli/install/urimap/Urimap.definition.d.ts +0 -2
  558. package/lib/cli/install/urimap/Urimap.definition.js.map +0 -1
  559. package/lib/cli/install/urimap/Urimap.handler.js +0 -53
  560. package/lib/cli/install/urimap/Urimap.handler.js.map +0 -1
  561. package/lib/cli/refresh/Refresh.definition.d.ts +0 -6
  562. package/lib/cli/refresh/Refresh.definition.js.map +0 -1
  563. package/lib/cli/refresh/program/Program.definition.d.ts +0 -2
  564. package/lib/cli/refresh/program/Program.definition.js.map +0 -1
  565. package/lib/cli/refresh/program/Program.handler.js +0 -53
  566. package/lib/cli/refresh/program/Program.handler.js.map +0 -1
  567. package/lib/cli/remove-from-list/RemoveFromList.definition.d.ts +0 -6
  568. package/lib/cli/remove-from-list/RemoveFromList.definition.js.map +0 -1
  569. package/lib/cli/remove-from-list/csdGroup/CSDGroup.definition.d.ts +0 -2
  570. package/lib/cli/remove-from-list/csdGroup/CSDGroup.definition.js.map +0 -1
  571. package/lib/cli/remove-from-list/csdGroup/CSDGroup.handler.js +0 -54
  572. package/lib/cli/remove-from-list/csdGroup/CSDGroup.handler.js.map +0 -1
  573. package/npm-shrinkwrap.json +0 -93
@@ -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("./Install"), exports);
28
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/methods/install/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;;;;;;;;;;;;;;;;AAEH,4CAA0B"}
@@ -1,3 +1,13 @@
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
+ */
1
11
  import { AbstractSession } from "@zowe/imperative";
2
12
  import { ICMCIApiResponse, ICSDGroupParms } from "../../doc";
3
13
  /**
@@ -0,0 +1,39 @@
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
+ /**
18
+ * Remove a CSD Group resource from a CSD List in CICS through CMCI REST API
19
+ * @param {AbstractSession} session - the session to connect to CMCI with
20
+ * @param {ICSDGroupParms} parms - parameters for defining your CSD Group
21
+ * @returns {Promise<any>} promise that resolves to the response (XML parsed into a javascript object)
22
+ * when the request is complete
23
+ * @throws {ImperativeError} CICS CSD Group name not defined or blank
24
+ * @throws {ImperativeError} CICS CSD List not defined or blank
25
+ * @throws {ImperativeError} CicsCmciRestClient request fails
26
+ */
27
+ function removeCSDGroupFromList(session, parms) {
28
+ imperative_1.ImperativeExpect.toBeDefinedAndNonBlank(parms.name, "CICS CSD Group Name", "CICS CSD Group Name is required");
29
+ imperative_1.ImperativeExpect.toBeDefinedAndNonBlank(parms.csdList, "CICS CSD List", "CICS CSD List 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 remove a CSD Group from a CSD List with the following parameters:\n%s", JSON.stringify(parms));
32
+ const cicsPlex = parms.cicsPlex == null ? "" : parms.cicsPlex + "/";
33
+ const cmciResource = "/" + constants_1.CicsCmciConstants.CICS_SYSTEM_MANAGEMENT + "/" +
34
+ constants_1.CicsCmciConstants.CICS_CSDGROUP_IN_LIST + "/" + cicsPlex + parms.regionName +
35
+ "?CRITERIA=(CSDLIST=='" + parms.csdList + "')%20AND%20(CSDGROUP=='" + parms.name + "')";
36
+ return rest_1.CicsCmciRestClient.deleteExpectParsedXml(session, cmciResource, []);
37
+ }
38
+ exports.removeCSDGroupFromList = removeCSDGroupFromList;
39
+ //# sourceMappingURL=RemoveFromList.js.map
@@ -0,0 +1 @@
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;AAGpD;;;;;;;;;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,QAAQ,GAAG,KAAK,CAAC,QAAQ,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,GAAG,GAAG,CAAC;IACpE,MAAM,YAAY,GAAG,GAAG,GAAG,6BAAiB,CAAC,sBAAsB,GAAG,GAAG;QACnE,6BAAiB,CAAC,qBAAqB,GAAG,GAAG,GAAG,QAAQ,GAAG,KAAK,CAAC,UAAU;QAC3E,uBAAuB,GAAG,KAAK,CAAC,OAAO,GAAG,yBAAyB,GAAG,KAAK,CAAC,IAAI,GAAG,IAAI,CAAC;IAC9F,OAAO,yBAAkB,CAAC,qBAAqB,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,CAAQ,CAAC;AACpF,CAAC;AAZD,wDAYC"}
@@ -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 "./RemoveFromList";
@@ -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("./RemoveFromList"), exports);
28
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/methods/remove-from-list/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;;;;;;;;;;;;;;;;AAEH,mDAAiC"}
@@ -1,3 +1,13 @@
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
+ */
1
11
  import { AbstractSession } from "@zowe/imperative";
2
12
  import { ICMCIApiResponse, IProgramParms } from "../../doc";
3
13
  /**
@@ -0,0 +1,47 @@
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
+ /**
18
+ * Refresh a program definition on CICS through CMCI REST API
19
+ * @param {AbstractSession} session - the session to connect to CMCI with
20
+ * @param {IProgramParms} parms - parameters for refreshing your program
21
+ * @returns {Promise<any>} promise that resolves to the response (XML parsed into a javascript object)
22
+ * when the request is complete
23
+ * @throws {ImperativeError} CICS program name not defined or blank
24
+ * @throws {ImperativeError} CICS region name not defined or blank
25
+ * @throws {ImperativeError} CicsCmciRestClient request fails
26
+ */
27
+ function programNewcopy(session, parms) {
28
+ imperative_1.ImperativeExpect.toBeDefinedAndNonBlank(parms.name, "CICS Program name", "CICS program name is required");
29
+ imperative_1.ImperativeExpect.toBeDefinedAndNonBlank(parms.regionName, "CICS Region name", "CICS region name is required");
30
+ imperative_1.Logger.getAppLogger().debug("Attempting to refresh a program with the following parameters:\n%s", JSON.stringify(parms));
31
+ const requestBody = {
32
+ request: {
33
+ action: {
34
+ $: {
35
+ name: "NEWCOPY",
36
+ }
37
+ }
38
+ }
39
+ };
40
+ const cicsPlex = parms.cicsPlex == null ? "" : parms.cicsPlex + "/";
41
+ const cmciResource = "/" + constants_1.CicsCmciConstants.CICS_SYSTEM_MANAGEMENT + "/" +
42
+ constants_1.CicsCmciConstants.CICS_PROGRAM_RESOURCE + "/" + cicsPlex + parms.regionName +
43
+ "?CRITERIA=(PROGRAM=" + parms.name + ")";
44
+ return rest_1.CicsCmciRestClient.putExpectParsedXml(session, cmciResource, [], requestBody);
45
+ }
46
+ exports.programNewcopy = programNewcopy;
47
+ //# sourceMappingURL=Set.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Set.js","sourceRoot":"","sources":["../../../src/methods/set/Set.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;;;AAEH,iDAA6E;AAC7E,qCAAgD;AAChD,+CAAoD;AAGpD;;;;;;;;;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,QAAQ,GAAG,KAAK,CAAC,QAAQ,IAAI,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,QAAQ,GAAG,GAAG,CAAC;IACpE,MAAM,YAAY,GAAG,GAAG,GAAG,6BAAiB,CAAC,sBAAsB,GAAG,GAAG;QACnE,6BAAiB,CAAC,qBAAqB,GAAG,GAAG,GAAG,QAAQ,GAAG,KAAK,CAAC,UAAU;QAC3E,qBAAqB,GAAG,KAAK,CAAC,IAAI,GAAG,GAAG,CAAC;IAC/C,OAAO,yBAAkB,CAAC,kBAAkB,CAAC,OAAO,EAAE,YAAY,EAAE,EAAE,EAAE,WAAW,CAAQ,CAAC;AAC9F,CAAC;AApBD,wCAoBC"}
@@ -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 "./Set";
@@ -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("./Set"), exports);
28
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/methods/set/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;;;;;;;;;;;;;;;;AAEH,wCAAsB"}
@@ -0,0 +1,128 @@
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 rpayload 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 Brightside 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
+ }
@@ -0,0 +1,221 @@
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
+ const util_1 = require("util");
18
+ /**
19
+ * Wrapper for invoke CICS CMCI API through the RestClient to perform common error
20
+ * handling and checking and resolve promises according to generic types
21
+ * @export
22
+ * @class CicsCmciRestClient
23
+ * @extends {RestClient}
24
+ */
25
+ class CicsCmciRestClient extends imperative_1.RestClient {
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 CMCI_SUCCESS_RESPONSE_1 = "1024";
31
+ /**
32
+ * If the API request is successful, this value should be in
33
+ * api_response2 in the resultsummary object in the response
34
+ */
35
+ static CMCI_SUCCESS_RESPONSE_2 = "0";
36
+ /**
37
+ * Convert an object to XML using the xml2js package
38
+ * @param obj - the object to convert to XML
39
+ * @returns {string} the string of XML generated by xml2js
40
+ */
41
+ static convertObjectToXML(obj) {
42
+ this.log.trace("Converting the following object to XML via xml2js:\n%s", JSON.stringify(obj, null, 2));
43
+ const builder = new xml2js_1.Builder({ headless: true });
44
+ return builder.buildObject(obj);
45
+ }
46
+ /**
47
+ * Call the RestClient.getExpectString function assuming the response is XML, then return a promise of the JSON representation.
48
+ * @static
49
+ * @param {AbstractSession} session - representing connection to this api
50
+ * @param {string} resource - URI for which this request should go against
51
+ * @param {any} reqHeaders - headers to include in the REST request
52
+ * @returns {Promise<*>} - response body content from http(s) call
53
+ * @throws {ImperativeError} verifyResponseCodes fails
54
+ */
55
+ static async getExpectParsedXml(session, resource, reqHeaders = []) {
56
+ const data = await CicsCmciRestClient.getExpectString(session, resource, reqHeaders);
57
+ const apiResponse = CicsCmciRestClient.parseStringSync(data);
58
+ return CicsCmciRestClient.verifyResponseCodes(apiResponse);
59
+ }
60
+ /**
61
+ * Call the RestClient.deleteExpectString function assuming the response is XML, then return a promise of the JSON representation.
62
+ * @static
63
+ * @param {AbstractSession} session - representing connection to this api
64
+ * @param {string} resource - URI for which this request should go against
65
+ * @param {any} reqHeaders - headers to include in the REST request
66
+ * @returns {Promise<*>} - response body content from http(s) call
67
+ * @throws {ImperativeError} verifyResponseCodes fails
68
+ */
69
+ static async deleteExpectParsedXml(session, resource, reqHeaders = []) {
70
+ const data = await CicsCmciRestClient.deleteExpectString(session, resource, reqHeaders);
71
+ const apiResponse = CicsCmciRestClient.parseStringSync(data);
72
+ return CicsCmciRestClient.verifyResponseCodes(apiResponse);
73
+ }
74
+ /**
75
+ * PUT a CMCI endpoint expecting an XML return value parsed into a JCL
76
+ * Call the RestClient.putExpectString function assuming the response is XML, then return a promise of the JSON representation.
77
+ * @static
78
+ * @param {AbstractSession} session - representing connection to this api
79
+ * @param {string} resource - URI for which this request should go against
80
+ * @param {any} reqHeaders - headers to include in the REST request
81
+ * @param payload - XML body to put or a javascript object to convert to XML
82
+ * @returns {Promise<*>} - response body content from http(s) call
83
+ * @throws {ImperativeError} verifyResponseCodes fails
84
+ */
85
+ static async putExpectParsedXml(session, resource, reqHeaders = [], payload) {
86
+ if (payload != null) {
87
+ payload = CicsCmciRestClient.convertPayloadToXML(payload);
88
+ }
89
+ const data = await CicsCmciRestClient.putExpectString(session, resource, reqHeaders, payload);
90
+ const apiResponse = CicsCmciRestClient.parseStringSync(data);
91
+ return CicsCmciRestClient.verifyResponseCodes(apiResponse);
92
+ }
93
+ /**
94
+ * POST a CMCI endpoint expecting a XML return value
95
+ * Calls the RestClient.postExpectString function assuming the response is XML, then return a promise of the JSON representation.
96
+ * @static
97
+ * @param {AbstractSession} session - representing connection to this api
98
+ * @param {string} resource - URI for which this request should go against
99
+ * @param {any} reqHeaders - headers to include in the REST request
100
+ * @param payload - XML body to put or a javascript object to convert to XML
101
+ * @returns {Promise<*>} - response body content from http(s) call
102
+ * @throws {ImperativeError} verifyResponseCodes fails
103
+ */
104
+ static async postExpectParsedXml(session, resource, reqHeaders = [], payload) {
105
+ if (payload != null) {
106
+ payload = CicsCmciRestClient.convertPayloadToXML(payload);
107
+ }
108
+ const data = await CicsCmciRestClient.postExpectString(session, resource, reqHeaders, payload);
109
+ const apiResponse = CicsCmciRestClient.parseStringSync(data);
110
+ return CicsCmciRestClient.verifyResponseCodes(apiResponse);
111
+ }
112
+ /**
113
+ * Internal logger
114
+ */
115
+ static mLogger;
116
+ /**
117
+ * Internal parser
118
+ */
119
+ static mParser;
120
+ /**
121
+ * Detect if a rpayload is a string or an object
122
+ * If it is an object, convert it to XML using xml2js
123
+ * @param payload - the request body / payload
124
+ * @returns {string} the XML that can be used as the request body
125
+ */
126
+ static convertPayloadToXML(payload) {
127
+ if ((0, util_1.isString)(payload)) {
128
+ // if it's already a string, use it verbatim
129
+ return payload;
130
+ }
131
+ else {
132
+ // if it's an object, turn it into XML
133
+ return this.convertObjectToXML(payload);
134
+ }
135
+ }
136
+ /**
137
+ * Use the Brightside logger instead of the imperative logger
138
+ * @return {Logger}
139
+ */
140
+ static get log() {
141
+ if (this.mLogger == null) {
142
+ this.mLogger = imperative_1.Logger.getAppLogger();
143
+ }
144
+ return this.mLogger;
145
+ }
146
+ /**
147
+ * Use a configured parser
148
+ * @return {Parser}
149
+ */
150
+ static get parser() {
151
+ if (this.mParser == null) {
152
+ this.mParser = new xml2js_1.Parser({
153
+ explicitArray: false,
154
+ mergeAttrs: true,
155
+ normalizeTags: true // Guarantee that all tags are going to be lowercase
156
+ });
157
+ }
158
+ return this.mParser;
159
+ }
160
+ /**
161
+ * Check that we got the expected response codes from the API after a request
162
+ * @param {ICMCIApiResponse} apiResponse - the parsed response
163
+ * @returns {ICMCIApiResponse} - the response if it was correct
164
+ * @throws {ImperativeError} request did not get the expected codes
165
+ */
166
+ static verifyResponseCodes(apiResponse) {
167
+ if (apiResponse.response != null && apiResponse.response.resultsummary != null
168
+ && apiResponse.response.resultsummary.api_response1 === CicsCmciRestClient.CMCI_SUCCESS_RESPONSE_1
169
+ && apiResponse.response.resultsummary.api_response2 === CicsCmciRestClient.CMCI_SUCCESS_RESPONSE_2) {
170
+ // expected return code and reason code specify
171
+ return apiResponse;
172
+ }
173
+ else {
174
+ throw new imperative_1.ImperativeError({
175
+ msg: CicsCmci_messages_1.CicsCmciMessages.cmciRequestFailed.message + "\n" + imperative_1.TextUtils.prettyJson(apiResponse),
176
+ });
177
+ }
178
+ }
179
+ /**
180
+ * parse an XML string with XML2js
181
+ * The API is already synchronous according to their documentation but requires a callback.
182
+ * This is a wrapper that doesn't require a callback.
183
+ * @param {string} str - the string of XML to parse
184
+ * @returns {any} the object parsed from the XML
185
+ * @throws {Error} xml2js.parseString fails
186
+ */
187
+ static parseStringSync(str) {
188
+ let result;
189
+ let error;
190
+ this.parser.parseString(str, (err, r) => {
191
+ error = err;
192
+ result = r;
193
+ });
194
+ if (error != null) {
195
+ throw error;
196
+ }
197
+ return result;
198
+ }
199
+ /**
200
+ * Process an error encountered in the rest client
201
+ * @param {IImperativeError} original - the original error automatically built by the abstract rest client
202
+ * @returns {IImperativeError} - the processed error with details added
203
+ */
204
+ processError(original) {
205
+ original.msg = "CICS CMCI REST API Error:\n" + original.msg;
206
+ let details = original.causeErrors;
207
+ try {
208
+ const xmlDetails = CicsCmciRestClient.parseStringSync(details);
209
+ // if we didn't get an error, make the parsed details part of the error
210
+ details = imperative_1.TextUtils.prettyJson(xmlDetails, undefined, false);
211
+ }
212
+ catch (e) {
213
+ // if there's an error, the causeErrors text is not json
214
+ this.log.debug("Encountered an error trying to parse causeErrors as XML - causeErrors is likely not JSON format");
215
+ }
216
+ original.msg += "\n" + details; // add the data string which is the original error
217
+ return original;
218
+ }
219
+ }
220
+ exports.CicsCmciRestClient = CicsCmciRestClient;
221
+ //# sourceMappingURL=CicsCmciRestClient.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CicsCmciRestClient.js","sourceRoot":"","sources":["../../src/rest/CicsCmciRestClient.ts"],"names":[],"mappings":"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"}
@@ -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 "./CicsCmciRestClient";
@@ -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("./CicsCmciRestClient"), exports);
28
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/rest/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;;;;;;;;;;;;;;;;AAEH,uDAAqC"}