trm-core 9.10.6 → 10.0.1

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 (384) hide show
  1. package/README.md +20 -0
  2. package/changelog.txt +11 -0
  3. package/dist/actions/cg3y/download.js +34 -4
  4. package/dist/actions/cg3y/index.d.ts +23 -0
  5. package/dist/actions/cg3y/index.js +13 -10
  6. package/dist/actions/cg3z/index.d.ts +67 -3
  7. package/dist/actions/cg3z/index.js +25 -14
  8. package/dist/actions/cg3z/upload.d.ts +20 -0
  9. package/dist/actions/cg3z/upload.js +165 -36
  10. package/dist/actions/checkEngines/analyze.d.ts +11 -0
  11. package/dist/actions/checkEngines/analyze.js +294 -0
  12. package/dist/actions/checkEngines/index.d.ts +87 -0
  13. package/dist/actions/checkEngines/index.js +38 -0
  14. package/dist/actions/checkEngines/init.d.ts +11 -0
  15. package/dist/actions/checkEngines/init.js +45 -0
  16. package/dist/actions/checkPackageDependencies/analyze.d.ts +10 -0
  17. package/dist/actions/checkPackageDependencies/analyze.js +37 -39
  18. package/dist/actions/checkPackageDependencies/index.d.ts +56 -0
  19. package/dist/actions/checkPackageDependencies/index.js +13 -10
  20. package/dist/actions/checkPackageDependencies/init.d.ts +8 -0
  21. package/dist/actions/checkPackageDependencies/init.js +24 -2
  22. package/dist/actions/checkSapEntries/analyze.d.ts +12 -0
  23. package/dist/actions/checkSapEntries/analyze.js +63 -47
  24. package/dist/actions/checkSapEntries/index.d.ts +35 -0
  25. package/dist/actions/checkSapEntries/index.js +12 -10
  26. package/dist/actions/checkSapEntries/init.d.ts +8 -0
  27. package/dist/actions/checkSapEntries/init.js +10 -2
  28. package/dist/actions/commons/IActionContext.d.ts +10 -0
  29. package/dist/actions/commons/checkServerAuth.d.ts +7 -0
  30. package/dist/actions/commons/checkServerAuth.js +10 -5
  31. package/dist/actions/commons/index.d.ts +1 -1
  32. package/dist/actions/commons/index.js +1 -1
  33. package/dist/actions/commons/prompts/index.d.ts +1 -0
  34. package/dist/actions/commons/prompts/index.js +1 -0
  35. package/dist/actions/commons/prompts/setLandscapeTarget.d.ts +14 -0
  36. package/dist/actions/commons/prompts/setLandscapeTarget.js +40 -0
  37. package/dist/actions/commons/prompts/setTransportTarget.d.ts +15 -0
  38. package/dist/actions/commons/prompts/setTransportTarget.js +20 -2
  39. package/dist/actions/commons/setSystemPackages.d.ts +7 -0
  40. package/dist/actions/commons/setSystemPackages.js +12 -2
  41. package/dist/actions/commons/utils/actionLocks.d.ts +32 -0
  42. package/dist/actions/commons/utils/actionLocks.js +135 -0
  43. package/dist/actions/commons/utils/dirtyEntries.d.ts +12 -0
  44. package/dist/actions/commons/utils/dirtyEntries.js +54 -0
  45. package/dist/actions/commons/utils/index.d.ts +10 -0
  46. package/dist/actions/commons/utils/index.js +26 -0
  47. package/dist/actions/commons/utils/installRegistry.d.ts +18 -0
  48. package/dist/actions/commons/utils/installRegistry.js +46 -0
  49. package/dist/actions/commons/utils/installedDependency.d.ts +15 -0
  50. package/dist/actions/commons/utils/installedDependency.js +30 -0
  51. package/dist/actions/commons/utils/owningInstallation.d.ts +6 -0
  52. package/dist/actions/commons/utils/owningInstallation.js +47 -0
  53. package/dist/actions/commons/utils/packageCleanup.d.ts +168 -0
  54. package/dist/actions/commons/utils/packageCleanup.js +1017 -0
  55. package/dist/actions/commons/utils/releaseDeletionTransport.d.ts +5 -0
  56. package/dist/actions/commons/utils/releaseDeletionTransport.js +67 -0
  57. package/dist/actions/commons/utils/restoreTransport.d.ts +6 -0
  58. package/dist/actions/commons/utils/restoreTransport.js +50 -0
  59. package/dist/actions/commons/utils/retainedWorkflow.d.ts +6 -0
  60. package/dist/actions/commons/utils/retainedWorkflow.js +49 -0
  61. package/dist/actions/commons/utils/withScopedPrefix.d.ts +5 -0
  62. package/dist/actions/commons/utils/withScopedPrefix.js +32 -0
  63. package/dist/actions/commons/workflowCallbacks.d.ts +21 -0
  64. package/dist/actions/commons/workflowCallbacks.js +157 -0
  65. package/dist/actions/index.d.ts +3 -0
  66. package/dist/actions/index.js +5 -0
  67. package/dist/actions/install/addNamespace.d.ts +18 -0
  68. package/dist/actions/install/addNamespace.js +121 -51
  69. package/dist/actions/install/checkDependants.d.ts +15 -0
  70. package/dist/actions/install/checkDependants.js +74 -0
  71. package/dist/actions/install/checkDependencies.d.ts +11 -0
  72. package/dist/actions/install/checkDependencies.js +32 -13
  73. package/dist/actions/install/checkDependencyCycles.d.ts +17 -0
  74. package/dist/actions/install/checkDependencyCycles.js +105 -0
  75. package/dist/actions/install/checkEngines.d.ts +11 -0
  76. package/dist/actions/install/checkEngines.js +100 -0
  77. package/dist/actions/install/checkInstallDevclass.d.ts +24 -0
  78. package/dist/actions/install/checkInstallDevclass.js +110 -0
  79. package/dist/actions/install/checkSapEntries.d.ts +9 -0
  80. package/dist/actions/install/checkSapEntries.js +20 -12
  81. package/dist/actions/install/checkTransports.d.ts +34 -0
  82. package/dist/actions/install/checkTransports.js +329 -170
  83. package/dist/actions/install/cleanupCheckpoint.d.ts +11 -0
  84. package/dist/actions/install/cleanupCheckpoint.js +62 -0
  85. package/dist/actions/install/defaultTransportLayer.d.ts +5 -0
  86. package/dist/actions/install/defaultTransportLayer.js +36 -0
  87. package/dist/actions/install/executePostActivities.d.ts +6 -0
  88. package/dist/actions/install/executePostActivities.js +28 -38
  89. package/dist/actions/install/generateDevclass.d.ts +10 -0
  90. package/dist/actions/install/generateDevclass.js +66 -20
  91. package/dist/actions/install/generateLandscapeTransport.d.ts +23 -0
  92. package/dist/actions/install/generateLandscapeTransport.js +136 -0
  93. package/dist/actions/install/generateUpdateTransport.d.ts +20 -0
  94. package/dist/actions/install/generateUpdateTransport.js +122 -0
  95. package/dist/actions/install/importBatch.d.ts +22 -0
  96. package/dist/actions/install/importBatch.js +0 -0
  97. package/dist/actions/install/index.d.ts +273 -44
  98. package/dist/actions/install/index.js +139 -59
  99. package/dist/actions/install/init.d.ts +14 -0
  100. package/dist/actions/install/init.js +215 -108
  101. package/dist/actions/install/installDependencies.d.ts +14 -0
  102. package/dist/actions/install/installDependencies.js +122 -45
  103. package/dist/actions/install/lockResources.d.ts +8 -0
  104. package/dist/actions/install/lockResources.js +100 -0
  105. package/dist/actions/install/prepareCust.d.ts +13 -0
  106. package/dist/actions/install/prepareCust.js +138 -0
  107. package/dist/actions/install/prepareDevc.d.ts +15 -0
  108. package/dist/actions/install/prepareDevc.js +113 -0
  109. package/dist/actions/install/prepareLang.d.ts +13 -0
  110. package/dist/actions/install/prepareLang.js +110 -0
  111. package/dist/actions/install/prepareTadir.d.ts +13 -0
  112. package/dist/actions/install/prepareTadir.js +95 -0
  113. package/dist/actions/install/releaseLandscapeTransport.d.ts +11 -0
  114. package/dist/actions/install/releaseLandscapeTransport.js +79 -0
  115. package/dist/actions/install/setInstallDevclass.d.ts +10 -0
  116. package/dist/actions/install/setInstallDevclass.js +140 -54
  117. package/dist/actions/install/updatePackageData.d.ts +9 -0
  118. package/dist/actions/install/updatePackageData.js +117 -13
  119. package/dist/actions/installDependency/checkInstalledRelease.d.ts +13 -0
  120. package/dist/actions/installDependency/checkInstalledRelease.js +50 -0
  121. package/dist/actions/installDependency/confirmDowngrade.d.ts +11 -0
  122. package/dist/actions/installDependency/confirmDowngrade.js +53 -0
  123. package/dist/actions/installDependency/findInstallRelease.d.ts +24 -0
  124. package/dist/actions/installDependency/findInstallRelease.js +42 -19
  125. package/dist/actions/installDependency/index.d.ts +64 -3
  126. package/dist/actions/installDependency/index.js +30 -13
  127. package/dist/actions/installDependency/init.d.ts +14 -0
  128. package/dist/actions/installDependency/init.js +24 -3
  129. package/dist/actions/installDependency/installRelease.d.ts +6 -0
  130. package/dist/actions/installDependency/installRelease.js +22 -12
  131. package/dist/actions/publish/enginesUi.d.ts +53 -0
  132. package/dist/actions/publish/enginesUi.js +289 -0
  133. package/dist/actions/publish/findDependencies.d.ts +19 -0
  134. package/dist/actions/publish/findDependencies.js +72 -37
  135. package/dist/actions/publish/generateCustTransport.d.ts +6 -0
  136. package/dist/actions/publish/generateCustTransport.js +42 -19
  137. package/dist/actions/publish/generateDevcTransport.d.ts +6 -0
  138. package/dist/actions/publish/generateDevcTransport.js +16 -18
  139. package/dist/actions/publish/generateLangTransport.d.ts +6 -0
  140. package/dist/actions/publish/generateLangTransport.js +20 -23
  141. package/dist/actions/publish/generateTadirTransport.d.ts +6 -0
  142. package/dist/actions/publish/generateTadirTransport.js +18 -17
  143. package/dist/actions/publish/getSystemEngines.d.ts +27 -0
  144. package/dist/actions/publish/getSystemEngines.js +112 -0
  145. package/dist/actions/publish/index.d.ts +162 -37
  146. package/dist/actions/publish/index.js +51 -34
  147. package/dist/actions/publish/init.d.ts +28 -0
  148. package/dist/actions/publish/init.js +304 -120
  149. package/dist/actions/publish/lockResources.d.ts +4 -0
  150. package/dist/actions/{install/refreshTmsTxt.js → publish/lockResources.js} +14 -17
  151. package/dist/actions/publish/publishToRegistry.d.ts +8 -0
  152. package/dist/actions/publish/publishToRegistry.js +18 -8
  153. package/dist/actions/publish/releaseTransports.d.ts +6 -0
  154. package/dist/actions/publish/releaseTransports.js +48 -20
  155. package/dist/actions/publish/setCustomizingTransports.d.ts +6 -0
  156. package/dist/actions/publish/setCustomizingTransports.js +227 -101
  157. package/dist/actions/publish/setManifestValues.d.ts +22 -0
  158. package/dist/actions/publish/setManifestValues.js +455 -119
  159. package/dist/actions/publish/setOptionalPublishData.d.ts +11 -0
  160. package/dist/actions/publish/setOptionalPublishData.js +133 -0
  161. package/dist/actions/publish/updatePackageData.d.ts +8 -0
  162. package/dist/actions/publish/updatePackageData.js +20 -7
  163. package/dist/actions/stopWarning.d.ts +5 -0
  164. package/dist/actions/stopWarning.js +5 -0
  165. package/dist/actions/uninstall/checkDependants.d.ts +7 -0
  166. package/dist/actions/uninstall/checkDependants.js +55 -0
  167. package/dist/actions/uninstall/forwardDeletionTransport.d.ts +10 -0
  168. package/dist/actions/uninstall/forwardDeletionTransport.js +51 -0
  169. package/dist/actions/uninstall/generateDeletionTransport.d.ts +10 -0
  170. package/dist/actions/uninstall/generateDeletionTransport.js +45 -0
  171. package/dist/actions/uninstall/index.d.ts +153 -0
  172. package/dist/actions/uninstall/index.js +141 -0
  173. package/dist/actions/uninstall/init.d.ts +17 -0
  174. package/dist/actions/uninstall/init.js +146 -0
  175. package/dist/actions/uninstall/lockResources.d.ts +4 -0
  176. package/dist/actions/{publish/setTransportTarget.js → uninstall/lockResources.js} +16 -7
  177. package/dist/actions/uninstall/removePackageData.d.ts +9 -0
  178. package/dist/actions/uninstall/removePackageData.js +64 -0
  179. package/dist/actions/uninstall/uninstallNestedPackages.d.ts +26 -0
  180. package/dist/actions/uninstall/uninstallNestedPackages.js +174 -0
  181. package/dist/client/ClientError.d.ts +3 -1
  182. package/dist/client/ClientError.js +2 -1
  183. package/dist/client/RESTClient.d.ts +18 -5
  184. package/dist/client/RESTClient.js +194 -52
  185. package/dist/client/RESTClientError.d.ts +1 -2
  186. package/dist/client/RESTClientError.js +3 -2
  187. package/dist/client/RFCClient.d.ts +28 -7
  188. package/dist/client/RFCClient.js +325 -77
  189. package/dist/client/RFCClientError.d.ts +1 -1
  190. package/dist/client/RFCClientError.js +2 -2
  191. package/dist/client/TransportEntries.d.ts +8 -0
  192. package/dist/client/TransportEntries.js +2 -0
  193. package/dist/client/components/BORM_ID.d.ts +1 -0
  194. package/dist/client/components/BORM_ID.js +2 -0
  195. package/dist/client/components/BORM_NAME.d.ts +1 -0
  196. package/dist/client/components/BORM_NAME.js +2 -0
  197. package/dist/client/components/BORM_NAMEL.d.ts +1 -0
  198. package/dist/client/components/BORM_NAMEL.js +2 -0
  199. package/dist/client/components/BORM_VEND.d.ts +1 -0
  200. package/dist/client/components/BORM_VEND.js +2 -0
  201. package/dist/client/components/BORM_VERS.d.ts +1 -0
  202. package/dist/client/components/BORM_VERS.js +2 -0
  203. package/dist/client/components/CWBNTNUMM.d.ts +1 -0
  204. package/dist/client/components/CWBNTNUMM.js +2 -0
  205. package/dist/client/components/CWBNTSTAT.d.ts +1 -0
  206. package/dist/client/components/CWBNTSTAT.js +2 -0
  207. package/dist/client/components/CWBNTVERS.d.ts +1 -0
  208. package/dist/client/components/CWBNTVERS.js +2 -0
  209. package/dist/client/components/CWBPRSTAT.d.ts +1 -0
  210. package/dist/client/components/CWBPRSTAT.js +2 -0
  211. package/dist/client/components/INSTSTATE.d.ts +1 -0
  212. package/dist/client/components/INSTSTATE.js +2 -0
  213. package/dist/client/components/RELC_TYPE.d.ts +1 -0
  214. package/dist/client/components/RELC_TYPE.js +2 -0
  215. package/dist/client/components/SAPPATCHLV.d.ts +1 -0
  216. package/dist/client/components/SAPPATCHLV.js +2 -0
  217. package/dist/client/components/SAPRELEASE.d.ts +1 -0
  218. package/dist/client/components/SAPRELEASE.js +2 -0
  219. package/dist/client/components/SYSYSID.d.ts +1 -0
  220. package/dist/client/components/SYSYSID.js +2 -0
  221. package/dist/client/components/ZTRM_INSTALLTR_TYPE.d.ts +1 -0
  222. package/dist/client/components/ZTRM_INSTALLTR_TYPE.js +2 -0
  223. package/dist/client/components/index.d.ts +15 -0
  224. package/dist/client/components/index.js +15 -0
  225. package/dist/client/index.d.ts +1 -0
  226. package/dist/client/index.js +1 -0
  227. package/dist/client/messageLog.d.ts +7 -0
  228. package/dist/client/messageLog.js +21 -0
  229. package/dist/client/struct/ActionLockKey.d.ts +6 -0
  230. package/dist/client/struct/ActionLockKey.js +2 -0
  231. package/dist/client/struct/CVERS.d.ts +7 -0
  232. package/dist/client/struct/CVERS.js +2 -0
  233. package/dist/client/struct/CWBNTCUST.d.ts +6 -0
  234. package/dist/client/struct/CWBNTCUST.js +2 -0
  235. package/dist/client/struct/CWBNTHEAD.d.ts +5 -0
  236. package/dist/client/struct/CWBNTHEAD.js +2 -0
  237. package/dist/client/struct/E070.d.ts +2 -1
  238. package/dist/client/struct/E071K.d.ts +9 -0
  239. package/dist/client/struct/E071K.js +2 -0
  240. package/dist/client/struct/PRDVERS.d.ts +9 -0
  241. package/dist/client/struct/PRDVERS.js +2 -0
  242. package/dist/client/struct/SCOMPKDTLN.d.ts +21 -0
  243. package/dist/client/struct/STMSCALERT.d.ts +21 -0
  244. package/dist/client/struct/STMSCALERT.js +2 -0
  245. package/dist/client/struct/STMS_TP_IMPORT.d.ts +14 -0
  246. package/dist/client/struct/STMS_TP_IMPORT.js +2 -0
  247. package/dist/client/struct/STMS_TR_REQUEST.d.ts +8 -0
  248. package/dist/client/struct/STMS_TR_REQUEST.js +2 -0
  249. package/dist/client/struct/TDEVC.d.ts +38 -0
  250. package/dist/client/struct/TPLOGPTR.d.ts +13 -0
  251. package/dist/client/struct/TPLOGPTR.js +2 -0
  252. package/dist/client/struct/TPSTDOUT.d.ts +3 -0
  253. package/dist/client/struct/TPSTDOUT.js +2 -0
  254. package/dist/client/struct/ZTRM_INSTALLTR.d.ts +8 -0
  255. package/dist/client/struct/ZTRM_INSTALLTR.js +2 -0
  256. package/dist/client/struct/index.d.ts +12 -0
  257. package/dist/client/struct/index.js +12 -0
  258. package/dist/commons/checkCoreTrmDependencies.js +1 -1
  259. package/dist/commons/getAxiosInstance.js +8 -17
  260. package/dist/commons/getNodePackage.js +7 -0
  261. package/dist/commons/getPackageHierarchy.js +2 -0
  262. package/dist/commons/getPackagesNamespace.d.ts +9 -0
  263. package/dist/commons/getPackagesNamespace.js +19 -0
  264. package/dist/commons/index.d.ts +4 -0
  265. package/dist/commons/index.js +4 -0
  266. package/dist/commons/packageDataFromTdevc.d.ts +12 -0
  267. package/dist/commons/packageDataFromTdevc.js +25 -0
  268. package/dist/commons/resolveCoreVersion.d.ts +10 -0
  269. package/dist/commons/resolveCoreVersion.js +24 -0
  270. package/dist/commons/summarizeForLog.d.ts +22 -0
  271. package/dist/commons/summarizeForLog.js +120 -0
  272. package/dist/connection/OpenRFCConnect.d.ts +13 -0
  273. package/dist/connection/OpenRFCConnect.js +23 -0
  274. package/dist/connection/index.d.ts +1 -0
  275. package/dist/connection/index.js +17 -0
  276. package/dist/dependencies/PackageDependencies.d.ts +2 -0
  277. package/dist/dependencies/PackageDependencies.js +24 -0
  278. package/dist/index.d.ts +1 -0
  279. package/dist/index.js +1 -0
  280. package/dist/lockfile/Lockfile.d.ts +23 -1
  281. package/dist/lockfile/Lockfile.js +45 -9
  282. package/dist/manifest/Manifest.d.ts +9 -5
  283. package/dist/manifest/Manifest.js +82 -29
  284. package/dist/manifest/PostActivity.js +3 -3
  285. package/dist/manifest/TrmManifest.d.ts +0 -2
  286. package/dist/manifest/TrmManifestBase.d.ts +2 -0
  287. package/dist/manifest/TrmManifestEngines.d.ts +64 -0
  288. package/dist/manifest/TrmManifestEngines.js +2 -0
  289. package/dist/manifest/engines/index.d.ts +2 -0
  290. package/dist/manifest/engines/index.js +18 -0
  291. package/dist/manifest/engines/sapRange.d.ts +38 -0
  292. package/dist/manifest/engines/sapRange.js +135 -0
  293. package/dist/manifest/engines/validateEngines.d.ts +44 -0
  294. package/dist/manifest/engines/validateEngines.js +282 -0
  295. package/dist/manifest/index.d.ts +3 -0
  296. package/dist/manifest/index.js +3 -0
  297. package/dist/manifest/sapEntries.d.ts +14 -0
  298. package/dist/manifest/sapEntries.js +63 -0
  299. package/dist/protocol/Protocol.js +7 -0
  300. package/dist/registry/AbstractRegistry.d.ts +18 -3
  301. package/dist/registry/FileSystem.d.ts +22 -13
  302. package/dist/registry/FileSystem.js +69 -18
  303. package/dist/registry/RegistryDeletionTransportUnauthorizedError.d.ts +4 -0
  304. package/dist/registry/RegistryDeletionTransportUnauthorizedError.js +12 -0
  305. package/dist/registry/RegistryDeletionTransportUnavailableError.d.ts +9 -0
  306. package/dist/registry/RegistryDeletionTransportUnavailableError.js +17 -0
  307. package/dist/registry/RegistryPackageNotFoundError.d.ts +7 -0
  308. package/dist/registry/RegistryPackageNotFoundError.js +14 -0
  309. package/dist/registry/RegistryV2.d.ts +15 -5
  310. package/dist/registry/RegistryV2.js +308 -48
  311. package/dist/registry/index.d.ts +4 -0
  312. package/dist/registry/index.js +4 -0
  313. package/dist/registry/registryKey.d.ts +7 -0
  314. package/dist/registry/registryKey.js +21 -0
  315. package/dist/systemConnector/ActionLock.d.ts +1 -0
  316. package/dist/systemConnector/ActionLock.js +2 -0
  317. package/dist/systemConnector/ISystemConnector.d.ts +21 -4
  318. package/dist/systemConnector/ISystemConnectorBase.d.ts +16 -0
  319. package/dist/systemConnector/InstallTransport.d.ts +6 -0
  320. package/dist/systemConnector/InstallTransport.js +2 -0
  321. package/dist/systemConnector/OpenRFCSystemConnector.d.ts +12 -0
  322. package/dist/systemConnector/OpenRFCSystemConnector.js +51 -0
  323. package/dist/systemConnector/RESTSystemConnector.d.ts +22 -7
  324. package/dist/systemConnector/RESTSystemConnector.js +95 -23
  325. package/dist/systemConnector/RFCConnection.d.ts +0 -1
  326. package/dist/systemConnector/RFCSystemConnector.d.ts +25 -7
  327. package/dist/systemConnector/RFCSystemConnector.js +75 -16
  328. package/dist/systemConnector/SystemConnector.d.ts +38 -6
  329. package/dist/systemConnector/SystemConnector.js +138 -12
  330. package/dist/systemConnector/SystemConnectorBase.d.ts +24 -1
  331. package/dist/systemConnector/SystemConnectorBase.js +174 -22
  332. package/dist/systemConnector/index.d.ts +3 -0
  333. package/dist/systemConnector/index.js +3 -0
  334. package/dist/transport/E071KOwner.d.ts +10 -0
  335. package/dist/transport/E071KOwner.js +15 -0
  336. package/dist/transport/R3transLogParser.d.ts +19 -0
  337. package/dist/transport/R3transLogParser.js +148 -0
  338. package/dist/transport/Transport.d.ts +36 -3
  339. package/dist/transport/Transport.js +304 -138
  340. package/dist/transport/index.d.ts +2 -0
  341. package/dist/transport/index.js +2 -0
  342. package/dist/trmPackage/TransportBinary.d.ts +4 -1
  343. package/dist/trmPackage/TrmArtifact.d.ts +12 -8
  344. package/dist/trmPackage/TrmArtifact.js +93 -74
  345. package/dist/trmPackage/TrmPackage.d.ts +20 -6
  346. package/dist/trmPackage/TrmPackage.js +27 -1
  347. package/dist/validators/validateDevclass.js +4 -0
  348. package/package.json +15 -7
  349. package/dist/actions/commons/trmServerPa.d.ts +0 -3
  350. package/dist/actions/commons/trmServerPa.js +0 -40
  351. package/dist/actions/install/checkAlreadyInstalled.d.ts +0 -3
  352. package/dist/actions/install/checkAlreadyInstalled.js +0 -71
  353. package/dist/actions/install/checkObjectTypes.d.ts +0 -3
  354. package/dist/actions/install/checkObjectTypes.js +0 -50
  355. package/dist/actions/install/checkObjectsLock.d.ts +0 -3
  356. package/dist/actions/install/checkObjectsLock.js +0 -52
  357. package/dist/actions/install/generateInstallTransports.d.ts +0 -3
  358. package/dist/actions/install/generateInstallTransports.js +0 -128
  359. package/dist/actions/install/importCustTransport.d.ts +0 -3
  360. package/dist/actions/install/importCustTransport.js +0 -73
  361. package/dist/actions/install/importDevcTransport.d.ts +0 -3
  362. package/dist/actions/install/importDevcTransport.js +0 -93
  363. package/dist/actions/install/importLangTransport.d.ts +0 -3
  364. package/dist/actions/install/importLangTransport.js +0 -72
  365. package/dist/actions/install/importTadirTransport.d.ts +0 -3
  366. package/dist/actions/install/importTadirTransport.js +0 -83
  367. package/dist/actions/install/readDevc.d.ts +0 -3
  368. package/dist/actions/install/readDevc.js +0 -33
  369. package/dist/actions/install/readTadir.d.ts +0 -3
  370. package/dist/actions/install/readTadir.js +0 -101
  371. package/dist/actions/install/refreshTmsTxt.d.ts +0 -3
  372. package/dist/actions/install/releaseInstallTransport.d.ts +0 -3
  373. package/dist/actions/install/releaseInstallTransport.js +0 -80
  374. package/dist/actions/publish/checkAllObjectsReleased.d.ts +0 -3
  375. package/dist/actions/publish/checkAllObjectsReleased.js +0 -46
  376. package/dist/actions/publish/getSourceCode.d.ts +0 -3
  377. package/dist/actions/publish/getSourceCode.js +0 -49
  378. package/dist/actions/publish/setChangelog.d.ts +0 -3
  379. package/dist/actions/publish/setChangelog.js +0 -69
  380. package/dist/actions/publish/setDevclass.d.ts +0 -3
  381. package/dist/actions/publish/setDevclass.js +0 -74
  382. package/dist/actions/publish/setReadme.d.ts +0 -3
  383. package/dist/actions/publish/setReadme.js +0 -52
  384. package/dist/actions/publish/setTransportTarget.d.ts +0 -3
