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.
- package/README.md +20 -0
- package/changelog.txt +11 -0
- package/dist/actions/cg3y/download.js +34 -4
- package/dist/actions/cg3y/index.d.ts +23 -0
- package/dist/actions/cg3y/index.js +13 -10
- package/dist/actions/cg3z/index.d.ts +67 -3
- package/dist/actions/cg3z/index.js +25 -14
- package/dist/actions/cg3z/upload.d.ts +20 -0
- package/dist/actions/cg3z/upload.js +165 -36
- package/dist/actions/checkEngines/analyze.d.ts +11 -0
- package/dist/actions/checkEngines/analyze.js +294 -0
- package/dist/actions/checkEngines/index.d.ts +87 -0
- package/dist/actions/checkEngines/index.js +38 -0
- package/dist/actions/checkEngines/init.d.ts +11 -0
- package/dist/actions/checkEngines/init.js +45 -0
- package/dist/actions/checkPackageDependencies/analyze.d.ts +10 -0
- package/dist/actions/checkPackageDependencies/analyze.js +37 -39
- package/dist/actions/checkPackageDependencies/index.d.ts +56 -0
- package/dist/actions/checkPackageDependencies/index.js +13 -10
- package/dist/actions/checkPackageDependencies/init.d.ts +8 -0
- package/dist/actions/checkPackageDependencies/init.js +24 -2
- package/dist/actions/checkSapEntries/analyze.d.ts +12 -0
- package/dist/actions/checkSapEntries/analyze.js +63 -47
- package/dist/actions/checkSapEntries/index.d.ts +35 -0
- package/dist/actions/checkSapEntries/index.js +12 -10
- package/dist/actions/checkSapEntries/init.d.ts +8 -0
- package/dist/actions/checkSapEntries/init.js +10 -2
- package/dist/actions/commons/IActionContext.d.ts +10 -0
- package/dist/actions/commons/checkServerAuth.d.ts +7 -0
- package/dist/actions/commons/checkServerAuth.js +10 -5
- package/dist/actions/commons/index.d.ts +1 -1
- package/dist/actions/commons/index.js +1 -1
- package/dist/actions/commons/prompts/index.d.ts +1 -0
- package/dist/actions/commons/prompts/index.js +1 -0
- package/dist/actions/commons/prompts/setLandscapeTarget.d.ts +14 -0
- package/dist/actions/commons/prompts/setLandscapeTarget.js +40 -0
- package/dist/actions/commons/prompts/setTransportTarget.d.ts +15 -0
- package/dist/actions/commons/prompts/setTransportTarget.js +20 -2
- package/dist/actions/commons/setSystemPackages.d.ts +7 -0
- package/dist/actions/commons/setSystemPackages.js +12 -2
- package/dist/actions/commons/utils/actionLocks.d.ts +32 -0
- package/dist/actions/commons/utils/actionLocks.js +135 -0
- package/dist/actions/commons/utils/dirtyEntries.d.ts +12 -0
- package/dist/actions/commons/utils/dirtyEntries.js +54 -0
- package/dist/actions/commons/utils/index.d.ts +10 -0
- package/dist/actions/commons/utils/index.js +26 -0
- package/dist/actions/commons/utils/installRegistry.d.ts +18 -0
- package/dist/actions/commons/utils/installRegistry.js +46 -0
- package/dist/actions/commons/utils/installedDependency.d.ts +15 -0
- package/dist/actions/commons/utils/installedDependency.js +30 -0
- package/dist/actions/commons/utils/owningInstallation.d.ts +6 -0
- package/dist/actions/commons/utils/owningInstallation.js +47 -0
- package/dist/actions/commons/utils/packageCleanup.d.ts +168 -0
- package/dist/actions/commons/utils/packageCleanup.js +1017 -0
- package/dist/actions/commons/utils/releaseDeletionTransport.d.ts +5 -0
- package/dist/actions/commons/utils/releaseDeletionTransport.js +67 -0
- package/dist/actions/commons/utils/restoreTransport.d.ts +6 -0
- package/dist/actions/commons/utils/restoreTransport.js +50 -0
- package/dist/actions/commons/utils/retainedWorkflow.d.ts +6 -0
- package/dist/actions/commons/utils/retainedWorkflow.js +49 -0
- package/dist/actions/commons/utils/withScopedPrefix.d.ts +5 -0
- package/dist/actions/commons/utils/withScopedPrefix.js +32 -0
- package/dist/actions/commons/workflowCallbacks.d.ts +21 -0
- package/dist/actions/commons/workflowCallbacks.js +157 -0
- package/dist/actions/index.d.ts +3 -0
- package/dist/actions/index.js +5 -0
- package/dist/actions/install/addNamespace.d.ts +18 -0
- package/dist/actions/install/addNamespace.js +121 -51
- package/dist/actions/install/checkDependants.d.ts +15 -0
- package/dist/actions/install/checkDependants.js +74 -0
- package/dist/actions/install/checkDependencies.d.ts +11 -0
- package/dist/actions/install/checkDependencies.js +32 -13
- package/dist/actions/install/checkDependencyCycles.d.ts +17 -0
- package/dist/actions/install/checkDependencyCycles.js +105 -0
- package/dist/actions/install/checkEngines.d.ts +11 -0
- package/dist/actions/install/checkEngines.js +100 -0
- package/dist/actions/install/checkInstallDevclass.d.ts +24 -0
- package/dist/actions/install/checkInstallDevclass.js +110 -0
- package/dist/actions/install/checkSapEntries.d.ts +9 -0
- package/dist/actions/install/checkSapEntries.js +20 -12
- package/dist/actions/install/checkTransports.d.ts +34 -0
- package/dist/actions/install/checkTransports.js +329 -170
- package/dist/actions/install/cleanupCheckpoint.d.ts +11 -0
- package/dist/actions/install/cleanupCheckpoint.js +62 -0
- package/dist/actions/install/defaultTransportLayer.d.ts +5 -0
- package/dist/actions/install/defaultTransportLayer.js +36 -0
- package/dist/actions/install/executePostActivities.d.ts +6 -0
- package/dist/actions/install/executePostActivities.js +28 -38
- package/dist/actions/install/generateDevclass.d.ts +10 -0
- package/dist/actions/install/generateDevclass.js +66 -20
- package/dist/actions/install/generateLandscapeTransport.d.ts +23 -0
- package/dist/actions/install/generateLandscapeTransport.js +136 -0
- package/dist/actions/install/generateUpdateTransport.d.ts +20 -0
- package/dist/actions/install/generateUpdateTransport.js +122 -0
- package/dist/actions/install/importBatch.d.ts +22 -0
- package/dist/actions/install/importBatch.js +0 -0
- package/dist/actions/install/index.d.ts +273 -44
- package/dist/actions/install/index.js +139 -59
- package/dist/actions/install/init.d.ts +14 -0
- package/dist/actions/install/init.js +215 -108
- package/dist/actions/install/installDependencies.d.ts +14 -0
- package/dist/actions/install/installDependencies.js +122 -45
- package/dist/actions/install/lockResources.d.ts +8 -0
- package/dist/actions/install/lockResources.js +100 -0
- package/dist/actions/install/prepareCust.d.ts +13 -0
- package/dist/actions/install/prepareCust.js +138 -0
- package/dist/actions/install/prepareDevc.d.ts +15 -0
- package/dist/actions/install/prepareDevc.js +113 -0
- package/dist/actions/install/prepareLang.d.ts +13 -0
- package/dist/actions/install/prepareLang.js +110 -0
- package/dist/actions/install/prepareTadir.d.ts +13 -0
- package/dist/actions/install/prepareTadir.js +95 -0
- package/dist/actions/install/releaseLandscapeTransport.d.ts +11 -0
- package/dist/actions/install/releaseLandscapeTransport.js +79 -0
- package/dist/actions/install/setInstallDevclass.d.ts +10 -0
- package/dist/actions/install/setInstallDevclass.js +140 -54
- package/dist/actions/install/updatePackageData.d.ts +9 -0
- package/dist/actions/install/updatePackageData.js +117 -13
- package/dist/actions/installDependency/checkInstalledRelease.d.ts +13 -0
- package/dist/actions/installDependency/checkInstalledRelease.js +50 -0
- package/dist/actions/installDependency/confirmDowngrade.d.ts +11 -0
- package/dist/actions/installDependency/confirmDowngrade.js +53 -0
- package/dist/actions/installDependency/findInstallRelease.d.ts +24 -0
- package/dist/actions/installDependency/findInstallRelease.js +42 -19
- package/dist/actions/installDependency/index.d.ts +64 -3
- package/dist/actions/installDependency/index.js +30 -13
- package/dist/actions/installDependency/init.d.ts +14 -0
- package/dist/actions/installDependency/init.js +24 -3
- package/dist/actions/installDependency/installRelease.d.ts +6 -0
- package/dist/actions/installDependency/installRelease.js +22 -12
- package/dist/actions/publish/enginesUi.d.ts +53 -0
- package/dist/actions/publish/enginesUi.js +289 -0
- package/dist/actions/publish/findDependencies.d.ts +19 -0
- package/dist/actions/publish/findDependencies.js +72 -37
- package/dist/actions/publish/generateCustTransport.d.ts +6 -0
- package/dist/actions/publish/generateCustTransport.js +42 -19
- package/dist/actions/publish/generateDevcTransport.d.ts +6 -0
- package/dist/actions/publish/generateDevcTransport.js +16 -18
- package/dist/actions/publish/generateLangTransport.d.ts +6 -0
- package/dist/actions/publish/generateLangTransport.js +20 -23
- package/dist/actions/publish/generateTadirTransport.d.ts +6 -0
- package/dist/actions/publish/generateTadirTransport.js +18 -17
- package/dist/actions/publish/getSystemEngines.d.ts +27 -0
- package/dist/actions/publish/getSystemEngines.js +112 -0
- package/dist/actions/publish/index.d.ts +162 -37
- package/dist/actions/publish/index.js +51 -34
- package/dist/actions/publish/init.d.ts +28 -0
- package/dist/actions/publish/init.js +304 -120
- package/dist/actions/publish/lockResources.d.ts +4 -0
- package/dist/actions/{install/refreshTmsTxt.js → publish/lockResources.js} +14 -17
- package/dist/actions/publish/publishToRegistry.d.ts +8 -0
- package/dist/actions/publish/publishToRegistry.js +18 -8
- package/dist/actions/publish/releaseTransports.d.ts +6 -0
- package/dist/actions/publish/releaseTransports.js +48 -20
- package/dist/actions/publish/setCustomizingTransports.d.ts +6 -0
- package/dist/actions/publish/setCustomizingTransports.js +227 -101
- package/dist/actions/publish/setManifestValues.d.ts +22 -0
- package/dist/actions/publish/setManifestValues.js +455 -119
- package/dist/actions/publish/setOptionalPublishData.d.ts +11 -0
- package/dist/actions/publish/setOptionalPublishData.js +133 -0
- package/dist/actions/publish/updatePackageData.d.ts +8 -0
- package/dist/actions/publish/updatePackageData.js +20 -7
- package/dist/actions/stopWarning.d.ts +5 -0
- package/dist/actions/stopWarning.js +5 -0
- package/dist/actions/uninstall/checkDependants.d.ts +7 -0
- package/dist/actions/uninstall/checkDependants.js +55 -0
- package/dist/actions/uninstall/forwardDeletionTransport.d.ts +10 -0
- package/dist/actions/uninstall/forwardDeletionTransport.js +51 -0
- package/dist/actions/uninstall/generateDeletionTransport.d.ts +10 -0
- package/dist/actions/uninstall/generateDeletionTransport.js +45 -0
- package/dist/actions/uninstall/index.d.ts +153 -0
- package/dist/actions/uninstall/index.js +141 -0
- package/dist/actions/uninstall/init.d.ts +17 -0
- package/dist/actions/uninstall/init.js +146 -0
- package/dist/actions/uninstall/lockResources.d.ts +4 -0
- package/dist/actions/{publish/setTransportTarget.js → uninstall/lockResources.js} +16 -7
- package/dist/actions/uninstall/removePackageData.d.ts +9 -0
- package/dist/actions/uninstall/removePackageData.js +64 -0
- package/dist/actions/uninstall/uninstallNestedPackages.d.ts +26 -0
- package/dist/actions/uninstall/uninstallNestedPackages.js +174 -0
- package/dist/client/ClientError.d.ts +3 -1
- package/dist/client/ClientError.js +2 -1
- package/dist/client/RESTClient.d.ts +18 -5
- package/dist/client/RESTClient.js +194 -52
- package/dist/client/RESTClientError.d.ts +1 -2
- package/dist/client/RESTClientError.js +3 -2
- package/dist/client/RFCClient.d.ts +28 -7
- package/dist/client/RFCClient.js +325 -77
- package/dist/client/RFCClientError.d.ts +1 -1
- package/dist/client/RFCClientError.js +2 -2
- package/dist/client/TransportEntries.d.ts +8 -0
- package/dist/client/TransportEntries.js +2 -0
- package/dist/client/components/BORM_ID.d.ts +1 -0
- package/dist/client/components/BORM_ID.js +2 -0
- package/dist/client/components/BORM_NAME.d.ts +1 -0
- package/dist/client/components/BORM_NAME.js +2 -0
- package/dist/client/components/BORM_NAMEL.d.ts +1 -0
- package/dist/client/components/BORM_NAMEL.js +2 -0
- package/dist/client/components/BORM_VEND.d.ts +1 -0
- package/dist/client/components/BORM_VEND.js +2 -0
- package/dist/client/components/BORM_VERS.d.ts +1 -0
- package/dist/client/components/BORM_VERS.js +2 -0
- package/dist/client/components/CWBNTNUMM.d.ts +1 -0
- package/dist/client/components/CWBNTNUMM.js +2 -0
- package/dist/client/components/CWBNTSTAT.d.ts +1 -0
- package/dist/client/components/CWBNTSTAT.js +2 -0
- package/dist/client/components/CWBNTVERS.d.ts +1 -0
- package/dist/client/components/CWBNTVERS.js +2 -0
- package/dist/client/components/CWBPRSTAT.d.ts +1 -0
- package/dist/client/components/CWBPRSTAT.js +2 -0
- package/dist/client/components/INSTSTATE.d.ts +1 -0
- package/dist/client/components/INSTSTATE.js +2 -0
- package/dist/client/components/RELC_TYPE.d.ts +1 -0
- package/dist/client/components/RELC_TYPE.js +2 -0
- package/dist/client/components/SAPPATCHLV.d.ts +1 -0
- package/dist/client/components/SAPPATCHLV.js +2 -0
- package/dist/client/components/SAPRELEASE.d.ts +1 -0
- package/dist/client/components/SAPRELEASE.js +2 -0
- package/dist/client/components/SYSYSID.d.ts +1 -0
- package/dist/client/components/SYSYSID.js +2 -0
- package/dist/client/components/ZTRM_INSTALLTR_TYPE.d.ts +1 -0
- package/dist/client/components/ZTRM_INSTALLTR_TYPE.js +2 -0
- package/dist/client/components/index.d.ts +15 -0
- package/dist/client/components/index.js +15 -0
- package/dist/client/index.d.ts +1 -0
- package/dist/client/index.js +1 -0
- package/dist/client/messageLog.d.ts +7 -0
- package/dist/client/messageLog.js +21 -0
- package/dist/client/struct/ActionLockKey.d.ts +6 -0
- package/dist/client/struct/ActionLockKey.js +2 -0
- package/dist/client/struct/CVERS.d.ts +7 -0
- package/dist/client/struct/CVERS.js +2 -0
- package/dist/client/struct/CWBNTCUST.d.ts +6 -0
- package/dist/client/struct/CWBNTCUST.js +2 -0
- package/dist/client/struct/CWBNTHEAD.d.ts +5 -0
- package/dist/client/struct/CWBNTHEAD.js +2 -0
- package/dist/client/struct/E070.d.ts +2 -1
- package/dist/client/struct/E071K.d.ts +9 -0
- package/dist/client/struct/E071K.js +2 -0
- package/dist/client/struct/PRDVERS.d.ts +9 -0
- package/dist/client/struct/PRDVERS.js +2 -0
- package/dist/client/struct/SCOMPKDTLN.d.ts +21 -0
- package/dist/client/struct/STMSCALERT.d.ts +21 -0
- package/dist/client/struct/STMSCALERT.js +2 -0
- package/dist/client/struct/STMS_TP_IMPORT.d.ts +14 -0
- package/dist/client/struct/STMS_TP_IMPORT.js +2 -0
- package/dist/client/struct/STMS_TR_REQUEST.d.ts +8 -0
- package/dist/client/struct/STMS_TR_REQUEST.js +2 -0
- package/dist/client/struct/TDEVC.d.ts +38 -0
- package/dist/client/struct/TPLOGPTR.d.ts +13 -0
- package/dist/client/struct/TPLOGPTR.js +2 -0
- package/dist/client/struct/TPSTDOUT.d.ts +3 -0
- package/dist/client/struct/TPSTDOUT.js +2 -0
- package/dist/client/struct/ZTRM_INSTALLTR.d.ts +8 -0
- package/dist/client/struct/ZTRM_INSTALLTR.js +2 -0
- package/dist/client/struct/index.d.ts +12 -0
- package/dist/client/struct/index.js +12 -0
- package/dist/commons/checkCoreTrmDependencies.js +1 -1
- package/dist/commons/getAxiosInstance.js +8 -17
- package/dist/commons/getNodePackage.js +7 -0
- package/dist/commons/getPackageHierarchy.js +2 -0
- package/dist/commons/getPackagesNamespace.d.ts +9 -0
- package/dist/commons/getPackagesNamespace.js +19 -0
- package/dist/commons/index.d.ts +4 -0
- package/dist/commons/index.js +4 -0
- package/dist/commons/packageDataFromTdevc.d.ts +12 -0
- package/dist/commons/packageDataFromTdevc.js +25 -0
- package/dist/commons/resolveCoreVersion.d.ts +10 -0
- package/dist/commons/resolveCoreVersion.js +24 -0
- package/dist/commons/summarizeForLog.d.ts +22 -0
- package/dist/commons/summarizeForLog.js +120 -0
- package/dist/connection/OpenRFCConnect.d.ts +13 -0
- package/dist/connection/OpenRFCConnect.js +23 -0
- package/dist/connection/index.d.ts +1 -0
- package/dist/connection/index.js +17 -0
- package/dist/dependencies/PackageDependencies.d.ts +2 -0
- package/dist/dependencies/PackageDependencies.js +24 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/lockfile/Lockfile.d.ts +23 -1
- package/dist/lockfile/Lockfile.js +45 -9
- package/dist/manifest/Manifest.d.ts +9 -5
- package/dist/manifest/Manifest.js +82 -29
- package/dist/manifest/PostActivity.js +3 -3
- package/dist/manifest/TrmManifest.d.ts +0 -2
- package/dist/manifest/TrmManifestBase.d.ts +2 -0
- package/dist/manifest/TrmManifestEngines.d.ts +64 -0
- package/dist/manifest/TrmManifestEngines.js +2 -0
- package/dist/manifest/engines/index.d.ts +2 -0
- package/dist/manifest/engines/index.js +18 -0
- package/dist/manifest/engines/sapRange.d.ts +38 -0
- package/dist/manifest/engines/sapRange.js +135 -0
- package/dist/manifest/engines/validateEngines.d.ts +44 -0
- package/dist/manifest/engines/validateEngines.js +282 -0
- package/dist/manifest/index.d.ts +3 -0
- package/dist/manifest/index.js +3 -0
- package/dist/manifest/sapEntries.d.ts +14 -0
- package/dist/manifest/sapEntries.js +63 -0
- package/dist/protocol/Protocol.js +7 -0
- package/dist/registry/AbstractRegistry.d.ts +18 -3
- package/dist/registry/FileSystem.d.ts +22 -13
- package/dist/registry/FileSystem.js +69 -18
- package/dist/registry/RegistryDeletionTransportUnauthorizedError.d.ts +4 -0
- package/dist/registry/RegistryDeletionTransportUnauthorizedError.js +12 -0
- package/dist/registry/RegistryDeletionTransportUnavailableError.d.ts +9 -0
- package/dist/registry/RegistryDeletionTransportUnavailableError.js +17 -0
- package/dist/registry/RegistryPackageNotFoundError.d.ts +7 -0
- package/dist/registry/RegistryPackageNotFoundError.js +14 -0
- package/dist/registry/RegistryV2.d.ts +15 -5
- package/dist/registry/RegistryV2.js +308 -48
- package/dist/registry/index.d.ts +4 -0
- package/dist/registry/index.js +4 -0
- package/dist/registry/registryKey.d.ts +7 -0
- package/dist/registry/registryKey.js +21 -0
- package/dist/systemConnector/ActionLock.d.ts +1 -0
- package/dist/systemConnector/ActionLock.js +2 -0
- package/dist/systemConnector/ISystemConnector.d.ts +21 -4
- package/dist/systemConnector/ISystemConnectorBase.d.ts +16 -0
- package/dist/systemConnector/InstallTransport.d.ts +6 -0
- package/dist/systemConnector/InstallTransport.js +2 -0
- package/dist/systemConnector/OpenRFCSystemConnector.d.ts +12 -0
- package/dist/systemConnector/OpenRFCSystemConnector.js +51 -0
- package/dist/systemConnector/RESTSystemConnector.d.ts +22 -7
- package/dist/systemConnector/RESTSystemConnector.js +95 -23
- package/dist/systemConnector/RFCConnection.d.ts +0 -1
- package/dist/systemConnector/RFCSystemConnector.d.ts +25 -7
- package/dist/systemConnector/RFCSystemConnector.js +75 -16
- package/dist/systemConnector/SystemConnector.d.ts +38 -6
- package/dist/systemConnector/SystemConnector.js +138 -12
- package/dist/systemConnector/SystemConnectorBase.d.ts +24 -1
- package/dist/systemConnector/SystemConnectorBase.js +174 -22
- package/dist/systemConnector/index.d.ts +3 -0
- package/dist/systemConnector/index.js +3 -0
- package/dist/transport/E071KOwner.d.ts +10 -0
- package/dist/transport/E071KOwner.js +15 -0
- package/dist/transport/R3transLogParser.d.ts +19 -0
- package/dist/transport/R3transLogParser.js +148 -0
- package/dist/transport/Transport.d.ts +36 -3
- package/dist/transport/Transport.js +304 -138
- package/dist/transport/index.d.ts +2 -0
- package/dist/transport/index.js +2 -0
- package/dist/trmPackage/TransportBinary.d.ts +4 -1
- package/dist/trmPackage/TrmArtifact.d.ts +12 -8
- package/dist/trmPackage/TrmArtifact.js +93 -74
- package/dist/trmPackage/TrmPackage.d.ts +20 -6
- package/dist/trmPackage/TrmPackage.js +27 -1
- package/dist/validators/validateDevclass.js +4 -0
- package/package.json +15 -7
- package/dist/actions/commons/trmServerPa.d.ts +0 -3
- package/dist/actions/commons/trmServerPa.js +0 -40
- package/dist/actions/install/checkAlreadyInstalled.d.ts +0 -3
- package/dist/actions/install/checkAlreadyInstalled.js +0 -71
- package/dist/actions/install/checkObjectTypes.d.ts +0 -3
- package/dist/actions/install/checkObjectTypes.js +0 -50
- package/dist/actions/install/checkObjectsLock.d.ts +0 -3
- package/dist/actions/install/checkObjectsLock.js +0 -52
- package/dist/actions/install/generateInstallTransports.d.ts +0 -3
- package/dist/actions/install/generateInstallTransports.js +0 -128
- package/dist/actions/install/importCustTransport.d.ts +0 -3
- package/dist/actions/install/importCustTransport.js +0 -73
- package/dist/actions/install/importDevcTransport.d.ts +0 -3
- package/dist/actions/install/importDevcTransport.js +0 -93
- package/dist/actions/install/importLangTransport.d.ts +0 -3
- package/dist/actions/install/importLangTransport.js +0 -72
- package/dist/actions/install/importTadirTransport.d.ts +0 -3
- package/dist/actions/install/importTadirTransport.js +0 -83
- package/dist/actions/install/readDevc.d.ts +0 -3
- package/dist/actions/install/readDevc.js +0 -33
- package/dist/actions/install/readTadir.d.ts +0 -3
- package/dist/actions/install/readTadir.js +0 -101
- package/dist/actions/install/refreshTmsTxt.d.ts +0 -3
- package/dist/actions/install/releaseInstallTransport.d.ts +0 -3
- package/dist/actions/install/releaseInstallTransport.js +0 -80
- package/dist/actions/publish/checkAllObjectsReleased.d.ts +0 -3
- package/dist/actions/publish/checkAllObjectsReleased.js +0 -46
- package/dist/actions/publish/getSourceCode.d.ts +0 -3
- package/dist/actions/publish/getSourceCode.js +0 -49
- package/dist/actions/publish/setChangelog.d.ts +0 -3
- package/dist/actions/publish/setChangelog.js +0 -69
- package/dist/actions/publish/setDevclass.d.ts +0 -3
- package/dist/actions/publish/setDevclass.js +0 -74
- package/dist/actions/publish/setReadme.d.ts +0 -3
- package/dist/actions/publish/setReadme.js +0 -52
- package/dist/actions/publish/setTransportTarget.d.ts +0 -3
|
@@ -1,15 +1,38 @@
|
|
|
1
1
|
import { TrmPackage } from "../../trmPackage";
|
|
2
2
|
import { IActionContext } from "../commons";
|
|
3
3
|
import { TrmManifest, TrmManifestDependency } from "../../manifest";
|
|
4
|
+
/** Input used to compare a manifest's dependencies with packages installed in SAP. */
|
|
4
5
|
export interface CheckPackageDependenciesActionInput {
|
|
6
|
+
/**
|
|
7
|
+
* Optional context data.
|
|
8
|
+
*/
|
|
5
9
|
contextData?: {
|
|
10
|
+
/**
|
|
11
|
+
* Snapshot of packages installed on the target system. When omitted, the action
|
|
12
|
+
* queries the connected system.
|
|
13
|
+
*/
|
|
6
14
|
systemPackages?: TrmPackage[];
|
|
7
15
|
};
|
|
16
|
+
/**
|
|
17
|
+
* Data related to the package being checked.
|
|
18
|
+
*/
|
|
8
19
|
packageData: {
|
|
20
|
+
/**
|
|
21
|
+
* Manifest whose `dependencies` collection will be checked.
|
|
22
|
+
*/
|
|
9
23
|
manifest: TrmManifest;
|
|
10
24
|
};
|
|
25
|
+
/**
|
|
26
|
+
* Print options.
|
|
27
|
+
*/
|
|
11
28
|
printOptions?: {
|
|
29
|
+
/**
|
|
30
|
+
* Print the per-dependency status table. Defaults to `false`.
|
|
31
|
+
*/
|
|
12
32
|
dependencyStatus?: boolean;
|
|
33
|
+
/**
|
|
34
|
+
* Print informational summary messages. Defaults to `false`.
|
|
35
|
+
*/
|
|
13
36
|
information?: boolean;
|
|
14
37
|
};
|
|
15
38
|
}
|
|
@@ -19,17 +42,50 @@ type WorkflowRuntime = {
|
|
|
19
42
|
badVersion: TrmManifestDependency[];
|
|
20
43
|
};
|
|
21
44
|
};
|
|
45
|
+
/**
|
|
46
|
+
* Outcome of a single dependency check.
|
|
47
|
+
*
|
|
48
|
+
* - `ok`: installed and its version satisfies the range.
|
|
49
|
+
* - `versionMismatch`: installed, but its version does not satisfy the range.
|
|
50
|
+
* - `notFound`: not installed on the system.
|
|
51
|
+
* - `manifestUnreadable`: installed, but its manifest or version could not be read.
|
|
52
|
+
*/
|
|
53
|
+
export type DependencyCheckStatus = 'ok' | 'versionMismatch' | 'notFound' | 'manifestUnreadable';
|
|
54
|
+
/** Dependency compatibility report returned by {@link checkPackageDependencies}. */
|
|
22
55
|
export type CheckPackageDependenciesActionOutput = {
|
|
56
|
+
/** Dependencies copied from the supplied manifest, or an empty array. */
|
|
23
57
|
dependencies: TrmManifestDependency[];
|
|
58
|
+
/** One result per dependency; `match` is true when an installed version satisfies its range. */
|
|
24
59
|
dependencyStatus: {
|
|
60
|
+
/** Manifest dependency that was evaluated. */
|
|
25
61
|
dependency: TrmManifestDependency;
|
|
62
|
+
/** Whether a matching installed package was found at a compatible version. */
|
|
26
63
|
match: boolean;
|
|
64
|
+
/** Detailed outcome; distinguishes a missing package from one whose manifest is unreadable. */
|
|
65
|
+
status: DependencyCheckStatus;
|
|
66
|
+
/** Version on the system; set for `ok` and `versionMismatch`. */
|
|
67
|
+
installedVersion?: string;
|
|
27
68
|
}[];
|
|
28
69
|
};
|
|
70
|
+
/** Internal state shared by the dependency-check workflow steps. */
|
|
29
71
|
export interface CheckPackageDependenciesWorkflowContext extends IActionContext {
|
|
72
|
+
/** Original action input. */
|
|
30
73
|
rawInput: CheckPackageDependenciesActionInput;
|
|
74
|
+
/** Intermediate classification of matching and non-matching dependencies. */
|
|
31
75
|
runtime?: WorkflowRuntime;
|
|
76
|
+
/** Report assembled by the workflow. */
|
|
32
77
|
output?: CheckPackageDependenciesActionOutput;
|
|
33
78
|
}
|
|
79
|
+
/**
|
|
80
|
+
* Checks whether installed TRM packages satisfy every dependency in a manifest.
|
|
81
|
+
*
|
|
82
|
+
* Dependency identity includes its registry. Version compatibility follows semantic-version
|
|
83
|
+
* range rules. This action reports mismatches in its output rather than throwing for them.
|
|
84
|
+
*
|
|
85
|
+
* @param inputData Manifest, optional installed-package snapshot, and print settings.
|
|
86
|
+
* @returns The manifest dependencies and their installed-version match status.
|
|
87
|
+
* @throws When installed packages cannot be read, a dependency is declared twice, or a dependency
|
|
88
|
+
* version range is not a valid semantic-version range.
|
|
89
|
+
*/
|
|
34
90
|
export declare function checkPackageDependencies(inputData: CheckPackageDependenciesActionInput): Promise<CheckPackageDependenciesActionOutput>;
|
|
35
91
|
export {};
|
|
@@ -8,19 +8,24 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
-
};
|
|
14
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
12
|
exports.checkPackageDependencies = checkPackageDependencies;
|
|
16
|
-
const sammarksworkflow_1 = __importDefault(require("@simonegaffurini/sammarksworkflow"));
|
|
17
|
-
const util_1 = require("util");
|
|
18
|
-
const trm_commons_1 = require("trm-commons");
|
|
19
13
|
const commons_1 = require("../commons");
|
|
20
14
|
const init_1 = require("./init");
|
|
21
15
|
const analyze_1 = require("./analyze");
|
|
22
16
|
;
|
|
23
17
|
const WORKFLOW_NAME = 'check-dependencies';
|
|
18
|
+
/**
|
|
19
|
+
* Checks whether installed TRM packages satisfy every dependency in a manifest.
|
|
20
|
+
*
|
|
21
|
+
* Dependency identity includes its registry. Version compatibility follows semantic-version
|
|
22
|
+
* range rules. This action reports mismatches in its output rather than throwing for them.
|
|
23
|
+
*
|
|
24
|
+
* @param inputData Manifest, optional installed-package snapshot, and print settings.
|
|
25
|
+
* @returns The manifest dependencies and their installed-version match status.
|
|
26
|
+
* @throws When installed packages cannot be read, a dependency is declared twice, or a dependency
|
|
27
|
+
* version range is not a valid semantic-version range.
|
|
28
|
+
*/
|
|
24
29
|
function checkPackageDependencies(inputData) {
|
|
25
30
|
return __awaiter(this, void 0, void 0, function* () {
|
|
26
31
|
const workflow = [
|
|
@@ -28,11 +33,9 @@ function checkPackageDependencies(inputData) {
|
|
|
28
33
|
commons_1.setSystemPackages,
|
|
29
34
|
analyze_1.analyze
|
|
30
35
|
];
|
|
31
|
-
|
|
32
|
-
const result = yield (0, sammarksworkflow_1.default)(WORKFLOW_NAME, workflow, {
|
|
36
|
+
const result = yield (0, commons_1.executeWorkflow)(WORKFLOW_NAME, workflow, {
|
|
33
37
|
rawInput: inputData
|
|
34
|
-
});
|
|
35
|
-
trm_commons_1.Logger.log(`Workflow ${WORKFLOW_NAME} result: ${(0, util_1.inspect)(result, { breakLength: Infinity, compact: true })}`, true);
|
|
38
|
+
}, commons_1.workflowCallbacks);
|
|
36
39
|
return result.output;
|
|
37
40
|
});
|
|
38
41
|
}
|
|
@@ -1,3 +1,11 @@
|
|
|
1
1
|
import { Step } from "@simonegaffurini/sammarksworkflow";
|
|
2
2
|
import { CheckPackageDependenciesWorkflowContext } from ".";
|
|
3
|
+
/**
|
|
4
|
+
* Workflow step that initializes dependency-check output and normalizes optional input.
|
|
5
|
+
*
|
|
6
|
+
* 1- set dependencies (read manifest)
|
|
7
|
+
*
|
|
8
|
+
* 2- fill missing input data
|
|
9
|
+
*
|
|
10
|
+
*/
|
|
3
11
|
export declare const init: Step<CheckPackageDependenciesWorkflowContext>;
|
|
@@ -10,11 +10,19 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.init = void 0;
|
|
13
|
-
const
|
|
13
|
+
const registry_1 = require("../../registry");
|
|
14
|
+
const manifest_1 = require("../../manifest");
|
|
15
|
+
/**
|
|
16
|
+
* Workflow step that initializes dependency-check output and normalizes optional input.
|
|
17
|
+
*
|
|
18
|
+
* 1- set dependencies (read manifest)
|
|
19
|
+
*
|
|
20
|
+
* 2- fill missing input data
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
14
23
|
exports.init = {
|
|
15
24
|
name: 'init',
|
|
16
25
|
run: (context) => __awaiter(void 0, void 0, void 0, function* () {
|
|
17
|
-
trm_commons_1.Logger.log('Init step', true);
|
|
18
26
|
context.output = {
|
|
19
27
|
dependencies: [],
|
|
20
28
|
dependencyStatus: []
|
|
@@ -25,7 +33,21 @@ exports.init = {
|
|
|
25
33
|
badVersion: []
|
|
26
34
|
}
|
|
27
35
|
};
|
|
36
|
+
//1- set dependencies
|
|
28
37
|
context.output.dependencies = context.rawInput.packageData.manifest.dependencies || [];
|
|
38
|
+
const dependencyKeys = new Set();
|
|
39
|
+
for (const dependency of context.output.dependencies) {
|
|
40
|
+
const registry = dependency.registry || registry_1.PUBLIC_RESERVED_KEYWORD;
|
|
41
|
+
const key = `${dependency.name}\u0000${registry}`;
|
|
42
|
+
if (dependencyKeys.has(key)) {
|
|
43
|
+
throw new Error(`Duplicate dependency "${dependency.name}" for registry "${registry}".`);
|
|
44
|
+
}
|
|
45
|
+
dependencyKeys.add(key);
|
|
46
|
+
if (!manifest_1.Manifest.isValidDependencyRange(dependency.version)) {
|
|
47
|
+
throw new Error(`Invalid version range "${dependency.version}" for dependency "${dependency.name}".`);
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
//2- fill missing input data
|
|
29
51
|
if (!context.rawInput.printOptions) {
|
|
30
52
|
context.rawInput.printOptions = {};
|
|
31
53
|
}
|
|
@@ -1,3 +1,15 @@
|
|
|
1
1
|
import { Step } from "@simonegaffurini/sammarksworkflow";
|
|
2
2
|
import { CheckSapEntriesWorkflowContext } from ".";
|
|
3
|
+
/**
|
|
4
|
+
* Workflow step that queries required SAP tables and builds a per-entry status report.
|
|
5
|
+
*
|
|
6
|
+
* 1- build required tables fields
|
|
7
|
+
*
|
|
8
|
+
* 2- check entries
|
|
9
|
+
*
|
|
10
|
+
* 3- print tables
|
|
11
|
+
*
|
|
12
|
+
* 4- build output data
|
|
13
|
+
*
|
|
14
|
+
*/
|
|
3
15
|
export declare const analyze: Step<CheckSapEntriesWorkflowContext>;
|
|
@@ -12,6 +12,18 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.analyze = void 0;
|
|
13
13
|
const trm_commons_1 = require("trm-commons");
|
|
14
14
|
const systemConnector_1 = require("../../systemConnector");
|
|
15
|
+
/**
|
|
16
|
+
* Workflow step that queries required SAP tables and builds a per-entry status report.
|
|
17
|
+
*
|
|
18
|
+
* 1- build required tables fields
|
|
19
|
+
*
|
|
20
|
+
* 2- check entries
|
|
21
|
+
*
|
|
22
|
+
* 3- print tables
|
|
23
|
+
*
|
|
24
|
+
* 4- build output data
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
15
27
|
exports.analyze = {
|
|
16
28
|
name: 'analyze',
|
|
17
29
|
filter: (context) => __awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -24,8 +36,8 @@ exports.analyze = {
|
|
|
24
36
|
}
|
|
25
37
|
}),
|
|
26
38
|
run: (context) => __awaiter(void 0, void 0, void 0, function* () {
|
|
27
|
-
trm_commons_1.Logger.log('Analyze step', true);
|
|
28
39
|
var logTable = [];
|
|
40
|
+
//1- build required tables fields
|
|
29
41
|
var entriesCount = 0;
|
|
30
42
|
var tableFields = [];
|
|
31
43
|
Object.keys(context.output.sapEntries).forEach(tableName => {
|
|
@@ -47,21 +59,34 @@ exports.analyze = {
|
|
|
47
59
|
if (entriesCount === 0) {
|
|
48
60
|
return;
|
|
49
61
|
}
|
|
62
|
+
//2- check entries
|
|
50
63
|
for (const table of Object.keys(context.output.sapEntries)) {
|
|
51
|
-
var tableExists;
|
|
64
|
+
var tableExists = false;
|
|
52
65
|
try {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
66
|
+
for (const object of ['TABL', 'VIEW']) {
|
|
67
|
+
tableExists = yield systemConnector_1.SystemConnector.checkSapEntryExists('TADIR', {
|
|
68
|
+
pgmid: 'R3TR',
|
|
69
|
+
object,
|
|
70
|
+
obj_name: table.trim().toUpperCase()
|
|
71
|
+
});
|
|
72
|
+
if (tableExists) {
|
|
73
|
+
break;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
58
76
|
}
|
|
59
77
|
catch (e) {
|
|
60
|
-
|
|
78
|
+
const reason = e instanceof Error ? e.message : String(e);
|
|
79
|
+
throw new Error(`Unable to check whether required SAP table "${table}" exists: ${reason}`);
|
|
61
80
|
}
|
|
62
81
|
if (!tableExists) {
|
|
63
82
|
context.runtime.missingTables.push(table);
|
|
64
|
-
|
|
83
|
+
context.output.sapEntries[table].forEach(tableEntry => {
|
|
84
|
+
context.runtime.entriesStatus.bad.push({
|
|
85
|
+
table,
|
|
86
|
+
tableEntry
|
|
87
|
+
});
|
|
88
|
+
});
|
|
89
|
+
trm_commons_1.Logger.error(`Required ${context.output.sapEntries[table].length} entries in ${table}, but table or view was not found`, { debug: !context.rawInput.printOptions.information, important: true });
|
|
65
90
|
}
|
|
66
91
|
else {
|
|
67
92
|
var printTableHead = ['Table name'];
|
|
@@ -71,37 +96,28 @@ exports.analyze = {
|
|
|
71
96
|
printTableHead.push('Status');
|
|
72
97
|
for (const tableEntry of context.output.sapEntries[table]) {
|
|
73
98
|
tableData = [table];
|
|
74
|
-
var
|
|
99
|
+
var exists;
|
|
75
100
|
try {
|
|
76
|
-
|
|
77
|
-
if (exists) {
|
|
78
|
-
entryStatus = `OK`;
|
|
79
|
-
context.runtime.entriesStatus.good.push({
|
|
80
|
-
table,
|
|
81
|
-
tableEntry
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
else {
|
|
85
|
-
entryStatus = `NOT FOUND`;
|
|
86
|
-
context.runtime.entriesStatus.bad.push({
|
|
87
|
-
table,
|
|
88
|
-
tableEntry
|
|
89
|
-
});
|
|
90
|
-
}
|
|
101
|
+
exists = yield systemConnector_1.SystemConnector.checkSapEntryExists(table, tableEntry);
|
|
91
102
|
}
|
|
92
103
|
catch (e) {
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
104
|
+
const reason = e instanceof Error ? e.message : String(e);
|
|
105
|
+
throw new Error(`Unable to check required SAP entry ${JSON.stringify(tableEntry)} in table "${table}": ${reason}`);
|
|
106
|
+
}
|
|
107
|
+
if (exists) {
|
|
108
|
+
context.runtime.entriesStatus.good.push({
|
|
109
|
+
table,
|
|
110
|
+
tableEntry
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
else {
|
|
96
114
|
context.runtime.entriesStatus.bad.push({
|
|
97
115
|
table,
|
|
98
116
|
tableEntry
|
|
99
117
|
});
|
|
100
118
|
}
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
tableData.splice(pushIndex, 0, tableEntry[field]);
|
|
104
|
-
});
|
|
119
|
+
const entryStatus = exists ? `OK` : `NOT FOUND`;
|
|
120
|
+
tableData = tableData.concat(printTableHead.slice(1, -1).map(field => { var _a; return (_a = tableEntry[field]) !== null && _a !== void 0 ? _a : ''; }));
|
|
105
121
|
tableData.push(entryStatus);
|
|
106
122
|
printTableData.push(tableData);
|
|
107
123
|
}
|
|
@@ -111,26 +127,26 @@ exports.analyze = {
|
|
|
111
127
|
});
|
|
112
128
|
}
|
|
113
129
|
}
|
|
130
|
+
//3- print tables
|
|
114
131
|
logTable.forEach(t => {
|
|
115
132
|
trm_commons_1.Logger.table(t.header, t.data, !context.rawInput.printOptions.entriesStatus);
|
|
116
133
|
});
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
if (!context.output.sapEntriesStatus[o.table]) {
|
|
120
|
-
context.output.sapEntriesStatus[o.table] = [];
|
|
121
|
-
}
|
|
122
|
-
context.output.sapEntriesStatus[o.table].push({
|
|
123
|
-
status: true,
|
|
124
|
-
entry: o.tableEntry
|
|
125
|
-
});
|
|
126
|
-
});
|
|
134
|
+
//4- build output data (declaration order)
|
|
135
|
+
const badEntries = new Map();
|
|
127
136
|
context.runtime.entriesStatus.bad.forEach(o => {
|
|
128
|
-
if (!
|
|
129
|
-
|
|
137
|
+
if (!badEntries.has(o.table)) {
|
|
138
|
+
badEntries.set(o.table, new Set());
|
|
130
139
|
}
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
140
|
+
badEntries.get(o.table).add(o.tableEntry);
|
|
141
|
+
});
|
|
142
|
+
context.output.sapEntriesStatus = {};
|
|
143
|
+
Object.keys(context.output.sapEntries).forEach(table => {
|
|
144
|
+
context.output.sapEntriesStatus[table] = context.output.sapEntries[table].map(entry => {
|
|
145
|
+
var _a;
|
|
146
|
+
return ({
|
|
147
|
+
status: !((_a = badEntries.get(table)) === null || _a === void 0 ? void 0 : _a.has(entry)),
|
|
148
|
+
entry
|
|
149
|
+
});
|
|
134
150
|
});
|
|
135
151
|
});
|
|
136
152
|
})
|
|
@@ -1,10 +1,26 @@
|
|
|
1
1
|
import { TrmManifest } from "../../manifest";
|
|
2
|
+
/** Input used to verify a manifest's required SAP table entries. */
|
|
2
3
|
export interface CheckSapEntriesActionInput {
|
|
4
|
+
/**
|
|
5
|
+
* Data related to the package being checked.
|
|
6
|
+
*/
|
|
3
7
|
packageData: {
|
|
8
|
+
/**
|
|
9
|
+
* Manifest whose `sapEntries` map will be checked against the connected system.
|
|
10
|
+
*/
|
|
4
11
|
manifest: TrmManifest;
|
|
5
12
|
};
|
|
13
|
+
/**
|
|
14
|
+
* Print options.
|
|
15
|
+
*/
|
|
6
16
|
printOptions?: {
|
|
17
|
+
/**
|
|
18
|
+
* Print tables containing each required entry and its status. Defaults to `false`.
|
|
19
|
+
*/
|
|
7
20
|
entriesStatus?: boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Print informational summary messages. Defaults to `false`.
|
|
23
|
+
*/
|
|
8
24
|
information?: boolean;
|
|
9
25
|
};
|
|
10
26
|
}
|
|
@@ -21,20 +37,39 @@ type WorkflowRuntime = {
|
|
|
21
37
|
};
|
|
22
38
|
missingTables: string[];
|
|
23
39
|
};
|
|
40
|
+
/** Status map keyed by SAP table name. */
|
|
24
41
|
export type SapEntriesStatus = {
|
|
25
42
|
[key: string]: {
|
|
43
|
+
/** Whether the required row exists in the target table. */
|
|
26
44
|
status: boolean;
|
|
45
|
+
/** Field/value object used to identify the required row. */
|
|
27
46
|
entry: any;
|
|
28
47
|
}[];
|
|
29
48
|
};
|
|
49
|
+
/** SAP-entry report returned by {@link checkSapEntries}. */
|
|
30
50
|
export type CheckSapEntriesActionOutput = {
|
|
51
|
+
/** Required entries copied from `manifest.sapEntries`, keyed by table name. */
|
|
31
52
|
sapEntries: any;
|
|
53
|
+
/** Existence result for each required entry, keyed by table name. */
|
|
32
54
|
sapEntriesStatus: SapEntriesStatus;
|
|
33
55
|
};
|
|
56
|
+
/** Internal state shared by the SAP-entry-check workflow steps. */
|
|
34
57
|
export interface CheckSapEntriesWorkflowContext {
|
|
58
|
+
/** Original action input. */
|
|
35
59
|
rawInput: CheckSapEntriesActionInput;
|
|
60
|
+
/** Intermediate entry classifications and missing table names. */
|
|
36
61
|
runtime?: WorkflowRuntime;
|
|
62
|
+
/** Report assembled by the workflow. */
|
|
37
63
|
output?: CheckSapEntriesActionOutput;
|
|
38
64
|
}
|
|
65
|
+
/**
|
|
66
|
+
* Checks whether the connected SAP system contains the table rows required by a manifest.
|
|
67
|
+
*
|
|
68
|
+
* Missing tables and rows are represented with failed statuses in the returned report.
|
|
69
|
+
*
|
|
70
|
+
* @param inputData Manifest and optional print settings.
|
|
71
|
+
* @returns The required SAP entries and an existence result for each one.
|
|
72
|
+
* @throws When the connected system cannot be queried for reasons other than a missing table or row.
|
|
73
|
+
*/
|
|
39
74
|
export declare function checkSapEntries(inputData: CheckSapEntriesActionInput): Promise<CheckSapEntriesActionOutput>;
|
|
40
75
|
export {};
|
|
@@ -8,29 +8,31 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
8
8
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
13
|
-
};
|
|
14
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
12
|
exports.checkSapEntries = checkSapEntries;
|
|
16
|
-
const sammarksworkflow_1 = __importDefault(require("@simonegaffurini/sammarksworkflow"));
|
|
17
|
-
const util_1 = require("util");
|
|
18
|
-
const trm_commons_1 = require("trm-commons");
|
|
19
13
|
const init_1 = require("./init");
|
|
20
14
|
const analyze_1 = require("./analyze");
|
|
15
|
+
const commons_1 = require("../commons");
|
|
21
16
|
;
|
|
22
17
|
const WORKFLOW_NAME = 'check-sap-entries';
|
|
18
|
+
/**
|
|
19
|
+
* Checks whether the connected SAP system contains the table rows required by a manifest.
|
|
20
|
+
*
|
|
21
|
+
* Missing tables and rows are represented with failed statuses in the returned report.
|
|
22
|
+
*
|
|
23
|
+
* @param inputData Manifest and optional print settings.
|
|
24
|
+
* @returns The required SAP entries and an existence result for each one.
|
|
25
|
+
* @throws When the connected system cannot be queried for reasons other than a missing table or row.
|
|
26
|
+
*/
|
|
23
27
|
function checkSapEntries(inputData) {
|
|
24
28
|
return __awaiter(this, void 0, void 0, function* () {
|
|
25
29
|
const workflow = [
|
|
26
30
|
init_1.init,
|
|
27
31
|
analyze_1.analyze
|
|
28
32
|
];
|
|
29
|
-
|
|
30
|
-
const result = yield (0, sammarksworkflow_1.default)(WORKFLOW_NAME, workflow, {
|
|
33
|
+
const result = yield (0, commons_1.executeWorkflow)(WORKFLOW_NAME, workflow, {
|
|
31
34
|
rawInput: inputData
|
|
32
|
-
});
|
|
33
|
-
trm_commons_1.Logger.log(`Workflow ${WORKFLOW_NAME} result: ${(0, util_1.inspect)(result, { breakLength: Infinity, compact: true })}`, true);
|
|
35
|
+
}, commons_1.workflowCallbacks);
|
|
34
36
|
return result.output;
|
|
35
37
|
});
|
|
36
38
|
}
|
|
@@ -1,3 +1,11 @@
|
|
|
1
1
|
import { Step } from "@simonegaffurini/sammarksworkflow";
|
|
2
2
|
import { CheckSapEntriesWorkflowContext } from ".";
|
|
3
|
+
/**
|
|
4
|
+
* Workflow step that initializes SAP-entry-check state from the supplied manifest.
|
|
5
|
+
*
|
|
6
|
+
* 1- set sap entries (read manifest)
|
|
7
|
+
*
|
|
8
|
+
* 2- fill missing input data
|
|
9
|
+
*
|
|
10
|
+
*/
|
|
3
11
|
export declare const init: Step<CheckSapEntriesWorkflowContext>;
|
|
@@ -10,11 +10,17 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.init = void 0;
|
|
13
|
-
|
|
13
|
+
/**
|
|
14
|
+
* Workflow step that initializes SAP-entry-check state from the supplied manifest.
|
|
15
|
+
*
|
|
16
|
+
* 1- set sap entries (read manifest)
|
|
17
|
+
*
|
|
18
|
+
* 2- fill missing input data
|
|
19
|
+
*
|
|
20
|
+
*/
|
|
14
21
|
exports.init = {
|
|
15
22
|
name: 'init',
|
|
16
23
|
run: (context) => __awaiter(void 0, void 0, void 0, function* () {
|
|
17
|
-
trm_commons_1.Logger.log('Init step', true);
|
|
18
24
|
context.output = {
|
|
19
25
|
sapEntries: {},
|
|
20
26
|
sapEntriesStatus: {}
|
|
@@ -26,7 +32,9 @@ exports.init = {
|
|
|
26
32
|
},
|
|
27
33
|
missingTables: []
|
|
28
34
|
};
|
|
35
|
+
//1- set sap entries
|
|
29
36
|
context.output.sapEntries = context.rawInput.packageData.manifest.sapEntries || {};
|
|
37
|
+
//2- fill missing input data
|
|
30
38
|
if (!context.rawInput.printOptions) {
|
|
31
39
|
context.rawInput.printOptions = {};
|
|
32
40
|
}
|
|
@@ -1,8 +1,18 @@
|
|
|
1
1
|
import { TrmPackage } from "../../trmPackage";
|
|
2
|
+
/** Shared minimum context accepted by reusable action workflow steps. */
|
|
2
3
|
export interface IActionContext {
|
|
4
|
+
/** Input supplied to the parent action. */
|
|
3
5
|
rawInput: {
|
|
6
|
+
/** Optional values shared by workflows that inspect the target SAP system. */
|
|
4
7
|
contextData?: {
|
|
8
|
+
/**
|
|
9
|
+
* Packages already installed on the target system.
|
|
10
|
+
*
|
|
11
|
+
* Supplying this value avoids querying the connected system and is useful when
|
|
12
|
+
* several actions share the same snapshot.
|
|
13
|
+
*/
|
|
5
14
|
systemPackages?: TrmPackage[];
|
|
15
|
+
/** Disable interactive prompts. Missing required choices then cause an error. */
|
|
6
16
|
noInquirer?: boolean;
|
|
7
17
|
};
|
|
8
18
|
};
|
|
@@ -1,2 +1,9 @@
|
|
|
1
1
|
import { Step } from "@simonegaffurini/sammarksworkflow";
|
|
2
|
+
/**
|
|
3
|
+
* Workflow step that verifies the connected user may call the TRM server APIs.
|
|
4
|
+
*
|
|
5
|
+
* Place this before steps that read or mutate the SAP system. The step fails closed: it throws
|
|
6
|
+
* the connector's `ClientError` when authorization is denied, and propagates any other error
|
|
7
|
+
* raised while checking it.
|
|
8
|
+
*/
|
|
2
9
|
export declare const checkServerAuth: Step<any>;
|
|
@@ -10,16 +10,21 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.checkServerAuth = void 0;
|
|
13
|
-
const trm_commons_1 = require("trm-commons");
|
|
14
13
|
const systemConnector_1 = require("../../systemConnector");
|
|
15
|
-
|
|
14
|
+
/**
|
|
15
|
+
* Workflow step that verifies the connected user may call the TRM server APIs.
|
|
16
|
+
*
|
|
17
|
+
* Place this before steps that read or mutate the SAP system. The step fails closed: it throws
|
|
18
|
+
* the connector's `ClientError` when authorization is denied, and propagates any other error
|
|
19
|
+
* raised while checking it.
|
|
20
|
+
*/
|
|
16
21
|
exports.checkServerAuth = {
|
|
17
22
|
name: 'check-server-auth',
|
|
18
23
|
run: () => __awaiter(void 0, void 0, void 0, function* () {
|
|
19
|
-
|
|
24
|
+
//1- check auth
|
|
20
25
|
const auth = yield systemConnector_1.SystemConnector.isServerApisAllowed();
|
|
21
|
-
if (auth
|
|
22
|
-
throw auth;
|
|
26
|
+
if (auth !== true) {
|
|
27
|
+
throw auth instanceof Error ? auth : new Error(`TRM server APIs authorization check failed.`);
|
|
23
28
|
}
|
|
24
29
|
})
|
|
25
30
|
};
|
|
@@ -17,4 +17,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./IActionContext"), exports);
|
|
18
18
|
__exportStar(require("./setSystemPackages"), exports);
|
|
19
19
|
__exportStar(require("./checkServerAuth"), exports);
|
|
20
|
-
__exportStar(require("./
|
|
20
|
+
__exportStar(require("./workflowCallbacks"), exports);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { TARSYSTEM } from "../../../client";
|
|
2
|
+
/**
|
|
3
|
+
* Resolves the landscape target system that receives the transports generated by an action.
|
|
4
|
+
*
|
|
5
|
+
* When the connected system has no transport targets and none was supplied, it is treated
|
|
6
|
+
* as the final system of the landscape and `undefined` is returned.
|
|
7
|
+
*
|
|
8
|
+
* @param noInquirer Disable interactive target selection.
|
|
9
|
+
* @param userInput Explicit target to validate and use.
|
|
10
|
+
* @param inquirerMessage Prompt label used when interactive selection is required.
|
|
11
|
+
* @param skippedMessage Warning logged when no target is available, e.g. `Install transport won't be generated.`
|
|
12
|
+
* @returns The selected, valid transport target, or `undefined` for the final system.
|
|
13
|
+
*/
|
|
14
|
+
export declare function setLandscapeTarget(noInquirer: boolean, userInput: TARSYSTEM | undefined, inquirerMessage: string, skippedMessage: string): Promise<TARSYSTEM | undefined>;
|