trm-core 9.10.6 → 10.0.0
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 +3 -6
- 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 -56
- 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,31 +1,42 @@
|
|
|
1
|
-
import { ClientError, RFCClient, SapMessage } from "../client";
|
|
1
|
+
import { ClientError, RFCClient, SapMessage, TransportEntries } from "../client";
|
|
2
2
|
import { DEVCLASS } from "../client/components";
|
|
3
3
|
import { TADIR } from "../client/struct";
|
|
4
4
|
import { RFCConnection } from "./RFCConnection";
|
|
5
5
|
import { Login } from "../client/Login";
|
|
6
|
-
import { ISystemConnector, TrmPackageUpdateData } from "./ISystemConnector";
|
|
6
|
+
import { ISystemConnector, TrmPackageMetadataRestoreData, TrmPackageUpdateData } from "./ISystemConnector";
|
|
7
7
|
import * as components from "../client/components";
|
|
8
8
|
import * as struct from "../client/struct";
|
|
9
9
|
import { SystemConnectorBase } from "./SystemConnectorBase";
|
|
10
10
|
import { SystemConnectorSupportedBulk } from "./SystemConnectorSupportedBulk";
|
|
11
|
+
import { ActionLockKey } from "./ActionLock";
|
|
11
12
|
export declare class RFCSystemConnector extends SystemConnectorBase implements ISystemConnector {
|
|
12
13
|
private _connection;
|
|
13
14
|
private _login;
|
|
14
15
|
private _traceDir?;
|
|
15
16
|
private _globalNodeModulesPath?;
|
|
17
|
+
acquireActionLocks(keys: ActionLockKey[], ownerToken: string, actionName: string): Promise<void>;
|
|
18
|
+
releaseActionLocks(keys: ActionLockKey[], ownerToken: string): Promise<void>;
|
|
19
|
+
private _dest;
|
|
16
20
|
private _lang;
|
|
17
21
|
private _user;
|
|
18
22
|
protected _client: RFCClient;
|
|
19
|
-
private _isServerApisAllowed
|
|
23
|
+
private _isServerApisAllowed?;
|
|
20
24
|
supportedBulk: SystemConnectorSupportedBulk;
|
|
21
25
|
isStateless: boolean;
|
|
22
26
|
constructor(_connection: RFCConnection, _login: Login, _traceDir?: string, _globalNodeModulesPath?: string);
|
|
27
|
+
protected createClient(rfcClientArgs: RFCConnection & Login, cLangu: string, traceDir?: string, globalNodeModulesPath?: string): RFCClient;
|
|
23
28
|
getNewConnection(): ISystemConnector;
|
|
24
29
|
protected getSysname(): string;
|
|
25
|
-
|
|
30
|
+
/**
|
|
31
|
+
* System ID, read from the system on connect.
|
|
32
|
+
*/
|
|
33
|
+
getDest(): components.SYSYSID;
|
|
26
34
|
protected getLangu(c: boolean): string;
|
|
27
35
|
getLogonLanguage(c?: boolean): string;
|
|
28
|
-
protected readTable(tableName: components.TABNAME, fields: struct.RFC_DB_FLD[], options?: string
|
|
36
|
+
protected readTable(tableName: components.TABNAME, fields: struct.RFC_DB_FLD[], options?: string, paging?: {
|
|
37
|
+
offset: number;
|
|
38
|
+
limit: number;
|
|
39
|
+
}): Promise<any[]>;
|
|
29
40
|
protected getTrmServerVersion(): Promise<string>;
|
|
30
41
|
protected getTrmRestVersion(): Promise<string>;
|
|
31
42
|
protected listDevclassObjects(devclass: DEVCLASS): Promise<TADIR[]>;
|
|
@@ -39,6 +50,7 @@ export declare class RFCSystemConnector extends SystemConnectorBase implements I
|
|
|
39
50
|
protected getObjectDependenciesInternal(object: components.TROBJTYPE, objName: components.SOBJ_NAME): Promise<struct.ZTRM_OBJECT_DEPENDENCY[]>;
|
|
40
51
|
getConnectionData(): RFCConnection;
|
|
41
52
|
getLogonUser(): string;
|
|
53
|
+
private getConnectionLabel;
|
|
42
54
|
connect(silent?: boolean): Promise<void>;
|
|
43
55
|
closeConnection(): Promise<void>;
|
|
44
56
|
checkConnection(): Promise<boolean>;
|
|
@@ -53,17 +65,22 @@ export declare class RFCSystemConnector extends SystemConnectorBase implements I
|
|
|
53
65
|
setTransportDoc(trkorr: components.TRKORR, doc: struct.TLINE[]): Promise<void>;
|
|
54
66
|
removeComments(trkorr: components.TRKORR, object: components.TROBJTYPE): Promise<void>;
|
|
55
67
|
addToTransportRequest(trkorr: components.TRKORR, content: struct.E071[], lock: boolean): Promise<void>;
|
|
68
|
+
lockTransportObjs(trkorr: components.TRKORR): Promise<void>;
|
|
56
69
|
repositoryEnvironment(objectType: components.SEU_OBJ, objectName: components.SOBJ_NAME): Promise<struct.SENVI[]>;
|
|
57
70
|
deleteTrkorr(trkorr: components.TRKORR): Promise<void>;
|
|
58
71
|
releaseTrkorr(trkorr: components.TRKORR, lock: boolean, timeout?: number): Promise<void>;
|
|
59
72
|
readTmsQueue(target: components.TMSSYSNAM): Promise<struct.STMSIQREQ[]>;
|
|
73
|
+
deleteTemporaryPackage(devclass: components.DEVCLASS): Promise<void>;
|
|
60
74
|
createPackage(scompkdtln: struct.SCOMPKDTLN): Promise<void>;
|
|
61
75
|
getDefaultTransportLayer(): Promise<components.DEVLAYER>;
|
|
62
76
|
tadirInterface(tadir: struct.TADIR): Promise<void>;
|
|
63
|
-
dequeueTransport(trkorr: components.TRKORR): Promise<void>;
|
|
64
77
|
forwardTransport(trkorr: components.TRKORR, target: components.TMSSYSNAM, source: components.TMSSYSNAM, importAgain: boolean): Promise<void>;
|
|
65
|
-
importTransport(trkorr: components.TRKORR, system: components.TMSSYSNAM): Promise<void>;
|
|
78
|
+
importTransport(trkorr: components.TRKORR, system: components.TMSSYSNAM, test: boolean): Promise<struct.STMS_TP_IMPORT | void>;
|
|
79
|
+
importTransportMultiple(trkorr: components.TRKORR[], system: components.TMSSYSNAM, test: boolean): Promise<struct.STMS_TP_IMPORT | void>;
|
|
66
80
|
setInstallDevc(installDevc: struct.ZTRM_INSTALLDEVC[]): Promise<void>;
|
|
81
|
+
deleteInstallDevc(installDevc: struct.ZTRM_INSTALLDEVC[]): Promise<void>;
|
|
82
|
+
restoreInstallMetadata(data: TrmPackageMetadataRestoreData): Promise<void>;
|
|
83
|
+
setInstallTransports(packageName: components.ZTRM_PACKAGE_NAME, packageRegistry: components.ZTRM_PACKAGE_REGISTRY, installTr: struct.ZTRM_INSTALLTR[]): Promise<void>;
|
|
67
84
|
getObjectsList(): Promise<struct.KO100[]>;
|
|
68
85
|
renameTransportRequest(trkorr: components.TRKORR, as4text: components.AS4TEXT): Promise<void>;
|
|
69
86
|
addTranslationToTr(trkorr: components.TRKORR, devclassFilter: struct.LXE_TT_PACKG_LINE[]): Promise<void>;
|
|
@@ -77,6 +94,7 @@ export declare class RFCSystemConnector extends SystemConnectorBase implements I
|
|
|
77
94
|
zip: Buffer;
|
|
78
95
|
objects: struct.ZTY_SER_OBJ[];
|
|
79
96
|
}>;
|
|
97
|
+
getTransportEntries(trkorr: components.TRKORR): Promise<TransportEntries>;
|
|
80
98
|
executePostActivity(data: Buffer, pre?: boolean): Promise<{
|
|
81
99
|
messages: struct.SYMSG[];
|
|
82
100
|
execute?: boolean;
|
|
@@ -14,6 +14,12 @@ const trm_commons_1 = require("trm-commons");
|
|
|
14
14
|
const client_1 = require("../client");
|
|
15
15
|
const SystemConnectorBase_1 = require("./SystemConnectorBase");
|
|
16
16
|
class RFCSystemConnector extends SystemConnectorBase_1.SystemConnectorBase {
|
|
17
|
+
acquireActionLocks(keys, ownerToken, actionName) {
|
|
18
|
+
return this._client.acquireActionLocks(keys, ownerToken, actionName);
|
|
19
|
+
}
|
|
20
|
+
releaseActionLocks(keys, ownerToken) {
|
|
21
|
+
return this._client.releaseActionLocks(keys, ownerToken);
|
|
22
|
+
}
|
|
17
23
|
constructor(_connection, _login, _traceDir, _globalNodeModulesPath) {
|
|
18
24
|
super();
|
|
19
25
|
this._connection = _connection;
|
|
@@ -31,16 +37,27 @@ class RFCSystemConnector extends SystemConnectorBase_1.SystemConnectorBase {
|
|
|
31
37
|
if (!this._connection.saprouter) {
|
|
32
38
|
delete this._connection.saprouter;
|
|
33
39
|
}
|
|
34
|
-
this._client =
|
|
40
|
+
this._client = this.createClient(Object.assign(Object.assign({}, this._connection), this._login), this._lang[0], this._traceDir, this._globalNodeModulesPath);
|
|
41
|
+
}
|
|
42
|
+
createClient(rfcClientArgs, cLangu, traceDir, globalNodeModulesPath) {
|
|
43
|
+
return new client_1.RFCClient(rfcClientArgs, cLangu, traceDir, globalNodeModulesPath);
|
|
35
44
|
}
|
|
36
45
|
getNewConnection() {
|
|
37
|
-
|
|
46
|
+
const connector = new this.constructor(this._connection, this._login, this._traceDir, this._globalNodeModulesPath);
|
|
47
|
+
connector._dest = this._dest;
|
|
48
|
+
return connector;
|
|
38
49
|
}
|
|
39
50
|
getSysname() {
|
|
40
51
|
return this.getDest();
|
|
41
52
|
}
|
|
53
|
+
/**
|
|
54
|
+
* System ID, read from the system on connect.
|
|
55
|
+
*/
|
|
42
56
|
getDest() {
|
|
43
|
-
|
|
57
|
+
if (!this._dest) {
|
|
58
|
+
throw new Error(`System ID not available: connect to the system first.`);
|
|
59
|
+
}
|
|
60
|
+
return this._dest;
|
|
44
61
|
}
|
|
45
62
|
getLangu(c) {
|
|
46
63
|
return this.getLogonLanguage(c);
|
|
@@ -53,9 +70,9 @@ class RFCSystemConnector extends SystemConnectorBase_1.SystemConnectorBase {
|
|
|
53
70
|
return this._lang;
|
|
54
71
|
}
|
|
55
72
|
}
|
|
56
|
-
readTable(tableName, fields, options) {
|
|
73
|
+
readTable(tableName, fields, options, paging) {
|
|
57
74
|
return __awaiter(this, void 0, void 0, function* () {
|
|
58
|
-
return this._client.readTable(tableName, fields, options);
|
|
75
|
+
return this._client.readTable(tableName, fields, options, paging);
|
|
59
76
|
});
|
|
60
77
|
}
|
|
61
78
|
getTrmServerVersion() {
|
|
@@ -98,15 +115,22 @@ class RFCSystemConnector extends SystemConnectorBase_1.SystemConnectorBase {
|
|
|
98
115
|
getLogonUser() {
|
|
99
116
|
return this._user;
|
|
100
117
|
}
|
|
118
|
+
getConnectionLabel() {
|
|
119
|
+
if (this._connection.saprouter) {
|
|
120
|
+
return `${this._connection.ashost} thru ${this._connection.saprouter}`;
|
|
121
|
+
}
|
|
122
|
+
return this._connection.ashost;
|
|
123
|
+
}
|
|
101
124
|
connect() {
|
|
102
125
|
return __awaiter(this, arguments, void 0, function* (silent = false) {
|
|
103
|
-
trm_commons_1.Logger.loading(`Connecting to ${this.
|
|
126
|
+
trm_commons_1.Logger.loading(`Connecting to ${this.getConnectionLabel()}...`, silent);
|
|
104
127
|
try {
|
|
105
128
|
yield this._client.open();
|
|
129
|
+
this._dest = yield this._client.getDest();
|
|
106
130
|
trm_commons_1.Logger.success(`Connected to ${this.getDest()} as ${this._user}.`, silent);
|
|
107
131
|
}
|
|
108
132
|
catch (e) {
|
|
109
|
-
trm_commons_1.Logger.error(`Connection to ${this.
|
|
133
|
+
trm_commons_1.Logger.error(`Connection to ${this.getConnectionLabel()} as ${this._user} failed.`, silent);
|
|
110
134
|
throw e;
|
|
111
135
|
}
|
|
112
136
|
});
|
|
@@ -176,6 +200,11 @@ class RFCSystemConnector extends SystemConnectorBase_1.SystemConnectorBase {
|
|
|
176
200
|
return this._client.addToTransportRequest(trkorr, content, lock);
|
|
177
201
|
});
|
|
178
202
|
}
|
|
203
|
+
lockTransportObjs(trkorr) {
|
|
204
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
205
|
+
return this._client.lockTransportObjs(trkorr);
|
|
206
|
+
});
|
|
207
|
+
}
|
|
179
208
|
repositoryEnvironment(objectType, objectName) {
|
|
180
209
|
return __awaiter(this, void 0, void 0, function* () {
|
|
181
210
|
return this._client.repositoryEnvironment(objectType, objectName);
|
|
@@ -196,6 +225,11 @@ class RFCSystemConnector extends SystemConnectorBase_1.SystemConnectorBase {
|
|
|
196
225
|
return this._client.readTmsQueue(target);
|
|
197
226
|
});
|
|
198
227
|
}
|
|
228
|
+
deleteTemporaryPackage(devclass) {
|
|
229
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
230
|
+
return this._client.deleteTemporaryPackage(devclass);
|
|
231
|
+
});
|
|
232
|
+
}
|
|
199
233
|
createPackage(scompkdtln) {
|
|
200
234
|
return __awaiter(this, void 0, void 0, function* () {
|
|
201
235
|
return this._client.createPackage(scompkdtln);
|
|
@@ -211,19 +245,19 @@ class RFCSystemConnector extends SystemConnectorBase_1.SystemConnectorBase {
|
|
|
211
245
|
return this._client.tadirInterface(tadir);
|
|
212
246
|
});
|
|
213
247
|
}
|
|
214
|
-
|
|
248
|
+
forwardTransport(trkorr, target, source, importAgain) {
|
|
215
249
|
return __awaiter(this, void 0, void 0, function* () {
|
|
216
|
-
return this._client.
|
|
250
|
+
return this._client.forwardTransport(trkorr, target, source, importAgain);
|
|
217
251
|
});
|
|
218
252
|
}
|
|
219
|
-
|
|
253
|
+
importTransport(trkorr, system, test) {
|
|
220
254
|
return __awaiter(this, void 0, void 0, function* () {
|
|
221
|
-
return this._client.
|
|
255
|
+
return this._client.importTransport(trkorr, system, test);
|
|
222
256
|
});
|
|
223
257
|
}
|
|
224
|
-
|
|
258
|
+
importTransportMultiple(trkorr, system, test) {
|
|
225
259
|
return __awaiter(this, void 0, void 0, function* () {
|
|
226
|
-
return this._client.
|
|
260
|
+
return this._client.importTransportMultiple(trkorr, system, test);
|
|
227
261
|
});
|
|
228
262
|
}
|
|
229
263
|
setInstallDevc(installDevc) {
|
|
@@ -231,6 +265,21 @@ class RFCSystemConnector extends SystemConnectorBase_1.SystemConnectorBase {
|
|
|
231
265
|
return this._client.setInstallDevc(installDevc);
|
|
232
266
|
});
|
|
233
267
|
}
|
|
268
|
+
deleteInstallDevc(installDevc) {
|
|
269
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
270
|
+
return this._client.deleteInstallDevc(installDevc);
|
|
271
|
+
});
|
|
272
|
+
}
|
|
273
|
+
restoreInstallMetadata(data) {
|
|
274
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
275
|
+
return this._client.restoreInstallMetadata(data);
|
|
276
|
+
});
|
|
277
|
+
}
|
|
278
|
+
setInstallTransports(packageName, packageRegistry, installTr) {
|
|
279
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
280
|
+
return this._client.setInstallTransports(packageName, packageRegistry, installTr);
|
|
281
|
+
});
|
|
282
|
+
}
|
|
234
283
|
getObjectsList() {
|
|
235
284
|
return __awaiter(this, void 0, void 0, function* () {
|
|
236
285
|
return this._client.getObjectsList();
|
|
@@ -281,6 +330,11 @@ class RFCSystemConnector extends SystemConnectorBase_1.SystemConnectorBase {
|
|
|
281
330
|
return this._client.getAbapgitSource(devclass);
|
|
282
331
|
});
|
|
283
332
|
}
|
|
333
|
+
getTransportEntries(trkorr) {
|
|
334
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
335
|
+
return this._client.getTransportEntries(trkorr);
|
|
336
|
+
});
|
|
337
|
+
}
|
|
284
338
|
executePostActivity(data, pre) {
|
|
285
339
|
return __awaiter(this, void 0, void 0, function* () {
|
|
286
340
|
return this._client.executePostActivity(data, pre);
|
|
@@ -288,10 +342,15 @@ class RFCSystemConnector extends SystemConnectorBase_1.SystemConnectorBase {
|
|
|
288
342
|
}
|
|
289
343
|
isServerApisAllowed() {
|
|
290
344
|
return __awaiter(this, void 0, void 0, function* () {
|
|
291
|
-
if (this._isServerApisAllowed
|
|
292
|
-
this._isServerApisAllowed
|
|
345
|
+
if (this._isServerApisAllowed) {
|
|
346
|
+
return this._isServerApisAllowed;
|
|
347
|
+
}
|
|
348
|
+
// Only a granted authorization is cached: a denial may be transient and is checked again.
|
|
349
|
+
const auth = yield this._client.isServerApisAllowed();
|
|
350
|
+
if (auth === true) {
|
|
351
|
+
this._isServerApisAllowed = auth;
|
|
293
352
|
}
|
|
294
|
-
return
|
|
353
|
+
return auth;
|
|
295
354
|
});
|
|
296
355
|
}
|
|
297
356
|
changeTrOwner(trkorr, owner) {
|
|
@@ -1,20 +1,26 @@
|
|
|
1
|
-
import { TRKORR, DEVCLASS, TDEVC, TADIR, PGMID, TROBJTYPE, SOBJ_NAME, ClientError } from "../client";
|
|
1
|
+
import { TRKORR, DEVCLASS, TDEVC, TADIR, PGMID, TROBJTYPE, SOBJ_NAME, ClientError, TransportEntries } from "../client";
|
|
2
2
|
import { AbstractRegistry } from "../registry";
|
|
3
3
|
import { TrmPackage } from "../trmPackage";
|
|
4
|
-
import { ISystemConnector, TrmPackageUpdateData } from "./ISystemConnector";
|
|
4
|
+
import { ISystemConnector, TrmPackageMetadataRestoreData, TrmPackageUpdateData } from "./ISystemConnector";
|
|
5
5
|
import { InstallPackage } from "./InstallPackage";
|
|
6
|
+
import { InstallTransport } from "./InstallTransport";
|
|
6
7
|
import { SapMessage } from "../client/SapMessage";
|
|
7
8
|
import * as components from "../client/components";
|
|
8
9
|
import * as struct from "../client/struct";
|
|
9
10
|
import { SystemConnectorSupportedBulk } from "./SystemConnectorSupportedBulk";
|
|
10
11
|
import { ObjectDependencies, PackageDependencies } from "../dependencies";
|
|
12
|
+
import { ActionLockKey } from "./ActionLock";
|
|
13
|
+
import { ValueHelpContext, ValueHelpPage } from "trm-commons";
|
|
14
|
+
import { TrmManifestEngineTableCondition } from "../manifest";
|
|
11
15
|
export declare namespace SystemConnector {
|
|
12
16
|
var systemConnector: ISystemConnector;
|
|
17
|
+
function acquireActionLocks(keys: ActionLockKey[], ownerToken: string, actionName: string): Promise<void>;
|
|
18
|
+
function releaseActionLocks(keys: ActionLockKey[], ownerToken: string): Promise<void>;
|
|
13
19
|
function getNewConnection(): ISystemConnector;
|
|
14
20
|
function getSupportedBulk(): SystemConnectorSupportedBulk;
|
|
15
21
|
function isStateless(): boolean;
|
|
16
22
|
function getConnectionData(): any;
|
|
17
|
-
function getDest():
|
|
23
|
+
function getDest(): components.SYSYSID;
|
|
18
24
|
function getLogonLanguage(c: boolean): string;
|
|
19
25
|
function getLogonUser(): string;
|
|
20
26
|
function connect(silent: boolean): Promise<void>;
|
|
@@ -25,16 +31,27 @@ export declare namespace SystemConnector {
|
|
|
25
31
|
name: string;
|
|
26
32
|
registry: string;
|
|
27
33
|
}): Promise<TrmPackage[]>;
|
|
34
|
+
/**
|
|
35
|
+
* Reads the TRM packages table row of a package, bypassing the installed packages cache.
|
|
36
|
+
* Resolves `undefined` when no row is stored; a failed read throws. Like the installed packages,
|
|
37
|
+
* a row whose SAP package or transport is no longer on the system is not listed.
|
|
38
|
+
*/
|
|
39
|
+
function getTrmPackageData(packageName: components.ZTRM_PACKAGE_NAME, packageRegistry: components.ZTRM_PACKAGE_REGISTRY): Promise<TrmPackageUpdateData | undefined>;
|
|
28
40
|
function getDevclass(devclass: DEVCLASS): Promise<TDEVC>;
|
|
29
41
|
function getTransportTargets(): Promise<components.TARSYSTEM[]>;
|
|
30
42
|
function getSubpackages(devclass: DEVCLASS): Promise<TDEVC[]>;
|
|
43
|
+
function getNamespacePackages(namespace: components.NAMESPACE): Promise<TDEVC[]>;
|
|
31
44
|
function getDevclassObjects(devclass: DEVCLASS, includeSubpackages: boolean): Promise<TADIR[]>;
|
|
45
|
+
function getPostActivities(ctx: ValueHelpContext): Promise<ValueHelpPage>;
|
|
46
|
+
function getPostActivityParameters(className: string, ctx: ValueHelpContext): Promise<ValueHelpPage>;
|
|
32
47
|
function getObject(pgmid: PGMID, object: TROBJTYPE, objName: SOBJ_NAME): Promise<TADIR>;
|
|
33
48
|
function getIgnoredTrkorr(): Promise<TRKORR[]>;
|
|
34
49
|
function getSourceTrkorr(): Promise<TRKORR[]>;
|
|
35
50
|
function readTmsQueue(target: components.TMSSYSNAM): Promise<struct.STMSIQREQ[]>;
|
|
51
|
+
function deleteTemporaryPackage(devclass: components.DEVCLASS): Promise<void>;
|
|
36
52
|
function createPackage(scompkdtln: struct.SCOMPKDTLN): Promise<void>;
|
|
37
53
|
function getInstallPackages(packageName: string, registry: AbstractRegistry): Promise<InstallPackage[]>;
|
|
54
|
+
function getInstallTransports(packageName: string, registry: AbstractRegistry): Promise<InstallTransport[]>;
|
|
38
55
|
function setPackageSuperpackage(devclass: DEVCLASS, superpackage: DEVCLASS): Promise<void>;
|
|
39
56
|
function clearPackageSuperpackage(devclass: DEVCLASS): Promise<void>;
|
|
40
57
|
function setPackageTransportLayer(devclass: DEVCLASS, devlayer: components.DEVLAYER): Promise<void>;
|
|
@@ -42,7 +59,10 @@ export declare namespace SystemConnector {
|
|
|
42
59
|
function checkSapEntryExists(table: string, sapEntry: any): Promise<boolean>;
|
|
43
60
|
function ping(): Promise<string>;
|
|
44
61
|
function getPackageIntegrity(oPackage: TrmPackage): Promise<string>;
|
|
45
|
-
function readTable(tableName: components.TABNAME, fields: struct.RFC_DB_FLD[], options?: string
|
|
62
|
+
function readTable(tableName: components.TABNAME, fields: struct.RFC_DB_FLD[], options?: string, paging?: {
|
|
63
|
+
offset: number;
|
|
64
|
+
limit: number;
|
|
65
|
+
}): Promise<any[]>;
|
|
46
66
|
function getFileSystem(): Promise<struct.FILESYS>;
|
|
47
67
|
function getDirTrans(): Promise<components.PFEVALUE>;
|
|
48
68
|
function getBinaryFile(filePath: string): Promise<Buffer>;
|
|
@@ -53,16 +73,20 @@ export declare namespace SystemConnector {
|
|
|
53
73
|
function setTransportDoc(trkorr: components.TRKORR, doc: struct.TLINE[]): Promise<void>;
|
|
54
74
|
function removeComments(trkorr: components.TRKORR, object: TROBJTYPE): Promise<void>;
|
|
55
75
|
function addToTransportRequest(trkorr: components.TRKORR, content: struct.E071[], lock: boolean): Promise<void>;
|
|
76
|
+
function lockTransportObjs(trkorr: components.TRKORR): Promise<void>;
|
|
56
77
|
function repositoryEnvironment(objectType: components.SEU_OBJ, objectName: components.SOBJ_NAME): Promise<struct.SENVI[]>;
|
|
57
78
|
function deleteTrkorr(trkorr: components.TRKORR): Promise<void>;
|
|
58
79
|
function releaseTrkorr(trkorr: components.TRKORR, lock: boolean, timeout?: number): Promise<void>;
|
|
59
80
|
function trCopy(from: components.TRKORR, to: components.TRKORR, doc: boolean): Promise<void>;
|
|
60
81
|
function getDefaultTransportLayer(): Promise<components.DEVLAYER>;
|
|
61
82
|
function tadirInterface(tadir: struct.TADIR): Promise<void>;
|
|
62
|
-
function dequeueTransport(trkorr: components.TRKORR): Promise<void>;
|
|
63
83
|
function forwardTransport(trkorr: components.TRKORR, target: components.TMSSYSNAM, source: components.TMSSYSNAM, importAgain: boolean): Promise<void>;
|
|
64
|
-
function importTransport(trkorr: components.TRKORR, system: components.TMSSYSNAM): Promise<void>;
|
|
84
|
+
function importTransport(trkorr: components.TRKORR, system: components.TMSSYSNAM, test: boolean): Promise<struct.STMS_TP_IMPORT | void>;
|
|
85
|
+
function importTransportMultiple(trkorr: components.TRKORR[], system: components.TMSSYSNAM, test: boolean): Promise<struct.STMS_TP_IMPORT | void>;
|
|
65
86
|
function setInstallDevc(installDevc: struct.ZTRM_INSTALLDEVC[]): Promise<void>;
|
|
87
|
+
function deleteInstallDevc(installDevc: struct.ZTRM_INSTALLDEVC[]): Promise<void>;
|
|
88
|
+
function restoreInstallMetadata(data: TrmPackageMetadataRestoreData): Promise<void>;
|
|
89
|
+
function setInstallTransports(packageName: components.ZTRM_PACKAGE_NAME, packageRegistry: components.ZTRM_PACKAGE_REGISTRY, installTr: struct.ZTRM_INSTALLTR[]): Promise<void>;
|
|
66
90
|
function getObjectsList(): Promise<struct.KO100[]>;
|
|
67
91
|
function renameTransportRequest(trkorr: components.TRKORR, as4text: components.AS4TEXT): Promise<void>;
|
|
68
92
|
function addTranslationToTr(trkorr: components.TRKORR, devclassFilter: struct.LXE_TT_PACKG_LINE[]): Promise<void>;
|
|
@@ -87,6 +111,7 @@ export declare namespace SystemConnector {
|
|
|
87
111
|
zip: Buffer;
|
|
88
112
|
objects: struct.ZTY_SER_OBJ[];
|
|
89
113
|
}>;
|
|
114
|
+
function getTransportEntries(trkorr: components.TRKORR): Promise<TransportEntries>;
|
|
90
115
|
function executePostActivity(data: Buffer, pre?: boolean): Promise<{
|
|
91
116
|
messages: struct.SYMSG[];
|
|
92
117
|
execute?: boolean;
|
|
@@ -102,6 +127,13 @@ export declare namespace SystemConnector {
|
|
|
102
127
|
function deleteLogPolling(logID: components.ZTRM_POLLING_ID): Promise<void>;
|
|
103
128
|
function readLogPolling(logID: components.ZTRM_POLLING_ID): Promise<components.ZTRM_POLLING_LAST_MSG>;
|
|
104
129
|
function getTransportImportStatus(trkorr: components.TRKORR, system: components.TMSSYSNAM): Promise<struct.TPSTAT>;
|
|
130
|
+
function getSoftwareComponents(): Promise<struct.CVERS[]>;
|
|
131
|
+
function getInstalledProducts(): Promise<struct.PRDVERS[]>;
|
|
132
|
+
function getNoteStatus(numm: components.CWBNTNUMM): Promise<{
|
|
133
|
+
prstatus?: components.CWBPRSTAT;
|
|
134
|
+
versno?: components.CWBNTVERS;
|
|
135
|
+
}>;
|
|
136
|
+
function checkTableCondition(table: components.TABNAME, where: TrmManifestEngineTableCondition[]): Promise<boolean>;
|
|
105
137
|
function getTimezone(): Promise<string>;
|
|
106
138
|
function getObjectsLocks(objects: struct.TADIR_KEY[]): Promise<struct.ZTRM_OBJ_LOCK[]>;
|
|
107
139
|
function updateTrmPackageData(data: TrmPackageUpdateData): Promise<void>;
|
|
@@ -12,6 +12,20 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.SystemConnector = void 0;
|
|
13
13
|
var SystemConnector;
|
|
14
14
|
(function (SystemConnector) {
|
|
15
|
+
function acquireActionLocks(keys, ownerToken, actionName) {
|
|
16
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17
|
+
yield checkSystemConnector();
|
|
18
|
+
return SystemConnector.systemConnector.acquireActionLocks(keys, ownerToken, actionName);
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
SystemConnector.acquireActionLocks = acquireActionLocks;
|
|
22
|
+
function releaseActionLocks(keys, ownerToken) {
|
|
23
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
24
|
+
yield checkSystemConnector();
|
|
25
|
+
return SystemConnector.systemConnector.releaseActionLocks(keys, ownerToken);
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
SystemConnector.releaseActionLocks = releaseActionLocks;
|
|
15
29
|
function checkSystemConnector() {
|
|
16
30
|
if (!SystemConnector.systemConnector) {
|
|
17
31
|
throw new Error('System connector not initialized.');
|
|
@@ -63,7 +77,9 @@ var SystemConnector;
|
|
|
63
77
|
SystemConnector.getLogonUser = getLogonUser;
|
|
64
78
|
function connect(silent) {
|
|
65
79
|
return __awaiter(this, void 0, void 0, function* () {
|
|
66
|
-
|
|
80
|
+
if (!SystemConnector.systemConnector) {
|
|
81
|
+
throw new Error('System connector not initialized.');
|
|
82
|
+
}
|
|
67
83
|
return SystemConnector.systemConnector.connect(silent);
|
|
68
84
|
});
|
|
69
85
|
}
|
|
@@ -96,6 +112,18 @@ var SystemConnector;
|
|
|
96
112
|
});
|
|
97
113
|
}
|
|
98
114
|
SystemConnector.getInstalledPackages = getInstalledPackages;
|
|
115
|
+
/**
|
|
116
|
+
* Reads the TRM packages table row of a package, bypassing the installed packages cache.
|
|
117
|
+
* Resolves `undefined` when no row is stored; a failed read throws. Like the installed packages,
|
|
118
|
+
* a row whose SAP package or transport is no longer on the system is not listed.
|
|
119
|
+
*/
|
|
120
|
+
function getTrmPackageData(packageName, packageRegistry) {
|
|
121
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
122
|
+
yield checkSystemConnector();
|
|
123
|
+
return SystemConnector.systemConnector.getTrmPackageData(packageName, packageRegistry);
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
SystemConnector.getTrmPackageData = getTrmPackageData;
|
|
99
127
|
function getDevclass(devclass) {
|
|
100
128
|
return __awaiter(this, void 0, void 0, function* () {
|
|
101
129
|
yield checkSystemConnector();
|
|
@@ -117,6 +145,13 @@ var SystemConnector;
|
|
|
117
145
|
});
|
|
118
146
|
}
|
|
119
147
|
SystemConnector.getSubpackages = getSubpackages;
|
|
148
|
+
function getNamespacePackages(namespace) {
|
|
149
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
150
|
+
yield checkSystemConnector();
|
|
151
|
+
return SystemConnector.systemConnector.getNamespacePackages(namespace);
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
SystemConnector.getNamespacePackages = getNamespacePackages;
|
|
120
155
|
function getDevclassObjects(devclass, includeSubpackages) {
|
|
121
156
|
return __awaiter(this, void 0, void 0, function* () {
|
|
122
157
|
yield checkSystemConnector();
|
|
@@ -124,6 +159,20 @@ var SystemConnector;
|
|
|
124
159
|
});
|
|
125
160
|
}
|
|
126
161
|
SystemConnector.getDevclassObjects = getDevclassObjects;
|
|
162
|
+
function getPostActivities(ctx) {
|
|
163
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
164
|
+
yield checkSystemConnector();
|
|
165
|
+
return SystemConnector.systemConnector.getPostActivities(ctx);
|
|
166
|
+
});
|
|
167
|
+
}
|
|
168
|
+
SystemConnector.getPostActivities = getPostActivities;
|
|
169
|
+
function getPostActivityParameters(className, ctx) {
|
|
170
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
171
|
+
yield checkSystemConnector();
|
|
172
|
+
return SystemConnector.systemConnector.getPostActivityParameters(className, ctx);
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
SystemConnector.getPostActivityParameters = getPostActivityParameters;
|
|
127
176
|
function getObject(pgmid, object, objName) {
|
|
128
177
|
return __awaiter(this, void 0, void 0, function* () {
|
|
129
178
|
yield checkSystemConnector();
|
|
@@ -152,6 +201,13 @@ var SystemConnector;
|
|
|
152
201
|
});
|
|
153
202
|
}
|
|
154
203
|
SystemConnector.readTmsQueue = readTmsQueue;
|
|
204
|
+
function deleteTemporaryPackage(devclass) {
|
|
205
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
206
|
+
yield checkSystemConnector();
|
|
207
|
+
return SystemConnector.systemConnector.deleteTemporaryPackage(devclass);
|
|
208
|
+
});
|
|
209
|
+
}
|
|
210
|
+
SystemConnector.deleteTemporaryPackage = deleteTemporaryPackage;
|
|
155
211
|
function createPackage(scompkdtln) {
|
|
156
212
|
return __awaiter(this, void 0, void 0, function* () {
|
|
157
213
|
yield checkSystemConnector();
|
|
@@ -166,6 +222,13 @@ var SystemConnector;
|
|
|
166
222
|
});
|
|
167
223
|
}
|
|
168
224
|
SystemConnector.getInstallPackages = getInstallPackages;
|
|
225
|
+
function getInstallTransports(packageName, registry) {
|
|
226
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
227
|
+
yield checkSystemConnector();
|
|
228
|
+
return SystemConnector.systemConnector.getInstallTransports(packageName, registry);
|
|
229
|
+
});
|
|
230
|
+
}
|
|
231
|
+
SystemConnector.getInstallTransports = getInstallTransports;
|
|
169
232
|
function setPackageSuperpackage(devclass, superpackage) {
|
|
170
233
|
return __awaiter(this, void 0, void 0, function* () {
|
|
171
234
|
yield checkSystemConnector();
|
|
@@ -215,10 +278,10 @@ var SystemConnector;
|
|
|
215
278
|
});
|
|
216
279
|
}
|
|
217
280
|
SystemConnector.getPackageIntegrity = getPackageIntegrity;
|
|
218
|
-
function readTable(tableName, fields, options) {
|
|
281
|
+
function readTable(tableName, fields, options, paging) {
|
|
219
282
|
return __awaiter(this, void 0, void 0, function* () {
|
|
220
283
|
yield checkSystemConnector();
|
|
221
|
-
return SystemConnector.systemConnector['readTable'](tableName, fields, options);
|
|
284
|
+
return SystemConnector.systemConnector['readTable'](tableName, fields, options, paging);
|
|
222
285
|
});
|
|
223
286
|
}
|
|
224
287
|
SystemConnector.readTable = readTable;
|
|
@@ -292,6 +355,13 @@ var SystemConnector;
|
|
|
292
355
|
});
|
|
293
356
|
}
|
|
294
357
|
SystemConnector.addToTransportRequest = addToTransportRequest;
|
|
358
|
+
function lockTransportObjs(trkorr) {
|
|
359
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
360
|
+
yield checkSystemConnector();
|
|
361
|
+
return SystemConnector.systemConnector.lockTransportObjs(trkorr);
|
|
362
|
+
});
|
|
363
|
+
}
|
|
364
|
+
SystemConnector.lockTransportObjs = lockTransportObjs;
|
|
295
365
|
function repositoryEnvironment(objectType, objectName) {
|
|
296
366
|
return __awaiter(this, void 0, void 0, function* () {
|
|
297
367
|
yield checkSystemConnector();
|
|
@@ -334,13 +404,6 @@ var SystemConnector;
|
|
|
334
404
|
});
|
|
335
405
|
}
|
|
336
406
|
SystemConnector.tadirInterface = tadirInterface;
|
|
337
|
-
function dequeueTransport(trkorr) {
|
|
338
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
339
|
-
yield checkSystemConnector();
|
|
340
|
-
return SystemConnector.systemConnector.dequeueTransport(trkorr);
|
|
341
|
-
});
|
|
342
|
-
}
|
|
343
|
-
SystemConnector.dequeueTransport = dequeueTransport;
|
|
344
407
|
function forwardTransport(trkorr, target, source, importAgain) {
|
|
345
408
|
return __awaiter(this, void 0, void 0, function* () {
|
|
346
409
|
yield checkSystemConnector();
|
|
@@ -348,13 +411,20 @@ var SystemConnector;
|
|
|
348
411
|
});
|
|
349
412
|
}
|
|
350
413
|
SystemConnector.forwardTransport = forwardTransport;
|
|
351
|
-
function importTransport(trkorr, system) {
|
|
414
|
+
function importTransport(trkorr, system, test) {
|
|
352
415
|
return __awaiter(this, void 0, void 0, function* () {
|
|
353
416
|
yield checkSystemConnector();
|
|
354
|
-
return SystemConnector.systemConnector.importTransport(trkorr, system);
|
|
417
|
+
return SystemConnector.systemConnector.importTransport(trkorr, system, test);
|
|
355
418
|
});
|
|
356
419
|
}
|
|
357
420
|
SystemConnector.importTransport = importTransport;
|
|
421
|
+
function importTransportMultiple(trkorr, system, test) {
|
|
422
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
423
|
+
yield checkSystemConnector();
|
|
424
|
+
return SystemConnector.systemConnector.importTransportMultiple(trkorr, system, test);
|
|
425
|
+
});
|
|
426
|
+
}
|
|
427
|
+
SystemConnector.importTransportMultiple = importTransportMultiple;
|
|
358
428
|
function setInstallDevc(installDevc) {
|
|
359
429
|
return __awaiter(this, void 0, void 0, function* () {
|
|
360
430
|
yield checkSystemConnector();
|
|
@@ -362,6 +432,27 @@ var SystemConnector;
|
|
|
362
432
|
});
|
|
363
433
|
}
|
|
364
434
|
SystemConnector.setInstallDevc = setInstallDevc;
|
|
435
|
+
function deleteInstallDevc(installDevc) {
|
|
436
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
437
|
+
yield checkSystemConnector();
|
|
438
|
+
return SystemConnector.systemConnector.deleteInstallDevc(installDevc);
|
|
439
|
+
});
|
|
440
|
+
}
|
|
441
|
+
SystemConnector.deleteInstallDevc = deleteInstallDevc;
|
|
442
|
+
function restoreInstallMetadata(data) {
|
|
443
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
444
|
+
yield checkSystemConnector();
|
|
445
|
+
return SystemConnector.systemConnector.restoreInstallMetadata(data);
|
|
446
|
+
});
|
|
447
|
+
}
|
|
448
|
+
SystemConnector.restoreInstallMetadata = restoreInstallMetadata;
|
|
449
|
+
function setInstallTransports(packageName, packageRegistry, installTr) {
|
|
450
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
451
|
+
yield checkSystemConnector();
|
|
452
|
+
return SystemConnector.systemConnector.setInstallTransports(packageName, packageRegistry, installTr);
|
|
453
|
+
});
|
|
454
|
+
}
|
|
455
|
+
SystemConnector.setInstallTransports = setInstallTransports;
|
|
365
456
|
function getObjectsList() {
|
|
366
457
|
return __awaiter(this, void 0, void 0, function* () {
|
|
367
458
|
yield checkSystemConnector();
|
|
@@ -488,6 +579,13 @@ var SystemConnector;
|
|
|
488
579
|
});
|
|
489
580
|
}
|
|
490
581
|
SystemConnector.getAbapgitSource = getAbapgitSource;
|
|
582
|
+
function getTransportEntries(trkorr) {
|
|
583
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
584
|
+
yield checkSystemConnector();
|
|
585
|
+
return SystemConnector.systemConnector.getTransportEntries(trkorr);
|
|
586
|
+
});
|
|
587
|
+
}
|
|
588
|
+
SystemConnector.getTransportEntries = getTransportEntries;
|
|
491
589
|
function executePostActivity(data, pre) {
|
|
492
590
|
return __awaiter(this, void 0, void 0, function* () {
|
|
493
591
|
yield checkSystemConnector();
|
|
@@ -572,6 +670,34 @@ var SystemConnector;
|
|
|
572
670
|
});
|
|
573
671
|
}
|
|
574
672
|
SystemConnector.getTransportImportStatus = getTransportImportStatus;
|
|
673
|
+
function getSoftwareComponents() {
|
|
674
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
675
|
+
yield checkSystemConnector();
|
|
676
|
+
return SystemConnector.systemConnector.getSoftwareComponents();
|
|
677
|
+
});
|
|
678
|
+
}
|
|
679
|
+
SystemConnector.getSoftwareComponents = getSoftwareComponents;
|
|
680
|
+
function getInstalledProducts() {
|
|
681
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
682
|
+
yield checkSystemConnector();
|
|
683
|
+
return SystemConnector.systemConnector.getInstalledProducts();
|
|
684
|
+
});
|
|
685
|
+
}
|
|
686
|
+
SystemConnector.getInstalledProducts = getInstalledProducts;
|
|
687
|
+
function getNoteStatus(numm) {
|
|
688
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
689
|
+
yield checkSystemConnector();
|
|
690
|
+
return SystemConnector.systemConnector.getNoteStatus(numm);
|
|
691
|
+
});
|
|
692
|
+
}
|
|
693
|
+
SystemConnector.getNoteStatus = getNoteStatus;
|
|
694
|
+
function checkTableCondition(table, where) {
|
|
695
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
696
|
+
yield checkSystemConnector();
|
|
697
|
+
return SystemConnector.systemConnector.checkTableCondition(table, where);
|
|
698
|
+
});
|
|
699
|
+
}
|
|
700
|
+
SystemConnector.checkTableCondition = checkTableCondition;
|
|
575
701
|
function getTimezone() {
|
|
576
702
|
return __awaiter(this, void 0, void 0, function* () {
|
|
577
703
|
yield checkSystemConnector();
|