@mittwald/cli 1.0.0-alpha.9 → 1.0.0-beta.2
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 +83 -2425
- package/bin/dev.cmd +1 -1
- package/bin/dev.js +5 -0
- package/bin/run.js +1 -1
- package/dist/commands/app/copy.d.ts +18 -0
- package/dist/commands/app/copy.js +40 -0
- package/dist/commands/app/create/node.d.ts +12 -0
- package/dist/commands/app/create/node.js +16 -0
- package/dist/commands/app/create/php.d.ts +12 -0
- package/dist/commands/app/create/php.js +13 -0
- package/dist/commands/app/create/python.d.ts +12 -0
- package/dist/commands/app/create/python.js +13 -0
- package/dist/commands/app/create/static.d.ts +12 -0
- package/dist/commands/app/create/static.js +13 -0
- package/dist/commands/app/dependency/list.d.ts +22 -0
- package/dist/commands/app/dependency/list.js +24 -0
- package/dist/commands/app/dependency/update.d.ts +20 -0
- package/dist/commands/app/dependency/update.js +104 -0
- package/dist/commands/app/dependency/versions.d.ts +24 -0
- package/dist/commands/app/dependency/versions.js +36 -0
- package/dist/commands/app/download.d.ts +20 -0
- package/dist/commands/app/download.js +60 -0
- package/dist/commands/app/get.d.ts +12 -0
- package/dist/commands/app/get.js +21 -0
- package/dist/commands/app/install/contao.d.ts +11 -0
- package/dist/commands/app/install/contao.js +23 -0
- package/dist/commands/app/install/drupal.d.ts +12 -0
- package/dist/commands/app/install/drupal.js +20 -0
- package/dist/commands/app/install/grav.d.ts +11 -0
- package/dist/commands/app/install/grav.js +21 -0
- package/dist/commands/app/install/humhub.d.ts +12 -0
- package/dist/commands/app/install/humhub.js +22 -0
- package/dist/commands/app/install/joomla.d.ts +11 -0
- package/dist/commands/app/install/joomla.js +22 -0
- package/dist/commands/app/install/magento2.d.ts +12 -0
- package/dist/commands/app/install/magento2.js +27 -0
- package/dist/commands/app/install/matomo.d.ts +11 -0
- package/dist/commands/app/install/matomo.js +20 -0
- package/dist/commands/app/install/moodle.d.ts +12 -0
- package/dist/commands/app/install/moodle.js +20 -0
- package/dist/commands/app/install/neos.d.ts +12 -0
- package/dist/commands/app/install/neos.js +20 -0
- package/dist/commands/app/install/nextcloud.d.ts +11 -0
- package/dist/commands/app/install/nextcloud.js +20 -0
- package/dist/commands/app/install/prestashop.d.ts +12 -0
- package/dist/commands/app/install/prestashop.js +22 -0
- package/dist/commands/app/install/shopware5.d.ts +11 -0
- package/dist/commands/app/install/shopware5.js +25 -0
- package/dist/commands/app/install/shopware6.d.ts +12 -0
- package/dist/commands/app/install/shopware6.js +25 -0
- package/dist/commands/app/install/typo3.d.ts +12 -0
- package/dist/commands/app/install/typo3.js +21 -0
- package/dist/commands/app/install/wordpress.d.ts +12 -0
- package/dist/commands/app/install/wordpress.js +20 -0
- package/dist/commands/app/list-upgrade-candidates.d.ts +24 -0
- package/dist/commands/app/list-upgrade-candidates.js +37 -0
- package/dist/commands/app/list.d.ts +31 -0
- package/dist/commands/app/list.js +79 -0
- package/dist/commands/app/ssh.d.ts +16 -0
- package/dist/commands/app/ssh.js +61 -0
- package/dist/commands/app/uninstall.d.ts +9 -0
- package/dist/commands/app/uninstall.js +17 -0
- package/dist/commands/app/update.d.ts +16 -0
- package/dist/commands/app/update.js +80 -0
- package/dist/commands/app/upgrade.d.ts +18 -0
- package/dist/commands/app/upgrade.js +172 -0
- package/dist/commands/app/upload.d.ts +20 -0
- package/dist/commands/app/upload.js +63 -0
- package/dist/commands/app/versions.d.ts +12 -0
- package/dist/commands/app/versions.js +44 -0
- package/dist/commands/backup/create.d.ts +21 -0
- package/dist/commands/backup/create.js +60 -0
- package/dist/commands/backup/delete.d.ts +15 -0
- package/dist/commands/backup/delete.js +18 -0
- package/dist/commands/backup/download.d.ts +29 -0
- package/dist/commands/backup/download.js +174 -0
- package/dist/commands/backup/get.d.ts +14 -0
- package/dist/commands/backup/get.js +26 -0
- package/dist/commands/backup/list.d.ts +25 -0
- package/dist/commands/backup/list.js +36 -0
- package/dist/commands/backup/schedule/create.d.ts +18 -0
- package/dist/commands/backup/schedule/create.js +57 -0
- package/dist/commands/backup/schedule/delete.d.ts +12 -0
- package/dist/commands/backup/schedule/delete.js +32 -0
- package/dist/commands/backup/schedule/list.d.ts +25 -0
- package/dist/commands/backup/schedule/list.js +28 -0
- package/dist/commands/backup/schedule/update.d.ts +18 -0
- package/dist/commands/backup/schedule/update.js +55 -0
- package/dist/commands/context/get.d.ts +10 -0
- package/dist/commands/context/get.js +74 -0
- package/dist/commands/context/reset.d.ts +6 -0
- package/dist/commands/context/reset.js +9 -0
- package/dist/commands/context/set.d.ts +12 -0
- package/dist/commands/context/set.js +42 -0
- package/dist/commands/conversation/categories.d.ts +21 -0
- package/dist/commands/conversation/categories.js +21 -0
- package/dist/commands/conversation/close.d.ts +8 -0
- package/dist/commands/conversation/close.js +20 -0
- package/dist/commands/conversation/create.d.ts +13 -0
- package/dist/commands/conversation/create.js +50 -0
- package/dist/commands/conversation/list.d.ts +21 -0
- package/dist/commands/conversation/list.js +33 -0
- package/dist/commands/conversation/reply.d.ts +13 -0
- package/dist/commands/conversation/reply.js +25 -0
- package/dist/commands/conversation/show.d.ts +9 -0
- package/dist/commands/conversation/show.js +97 -0
- package/dist/commands/conversation/show.test.js +100 -0
- package/dist/commands/cronjob/create.d.ts +24 -0
- package/dist/commands/cronjob/create.js +88 -0
- package/dist/commands/cronjob/delete.d.ts +13 -0
- package/dist/commands/cronjob/delete.js +21 -0
- package/dist/commands/cronjob/execute.d.ts +17 -0
- package/dist/commands/cronjob/execute.js +42 -0
- package/dist/commands/cronjob/execution/abort.d.ts +18 -0
- package/dist/commands/cronjob/execution/abort.js +41 -0
- package/dist/commands/cronjob/execution/get.d.ts +17 -0
- package/dist/commands/cronjob/execution/get.js +26 -0
- package/dist/commands/cronjob/execution/list.d.ts +24 -0
- package/dist/commands/cronjob/execution/list.js +39 -0
- package/dist/commands/cronjob/execution/logs.d.ts +17 -0
- package/dist/commands/cronjob/execution/logs.js +77 -0
- package/dist/commands/cronjob/get.d.ts +14 -0
- package/dist/commands/cronjob/get.js +30 -0
- package/dist/commands/cronjob/list.d.ts +25 -0
- package/dist/commands/cronjob/list.js +40 -0
- package/dist/commands/cronjob/update.d.ts +25 -0
- package/dist/commands/cronjob/update.js +84 -0
- package/dist/commands/database/mysql/charsets.d.ts +22 -0
- package/dist/commands/database/mysql/charsets.js +20 -0
- package/dist/commands/database/mysql/create.d.ts +25 -0
- package/dist/commands/database/mysql/create.js +108 -0
- package/dist/commands/database/mysql/create.test.js +117 -0
- package/dist/commands/database/mysql/delete.d.ts +13 -0
- package/dist/commands/database/mysql/delete.js +16 -0
- package/dist/commands/database/mysql/dump.d.ts +21 -0
- package/dist/commands/database/mysql/dump.js +72 -0
- package/dist/commands/database/mysql/get.d.ts +15 -0
- package/dist/commands/database/mysql/get.js +15 -0
- package/dist/commands/database/mysql/import.d.ts +21 -0
- package/dist/commands/database/mysql/import.js +72 -0
- package/dist/commands/database/mysql/list.d.ts +22 -0
- package/dist/commands/database/mysql/list.js +54 -0
- package/dist/commands/database/mysql/phpmyadmin.d.ts +8 -0
- package/dist/commands/database/mysql/phpmyadmin.js +25 -0
- package/dist/commands/database/mysql/port-forward.d.ts +17 -0
- package/dist/commands/database/mysql/port-forward.js +44 -0
- package/dist/commands/database/mysql/shell.d.ts +17 -0
- package/dist/commands/database/mysql/shell.js +38 -0
- package/dist/commands/database/mysql/user/create.d.ts +20 -0
- package/dist/commands/database/mysql/user/create.js +67 -0
- package/dist/commands/database/mysql/user/delete.d.ts +13 -0
- package/dist/commands/database/mysql/user/delete.js +30 -0
- package/dist/commands/database/mysql/user/get.d.ts +14 -0
- package/dist/commands/database/mysql/user/get.js +19 -0
- package/dist/commands/database/mysql/user/list.d.ts +22 -0
- package/dist/commands/database/mysql/user/list.js +44 -0
- package/dist/commands/database/mysql/user/update.d.ts +21 -0
- package/dist/commands/database/mysql/user/update.js +111 -0
- package/dist/commands/database/mysql/versions.d.ts +21 -0
- package/dist/commands/database/mysql/versions.js +18 -0
- package/dist/commands/database/redis/create.d.ts +20 -0
- package/dist/commands/database/redis/create.js +83 -0
- package/dist/commands/database/redis/get.d.ts +14 -0
- package/dist/commands/database/redis/get.js +19 -0
- package/dist/commands/database/redis/list.d.ts +22 -0
- package/dist/commands/database/redis/list.js +27 -0
- package/dist/commands/database/redis/shell.d.ts +16 -0
- package/dist/commands/database/redis/shell.js +37 -0
- package/dist/commands/database/redis/versions.d.ts +22 -0
- package/dist/commands/database/redis/versions.js +23 -0
- package/dist/commands/ddev/init.d.ts +34 -0
- package/dist/commands/ddev/init.js +179 -0
- package/dist/commands/ddev/render-config.d.ts +14 -0
- package/dist/commands/ddev/render-config.js +25 -0
- package/dist/commands/domain/dnszone/get.d.ts +17 -0
- package/dist/commands/domain/dnszone/get.js +32 -0
- package/dist/commands/domain/dnszone/list.d.ts +22 -0
- package/dist/commands/domain/dnszone/list.js +68 -0
- package/dist/commands/domain/dnszone/update.d.ts +28 -0
- package/dist/commands/domain/dnszone/update.js +176 -0
- package/dist/commands/domain/get.d.ts +17 -0
- package/dist/commands/domain/get.js +32 -0
- package/dist/commands/domain/list.d.ts +22 -0
- package/dist/commands/domain/list.js +40 -0
- package/dist/commands/domain/virtualhost/create.d.ts +25 -0
- package/dist/commands/domain/virtualhost/create.js +106 -0
- package/dist/commands/domain/virtualhost/delete.d.ts +13 -0
- package/dist/commands/domain/virtualhost/delete.js +21 -0
- package/dist/commands/domain/virtualhost/get.d.ts +14 -0
- package/dist/commands/domain/virtualhost/get.js +74 -0
- package/dist/commands/domain/virtualhost/list.d.ts +23 -0
- package/dist/commands/domain/virtualhost/list.js +65 -0
- package/dist/commands/login/reset.d.ts +12 -0
- package/dist/commands/login/reset.js +42 -0
- package/dist/commands/login/status.d.ts +5 -0
- package/dist/commands/login/status.js +23 -0
- package/dist/commands/login/token.d.ts +13 -0
- package/dist/commands/login/token.js +49 -0
- package/dist/commands/mail/address/create.d.ts +34 -0
- package/dist/commands/mail/address/create.js +158 -0
- package/dist/commands/mail/address/delete.d.ts +13 -0
- package/dist/commands/mail/address/delete.js +22 -0
- package/dist/commands/mail/address/get.d.ts +16 -0
- package/dist/commands/mail/address/get.js +22 -0
- package/dist/commands/mail/address/list.d.ts +22 -0
- package/dist/commands/mail/address/list.js +50 -0
- package/dist/commands/mail/address/update.d.ts +35 -0
- package/dist/commands/mail/address/update.js +167 -0
- package/dist/commands/mail/deliverybox/create.d.ts +28 -0
- package/dist/commands/mail/deliverybox/create.js +91 -0
- package/dist/commands/mail/deliverybox/delete.d.ts +13 -0
- package/dist/commands/mail/deliverybox/delete.js +22 -0
- package/dist/commands/mail/deliverybox/get.d.ts +16 -0
- package/dist/commands/mail/deliverybox/get.js +22 -0
- package/dist/commands/mail/deliverybox/list.d.ts +23 -0
- package/dist/commands/mail/deliverybox/list.js +27 -0
- package/dist/commands/mail/deliverybox/update.d.ts +28 -0
- package/dist/commands/mail/deliverybox/update.js +91 -0
- package/dist/commands/org/delete.d.ts +13 -0
- package/dist/commands/org/delete.js +16 -0
- package/dist/commands/org/get.d.ts +14 -0
- package/dist/commands/org/get.js +52 -0
- package/dist/commands/org/invite/list-own.d.ts +57 -0
- package/dist/commands/org/invite/list-own.js +39 -0
- package/dist/commands/org/invite/list.d.ts +22 -0
- package/dist/commands/org/invite/list.js +33 -0
- package/dist/commands/org/invite/revoke.d.ts +17 -0
- package/dist/commands/org/invite/revoke.js +39 -0
- package/dist/commands/org/invite.d.ts +21 -0
- package/dist/commands/org/invite.js +53 -0
- package/dist/commands/org/list.d.ts +23 -0
- package/dist/commands/org/list.js +41 -0
- package/dist/commands/org/membership/list-own.d.ts +57 -0
- package/dist/commands/org/membership/list-own.js +39 -0
- package/dist/commands/org/membership/list.d.ts +56 -0
- package/dist/commands/org/membership/list.js +44 -0
- package/dist/commands/org/membership/revoke.d.ts +17 -0
- package/dist/commands/org/membership/revoke.js +43 -0
- package/dist/commands/project/create.d.ts +21 -0
- package/dist/commands/project/create.js +66 -0
- package/dist/commands/project/delete.d.ts +13 -0
- package/dist/commands/project/delete.js +16 -0
- package/dist/commands/project/filesystem/usage.d.ts +14 -0
- package/dist/commands/project/filesystem/usage.js +58 -0
- package/dist/commands/project/get.d.ts +14 -0
- package/dist/commands/project/get.js +82 -0
- package/dist/commands/project/invite/get.d.ts +14 -0
- package/dist/commands/project/invite/get.js +19 -0
- package/dist/commands/project/invite/list-own.d.ts +21 -0
- package/dist/commands/project/invite/list-own.js +34 -0
- package/dist/commands/project/invite/list.d.ts +22 -0
- package/dist/commands/project/invite/list.js +35 -0
- package/dist/commands/project/list.d.ts +21 -0
- package/dist/commands/project/list.js +36 -0
- package/dist/commands/project/membership/get-own.d.ts +12 -0
- package/dist/commands/project/membership/get-own.js +16 -0
- package/dist/commands/project/membership/get.d.ts +14 -0
- package/dist/commands/project/membership/get.js +19 -0
- package/dist/commands/project/membership/list-own.d.ts +21 -0
- package/dist/commands/project/membership/list-own.js +31 -0
- package/dist/commands/project/membership/list.d.ts +39 -0
- package/dist/commands/project/membership/list.js +54 -0
- package/dist/commands/project/ssh.d.ts +13 -0
- package/dist/commands/project/ssh.js +23 -0
- package/dist/commands/project/update.d.ts +17 -0
- package/dist/commands/project/update.js +41 -0
- package/dist/commands/server/get.d.ts +14 -0
- package/dist/commands/server/get.js +15 -0
- package/dist/commands/server/list.d.ts +21 -0
- package/dist/commands/server/list.js +46 -0
- package/dist/commands/sftp-user/create.d.ts +21 -0
- package/dist/commands/sftp-user/create.js +79 -0
- package/dist/commands/sftp-user/delete.d.ts +13 -0
- package/dist/commands/sftp-user/delete.js +21 -0
- package/dist/commands/sftp-user/list.d.ts +24 -0
- package/dist/commands/sftp-user/list.js +30 -0
- package/dist/commands/sftp-user/update.d.ts +23 -0
- package/dist/commands/sftp-user/update.js +96 -0
- package/dist/commands/ssh-user/create.d.ts +19 -0
- package/dist/commands/ssh-user/create.js +66 -0
- package/dist/commands/ssh-user/delete.d.ts +13 -0
- package/dist/commands/ssh-user/delete.js +21 -0
- package/dist/commands/ssh-user/list.d.ts +24 -0
- package/dist/commands/ssh-user/list.js +28 -0
- package/dist/commands/ssh-user/update.d.ts +21 -0
- package/dist/commands/ssh-user/update.js +85 -0
- package/dist/commands/user/api-token/create.d.ts +16 -0
- package/dist/commands/user/api-token/create.js +53 -0
- package/dist/commands/user/api-token/get.d.ts +14 -0
- package/dist/commands/user/api-token/get.js +19 -0
- package/dist/commands/user/api-token/list.d.ts +21 -0
- package/dist/commands/user/api-token/list.js +27 -0
- package/dist/commands/user/api-token/revoke.d.ts +13 -0
- package/dist/commands/user/api-token/revoke.js +21 -0
- package/dist/commands/user/get.d.ts +15 -0
- package/dist/commands/user/get.js +20 -0
- package/dist/commands/user/session/get.d.ts +14 -0
- package/dist/commands/user/session/get.js +19 -0
- package/dist/commands/user/session/list.d.ts +21 -0
- package/dist/commands/user/session/list.js +32 -0
- package/dist/commands/user/ssh-key/create.d.ts +14 -0
- package/dist/commands/user/ssh-key/create.js +69 -0
- package/dist/commands/user/ssh-key/delete.d.ts +13 -0
- package/dist/commands/user/ssh-key/delete.js +22 -0
- package/dist/commands/user/ssh-key/get.d.ts +14 -0
- package/dist/commands/user/ssh-key/get.js +19 -0
- package/dist/commands/user/ssh-key/import.d.ts +11 -0
- package/dist/commands/user/ssh-key/import.js +56 -0
- package/dist/commands/user/ssh-key/list.d.ts +23 -0
- package/dist/commands/user/ssh-key/list.js +26 -0
- package/dist/lib/apiutil/SuccessfulResponse.d.ts +19 -0
- package/dist/lib/apiutil/SuccessfulResponse.js +1 -0
- package/dist/lib/apiutil/api_consistency.d.ts +2 -0
- package/dist/lib/apiutil/api_consistency.js +27 -0
- package/dist/lib/apiutil/api_logging.d.ts +8 -0
- package/dist/lib/apiutil/api_logging.js +20 -0
- package/dist/lib/apiutil/api_retry.d.ts +2 -0
- package/dist/lib/apiutil/api_retry.js +43 -0
- package/dist/lib/apiutil/assert_success.d.ts +3 -0
- package/dist/lib/apiutil/assert_success.js +7 -0
- package/dist/lib/auth/token.d.ts +13 -0
- package/dist/lib/auth/token.js +44 -0
- package/dist/lib/basecommands/BaseCommand.d.ts +7 -0
- package/dist/lib/basecommands/BaseCommand.js +25 -0
- package/dist/lib/basecommands/CommandFlags.d.ts +6 -0
- package/dist/lib/basecommands/CommandFlags.js +1 -0
- package/dist/lib/basecommands/DeleteBaseCommand.d.ts +12 -0
- package/dist/lib/basecommands/DeleteBaseCommand.js +43 -0
- package/dist/lib/basecommands/ExecRenderBaseCommand.d.ts +8 -0
- package/dist/lib/basecommands/ExecRenderBaseCommand.js +25 -0
- package/dist/lib/basecommands/ExtendedBaseCommand.d.ts +11 -0
- package/dist/lib/basecommands/ExtendedBaseCommand.js +28 -0
- package/dist/lib/basecommands/GetBaseCommand.d.ts +16 -0
- package/dist/lib/basecommands/GetBaseCommand.js +25 -0
- package/dist/lib/basecommands/ListBaseCommand.d.ts +30 -0
- package/dist/lib/basecommands/ListBaseCommand.js +73 -0
- package/dist/lib/basecommands/RenderBaseCommand.d.ts +22 -0
- package/dist/lib/basecommands/RenderBaseCommand.js +62 -0
- package/dist/lib/context/Context.d.ts +37 -0
- package/dist/lib/context/Context.js +65 -0
- package/dist/lib/context/ContextProvider.d.ts +6 -0
- package/dist/lib/context/ContextProvider.js +1 -0
- package/dist/lib/context/DDEVContextProvider.d.ts +21 -0
- package/dist/lib/context/DDEVContextProvider.js +81 -0
- package/dist/lib/context/FlagSet.d.ts +23 -0
- package/dist/lib/context/FlagSet.js +1 -0
- package/dist/lib/context/FlagSetBuilder.d.ts +65 -0
- package/dist/lib/context/FlagSetBuilder.js +148 -0
- package/dist/lib/context/TerraformContextProvider.d.ts +7 -0
- package/dist/lib/context/TerraformContextProvider.js +55 -0
- package/dist/lib/context/UserContextProvider.d.ts +13 -0
- package/dist/lib/context/UserContextProvider.js +54 -0
- package/dist/lib/context/WritableContextProvider.d.ts +14 -0
- package/dist/lib/context/WritableContextProvider.js +1 -0
- package/dist/lib/ddev/config.d.ts +41 -0
- package/dist/lib/ddev/config.js +28 -0
- package/dist/lib/ddev/config_builder.d.ts +18 -0
- package/dist/lib/ddev/config_builder.js +138 -0
- package/dist/lib/ddev/config_loader.d.ts +2 -0
- package/dist/lib/ddev/config_loader.js +13 -0
- package/dist/lib/ddev/config_render.d.ts +2 -0
- package/dist/lib/ddev/config_render.js +6 -0
- package/dist/lib/ddev/flags.d.ts +12 -0
- package/dist/lib/ddev/flags.js +29 -0
- package/dist/lib/ddev/init_assert.d.ts +3 -0
- package/dist/lib/ddev/init_assert.js +22 -0
- package/dist/lib/ddev/init_database.d.ts +19 -0
- package/dist/lib/ddev/init_database.js +59 -0
- package/dist/lib/ddev/init_projecttype.d.ts +32 -0
- package/dist/lib/ddev/init_projecttype.js +102 -0
- package/dist/lib/error/InteractiveInputRequiredError.d.ts +7 -0
- package/dist/lib/error/InteractiveInputRequiredError.js +11 -0
- package/dist/lib/error/UnexpectedShortIDPassedError.d.ts +5 -0
- package/dist/lib/error/UnexpectedShortIDPassedError.js +10 -0
- package/dist/lib/error/handleError.d.ts +11 -0
- package/dist/lib/error/handleError.js +21 -0
- package/dist/lib/flags/expireFlags.d.ts +7 -0
- package/dist/lib/flags/expireFlags.js +18 -0
- package/dist/lib/resources/app/Installer.d.ts +27 -0
- package/dist/lib/resources/app/Installer.js +56 -0
- package/dist/lib/resources/app/custom_installation.d.ts +7 -0
- package/dist/lib/resources/app/custom_installation.js +16 -0
- package/dist/lib/resources/app/flags.d.ts +34 -0
- package/dist/lib/resources/app/flags.js +236 -0
- package/dist/lib/resources/app/hooks.d.ts +12 -0
- package/dist/lib/resources/app/hooks.js +43 -0
- package/dist/lib/resources/app/install.d.ts +10 -0
- package/dist/lib/resources/app/install.js +42 -0
- package/dist/lib/resources/app/sync.d.ts +15 -0
- package/dist/lib/resources/app/sync.js +55 -0
- package/dist/lib/resources/app/upgrade.d.ts +1 -0
- package/dist/lib/resources/app/upgrade.js +1 -0
- package/dist/lib/resources/app/uuid.d.ts +49 -0
- package/dist/lib/resources/app/uuid.js +86 -0
- package/dist/lib/resources/app/versions.d.ts +11 -0
- package/dist/lib/resources/app/versions.js +85 -0
- package/dist/lib/resources/app/wait.d.ts +4 -0
- package/dist/lib/resources/app/wait.js +17 -0
- package/dist/lib/resources/backup/flags.d.ts +5 -0
- package/dist/lib/resources/backup/flags.js +4 -0
- package/dist/lib/resources/backup/schedule/flags.d.ts +14 -0
- package/dist/lib/resources/backup/schedule/flags.js +18 -0
- package/dist/lib/resources/conversation/flags.d.ts +6 -0
- package/dist/lib/resources/conversation/flags.js +12 -0
- package/dist/lib/resources/conversation/message_input.d.ts +10 -0
- package/dist/lib/resources/cronjob/destination.d.ts +4 -0
- package/dist/lib/resources/cronjob/destination.js +22 -0
- package/dist/lib/resources/cronjob/flags.d.ts +26 -0
- package/dist/lib/resources/cronjob/flags.js +28 -0
- package/dist/lib/resources/database/common.d.ts +9 -0
- package/dist/lib/resources/database/common.js +17 -0
- package/dist/lib/resources/database/mysql/connect.d.ts +31 -0
- package/dist/lib/resources/database/mysql/connect.js +68 -0
- package/dist/lib/resources/database/mysql/flags.d.ts +16 -0
- package/dist/lib/resources/database/mysql/flags.js +48 -0
- package/dist/lib/resources/database/mysql/temp_user.d.ts +13 -0
- package/dist/lib/resources/database/mysql/temp_user.js +52 -0
- package/dist/lib/resources/database/mysql/user/flags.d.ts +22 -0
- package/dist/lib/resources/database/mysql/user/flags.js +25 -0
- package/dist/lib/resources/database/redis/connect.d.ts +8 -0
- package/dist/lib/resources/database/redis/connect.js +21 -0
- package/dist/lib/resources/database/redis/flags.d.ts +10 -0
- package/dist/lib/resources/database/redis/flags.js +35 -0
- package/dist/lib/resources/domain/dnszone/flags.d.ts +5 -0
- package/dist/lib/resources/domain/dnszone/flags.js +19 -0
- package/dist/lib/resources/domain/dnszone/records.d.ts +18 -0
- package/dist/lib/resources/domain/dnszone/records.js +18 -0
- package/dist/lib/resources/domain/flags.d.ts +5 -0
- package/dist/lib/resources/domain/flags.js +20 -0
- package/dist/lib/resources/login/useOwnAccount.d.ts +11 -0
- package/dist/lib/resources/login/useOwnAccount.js +7 -0
- package/dist/lib/resources/mail/commons.d.ts +2 -0
- package/dist/lib/resources/mail/commons.js +9 -0
- package/dist/lib/resources/mail/flags.d.ts +10 -0
- package/dist/lib/resources/mail/flags.js +22 -0
- package/dist/lib/resources/org/flags.d.ts +6 -0
- package/dist/lib/resources/org/flags.js +10 -0
- package/dist/lib/resources/project/flags.d.ts +19 -0
- package/dist/lib/resources/project/flags.js +78 -0
- package/dist/lib/resources/project/hooks.d.ts +4 -0
- package/dist/lib/resources/project/hooks.js +11 -0
- package/dist/lib/resources/project/ingress.d.ts +2 -0
- package/dist/lib/resources/project/ingress.js +16 -0
- package/dist/lib/resources/project/shortId.d.ts +2 -0
- package/dist/lib/resources/project/shortId.js +11 -0
- package/dist/lib/resources/projectbackup/hooks.d.ts +6 -0
- package/dist/lib/resources/projectbackup/hooks.js +19 -0
- package/dist/lib/resources/server/flags.d.ts +6 -0
- package/dist/lib/resources/server/flags.js +10 -0
- package/dist/lib/resources/sftp/flags.d.ts +22 -0
- package/dist/lib/resources/sftp/flags.js +28 -0
- package/dist/lib/resources/ssh/appinstall.d.ts +3 -0
- package/dist/lib/resources/ssh/appinstall.js +28 -0
- package/dist/lib/resources/ssh/connection.d.ts +22 -0
- package/dist/lib/resources/ssh/connection.js +19 -0
- package/dist/lib/resources/ssh/doc.d.ts +10 -0
- package/dist/lib/resources/ssh/doc.js +14 -0
- package/dist/lib/resources/ssh/exec.d.ts +18 -0
- package/dist/lib/resources/ssh/exec.js +52 -0
- package/dist/lib/resources/ssh/flags.d.ts +22 -0
- package/dist/lib/resources/ssh/flags.js +43 -0
- package/dist/lib/resources/ssh/project.d.ts +3 -0
- package/dist/lib/resources/ssh/project.js +18 -0
- package/dist/lib/resources/ssh/types.d.ts +5 -0
- package/dist/lib/resources/ssh/types.js +1 -0
- package/dist/lib/units/ByteQuantity.d.ts +23 -0
- package/dist/lib/units/ByteQuantity.js +49 -0
- package/dist/lib/units/Duration.d.ts +23 -0
- package/dist/lib/units/Duration.js +57 -0
- package/dist/lib/util/fs/hasBinaryInPath.d.ts +9 -0
- package/dist/lib/util/fs/hasBinaryInPath.js +25 -0
- package/dist/lib/util/fs/isNotFound.d.ts +8 -0
- package/dist/lib/util/fs/isNotFound.js +10 -0
- package/dist/lib/util/fs/pathExists.d.ts +7 -0
- package/dist/lib/util/fs/pathExists.js +20 -0
- package/dist/lib/util/language/articleForWord.d.ts +10 -0
- package/dist/lib/util/language/articleForWord.js +12 -0
- package/dist/lib/util/maybe.d.ts +12 -0
- package/dist/lib/util/maybe.js +17 -0
- package/dist/lib/util/mergeObjects.d.ts +7 -0
- package/dist/lib/util/mergeObjects.js +12 -0
- package/dist/lib/util/password/generatePassword.d.ts +9 -0
- package/dist/lib/util/password/generatePassword.js +12 -0
- package/dist/lib/util/password/generatePasswordWithSpecialChars.d.ts +9 -0
- package/dist/lib/util/password/generatePasswordWithSpecialChars.js +24 -0
- package/dist/lib/wait.d.ts +8 -0
- package/dist/lib/wait.js +24 -0
- package/dist/rendering/Printer.d.ts +12 -0
- package/dist/rendering/Printer.js +24 -0
- package/dist/rendering/formatter/GetFormatter.d.ts +14 -0
- package/dist/rendering/formatter/GetFormatter.js +24 -0
- package/dist/rendering/formatter/ListDateColumnFormatter.d.ts +26 -0
- package/dist/rendering/formatter/ListDateColumnFormatter.js +28 -0
- package/dist/rendering/formatter/ListFormatter.d.ts +29 -0
- package/dist/rendering/formatter/ListFormatter.js +85 -0
- package/dist/rendering/formatter/Table.d.ts +48 -0
- package/dist/rendering/formatter/Table.js +44 -0
- package/dist/rendering/formatter/Table.test.d.ts +1 -0
- package/dist/rendering/formatter/Table.test.js +105 -0
- package/dist/rendering/formatter/TableCSVRenderer.d.ts +12 -0
- package/dist/rendering/formatter/TableCSVRenderer.js +41 -0
- package/dist/rendering/formatter/TableColumnRenderer.d.ts +38 -0
- package/dist/rendering/formatter/TableColumnRenderer.js +128 -0
- package/dist/rendering/formatter/TableRenderer.d.ts +15 -0
- package/dist/rendering/formatter/TableRenderer.js +1 -0
- package/dist/rendering/formatter/printHeader.d.ts +7 -0
- package/dist/rendering/formatter/printHeader.js +12 -0
- package/dist/rendering/formatter/printKeyValues.d.ts +7 -0
- package/dist/rendering/formatter/printKeyValues.js +14 -0
- package/dist/rendering/formatter/smartPad.d.ts +1 -0
- package/dist/rendering/formatter/smartPad.js +8 -0
- package/dist/rendering/formatter/smartPadOrTruncate.d.ts +1 -0
- package/dist/rendering/formatter/smartPadOrTruncate.js +5 -0
- package/dist/rendering/formatter/smartTruncate.d.ts +1 -0
- package/dist/rendering/formatter/smartTruncate.js +9 -0
- package/dist/rendering/formatter/smartTruncate.test.d.ts +1 -0
- package/dist/rendering/formatter/smartTruncate.test.js +13 -0
- package/dist/rendering/lib/getTerminalWidth.d.ts +7 -0
- package/dist/rendering/lib/getTerminalWidth.js +9 -0
- package/dist/rendering/process/components/InteractiveInputDisabled.d.ts +1 -0
- package/dist/rendering/process/components/InteractiveInputDisabled.js +3 -0
- package/dist/rendering/process/components/ProcessConfirmation.d.ts +6 -0
- package/dist/rendering/process/components/ProcessConfirmation.js +12 -0
- package/dist/rendering/process/components/ProcessConfirmationStateSummary.d.ts +5 -0
- package/dist/rendering/process/components/ProcessConfirmationStateSummary.js +18 -0
- package/dist/rendering/process/components/ProcessError.d.ts +4 -0
- package/dist/rendering/process/components/ProcessError.js +10 -0
- package/dist/rendering/process/components/ProcessInput.d.ts +6 -0
- package/dist/rendering/process/components/ProcessInput.js +15 -0
- package/dist/rendering/process/components/ProcessInputStateSummary.d.ts +5 -0
- package/dist/rendering/process/components/ProcessInputStateSummary.js +13 -0
- package/dist/rendering/process/components/ProcessSelect.d.ts +6 -0
- package/dist/rendering/process/components/ProcessSelect.js +63 -0
- package/dist/rendering/process/components/ProcessSelectStateSummary.d.ts +4 -0
- package/dist/rendering/process/components/ProcessSelectStateSummary.js +10 -0
- package/dist/rendering/process/components/ProcessState.d.ts +5 -0
- package/dist/rendering/process/components/ProcessState.js +8 -0
- package/dist/rendering/process/components/ProcessStateIcon.d.ts +5 -0
- package/dist/rendering/process/components/ProcessStateIcon.js +24 -0
- package/dist/rendering/process/components/ProcessStateSummary.d.ts +5 -0
- package/dist/rendering/process/components/ProcessStateSummary.js +34 -0
- package/dist/rendering/process/components/ProcessValidationErrors.d.ts +8 -0
- package/dist/rendering/process/components/ProcessValidationErrors.js +17 -0
- package/dist/rendering/process/process.d.ts +68 -0
- package/dist/rendering/process/process.js +49 -0
- package/dist/rendering/process/process_exec.d.ts +3 -0
- package/dist/rendering/process/process_exec.js +30 -0
- package/dist/rendering/process/process_fancy.d.ts +24 -0
- package/dist/rendering/process/process_fancy.js +166 -0
- package/dist/rendering/process/process_flags.d.ts +20 -0
- package/dist/rendering/process/process_flags.js +29 -0
- package/dist/rendering/process/process_quiet.d.ts +16 -0
- package/dist/rendering/process/process_quiet.js +43 -0
- package/dist/rendering/react/ComponentPrinter.d.ts +7 -0
- package/dist/rendering/react/components/AppInstallation/AppInstallationDetails.d.ts +9 -0
- package/dist/rendering/react/components/AppInstallation/AppInstallationDetails.js +51 -0
- package/dist/rendering/react/components/AppInstallation/AppInstallationStatus.d.ts +10 -0
- package/dist/rendering/react/components/AppInstallation/AppInstallationStatus.js +12 -0
- package/dist/rendering/react/components/AppInstallation/AppSystemSoftware.d.ts +7 -0
- package/dist/rendering/react/components/AppInstallation/AppSystemSoftware.js +18 -0
- package/dist/rendering/react/components/BooleanValue.d.ts +4 -0
- package/dist/rendering/react/components/BooleanValue.js +9 -0
- package/dist/rendering/react/components/ByteFormat.d.ts +12 -0
- package/dist/rendering/react/components/ByteFormat.js +11 -0
- package/dist/rendering/react/components/CreatedAt.js +10 -0
- package/dist/rendering/react/components/CronJob/CronJobDetails.d.ts +8 -0
- package/dist/rendering/react/components/CronJob/CronJobDetails.js +48 -0
- package/dist/rendering/react/components/DDEV/DDEVInitSuccess.d.ts +1 -0
- package/dist/rendering/react/components/DDEV/DDEVInitSuccess.js +9 -0
- package/dist/rendering/react/components/DnsZone/DnsZoneDetails.d.ts +7 -0
- package/dist/rendering/react/components/DnsZone/DnsZoneDetails.js +12 -0
- package/dist/rendering/react/components/DnsZone/DnsZoneRecords.d.ts +7 -0
- package/dist/rendering/react/components/DnsZone/DnsZoneRecords.js +17 -0
- package/dist/rendering/react/components/DnsZone/DnsZoneRecordsA.d.ts +5 -0
- package/dist/rendering/react/components/DnsZone/DnsZoneRecordsA.js +14 -0
- package/dist/rendering/react/components/DnsZone/DnsZoneRecordsAAAA.d.ts +5 -0
- package/dist/rendering/react/components/DnsZone/DnsZoneRecordsAAAA.js +14 -0
- package/dist/rendering/react/components/DnsZone/DnsZoneRecordsMX.d.ts +5 -0
- package/dist/rendering/react/components/DnsZone/DnsZoneRecordsMX.js +13 -0
- package/dist/rendering/react/components/DnsZone/DnsZoneRecordsSRV.d.ts +5 -0
- package/dist/rendering/react/components/DnsZone/DnsZoneRecordsSRV.js +9 -0
- package/dist/rendering/react/components/DnsZone/DnsZoneRecordsTXT.d.ts +5 -0
- package/dist/rendering/react/components/DnsZone/DnsZoneRecordsTXT.js +9 -0
- package/dist/rendering/react/components/DnsZone/RecordComponent.d.ts +4 -0
- package/dist/rendering/react/components/DnsZone/RecordComponent.js +1 -0
- package/dist/rendering/react/components/DnsZone/RecordSetManagedByMittwald.d.ts +1 -0
- package/dist/rendering/react/components/DnsZone/RecordSetManagedByMittwald.js +3 -0
- package/dist/rendering/react/components/DnsZone/RecordSetValues.d.ts +4 -0
- package/dist/rendering/react/components/DnsZone/RecordSetValues.js +5 -0
- package/dist/rendering/react/components/Domain/DomainBaseDetails.d.ts +7 -0
- package/dist/rendering/react/components/Domain/DomainBaseDetails.js +13 -0
- package/dist/rendering/react/components/Domain/DomainDetails.d.ts +7 -0
- package/dist/rendering/react/components/Domain/DomainDetails.js +7 -0
- package/dist/rendering/react/components/Domain/DomainHandle.d.ts +8 -0
- package/dist/rendering/react/components/Domain/DomainHandle.js +24 -0
- package/dist/rendering/react/components/Error/APIError.d.ts +13 -0
- package/dist/rendering/react/components/Error/APIError.js +41 -0
- package/dist/rendering/react/components/Error/ErrorBox.d.ts +4 -0
- package/dist/rendering/react/components/Error/ErrorBox.js +14 -0
- package/dist/rendering/react/components/Error/ErrorStack.d.ts +4 -0
- package/dist/rendering/react/components/Error/ErrorStack.js +7 -0
- package/dist/rendering/react/components/Error/ErrorText.d.ts +3 -0
- package/dist/rendering/react/components/Error/ErrorText.js +6 -0
- package/dist/rendering/react/components/Error/GenericError.d.ts +12 -0
- package/dist/rendering/react/components/Error/GenericError.js +13 -0
- package/dist/rendering/react/components/Error/InvalidArgsError.d.ts +4 -0
- package/dist/rendering/react/components/Error/InvalidArgsError.js +8 -0
- package/dist/rendering/react/components/Error/InvalidFlagsError.d.ts +6 -0
- package/dist/rendering/react/components/Error/InvalidFlagsError.js +8 -0
- package/dist/rendering/react/components/Error/UnexpectedShortIDPassedErrorBox.d.ts +4 -0
- package/dist/rendering/react/components/Error/UnexpectedShortIDPassedErrorBox.js +7 -0
- package/dist/rendering/react/components/ErrorBoundary.d.ts +20 -0
- package/dist/rendering/react/components/ErrorBoundary.js +32 -0
- package/dist/rendering/react/components/ErrorBox.d.ts +10 -0
- package/dist/rendering/react/components/ErrorBox.js +38 -0
- package/dist/rendering/react/components/FormattedDate.d.ts +8 -0
- package/dist/rendering/react/components/FormattedDate.js +16 -0
- package/dist/rendering/react/components/Ingress/DnsValidationErrors.d.ts +8 -0
- package/dist/rendering/react/components/Ingress/DnsValidationErrors.js +17 -0
- package/dist/rendering/react/components/LocalFilename.d.ts +5 -0
- package/dist/rendering/react/components/LocalFilename.js +14 -0
- package/dist/rendering/react/components/Note.d.ts +10 -0
- package/dist/rendering/react/components/Note.js +8 -0
- package/dist/rendering/react/components/OptionalValue.d.ts +13 -0
- package/dist/rendering/react/components/OptionalValue.js +16 -0
- package/dist/rendering/react/components/Organization/CustomerIDAndNumber.d.ts +7 -0
- package/dist/rendering/react/components/Organization/CustomerIDAndNumber.js +6 -0
- package/dist/rendering/react/components/Organization/OrganizationOrderEligibility.d.ts +6 -0
- package/dist/rendering/react/components/Organization/OrganizationOrderEligibility.js +9 -0
- package/dist/rendering/react/components/Organization/OrganizationOwner.d.ts +7 -0
- package/dist/rendering/react/components/Organization/OrganizationOwner.js +14 -0
- package/dist/rendering/react/components/Project/ProjectSimpleStatus.d.ts +7 -0
- package/dist/rendering/react/components/Project/ProjectSimpleStatus.js +19 -0
- package/dist/rendering/react/components/Project/ProjectStatus.d.ts +18 -0
- package/dist/rendering/react/components/Project/ProjectStatus.js +8 -0
- package/dist/rendering/react/components/ProjectBackup/ProjectBackupDetails.d.ts +7 -0
- package/dist/rendering/react/components/ProjectBackup/ProjectBackupDetails.js +29 -0
- package/dist/rendering/react/components/ProjectBackup/ProjectBackupStatus.d.ts +7 -0
- package/dist/rendering/react/components/ProjectBackup/ProjectBackupStatus.js +8 -0
- package/dist/rendering/react/components/Success.d.ts +10 -0
- package/dist/rendering/react/components/Success.js +8 -0
- package/dist/rendering/react/components/Value.d.ts +6 -0
- package/dist/rendering/react/components/Value.js +8 -0
- package/dist/rendering/react/components/Warning.d.ts +4 -0
- package/dist/rendering/react/components/Warning.js +7 -0
- package/dist/rendering/react/context.d.ts +8 -0
- package/dist/rendering/react/error.d.ts +7 -0
- package/dist/rendering/react/error.js +12 -0
- package/dist/rendering/react/hooks/useIncreaseInkStdoutColumns.d.ts +1 -0
- package/dist/rendering/react/hooks/useIncreaseInkStdoutColumns.js +9 -0
- package/dist/rendering/react/json/context.d.ts +4 -0
- package/dist/rendering/react/lib/observable-value/types.js +1 -0
- package/dist/rendering/setup/FlagSupportedSetup.d.ts +12 -0
- package/dist/rendering/setup/FlagSupportedSetup.js +22 -0
- package/dist/rendering/textformat/formatDate.d.ts +6 -0
- package/dist/rendering/textformat/formatDate.js +40 -0
- package/dist/rendering/textformat/removeLineBreaks.d.ts +6 -0
- package/dist/rendering/textformat/removeLineBreaks.js +8 -0
- package/package.json +117 -54
- package/bin/dev +0 -17
- package/dist/esm/BaseCommand.d.ts +0 -11
- package/dist/esm/BaseCommand.js +0 -44
- package/dist/esm/DeleteBaseCommand.d.ts +0 -12
- package/dist/esm/DeleteBaseCommand.js +0 -43
- package/dist/esm/ExtendedBaseCommand.d.ts +0 -7
- package/dist/esm/ExtendedBaseCommand.js +0 -16
- package/dist/esm/Flags.d.ts +0 -1
- package/dist/esm/Flags.js +0 -1
- package/dist/esm/Formatter.d.ts +0 -18
- package/dist/esm/Formatter.js +0 -33
- package/dist/esm/GetBaseCommand.d.ts +0 -17
- package/dist/esm/GetBaseCommand.js +0 -27
- package/dist/esm/Helpers.d.ts +0 -6
- package/dist/esm/Helpers.js +0 -30
- package/dist/esm/ListBaseCommand.d.ts +0 -20
- package/dist/esm/ListBaseCommand.js +0 -60
- package/dist/esm/Printer.d.ts +0 -15
- package/dist/esm/Printer.js +0 -30
- package/dist/esm/Translator.d.ts +0 -6
- package/dist/esm/Translator.js +0 -64
- package/dist/esm/commands/app/delete.d.ts +0 -12
- package/dist/esm/commands/app/delete.js +0 -45
- package/dist/esm/commands/app/dependency/getSystemsoftware.d.ts +0 -3
- package/dist/esm/commands/app/dependency/getSystemsoftware.js +0 -6
- package/dist/esm/commands/app/dependency/getSystemsoftwareversion.d.ts +0 -3
- package/dist/esm/commands/app/dependency/getSystemsoftwareversion.js +0 -6
- package/dist/esm/commands/app/dependency/listSystemsoftwares.d.ts +0 -9
- package/dist/esm/commands/app/dependency/listSystemsoftwares.js +0 -6
- package/dist/esm/commands/app/dependency/listSystemsoftwareversions.d.ts +0 -9
- package/dist/esm/commands/app/dependency/listSystemsoftwareversions.js +0 -6
- package/dist/esm/commands/app/get.d.ts +0 -3
- package/dist/esm/commands/app/get.js +0 -6
- package/dist/esm/commands/app/install/wordpress.d.ts +0 -14
- package/dist/esm/commands/app/install/wordpress.js +0 -76
- package/dist/esm/commands/app/list.d.ts +0 -16
- package/dist/esm/commands/app/list.js +0 -64
- package/dist/esm/commands/app/versions.d.ts +0 -12
- package/dist/esm/commands/app/versions.js +0 -53
- package/dist/esm/commands/article/get.d.ts +0 -3
- package/dist/esm/commands/article/get.js +0 -6
- package/dist/esm/commands/article/list.d.ts +0 -9
- package/dist/esm/commands/article/list.js +0 -6
- package/dist/esm/commands/context/get.d.ts +0 -10
- package/dist/esm/commands/context/get.js +0 -39
- package/dist/esm/commands/context/set.d.ts +0 -11
- package/dist/esm/commands/context/set.js +0 -37
- package/dist/esm/commands/contract/getBaseItemOfContract.d.ts +0 -3
- package/dist/esm/commands/contract/getBaseItemOfContract.js +0 -6
- package/dist/esm/commands/contract/getDetailOfContract.d.ts +0 -3
- package/dist/esm/commands/contract/getDetailOfContract.js +0 -6
- package/dist/esm/commands/contract/getDetailOfContractByDomain.d.ts +0 -3
- package/dist/esm/commands/contract/getDetailOfContractByDomain.js +0 -6
- package/dist/esm/commands/contract/getDetailOfContractByProject.d.ts +0 -3
- package/dist/esm/commands/contract/getDetailOfContractByProject.js +0 -6
- package/dist/esm/commands/contract/getDetailOfContractByServer.d.ts +0 -3
- package/dist/esm/commands/contract/getDetailOfContractByServer.js +0 -6
- package/dist/esm/commands/contract/getDetailOfContractItem.d.ts +0 -3
- package/dist/esm/commands/contract/getDetailOfContractItem.js +0 -6
- package/dist/esm/commands/contract/getNextTerminationDateForItem.d.ts +0 -3
- package/dist/esm/commands/contract/getNextTerminationDateForItem.js +0 -6
- package/dist/esm/commands/contract/invoiceDetailOfInvoice.d.ts +0 -3
- package/dist/esm/commands/contract/invoiceDetailOfInvoice.js +0 -6
- package/dist/esm/commands/contract/invoiceGetDetailOfInvoiceSettings.d.ts +0 -3
- package/dist/esm/commands/contract/invoiceGetDetailOfInvoiceSettings.js +0 -6
- package/dist/esm/commands/contract/invoiceListCustomerInvoices.d.ts +0 -9
- package/dist/esm/commands/contract/invoiceListCustomerInvoices.js +0 -6
- package/dist/esm/commands/contract/listContracts.d.ts +0 -9
- package/dist/esm/commands/contract/listContracts.js +0 -6
- package/dist/esm/commands/contract/orderGetOrder.d.ts +0 -3
- package/dist/esm/commands/contract/orderGetOrder.js +0 -6
- package/dist/esm/commands/contract/orderListCustomerOrders.d.ts +0 -9
- package/dist/esm/commands/contract/orderListCustomerOrders.js +0 -6
- package/dist/esm/commands/contract/orderListProjectOrders.d.ts +0 -9
- package/dist/esm/commands/contract/orderListProjectOrders.js +0 -6
- package/dist/esm/commands/conversation/categories.d.ts +0 -11
- package/dist/esm/commands/conversation/categories.js +0 -16
- package/dist/esm/commands/conversation/close.d.ts +0 -8
- package/dist/esm/commands/conversation/close.js +0 -24
- package/dist/esm/commands/conversation/create.d.ts +0 -13
- package/dist/esm/commands/conversation/create.js +0 -50
- package/dist/esm/commands/conversation/list.d.ts +0 -11
- package/dist/esm/commands/conversation/list.js +0 -28
- package/dist/esm/commands/conversation/reply.d.ts +0 -13
- package/dist/esm/commands/conversation/reply.js +0 -30
- package/dist/esm/commands/conversation/show.d.ts +0 -8
- package/dist/esm/commands/conversation/show.js +0 -78
- package/dist/esm/commands/conversation/show2.d.ts +0 -11
- package/dist/esm/commands/conversation/show2.js +0 -40
- package/dist/esm/commands/database/mysql/charsets.d.ts +0 -9
- package/dist/esm/commands/database/mysql/charsets.js +0 -6
- package/dist/esm/commands/database/mysql/get.d.ts +0 -3
- package/dist/esm/commands/database/mysql/get.js +0 -6
- package/dist/esm/commands/database/mysql/list.d.ts +0 -11
- package/dist/esm/commands/database/mysql/list.js +0 -54
- package/dist/esm/commands/database/mysql/user/get.d.ts +0 -3
- package/dist/esm/commands/database/mysql/user/get.js +0 -6
- package/dist/esm/commands/database/mysql/user/getMysqlUserPhpMyAdminUrl.d.ts +0 -3
- package/dist/esm/commands/database/mysql/user/getMysqlUserPhpMyAdminUrl.js +0 -7
- package/dist/esm/commands/database/mysql/user/list.d.ts +0 -9
- package/dist/esm/commands/database/mysql/user/list.js +0 -6
- package/dist/esm/commands/database/mysql/versions.d.ts +0 -9
- package/dist/esm/commands/database/mysql/versions.js +0 -6
- package/dist/esm/commands/database/redis/get.d.ts +0 -3
- package/dist/esm/commands/database/redis/get.js +0 -6
- package/dist/esm/commands/database/redis/list.d.ts +0 -9
- package/dist/esm/commands/database/redis/list.js +0 -6
- package/dist/esm/commands/database/redis/versions.d.ts +0 -9
- package/dist/esm/commands/database/redis/versions.js +0 -6
- package/dist/esm/commands/domain/dnszone/get.d.ts +0 -3
- package/dist/esm/commands/domain/dnszone/get.js +0 -6
- package/dist/esm/commands/domain/dnszone/list.d.ts +0 -3
- package/dist/esm/commands/domain/dnszone/list.js +0 -6
- package/dist/esm/commands/domain/get-handle.d.ts +0 -3
- package/dist/esm/commands/domain/get-handle.js +0 -6
- package/dist/esm/commands/domain/get.d.ts +0 -3
- package/dist/esm/commands/domain/get.js +0 -6
- package/dist/esm/commands/domain/list.d.ts +0 -17
- package/dist/esm/commands/domain/list.js +0 -20
- package/dist/esm/commands/domain/ownership/get.d.ts +0 -3
- package/dist/esm/commands/domain/ownership/get.js +0 -6
- package/dist/esm/commands/domain/ownership/list.d.ts +0 -9
- package/dist/esm/commands/domain/ownership/list.js +0 -6
- package/dist/esm/commands/domain/tld/get.d.ts +0 -3
- package/dist/esm/commands/domain/tld/get.js +0 -6
- package/dist/esm/commands/domain/tld/list.d.ts +0 -9
- package/dist/esm/commands/domain/tld/list.js +0 -6
- package/dist/esm/commands/domain/virtualhost/get.d.ts +0 -3
- package/dist/esm/commands/domain/virtualhost/get.js +0 -6
- package/dist/esm/commands/domain/virtualhost/list.d.ts +0 -20
- package/dist/esm/commands/domain/virtualhost/list.js +0 -52
- package/dist/esm/commands/login/reset.d.ts +0 -12
- package/dist/esm/commands/login/reset.js +0 -39
- package/dist/esm/commands/login/status.d.ts +0 -5
- package/dist/esm/commands/login/status.js +0 -29
- package/dist/esm/commands/login/token.d.ts +0 -10
- package/dist/esm/commands/login/token.js +0 -40
- package/dist/esm/commands/mail/address/create.d.ts +0 -20
- package/dist/esm/commands/mail/address/create.js +0 -61
- package/dist/esm/commands/mail/address/delete.d.ts +0 -13
- package/dist/esm/commands/mail/address/delete.js +0 -22
- package/dist/esm/commands/mail/address/get.d.ts +0 -3
- package/dist/esm/commands/mail/address/get.js +0 -6
- package/dist/esm/commands/mail/address/list.d.ts +0 -20
- package/dist/esm/commands/mail/address/list.js +0 -63
- package/dist/esm/commands/mail/deliverybox/get.d.ts +0 -3
- package/dist/esm/commands/mail/deliverybox/get.js +0 -6
- package/dist/esm/commands/mail/deliverybox/list.d.ts +0 -12
- package/dist/esm/commands/mail/deliverybox/list.js +0 -25
- package/dist/esm/commands/org/can-order.d.ts +0 -3
- package/dist/esm/commands/org/can-order.js +0 -6
- package/dist/esm/commands/org/get.d.ts +0 -3
- package/dist/esm/commands/org/get.js +0 -6
- package/dist/esm/commands/org/invite/get.d.ts +0 -3
- package/dist/esm/commands/org/invite/get.js +0 -6
- package/dist/esm/commands/org/invite/list-own.d.ts +0 -9
- package/dist/esm/commands/org/invite/list-own.js +0 -6
- package/dist/esm/commands/org/invite/list.d.ts +0 -9
- package/dist/esm/commands/org/invite/list.js +0 -6
- package/dist/esm/commands/org/list.d.ts +0 -11
- package/dist/esm/commands/org/list.js +0 -28
- package/dist/esm/commands/org/membership/get.d.ts +0 -3
- package/dist/esm/commands/org/membership/get.js +0 -6
- package/dist/esm/commands/org/membership/list-own.d.ts +0 -9
- package/dist/esm/commands/org/membership/list-own.js +0 -6
- package/dist/esm/commands/org/membership/list.d.ts +0 -9
- package/dist/esm/commands/org/membership/list.js +0 -6
- package/dist/esm/commands/project/backup/get.d.ts +0 -3
- package/dist/esm/commands/project/backup/get.js +0 -6
- package/dist/esm/commands/project/backup/list.d.ts +0 -19
- package/dist/esm/commands/project/backup/list.js +0 -32
- package/dist/esm/commands/project/backupschedule/get.d.ts +0 -3
- package/dist/esm/commands/project/backupschedule/get.js +0 -6
- package/dist/esm/commands/project/backupschedule/list.d.ts +0 -13
- package/dist/esm/commands/project/backupschedule/list.js +0 -21
- package/dist/esm/commands/project/create.d.ts +0 -18
- package/dist/esm/commands/project/create.js +0 -65
- package/dist/esm/commands/project/cronjob/execution/get.d.ts +0 -16
- package/dist/esm/commands/project/cronjob/execution/get.js +0 -27
- package/dist/esm/commands/project/cronjob/execution/list.d.ts +0 -18
- package/dist/esm/commands/project/cronjob/execution/list.js +0 -42
- package/dist/esm/commands/project/cronjob/execution/logs.d.ts +0 -15
- package/dist/esm/commands/project/cronjob/execution/logs.js +0 -74
- package/dist/esm/commands/project/cronjob/get.d.ts +0 -3
- package/dist/esm/commands/project/cronjob/get.js +0 -6
- package/dist/esm/commands/project/cronjob/list.d.ts +0 -19
- package/dist/esm/commands/project/cronjob/list.js +0 -45
- package/dist/esm/commands/project/delete.d.ts +0 -14
- package/dist/esm/commands/project/delete.js +0 -20
- package/dist/esm/commands/project/filesystem/usage.d.ts +0 -14
- package/dist/esm/commands/project/filesystem/usage.js +0 -53
- package/dist/esm/commands/project/get.d.ts +0 -14
- package/dist/esm/commands/project/get.js +0 -78
- package/dist/esm/commands/project/invite/get.d.ts +0 -3
- package/dist/esm/commands/project/invite/get.js +0 -6
- package/dist/esm/commands/project/invite/list-own.d.ts +0 -11
- package/dist/esm/commands/project/invite/list-own.js +0 -29
- package/dist/esm/commands/project/invite/list.d.ts +0 -12
- package/dist/esm/commands/project/invite/list.js +0 -32
- package/dist/esm/commands/project/list-react.d.ts +0 -11
- package/dist/esm/commands/project/list-react.js +0 -42
- package/dist/esm/commands/project/list.d.ts +0 -12
- package/dist/esm/commands/project/list.js +0 -33
- package/dist/esm/commands/project/membership/get-own.d.ts +0 -4
- package/dist/esm/commands/project/membership/get-own.js +0 -11
- package/dist/esm/commands/project/membership/get.d.ts +0 -3
- package/dist/esm/commands/project/membership/get.js +0 -6
- package/dist/esm/commands/project/membership/list-own.d.ts +0 -11
- package/dist/esm/commands/project/membership/list-own.js +0 -28
- package/dist/esm/commands/project/membership/list.d.ts +0 -25
- package/dist/esm/commands/project/membership/list.js +0 -46
- package/dist/esm/commands/project/sftp-user/list.d.ts +0 -13
- package/dist/esm/commands/project/sftp-user/list.js +0 -24
- package/dist/esm/commands/project/ssh-user/list.d.ts +0 -13
- package/dist/esm/commands/project/ssh-user/list.js +0 -24
- package/dist/esm/commands/project/ssh.d.ts +0 -8
- package/dist/esm/commands/project/ssh.js +0 -26
- package/dist/esm/commands/project/update.d.ts +0 -8
- package/dist/esm/commands/project/update.js +0 -12
- package/dist/esm/commands/server/get.d.ts +0 -3
- package/dist/esm/commands/server/get.js +0 -6
- package/dist/esm/commands/server/list.d.ts +0 -11
- package/dist/esm/commands/server/list.js +0 -41
- package/dist/esm/commands/user/api-token/create.d.ts +0 -17
- package/dist/esm/commands/user/api-token/create.js +0 -64
- package/dist/esm/commands/user/api-token/get.d.ts +0 -3
- package/dist/esm/commands/user/api-token/get.js +0 -6
- package/dist/esm/commands/user/api-token/list.d.ts +0 -11
- package/dist/esm/commands/user/api-token/list.js +0 -23
- package/dist/esm/commands/user/api-token/revoke.d.ts +0 -13
- package/dist/esm/commands/user/api-token/revoke.js +0 -21
- package/dist/esm/commands/user/get.d.ts +0 -3
- package/dist/esm/commands/user/get.js +0 -6
- package/dist/esm/commands/user/session/get.d.ts +0 -3
- package/dist/esm/commands/user/session/get.js +0 -6
- package/dist/esm/commands/user/session/list.d.ts +0 -11
- package/dist/esm/commands/user/session/list.js +0 -26
- package/dist/esm/commands/user/ssh-key/create.d.ts +0 -13
- package/dist/esm/commands/user/ssh-key/create.js +0 -77
- package/dist/esm/commands/user/ssh-key/delete.d.ts +0 -13
- package/dist/esm/commands/user/ssh-key/delete.js +0 -22
- package/dist/esm/commands/user/ssh-key/get.d.ts +0 -3
- package/dist/esm/commands/user/ssh-key/get.js +0 -6
- package/dist/esm/commands/user/ssh-key/list.d.ts +0 -11
- package/dist/esm/commands/user/ssh-key/list.js +0 -21
- package/dist/esm/generated/app/getApp.d.ts +0 -16
- package/dist/esm/generated/app/getApp.js +0 -25
- package/dist/esm/generated/app/getAppinstallation.d.ts +0 -16
- package/dist/esm/generated/app/getAppinstallation.js +0 -25
- package/dist/esm/generated/app/getAppversion.d.ts +0 -16
- package/dist/esm/generated/app/getAppversion.js +0 -29
- package/dist/esm/generated/app/getSystemsoftware.d.ts +0 -16
- package/dist/esm/generated/app/getSystemsoftware.js +0 -25
- package/dist/esm/generated/app/getSystemsoftwareversion.d.ts +0 -16
- package/dist/esm/generated/app/getSystemsoftwareversion.js +0 -29
- package/dist/esm/generated/app/listAppinstallations.d.ts +0 -13
- package/dist/esm/generated/app/listAppinstallations.js +0 -24
- package/dist/esm/generated/app/listApps.d.ts +0 -13
- package/dist/esm/generated/app/listApps.js +0 -17
- package/dist/esm/generated/app/listAppversions.d.ts +0 -13
- package/dist/esm/generated/app/listAppversions.js +0 -24
- package/dist/esm/generated/app/listSystemsoftwares.d.ts +0 -13
- package/dist/esm/generated/app/listSystemsoftwares.js +0 -17
- package/dist/esm/generated/app/listSystemsoftwareversions.d.ts +0 -13
- package/dist/esm/generated/app/listSystemsoftwareversions.js +0 -24
- package/dist/esm/generated/app/retrieveStatus.d.ts +0 -14
- package/dist/esm/generated/app/retrieveStatus.js +0 -24
- package/dist/esm/generated/article/getArticle.d.ts +0 -16
- package/dist/esm/generated/article/getArticle.js +0 -25
- package/dist/esm/generated/article/listArticles.d.ts +0 -13
- package/dist/esm/generated/article/listArticles.js +0 -17
- package/dist/esm/generated/backup/getProjectBackup.d.ts +0 -16
- package/dist/esm/generated/backup/getProjectBackup.js +0 -25
- package/dist/esm/generated/backup/getProjectBackupSchedule.d.ts +0 -16
- package/dist/esm/generated/backup/getProjectBackupSchedule.js +0 -25
- package/dist/esm/generated/backup/listProjectBackupSchedules.d.ts +0 -13
- package/dist/esm/generated/backup/listProjectBackupSchedules.js +0 -24
- package/dist/esm/generated/backup/listProjectBackups.d.ts +0 -13
- package/dist/esm/generated/backup/listProjectBackups.js +0 -24
- package/dist/esm/generated/contract/getBaseItemOfContract.d.ts +0 -14
- package/dist/esm/generated/contract/getBaseItemOfContract.js +0 -24
- package/dist/esm/generated/contract/getDetailOfContract.d.ts +0 -16
- package/dist/esm/generated/contract/getDetailOfContract.js +0 -25
- package/dist/esm/generated/contract/getDetailOfContractByDomain.d.ts +0 -14
- package/dist/esm/generated/contract/getDetailOfContractByDomain.js +0 -24
- package/dist/esm/generated/contract/getDetailOfContractByProject.d.ts +0 -14
- package/dist/esm/generated/contract/getDetailOfContractByProject.js +0 -24
- package/dist/esm/generated/contract/getDetailOfContractByServer.d.ts +0 -14
- package/dist/esm/generated/contract/getDetailOfContractByServer.js +0 -24
- package/dist/esm/generated/contract/getDetailOfContractItem.d.ts +0 -16
- package/dist/esm/generated/contract/getDetailOfContractItem.js +0 -29
- package/dist/esm/generated/contract/getNextTerminationDateForItem.d.ts +0 -15
- package/dist/esm/generated/contract/getNextTerminationDateForItem.js +0 -28
- package/dist/esm/generated/contract/invoiceDetailOfInvoice.d.ts +0 -16
- package/dist/esm/generated/contract/invoiceDetailOfInvoice.js +0 -29
- package/dist/esm/generated/contract/invoiceGetDetailOfInvoiceSettings.d.ts +0 -14
- package/dist/esm/generated/contract/invoiceGetDetailOfInvoiceSettings.js +0 -24
- package/dist/esm/generated/contract/invoiceListCustomerInvoices.d.ts +0 -13
- package/dist/esm/generated/contract/invoiceListCustomerInvoices.js +0 -24
- package/dist/esm/generated/contract/listContracts.d.ts +0 -13
- package/dist/esm/generated/contract/listContracts.js +0 -24
- package/dist/esm/generated/contract/orderGetOrder.d.ts +0 -16
- package/dist/esm/generated/contract/orderGetOrder.js +0 -25
- package/dist/esm/generated/contract/orderListCustomerOrders.d.ts +0 -13
- package/dist/esm/generated/contract/orderListCustomerOrders.js +0 -24
- package/dist/esm/generated/contract/orderListProjectOrders.d.ts +0 -13
- package/dist/esm/generated/contract/orderListProjectOrders.js +0 -24
- package/dist/esm/generated/conversation/getCategory.d.ts +0 -16
- package/dist/esm/generated/conversation/getCategory.js +0 -25
- package/dist/esm/generated/conversation/getConversation.d.ts +0 -16
- package/dist/esm/generated/conversation/getConversation.js +0 -25
- package/dist/esm/generated/conversation/listCategories.d.ts +0 -13
- package/dist/esm/generated/conversation/listCategories.js +0 -17
- package/dist/esm/generated/conversation/listConversations.d.ts +0 -13
- package/dist/esm/generated/conversation/listConversations.js +0 -17
- package/dist/esm/generated/conversation/listMessagesByConversation.d.ts +0 -13
- package/dist/esm/generated/conversation/listMessagesByConversation.js +0 -24
- package/dist/esm/generated/cronjob/getCronjob.d.ts +0 -16
- package/dist/esm/generated/cronjob/getCronjob.js +0 -25
- package/dist/esm/generated/cronjob/getExecution.d.ts +0 -16
- package/dist/esm/generated/cronjob/getExecution.js +0 -29
- package/dist/esm/generated/customer/getCustomer.d.ts +0 -16
- package/dist/esm/generated/customer/getCustomer.js +0 -25
- package/dist/esm/generated/customer/getCustomerCategory.d.ts +0 -16
- package/dist/esm/generated/customer/getCustomerCategory.js +0 -25
- package/dist/esm/generated/customer/getCustomerInvite.d.ts +0 -16
- package/dist/esm/generated/customer/getCustomerInvite.js +0 -25
- package/dist/esm/generated/customer/getCustomerMembership.d.ts +0 -16
- package/dist/esm/generated/customer/getCustomerMembership.js +0 -25
- package/dist/esm/generated/customer/getCustomerTokenInvite.d.ts +0 -14
- package/dist/esm/generated/customer/getCustomerTokenInvite.js +0 -16
- package/dist/esm/generated/customer/isCustomerLegallyCompetent.d.ts +0 -14
- package/dist/esm/generated/customer/isCustomerLegallyCompetent.js +0 -24
- package/dist/esm/generated/customer/listCustomerInvites.d.ts +0 -13
- package/dist/esm/generated/customer/listCustomerInvites.js +0 -17
- package/dist/esm/generated/customer/listCustomerMemberships.d.ts +0 -13
- package/dist/esm/generated/customer/listCustomerMemberships.js +0 -17
- package/dist/esm/generated/customer/listCustomers.d.ts +0 -13
- package/dist/esm/generated/customer/listCustomers.js +0 -17
- package/dist/esm/generated/customer/listInvitesForCustomer.d.ts +0 -13
- package/dist/esm/generated/customer/listInvitesForCustomer.js +0 -24
- package/dist/esm/generated/customer/listMembershipsForCustomer.d.ts +0 -13
- package/dist/esm/generated/customer/listMembershipsForCustomer.js +0 -24
- package/dist/esm/generated/customer/listOfCustomerCategories.d.ts +0 -13
- package/dist/esm/generated/customer/listOfCustomerCategories.js +0 -17
- package/dist/esm/generated/database/getMysqlDatabase.d.ts +0 -16
- package/dist/esm/generated/database/getMysqlDatabase.js +0 -25
- package/dist/esm/generated/database/getMysqlUser.d.ts +0 -16
- package/dist/esm/generated/database/getMysqlUser.js +0 -25
- package/dist/esm/generated/database/getMysqlUserPhpMyAdminUrl.d.ts +0 -14
- package/dist/esm/generated/database/getMysqlUserPhpMyAdminUrl.js +0 -24
- package/dist/esm/generated/database/getRedisDatabase.d.ts +0 -16
- package/dist/esm/generated/database/getRedisDatabase.js +0 -25
- package/dist/esm/generated/database/listMysqlCharsets.d.ts +0 -13
- package/dist/esm/generated/database/listMysqlCharsets.js +0 -17
- package/dist/esm/generated/database/listMysqlDatabases.d.ts +0 -13
- package/dist/esm/generated/database/listMysqlDatabases.js +0 -24
- package/dist/esm/generated/database/listMysqlUsers.d.ts +0 -13
- package/dist/esm/generated/database/listMysqlUsers.js +0 -24
- package/dist/esm/generated/database/listMysqlVersions.d.ts +0 -13
- package/dist/esm/generated/database/listMysqlVersions.js +0 -17
- package/dist/esm/generated/database/listRedisDatabases.d.ts +0 -13
- package/dist/esm/generated/database/listRedisDatabases.js +0 -24
- package/dist/esm/generated/database/listRedisVersions.d.ts +0 -13
- package/dist/esm/generated/database/listRedisVersions.js +0 -17
- package/dist/esm/generated/domain/dnsZoneGetSpecific.d.ts +0 -16
- package/dist/esm/generated/domain/dnsZoneGetSpecific.js +0 -25
- package/dist/esm/generated/domain/dnsZonesForProject.d.ts +0 -14
- package/dist/esm/generated/domain/dnsZonesForProject.js +0 -24
- package/dist/esm/generated/domain/getDomain.d.ts +0 -16
- package/dist/esm/generated/domain/getDomain.js +0 -25
- package/dist/esm/generated/domain/getHandleFields.d.ts +0 -16
- package/dist/esm/generated/domain/getHandleFields.js +0 -25
- package/dist/esm/generated/domain/getSpecificDomainOwnership.d.ts +0 -16
- package/dist/esm/generated/domain/getSpecificDomainOwnership.js +0 -25
- package/dist/esm/generated/domain/getToplevelDomain.d.ts +0 -16
- package/dist/esm/generated/domain/getToplevelDomain.js +0 -25
- package/dist/esm/generated/domain/ingressGetSpecific.d.ts +0 -16
- package/dist/esm/generated/domain/ingressGetSpecific.js +0 -25
- package/dist/esm/generated/domain/listDomainOwnerships.d.ts +0 -13
- package/dist/esm/generated/domain/listDomainOwnerships.js +0 -24
- package/dist/esm/generated/domain/listToplevelDomains.d.ts +0 -13
- package/dist/esm/generated/domain/listToplevelDomains.js +0 -17
- package/dist/esm/generated/file/getFile.d.ts +0 -16
- package/dist/esm/generated/file/getFile.js +0 -25
- package/dist/esm/generated/file/getFileMeta.d.ts +0 -14
- package/dist/esm/generated/file/getFileMeta.js +0 -24
- package/dist/esm/generated/file/getFileTokenRules.d.ts +0 -16
- package/dist/esm/generated/file/getFileTokenRules.js +0 -25
- package/dist/esm/generated/file/getFileTypeRules.d.ts +0 -16
- package/dist/esm/generated/file/getFileTypeRules.js +0 -25
- package/dist/esm/generated/mail/deliveryboxGetSpecific.d.ts +0 -16
- package/dist/esm/generated/mail/deliveryboxGetSpecific.js +0 -25
- package/dist/esm/generated/mail/deliveryboxList.d.ts +0 -13
- package/dist/esm/generated/mail/deliveryboxList.js +0 -24
- package/dist/esm/generated/mail/mailaddressGetSpecific.d.ts +0 -16
- package/dist/esm/generated/mail/mailaddressGetSpecific.js +0 -25
- package/dist/esm/generated/mail/mailaddressList.d.ts +0 -13
- package/dist/esm/generated/mail/mailaddressList.js +0 -24
- package/dist/esm/generated/mail/projectsettingGetSpecific.d.ts +0 -14
- package/dist/esm/generated/mail/projectsettingGetSpecific.js +0 -24
- package/dist/esm/generated/notification/newsletterGetInfo.d.ts +0 -14
- package/dist/esm/generated/notification/newsletterGetInfo.js +0 -16
- package/dist/esm/generated/notification/scountUnreadNotifications.d.ts +0 -14
- package/dist/esm/generated/notification/scountUnreadNotifications.js +0 -16
- package/dist/esm/generated/notification/slistNotifications.d.ts +0 -13
- package/dist/esm/generated/notification/slistNotifications.js +0 -17
- package/dist/esm/generated/project/getProject.d.ts +0 -16
- package/dist/esm/generated/project/getProject.js +0 -25
- package/dist/esm/generated/project/getProjectInvite.d.ts +0 -16
- package/dist/esm/generated/project/getProjectInvite.js +0 -25
- package/dist/esm/generated/project/getProjectMembership.d.ts +0 -16
- package/dist/esm/generated/project/getProjectMembership.js +0 -25
- package/dist/esm/generated/project/getProjectTokenInvite.d.ts +0 -14
- package/dist/esm/generated/project/getProjectTokenInvite.js +0 -16
- package/dist/esm/generated/project/getSelfMembershipForProject.d.ts +0 -14
- package/dist/esm/generated/project/getSelfMembershipForProject.js +0 -24
- package/dist/esm/generated/project/getServer.d.ts +0 -16
- package/dist/esm/generated/project/getServer.js +0 -25
- package/dist/esm/generated/project/listInvitesForProject.d.ts +0 -13
- package/dist/esm/generated/project/listInvitesForProject.js +0 -24
- package/dist/esm/generated/project/listMembershipsForProject.d.ts +0 -13
- package/dist/esm/generated/project/listMembershipsForProject.js +0 -24
- package/dist/esm/generated/project/listProjectInvites.d.ts +0 -13
- package/dist/esm/generated/project/listProjectInvites.js +0 -17
- package/dist/esm/generated/project/listProjectMemberships.d.ts +0 -13
- package/dist/esm/generated/project/listProjectMemberships.js +0 -17
- package/dist/esm/generated/project/listProjects.d.ts +0 -13
- package/dist/esm/generated/project/listProjects.js +0 -17
- package/dist/esm/generated/project/listServers.d.ts +0 -13
- package/dist/esm/generated/project/listServers.js +0 -17
- package/dist/esm/generated/sshsftpUser/sftpUserGetSftpUser.d.ts +0 -16
- package/dist/esm/generated/sshsftpUser/sftpUserGetSftpUser.js +0 -25
- package/dist/esm/generated/sshsftpUser/sftpUserListSftpUsers.d.ts +0 -13
- package/dist/esm/generated/sshsftpUser/sftpUserListSftpUsers.js +0 -24
- package/dist/esm/generated/sshsftpUser/sshUserGetSshUser.d.ts +0 -16
- package/dist/esm/generated/sshsftpUser/sshUserGetSshUser.js +0 -25
- package/dist/esm/generated/sshsftpUser/sshUserListSshUsers.d.ts +0 -13
- package/dist/esm/generated/sshsftpUser/sshUserListSshUsers.js +0 -24
- package/dist/esm/generated/user/getApiToken.d.ts +0 -16
- package/dist/esm/generated/user/getApiToken.js +0 -25
- package/dist/esm/generated/user/getEmail.d.ts +0 -14
- package/dist/esm/generated/user/getEmail.js +0 -16
- package/dist/esm/generated/user/getMfaStatus.d.ts +0 -14
- package/dist/esm/generated/user/getMfaStatus.js +0 -16
- package/dist/esm/generated/user/getOwnProfile.d.ts +0 -14
- package/dist/esm/generated/user/getOwnProfile.js +0 -16
- package/dist/esm/generated/user/getPasswordUpdatedAt.d.ts +0 -14
- package/dist/esm/generated/user/getPasswordUpdatedAt.js +0 -16
- package/dist/esm/generated/user/getPersonalizedSettings.d.ts +0 -14
- package/dist/esm/generated/user/getPersonalizedSettings.js +0 -24
- package/dist/esm/generated/user/getSession.d.ts +0 -16
- package/dist/esm/generated/user/getSession.js +0 -25
- package/dist/esm/generated/user/getSshKey.d.ts +0 -16
- package/dist/esm/generated/user/getSshKey.js +0 -25
- package/dist/esm/generated/user/getUser.d.ts +0 -14
- package/dist/esm/generated/user/getUser.js +0 -16
- package/dist/esm/generated/user/listApiTokens.d.ts +0 -13
- package/dist/esm/generated/user/listApiTokens.js +0 -17
- package/dist/esm/generated/user/listFeedback.d.ts +0 -13
- package/dist/esm/generated/user/listFeedback.js +0 -24
- package/dist/esm/generated/user/listSessions.d.ts +0 -13
- package/dist/esm/generated/user/listSessions.js +0 -17
- package/dist/esm/generated/user/listSshKeys.d.ts +0 -13
- package/dist/esm/generated/user/listSshKeys.js +0 -17
- package/dist/esm/generated/user/supportCodeRequest.d.ts +0 -14
- package/dist/esm/generated/user/supportCodeRequest.js +0 -16
- package/dist/esm/lib/app/appHelpers.d.ts +0 -4
- package/dist/esm/lib/app/appHelpers.js +0 -43
- package/dist/esm/lib/app/appVersionHelpers.d.ts +0 -5
- package/dist/esm/lib/app/appVersionHelpers.js +0 -35
- package/dist/esm/lib/bytes.d.ts +0 -1
- package/dist/esm/lib/bytes.js +0 -16
- package/dist/esm/lib/context.d.ts +0 -16
- package/dist/esm/lib/context.js +0 -42
- package/dist/esm/lib/context_flags.d.ts +0 -18
- package/dist/esm/lib/context_flags.js +0 -42
- package/dist/esm/lib/conversation/message_input.d.ts +0 -10
- package/dist/esm/lib/handleError.d.ts +0 -4
- package/dist/esm/lib/handleError.js +0 -17
- package/dist/esm/lib/mergeObjects.d.ts +0 -1
- package/dist/esm/lib/mergeObjects.js +0 -6
- package/dist/esm/lib/notify.d.ts +0 -2
- package/dist/esm/lib/notify.js +0 -5
- package/dist/esm/lib/project/flags.d.ts +0 -5
- package/dist/esm/lib/project/flags.js +0 -3
- package/dist/esm/lib/server/flags.d.ts +0 -5
- package/dist/esm/lib/server/flags.js +0 -3
- package/dist/esm/lib/viewhelpers/date.d.ts +0 -5
- package/dist/esm/lib/viewhelpers/date.js +0 -23
- package/dist/esm/lib/viewhelpers/removeLineBreaks.d.ts +0 -1
- package/dist/esm/lib/viewhelpers/removeLineBreaks.js +0 -1
- package/dist/esm/lib/viewhelpers/size.d.ts +0 -1
- package/dist/esm/lib/viewhelpers/size.js +0 -4
- package/dist/esm/lib/viewhelpers/tui.d.ts +0 -2
- package/dist/esm/lib/viewhelpers/tui.js +0 -13
- package/dist/esm/rendering/lib/getTerminalWidth.d.ts +0 -1
- package/dist/esm/rendering/lib/getTerminalWidth.js +0 -2
- package/dist/esm/rendering/react/ComponentPrinter.d.ts +0 -7
- package/dist/esm/rendering/react/ExecRenderBaseCommand.d.ts +0 -8
- package/dist/esm/rendering/react/ExecRenderBaseCommand.js +0 -15
- package/dist/esm/rendering/react/RenderBaseCommand.d.ts +0 -19
- package/dist/esm/rendering/react/RenderBaseCommand.js +0 -45
- package/dist/esm/rendering/react/components/ByteFormat.d.ts +0 -4
- package/dist/esm/rendering/react/components/ByteFormat.js +0 -12
- package/dist/esm/rendering/react/components/Conversation/ConversationMessage.d.ts +0 -8
- package/dist/esm/rendering/react/components/Conversation/ConversationMessage.js +0 -12
- package/dist/esm/rendering/react/components/Conversation/ConversationMessages.d.ts +0 -8
- package/dist/esm/rendering/react/components/Conversation/ConversationMessages.js +0 -13
- package/dist/esm/rendering/react/components/Conversation/ConversationMeta.d.ts +0 -6
- package/dist/esm/rendering/react/components/Conversation/ConversationMeta.js +0 -25
- package/dist/esm/rendering/react/components/Conversation/ConversationStatusUpdate.d.ts +0 -8
- package/dist/esm/rendering/react/components/Conversation/ConversationStatusUpdate.js +0 -6
- package/dist/esm/rendering/react/components/CreatedAt.js +0 -10
- package/dist/esm/rendering/react/components/FormattedDate.d.ts +0 -7
- package/dist/esm/rendering/react/components/FormattedDate.js +0 -18
- package/dist/esm/rendering/react/components/Note.d.ts +0 -10
- package/dist/esm/rendering/react/components/Note.js +0 -8
- package/dist/esm/rendering/react/components/ProjectReadiness.d.ts +0 -7
- package/dist/esm/rendering/react/components/ProjectReadiness.js +0 -16
- package/dist/esm/rendering/react/components/ProjectStatus.d.ts +0 -7
- package/dist/esm/rendering/react/components/ProjectStatus.js +0 -8
- package/dist/esm/rendering/react/components/Success.d.ts +0 -9
- package/dist/esm/rendering/react/components/Success.js +0 -6
- package/dist/esm/rendering/react/components/Table/BodyCell.d.ts +0 -7
- package/dist/esm/rendering/react/components/Table/BodyCell.js +0 -7
- package/dist/esm/rendering/react/components/Table/BodyRow.d.ts +0 -7
- package/dist/esm/rendering/react/components/Table/BodyRow.js +0 -7
- package/dist/esm/rendering/react/components/Table/BodyRows.d.ts +0 -7
- package/dist/esm/rendering/react/components/Table/BodyRows.js +0 -6
- package/dist/esm/rendering/react/components/Table/CellData.d.ts +0 -6
- package/dist/esm/rendering/react/components/Table/CellData.js +0 -32
- package/dist/esm/rendering/react/components/Table/CellLayout.d.ts +0 -8
- package/dist/esm/rendering/react/components/Table/CellLayout.js +0 -17
- package/dist/esm/rendering/react/components/Table/HeaderCell.d.ts +0 -7
- package/dist/esm/rendering/react/components/Table/HeaderCell.js +0 -7
- package/dist/esm/rendering/react/components/Table/HeaderRow.d.ts +0 -8
- package/dist/esm/rendering/react/components/Table/HeaderRow.js +0 -7
- package/dist/esm/rendering/react/components/Table/RowLayout.d.ts +0 -5
- package/dist/esm/rendering/react/components/Table/RowLayout.js +0 -3
- package/dist/esm/rendering/react/components/Table/Table.d.ts +0 -10
- package/dist/esm/rendering/react/components/Table/Table.js +0 -21
- package/dist/esm/rendering/react/components/Table/context.d.ts +0 -9
- package/dist/esm/rendering/react/components/Table/context.js +0 -7
- package/dist/esm/rendering/react/components/Table/index.d.ts +0 -1
- package/dist/esm/rendering/react/components/Table/index.js +0 -1
- package/dist/esm/rendering/react/components/Table/model/Cell.d.ts +0 -19
- package/dist/esm/rendering/react/components/Table/model/Cell.js +0 -24
- package/dist/esm/rendering/react/components/Table/model/Column.d.ts +0 -16
- package/dist/esm/rendering/react/components/Table/model/Column.js +0 -35
- package/dist/esm/rendering/react/components/Table/model/ColumnName.d.ts +0 -7
- package/dist/esm/rendering/react/components/Table/model/ColumnName.js +0 -17
- package/dist/esm/rendering/react/components/Table/model/ColumnOptions.d.ts +0 -25
- package/dist/esm/rendering/react/components/Table/model/ColumnOptions.js +0 -41
- package/dist/esm/rendering/react/components/Table/model/Row.d.ts +0 -14
- package/dist/esm/rendering/react/components/Table/model/Row.js +0 -37
- package/dist/esm/rendering/react/components/Table/model/Table.d.ts +0 -19
- package/dist/esm/rendering/react/components/Table/model/Table.js +0 -48
- package/dist/esm/rendering/react/components/Table/model/index.d.ts +0 -5
- package/dist/esm/rendering/react/components/Table/model/index.js +0 -5
- package/dist/esm/rendering/react/components/Value.d.ts +0 -5
- package/dist/esm/rendering/react/components/Value.js +0 -8
- package/dist/esm/rendering/react/components/WithoutLineBreaks.d.ts +0 -2
- package/dist/esm/rendering/react/components/WithoutLineBreaks.js +0 -7
- package/dist/esm/rendering/react/context.d.ts +0 -9
- package/dist/esm/rendering/react/hooks/useMyUserProfile.d.ts +0 -2
- package/dist/esm/rendering/react/hooks/useMyUserProfile.js +0 -11
- package/dist/esm/rendering/react/json/context.d.ts +0 -5
- package/dist/esm/rendering/react/measure/MeasureChildren.d.ts +0 -8
- package/dist/esm/rendering/react/measure/MeasureChildren.js +0 -19
- package/dist/esm/rendering/react/measure/MeasureContextProvider.d.ts +0 -2
- package/dist/esm/rendering/react/measure/MeasureContextProvider.js +0 -10
- package/dist/esm/rendering/react/measure/MeasureRenderer.d.ts +0 -2
- package/dist/esm/rendering/react/measure/MeasureRenderer.js +0 -22
- package/dist/esm/rendering/react/measure/context.d.ts +0 -18
- package/dist/esm/rendering/react/measure/context.js +0 -48
- package/dist/esm/rendering/react/process.d.ts +0 -42
- package/dist/esm/rendering/react/process.js +0 -24
- package/dist/esm/rendering/react/process_fancy.d.ts +0 -28
- package/dist/esm/rendering/react/process_fancy.js +0 -213
- package/dist/esm/rendering/react/process_flags.d.ts +0 -9
- package/dist/esm/rendering/react/process_flags.js +0 -15
- package/dist/esm/rendering/react/process_quiet.d.ts +0 -12
- package/dist/esm/rendering/react/process_quiet.js +0 -29
- package/dist/esm/rendering/setup/FlagSupportedSetup.d.ts +0 -15
- package/dist/esm/rendering/setup/FlagSupportedSetup.js +0 -22
- package/dist/esm/rendering/setup/TableRenderSetup.d.ts +0 -11
- package/dist/esm/rendering/setup/TableRenderSetup.js +0 -24
- package/dist/esm/rendering/setup/usePromiseSetup.d.ts +0 -12
- package/dist/esm/rendering/setup/usePromiseSetup.js +0 -11
- package/dist/esm/types.d.ts +0 -8
- /package/bin/{mw.cmd → run.cmd} +0 -0
- /package/dist/{esm/rendering/react/lib/observable-value/types.js → commands/conversation/show.test.d.ts} +0 -0
- /package/dist/{esm/types.js → commands/database/mysql/create.test.d.ts} +0 -0
- /package/dist/{esm/lib → lib/resources}/conversation/message_input.js +0 -0
- /package/dist/{esm/rendering → rendering}/react/ComponentPrinter.js +0 -0
- /package/dist/{esm/rendering → rendering}/react/components/CreatedAt.d.ts +0 -0
- /package/dist/{esm/rendering → rendering}/react/components/Filename.d.ts +0 -0
- /package/dist/{esm/rendering → rendering}/react/components/Filename.js +0 -0
- /package/dist/{esm/rendering → rendering}/react/components/Header.d.ts +0 -0
- /package/dist/{esm/rendering → rendering}/react/components/Header.js +0 -0
- /package/dist/{esm/rendering → rendering}/react/components/IDAndShortID.d.ts +0 -0
- /package/dist/{esm/rendering → rendering}/react/components/IDAndShortID.js +0 -0
- /package/dist/{esm/rendering → rendering}/react/components/JSONView.d.ts +0 -0
- /package/dist/{esm/rendering → rendering}/react/components/JSONView.js +0 -0
- /package/dist/{esm/rendering → rendering}/react/components/ListItem.d.ts +0 -0
- /package/dist/{esm/rendering → rendering}/react/components/ListItem.js +0 -0
- /package/dist/{esm/rendering/react/components → rendering/react/components/Project}/ProjectEnabled.d.ts +0 -0
- /package/dist/{esm/rendering/react/components → rendering/react/components/Project}/ProjectEnabled.js +0 -0
- /package/dist/{esm/rendering → rendering}/react/components/Render.d.ts +0 -0
- /package/dist/{esm/rendering → rendering}/react/components/Render.js +0 -0
- /package/dist/{esm/rendering → rendering}/react/components/SingleResult.d.ts +0 -0
- /package/dist/{esm/rendering → rendering}/react/components/SingleResult.js +0 -0
- /package/dist/{esm/rendering → rendering}/react/context.js +0 -0
- /package/dist/{esm/rendering → rendering}/react/json/JsonCollectionProvider.d.ts +0 -0
- /package/dist/{esm/rendering → rendering}/react/json/JsonCollectionProvider.js +0 -0
- /package/dist/{esm/rendering → rendering}/react/json/JsonRenderer.d.ts +0 -0
- /package/dist/{esm/rendering → rendering}/react/json/JsonRenderer.js +0 -0
- /package/dist/{esm/rendering → rendering}/react/json/RenderJson.d.ts +0 -0
- /package/dist/{esm/rendering → rendering}/react/json/RenderJson.js +0 -0
- /package/dist/{esm/rendering → rendering}/react/json/context.js +0 -0
- /package/dist/{esm/rendering → rendering}/react/json/lib/unpackJsonData.d.ts +0 -0
- /package/dist/{esm/rendering → rendering}/react/json/lib/unpackJsonData.js +0 -0
- /package/dist/{esm/rendering → rendering}/react/lib/observable-value/ObservableValue.d.ts +0 -0
- /package/dist/{esm/rendering → rendering}/react/lib/observable-value/ObservableValue.js +0 -0
- /package/dist/{esm/rendering → rendering}/react/lib/observable-value/types.d.ts +0 -0
- /package/dist/{esm/rendering → rendering}/react/lib/observable-value/useWatchObservableValue.d.ts +0 -0
- /package/dist/{esm/rendering → rendering}/react/lib/observable-value/useWatchObservableValue.js +0 -0
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import { assertStatus } from "@mittwald/api-client";
|
|
2
|
+
import { determineProjectTypeFromAppInstallation } from "./init_projecttype.js";
|
|
3
|
+
export class DDEVConfigBuilder {
|
|
4
|
+
apiClient;
|
|
5
|
+
constructor(apiClient) {
|
|
6
|
+
this.apiClient = apiClient;
|
|
7
|
+
}
|
|
8
|
+
async build(appInstallationId, databaseId, type) {
|
|
9
|
+
const appInstallation = await this.getAppInstallation(appInstallationId);
|
|
10
|
+
const systemSoftwares = await this.buildSystemSoftwareVersionMap(appInstallation);
|
|
11
|
+
type = await this.determineProjectType(appInstallation, type);
|
|
12
|
+
return {
|
|
13
|
+
type,
|
|
14
|
+
webserver_type: "apache-fpm",
|
|
15
|
+
php_version: this.determinePHPVersion(systemSoftwares),
|
|
16
|
+
database: await this.determineDatabaseVersion(databaseId),
|
|
17
|
+
docroot: await this.determineDocumentRoot(appInstallation),
|
|
18
|
+
web_environment: [
|
|
19
|
+
`MITTWALD_APP_INSTALLATION_ID=${appInstallation.shortId}`,
|
|
20
|
+
`MITTWALD_DATABASE_ID=${databaseId ?? ""}`,
|
|
21
|
+
],
|
|
22
|
+
hooks: this.buildHooks(type),
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
buildHooks(type) {
|
|
26
|
+
const postPull = [
|
|
27
|
+
{ "exec-host": "ddev config --project-name $DDEV_PROJECT" },
|
|
28
|
+
{ "exec-host": "ddev restart" },
|
|
29
|
+
];
|
|
30
|
+
if (type === "typo3") {
|
|
31
|
+
postPull.push({ exec: "typo3 cache:flush" }, { exec: "typo3 cache:warmup" });
|
|
32
|
+
}
|
|
33
|
+
if (type === "wordpress") {
|
|
34
|
+
postPull.push({ exec: "wp cache flush" });
|
|
35
|
+
}
|
|
36
|
+
if (type === "shopware6") {
|
|
37
|
+
postPull.push({ exec: "bin/console cache:clear" });
|
|
38
|
+
}
|
|
39
|
+
return {
|
|
40
|
+
"post-pull": postPull,
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
async determineDocumentRoot(inst) {
|
|
44
|
+
const appVersion = await this.getAppVersion(inst.appId, inst.appVersion.desired);
|
|
45
|
+
if (appVersion.docRootUserEditable && hasCustomDocumentRoot(inst)) {
|
|
46
|
+
return stripLeadingSlash(inst.customDocumentRoot);
|
|
47
|
+
}
|
|
48
|
+
return stripLeadingSlash(appVersion.docRoot);
|
|
49
|
+
}
|
|
50
|
+
async determineProjectType(inst, type) {
|
|
51
|
+
if (type !== "auto") {
|
|
52
|
+
return type;
|
|
53
|
+
}
|
|
54
|
+
const autoDetermined = await determineProjectTypeFromAppInstallation(this.apiClient, inst);
|
|
55
|
+
if (autoDetermined) {
|
|
56
|
+
return autoDetermined;
|
|
57
|
+
}
|
|
58
|
+
throw new Error("Automatic project type detection failed. Please specify the project type manually by setting the `--override-type` flag.");
|
|
59
|
+
}
|
|
60
|
+
async determineDatabaseVersion(databaseId) {
|
|
61
|
+
if (!databaseId) {
|
|
62
|
+
return undefined;
|
|
63
|
+
}
|
|
64
|
+
const mysqlDatabase = await this.determineMySQLDatabaseVersion(databaseId);
|
|
65
|
+
if (mysqlDatabase) {
|
|
66
|
+
return mysqlDatabase;
|
|
67
|
+
}
|
|
68
|
+
return undefined;
|
|
69
|
+
}
|
|
70
|
+
async determineMySQLDatabaseVersion(mysqlDatabaseId) {
|
|
71
|
+
const r = await this.apiClient.database.getMysqlDatabase({
|
|
72
|
+
mysqlDatabaseId,
|
|
73
|
+
});
|
|
74
|
+
if (r.status !== 200) {
|
|
75
|
+
return undefined;
|
|
76
|
+
}
|
|
77
|
+
return {
|
|
78
|
+
type: "mysql",
|
|
79
|
+
version: r.data.version,
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
determinePHPVersion(systemSoftwareVersions) {
|
|
83
|
+
if (!("php" in systemSoftwareVersions)) {
|
|
84
|
+
return undefined;
|
|
85
|
+
}
|
|
86
|
+
const version = systemSoftwareVersions["php"];
|
|
87
|
+
return stripPatchLevelVersion(version);
|
|
88
|
+
}
|
|
89
|
+
async buildSystemSoftwareVersionMap(inst) {
|
|
90
|
+
const versionMap = {};
|
|
91
|
+
for (const { systemSoftwareId, systemSoftwareVersion, } of inst.systemSoftware || []) {
|
|
92
|
+
const { name } = await this.getSystemSoftware(systemSoftwareId);
|
|
93
|
+
const { externalVersion } = await this.getSystemSoftwareVersion(systemSoftwareId, systemSoftwareVersion.desired);
|
|
94
|
+
versionMap[name] = externalVersion;
|
|
95
|
+
}
|
|
96
|
+
return versionMap;
|
|
97
|
+
}
|
|
98
|
+
async getSystemSoftware(systemSoftwareId) {
|
|
99
|
+
const systemSoftwareResponse = await this.apiClient.app.getSystemsoftware({
|
|
100
|
+
systemSoftwareId,
|
|
101
|
+
});
|
|
102
|
+
assertStatus(systemSoftwareResponse, 200);
|
|
103
|
+
return systemSoftwareResponse.data;
|
|
104
|
+
}
|
|
105
|
+
async getSystemSoftwareVersion(systemSoftwareId, systemSoftwareVersionId) {
|
|
106
|
+
const r = await this.apiClient.app.getSystemsoftwareversion({
|
|
107
|
+
systemSoftwareId,
|
|
108
|
+
systemSoftwareVersionId,
|
|
109
|
+
});
|
|
110
|
+
assertStatus(r, 200);
|
|
111
|
+
return r.data;
|
|
112
|
+
}
|
|
113
|
+
async getAppVersion(appId, appVersionId) {
|
|
114
|
+
const r = await this.apiClient.app.getAppversion({
|
|
115
|
+
appId,
|
|
116
|
+
appVersionId,
|
|
117
|
+
});
|
|
118
|
+
assertStatus(r, 200);
|
|
119
|
+
return r.data;
|
|
120
|
+
}
|
|
121
|
+
async getAppInstallation(appInstallationId) {
|
|
122
|
+
const r = await this.apiClient.app.getAppinstallation({
|
|
123
|
+
appInstallationId,
|
|
124
|
+
});
|
|
125
|
+
assertStatus(r, 200);
|
|
126
|
+
return r.data;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
function hasCustomDocumentRoot(inst) {
|
|
130
|
+
return inst.customDocumentRoot !== undefined;
|
|
131
|
+
}
|
|
132
|
+
function stripLeadingSlash(input) {
|
|
133
|
+
return input.replace(/^\//, "");
|
|
134
|
+
}
|
|
135
|
+
function stripPatchLevelVersion(version) {
|
|
136
|
+
const [major, minor] = version.split(".");
|
|
137
|
+
return `${major}.${minor}`;
|
|
138
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { readFile } from "fs/promises";
|
|
2
|
+
import { load } from "js-yaml";
|
|
3
|
+
import { cwd } from "process";
|
|
4
|
+
import path from "path";
|
|
5
|
+
import { pathExists } from "../util/fs/pathExists.js";
|
|
6
|
+
export async function loadDDEVConfig(baseDir = cwd()) {
|
|
7
|
+
const configPath = path.join(baseDir, ".ddev", "config.yaml");
|
|
8
|
+
if (!(await pathExists(configPath))) {
|
|
9
|
+
return undefined;
|
|
10
|
+
}
|
|
11
|
+
const existing = await readFile(".ddev/config.yaml", "utf-8");
|
|
12
|
+
return load(existing);
|
|
13
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { InferredFlags } from "@oclif/core/interfaces";
|
|
2
|
+
declare const ddevDatabaseFlags: {
|
|
3
|
+
"database-id": import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
4
|
+
"without-database": import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
5
|
+
};
|
|
6
|
+
export declare const ddevFlags: {
|
|
7
|
+
"database-id": import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
8
|
+
"without-database": import("@oclif/core/interfaces").BooleanFlag<boolean>;
|
|
9
|
+
"override-type": import("@oclif/core/interfaces").OptionFlag<string, import("@oclif/core/interfaces").CustomOptions>;
|
|
10
|
+
};
|
|
11
|
+
export type DDEVDatabaseFlags = InferredFlags<typeof ddevDatabaseFlags>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Flags } from "@oclif/core";
|
|
2
|
+
import { knownDDEVProjectTypes } from "./init_projecttype.js";
|
|
3
|
+
const ddevDatabaseFlags = {
|
|
4
|
+
"database-id": Flags.string({
|
|
5
|
+
summary: "ID of the application database",
|
|
6
|
+
description: "The ID of the database to use for the DDEV project; if set to 'auto', the command will use the database linked to the app installation.\n" +
|
|
7
|
+
"\n" +
|
|
8
|
+
"Setting a database ID (either automatically or manually) is required. To create a DDEV project without a database, set the --without-database flag.",
|
|
9
|
+
required: false,
|
|
10
|
+
default: undefined,
|
|
11
|
+
}),
|
|
12
|
+
"without-database": Flags.boolean({
|
|
13
|
+
summary: "Create a DDEV project without a database",
|
|
14
|
+
description: "Use this flag to create a DDEV project without a database; this is useful for projects that do not require a database.",
|
|
15
|
+
default: false,
|
|
16
|
+
exclusive: ["database-id"],
|
|
17
|
+
}),
|
|
18
|
+
};
|
|
19
|
+
export const ddevFlags = {
|
|
20
|
+
"override-type": Flags.string({
|
|
21
|
+
summary: "Override the type of the generated DDEV configuration",
|
|
22
|
+
default: "auto",
|
|
23
|
+
options: [...knownDDEVProjectTypes, "auto"],
|
|
24
|
+
description: "The type of the generated DDEV configuration; this can be any of the documented DDEV project types, or 'auto' (which is also the default) for automatic discovery." +
|
|
25
|
+
"\n\n" +
|
|
26
|
+
"See https://ddev.readthedocs.io/en/latest/users/configuration/config/#type for more information",
|
|
27
|
+
}),
|
|
28
|
+
...ddevDatabaseFlags,
|
|
29
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { promisify } from "util";
|
|
3
|
+
import { exec } from "child_process";
|
|
4
|
+
import { Value } from "../../rendering/react/components/Value.js";
|
|
5
|
+
import { hasBinaryInPath } from "../util/fs/hasBinaryInPath.js";
|
|
6
|
+
const execAsync = promisify(exec);
|
|
7
|
+
export async function assertDDEVIsInstalled(r) {
|
|
8
|
+
await r.runStep("check if DDEV is installed", async () => {
|
|
9
|
+
if (!(await hasBinaryInPath("ddev"))) {
|
|
10
|
+
throw new Error("this command requires DDEV to be installed");
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
export async function determineDDEVVersion(r) {
|
|
15
|
+
const { stdout } = await execAsync("ddev --version");
|
|
16
|
+
const version = stdout.trim().replace(/^ddev version +/, "");
|
|
17
|
+
r.addInfo(_jsx(InfoDDEVVersion, { version: version }));
|
|
18
|
+
return version;
|
|
19
|
+
}
|
|
20
|
+
function InfoDDEVVersion({ version }) {
|
|
21
|
+
return (_jsxs(_Fragment, { children: ["detected DDEV version: ", _jsx(Value, { children: version })] }));
|
|
22
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ProcessRenderer } from "../../rendering/process/process.js";
|
|
2
|
+
import { DDEVDatabaseFlags } from "./flags.js";
|
|
3
|
+
import { type MittwaldAPIV2, type MittwaldAPIV2Client } from "@mittwald/api-client";
|
|
4
|
+
type AppInstallation = MittwaldAPIV2.Components.Schemas.AppAppInstallation;
|
|
5
|
+
/**
|
|
6
|
+
* Determines the database ID to use for the DDEV project.
|
|
7
|
+
*
|
|
8
|
+
* This is done according to the following rules (in order of precedence):
|
|
9
|
+
*
|
|
10
|
+
* 1. If the `--without-database` flag is set, do not use a database.
|
|
11
|
+
* 2. If the `--database-id` flag is set, use the database with the given ID.
|
|
12
|
+
* 3. If the app installation has a linked database with the purpose "primary", use
|
|
13
|
+
* that database.
|
|
14
|
+
* 4. Otherwise, prompt the user to select a database from the list of databases
|
|
15
|
+
* present in the project.
|
|
16
|
+
* 5. If interactive input is not available, terminate with an error.
|
|
17
|
+
*/
|
|
18
|
+
export declare function determineDDEVDatabaseId(r: ProcessRenderer, apiClient: MittwaldAPIV2Client, flags: DDEVDatabaseFlags, appInstallation: AppInstallation): Promise<string | undefined>;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { assertStatus, } from "@mittwald/api-client";
|
|
3
|
+
import { Value } from "../../rendering/react/components/Value.js";
|
|
4
|
+
import { Text } from "ink";
|
|
5
|
+
/**
|
|
6
|
+
* Determines the database ID to use for the DDEV project.
|
|
7
|
+
*
|
|
8
|
+
* This is done according to the following rules (in order of precedence):
|
|
9
|
+
*
|
|
10
|
+
* 1. If the `--without-database` flag is set, do not use a database.
|
|
11
|
+
* 2. If the `--database-id` flag is set, use the database with the given ID.
|
|
12
|
+
* 3. If the app installation has a linked database with the purpose "primary", use
|
|
13
|
+
* that database.
|
|
14
|
+
* 4. Otherwise, prompt the user to select a database from the list of databases
|
|
15
|
+
* present in the project.
|
|
16
|
+
* 5. If interactive input is not available, terminate with an error.
|
|
17
|
+
*/
|
|
18
|
+
export async function determineDDEVDatabaseId(r, apiClient, flags, appInstallation) {
|
|
19
|
+
let databaseId = flags["database-id"];
|
|
20
|
+
const withoutDatabase = flags["without-database"];
|
|
21
|
+
if (withoutDatabase) {
|
|
22
|
+
return undefined;
|
|
23
|
+
}
|
|
24
|
+
if (databaseId === undefined) {
|
|
25
|
+
databaseId = (appInstallation.linkedDatabases ?? []).find((db) => db.purpose === "primary")?.databaseId;
|
|
26
|
+
}
|
|
27
|
+
if (databaseId !== undefined) {
|
|
28
|
+
const mysqlDatabaseResponse = await apiClient.database.getMysqlDatabase({
|
|
29
|
+
mysqlDatabaseId: databaseId,
|
|
30
|
+
});
|
|
31
|
+
assertStatus(mysqlDatabaseResponse, 200);
|
|
32
|
+
r.addInfo(_jsx(InfoDatabase, { name: mysqlDatabaseResponse.data.name }));
|
|
33
|
+
return mysqlDatabaseResponse.data.name;
|
|
34
|
+
}
|
|
35
|
+
return await promptDatabaseFromUser(r, apiClient, appInstallation);
|
|
36
|
+
}
|
|
37
|
+
async function promptDatabaseFromUser(r, apiClient, appInstallation) {
|
|
38
|
+
const { projectId } = appInstallation;
|
|
39
|
+
if (!projectId) {
|
|
40
|
+
throw new Error("app installation has no project ID");
|
|
41
|
+
}
|
|
42
|
+
const mysqlDatabaseResponse = await apiClient.database.listMysqlDatabases({
|
|
43
|
+
projectId,
|
|
44
|
+
});
|
|
45
|
+
assertStatus(mysqlDatabaseResponse, 200);
|
|
46
|
+
return await r.addSelect("select the database to use", [
|
|
47
|
+
...mysqlDatabaseResponse.data.map((db) => ({
|
|
48
|
+
value: db.name,
|
|
49
|
+
label: `${db.name} (${db.description})`,
|
|
50
|
+
})),
|
|
51
|
+
{
|
|
52
|
+
value: undefined,
|
|
53
|
+
label: "no database",
|
|
54
|
+
},
|
|
55
|
+
]);
|
|
56
|
+
}
|
|
57
|
+
function InfoDatabase({ name }) {
|
|
58
|
+
return (_jsxs(Text, { children: ["using database: ", _jsx(Value, { children: name })] }));
|
|
59
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { MittwaldAPIV2 } from "@mittwald/api-client";
|
|
2
|
+
import { MittwaldAPIV2Client } from "@mittwald/api-client";
|
|
3
|
+
import { ProcessRenderer } from "../../rendering/process/process.js";
|
|
4
|
+
type AppInstallation = MittwaldAPIV2.Components.Schemas.AppAppInstallation;
|
|
5
|
+
/**
|
|
6
|
+
* A list of all known DDEV project types. Shamelessly stolen from
|
|
7
|
+
* https://ddev.readthedocs.io/en/latest/users/configuration/config/#type
|
|
8
|
+
*/
|
|
9
|
+
export declare const knownDDEVProjectTypes: readonly ["backdrop", "craftcms", "django4", "drupal6", "drupal7", "drupal", "laravel", "magento", "magento2", "php", "python", "shopware6", "silverstripe", "typo3", "wordpress"];
|
|
10
|
+
export type DDEVProjectType = (typeof knownDDEVProjectTypes)[number];
|
|
11
|
+
/**
|
|
12
|
+
* Determines the DDEV project type to use for the given app installation.
|
|
13
|
+
*
|
|
14
|
+
* This is done according to the following rules:
|
|
15
|
+
*
|
|
16
|
+
* 1. If an explicit override was specified (typically using the --override-type
|
|
17
|
+
* flag), use that.
|
|
18
|
+
* 2. If the app installation is a known app type (e.g. TYPO3, WordPress, etc.),
|
|
19
|
+
* use the corresponding DDEV project type.
|
|
20
|
+
* 3. Prompt the user to interactively select a DDEV project type.
|
|
21
|
+
*/
|
|
22
|
+
export declare function determineProjectType(r: ProcessRenderer, client: MittwaldAPIV2Client, inst: AppInstallation, typeOverride: DDEVProjectType | "auto"): Promise<DDEVProjectType>;
|
|
23
|
+
/**
|
|
24
|
+
* Determines the project type to use for the given app installation.
|
|
25
|
+
*
|
|
26
|
+
* In most cases, this is a simple mapping from known app IDs to DDEV project
|
|
27
|
+
* types. In some cases, we might need to know the specific (major) version of
|
|
28
|
+
* an app to determine the correct project type (for example, DDEV has separate
|
|
29
|
+
* project types for the different Drupal major versions).
|
|
30
|
+
*/
|
|
31
|
+
export declare function determineProjectTypeFromAppInstallation(client: MittwaldAPIV2Client, inst: AppInstallation): Promise<DDEVProjectType | null>;
|
|
32
|
+
export {};
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { assertStatus } from "@mittwald/api-client";
|
|
3
|
+
import { typo3Installer } from "../../commands/app/install/typo3.js";
|
|
4
|
+
import { wordpressInstaller } from "../../commands/app/install/wordpress.js";
|
|
5
|
+
import { shopware6Installer } from "../../commands/app/install/shopware6.js";
|
|
6
|
+
import { drupalInstaller } from "../../commands/app/install/drupal.js";
|
|
7
|
+
import { Value } from "../../rendering/react/components/Value.js";
|
|
8
|
+
import { Text } from "ink";
|
|
9
|
+
/**
|
|
10
|
+
* A list of all known DDEV project types. Shamelessly stolen from
|
|
11
|
+
* https://ddev.readthedocs.io/en/latest/users/configuration/config/#type
|
|
12
|
+
*/
|
|
13
|
+
export const knownDDEVProjectTypes = [
|
|
14
|
+
"backdrop",
|
|
15
|
+
"craftcms",
|
|
16
|
+
"django4",
|
|
17
|
+
"drupal6",
|
|
18
|
+
"drupal7",
|
|
19
|
+
"drupal",
|
|
20
|
+
"laravel",
|
|
21
|
+
"magento",
|
|
22
|
+
"magento2",
|
|
23
|
+
"php",
|
|
24
|
+
"python",
|
|
25
|
+
"shopware6",
|
|
26
|
+
"silverstripe",
|
|
27
|
+
"typo3",
|
|
28
|
+
"wordpress",
|
|
29
|
+
];
|
|
30
|
+
async function getAppVersion(client, appId, appVersionId) {
|
|
31
|
+
const r = await client.app.getAppversion({
|
|
32
|
+
appId,
|
|
33
|
+
appVersionId,
|
|
34
|
+
});
|
|
35
|
+
assertStatus(r, 200);
|
|
36
|
+
return r.data;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Determines the DDEV project type to use for the given app installation.
|
|
40
|
+
*
|
|
41
|
+
* This is done according to the following rules:
|
|
42
|
+
*
|
|
43
|
+
* 1. If an explicit override was specified (typically using the --override-type
|
|
44
|
+
* flag), use that.
|
|
45
|
+
* 2. If the app installation is a known app type (e.g. TYPO3, WordPress, etc.),
|
|
46
|
+
* use the corresponding DDEV project type.
|
|
47
|
+
* 3. Prompt the user to interactively select a DDEV project type.
|
|
48
|
+
*/
|
|
49
|
+
export async function determineProjectType(r, client, inst, typeOverride) {
|
|
50
|
+
if (typeOverride !== "auto") {
|
|
51
|
+
r.addInfo(_jsx(ProjectTypeInfoOverride, { type: typeOverride }));
|
|
52
|
+
return typeOverride;
|
|
53
|
+
}
|
|
54
|
+
const determinedProjectType = await determineProjectTypeFromAppInstallation(client, inst);
|
|
55
|
+
if (determinedProjectType !== null) {
|
|
56
|
+
r.addInfo(_jsx(ProjectTypeInfoAuto, { type: determinedProjectType }));
|
|
57
|
+
return determinedProjectType;
|
|
58
|
+
}
|
|
59
|
+
return await promptProjectTypeFromUser(r);
|
|
60
|
+
}
|
|
61
|
+
/**
|
|
62
|
+
* Interactively prompts the user to select a DDEV project type.
|
|
63
|
+
*
|
|
64
|
+
* The list of known project types is hardcoded in this module.
|
|
65
|
+
*/
|
|
66
|
+
async function promptProjectTypeFromUser(r) {
|
|
67
|
+
return r.addSelect("select the DDEV project type", knownDDEVProjectTypes.map((t) => ({ value: t, label: t })));
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Determines the project type to use for the given app installation.
|
|
71
|
+
*
|
|
72
|
+
* In most cases, this is a simple mapping from known app IDs to DDEV project
|
|
73
|
+
* types. In some cases, we might need to know the specific (major) version of
|
|
74
|
+
* an app to determine the correct project type (for example, DDEV has separate
|
|
75
|
+
* project types for the different Drupal major versions).
|
|
76
|
+
*/
|
|
77
|
+
export async function determineProjectTypeFromAppInstallation(client, inst) {
|
|
78
|
+
switch (inst.appId) {
|
|
79
|
+
case typo3Installer.appId:
|
|
80
|
+
return "typo3";
|
|
81
|
+
case wordpressInstaller.appId:
|
|
82
|
+
return "wordpress";
|
|
83
|
+
case shopware6Installer.appId:
|
|
84
|
+
return "shopware6";
|
|
85
|
+
case drupalInstaller.appId: {
|
|
86
|
+
const version = await getAppVersion(client, inst.appId, inst.appVersion.desired);
|
|
87
|
+
const [major] = version.externalVersion.split(".");
|
|
88
|
+
if (major === "6" || major === "7") {
|
|
89
|
+
return `drupal${major}`;
|
|
90
|
+
}
|
|
91
|
+
return "drupal";
|
|
92
|
+
}
|
|
93
|
+
default:
|
|
94
|
+
return null;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
function ProjectTypeInfoOverride({ type }) {
|
|
98
|
+
return (_jsxs(Text, { children: ["using DDEV project type: ", _jsx(Value, { children: type }), " (explicitly specified)"] }));
|
|
99
|
+
}
|
|
100
|
+
function ProjectTypeInfoAuto({ type }) {
|
|
101
|
+
return (_jsxs(Text, { children: ["using DDEV project type: ", _jsx(Value, { children: type }), " (derived from app installation)"] }));
|
|
102
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Error thrown when a command requires interactive input, but the current
|
|
3
|
+
* terminal environment does not support it.
|
|
4
|
+
*/
|
|
5
|
+
export default class InteractiveInputRequiredError extends Error {
|
|
6
|
+
constructor() {
|
|
7
|
+
super("This command requires an interactive input, but the current environment " +
|
|
8
|
+
"does not support it. Please have a look at this command's --help page " +
|
|
9
|
+
"to learn how to pass the required input non-interactively.");
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { articleForWord } from "../util/language/articleForWord.js";
|
|
2
|
+
export default class UnexpectedShortIDPassedError extends Error {
|
|
3
|
+
resourceName;
|
|
4
|
+
format;
|
|
5
|
+
constructor(name, format) {
|
|
6
|
+
super(`This command expects ${articleForWord(name)} ${name}, which is typically formatted as ${format}. It looks like you passed a short ID for another type of resource, instead.`);
|
|
7
|
+
this.resourceName = name;
|
|
8
|
+
this.format = format;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { OclifError, PrettyPrintableError } from "@oclif/core/interfaces";
|
|
2
|
+
import { ApiClientError, AxiosResponse } from "@mittwald/api-client-commons";
|
|
3
|
+
import type { MittwaldAPIV2 } from "@mittwald/api-client";
|
|
4
|
+
type CommonsValidationErrors = MittwaldAPIV2.Components.Schemas.CommonsValidationErrors;
|
|
5
|
+
export default function handleError(error: Error & Partial<PrettyPrintableError> & Partial<OclifError> & {
|
|
6
|
+
skipOclifErrorHandling?: boolean;
|
|
7
|
+
}): void;
|
|
8
|
+
export declare function isValidationError(err: unknown): err is ApiClientError<CommonsValidationErrors> & {
|
|
9
|
+
response: AxiosResponse<CommonsValidationErrors>;
|
|
10
|
+
};
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ApiClientError } from "@mittwald/api-client-commons";
|
|
2
|
+
import { ExitError } from "@oclif/core/errors";
|
|
3
|
+
import { renderError } from "../../rendering/react/error.js";
|
|
4
|
+
// noinspection JSUnusedGlobalSymbols
|
|
5
|
+
export default function handleError(error) {
|
|
6
|
+
if (!isUnexpectedError(error)) {
|
|
7
|
+
process.exit(1);
|
|
8
|
+
}
|
|
9
|
+
if (error instanceof ExitError) {
|
|
10
|
+
process.exit(error.oclif.exit);
|
|
11
|
+
}
|
|
12
|
+
renderError(error);
|
|
13
|
+
process.exit(1);
|
|
14
|
+
}
|
|
15
|
+
function isUnexpectedError(err) {
|
|
16
|
+
return !isValidationError(err);
|
|
17
|
+
}
|
|
18
|
+
export function isValidationError(err) {
|
|
19
|
+
return (err instanceof ApiClientError &&
|
|
20
|
+
err.response?.data?.type === "ValidationError");
|
|
21
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { OptionFlag } from "@oclif/core/interfaces";
|
|
2
|
+
export declare function expireFlags(resourceName: string, required: false): {
|
|
3
|
+
expires: OptionFlag<Date | undefined>;
|
|
4
|
+
};
|
|
5
|
+
export declare function expireFlags(resourceName: string, required: true): {
|
|
6
|
+
expires: OptionFlag<Date>;
|
|
7
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import Duration from "../units/Duration.js";
|
|
2
|
+
/**
|
|
3
|
+
* Constructs a set of flags for specifying an expiration time for a resource.
|
|
4
|
+
*
|
|
5
|
+
* @param resourceName The name of the resource to expire.
|
|
6
|
+
* @param required Whether the expiration time is required. NOTE: This
|
|
7
|
+
* function's overload signatures assert that if required, the flag will be of
|
|
8
|
+
* type `Date`, otherwise `Date | undefined`.
|
|
9
|
+
*/
|
|
10
|
+
export function expireFlags(resourceName, required) {
|
|
11
|
+
return {
|
|
12
|
+
expires: Duration.absoluteFlag({
|
|
13
|
+
description: `an interval after which the ${resourceName} expires (examples: 30m, 30d, 1y).`,
|
|
14
|
+
multiple: false,
|
|
15
|
+
required,
|
|
16
|
+
}),
|
|
17
|
+
};
|
|
18
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { OutputFlags } from "@oclif/core/interfaces";
|
|
2
|
+
import { AvailableFlagName, RelevantFlagInput } from "./flags.js";
|
|
3
|
+
import React from "react";
|
|
4
|
+
import { MittwaldAPIV2Client } from "@mittwald/api-client";
|
|
5
|
+
import { Config } from "@oclif/core";
|
|
6
|
+
type ImplicitDefaultFlag = "wait" | "wait-timeout" | "site-title";
|
|
7
|
+
export interface AppInstallationResult {
|
|
8
|
+
appInstallationId: string;
|
|
9
|
+
}
|
|
10
|
+
export declare class AppInstaller<TFlagName extends AvailableFlagName> {
|
|
11
|
+
readonly appId: string;
|
|
12
|
+
readonly appName: string;
|
|
13
|
+
readonly appSupportedFlags: readonly TFlagName[];
|
|
14
|
+
readonly defaultFlagValues: Partial<Record<AvailableFlagName, string>>;
|
|
15
|
+
readonly description: string;
|
|
16
|
+
mutateFlags?: (flags: RelevantFlagInput<readonly (TFlagName | ImplicitDefaultFlag)[]>) => unknown;
|
|
17
|
+
private static makeDescription;
|
|
18
|
+
constructor(appId: string, appName: string, appSupportedFlags: readonly TFlagName[], defaultFlagValues?: Partial<Record<AvailableFlagName, string>>);
|
|
19
|
+
get flags(): RelevantFlagInput<readonly (TFlagName | ImplicitDefaultFlag)[]>;
|
|
20
|
+
exec(apiClient: MittwaldAPIV2Client, args: {
|
|
21
|
+
[k: string]: unknown;
|
|
22
|
+
}, flags: OutputFlags<RelevantFlagInput<(TFlagName | ImplicitDefaultFlag)[]>>, config: Config): Promise<AppInstallationResult>;
|
|
23
|
+
render(result: AppInstallationResult, flags: {
|
|
24
|
+
quiet: boolean;
|
|
25
|
+
}): React.ReactNode;
|
|
26
|
+
}
|
|
27
|
+
export {};
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { makeProcessRenderer } from "../../../rendering/process/process_flags.js";
|
|
3
|
+
import { withProjectId } from "../project/flags.js";
|
|
4
|
+
import { autofillFlags, provideSupportedFlags, } from "./flags.js";
|
|
5
|
+
import { normalizeToAppVersionUuid } from "./versions.js";
|
|
6
|
+
import { triggerAppInstallation } from "./install.js";
|
|
7
|
+
import { waitUntilAppStateHasNormalized } from "./wait.js";
|
|
8
|
+
import { Success } from "../../../rendering/react/components/Success.js";
|
|
9
|
+
export class AppInstaller {
|
|
10
|
+
appId;
|
|
11
|
+
appName;
|
|
12
|
+
appSupportedFlags;
|
|
13
|
+
defaultFlagValues;
|
|
14
|
+
description;
|
|
15
|
+
mutateFlags;
|
|
16
|
+
static makeDescription(appName) {
|
|
17
|
+
return `Creates new ${appName} installation.`;
|
|
18
|
+
}
|
|
19
|
+
constructor(appId, appName, appSupportedFlags, defaultFlagValues = {}) {
|
|
20
|
+
this.appId = appId;
|
|
21
|
+
this.appName = appName;
|
|
22
|
+
this.appSupportedFlags = appSupportedFlags;
|
|
23
|
+
this.defaultFlagValues = defaultFlagValues;
|
|
24
|
+
this.description = AppInstaller.makeDescription(appName);
|
|
25
|
+
}
|
|
26
|
+
get flags() {
|
|
27
|
+
const flags = provideSupportedFlags([...this.appSupportedFlags, "wait", "wait-timeout", "site-title"], this.appName);
|
|
28
|
+
if (this.mutateFlags) {
|
|
29
|
+
this.mutateFlags(flags);
|
|
30
|
+
}
|
|
31
|
+
return flags;
|
|
32
|
+
}
|
|
33
|
+
async exec(apiClient, args, flags, config) {
|
|
34
|
+
const process = makeProcessRenderer(flags, `Installing ${this.appName}`);
|
|
35
|
+
const projectId = await withProjectId(apiClient, "flag", flags, args, config);
|
|
36
|
+
await autofillFlags(apiClient, process, this.appSupportedFlags, flags, projectId, this.appName, this.defaultFlagValues);
|
|
37
|
+
const appVersion = await normalizeToAppVersionUuid(apiClient, "version" in flags ? flags.version : "latest", process, this.appId);
|
|
38
|
+
const appInstallationId = await triggerAppInstallation(apiClient, process, projectId, flags, appVersion);
|
|
39
|
+
let successText;
|
|
40
|
+
if (flags.wait) {
|
|
41
|
+
await waitUntilAppStateHasNormalized(apiClient, process, appInstallationId, "waiting for app installation to be ready", flags["wait-timeout"]);
|
|
42
|
+
successText = `Your ${this.appName} installation is now complete. Have fun! 🎉`;
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
successText = `Your ${this.appName} installation has started. Have fun when it's ready! 🎉`;
|
|
46
|
+
}
|
|
47
|
+
process.complete(_jsx(Success, { children: successText }));
|
|
48
|
+
return { appInstallationId };
|
|
49
|
+
}
|
|
50
|
+
render(result, flags) {
|
|
51
|
+
if (flags.quiet) {
|
|
52
|
+
return result.appInstallationId;
|
|
53
|
+
}
|
|
54
|
+
return undefined;
|
|
55
|
+
}
|
|
56
|
+
}
|