@@ -0,0 +1 @@
1
+ export type CWBNTNUMM = string;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export type CWBNTSTAT = string;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export type CWBNTVERS = string;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export type CWBPRSTAT = string;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export type INSTSTATE = string;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export type RELC_TYPE = string;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export type SAPPATCHLV = string;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export type SAPRELEASE = string;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export type SYSYSID = string;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1 @@
1
+ export type ZTRM_INSTALLTR_TYPE = string;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -41,6 +41,7 @@ export * from "./RS38L_FNAME";
41
41
  export * from "./PNAME";
42
42
  export * from "./TRFUNCTION";
43
43
  export * from "./RFCDEST";
44
+ export * from "./SYSYSID";
44
45
  export * from "./NAMESPACE";
45
46
  export * from "./TRNLICENSE";
46
47
  export * from "./NSP_TEXT";
@@ -67,3 +68,17 @@ export * from "./SYDATUM";
67
68
  export * from "./SYTIME";
68
69
  export * from "./DDLANGUAGE";
69
70
  export * from "./TARSYSTEM";
71
+ export * from "./SAPRELEASE";
72
+ export * from "./SAPPATCHLV";
73
+ export * from "./RELC_TYPE";
74
+ export * from "./BORM_ID";
75
+ export * from "./BORM_NAME";
76
+ export * from "./BORM_VERS";
77
+ export * from "./BORM_VEND";
78
+ export * from "./BORM_NAMEL";
79
+ export * from "./INSTSTATE";
80
+ export * from "./CWBNTNUMM";
81
+ export * from "./CWBNTSTAT";
82
+ export * from "./CWBPRSTAT";
83
+ export * from "./CWBNTVERS";
84
+ export * from "./ZTRM_INSTALLTR_TYPE";
@@ -57,6 +57,7 @@ __exportStar(require("./RS38L_FNAME"), exports);
57
57
  __exportStar(require("./PNAME"), exports);
