trm-core 2.2.2 → 3.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/dist/actions/checkPackageDependencies/analizeDependencies.d.ts +3 -0
- package/dist/actions/checkPackageDependencies/analizeDependencies.js +84 -0
- package/dist/actions/checkPackageDependencies/buildOutput.d.ts +3 -0
- package/dist/actions/checkPackageDependencies/buildOutput.js +82 -0
- package/dist/actions/checkPackageDependencies/index.d.ts +37 -0
- package/dist/actions/checkPackageDependencies/index.js +44 -0
- package/dist/actions/checkPackageDependencies/init.d.ts +3 -0
- package/dist/actions/checkPackageDependencies/init.js +30 -0
- package/dist/actions/checkPackageDependencies/setSystemPackages.d.ts +3 -0
- package/dist/actions/checkPackageDependencies/setSystemPackages.js +28 -0
- package/dist/actions/checkSapEntries/analizeSapEntries.d.ts +3 -0
- package/dist/actions/checkSapEntries/analizeSapEntries.js +120 -0
- package/dist/actions/checkSapEntries/buildOutput.d.ts +3 -0
- package/dist/actions/checkSapEntries/buildOutput.js +46 -0
- package/dist/actions/checkSapEntries/index.d.ts +29 -0
- package/dist/actions/checkSapEntries/index.js +42 -0
- package/dist/actions/checkSapEntries/init.d.ts +3 -0
- package/dist/actions/checkSapEntries/init.js +29 -0
- package/dist/actions/findDependencies/acknowledgementSize.d.ts +3 -0
- package/dist/actions/findDependencies/acknowledgementSize.js +36 -0
- package/dist/actions/findDependencies/index.d.ts +52 -0
- package/dist/actions/findDependencies/index.js +53 -0
- package/dist/actions/findDependencies/init.d.ts +3 -0
- package/dist/actions/findDependencies/init.js +36 -0
- package/dist/actions/findDependencies/parseSenvi.d.ts +3 -0
- package/dist/actions/findDependencies/parseSenvi.js +76 -0
- package/dist/actions/findDependencies/print.d.ts +3 -0
- package/dist/actions/findDependencies/print.js +120 -0
- package/dist/actions/findDependencies/readPackageData.d.ts +3 -0
- package/dist/actions/findDependencies/readPackageData.js +22 -0
- package/dist/actions/findDependencies/readPackageObjects.d.ts +3 -0
- package/dist/actions/findDependencies/readPackageObjects.js +26 -0
- package/dist/actions/findDependencies/readRepositoryEnvironment.d.ts +3 -0
- package/dist/actions/findDependencies/readRepositoryEnvironment.js +31 -0
- package/dist/actions/findDependencies/setSystemPackages.d.ts +3 -0
- package/dist/actions/findDependencies/setSystemPackages.js +25 -0
- package/dist/actions/findDependencies/setTrmDependencies.d.ts +3 -0
- package/dist/actions/findDependencies/setTrmDependencies.js +145 -0
- package/dist/actions/index.d.ts +3 -4
- package/dist/actions/index.js +3 -4
- package/dist/actions/install/checkAlreadyInstalled.d.ts +3 -0
- package/dist/actions/install/checkAlreadyInstalled.js +59 -0
- package/dist/actions/install/checkDependencies.d.ts +3 -0
- package/dist/actions/install/checkDependencies.js +69 -0
- package/dist/actions/install/checkIntegrity.d.ts +3 -0
- package/dist/actions/install/checkIntegrity.js +42 -0
- package/dist/actions/install/checkSapEntries.d.ts +3 -0
- package/dist/actions/install/checkSapEntries.js +52 -0
- package/dist/actions/install/checkTadirContent.d.ts +3 -0
- package/dist/actions/install/checkTadirContent.js +50 -0
- package/dist/actions/install/checkTadirObjectTypes.d.ts +3 -0
- package/dist/actions/install/checkTadirObjectTypes.js +45 -0
- package/dist/actions/install/checkTransports.d.ts +3 -0
- package/dist/actions/install/checkTransports.js +71 -0
- package/dist/actions/install/generateDevclass.d.ts +3 -0
- package/dist/actions/install/generateDevclass.js +110 -0
- package/dist/actions/install/generateWbTransport.d.ts +3 -0
- package/dist/actions/install/generateWbTransport.js +90 -0
- package/dist/actions/install/importCustTransport.d.ts +3 -0
- package/dist/actions/install/importCustTransport.js +48 -0
- package/dist/actions/install/importLangTransport.d.ts +3 -0
- package/dist/actions/install/importLangTransport.js +48 -0
- package/dist/actions/install/importTadirTransport.d.ts +3 -0
- package/dist/actions/install/importTadirTransport.js +66 -0
- package/dist/actions/install/index.d.ts +95 -0
- package/dist/actions/install/index.js +79 -0
- package/dist/actions/install/init.d.ts +3 -0
- package/dist/actions/install/init.js +80 -0
- package/dist/actions/install/installDependencies.d.ts +3 -0
- package/dist/actions/install/installDependencies.js +77 -0
- package/dist/actions/install/readDevcTransport.d.ts +3 -0
- package/dist/actions/install/readDevcTransport.js +30 -0
- package/dist/actions/install/setDevclass.d.ts +3 -0
- package/dist/actions/install/setDevclass.js +115 -0
- package/dist/actions/install/setPackageIntegrity.d.ts +3 -0
- package/dist/actions/install/setPackageIntegrity.js +30 -0
- package/dist/actions/install/setR3trans.d.ts +3 -0
- package/dist/actions/install/setR3trans.js +24 -0
- package/dist/actions/install/setSystemPackages.d.ts +3 -0
- package/dist/actions/install/setSystemPackages.js +25 -0
- package/dist/actions/installDependency/checkAlreadyInstalled.d.ts +3 -0
- package/dist/actions/installDependency/checkAlreadyInstalled.js +42 -0
- package/dist/actions/installDependency/findInstallRelease.d.ts +3 -0
- package/dist/actions/installDependency/findInstallRelease.js +59 -0
- package/dist/actions/installDependency/getRangeReleases.d.ts +3 -0
- package/dist/actions/installDependency/getRangeReleases.js +38 -0
- package/dist/actions/installDependency/index.d.ts +39 -0
- package/dist/actions/installDependency/index.js +46 -0
- package/dist/actions/installDependency/init.d.ts +3 -0
- package/dist/actions/installDependency/init.js +39 -0
- package/dist/actions/installDependency/installRelease.d.ts +3 -0
- package/dist/actions/installDependency/installRelease.js +43 -0
- package/dist/actions/installDependency/setSystemPackages.d.ts +3 -0
- package/dist/actions/installDependency/setSystemPackages.js +25 -0
- package/dist/actions/publish/buildTrmPackageInstance.d.ts +3 -0
- package/dist/actions/publish/buildTrmPackageInstance.js +22 -0
- package/dist/actions/publish/checkPackageExistance.d.ts +3 -0
- package/dist/actions/publish/checkPackageExistance.js +27 -0
- package/dist/actions/publish/checkPublishAllowed.d.ts +3 -0
- package/dist/actions/publish/checkPublishAllowed.js +33 -0
- package/dist/actions/publish/editSapEntries.d.ts +3 -0
- package/dist/actions/publish/editSapEntries.js +69 -0
- package/dist/actions/publish/editTrmDependencies.d.ts +3 -0
- package/dist/actions/publish/editTrmDependencies.js +69 -0
- package/dist/actions/publish/finalizePublish.d.ts +3 -0
- package/dist/actions/publish/finalizePublish.js +51 -0
- package/dist/actions/publish/findDependencies.d.ts +3 -0
- package/dist/actions/publish/findDependencies.js +49 -0
- package/dist/actions/publish/generateCustTr.d.ts +3 -0
- package/dist/actions/publish/generateCustTr.js +72 -0
- package/dist/actions/publish/generateDevcTr.d.ts +3 -0
- package/dist/actions/publish/generateDevcTr.js +47 -0
- package/dist/actions/publish/generateLangTr.d.ts +3 -0
- package/dist/actions/publish/generateLangTr.js +69 -0
- package/dist/actions/publish/generateTadirTr.d.ts +3 -0
- package/dist/actions/publish/generateTadirTr.js +52 -0
- package/dist/actions/publish/generateTrmArtifact.d.ts +3 -0
- package/dist/actions/publish/generateTrmArtifact.js +30 -0
- package/dist/actions/publish/index.d.ts +76 -0
- package/dist/actions/publish/index.js +99 -0
- package/dist/actions/publish/init.d.ts +3 -0
- package/dist/actions/publish/init.js +110 -0
- package/dist/actions/publish/logDependencies.d.ts +3 -0
- package/dist/actions/publish/logDependencies.js +31 -0
- package/dist/actions/publish/overwriteManifestValues.d.ts +3 -0
- package/dist/actions/publish/overwriteManifestValues.js +46 -0
- package/dist/actions/publish/publishTrmArtifact.d.ts +3 -0
- package/dist/actions/publish/publishTrmArtifact.js +23 -0
- package/dist/actions/publish/releaseCustTr.d.ts +3 -0
- package/dist/actions/publish/releaseCustTr.js +34 -0
- package/dist/actions/publish/releaseDevcTr.d.ts +3 -0
- package/dist/actions/publish/releaseDevcTr.js +23 -0
- package/dist/actions/publish/releaseLangTr.d.ts +3 -0
- package/dist/actions/publish/releaseLangTr.js +34 -0
- package/dist/actions/publish/releaseTadirTr.d.ts +3 -0
- package/dist/actions/publish/releaseTadirTr.js +23 -0
- package/dist/actions/publish/setBackwardsCompatible.d.ts +3 -0
- package/dist/actions/publish/setBackwardsCompatible.js +54 -0
- package/dist/actions/publish/setCustTransports.d.ts +3 -0
- package/dist/actions/publish/setCustTransports.js +49 -0
- package/dist/actions/publish/setDevclass.d.ts +3 -0
- package/dist/actions/publish/setDevclass.js +42 -0
- package/dist/actions/publish/setDevclassObjs.d.ts +3 -0
- package/dist/actions/publish/setDevclassObjs.js +22 -0
- package/dist/actions/publish/setManifestValues.d.ts +3 -0
- package/dist/actions/publish/setManifestValues.js +111 -0
- package/dist/actions/publish/setPrivate.d.ts +3 -0
- package/dist/actions/publish/setPrivate.js +60 -0
- package/dist/actions/publish/setReadme.d.ts +3 -0
- package/dist/actions/publish/setReadme.js +47 -0
- package/dist/actions/publish/setSapEntries.d.ts +3 -0
- package/dist/actions/publish/setSapEntries.js +46 -0
- package/dist/actions/publish/setTransportTarget.d.ts +3 -0
- package/dist/actions/publish/setTransportTarget.js +63 -0
- package/dist/actions/publish/setTrmDependencies.d.ts +3 -0
- package/dist/actions/publish/setTrmDependencies.js +59 -0
- package/dist/client/IClient.d.ts +4 -0
- package/dist/{rfc/client → client}/RFCClient.d.ts +6 -4
- package/dist/{rfc/client → client}/RFCClient.js +24 -6
- package/dist/client/components/PNAME.d.ts +1 -0
- package/dist/client/components/RS38L_FNAME.d.ts +1 -0
- package/dist/{rfc → client}/components/index.d.ts +2 -0
- package/dist/{rfc → client}/components/index.js +2 -0
- package/dist/{rfc → client}/index.d.ts +2 -1
- package/dist/{rfc → client}/index.js +2 -1
- package/dist/client/struct/TFDIR.d.ts +5 -0
- package/dist/client/struct/TLINE.js +2 -0
- package/dist/{rfc → client}/struct/TMSCSYS.d.ts +1 -0
- package/dist/client/struct/TMSCSYS.js +2 -0
- package/dist/client/struct/ZTRM_INSTALLDEVC.js +2 -0
- package/dist/client/struct/ZTRM_INTEGRITY.js +2 -0
- package/dist/{rfc → client}/struct/index.d.ts +1 -0
- package/dist/{rfc → client}/struct/index.js +1 -0
- package/dist/commons/fromAbapToDate.d.ts +1 -1
- package/dist/commons/getFileSysSeparator.d.ts +1 -1
- package/dist/commons/getPackageHierarchy.d.ts +1 -1
- package/dist/commons/getPackageNamespace.d.ts +1 -1
- package/dist/commons/getParentFromHierarchy.d.ts +1 -1
- package/dist/commons/index.d.ts +0 -1
- package/dist/commons/index.js +0 -1
- package/dist/dependency/IParser.d.ts +7 -5
- package/dist/dependency/SenviParser.d.ts +4 -5
- package/dist/dependency/SenviParser.js +2 -4
- package/dist/dependency/objects/ClasSenviParser.d.ts +2 -4
- package/dist/dependency/objects/ClasSenviParser.js +3 -3
- package/dist/dependency/objects/DtelSenviParser.d.ts +2 -4
- package/dist/dependency/objects/DtelSenviParser.js +3 -3
- package/dist/dependency/objects/FugrSenviParser.d.ts +2 -4
- package/dist/dependency/objects/FugrSenviParser.js +3 -3
- package/dist/dependency/objects/FuncSenviParser.d.ts +7 -0
- package/dist/dependency/objects/FuncSenviParser.js +34 -0
- package/dist/dependency/objects/OmSenviParser.d.ts +2 -4
- package/dist/dependency/objects/OmSenviParser.js +1 -2
- package/dist/dependency/objects/ProgSenviParser.d.ts +2 -4
- package/dist/dependency/objects/ProgSenviParser.js +3 -3
- package/dist/dependency/objects/TablSenviParser.d.ts +2 -4
- package/dist/dependency/objects/TablSenviParser.js +3 -3
- package/dist/dependency/objects/ViewSenviParser.d.ts +2 -4
- package/dist/dependency/objects/ViewSenviParser.js +3 -3
- package/dist/dependency/objects/index.d.ts +1 -0
- package/dist/dependency/objects/index.js +1 -0
- package/dist/index.d.ts +0 -1
- package/dist/index.js +0 -1
- package/dist/inquirer/CliInquirer.d.ts +6 -0
- package/dist/inquirer/CliInquirer.js +49 -0
- package/dist/inquirer/IInquirer.d.ts +4 -0
- package/dist/inquirer/IInquirer.js +2 -0
- package/dist/inquirer/Inquirer.d.ts +4 -5
- package/dist/inquirer/Inquirer.js +11 -45
- package/dist/inquirer/index.d.ts +3 -1
- package/dist/inquirer/index.js +3 -1
- package/dist/inquirer/validators/validateDevclass.d.ts +2 -3
- package/dist/inquirer/validators/validateDevclass.js +4 -3
- package/dist/inquirer/validators/validateTransportTarget.d.ts +1 -2
- package/dist/logger/CliLogFileLogger.d.ts +25 -0
- package/dist/logger/CliLogFileLogger.js +92 -0
- package/dist/logger/CliLogger.d.ts +20 -0
- package/dist/logger/CliLogger.js +178 -0
- package/dist/logger/ConsoleLogger.d.ts +16 -0
- package/dist/logger/ConsoleLogger.js +74 -0
- package/dist/logger/DummyLogger.d.ts +16 -0
- package/dist/logger/DummyLogger.js +16 -0
- package/dist/logger/ILogger.d.ts +14 -0
- package/dist/logger/ILogger.js +2 -0
- package/dist/logger/Logger.d.ts +13 -18
- package/dist/logger/Logger.js +55 -196
- package/dist/logger/TreeLog.d.ts +4 -0
- package/dist/logger/TreeLog.js +2 -0
- package/dist/logger/index.d.ts +7 -2
- package/dist/logger/index.js +7 -2
- package/dist/manifest/Manifest.d.ts +1 -0
- package/dist/manifest/Manifest.js +77 -4
- package/dist/registry/Registry.d.ts +2 -3
- package/dist/registry/Registry.js +96 -26
- package/dist/systemConnector/ISystemConnector.d.ts +65 -0
- package/dist/systemConnector/ISystemConnector.js +2 -0
- package/dist/systemConnector/InstallPackage.d.ts +5 -0
- package/dist/systemConnector/InstallPackage.js +2 -0
- package/dist/systemConnector/SapMessage.d.ts +8 -0
- package/dist/systemConnector/SapMessage.js +2 -0
- package/dist/systemConnector/ServerSystemConnector.d.ts +77 -0
- package/dist/systemConnector/ServerSystemConnector.js +527 -0
- package/dist/systemConnector/SystemConnector.d.ts +61 -53
- package/dist/systemConnector/SystemConnector.js +329 -302
- package/dist/systemConnector/index.d.ts +4 -1
- package/dist/systemConnector/index.js +4 -1
- package/dist/transport/Transport.d.ts +14 -19
- package/dist/transport/Transport.js +123 -104
- package/dist/transport/TransportContent.d.ts +1 -2
- package/dist/transport/TrmTransportIdentifier.d.ts +2 -1
- package/dist/transport/TrmTransportIdentifier.js +1 -0
- package/dist/trmPackage/TransportBinary.d.ts +7 -0
- package/dist/trmPackage/TransportBinary.js +2 -0
- package/dist/trmPackage/TrmArtifact.d.ts +4 -8
- package/dist/trmPackage/TrmArtifact.js +31 -6
- package/dist/trmPackage/TrmPackage.d.ts +4 -6
- package/dist/trmPackage/TrmPackage.js +14 -17
- package/dist/trmPackage/index.d.ts +1 -0
- package/dist/trmPackage/index.js +1 -0
- package/package.json +13 -2
- package/dist/actions/checkDependencies.d.ts +0 -12
- package/dist/actions/checkDependencies.js +0 -61
- package/dist/actions/checkSapEntries.d.ts +0 -8
- package/dist/actions/checkSapEntries.js +0 -37
- package/dist/actions/findTadirDependencies.d.ts +0 -15
- package/dist/actions/findTadirDependencies.js +0 -97
- package/dist/actions/install.d.ts +0 -24
- package/dist/actions/install.js +0 -477
- package/dist/actions/installDependency.d.ts +0 -12
- package/dist/actions/installDependency.js +0 -108
- package/dist/actions/publish.d.ts +0 -22
- package/dist/actions/publish.js +0 -557
- package/dist/commons/CoreEnv.d.ts +0 -5
- package/dist/commons/CoreEnv.js +0 -9
- package/dist/logger/TraceLevel.d.ts +0 -3
- package/dist/logger/TraceLevel.js +0 -7
- package/dist/rfc/client/index.d.ts +0 -1
- package/dist/rfc/client/index.js +0 -17
- /package/dist/{rfc/components/ARBGB.js → client/IClient.js} +0 -0
- /package/dist/{rfc → client}/components/ARBGB.d.ts +0 -0
- /package/dist/{rfc/components/AS4DATE.js → client/components/ARBGB.js} +0 -0
- /package/dist/{rfc → client}/components/AS4DATE.d.ts +0 -0
- /package/dist/{rfc/components/AS4TEXT.js → client/components/AS4DATE.js} +0 -0
- /package/dist/{rfc → client}/components/AS4TEXT.d.ts +0 -0
- /package/dist/{rfc/components/AS4TIME.js → client/components/AS4TEXT.js} +0 -0
- /package/dist/{rfc → client}/components/AS4TIME.d.ts +0 -0
- /package/dist/{rfc/components/DDOPTION.js → client/components/AS4TIME.js} +0 -0
- /package/dist/{rfc → client}/components/DDOPTION.d.ts +0 -0
- /package/dist/{rfc/components/DDPOSITION.js → client/components/DDOPTION.js} +0 -0
- /package/dist/{rfc → client}/components/DDPOSITION.d.ts +0 -0
- /package/dist/{rfc/components/DDSIGN.js → client/components/DDPOSITION.js} +0 -0
- /package/dist/{rfc → client}/components/DDSIGN.d.ts +0 -0
- /package/dist/{rfc/components/DDTEXT.js → client/components/DDSIGN.js} +0 -0
- /package/dist/{rfc → client}/components/DDTEXT.d.ts +0 -0
- /package/dist/{rfc/components/DEVCLASS.js → client/components/DDTEXT.js} +0 -0
- /package/dist/{rfc → client}/components/DEVCLASS.d.ts +0 -0
- /package/dist/{rfc/components/DEVLAYER.js → client/components/DEVCLASS.js} +0 -0
- /package/dist/{rfc → client}/components/DEVLAYER.d.ts +0 -0
- /package/dist/{rfc/components/DLVUNIT.js → client/components/DEVLAYER.js} +0 -0
- /package/dist/{rfc → client}/components/DLVUNIT.d.ts +0 -0
- /package/dist/{rfc/components/FIELDNAME.js → client/components/DLVUNIT.js} +0 -0
- /package/dist/{rfc → client}/components/FIELDNAME.d.ts +0 -0
- /package/dist/{rfc/components/FILESYS_D.js → client/components/FIELDNAME.js} +0 -0
- /package/dist/{rfc → client}/components/FILESYS_D.d.ts +0 -0
- /package/dist/{rfc/components/MSGNR.js → client/components/FILESYS_D.js} +0 -0
- /package/dist/{rfc → client}/components/MSGNR.d.ts +0 -0
- /package/dist/{rfc/components/NATXT.js → client/components/MSGNR.js} +0 -0
- /package/dist/{rfc → client}/components/NATXT.d.ts +0 -0
- /package/dist/{rfc/components/PACKAUTHOR.js → client/components/NATXT.js} +0 -0
- /package/dist/{rfc → client}/components/PACKAUTHOR.d.ts +0 -0
- /package/dist/{rfc/components/PARENTCL.js → client/components/PACKAUTHOR.js} +0 -0
- /package/dist/{rfc → client}/components/PARENTCL.d.ts +0 -0
- /package/dist/{rfc/components/PFEVALUE.js → client/components/PARENTCL.js} +0 -0
- /package/dist/{rfc → client}/components/PFEVALUE.d.ts +0 -0
- /package/dist/{rfc/components/PGMID.js → client/components/PFEVALUE.js} +0 -0
- /package/dist/{rfc → client}/components/PGMID.d.ts +0 -0
- /package/dist/{rfc/components/RESPONSIBL.js → client/components/PGMID.js} +0 -0
- /package/dist/{rfc/components/SEU_OBJ.js → client/components/PNAME.js} +0 -0
- /package/dist/{rfc → client}/components/RESPONSIBL.d.ts +0 -0
- /package/dist/{rfc/components/SEU_OBJKEY.js → client/components/RESPONSIBL.js} +0 -0
- /package/dist/{rfc/components/SOBJ_NAME.js → client/components/RS38L_FNAME.js} +0 -0
- /package/dist/{rfc → client}/components/SEU_OBJ.d.ts +0 -0
- /package/dist/{rfc/components/SO_TEXT.js → client/components/SEU_OBJ.js} +0 -0
- /package/dist/{rfc → client}/components/SEU_OBJKEY.d.ts +0 -0
- /package/dist/{rfc/components/SPRAS.js → client/components/SEU_OBJKEY.js} +0 -0
- /package/dist/{rfc → client}/components/SOBJ_NAME.d.ts +0 -0
- /package/dist/{rfc/components/SRCSYSTEM.js → client/components/SOBJ_NAME.js} +0 -0
- /package/dist/{rfc → client}/components/SO_TEXT.d.ts +0 -0
- /package/dist/{rfc/components/SYCHAR512.js → client/components/SO_TEXT.js} +0 -0
- /package/dist/{rfc → client}/components/SPRAS.d.ts +0 -0
- /package/dist/{rfc/components/TABNAME.js → client/components/SPRAS.js} +0 -0
- /package/dist/{rfc → client}/components/SRCSYSTEM.d.ts +0 -0
- /package/dist/{rfc/components/TDFORMAT.js → client/components/SRCSYSTEM.js} +0 -0
- /package/dist/{rfc → client}/components/SYCHAR512.d.ts +0 -0
- /package/dist/{rfc/components/TDLINE.js → client/components/SYCHAR512.js} +0 -0
- /package/dist/{rfc → client}/components/TABNAME.d.ts +0 -0
- /package/dist/{rfc/components/TMSSYSNAM.js → client/components/TABNAME.js} +0 -0
- /package/dist/{rfc → client}/components/TDFORMAT.d.ts +0 -0
- /package/dist/{rfc/components/TRKORR.js → client/components/TDFORMAT.js} +0 -0
- /package/dist/{rfc → client}/components/TDLINE.d.ts +0 -0
- /package/dist/{rfc/components/TROBJTYPE.js → client/components/TDLINE.js} +0 -0
- /package/dist/{rfc → client}/components/TMSSYSNAM.d.ts +0 -0
- /package/dist/{rfc/components/TROBJ_NAME.js → client/components/TMSSYSNAM.js} +0 -0
- /package/dist/{rfc → client}/components/TRKORR.d.ts +0 -0
- /package/dist/{rfc/components/TRPARFLAG.js → client/components/TRKORR.js} +0 -0
- /package/dist/{rfc → client}/components/TROBJTYPE.d.ts +0 -0
- /package/dist/{rfc/components/TR_TARGET.js → client/components/TROBJTYPE.js} +0 -0
- /package/dist/{rfc → client}/components/TROBJ_NAME.d.ts +0 -0
- /package/dist/{rfc/components/ZTRM_PACKAGE_INTEGRITY.js → client/components/TROBJ_NAME.js} +0 -0
- /package/dist/{rfc → client}/components/TRPARFLAG.d.ts +0 -0
- /package/dist/{rfc/components/ZTRM_PACKAGE_NAME.js → client/components/TRPARFLAG.js} +0 -0
- /package/dist/{rfc → client}/components/TR_TARGET.d.ts +0 -0
- /package/dist/{rfc/components/ZTRM_PACKAGE_REGISTRY.js → client/components/TR_TARGET.js} +0 -0
- /package/dist/{rfc → client}/components/ZTRM_PACKAGE_INTEGRITY.d.ts +0 -0
- /package/dist/{rfc/struct/E070.js → client/components/ZTRM_PACKAGE_INTEGRITY.js} +0 -0
- /package/dist/{rfc → client}/components/ZTRM_PACKAGE_NAME.d.ts +0 -0
- /package/dist/{rfc/struct/E071.js → client/components/ZTRM_PACKAGE_NAME.js} +0 -0
- /package/dist/{rfc → client}/components/ZTRM_PACKAGE_REGISTRY.d.ts +0 -0
- /package/dist/{rfc/struct/FILESYS.js → client/components/ZTRM_PACKAGE_REGISTRY.js} +0 -0
- /package/dist/{rfc → client}/struct/E070.d.ts +0 -0
- /package/dist/{rfc/struct/KO100.js → client/struct/E070.js} +0 -0
- /package/dist/{rfc → client}/struct/E071.d.ts +0 -0
- /package/dist/{rfc/struct/LXE_TT_PACKG_LINE.js → client/struct/E071.js} +0 -0
- /package/dist/{rfc → client}/struct/FILESYS.d.ts +0 -0
- /package/dist/{rfc/struct/RFC_DB_FLD.js → client/struct/FILESYS.js} +0 -0
- /package/dist/{rfc → client}/struct/KO100.d.ts +0 -0
- /package/dist/{rfc/struct/RFC_DB_OPT.js → client/struct/KO100.js} +0 -0
- /package/dist/{rfc → client}/struct/LXE_TT_PACKG_LINE.d.ts +0 -0
- /package/dist/{rfc/struct/SCOMPKDTLN.js → client/struct/LXE_TT_PACKG_LINE.js} +0 -0
- /package/dist/{rfc → client}/struct/RFC_DB_FLD.d.ts +0 -0
- /package/dist/{rfc/struct/SENVI.js → client/struct/RFC_DB_FLD.js} +0 -0
- /package/dist/{rfc → client}/struct/RFC_DB_OPT.d.ts +0 -0
- /package/dist/{rfc/struct/STMSIQREQ.js → client/struct/RFC_DB_OPT.js} +0 -0
- /package/dist/{rfc → client}/struct/SCOMPKDTLN.d.ts +0 -0
- /package/dist/{rfc/struct/T100.js → client/struct/SCOMPKDTLN.js} +0 -0
- /package/dist/{rfc → client}/struct/SENVI.d.ts +0 -0
- /package/dist/{rfc/struct/TAB512.js → client/struct/SENVI.js} +0 -0
- /package/dist/{rfc → client}/struct/STMSIQREQ.d.ts +0 -0
- /package/dist/{rfc/struct/TADIR.js → client/struct/STMSIQREQ.js} +0 -0
- /package/dist/{rfc → client}/struct/T100.d.ts +0 -0
- /package/dist/{rfc/struct/TDEVC.js → client/struct/T100.js} +0 -0
- /package/dist/{rfc → client}/struct/TAB512.d.ts +0 -0
- /package/dist/{rfc/struct/TDEVCT.js → client/struct/TAB512.js} +0 -0
- /package/dist/{rfc → client}/struct/TADIR.d.ts +0 -0
- /package/dist/{rfc/struct/TLINE.js → client/struct/TADIR.js} +0 -0
- /package/dist/{rfc → client}/struct/TDEVC.d.ts +0 -0
- /package/dist/{rfc/struct/TMSCSYS.js → client/struct/TDEVC.js} +0 -0
- /package/dist/{rfc → client}/struct/TDEVCT.d.ts +0 -0
- /package/dist/{rfc/struct/ZTRM_INSTALLDEVC.js → client/struct/TDEVCT.js} +0 -0
- /package/dist/{rfc/struct/ZTRM_INTEGRITY.js → client/struct/TFDIR.js} +0 -0
- /package/dist/{rfc → client}/struct/TLINE.d.ts +0 -0
- /package/dist/{rfc → client}/struct/ZTRM_INSTALLDEVC.d.ts +0 -0
- /package/dist/{rfc → client}/struct/ZTRM_INTEGRITY.d.ts +0 -0
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.setCustTransports = void 0;
|
|
13
|
+
const logger_1 = require("../../logger");
|
|
14
|
+
const Inquirer_1 = require("../../inquirer/Inquirer");
|
|
15
|
+
const transport_1 = require("../../transport");
|
|
16
|
+
exports.setCustTransports = {
|
|
17
|
+
name: 'set-cust-transports',
|
|
18
|
+
filter: (context) => __awaiter(void 0, void 0, void 0, function* () {
|
|
19
|
+
if (context.parsedInput.skipCust) {
|
|
20
|
+
logger_1.Logger.log(`Skipping set CUST transports (input)`, true);
|
|
21
|
+
return false;
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
return true;
|
|
25
|
+
}
|
|
26
|
+
}),
|
|
27
|
+
run: (context) => __awaiter(void 0, void 0, void 0, function* () {
|
|
28
|
+
var customizingTransports = context.parsedInput.customizingTransports;
|
|
29
|
+
const inq1 = yield Inquirer_1.Inquirer.prompt({
|
|
30
|
+
message: `Customizing transports (separated by comma, leave blank for no customizing)`,
|
|
31
|
+
name: 'transports',
|
|
32
|
+
type: 'input',
|
|
33
|
+
when: !context.parsedInput.silent
|
|
34
|
+
});
|
|
35
|
+
customizingTransports = customizingTransports.concat((inq1.transports || '').split(',')).filter(o => o);
|
|
36
|
+
var aTransports = [];
|
|
37
|
+
if (customizingTransports.length > 0) {
|
|
38
|
+
logger_1.Logger.loading(`Reading customizing transports...`);
|
|
39
|
+
for (var trkorr of customizingTransports) {
|
|
40
|
+
trkorr = trkorr.trim().toUpperCase();
|
|
41
|
+
const mainTransport = new transport_1.Transport(trkorr);
|
|
42
|
+
const tasks = yield mainTransport.getTasks();
|
|
43
|
+
aTransports.push(mainTransport);
|
|
44
|
+
aTransports = aTransports.concat(tasks);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
context.runtime.inputCustTransports = aTransports;
|
|
48
|
+
})
|
|
49
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.setDevclass = void 0;
|
|
13
|
+
const Inquirer_1 = require("../../inquirer/Inquirer");
|
|
14
|
+
const inquirer_1 = require("../../inquirer");
|
|
15
|
+
const logger_1 = require("../../logger");
|
|
16
|
+
exports.setDevclass = {
|
|
17
|
+
name: 'set-devclass',
|
|
18
|
+
run: (context) => __awaiter(void 0, void 0, void 0, function* () {
|
|
19
|
+
var devclass = context.parsedInput.devclass;
|
|
20
|
+
if (!devclass) {
|
|
21
|
+
if (context.parsedInput.silent) {
|
|
22
|
+
throw new Error(`Running in silent mode and devclass was not set.`);
|
|
23
|
+
}
|
|
24
|
+
const inq1 = yield Inquirer_1.Inquirer.prompt({
|
|
25
|
+
type: "input",
|
|
26
|
+
message: "Package devclass",
|
|
27
|
+
name: "devclass",
|
|
28
|
+
validate: (input) => __awaiter(void 0, void 0, void 0, function* () {
|
|
29
|
+
return yield (0, inquirer_1.validateDevclass)(input);
|
|
30
|
+
})
|
|
31
|
+
});
|
|
32
|
+
devclass = inq1.devclass;
|
|
33
|
+
}
|
|
34
|
+
devclass = devclass.trim().toUpperCase();
|
|
35
|
+
const devclassValid = yield (0, inquirer_1.validateDevclass)(devclass);
|
|
36
|
+
if (devclassValid && devclassValid !== true) {
|
|
37
|
+
throw new Error(devclassValid);
|
|
38
|
+
}
|
|
39
|
+
logger_1.Logger.log(`Publish devclass: ${devclass}`, true);
|
|
40
|
+
context.parsedInput.devclass = devclass;
|
|
41
|
+
})
|
|
42
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.setDevclassObjs = void 0;
|
|
13
|
+
const systemConnector_1 = require("../../systemConnector");
|
|
14
|
+
const logger_1 = require("../../logger");
|
|
15
|
+
exports.setDevclassObjs = {
|
|
16
|
+
name: 'set-devclass-objs',
|
|
17
|
+
run: (context) => __awaiter(void 0, void 0, void 0, function* () {
|
|
18
|
+
const devclass = context.parsedInput.devclass;
|
|
19
|
+
logger_1.Logger.loading(`Reading package objects...`);
|
|
20
|
+
context.runtime.tadirObjects = yield systemConnector_1.SystemConnector.getDevclassObjects(devclass, true);
|
|
21
|
+
})
|
|
22
|
+
};
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.setManifestValues = void 0;
|
|
13
|
+
const logger_1 = require("../../logger");
|
|
14
|
+
const Inquirer_1 = require("../../inquirer/Inquirer");
|
|
15
|
+
exports.setManifestValues = {
|
|
16
|
+
name: 'set-manifest-values',
|
|
17
|
+
filter: (context) => __awaiter(void 0, void 0, void 0, function* () {
|
|
18
|
+
if (context.parsedInput.forceManifestInput || (!context.parsedInput.forceManifestInput && !context.runtime.packageExistsOnRegistry)) {
|
|
19
|
+
return true;
|
|
20
|
+
}
|
|
21
|
+
else {
|
|
22
|
+
logger_1.Logger.log(`Skip manifest input values step (force: ${context.parsedInput.forceManifestInput}, already exists: ${context.runtime.packageExistsOnRegistry})`, true);
|
|
23
|
+
return false;
|
|
24
|
+
}
|
|
25
|
+
}),
|
|
26
|
+
run: (context) => __awaiter(void 0, void 0, void 0, function* () {
|
|
27
|
+
var defaultAuthors;
|
|
28
|
+
var defaultKeywords;
|
|
29
|
+
if (context.runtime.manifest.authors) {
|
|
30
|
+
if (typeof (context.runtime.manifest.authors) === 'string') {
|
|
31
|
+
defaultAuthors = context.runtime.manifest.authors;
|
|
32
|
+
}
|
|
33
|
+
else {
|
|
34
|
+
try {
|
|
35
|
+
defaultAuthors = context.runtime.manifest.authors.map(o => {
|
|
36
|
+
if (o.name) {
|
|
37
|
+
if (o.email) {
|
|
38
|
+
return `${o.name} <${o.email}>`;
|
|
39
|
+
}
|
|
40
|
+
else {
|
|
41
|
+
return o.name;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
return o.email;
|
|
46
|
+
}
|
|
47
|
+
}).filter(s => s).join(', ');
|
|
48
|
+
}
|
|
49
|
+
catch (e) {
|
|
50
|
+
defaultAuthors = '';
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
if (context.runtime.manifest.keywords) {
|
|
55
|
+
if (typeof (context.runtime.manifest.keywords) === 'string') {
|
|
56
|
+
defaultKeywords = context.runtime.manifest.keywords;
|
|
57
|
+
}
|
|
58
|
+
else {
|
|
59
|
+
try {
|
|
60
|
+
defaultKeywords = context.runtime.manifest.keywords.filter(s => s).join(', ');
|
|
61
|
+
}
|
|
62
|
+
catch (e) {
|
|
63
|
+
defaultKeywords = '';
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
const inq1 = yield Inquirer_1.Inquirer.prompt([{
|
|
68
|
+
type: "input",
|
|
69
|
+
message: "Package short description",
|
|
70
|
+
name: "description",
|
|
71
|
+
default: context.runtime.manifest.description,
|
|
72
|
+
when: !context.parsedInput.silent
|
|
73
|
+
}, {
|
|
74
|
+
type: "input",
|
|
75
|
+
message: "Website",
|
|
76
|
+
name: "website",
|
|
77
|
+
default: context.runtime.manifest.website,
|
|
78
|
+
when: !context.parsedInput.silent
|
|
79
|
+
}, {
|
|
80
|
+
type: "input",
|
|
81
|
+
message: "Package Git repository",
|
|
82
|
+
name: "git",
|
|
83
|
+
default: context.runtime.manifest.git,
|
|
84
|
+
when: !context.parsedInput.silent
|
|
85
|
+
}, {
|
|
86
|
+
type: "input",
|
|
87
|
+
message: "Authors (separated by comma)",
|
|
88
|
+
name: "authors",
|
|
89
|
+
when: !context.parsedInput.silent,
|
|
90
|
+
default: defaultAuthors
|
|
91
|
+
}, {
|
|
92
|
+
type: "input",
|
|
93
|
+
message: "Keywords (separated by comma)",
|
|
94
|
+
name: "keywords",
|
|
95
|
+
when: !context.parsedInput.silent,
|
|
96
|
+
default: defaultKeywords
|
|
97
|
+
}, {
|
|
98
|
+
type: "input",
|
|
99
|
+
message: "License",
|
|
100
|
+
name: "license",
|
|
101
|
+
default: context.runtime.manifest.license,
|
|
102
|
+
when: !context.parsedInput.silent
|
|
103
|
+
}]);
|
|
104
|
+
context.runtime.manifest.description = context.runtime.manifest.description || inq1.description;
|
|
105
|
+
context.runtime.manifest.website = context.runtime.manifest.website || inq1.website;
|
|
106
|
+
context.runtime.manifest.git = context.runtime.manifest.git || inq1.git;
|
|
107
|
+
context.runtime.manifest.authors = context.runtime.manifest.authors || inq1.authors;
|
|
108
|
+
context.runtime.manifest.keywords = context.runtime.manifest.keywords || inq1.keywords;
|
|
109
|
+
context.runtime.manifest.license = context.runtime.manifest.license || inq1.license;
|
|
110
|
+
})
|
|
111
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.setPrivate = void 0;
|
|
13
|
+
const logger_1 = require("../../logger");
|
|
14
|
+
const Inquirer_1 = require("../../inquirer/Inquirer");
|
|
15
|
+
exports.setPrivate = {
|
|
16
|
+
name: 'set-private',
|
|
17
|
+
run: (context) => __awaiter(void 0, void 0, void 0, function* () {
|
|
18
|
+
var localPrivate;
|
|
19
|
+
var remotePrivate;
|
|
20
|
+
try {
|
|
21
|
+
const latestPublishedManifest = (yield context.runtime.dummyPackage.fetchRemoteManifest('latest')).get();
|
|
22
|
+
remotePrivate = latestPublishedManifest.private || false;
|
|
23
|
+
}
|
|
24
|
+
catch (e) {
|
|
25
|
+
logger_1.Logger.error(e.toString(), true);
|
|
26
|
+
logger_1.Logger.error(`Couldn't fetch latest remote version for private prompt`, true);
|
|
27
|
+
}
|
|
28
|
+
if (typeof (context.parsedInput.packagePrivate) !== 'boolean') {
|
|
29
|
+
localPrivate = remotePrivate;
|
|
30
|
+
}
|
|
31
|
+
else {
|
|
32
|
+
localPrivate = context.parsedInput.packagePrivate;
|
|
33
|
+
}
|
|
34
|
+
if (typeof (localPrivate) !== 'boolean') {
|
|
35
|
+
if (context.parsedInput.silent) {
|
|
36
|
+
throw new Error(`Running in silent mode and private flag was not set.`);
|
|
37
|
+
}
|
|
38
|
+
const inq1 = yield Inquirer_1.Inquirer.prompt([{
|
|
39
|
+
type: "list",
|
|
40
|
+
message: "Package type",
|
|
41
|
+
name: "private",
|
|
42
|
+
default: false,
|
|
43
|
+
choices: [{
|
|
44
|
+
name: "Public (Visible to all users)",
|
|
45
|
+
value: false
|
|
46
|
+
}, {
|
|
47
|
+
name: "Private (Visible to you and users in organization, if specified)",
|
|
48
|
+
value: true
|
|
49
|
+
}]
|
|
50
|
+
}]);
|
|
51
|
+
localPrivate = inq1.private;
|
|
52
|
+
}
|
|
53
|
+
if (typeof (remotePrivate) === 'boolean' && localPrivate !== remotePrivate) {
|
|
54
|
+
const localType = localPrivate ? 'private' : 'public';
|
|
55
|
+
const remoteType = remotePrivate ? 'private' : 'public';
|
|
56
|
+
logger_1.Logger.warning(`Changing package visibility ${remoteType} -> ${localType}`);
|
|
57
|
+
}
|
|
58
|
+
context.runtime.manifest.private = localPrivate;
|
|
59
|
+
})
|
|
60
|
+
};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.setReadme = void 0;
|
|
13
|
+
const Inquirer_1 = require("../../inquirer/Inquirer");
|
|
14
|
+
const logger_1 = require("../../logger");
|
|
15
|
+
exports.setReadme = {
|
|
16
|
+
name: 'set-readme',
|
|
17
|
+
filter: (context) => __awaiter(void 0, void 0, void 0, function* () {
|
|
18
|
+
if (context.parsedInput.silent) {
|
|
19
|
+
logger_1.Logger.log(`Skipping set readme (input)`, true);
|
|
20
|
+
return false;
|
|
21
|
+
}
|
|
22
|
+
else {
|
|
23
|
+
return true;
|
|
24
|
+
}
|
|
25
|
+
}),
|
|
26
|
+
run: (context) => __awaiter(void 0, void 0, void 0, function* () {
|
|
27
|
+
const inq1 = yield Inquirer_1.Inquirer.prompt([{
|
|
28
|
+
message: 'Write readme?',
|
|
29
|
+
type: 'confirm',
|
|
30
|
+
name: 'editReadme',
|
|
31
|
+
default: false,
|
|
32
|
+
when: !context.parsedInput.skipReadme
|
|
33
|
+
}, {
|
|
34
|
+
message: 'Write readme',
|
|
35
|
+
type: 'editor',
|
|
36
|
+
name: 'readme',
|
|
37
|
+
postfix: '.md',
|
|
38
|
+
when: (hash) => {
|
|
39
|
+
return hash.editReadme;
|
|
40
|
+
},
|
|
41
|
+
default: context.parsedInput.readme
|
|
42
|
+
}]);
|
|
43
|
+
if (inq1.readme) {
|
|
44
|
+
context.parsedInput.readme = inq1.readme;
|
|
45
|
+
}
|
|
46
|
+
})
|
|
47
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.setSapEntries = void 0;
|
|
13
|
+
const logger_1 = require("../../logger");
|
|
14
|
+
exports.setSapEntries = {
|
|
15
|
+
name: 'set-sap-entries',
|
|
16
|
+
filter: (context) => __awaiter(void 0, void 0, void 0, function* () {
|
|
17
|
+
const sapEntries = context.runtime.dependencies.sapEntries;
|
|
18
|
+
if (sapEntries.length > 0) {
|
|
19
|
+
return true;
|
|
20
|
+
}
|
|
21
|
+
else {
|
|
22
|
+
logger_1.Logger.log(`Skipping SAP entries search beacuse no SAP entries were found`, true);
|
|
23
|
+
return false;
|
|
24
|
+
}
|
|
25
|
+
}),
|
|
26
|
+
run: (context) => __awaiter(void 0, void 0, void 0, function* () {
|
|
27
|
+
const sapEntries = context.runtime.dependencies.sapEntries;
|
|
28
|
+
var tablesCounter = 0;
|
|
29
|
+
var recordsCounter = 0;
|
|
30
|
+
sapEntries.forEach(o => {
|
|
31
|
+
if (!context.runtime.manifest.sapEntries[o.table]) {
|
|
32
|
+
context.runtime.manifest.sapEntries[o.table] = [];
|
|
33
|
+
}
|
|
34
|
+
tablesCounter++;
|
|
35
|
+
o.dependencies.forEach(k => {
|
|
36
|
+
var tableKeys = k.tableDependency;
|
|
37
|
+
if (o.table === 'TADIR') {
|
|
38
|
+
delete tableKeys['DEVCLASS'];
|
|
39
|
+
}
|
|
40
|
+
context.runtime.manifest.sapEntries[o.table].push(tableKeys);
|
|
41
|
+
recordsCounter++;
|
|
42
|
+
});
|
|
43
|
+
});
|
|
44
|
+
logger_1.Logger.info(`Found ${recordsCounter} SAP entries in ${tablesCounter} tables`);
|
|
45
|
+
})
|
|
46
|
+
};
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.setTransportTarget = void 0;
|
|
13
|
+
const Inquirer_1 = require("../../inquirer/Inquirer");
|
|
14
|
+
const inquirer_1 = require("../../inquirer");
|
|
15
|
+
const systemConnector_1 = require("../../systemConnector");
|
|
16
|
+
const logger_1 = require("../../logger");
|
|
17
|
+
exports.setTransportTarget = {
|
|
18
|
+
name: 'set-transport-target',
|
|
19
|
+
run: (context) => __awaiter(void 0, void 0, void 0, function* () {
|
|
20
|
+
var trTarget = context.parsedInput.target;
|
|
21
|
+
var systemTmscsys = yield systemConnector_1.SystemConnector.getTransportTargets();
|
|
22
|
+
systemTmscsys = systemTmscsys.sort((a, b) => {
|
|
23
|
+
if (a.systyp === 'V') {
|
|
24
|
+
return -1;
|
|
25
|
+
}
|
|
26
|
+
else if (b.systyp === 'V') {
|
|
27
|
+
return 1;
|
|
28
|
+
}
|
|
29
|
+
else {
|
|
30
|
+
return 0;
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
if (!trTarget) {
|
|
34
|
+
if (context.parsedInput.silent) {
|
|
35
|
+
throw new Error(`Running in silent mode and transport target was not set.`);
|
|
36
|
+
}
|
|
37
|
+
const inq2 = yield Inquirer_1.Inquirer.prompt({
|
|
38
|
+
type: "list",
|
|
39
|
+
message: "Transport request target",
|
|
40
|
+
name: "trTarget",
|
|
41
|
+
validate: (input) => __awaiter(void 0, void 0, void 0, function* () {
|
|
42
|
+
return yield (0, inquirer_1.validateTransportTarget)(input, systemTmscsys);
|
|
43
|
+
}),
|
|
44
|
+
choices: systemTmscsys.map(o => {
|
|
45
|
+
return {
|
|
46
|
+
name: `${o.sysnam} (${o.systxt})`,
|
|
47
|
+
value: o.sysnam
|
|
48
|
+
};
|
|
49
|
+
})
|
|
50
|
+
});
|
|
51
|
+
trTarget = inq2.trTarget.trim().toUpperCase();
|
|
52
|
+
}
|
|
53
|
+
else {
|
|
54
|
+
trTarget = trTarget.trim().toUpperCase();
|
|
55
|
+
const trTargetValid = yield (0, inquirer_1.validateTransportTarget)(trTarget, systemTmscsys);
|
|
56
|
+
if (trTargetValid && trTargetValid !== true) {
|
|
57
|
+
throw new Error(trTargetValid);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
logger_1.Logger.log(`Publish target: ${trTarget}`, true);
|
|
61
|
+
context.parsedInput.trTarget = trTarget;
|
|
62
|
+
})
|
|
63
|
+
};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.setTrmDependencies = void 0;
|
|
13
|
+
const logger_1 = require("../../logger");
|
|
14
|
+
const registry_1 = require("../../registry");
|
|
15
|
+
exports.setTrmDependencies = {
|
|
16
|
+
name: 'set-trm-dependencies',
|
|
17
|
+
filter: (context) => __awaiter(void 0, void 0, void 0, function* () {
|
|
18
|
+
const trmDependencies = context.runtime.dependencies.trmDependencies;
|
|
19
|
+
if (trmDependencies.length > 0) {
|
|
20
|
+
return true;
|
|
21
|
+
}
|
|
22
|
+
else {
|
|
23
|
+
logger_1.Logger.log(`Skipping TRM dependencies search beacuse no TRM packages were found`, true);
|
|
24
|
+
return false;
|
|
25
|
+
}
|
|
26
|
+
}),
|
|
27
|
+
run: (context) => __awaiter(void 0, void 0, void 0, function* () {
|
|
28
|
+
const trmDependencies = context.runtime.dependencies.trmDependencies;
|
|
29
|
+
trmDependencies.forEach(d => {
|
|
30
|
+
const dependencyManifest = d.trmPackage.manifest.get();
|
|
31
|
+
const dependencyName = dependencyManifest.name;
|
|
32
|
+
const dependencyVersion = `^${dependencyManifest.version}`;
|
|
33
|
+
const dependencyIntegrity = d.integrity;
|
|
34
|
+
const dependencyRegistry = d.trmPackage.registry.getRegistryType() === registry_1.RegistryType.PUBLIC ? undefined : d.trmPackage.registry.endpoint;
|
|
35
|
+
var arrayIndex = context.runtime.manifest.dependencies.findIndex(o => o.name === dependencyName);
|
|
36
|
+
if (arrayIndex < 0) {
|
|
37
|
+
arrayIndex = context.runtime.manifest.dependencies.push({
|
|
38
|
+
name: dependencyName,
|
|
39
|
+
version: dependencyVersion,
|
|
40
|
+
integrity: dependencyIntegrity,
|
|
41
|
+
registry: dependencyRegistry
|
|
42
|
+
});
|
|
43
|
+
arrayIndex--;
|
|
44
|
+
}
|
|
45
|
+
context.runtime.manifest.dependencies[arrayIndex].version = dependencyVersion;
|
|
46
|
+
context.runtime.manifest.dependencies[arrayIndex].integrity = dependencyIntegrity;
|
|
47
|
+
if (registry_1.Registry.compare(d.trmPackage.registry, context.runtime.registry)) {
|
|
48
|
+
logger_1.Logger.info(`Found dependency with package "${dependencyName}", version "${dependencyVersion}"`);
|
|
49
|
+
}
|
|
50
|
+
else {
|
|
51
|
+
const dependencyRegistryName = d.trmPackage.registry.getRegistryType() === registry_1.RegistryType.PUBLIC ? 'public' : d.trmPackage.registry.endpoint;
|
|
52
|
+
logger_1.Logger.info(`Found dependency with package "${dependencyName}", version "${dependencyVersion}", registry "${dependencyRegistryName}"`);
|
|
53
|
+
}
|
|
54
|
+
if (!dependencyIntegrity) {
|
|
55
|
+
throw new Error(`Dependency "${dependencyName}", package integrity not found.`);
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
})
|
|
59
|
+
};
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
import * as components from "
|
|
3
|
-
import * as struct from "
|
|
4
|
-
|
|
2
|
+
import * as components from "./components";
|
|
3
|
+
import * as struct from "./struct";
|
|
4
|
+
import { IClient } from "./IClient";
|
|
5
|
+
export declare class RFCClient implements IClient {
|
|
5
6
|
private _rfcClient;
|
|
6
7
|
constructor(arg1: any, traceDir?: string);
|
|
7
8
|
open(): Promise<void>;
|
|
9
|
+
checkConnection(): Promise<boolean>;
|
|
8
10
|
private _call;
|
|
9
11
|
readTable(tableName: components.TABNAME, fields: struct.RFC_DB_FLD[], options?: string): Promise<any[]>;
|
|
10
12
|
getFileSystem(): Promise<struct.FILESYS>;
|
|
@@ -16,7 +18,7 @@ export declare class RFCClient {
|
|
|
16
18
|
setTransportDoc(trkorr: components.TRKORR, doc: struct.TLINE[]): Promise<void>;
|
|
17
19
|
getDevclassObjects(devclass: components.DEVCLASS): Promise<struct.TADIR[]>;
|
|
18
20
|
addToTransportRequest(trkorr: components.TRKORR, content: struct.E071[], lock: boolean): Promise<void>;
|
|
19
|
-
repositoryEnvironment(objectType: components.SEU_OBJ, objectName: components.SOBJ_NAME): Promise<struct.SENVI>;
|
|
21
|
+
repositoryEnvironment(objectType: components.SEU_OBJ, objectName: components.SOBJ_NAME): Promise<struct.SENVI[]>;
|
|
20
22
|
deleteTrkorr(trkorr: components.TRKORR): Promise<void>;
|
|
21
23
|
releaseTrkorr(trkorr: components.TRKORR, lock: boolean, timeout?: number): Promise<void>;
|
|
22
24
|
addSkipTrkorr(trkorr: components.TRKORR): Promise<void>;
|
|
@@ -34,15 +34,30 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
34
34
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35
35
|
exports.RFCClient = void 0;
|
|
36
36
|
const noderfc = __importStar(require("node-rfc"));
|
|
37
|
-
const commons_1 = require("
|
|
37
|
+
const commons_1 = require("../commons");
|
|
38
|
+
const logger_1 = require("../logger");
|
|
38
39
|
class RFCClient {
|
|
39
40
|
constructor(arg1, traceDir) {
|
|
40
41
|
process.env["RFC_TRACE_DIR"] = traceDir || process.cwd();
|
|
42
|
+
logger_1.Logger.log(`RFC_TRACE_DIR: ${process.env["RFC_TRACE_DIR"]}`, true);
|
|
41
43
|
this._rfcClient = new noderfc.Client(arg1);
|
|
42
44
|
}
|
|
43
45
|
open() {
|
|
44
46
|
return __awaiter(this, void 0, void 0, function* () {
|
|
47
|
+
logger_1.Logger.loading(`Opening RFC connection`, true);
|
|
45
48
|
yield this._rfcClient.open();
|
|
49
|
+
logger_1.Logger.success(`RFC open`, true);
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
checkConnection() {
|
|
53
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
54
|
+
if (this._rfcClient.alive) {
|
|
55
|
+
logger_1.Logger.success(`RFC open`, true);
|
|
56
|
+
}
|
|
57
|
+
else {
|
|
58
|
+
logger_1.Logger.warning(`RFC closed`, true);
|
|
59
|
+
}
|
|
60
|
+
return this._rfcClient.alive;
|
|
46
61
|
});
|
|
47
62
|
}
|
|
48
63
|
_call(fm, arg, timeout) {
|
|
@@ -69,8 +84,10 @@ class RFCClient {
|
|
|
69
84
|
timeout
|
|
70
85
|
};
|
|
71
86
|
}
|
|
87
|
+
logger_1.Logger.loading(`Executing RFC, FM ${fm}, args ${JSON.stringify(argNormalized)}, opts ${JSON.stringify(callOptions)}`, true);
|
|
72
88
|
const response = yield this._rfcClient.call(fm, argNormalized, callOptions);
|
|
73
89
|
const responseNormalized = (0, commons_1.normalize)(response);
|
|
90
|
+
logger_1.Logger.success(`RFC resonse: ${JSON.stringify(responseNormalized)}`, true);
|
|
74
91
|
return responseNormalized;
|
|
75
92
|
});
|
|
76
93
|
}
|
|
@@ -268,7 +285,8 @@ class RFCClient {
|
|
|
268
285
|
iv_object: tadir.object,
|
|
269
286
|
iv_obj_name: tadir.objName,
|
|
270
287
|
iv_devclass: tadir.devclass,
|
|
271
|
-
iv_set_genflag: tadir.genflag ? 'X' : ' '
|
|
288
|
+
iv_set_genflag: tadir.genflag ? 'X' : ' ',
|
|
289
|
+
iv_srcsystem: tadir.srcsystem
|
|
272
290
|
});
|
|
273
291
|
});
|
|
274
292
|
}
|
|
@@ -279,8 +297,8 @@ class RFCClient {
|
|
|
279
297
|
});
|
|
280
298
|
});
|
|
281
299
|
}
|
|
282
|
-
forwardTransport(
|
|
283
|
-
return __awaiter(this,
|
|
300
|
+
forwardTransport(trkorr_1, target_1, source_1) {
|
|
301
|
+
return __awaiter(this, arguments, void 0, function* (trkorr, target, source, importAgain = true) {
|
|
284
302
|
yield this._call("ZTRM_FORWARD_TR", {
|
|
285
303
|
iv_trkorr: trkorr.trim().toUpperCase(),
|
|
286
304
|
iv_target: target.trim().toUpperCase(),
|
|
@@ -345,8 +363,8 @@ class RFCClient {
|
|
|
345
363
|
});
|
|
346
364
|
});
|
|
347
365
|
}
|
|
348
|
-
trCopy(
|
|
349
|
-
return __awaiter(this,
|
|
366
|
+
trCopy(from_1, to_1) {
|
|
367
|
+
return __awaiter(this, arguments, void 0, function* (from, to, doc = false) {
|
|
350
368
|
yield this._call("ZTRM_TR_COPY", {
|
|
351
369
|
iv_from: from,
|
|
352
370
|
iv_to: to,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type PNAME = string;
|