58
58
  __exportStar(require("./TRFUNCTION"), exports);
59
59
  __exportStar(require("./RFCDEST"), exports);
60
+ __exportStar(require("./SYSYSID"), exports);
60
61
  __exportStar(require("./NAMESPACE"), exports);
61
62
  __exportStar(require("./TRNLICENSE"), exports);
62
63
  __exportStar(require("./NSP_TEXT"), exports);
@@ -83,3 +84,17 @@ __exportStar(require("./SYDATUM"), exports);
83
84
  __exportStar(require("./SYTIME"), exports);
84
85
  __exportStar(require("./DDLANGUAGE"), exports);
85
86
  __exportStar(require("./TARSYSTEM"), exports);
87
+ __exportStar(require("./SAPRELEASE"), exports);
88
+ __exportStar(require("./SAPPATCHLV"), exports);
89
+ __exportStar(require("./RELC_TYPE"), exports);
90
+ __exportStar(require("./BORM_ID"), exports);
91
+ __exportStar(require("./BORM_NAME"), exports);
92
+ __exportStar(require("./BORM_VERS"), exports);
93
+ __exportStar(require("./BORM_VEND"), exports);
94
+ __exportStar(require("./BORM_NAMEL"), exports);
95
+ __exportStar(require("./INSTSTATE"), exports);
96
+ __exportStar(require("./CWBNTNUMM"), exports);
97
+ __exportStar(require("./CWBNTSTAT"), exports);
98
+ __exportStar(require("./CWBPRSTAT"), exports);
99
+ __exportStar(require("./CWBNTVERS"), exports);
100
+ __exportStar(require("./ZTRM_INSTALLTR_TYPE"), exports);
@@ -8,3 +8,4 @@ export * from "./Login";
8
8
  export * from "./ClientError";
9
9
  export * from "./RESTClientError";
10
10
  export * from "./RFCClientError";
11
+ export * from "./TransportEntries";
@@ -24,3 +24,4 @@ __exportStar(require("./Login"), exports);
24
24
  __exportStar(require("./ClientError"), exports);
25
25
  __exportStar(require("./RESTClientError"), exports);
26
26
  __exportStar(require("./RFCClientError"), exports);
27
+ __exportStar(require("./TransportEntries"), exports);
@@ -0,0 +1,7 @@
1
+ import { ClientError } from "./ClientError";
2
+ /**
3
+ * Normalizes the log attached to a trm-server exception (`/ATRM/CX_EXCEPTION->log( )`).
4
+ * REST returns it as an array of lines, RFC as `TLINE` rows.
5
+ */
6
+ export declare function parseMessageLog(raw: any): string[] | undefined;
7
+ export declare function logMessageLog(error: ClientError): void;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.parseMessageLog = parseMessageLog;
4
+ exports.logMessageLog = logMessageLog;
5
+ const trm_commons_1 = require("trm-commons");
6
+ /**
7
+ * Normalizes the log attached to a trm-server exception (`/ATRM/CX_EXCEPTION->log( )`).
8
+ * REST returns it as an array of lines, RFC as `TLINE` rows.
9
+ */
10
+ function parseMessageLog(raw) {
11
+ if (!Array.isArray(raw)) {
12
+ return undefined;
13
+ }
14
+ const lines = raw.map(line => { var _a; return `${typeof line === 'string' ? line : ((_a = line === null || line === void 0 ? void 0 : line.tdline) !== null && _a !== void 0 ? _a : '')}`.trimEnd(); });
15
+ return lines.some(line => line.length > 0) ? lines : undefined;
16
+ }
17
+ function logMessageLog(error) {
18
+ if (error.messageLog && error.messageLog.length > 0) {
19
+ trm_commons_1.Logger.log(`Exception log:\n${error.messageLog.join('\n')}`, true);
20
+ }
21
+ }
@@ -0,0 +1,6 @@
1
+ /** One canonical SAP resource protected by a TRM action lock. */
2
+ export interface ActionLockKey {
3
+ resourceType: string;
4
+ resourceHash: string;
5
+ resourceName: string;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,7 @@
1
+ import { DLVUNIT, RELC_TYPE, SAPPATCHLV, SAPRELEASE } from "../components";
2
+ export type CVERS = {
3
+ component: DLVUNIT;
4
+ release: SAPRELEASE;
5
+ extrelease: SAPPATCHLV;
6
+ compType: RELC_TYPE;
7
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ import { CWBNTNUMM, CWBNTSTAT, CWBPRSTAT } from "../components";
2
+ export type CWBNTCUST = {
3
+ numm: CWBNTNUMM;
4
+ ntstatus: CWBNTSTAT;
5
+ prstatus: CWBPRSTAT;
6
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ import { CWBNTNUMM, CWBNTVERS } from "../components";
2
+ export type CWBNTHEAD = {
3
+ numm: CWBNTNUMM;
4
+ versno: CWBNTVERS;
5
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,8 +1,9 @@
1
- import { AS4DATE, AS4TIME, TRKORR, TRFUNCTION, TRSTATUS } from "../components";
1
+ import { AS4DATE, AS4TIME, TRKORR, TRFUNCTION, TRSTATUS, TARSYSTEM } from "../components";
2
2
  export type E070 = {
3
3
  trkorr: TRKORR;
4
4
  trfunction: TRFUNCTION;
5
5
  trstatus: TRSTATUS;
6
6
  as4Date: AS4DATE;
7
7
  as4Time: AS4TIME;
8
+ tarsystem?: TARSYSTEM;
8
9
  };
@@ -0,0 +1,9 @@
1
+ import { PGMID, TRKORR, TROBJTYPE, TROBJ_NAME } from "../components";
2
+ export type E071K = {
3
+ trkorr?: TRKORR;
4
+ pgmid: PGMID;
5
+ object: TROBJTYPE;
6
+ objname: TROBJ_NAME;
7
+ mastertype?: TROBJTYPE;
8
+ mastername?: TROBJ_NAME;
9
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ import { BORM_ID, BORM_NAME, BORM_NAMEL, BORM_VEND, BORM_VERS, INSTSTATE } from "../components";
2
+ export type PRDVERS = {
3
+ id: BORM_ID;
4
+ name: BORM_NAME;
5
+ version: BORM_VERS;
6
+ vendor: BORM_VEND;
7
+ descript: BORM_NAMEL;
8
+ inststatus: INSTSTATE;
9
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -5,4 +5,25 @@ export type SCOMPKDTLN = {
5
5
  as4user: PACKAUTHOR;
6
6
  dlvunit: DLVUNIT;
7
7
  pdevclass: DEVLAYER;
8
+ language?: string;
9
+ masterlang?: string;
10
+ korrflag?: string;
11
+ component?: string;
12
+ namespace?: string;
13
+ tpclass?: string;
14
+ parentcl?: DEVCLASS;
15
+ perminher?: string;
16
+ intfprefx?: string;
17
+ packtype?: string;
18
+ packkind?: string;
19
+ restricted?: string;
20
+ mainpack?: string;
21
+ srvCheck?: string;
22
+ cliCheck?: string;
23
+ extAlias?: string;
24
+ projectGuid?: string;
25
+ projectId?: string;
26
+ projectPassdown?: string;
27
+ switchId?: string;
28
+ translationDepth?: string;
8
29
  };
@@ -0,0 +1,21 @@
1
+ import { SYMSGID, SYMSGNO, SYMSGTY, SYMSGV, TMSSYSNAM } from "../components";
2
+ export type STMSCALERT = {
3
+ id: string;
4
+ domnam: string;
5
+ sysnam: TMSSYSNAM;
6
+ client: string;
7
+ service: string;
8
+ function: string;
9
+ error: string;
10
+ severity: string;
11
+ text: string;
12
+ msgid: SYMSGID;
13
+ msgty: SYMSGTY;
14
+ msgno: SYMSGNO;
15
+ msgv1: SYMSGV;
16
+ msgv2: SYMSGV;
17
+ msgv3: SYMSGV;
18
+ msgv4: SYMSGV;
19
+ methodptr: string;
20
+ properties: string;
21
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,14 @@
1
+ import { STMSCALERT } from "./STMSCALERT";
2
+ import { STMS_TR_REQUEST } from "./STMS_TR_REQUEST";
3
+ import { TPLOGPTR } from "./TPLOGPTR";
4
+ import { TPSTDOUT } from "./TPSTDOUT";
5
+ export type STMS_TP_IMPORT = {
6
+ request: STMS_TR_REQUEST;
7
+ tpRetCode: string;
8
+ tpAlog: string;
9
+ tpSlog: string;
10
+ tpPid: string;
11
+ tpStdout: TPSTDOUT[];
12
+ tpLogptr: TPLOGPTR[];
13
+ alert: STMSCALERT;
14
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ import { TRKORR, TR_AS4USER } from "../components";
2
+ export type STMS_TR_REQUEST = {
3
+ trkorr: TRKORR;
4
+ tarcli: string;
5
+ project: TRKORR;
6
+ preflg: string;
7
+ owner: TR_AS4USER;
8
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -5,4 +5,42 @@ export type TDEVC = {
5
5
  tpclass: TPCLASS;
6
6
  dlvunit: DLVUNIT;
7
7
  ctext?: AS4TEXT;
8
+ intsys?: string;
9
+ consys?: string;
10
+ korrflag?: string;
11
+ as4user?: string;
12
+ pdevclass?: string;
13
+ component?: string;
14
+ namespace?: string;
15
+ shipment?: string;
16
+ applicat?: string;
17
+ errsevrty?: string;
18
+ perminher?: string;
19
+ intfprefx?: string;
20
+ packtype?: string;
21
+ restricted?: string;
22
+ mainpack?: string;
23
+ createdBy?: string;
24
+ createdOn?: string;
25
+ changedBy?: string;
26
+ changedOn?: string;
27
+ srvCheck?: string;
28
+ cliCheck?: string;
29
+ extAlias?: string;
30
+ projectGuid?: string;
31
+ projectPassdown?: string;
32
+ isEnhanceable?: string;
33
+ packageKind?: string;
34
+ enhancedPackage?: DEVCLASS;
35
+ accessObject?: string;
36
+ defaultIntf?: string;
37
+ inheritCliIntf?: string;
38
+ techChgTstmp?: string;
39
+ overallTstmp?: string;
40
+ encapsulation?: string;
41
+ dclEnabled?: string;
42
+ subKey?: string;
43
+ allowStatic?: string;
44
+ switchId?: string;
45
+ checkRule?: string;
8
46
  };
@@ -0,0 +1,13 @@
1
+ import { SYDATUM, SYTIME, TRKORR, TRTPSTEP, TR_AS4USER } from "../components";
2
+ export type TPLOGPTR = {
3
+ trkorr: TRKORR;
4
+ owner: TR_AS4USER;
5
+ sysname: string;
6
+ step: TRTPSTEP;
7
+ retcode: string;
8
+ logdate: SYDATUM;
9
+ logtime: SYTIME;
10
+ osuser: TR_AS4USER;
11
+ hostname: string;
12
+ client: string;
13
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ export type TPSTDOUT = {
2
+ line: string;
3
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,8 @@
1
+ import { TRKORR, ZTRM_INSTALLTR_TYPE, ZTRM_PACKAGE_NAME, ZTRM_PACKAGE_REGISTRY } from "../components";
2
+ /** Transport imported by an installation, as recorded in `/ATRM/INSTALLTR`. */
3
+ export type ZTRM_INSTALLTR = {
4
+ package_name: ZTRM_PACKAGE_NAME;
5
+ package_registry: ZTRM_PACKAGE_REGISTRY;
6
+ trkorr: TRKORR;
7
+ trm_type: ZTRM_INSTALLTR_TYPE;
8
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -9,10 +9,12 @@ export * from "./TLINE";
9
9
  export * from "./TMSCSYS";
10
10
  export * from "./E070";
11
11
  export * from "./E071";
12
+ export * from "./E071K";
12
13
  export * from "./SENVI";
13
14
  export * from "./STMSIQREQ";
14
15
  export * from "./SCOMPKDTLN";
15
16
  export * from "./ZTRM_INSTALLDEVC";
17
+ export * from "./ZTRM_INSTALLTR";
16
18
  export * from "./KO100";
17
19
  export * from "./T100";
18
20
  export * from "./LXE_TT_PACKG_LINE";
@@ -31,3 +33,13 @@ export * from "./ZTRM_OBJ_LOCK";
31
33
  export * from "./E07T";
32
34
  export * from "./TADIR_KEY";
33
35
  export * from "./ZTRM_DIRTY";
36
+ export * from "./STMS_TR_REQUEST";
37
+ export * from "./STMSCALERT";
38
+ export * from "./TPSTDOUT";
39
+ export * from "./TPLOGPTR";
40
+ export * from "./STMS_TP_IMPORT";
41
+ export * from "./ActionLockKey";
42
+ export * from "./CVERS";
43
+ export * from "./PRDVERS";
44
+ export * from "./CWBNTCUST";
45
+ export * from "./CWBNTHEAD";
@@ -25,10 +25,12 @@ __exportStar(require("./TLINE"), exports);
25
25
  __exportStar(require("./TMSCSYS"), exports);
26
26
  __exportStar(require("./E070"), exports);
27
27
  __exportStar(require("./E071"), exports);
28
+ __exportStar(require("./E071K"), exports);
28
29
  __exportStar(require("./SENVI"), exports);
29
30
  __exportStar(require("./STMSIQREQ"), exports);
30
31
  __exportStar(require("./SCOMPKDTLN"), exports);
31
32
  __exportStar(require("./ZTRM_INSTALLDEVC"), exports);
33
+ __exportStar(require("./ZTRM_INSTALLTR"), exports);
32
34
  __exportStar(require("./KO100"), exports);
33
35
  __exportStar(require("./T100"), exports);
34
36
  __exportStar(require("./LXE_TT_PACKG_LINE"), exports);
@@ -47,3 +49,13 @@ __exportStar(require("./ZTRM_OBJ_LOCK"), exports);
47
49
  __exportStar(require("./E07T"), exports);
48
50
  __exportStar(require("./TADIR_KEY"), exports);
49
51
  __exportStar(require("./ZTRM_DIRTY"), exports);
52
+ __exportStar(require("./STMS_TR_REQUEST"), exports);
53
+ __exportStar(require("./STMSCALERT"), exports);
54
+ __exportStar(require("./TPSTDOUT"), exports);
55
+ __exportStar(require("./TPLOGPTR"), exports);
56
+ __exportStar(require("./STMS_TP_IMPORT"), exports);
57
+ __exportStar(require("./ActionLockKey"), exports);
58
+ __exportStar(require("./CVERS"), exports);
59
+ __exportStar(require("./PRDVERS"), exports);
60
+ __exportStar(require("./CWBNTCUST"), exports);
61
+ __exportStar(require("./CWBNTHEAD"), exports);
@@ -35,7 +35,7 @@ function checkCoreTrmDependencies(systemPackages, globalPath) {
35
35
  }
36
36
  else {
37
37
  const installedVersion = installedPackage.manifest.get().version;
38
- if (!(0, semver_1.satisfies)(installedVersion, versionRange)) {
38
+ if (!(0, semver_1.satisfies)(installedVersion, versionRange, { includePrerelease: true })) {
39
39
  returnData.versionNotSatisfiedDependencies.push(installedPackage);
40
40
  }
41
41
  else {
@@ -10,6 +10,7 @@ const util_1 = require("util");
10
10
  const trm_commons_1 = require("trm-commons");
11
11
  const node_html_parser_1 = require("node-html-parser");
12
12
  const crypto_1 = require("crypto");
13
+ const summarizeForLog_1 = require("./summarizeForLog");
13
14
  exports.AXIOS_SESSION_HEADER = 'X-TRM-SESSION-ID';
14
15
  exports.AXIOS_INTERNAL_HEADER = 'X-TRM-REQUEST-ID';
15
16
  function _getInternalId(response) {
@@ -28,37 +29,27 @@ function getAxiosInstance(config, sCtx, inj) {
28
29
  if (trm_commons_1.Logger.logger instanceof trm_commons_1.CliLogFileLogger) {
29
30
  request.headers.set(exports.AXIOS_SESSION_HEADER, trm_commons_1.Logger.logger.getSessionId());
30
31
  }
31
- var sRequest = `${request.method} ${request.baseURL}${request.url}`;
32
+ var sRequest = `${request.method} ${(0, summarizeForLog_1.summarizeUrlForLog)(request.baseURL, request.url)}`;
32
33
  if (request.params) {
33
- sRequest += `, parameters: ${(0, util_1.inspect)(request.params, { breakLength: Infinity, compact: true })}`;
34
+ sRequest += `, parameters: ${(0, util_1.inspect)((0, summarizeForLog_1.summarizeForLog)(request.params), { breakLength: Infinity, compact: true })}`;
34
35
  }
35
36
  if (request.headers.getAuthorization()) {
36
37
  sRequest += `, authorization: HIDDEN`;
37
38
  }
38
39
  if (request.data) {
39
- sRequest += `, data: ${(0, util_1.inspect)(request.data, { breakLength: Infinity, compact: true })}`;
40
+ sRequest += `, data: ${(0, util_1.inspect)((0, summarizeForLog_1.summarizeForLog)(request.data), { breakLength: Infinity, compact: true })}`;
40
41
  }
41
42
  trm_commons_1.Logger.log(`${sCtx} AXIOS request ${internalId}: ${sRequest}`, true);
42
43
  return request;
43
44
  }, (error) => {
44
- trm_commons_1.Logger.error(`${sCtx} AXIOS request error: ${error}`, true);
45
+ trm_commons_1.Logger.log(`${sCtx} AXIOS request error: ${error}`, true);
45
46
  return Promise.reject(error);
46
47
  });
47
48
  instance.interceptors.response.use((response) => {
48
49
  const internalId = _getInternalId(response);
49
50
  var sResponse = `status: ${response.status}, status text: ${response.statusText}`;
50
51
  if (response.data) {
51
- if (Buffer.isBuffer(response.data)) {
52
- try {
53
- sResponse += `, data: <file of ${response.data.byteLength} bytes>`;
54
- }
55
- catch (_a) {
56
- sResponse += `, data: <file of unknown bytes>`;
57
- }
58
- }
59
- else {
60
- sResponse += `, data: ${(0, util_1.inspect)(response.data, { breakLength: Infinity, compact: true })}`;
61
- }
52
+ sResponse += `, data: ${(0, util_1.inspect)((0, summarizeForLog_1.summarizeForLog)(response.data), { breakLength: Infinity, compact: true })}`;
62
53
  }
63
54
  trm_commons_1.Logger.log(`Ending ${sCtx} AXIOS request ${internalId}: ${sResponse}`, true);
64
55
  return response;
@@ -103,11 +94,11 @@ function getAxiosInstance(config, sCtx, inj) {
103
94
  oError.status = error.response.status;
104
95
  oError.response = error.response.data || {};
105
96
  oError.axiosError = error;
106
- trm_commons_1.Logger.error(`${sCtx} response id ${internalId} error: ${error} (${JSON.stringify(sError)})`, true);
97
+ trm_commons_1.Logger.log(`${sCtx} response id ${internalId} error: ${error} (${JSON.stringify(sError)})`, true);
107
98
  return Promise.reject(oError);
108
99
  }
109
100
  else {
110
- trm_commons_1.Logger.error(`${sCtx} response error: ${error}`, true);
101
+ trm_commons_1.Logger.log(`${sCtx} response error: ${error}`, true);
111
102
  return Promise.reject(error);
112
103
  }
113
104
  });
@@ -20,6 +20,7 @@ function getNodePackage(globalPath, packageName) {
20
20
  globalPath = (0, trm_commons_1.getGlobalNodeModules)();
21
21
  }
22
22
  if (__dirname.includes(globalPath)) {
23
+ //prod
23
24
  const parts = __dirname.split(node_path_1.sep);
24
25
  const index = parts.lastIndexOf("node_modules");
25
26
  if (packageName) {
@@ -27,6 +28,7 @@ function getNodePackage(globalPath, packageName) {
27
28
  return JSON.parse((0, node_fs_1.readFileSync)((0, node_path_1.join)(parts.slice(0, index + 1).join(node_path_1.sep), packageName, 'package.json'), 'utf8'));
28
29
  }
29
30
  catch (_b) { }
31
+ // try up one folder
30
32
  try {
31
33
  const data = JSON.parse((0, node_fs_1.readFileSync)((0, node_path_1.join)((0, node_path_1.resolve)(parts.slice(0, index + 1).join(node_path_1.sep), '..'), 'package.json'), 'utf8'));
32
34
  if (data.name === packageName) {
@@ -43,9 +45,11 @@ function getNodePackage(globalPath, packageName) {
43
45
  }
44
46
  }
45
47
  else {
48
+ //dev
46
49
  if (!packageName) {
47
50
  packageName = 'trm-core';
48
51
  }
52
+ //try current directory
49
53
  try {
50
54
  const data = JSON.parse((0, node_fs_1.readFileSync)((0, node_path_1.join)(process.cwd(), 'package.json'), 'utf8'));
51
55
  if (data.name === packageName) {
@@ -53,14 +57,17 @@ function getNodePackage(globalPath, packageName) {
53
57
  }
54
58
  }
55
59
  catch (_e) { }
60
+ //try node_modules
56
61
  try {
57
62
  return JSON.parse((0, node_fs_1.readFileSync)((0, node_path_1.join)(process.cwd(), 'node_modules', packageName, 'package.json'), 'utf8'));
58
63
  }
59
64
  catch (_f) { }
65
+ //up one directory
60
66
  try {
61
67
  return JSON.parse((0, node_fs_1.readFileSync)((0, node_path_1.join)((0, node_path_1.resolve)(process.cwd(), ".."), packageName, 'package.json'), 'utf8'));
62
68
  }
63
69
  catch (_g) { }
70
+ //up one directory, in node_modules
64
71
  try {
65
72
  return JSON.parse((0, node_fs_1.readFileSync)((0, node_path_1.join)((0, node_path_1.resolve)(process.cwd(), ".."), 'node_modules', packageName, 'package.json'), 'utf8'));
66
73
  }
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getPackageHierarchy = getPackageHierarchy;
4
4
  function getPackageHierarchy(input, ignoreMultiples) {
5
5
  const map = new Map();
6
+ // Build a mapping of devclass to its children
6
7
  input.forEach(item => {
7
8
  map.set(item.devclass, {
8
9
  devclass: item.devclass,
@@ -10,6 +11,7 @@ function getPackageHierarchy(input, ignoreMultiples) {
10
11
  });
11
12
  });
12
13
  const roots = [];
14
+ // Populate the 'sub' arrays based on parentcl
13
15
  input.forEach(item => {
14
16
  const child = map.get(item.devclass);
15
17
  const parent = map.get(item.parentcl);
@@ -0,0 +1,9 @@
1
+ import { DEVCLASS } from "../client";
2
+ /**
3
+ * Returns the namespace of a set of SAP packages: the root package namespace, or the only
4
+ * reserved (/NAMESPACE/) namespace used by a subpackage when the root uses Z or Y.
5
+ *
6
+ * Only one reserved namespace is supported: a TRM package carries a single namespace and repair
7
+ * license. Z and Y need no namespace object and can be mixed with it.
8
+ */
9
+ export declare function getPackagesNamespace(rootDevclass: DEVCLASS, devclasses: DEVCLASS[]): string;