@mittwald/cli 1.0.0-alpha.3 → 1.0.0-alpha.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (906) hide show
  1. package/README.md +3196 -1426
  2. package/bin/run.js +0 -0
  3. package/dist/esm/BaseCommand.d.ts +1 -1
  4. package/dist/esm/BaseCommand.js +1 -0
  5. package/dist/esm/DeleteBaseCommand.d.ts +6 -9
  6. package/dist/esm/DeleteBaseCommand.js +27 -21
  7. package/dist/esm/ExtendedBaseCommand.d.ts +5 -1
  8. package/dist/esm/ExtendedBaseCommand.js +12 -0
  9. package/dist/esm/Formatter.d.ts +5 -2
  10. package/dist/esm/Formatter.js +23 -3
  11. package/dist/esm/GetBaseCommand.d.ts +3 -4
  12. package/dist/esm/GetBaseCommand.js +2 -4
  13. package/dist/esm/Helpers.d.ts +2 -0
  14. package/dist/esm/Helpers.js +13 -1
  15. package/dist/esm/ListBaseCommand.d.ts +3 -4
  16. package/dist/esm/ListBaseCommand.js +10 -7
  17. package/dist/esm/Printer.d.ts +6 -7
  18. package/dist/esm/Printer.js +3 -3
  19. package/dist/esm/Translator.d.ts +7 -3
  20. package/dist/esm/Translator.js +29 -8
  21. package/dist/esm/commands/app/copy.d.ts +19 -0
  22. package/dist/esm/commands/app/copy.js +40 -0
  23. package/dist/esm/commands/app/create/node.d.ts +12 -0
  24. package/dist/esm/commands/app/create/node.js +13 -0
  25. package/dist/esm/commands/app/create/php.d.ts +12 -0
  26. package/dist/esm/commands/app/create/php.js +13 -0
  27. package/dist/esm/commands/app/create/python.d.ts +12 -0
  28. package/dist/esm/commands/app/create/python.js +13 -0
  29. package/dist/esm/commands/app/create/static.d.ts +12 -0
  30. package/dist/esm/commands/app/create/static.js +13 -0
  31. package/dist/esm/commands/app/dependency/list.d.ts +18 -0
  32. package/dist/esm/commands/app/dependency/list.js +27 -0
  33. package/dist/esm/commands/app/dependency/update.d.ts +21 -0
  34. package/dist/esm/commands/app/dependency/update.js +104 -0
  35. package/dist/esm/commands/app/dependency/versions.d.ts +20 -0
  36. package/dist/esm/commands/app/dependency/versions.js +39 -0
  37. package/dist/esm/commands/app/get.d.ts +13 -0
  38. package/dist/esm/commands/app/get.js +21 -0
  39. package/dist/esm/commands/app/install/contao.d.ts +11 -0
  40. package/dist/esm/commands/app/install/contao.js +24 -0
  41. package/dist/esm/commands/app/install/drupal.d.ts +11 -0
  42. package/dist/esm/commands/app/install/drupal.js +21 -0
  43. package/dist/esm/commands/app/install/grav.d.ts +11 -0
  44. package/dist/esm/commands/app/install/grav.js +22 -0
  45. package/dist/esm/commands/app/install/joomla.d.ts +11 -0
  46. package/dist/esm/commands/app/install/joomla.js +23 -0
  47. package/dist/esm/commands/app/install/matomo.d.ts +11 -0
  48. package/dist/esm/commands/app/install/matomo.js +21 -0
  49. package/dist/esm/commands/app/install/nextcloud.d.ts +11 -0
  50. package/dist/esm/commands/app/install/nextcloud.js +21 -0
  51. package/dist/esm/commands/app/install/shopware5.d.ts +11 -0
  52. package/dist/esm/commands/app/install/shopware5.js +26 -0
  53. package/dist/esm/commands/app/install/shopware6.d.ts +11 -0
  54. package/dist/esm/commands/app/install/shopware6.js +26 -0
  55. package/dist/esm/commands/app/install/typo3.d.ts +11 -0
  56. package/dist/esm/commands/app/install/typo3.js +22 -0
  57. package/dist/esm/commands/app/install/wordpress.d.ts +11 -0
  58. package/dist/esm/commands/app/install/wordpress.js +21 -0
  59. package/dist/esm/commands/app/list.d.ts +20 -12
  60. package/dist/esm/commands/app/list.js +57 -40
  61. package/dist/esm/commands/app/ssh.d.ts +13 -0
  62. package/dist/esm/commands/app/ssh.js +55 -0
  63. package/dist/esm/commands/app/uninstall.d.ts +10 -0
  64. package/dist/esm/commands/app/uninstall.js +17 -0
  65. package/dist/esm/commands/app/versions.d.ts +12 -0
  66. package/dist/esm/commands/app/versions.js +53 -0
  67. package/dist/esm/commands/backup/create.d.ts +21 -0
  68. package/dist/esm/commands/backup/create.js +61 -0
  69. package/dist/esm/commands/backup/delete.d.ts +15 -0
  70. package/dist/esm/commands/backup/delete.js +23 -0
  71. package/dist/esm/commands/backup/download.d.ts +29 -0
  72. package/dist/esm/commands/backup/download.js +179 -0
  73. package/dist/esm/commands/backup/get.d.ts +14 -0
  74. package/dist/esm/commands/backup/get.js +29 -0
  75. package/dist/esm/commands/backup/list.d.ts +21 -0
  76. package/dist/esm/commands/backup/list.js +34 -0
  77. package/dist/esm/commands/backup/schedule/list.d.ts +21 -0
  78. package/dist/esm/commands/backup/schedule/list.js +31 -0
  79. package/dist/esm/commands/context/get.d.ts +10 -0
  80. package/dist/esm/commands/context/get.js +61 -0
  81. package/dist/esm/commands/context/set.d.ts +12 -0
  82. package/dist/esm/commands/context/set.js +48 -0
  83. package/dist/esm/commands/conversation/categories.d.ts +11 -4
  84. package/dist/esm/commands/conversation/categories.js +11 -3
  85. package/dist/esm/commands/conversation/close.d.ts +1 -1
  86. package/dist/esm/commands/conversation/close.js +1 -1
  87. package/dist/esm/commands/conversation/create.d.ts +1 -1
  88. package/dist/esm/commands/conversation/create.js +1 -1
  89. package/dist/esm/commands/conversation/list.d.ts +11 -4
  90. package/dist/esm/commands/conversation/list.js +13 -5
  91. package/dist/esm/commands/conversation/reply.d.ts +1 -1
  92. package/dist/esm/commands/conversation/reply.js +1 -1
  93. package/dist/esm/commands/conversation/show.d.ts +1 -1
  94. package/dist/esm/commands/conversation/show.js +10 -14
  95. package/dist/esm/commands/conversation/show2.js +7 -6
  96. package/dist/esm/commands/cronjob/create.d.ts +23 -0
  97. package/dist/esm/commands/cronjob/create.js +97 -0
  98. package/dist/esm/commands/cronjob/delete.d.ts +13 -0
  99. package/dist/esm/commands/cronjob/delete.js +21 -0
  100. package/dist/esm/commands/cronjob/execute.d.ts +17 -0
  101. package/dist/esm/commands/cronjob/execute.js +42 -0
  102. package/dist/esm/commands/cronjob/execution/abort.d.ts +18 -0
  103. package/dist/esm/commands/cronjob/execution/abort.js +41 -0
  104. package/dist/esm/commands/cronjob/execution/get.d.ts +17 -0
  105. package/dist/esm/commands/cronjob/execution/get.js +26 -0
  106. package/dist/esm/commands/cronjob/execution/list.d.ts +20 -0
  107. package/dist/esm/commands/cronjob/execution/list.js +41 -0
  108. package/dist/esm/commands/cronjob/execution/logs.d.ts +17 -0
  109. package/dist/esm/commands/cronjob/execution/logs.js +77 -0
  110. package/dist/esm/commands/cronjob/get.d.ts +14 -0
  111. package/dist/esm/commands/cronjob/get.js +30 -0
  112. package/dist/esm/commands/cronjob/list.d.ts +21 -0
  113. package/dist/esm/commands/cronjob/list.js +43 -0
  114. package/dist/esm/commands/database/mysql/charsets.d.ts +12 -3
  115. package/dist/esm/commands/database/mysql/charsets.js +19 -2
  116. package/dist/esm/commands/database/mysql/create.d.ts +24 -0
  117. package/dist/esm/commands/database/mysql/create.js +103 -0
  118. package/dist/esm/commands/database/mysql/delete.d.ts +14 -0
  119. package/dist/esm/commands/database/mysql/delete.js +20 -0
  120. package/dist/esm/commands/database/mysql/dump.d.ts +15 -0
  121. package/dist/esm/commands/database/mysql/dump.js +70 -0
  122. package/dist/esm/commands/database/mysql/get.d.ts +14 -2
  123. package/dist/esm/commands/database/mysql/get.js +14 -5
  124. package/dist/esm/commands/database/mysql/list.d.ts +10 -3
  125. package/dist/esm/commands/database/mysql/list.js +22 -18
  126. package/dist/esm/commands/database/mysql/phpmyadmin.d.ts +8 -0
  127. package/dist/esm/commands/database/mysql/phpmyadmin.js +25 -0
  128. package/dist/esm/commands/database/mysql/port-forward.d.ts +14 -0
  129. package/dist/esm/commands/database/mysql/port-forward.js +44 -0
  130. package/dist/esm/commands/database/mysql/shell.d.ts +14 -0
  131. package/dist/esm/commands/database/mysql/shell.js +39 -0
  132. package/dist/esm/commands/database/mysql/user/get.d.ts +13 -2
  133. package/dist/esm/commands/database/mysql/user/get.js +18 -5
  134. package/dist/esm/commands/database/mysql/user/list.d.ts +13 -4
  135. package/dist/esm/commands/database/mysql/user/list.js +35 -2
  136. package/dist/esm/commands/database/mysql/versions.d.ts +12 -3
  137. package/dist/esm/commands/database/mysql/versions.js +17 -2
  138. package/dist/esm/commands/database/redis/create.d.ts +20 -0
  139. package/dist/esm/commands/database/redis/create.js +83 -0
  140. package/dist/esm/commands/database/redis/get.d.ts +13 -2
  141. package/dist/esm/commands/database/redis/get.js +18 -5
  142. package/dist/esm/commands/database/redis/list.d.ts +12 -3
  143. package/dist/esm/commands/database/redis/list.js +24 -2
  144. package/dist/esm/commands/database/redis/shell.d.ts +13 -0
  145. package/dist/esm/commands/database/redis/shell.js +26 -0
  146. package/dist/esm/commands/database/redis/versions.d.ts +12 -3
  147. package/dist/esm/commands/database/redis/versions.js +22 -2
  148. package/dist/esm/commands/domain/dnszone/get.d.ts +16 -0
  149. package/dist/esm/commands/domain/dnszone/get.js +32 -0
  150. package/dist/esm/commands/domain/dnszone/list.d.ts +18 -0
  151. package/dist/esm/commands/domain/dnszone/list.js +71 -0
  152. package/dist/esm/commands/domain/dnszone/update.d.ts +28 -0
  153. package/dist/esm/commands/domain/dnszone/update.js +176 -0
  154. package/dist/esm/commands/domain/get.d.ts +15 -2
  155. package/dist/esm/commands/domain/get.js +31 -5
  156. package/dist/esm/commands/domain/list.d.ts +14 -5
  157. package/dist/esm/commands/domain/list.js +39 -2
  158. package/dist/esm/commands/domain/virtualhost/create.d.ts +25 -0
  159. package/dist/esm/commands/domain/virtualhost/create.js +106 -0
  160. package/dist/esm/commands/domain/virtualhost/delete.d.ts +13 -0
  161. package/dist/esm/commands/domain/virtualhost/delete.js +21 -0
  162. package/dist/esm/commands/domain/virtualhost/get.d.ts +13 -2
  163. package/dist/esm/commands/domain/virtualhost/get.js +73 -5
  164. package/dist/esm/commands/domain/virtualhost/list.d.ts +3 -4
  165. package/dist/esm/commands/domain/virtualhost/list.js +39 -20
  166. package/dist/esm/commands/login/reset.d.ts +12 -0
  167. package/dist/esm/commands/login/reset.js +39 -0
  168. package/dist/esm/commands/login/status.d.ts +1 -1
  169. package/dist/esm/commands/login/status.js +1 -1
  170. package/dist/esm/commands/login/token.d.ts +2 -1
  171. package/dist/esm/commands/login/token.js +1 -0
  172. package/dist/esm/commands/mail/address/create.d.ts +25 -4
  173. package/dist/esm/commands/mail/address/create.js +137 -32
  174. package/dist/esm/commands/mail/address/delete.d.ts +1 -0
  175. package/dist/esm/commands/mail/address/delete.js +3 -3
  176. package/dist/esm/commands/mail/address/get.d.ts +15 -2
  177. package/dist/esm/commands/mail/address/get.js +21 -5
  178. package/dist/esm/commands/mail/address/list.d.ts +12 -4
  179. package/dist/esm/commands/mail/address/list.js +19 -7
  180. package/dist/esm/commands/mail/deliverybox/get.d.ts +15 -2
  181. package/dist/esm/commands/mail/deliverybox/get.js +21 -5
  182. package/dist/esm/commands/mail/deliverybox/list.d.ts +12 -5
  183. package/dist/esm/commands/mail/deliverybox/list.js +15 -10
  184. package/dist/esm/commands/org/delete.d.ts +13 -0
  185. package/dist/esm/commands/org/delete.js +16 -0
  186. package/dist/esm/commands/org/get.d.ts +14 -0
  187. package/dist/esm/commands/org/get.js +52 -0
  188. package/dist/esm/commands/org/invite/list-own.d.ts +51 -0
  189. package/dist/esm/commands/org/invite/list-own.js +41 -0
  190. package/dist/esm/commands/org/invite/list.d.ts +19 -0
  191. package/dist/esm/commands/org/invite/list.js +35 -0
  192. package/dist/esm/commands/org/invite/revoke.d.ts +17 -0
  193. package/dist/esm/commands/org/invite/revoke.js +39 -0
  194. package/dist/esm/commands/org/invite.d.ts +21 -0
  195. package/dist/esm/commands/org/invite.js +53 -0
  196. package/dist/esm/commands/org/list.d.ts +20 -0
  197. package/dist/esm/commands/org/list.js +44 -0
  198. package/dist/esm/commands/org/membership/list-own.d.ts +50 -0
  199. package/dist/esm/commands/org/membership/list-own.js +42 -0
  200. package/dist/esm/commands/org/membership/list.d.ts +41 -0
  201. package/dist/esm/commands/org/membership/list.js +43 -0
  202. package/dist/esm/commands/org/membership/revoke.d.ts +17 -0
  203. package/dist/esm/commands/org/membership/revoke.js +43 -0
  204. package/dist/esm/commands/project/create.d.ts +15 -4
  205. package/dist/esm/commands/project/create.js +46 -37
  206. package/dist/esm/commands/project/delete.d.ts +2 -2
  207. package/dist/esm/commands/project/delete.js +7 -17
  208. package/dist/esm/commands/project/filesystem/usage.d.ts +13 -3
  209. package/dist/esm/commands/project/filesystem/usage.js +51 -9
  210. package/dist/esm/commands/project/get.d.ts +13 -3
  211. package/dist/esm/commands/project/get.js +80 -9
  212. package/dist/esm/commands/project/invite/get.d.ts +13 -2
  213. package/dist/esm/commands/project/invite/get.js +18 -5
  214. package/dist/esm/commands/project/invite/list-own.d.ts +10 -3
  215. package/dist/esm/commands/project/invite/list-own.js +12 -4
  216. package/dist/esm/commands/project/invite/list.d.ts +10 -4
  217. package/dist/esm/commands/project/invite/list.js +15 -9
  218. package/dist/esm/commands/project/list.d.ts +10 -3
  219. package/dist/esm/commands/project/list.js +10 -2
  220. package/dist/esm/commands/project/membership/get-own.d.ts +11 -3
  221. package/dist/esm/commands/project/membership/get-own.js +14 -9
  222. package/dist/esm/commands/project/membership/get.d.ts +13 -2
  223. package/dist/esm/commands/project/membership/get.js +18 -5
  224. package/dist/esm/commands/project/membership/list-own.d.ts +10 -3
  225. package/dist/esm/commands/project/membership/list-own.js +12 -4
  226. package/dist/esm/commands/project/membership/list.d.ts +10 -4
  227. package/dist/esm/commands/project/membership/list.js +18 -10
  228. package/dist/esm/commands/project/ssh.d.ts +3 -3
  229. package/dist/esm/commands/project/ssh.js +7 -15
  230. package/dist/esm/commands/project/update.d.ts +3 -3
  231. package/dist/esm/commands/project/update.js +7 -11
  232. package/dist/esm/commands/server/get.d.ts +13 -2
  233. package/dist/esm/commands/server/get.js +14 -5
  234. package/dist/esm/commands/server/list.d.ts +10 -3
  235. package/dist/esm/commands/server/list.js +10 -2
  236. package/dist/esm/commands/sftp-user/list.d.ts +21 -0
  237. package/dist/esm/commands/sftp-user/list.js +31 -0
  238. package/dist/esm/commands/ssh-user/list.d.ts +21 -0
  239. package/dist/esm/commands/ssh-user/list.js +29 -0
  240. package/dist/esm/commands/user/api-token/create.d.ts +9 -3
  241. package/dist/esm/commands/user/api-token/create.js +33 -15
  242. package/dist/esm/commands/user/api-token/get.d.ts +13 -2
  243. package/dist/esm/commands/user/api-token/get.js +18 -5
  244. package/dist/esm/commands/user/api-token/list.d.ts +11 -4
  245. package/dist/esm/commands/user/api-token/list.js +14 -4
  246. package/dist/esm/commands/user/api-token/revoke.d.ts +8 -3
  247. package/dist/esm/commands/user/api-token/revoke.js +8 -8
  248. package/dist/esm/commands/user/get.d.ts +14 -2
  249. package/dist/esm/commands/user/get.js +19 -5
  250. package/dist/esm/commands/user/session/get.d.ts +13 -2
  251. package/dist/esm/commands/user/session/get.js +18 -5
  252. package/dist/esm/commands/user/session/list.d.ts +11 -4
  253. package/dist/esm/commands/user/session/list.js +14 -4
  254. package/dist/esm/commands/user/ssh-key/create.d.ts +6 -3
  255. package/dist/esm/commands/user/ssh-key/create.js +35 -18
  256. package/dist/esm/commands/user/ssh-key/delete.d.ts +5 -4
  257. package/dist/esm/commands/user/ssh-key/delete.js +9 -28
  258. package/dist/esm/commands/user/ssh-key/get.d.ts +13 -2
  259. package/dist/esm/commands/user/ssh-key/get.js +18 -5
  260. package/dist/esm/commands/user/ssh-key/list.d.ts +11 -4
  261. package/dist/esm/commands/user/ssh-key/list.js +10 -2
  262. package/dist/esm/lib/app/Installer.d.ts +21 -0
  263. package/dist/esm/lib/app/Installer.js +49 -0
  264. package/dist/esm/lib/app/flags.d.ts +28 -0
  265. package/dist/esm/lib/app/flags.js +212 -0
  266. package/dist/esm/lib/app/hooks.d.ts +11 -0
  267. package/dist/esm/lib/app/hooks.js +43 -0
  268. package/dist/esm/lib/app/install.d.ts +4 -0
  269. package/dist/esm/lib/app/install.js +43 -0
  270. package/dist/esm/lib/app/uuid.d.ts +4 -0
  271. package/dist/esm/lib/app/uuid.js +44 -0
  272. package/dist/esm/lib/app/versions.d.ts +8 -0
  273. package/dist/esm/lib/app/versions.js +49 -0
  274. package/dist/esm/lib/app/wait.d.ts +3 -0
  275. package/dist/esm/lib/app/wait.js +19 -0
  276. package/dist/esm/lib/assert_success.d.ts +3 -0
  277. package/dist/esm/lib/assert_success.js +7 -0
  278. package/dist/esm/lib/bytes.d.ts +1 -0
  279. package/dist/esm/lib/bytes.js +16 -0
  280. package/dist/esm/lib/context.d.ts +37 -0
  281. package/dist/esm/lib/context.js +49 -0
  282. package/dist/esm/lib/context_flags.d.ts +47 -0
  283. package/dist/esm/lib/context_flags.js +75 -0
  284. package/dist/esm/lib/context_terraform.d.ts +6 -0
  285. package/dist/esm/lib/context_terraform.js +61 -0
  286. package/dist/esm/lib/context_user.d.ts +10 -0
  287. package/dist/esm/lib/context_user.js +41 -0
  288. package/dist/esm/lib/database/common.d.ts +8 -0
  289. package/dist/esm/lib/database/common.js +17 -0
  290. package/dist/esm/lib/database/mysql/connect.d.ts +19 -0
  291. package/dist/esm/lib/database/mysql/connect.js +50 -0
  292. package/dist/esm/lib/database/mysql/flags.d.ts +10 -0
  293. package/dist/esm/lib/database/mysql/flags.js +48 -0
  294. package/dist/esm/lib/database/redis/connect.d.ts +8 -0
  295. package/dist/esm/lib/database/redis/connect.js +22 -0
  296. package/dist/esm/lib/database/redis/flags.d.ts +7 -0
  297. package/dist/esm/lib/database/redis/flags.js +35 -0
  298. package/dist/esm/lib/domain/dnszone/flags.d.ts +1 -0
  299. package/dist/esm/lib/domain/dnszone/flags.js +19 -0
  300. package/dist/esm/lib/domain/dnszone/records.d.ts +17 -0
  301. package/dist/esm/lib/domain/dnszone/records.js +18 -0
  302. package/dist/esm/lib/domain/flags.d.ts +1 -0
  303. package/dist/esm/lib/domain/flags.js +20 -0
  304. package/dist/esm/lib/expires.d.ts +11 -0
  305. package/dist/esm/lib/expires.js +31 -0
  306. package/dist/esm/lib/handleError.d.ts +7 -0
  307. package/dist/esm/lib/handleError.js +18 -13
  308. package/dist/esm/lib/org/flags.d.ts +1 -0
  309. package/dist/esm/lib/org/flags.js +3 -0
  310. package/dist/esm/lib/password.d.ts +2 -0
  311. package/dist/esm/lib/password.js +20 -0
  312. package/dist/esm/lib/project/flags.d.ts +15 -0
  313. package/dist/esm/lib/project/flags.js +53 -0
  314. package/dist/esm/lib/project/hooks.d.ts +3 -0
  315. package/dist/esm/lib/project/hooks.js +11 -0
  316. package/dist/esm/lib/project/ingress.d.ts +2 -0
  317. package/dist/esm/lib/project/ingress.js +18 -0
  318. package/dist/esm/lib/project/shortId.d.ts +2 -0
  319. package/dist/esm/lib/project/shortId.js +11 -0
  320. package/dist/esm/lib/projectbackup/hooks.d.ts +5 -0
  321. package/dist/esm/lib/projectbackup/hooks.js +19 -0
  322. package/dist/esm/lib/server/flags.d.ts +1 -0
  323. package/dist/esm/lib/server/flags.js +3 -0
  324. package/dist/esm/lib/viewhelpers/date.d.ts +2 -1
  325. package/dist/esm/lib/viewhelpers/date.js +9 -2
  326. package/dist/esm/lib/viewhelpers/removeLineBreaks.d.ts +1 -0
  327. package/dist/esm/lib/viewhelpers/removeLineBreaks.js +1 -0
  328. package/dist/esm/lib/viewhelpers/size.d.ts +2 -1
  329. package/dist/esm/lib/viewhelpers/size.js +2 -2
  330. package/dist/esm/lib/wait.d.ts +5 -0
  331. package/dist/esm/lib/wait.js +23 -0
  332. package/dist/esm/rendering/lib/getTerminalWidth.d.ts +1 -0
  333. package/dist/esm/rendering/lib/getTerminalWidth.js +2 -0
  334. package/dist/esm/rendering/process/components/ProcessConfirmation.d.ts +6 -0
  335. package/dist/esm/rendering/process/components/ProcessConfirmation.js +12 -0
  336. package/dist/esm/rendering/process/components/ProcessConfirmationStateSummary.d.ts +5 -0
  337. package/dist/esm/rendering/process/components/ProcessConfirmationStateSummary.js +18 -0
  338. package/dist/esm/rendering/process/components/ProcessError.d.ts +4 -0
  339. package/dist/esm/rendering/process/components/ProcessError.js +10 -0
  340. package/dist/esm/rendering/process/components/ProcessInput.d.ts +6 -0
  341. package/dist/esm/rendering/process/components/ProcessInput.js +15 -0
  342. package/dist/esm/rendering/process/components/ProcessInputStateSummary.d.ts +5 -0
  343. package/dist/esm/rendering/process/components/ProcessInputStateSummary.js +13 -0
  344. package/dist/esm/rendering/process/components/ProcessState.d.ts +5 -0
  345. package/dist/esm/rendering/process/components/ProcessState.js +8 -0
  346. package/dist/esm/rendering/process/components/ProcessStateIcon.d.ts +5 -0
  347. package/dist/esm/rendering/process/components/ProcessStateIcon.js +22 -0
  348. package/dist/esm/rendering/process/components/ProcessStateSummary.d.ts +5 -0
  349. package/dist/esm/rendering/process/components/ProcessStateSummary.js +30 -0
  350. package/dist/esm/rendering/process/components/ProcessValidationErrors.d.ts +7 -0
  351. package/dist/esm/rendering/process/components/ProcessValidationErrors.js +17 -0
  352. package/dist/esm/rendering/process/process.d.ts +44 -0
  353. package/dist/esm/rendering/process/process.js +28 -0
  354. package/dist/esm/rendering/process/process_fancy.d.ts +17 -0
  355. package/dist/esm/rendering/process/process_fancy.js +119 -0
  356. package/dist/esm/rendering/process/process_flags.d.ts +20 -0
  357. package/dist/esm/rendering/process/process_flags.js +29 -0
  358. package/dist/esm/rendering/process/process_quiet.d.ts +12 -0
  359. package/dist/esm/rendering/process/process_quiet.js +29 -0
  360. package/dist/esm/rendering/react/ComponentPrinter.d.ts +7 -0
  361. package/dist/esm/rendering/react/ComponentPrinter.js +13 -0
  362. package/dist/esm/rendering/react/ExecRenderBaseCommand.d.ts +8 -0
  363. package/dist/esm/rendering/react/ExecRenderBaseCommand.js +25 -0
  364. package/dist/esm/rendering/react/RenderBaseCommand.d.ts +15 -0
  365. package/dist/esm/rendering/react/RenderBaseCommand.js +47 -4
  366. package/dist/esm/rendering/react/components/AppInstallation/AppInstallationDetails.d.ts +8 -0
  367. package/dist/esm/rendering/react/components/AppInstallation/AppInstallationDetails.js +49 -0
  368. package/dist/esm/rendering/react/components/AppInstallation/AppInstallationStatus.d.ts +9 -0
  369. package/dist/esm/rendering/react/components/AppInstallation/AppInstallationStatus.js +12 -0
  370. package/dist/esm/rendering/react/components/AppInstallation/AppSystemSoftware.d.ts +6 -0
  371. package/dist/esm/rendering/react/components/AppInstallation/AppSystemSoftware.js +18 -0
  372. package/dist/esm/rendering/react/components/BooleanValue.d.ts +4 -0
  373. package/dist/esm/rendering/react/components/BooleanValue.js +9 -0
  374. package/dist/esm/rendering/react/components/ByteFormat.d.ts +4 -0
  375. package/dist/esm/rendering/react/components/ByteFormat.js +12 -0
  376. package/dist/esm/rendering/react/components/{ConversationMessage.js → Conversation/ConversationMessage.js} +1 -1
  377. package/dist/esm/rendering/react/components/Conversation/ConversationMessages.d.ts +8 -0
  378. package/dist/esm/rendering/react/components/Conversation/ConversationMessages.js +13 -0
  379. package/dist/esm/rendering/react/components/{ConversationMeta.js → Conversation/ConversationMeta.js} +8 -6
  380. package/dist/esm/rendering/react/components/CreatedAt.d.ts +8 -0
  381. package/dist/esm/rendering/react/components/CreatedAt.js +10 -0
  382. package/dist/esm/rendering/react/components/CronJob/CronJobDetails.d.ts +8 -0
  383. package/dist/esm/rendering/react/components/CronJob/CronJobDetails.js +48 -0
  384. package/dist/esm/rendering/react/components/DnsZone/DnsZoneDetails.d.ts +6 -0
  385. package/dist/esm/rendering/react/components/DnsZone/DnsZoneDetails.js +12 -0
  386. package/dist/esm/rendering/react/components/DnsZone/DnsZoneRecords.d.ts +6 -0
  387. package/dist/esm/rendering/react/components/DnsZone/DnsZoneRecords.js +17 -0
  388. package/dist/esm/rendering/react/components/DnsZone/DnsZoneRecordsA.d.ts +4 -0
  389. package/dist/esm/rendering/react/components/DnsZone/DnsZoneRecordsA.js +14 -0
  390. package/dist/esm/rendering/react/components/DnsZone/DnsZoneRecordsAAAA.d.ts +4 -0
  391. package/dist/esm/rendering/react/components/DnsZone/DnsZoneRecordsAAAA.js +14 -0
  392. package/dist/esm/rendering/react/components/DnsZone/DnsZoneRecordsMX.d.ts +4 -0
  393. package/dist/esm/rendering/react/components/DnsZone/DnsZoneRecordsMX.js +13 -0
  394. package/dist/esm/rendering/react/components/DnsZone/DnsZoneRecordsSRV.d.ts +4 -0
  395. package/dist/esm/rendering/react/components/DnsZone/DnsZoneRecordsSRV.js +9 -0
  396. package/dist/esm/rendering/react/components/DnsZone/DnsZoneRecordsTXT.d.ts +4 -0
  397. package/dist/esm/rendering/react/components/DnsZone/DnsZoneRecordsTXT.js +9 -0
  398. package/dist/esm/rendering/react/components/DnsZone/RecordComponent.d.ts +4 -0
  399. package/dist/esm/rendering/react/components/DnsZone/RecordComponent.js +1 -0
  400. package/dist/esm/rendering/react/components/DnsZone/RecordSetManagedByMittwald.d.ts +1 -0
  401. package/dist/esm/rendering/react/components/DnsZone/RecordSetManagedByMittwald.js +3 -0
  402. package/dist/esm/rendering/react/components/DnsZone/RecordSetValues.d.ts +4 -0
  403. package/dist/esm/rendering/react/components/DnsZone/RecordSetValues.js +5 -0
  404. package/dist/esm/rendering/react/components/Domain/DomainBaseDetails.d.ts +6 -0
  405. package/dist/esm/rendering/react/components/Domain/DomainBaseDetails.js +13 -0
  406. package/dist/esm/rendering/react/components/Domain/DomainDetails.d.ts +6 -0
  407. package/dist/esm/rendering/react/components/Domain/DomainDetails.js +7 -0
  408. package/dist/esm/rendering/react/components/Domain/DomainHandle.d.ts +7 -0
  409. package/dist/esm/rendering/react/components/Domain/DomainHandle.js +24 -0
  410. package/dist/esm/rendering/react/components/ErrorBox.d.ts +11 -0
  411. package/dist/esm/rendering/react/components/ErrorBox.js +71 -0
  412. package/dist/esm/rendering/react/components/Filename.d.ts +4 -0
  413. package/dist/esm/rendering/react/components/Filename.js +5 -0
  414. package/dist/esm/rendering/react/components/FormattedDate.d.ts +8 -0
  415. package/dist/esm/rendering/react/components/FormattedDate.js +16 -0
  416. package/dist/esm/rendering/react/components/Header.d.ts +2 -2
  417. package/dist/esm/rendering/react/components/IDAndShortID.d.ts +7 -0
  418. package/dist/esm/rendering/react/components/IDAndShortID.js +6 -0
  419. package/dist/esm/rendering/react/components/Ingress/DnsValidationErrors.d.ts +8 -0
  420. package/dist/esm/rendering/react/components/Ingress/DnsValidationErrors.js +17 -0
  421. package/dist/esm/rendering/react/components/JSONView.d.ts +7 -0
  422. package/dist/esm/rendering/react/components/JSONView.js +3 -0
  423. package/dist/esm/rendering/react/components/ListItem.d.ts +3 -0
  424. package/dist/esm/rendering/react/components/ListItem.js +5 -0
  425. package/dist/esm/rendering/react/components/LocalFilename.d.ts +5 -0
  426. package/dist/esm/rendering/react/components/LocalFilename.js +14 -0
  427. package/dist/esm/rendering/react/components/Note.d.ts +10 -0
  428. package/dist/esm/rendering/react/components/Note.js +8 -0
  429. package/dist/esm/rendering/react/components/Organization/CustomerIDAndNumber.d.ts +7 -0
  430. package/dist/esm/rendering/react/components/Organization/CustomerIDAndNumber.js +6 -0
  431. package/dist/esm/rendering/react/components/Organization/OrganizationOrderEligibility.d.ts +6 -0
  432. package/dist/esm/rendering/react/components/Organization/OrganizationOrderEligibility.js +9 -0
  433. package/dist/esm/rendering/react/components/Organization/OrganizationOwner.d.ts +6 -0
  434. package/dist/esm/rendering/react/components/Organization/OrganizationOwner.js +14 -0
  435. package/dist/esm/rendering/react/components/Project/ProjectEnabled.d.ts +6 -0
  436. package/dist/esm/rendering/react/components/Project/ProjectEnabled.js +9 -0
  437. package/dist/esm/rendering/react/components/Project/ProjectSimpleStatus.d.ts +7 -0
  438. package/dist/esm/rendering/react/components/Project/ProjectSimpleStatus.js +19 -0
  439. package/dist/esm/rendering/react/components/Project/ProjectStatus.d.ts +18 -0
  440. package/dist/esm/rendering/react/components/Project/ProjectStatus.js +8 -0
  441. package/dist/esm/rendering/react/components/ProjectBackup/ProjectBackupDetails.d.ts +6 -0
  442. package/dist/esm/rendering/react/components/ProjectBackup/ProjectBackupDetails.js +29 -0
  443. package/dist/esm/rendering/react/components/ProjectBackup/ProjectBackupStatus.d.ts +6 -0
  444. package/dist/esm/rendering/react/components/ProjectBackup/ProjectBackupStatus.js +8 -0
  445. package/dist/esm/rendering/react/components/Render.d.ts +6 -0
  446. package/dist/esm/rendering/react/components/Render.js +5 -0
  447. package/dist/esm/rendering/react/components/SingleResult.d.ts +10 -0
  448. package/dist/esm/rendering/react/components/SingleResult.js +15 -0
  449. package/dist/esm/rendering/react/components/Success.d.ts +9 -0
  450. package/dist/esm/rendering/react/components/Success.js +6 -0
  451. package/dist/esm/rendering/react/components/Table/BodyCell.d.ts +7 -0
  452. package/dist/esm/rendering/react/components/Table/BodyCell.js +7 -0
  453. package/dist/esm/rendering/react/components/Table/BodyRow.d.ts +7 -0
  454. package/dist/esm/rendering/react/components/Table/BodyRow.js +7 -0
  455. package/dist/esm/rendering/react/components/Table/BodyRows.d.ts +7 -0
  456. package/dist/esm/rendering/react/components/Table/BodyRows.js +6 -0
  457. package/dist/esm/rendering/react/components/Table/CellData.d.ts +6 -0
  458. package/dist/esm/rendering/react/components/Table/CellData.js +32 -0
  459. package/dist/esm/rendering/react/components/Table/CellLayout.d.ts +8 -0
  460. package/dist/esm/rendering/react/components/Table/CellLayout.js +17 -0
  461. package/dist/esm/rendering/react/components/Table/HeaderCell.d.ts +7 -0
  462. package/dist/esm/rendering/react/components/Table/HeaderCell.js +7 -0
  463. package/dist/esm/rendering/react/components/Table/HeaderRow.d.ts +8 -0
  464. package/dist/esm/rendering/react/components/Table/HeaderRow.js +7 -0
  465. package/dist/esm/rendering/react/components/Table/RowLayout.d.ts +5 -0
  466. package/dist/esm/rendering/react/components/Table/RowLayout.js +3 -0
  467. package/dist/esm/rendering/react/components/Table/Table.d.ts +10 -0
  468. package/dist/esm/rendering/react/components/Table/Table.js +21 -0
  469. package/dist/esm/rendering/react/components/Table/context.d.ts +9 -0
  470. package/dist/esm/rendering/react/components/Table/context.js +7 -0
  471. package/dist/esm/rendering/react/components/Table/index.d.ts +1 -0
  472. package/dist/esm/rendering/react/components/Table/index.js +1 -0
  473. package/dist/esm/rendering/react/components/Table/model/Cell.d.ts +19 -0
  474. package/dist/esm/rendering/react/components/Table/model/Cell.js +24 -0
  475. package/dist/esm/rendering/react/components/Table/model/Column.d.ts +16 -0
  476. package/dist/esm/rendering/react/components/Table/model/Column.js +38 -0
  477. package/dist/esm/rendering/react/components/Table/model/ColumnName.d.ts +7 -0
  478. package/dist/esm/rendering/react/components/Table/model/ColumnName.js +17 -0
  479. package/dist/esm/rendering/react/components/Table/model/ColumnOptions.d.ts +25 -0
  480. package/dist/esm/rendering/react/components/Table/model/ColumnOptions.js +41 -0
  481. package/dist/esm/rendering/react/components/Table/model/Row.d.ts +14 -0
  482. package/dist/esm/rendering/react/components/Table/model/Row.js +37 -0
  483. package/dist/esm/rendering/react/components/Table/model/Table.d.ts +19 -0
  484. package/dist/esm/rendering/react/components/Table/model/Table.js +48 -0
  485. package/dist/esm/rendering/react/components/Table/model/index.d.ts +5 -0
  486. package/dist/esm/rendering/react/components/Table/model/index.js +5 -0
  487. package/dist/esm/rendering/react/components/Value.d.ts +5 -0
  488. package/dist/esm/rendering/react/components/Value.js +8 -0
  489. package/dist/esm/rendering/react/components/Warning.d.ts +4 -0
  490. package/dist/esm/rendering/react/components/Warning.js +7 -0
  491. package/dist/esm/rendering/react/components/WithoutLineBreaks.d.ts +2 -0
  492. package/dist/esm/rendering/react/components/WithoutLineBreaks.js +7 -0
  493. package/dist/esm/rendering/react/context.d.ts +3 -2
  494. package/dist/esm/rendering/react/context.js +4 -1
  495. package/dist/esm/rendering/react/error.d.ts +7 -0
  496. package/dist/esm/rendering/react/error.js +12 -0
  497. package/dist/esm/rendering/react/hooks/useIncreaseInkStdoutColumns.d.ts +1 -0
  498. package/dist/esm/rendering/react/hooks/useIncreaseInkStdoutColumns.js +9 -0
  499. package/dist/esm/rendering/react/hooks/useMyUserProfile.js +5 -1
  500. package/dist/esm/rendering/react/json/JsonCollectionProvider.d.ts +2 -0
  501. package/dist/esm/rendering/react/json/JsonCollectionProvider.js +10 -0
  502. package/dist/esm/rendering/react/json/JsonRenderer.d.ts +2 -0
  503. package/dist/esm/rendering/react/json/JsonRenderer.js +14 -0
  504. package/dist/esm/rendering/react/json/RenderJson.d.ts +7 -0
  505. package/dist/esm/rendering/react/json/RenderJson.js +19 -0
  506. package/dist/esm/rendering/react/json/context.d.ts +5 -0
  507. package/dist/esm/rendering/react/json/context.js +4 -0
  508. package/dist/esm/rendering/react/json/lib/unpackJsonData.d.ts +1 -0
  509. package/dist/esm/rendering/react/json/lib/unpackJsonData.js +5 -0
  510. package/dist/esm/rendering/react/lib/observable-value/ObservableValue.d.ts +10 -0
  511. package/dist/esm/rendering/react/lib/observable-value/ObservableValue.js +25 -0
  512. package/dist/esm/rendering/react/lib/observable-value/types.d.ts +2 -0
  513. package/dist/esm/rendering/react/lib/observable-value/types.js +1 -0
  514. package/dist/esm/rendering/react/lib/observable-value/useWatchObservableValue.d.ts +2 -0
  515. package/dist/esm/rendering/react/lib/observable-value/useWatchObservableValue.js +9 -0
  516. package/dist/esm/rendering/react/measure/MeasureChildren.d.ts +8 -0
  517. package/dist/esm/rendering/react/measure/MeasureChildren.js +19 -0
  518. package/dist/esm/rendering/react/measure/MeasureContextProvider.d.ts +2 -0
  519. package/dist/esm/rendering/react/measure/MeasureContextProvider.js +14 -0
  520. package/dist/esm/rendering/react/measure/MeasureRenderer.d.ts +2 -0
  521. package/dist/esm/rendering/react/measure/MeasureRenderer.js +22 -0
  522. package/dist/esm/rendering/react/measure/context.d.ts +18 -0
  523. package/dist/esm/rendering/react/measure/context.js +48 -0
  524. package/dist/esm/rendering/setup/FlagSupportedSetup.d.ts +2 -0
  525. package/dist/esm/rendering/setup/TableRenderSetup.d.ts +10 -12
  526. package/dist/esm/rendering/setup/TableRenderSetup.js +19 -6
  527. package/dist/esm/rendering/setup/usePromiseSetup.d.ts +4 -3
  528. package/package.json +128 -38
  529. package/.deps/client.tgz +0 -0
  530. package/.deps/commons.tgz +0 -0
  531. package/dist/esm/commands/app/delete.d.ts +0 -12
  532. package/dist/esm/commands/app/delete.js +0 -45
  533. package/dist/esm/commands/app/getApp.d.ts +0 -3
  534. package/dist/esm/commands/app/getApp.js +0 -6
  535. package/dist/esm/commands/app/getAppinstallation.d.ts +0 -3
  536. package/dist/esm/commands/app/getAppinstallation.js +0 -6
  537. package/dist/esm/commands/app/getAppversion.d.ts +0 -3
  538. package/dist/esm/commands/app/getAppversion.js +0 -6
  539. package/dist/esm/commands/app/getSystemsoftware.d.ts +0 -3
  540. package/dist/esm/commands/app/getSystemsoftware.js +0 -6
  541. package/dist/esm/commands/app/getSystemsoftwareversion.d.ts +0 -3
  542. package/dist/esm/commands/app/getSystemsoftwareversion.js +0 -6
  543. package/dist/esm/commands/app/listAppinstallations.d.ts +0 -9
  544. package/dist/esm/commands/app/listAppinstallations.js +0 -6
  545. package/dist/esm/commands/app/listApps.d.ts +0 -9
  546. package/dist/esm/commands/app/listApps.js +0 -6
  547. package/dist/esm/commands/app/listAppversions.d.ts +0 -9
  548. package/dist/esm/commands/app/listAppversions.js +0 -6
  549. package/dist/esm/commands/app/listSystemsoftwares.d.ts +0 -9
  550. package/dist/esm/commands/app/listSystemsoftwares.js +0 -6
  551. package/dist/esm/commands/app/listSystemsoftwareversions.d.ts +0 -9
  552. package/dist/esm/commands/app/listSystemsoftwareversions.js +0 -6
  553. package/dist/esm/commands/app/retrieveStatus.d.ts +0 -3
  554. package/dist/esm/commands/app/retrieveStatus.js +0 -6
  555. package/dist/esm/commands/article/getArticle.d.ts +0 -3
  556. package/dist/esm/commands/article/getArticle.js +0 -6
  557. package/dist/esm/commands/article/listArticles.d.ts +0 -9
  558. package/dist/esm/commands/article/listArticles.js +0 -6
  559. package/dist/esm/commands/contract/getBaseItemOfContract.d.ts +0 -3
  560. package/dist/esm/commands/contract/getBaseItemOfContract.js +0 -6
  561. package/dist/esm/commands/contract/getDetailOfContract.d.ts +0 -3
  562. package/dist/esm/commands/contract/getDetailOfContract.js +0 -6
  563. package/dist/esm/commands/contract/getDetailOfContractByDomain.d.ts +0 -3
  564. package/dist/esm/commands/contract/getDetailOfContractByDomain.js +0 -6
  565. package/dist/esm/commands/contract/getDetailOfContractByProject.d.ts +0 -3
  566. package/dist/esm/commands/contract/getDetailOfContractByProject.js +0 -6
  567. package/dist/esm/commands/contract/getDetailOfContractByServer.d.ts +0 -3
  568. package/dist/esm/commands/contract/getDetailOfContractByServer.js +0 -6
  569. package/dist/esm/commands/contract/getDetailOfContractItem.d.ts +0 -3
  570. package/dist/esm/commands/contract/getDetailOfContractItem.js +0 -6
  571. package/dist/esm/commands/contract/getNextTerminationDateForItem.d.ts +0 -3
  572. package/dist/esm/commands/contract/getNextTerminationDateForItem.js +0 -6
  573. package/dist/esm/commands/contract/invoiceDetailOfInvoice.d.ts +0 -3
  574. package/dist/esm/commands/contract/invoiceDetailOfInvoice.js +0 -6
  575. package/dist/esm/commands/contract/invoiceGetDetailOfInvoiceSettings.d.ts +0 -3
  576. package/dist/esm/commands/contract/invoiceGetDetailOfInvoiceSettings.js +0 -6
  577. package/dist/esm/commands/contract/invoiceListCustomerInvoices.d.ts +0 -9
  578. package/dist/esm/commands/contract/invoiceListCustomerInvoices.js +0 -6
  579. package/dist/esm/commands/contract/listContracts.d.ts +0 -9
  580. package/dist/esm/commands/contract/listContracts.js +0 -6
  581. package/dist/esm/commands/contract/orderGetOrder.d.ts +0 -3
  582. package/dist/esm/commands/contract/orderGetOrder.js +0 -6
  583. package/dist/esm/commands/contract/orderListCustomerOrders.d.ts +0 -9
  584. package/dist/esm/commands/contract/orderListCustomerOrders.js +0 -6
  585. package/dist/esm/commands/contract/orderListProjectOrders.d.ts +0 -9
  586. package/dist/esm/commands/contract/orderListProjectOrders.js +0 -6
  587. package/dist/esm/commands/cronjob/getCronjob.d.ts +0 -3
  588. package/dist/esm/commands/cronjob/getCronjob.js +0 -6
  589. package/dist/esm/commands/cronjob/getExecution.d.ts +0 -3
  590. package/dist/esm/commands/cronjob/getExecution.js +0 -6
  591. package/dist/esm/commands/cronjob/listCronjobs.d.ts +0 -9
  592. package/dist/esm/commands/cronjob/listCronjobs.js +0 -6
  593. package/dist/esm/commands/cronjob/listExecutions.d.ts +0 -9
  594. package/dist/esm/commands/cronjob/listExecutions.js +0 -6
  595. package/dist/esm/commands/customer/getCustomer.d.ts +0 -3
  596. package/dist/esm/commands/customer/getCustomer.js +0 -6
  597. package/dist/esm/commands/customer/getCustomerCategory.d.ts +0 -3
  598. package/dist/esm/commands/customer/getCustomerCategory.js +0 -6
  599. package/dist/esm/commands/customer/getCustomerInvite.d.ts +0 -3
  600. package/dist/esm/commands/customer/getCustomerInvite.js +0 -6
  601. package/dist/esm/commands/customer/getCustomerMembership.d.ts +0 -3
  602. package/dist/esm/commands/customer/getCustomerMembership.js +0 -6
  603. package/dist/esm/commands/customer/getCustomerTokenInvite.d.ts +0 -3
  604. package/dist/esm/commands/customer/getCustomerTokenInvite.js +0 -6
  605. package/dist/esm/commands/customer/isCustomerLegallyCompetent.d.ts +0 -3
  606. package/dist/esm/commands/customer/isCustomerLegallyCompetent.js +0 -6
  607. package/dist/esm/commands/customer/listCustomerInvites.d.ts +0 -9
  608. package/dist/esm/commands/customer/listCustomerInvites.js +0 -6
  609. package/dist/esm/commands/customer/listCustomerMemberships.d.ts +0 -9
  610. package/dist/esm/commands/customer/listCustomerMemberships.js +0 -6
  611. package/dist/esm/commands/customer/listCustomers.d.ts +0 -9
  612. package/dist/esm/commands/customer/listCustomers.js +0 -6
  613. package/dist/esm/commands/customer/listInvitesForCustomer.d.ts +0 -9
  614. package/dist/esm/commands/customer/listInvitesForCustomer.js +0 -6
  615. package/dist/esm/commands/customer/listMembershipsForCustomer.d.ts +0 -9
  616. package/dist/esm/commands/customer/listMembershipsForCustomer.js +0 -6
  617. package/dist/esm/commands/customer/listOfCustomerCategories.d.ts +0 -9
  618. package/dist/esm/commands/customer/listOfCustomerCategories.js +0 -6
  619. package/dist/esm/commands/database/mysql/user/getMysqlUserPhpMyAdminUrl.d.ts +0 -3
  620. package/dist/esm/commands/database/mysql/user/getMysqlUserPhpMyAdminUrl.js +0 -7
  621. package/dist/esm/commands/domain/dnsZoneGetSpecific.d.ts +0 -3
  622. package/dist/esm/commands/domain/dnsZoneGetSpecific.js +0 -6
  623. package/dist/esm/commands/domain/dnsZonesForProject.d.ts +0 -3
  624. package/dist/esm/commands/domain/dnsZonesForProject.js +0 -6
  625. package/dist/esm/commands/domain/getHandleFields.d.ts +0 -3
  626. package/dist/esm/commands/domain/getHandleFields.js +0 -6
  627. package/dist/esm/commands/domain/getSpecificDomainOwnership.d.ts +0 -3
  628. package/dist/esm/commands/domain/getSpecificDomainOwnership.js +0 -6
  629. package/dist/esm/commands/domain/listDomainOwnerships.d.ts +0 -9
  630. package/dist/esm/commands/domain/listDomainOwnerships.js +0 -6
  631. package/dist/esm/commands/domain/tld/get.d.ts +0 -3
  632. package/dist/esm/commands/domain/tld/get.js +0 -6
  633. package/dist/esm/commands/domain/tld/list.d.ts +0 -9
  634. package/dist/esm/commands/domain/tld/list.js +0 -6
  635. package/dist/esm/commands/project/backup/get.d.ts +0 -3
  636. package/dist/esm/commands/project/backup/get.js +0 -6
  637. package/dist/esm/commands/project/backup/list.d.ts +0 -12
  638. package/dist/esm/commands/project/backup/list.js +0 -24
  639. package/dist/esm/commands/project/backupschedule/get.d.ts +0 -3
  640. package/dist/esm/commands/project/backupschedule/get.js +0 -6
  641. package/dist/esm/commands/project/backupschedule/list.d.ts +0 -13
  642. package/dist/esm/commands/project/backupschedule/list.js +0 -21
  643. package/dist/esm/commands/project/filesystem/directories.d.ts +0 -3
  644. package/dist/esm/commands/project/filesystem/directories.js +0 -6
  645. package/dist/esm/commands/project/filesystem/file-content.d.ts +0 -3
  646. package/dist/esm/commands/project/filesystem/file-content.js +0 -6
  647. package/dist/esm/commands/project/filesystem/files.d.ts +0 -16
  648. package/dist/esm/commands/project/filesystem/files.js +0 -25
  649. package/dist/esm/commands/project/list1.d.ts +0 -7
  650. package/dist/esm/commands/project/list1.js +0 -18
  651. package/dist/esm/commands/project/list2.d.ts +0 -9
  652. package/dist/esm/commands/project/list2.js +0 -26
  653. package/dist/esm/commands/project/sftp-user/list.d.ts +0 -13
  654. package/dist/esm/commands/project/sftp-user/list.js +0 -24
  655. package/dist/esm/commands/project/ssh-user/list.d.ts +0 -13
  656. package/dist/esm/commands/project/ssh-user/list.js +0 -24
  657. package/dist/esm/generated/app/getApp.d.ts +0 -16
  658. package/dist/esm/generated/app/getApp.js +0 -25
  659. package/dist/esm/generated/app/getAppinstallation.d.ts +0 -16
  660. package/dist/esm/generated/app/getAppinstallation.js +0 -25
  661. package/dist/esm/generated/app/getAppversion.d.ts +0 -16
  662. package/dist/esm/generated/app/getAppversion.js +0 -29
  663. package/dist/esm/generated/app/getSystemsoftware.d.ts +0 -16
  664. package/dist/esm/generated/app/getSystemsoftware.js +0 -25
  665. package/dist/esm/generated/app/getSystemsoftwareversion.d.ts +0 -16
  666. package/dist/esm/generated/app/getSystemsoftwareversion.js +0 -29
  667. package/dist/esm/generated/app/listAppinstallations.d.ts +0 -13
  668. package/dist/esm/generated/app/listAppinstallations.js +0 -24
  669. package/dist/esm/generated/app/listApps.d.ts +0 -13
  670. package/dist/esm/generated/app/listApps.js +0 -17
  671. package/dist/esm/generated/app/listAppversions.d.ts +0 -13
  672. package/dist/esm/generated/app/listAppversions.js +0 -24
  673. package/dist/esm/generated/app/listSystemsoftwares.d.ts +0 -13
  674. package/dist/esm/generated/app/listSystemsoftwares.js +0 -17
  675. package/dist/esm/generated/app/listSystemsoftwareversions.d.ts +0 -13
  676. package/dist/esm/generated/app/listSystemsoftwareversions.js +0 -24
  677. package/dist/esm/generated/app/retrieveStatus.d.ts +0 -14
  678. package/dist/esm/generated/app/retrieveStatus.js +0 -24
  679. package/dist/esm/generated/article/getArticle.d.ts +0 -16
  680. package/dist/esm/generated/article/getArticle.js +0 -25
  681. package/dist/esm/generated/article/listArticles.d.ts +0 -13
  682. package/dist/esm/generated/article/listArticles.js +0 -17
  683. package/dist/esm/generated/backup/getProjectBackup.d.ts +0 -16
  684. package/dist/esm/generated/backup/getProjectBackup.js +0 -25
  685. package/dist/esm/generated/backup/getProjectBackupSchedule.d.ts +0 -16
  686. package/dist/esm/generated/backup/getProjectBackupSchedule.js +0 -25
  687. package/dist/esm/generated/backup/listProjectBackupSchedules.d.ts +0 -13
  688. package/dist/esm/generated/backup/listProjectBackupSchedules.js +0 -24
  689. package/dist/esm/generated/backup/listProjectBackups.d.ts +0 -13
  690. package/dist/esm/generated/backup/listProjectBackups.js +0 -24
  691. package/dist/esm/generated/contract/getBaseItemOfContract.d.ts +0 -14
  692. package/dist/esm/generated/contract/getBaseItemOfContract.js +0 -24
  693. package/dist/esm/generated/contract/getDetailOfContract.d.ts +0 -16
  694. package/dist/esm/generated/contract/getDetailOfContract.js +0 -25
  695. package/dist/esm/generated/contract/getDetailOfContractByDomain.d.ts +0 -14
  696. package/dist/esm/generated/contract/getDetailOfContractByDomain.js +0 -24
  697. package/dist/esm/generated/contract/getDetailOfContractByProject.d.ts +0 -14
  698. package/dist/esm/generated/contract/getDetailOfContractByProject.js +0 -24
  699. package/dist/esm/generated/contract/getDetailOfContractByServer.d.ts +0 -14
  700. package/dist/esm/generated/contract/getDetailOfContractByServer.js +0 -24
  701. package/dist/esm/generated/contract/getDetailOfContractItem.d.ts +0 -16
  702. package/dist/esm/generated/contract/getDetailOfContractItem.js +0 -29
  703. package/dist/esm/generated/contract/getNextTerminationDateForItem.d.ts +0 -15
  704. package/dist/esm/generated/contract/getNextTerminationDateForItem.js +0 -28
  705. package/dist/esm/generated/contract/invoiceDetailOfInvoice.d.ts +0 -16
  706. package/dist/esm/generated/contract/invoiceDetailOfInvoice.js +0 -29
  707. package/dist/esm/generated/contract/invoiceGetDetailOfInvoiceSettings.d.ts +0 -14
  708. package/dist/esm/generated/contract/invoiceGetDetailOfInvoiceSettings.js +0 -24
  709. package/dist/esm/generated/contract/invoiceListCustomerInvoices.d.ts +0 -13
  710. package/dist/esm/generated/contract/invoiceListCustomerInvoices.js +0 -24
  711. package/dist/esm/generated/contract/listContracts.d.ts +0 -13
  712. package/dist/esm/generated/contract/listContracts.js +0 -24
  713. package/dist/esm/generated/contract/orderGetOrder.d.ts +0 -16
  714. package/dist/esm/generated/contract/orderGetOrder.js +0 -25
  715. package/dist/esm/generated/contract/orderListCustomerOrders.d.ts +0 -13
  716. package/dist/esm/generated/contract/orderListCustomerOrders.js +0 -24
  717. package/dist/esm/generated/contract/orderListProjectOrders.d.ts +0 -13
  718. package/dist/esm/generated/contract/orderListProjectOrders.js +0 -24
  719. package/dist/esm/generated/conversation/getCategory.d.ts +0 -16
  720. package/dist/esm/generated/conversation/getCategory.js +0 -25
  721. package/dist/esm/generated/conversation/getConversation.d.ts +0 -16
  722. package/dist/esm/generated/conversation/getConversation.js +0 -25
  723. package/dist/esm/generated/conversation/listCategories.d.ts +0 -13
  724. package/dist/esm/generated/conversation/listCategories.js +0 -17
  725. package/dist/esm/generated/conversation/listConversations.d.ts +0 -13
  726. package/dist/esm/generated/conversation/listConversations.js +0 -17
  727. package/dist/esm/generated/conversation/listMessagesByConversation.d.ts +0 -13
  728. package/dist/esm/generated/conversation/listMessagesByConversation.js +0 -24
  729. package/dist/esm/generated/cronjob/getCronjob.d.ts +0 -16
  730. package/dist/esm/generated/cronjob/getCronjob.js +0 -25
  731. package/dist/esm/generated/cronjob/getExecution.d.ts +0 -16
  732. package/dist/esm/generated/cronjob/getExecution.js +0 -29
  733. package/dist/esm/generated/cronjob/listCronjobs.d.ts +0 -13
  734. package/dist/esm/generated/cronjob/listCronjobs.js +0 -24
  735. package/dist/esm/generated/cronjob/listExecutions.d.ts +0 -13
  736. package/dist/esm/generated/cronjob/listExecutions.js +0 -24
  737. package/dist/esm/generated/customer/getCustomer.d.ts +0 -16
  738. package/dist/esm/generated/customer/getCustomer.js +0 -25
  739. package/dist/esm/generated/customer/getCustomerCategory.d.ts +0 -16
  740. package/dist/esm/generated/customer/getCustomerCategory.js +0 -25
  741. package/dist/esm/generated/customer/getCustomerInvite.d.ts +0 -16
  742. package/dist/esm/generated/customer/getCustomerInvite.js +0 -25
  743. package/dist/esm/generated/customer/getCustomerMembership.d.ts +0 -16
  744. package/dist/esm/generated/customer/getCustomerMembership.js +0 -25
  745. package/dist/esm/generated/customer/getCustomerTokenInvite.d.ts +0 -14
  746. package/dist/esm/generated/customer/getCustomerTokenInvite.js +0 -16
  747. package/dist/esm/generated/customer/isCustomerLegallyCompetent.d.ts +0 -14
  748. package/dist/esm/generated/customer/isCustomerLegallyCompetent.js +0 -24
  749. package/dist/esm/generated/customer/listCustomerInvites.d.ts +0 -13
  750. package/dist/esm/generated/customer/listCustomerInvites.js +0 -17
  751. package/dist/esm/generated/customer/listCustomerMemberships.d.ts +0 -13
  752. package/dist/esm/generated/customer/listCustomerMemberships.js +0 -17
  753. package/dist/esm/generated/customer/listCustomers.d.ts +0 -13
  754. package/dist/esm/generated/customer/listCustomers.js +0 -17
  755. package/dist/esm/generated/customer/listInvitesForCustomer.d.ts +0 -13
  756. package/dist/esm/generated/customer/listInvitesForCustomer.js +0 -24
  757. package/dist/esm/generated/customer/listMembershipsForCustomer.d.ts +0 -13
  758. package/dist/esm/generated/customer/listMembershipsForCustomer.js +0 -24
  759. package/dist/esm/generated/customer/listOfCustomerCategories.d.ts +0 -13
  760. package/dist/esm/generated/customer/listOfCustomerCategories.js +0 -17
  761. package/dist/esm/generated/database/getMysqlDatabase.d.ts +0 -16
  762. package/dist/esm/generated/database/getMysqlDatabase.js +0 -25
  763. package/dist/esm/generated/database/getMysqlUser.d.ts +0 -16
  764. package/dist/esm/generated/database/getMysqlUser.js +0 -25
  765. package/dist/esm/generated/database/getMysqlUserPhpMyAdminUrl.d.ts +0 -14
  766. package/dist/esm/generated/database/getMysqlUserPhpMyAdminUrl.js +0 -24
  767. package/dist/esm/generated/database/getRedisDatabase.d.ts +0 -16
  768. package/dist/esm/generated/database/getRedisDatabase.js +0 -25
  769. package/dist/esm/generated/database/listMysqlCharsets.d.ts +0 -13
  770. package/dist/esm/generated/database/listMysqlCharsets.js +0 -17
  771. package/dist/esm/generated/database/listMysqlDatabases.d.ts +0 -13
  772. package/dist/esm/generated/database/listMysqlDatabases.js +0 -24
  773. package/dist/esm/generated/database/listMysqlUsers.d.ts +0 -13
  774. package/dist/esm/generated/database/listMysqlUsers.js +0 -24
  775. package/dist/esm/generated/database/listMysqlVersions.d.ts +0 -13
  776. package/dist/esm/generated/database/listMysqlVersions.js +0 -17
  777. package/dist/esm/generated/database/listRedisDatabases.d.ts +0 -13
  778. package/dist/esm/generated/database/listRedisDatabases.js +0 -24
  779. package/dist/esm/generated/database/listRedisVersions.d.ts +0 -13
  780. package/dist/esm/generated/database/listRedisVersions.js +0 -17
  781. package/dist/esm/generated/domain/dnsZoneGetSpecific.d.ts +0 -16
  782. package/dist/esm/generated/domain/dnsZoneGetSpecific.js +0 -25
  783. package/dist/esm/generated/domain/dnsZonesForProject.d.ts +0 -14
  784. package/dist/esm/generated/domain/dnsZonesForProject.js +0 -24
  785. package/dist/esm/generated/domain/getDomain.d.ts +0 -16
  786. package/dist/esm/generated/domain/getDomain.js +0 -25
  787. package/dist/esm/generated/domain/getHandleFields.d.ts +0 -16
  788. package/dist/esm/generated/domain/getHandleFields.js +0 -25
  789. package/dist/esm/generated/domain/getSpecificDomainOwnership.d.ts +0 -16
  790. package/dist/esm/generated/domain/getSpecificDomainOwnership.js +0 -25
  791. package/dist/esm/generated/domain/getToplevelDomain.d.ts +0 -16
  792. package/dist/esm/generated/domain/getToplevelDomain.js +0 -25
  793. package/dist/esm/generated/domain/ingressGetSpecific.d.ts +0 -16
  794. package/dist/esm/generated/domain/ingressGetSpecific.js +0 -25
  795. package/dist/esm/generated/domain/ingressListAccessible.d.ts +0 -13
  796. package/dist/esm/generated/domain/ingressListAccessible.js +0 -17
  797. package/dist/esm/generated/domain/ingressListForProject.d.ts +0 -13
  798. package/dist/esm/generated/domain/ingressListForProject.js +0 -24
  799. package/dist/esm/generated/domain/listDomainOwnerships.d.ts +0 -13
  800. package/dist/esm/generated/domain/listDomainOwnerships.js +0 -24
  801. package/dist/esm/generated/domain/listDomains.d.ts +0 -13
  802. package/dist/esm/generated/domain/listDomains.js +0 -24
  803. package/dist/esm/generated/domain/listToplevelDomains.d.ts +0 -13
  804. package/dist/esm/generated/domain/listToplevelDomains.js +0 -17
  805. package/dist/esm/generated/file/getFile.d.ts +0 -16
  806. package/dist/esm/generated/file/getFile.js +0 -25
  807. package/dist/esm/generated/file/getFileMeta.d.ts +0 -14
  808. package/dist/esm/generated/file/getFileMeta.js +0 -24
  809. package/dist/esm/generated/file/getFileTokenRules.d.ts +0 -16
  810. package/dist/esm/generated/file/getFileTokenRules.js +0 -25
  811. package/dist/esm/generated/file/getFileTypeRules.d.ts +0 -16
  812. package/dist/esm/generated/file/getFileTypeRules.js +0 -25
  813. package/dist/esm/generated/mail/deliveryboxGetSpecific.d.ts +0 -16
  814. package/dist/esm/generated/mail/deliveryboxGetSpecific.js +0 -25
  815. package/dist/esm/generated/mail/deliveryboxList.d.ts +0 -13
  816. package/dist/esm/generated/mail/deliveryboxList.js +0 -24
  817. package/dist/esm/generated/mail/mailaddressGetSpecific.d.ts +0 -16
  818. package/dist/esm/generated/mail/mailaddressGetSpecific.js +0 -25
  819. package/dist/esm/generated/mail/mailaddressList.d.ts +0 -13
  820. package/dist/esm/generated/mail/mailaddressList.js +0 -24
  821. package/dist/esm/generated/mail/projectsettingGetSpecific.d.ts +0 -14
  822. package/dist/esm/generated/mail/projectsettingGetSpecific.js +0 -24
  823. package/dist/esm/generated/notification/newsletterGetInfo.d.ts +0 -14
  824. package/dist/esm/generated/notification/newsletterGetInfo.js +0 -16
  825. package/dist/esm/generated/notification/scountUnreadNotifications.d.ts +0 -14
  826. package/dist/esm/generated/notification/scountUnreadNotifications.js +0 -16
  827. package/dist/esm/generated/notification/slistNotifications.d.ts +0 -13
  828. package/dist/esm/generated/notification/slistNotifications.js +0 -17
  829. package/dist/esm/generated/project/getProject.d.ts +0 -16
  830. package/dist/esm/generated/project/getProject.js +0 -25
  831. package/dist/esm/generated/project/getProjectInvite.d.ts +0 -16
  832. package/dist/esm/generated/project/getProjectInvite.js +0 -25
  833. package/dist/esm/generated/project/getProjectMembership.d.ts +0 -16
  834. package/dist/esm/generated/project/getProjectMembership.js +0 -25
  835. package/dist/esm/generated/project/getProjectTokenInvite.d.ts +0 -14
  836. package/dist/esm/generated/project/getProjectTokenInvite.js +0 -16
  837. package/dist/esm/generated/project/getSelfMembershipForProject.d.ts +0 -14
  838. package/dist/esm/generated/project/getSelfMembershipForProject.js +0 -24
  839. package/dist/esm/generated/project/getServer.d.ts +0 -16
  840. package/dist/esm/generated/project/getServer.js +0 -25
  841. package/dist/esm/generated/project/listInvitesForProject.d.ts +0 -13
  842. package/dist/esm/generated/project/listInvitesForProject.js +0 -24
  843. package/dist/esm/generated/project/listMembershipsForProject.d.ts +0 -13
  844. package/dist/esm/generated/project/listMembershipsForProject.js +0 -24
  845. package/dist/esm/generated/project/listProjectInvites.d.ts +0 -13
  846. package/dist/esm/generated/project/listProjectInvites.js +0 -17
  847. package/dist/esm/generated/project/listProjectMemberships.d.ts +0 -13
  848. package/dist/esm/generated/project/listProjectMemberships.js +0 -17
  849. package/dist/esm/generated/project/listProjects.d.ts +0 -13
  850. package/dist/esm/generated/project/listProjects.js +0 -17
  851. package/dist/esm/generated/project/listServers.d.ts +0 -13
  852. package/dist/esm/generated/project/listServers.js +0 -17
  853. package/dist/esm/generated/projectFileSystem/getDirectories.d.ts +0 -14
  854. package/dist/esm/generated/projectFileSystem/getDirectories.js +0 -24
  855. package/dist/esm/generated/projectFileSystem/getDiskUsage.d.ts +0 -14
  856. package/dist/esm/generated/projectFileSystem/getDiskUsage.js +0 -24
  857. package/dist/esm/generated/projectFileSystem/getFileContent.d.ts +0 -14
  858. package/dist/esm/generated/projectFileSystem/getFileContent.js +0 -24
  859. package/dist/esm/generated/projectFileSystem/getJwt.d.ts +0 -14
  860. package/dist/esm/generated/projectFileSystem/getJwt.js +0 -24
  861. package/dist/esm/generated/projectFileSystem/listFiles.d.ts +0 -13
  862. package/dist/esm/generated/projectFileSystem/listFiles.js +0 -24
  863. package/dist/esm/generated/sshsftpUser/sftpUserGetSftpUser.d.ts +0 -16
  864. package/dist/esm/generated/sshsftpUser/sftpUserGetSftpUser.js +0 -25
  865. package/dist/esm/generated/sshsftpUser/sftpUserListSftpUsers.d.ts +0 -13
  866. package/dist/esm/generated/sshsftpUser/sftpUserListSftpUsers.js +0 -24
  867. package/dist/esm/generated/sshsftpUser/sshUserGetSshUser.d.ts +0 -16
  868. package/dist/esm/generated/sshsftpUser/sshUserGetSshUser.js +0 -25
  869. package/dist/esm/generated/sshsftpUser/sshUserListSshUsers.d.ts +0 -13
  870. package/dist/esm/generated/sshsftpUser/sshUserListSshUsers.js +0 -24
  871. package/dist/esm/generated/user/getApiToken.d.ts +0 -16
  872. package/dist/esm/generated/user/getApiToken.js +0 -25
  873. package/dist/esm/generated/user/getEmail.d.ts +0 -14
  874. package/dist/esm/generated/user/getEmail.js +0 -16
  875. package/dist/esm/generated/user/getMfaStatus.d.ts +0 -14
  876. package/dist/esm/generated/user/getMfaStatus.js +0 -16
  877. package/dist/esm/generated/user/getOwnProfile.d.ts +0 -14
  878. package/dist/esm/generated/user/getOwnProfile.js +0 -16
  879. package/dist/esm/generated/user/getPasswordUpdatedAt.d.ts +0 -14
  880. package/dist/esm/generated/user/getPasswordUpdatedAt.js +0 -16
  881. package/dist/esm/generated/user/getPersonalizedSettings.d.ts +0 -14
  882. package/dist/esm/generated/user/getPersonalizedSettings.js +0 -24
  883. package/dist/esm/generated/user/getSession.d.ts +0 -16
  884. package/dist/esm/generated/user/getSession.js +0 -25
  885. package/dist/esm/generated/user/getSshKey.d.ts +0 -16
  886. package/dist/esm/generated/user/getSshKey.js +0 -25
  887. package/dist/esm/generated/user/getUser.d.ts +0 -14
  888. package/dist/esm/generated/user/getUser.js +0 -16
  889. package/dist/esm/generated/user/listApiTokens.d.ts +0 -13
  890. package/dist/esm/generated/user/listApiTokens.js +0 -17
  891. package/dist/esm/generated/user/listFeedback.d.ts +0 -13
  892. package/dist/esm/generated/user/listFeedback.js +0 -24
  893. package/dist/esm/generated/user/listSessions.d.ts +0 -13
  894. package/dist/esm/generated/user/listSessions.js +0 -17
  895. package/dist/esm/generated/user/listSshKeys.d.ts +0 -13
  896. package/dist/esm/generated/user/listSshKeys.js +0 -17
  897. package/dist/esm/generated/user/supportCodeRequest.d.ts +0 -14
  898. package/dist/esm/generated/user/supportCodeRequest.js +0 -16
  899. package/dist/esm/rendering/oclif/components/table.d.ts +0 -11
  900. package/dist/esm/rendering/oclif/components/table.js +0 -49
  901. package/dist/esm/rendering/react/components/Table.d.ts +0 -7
  902. package/dist/esm/rendering/react/components/Table.js +0 -4
  903. /package/dist/esm/rendering/react/components/{ConversationMessage.d.ts → Conversation/ConversationMessage.d.ts} +0 -0
  904. /package/dist/esm/rendering/react/components/{ConversationMeta.d.ts → Conversation/ConversationMeta.d.ts} +0 -0
  905. /package/dist/esm/rendering/react/components/{ConversationStatusUpdate.d.ts → Conversation/ConversationStatusUpdate.d.ts} +0 -0
  906. /package/dist/esm/rendering/react/components/{ConversationStatusUpdate.js → Conversation/ConversationStatusUpdate.js} +0 -0
@@ -0,0 +1,49 @@
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 { waitUntilAppIsInstalled } from "./wait.js";
8
+ import { Success } from "../../rendering/react/components/Success.js";
9
+ export class AppInstaller {
10
+ appId;
11
+ appName;
12
+ appSupportedFlags;
13
+ description;
14
+ static makeDescription(appName) {
15
+ return `Creates new ${appName} installation.`;
16
+ }
17
+ constructor(appId, appName, appSupportedFlags) {
18
+ this.appId = appId;
19
+ this.appName = appName;
20
+ this.appSupportedFlags = appSupportedFlags;
21
+ this.description = AppInstaller.makeDescription(appName);
22
+ }
23
+ get flags() {
24
+ return provideSupportedFlags(this.appSupportedFlags, this.appName);
25
+ }
26
+ async exec(apiClient, args, flags, config) {
27
+ const process = makeProcessRenderer(flags, `Installing ${this.appName}`);
28
+ const projectId = await withProjectId(apiClient, "flag", flags, args, config);
29
+ await autofillFlags(apiClient, process, this.appSupportedFlags, flags, projectId, this.appName);
30
+ const appVersion = await normalizeToAppVersionUuid(apiClient, "version" in flags ? flags.version : "latest", process, this.appId);
31
+ const [appInstallationId, eventId] = await triggerAppInstallation(apiClient, process, projectId, flags, appVersion);
32
+ let successText;
33
+ if (flags.wait) {
34
+ await waitUntilAppIsInstalled(apiClient, process, appInstallationId, eventId);
35
+ successText = `Your ${this.appName} installation is now complete. Have fun! 🎉`;
36
+ }
37
+ else {
38
+ successText = `Your ${this.appName} installation has started. Have fun when it's ready! 🎉`;
39
+ }
40
+ process.complete(_jsx(Success, { children: successText }));
41
+ return { appInstallationId };
42
+ }
43
+ render(result, flags) {
44
+ if (flags.quiet) {
45
+ return result.appInstallationId;
46
+ }
47
+ return undefined;
48
+ }
49
+ }
@@ -0,0 +1,28 @@
1
+ import { MittwaldAPIV2Client } from "@mittwald/api-client";
2
+ import { ProcessRenderer } from "../../rendering/process/process.js";
3
+ import { ProcessFlags } from "../../rendering/process/process_flags.js";
4
+ import { BooleanFlag, FlagInput, OptionFlag, OutputFlags } from "@oclif/core/lib/interfaces/parser.js";
5
+ export declare const appInstallationFlags: import("../context_flags.js").ContextFlags<"project" | "installation", "project-id" | "installation-id">, appInstallationArgs: import("../context_flags.js").ContextArgs<"project" | "installation", "project-id" | "installation-id">, withAppInstallationId: (apiClient: MittwaldAPIV2Client, command: "flag" | "arg" | import("../context_flags.js").CommandType<"project" | "installation", "project-id" | "installation-id">, flags: import("@oclif/core/lib/interfaces/parser.js").FlagOutput, args: import("@oclif/core/lib/interfaces/parser.js").ArgOutput, cfg: import("@oclif/core").Config) => Promise<string>;
6
+ export declare function normalizeAppInstallationId(apiClient: MittwaldAPIV2Client, projectId: string, id: string): Promise<string>;
7
+ export type AvailableFlagName = keyof AvailableFlags;
8
+ interface AvailableFlags {
9
+ version: OptionFlag<string>;
10
+ host: OptionFlag<string | undefined>;
11
+ "admin-user": OptionFlag<string | undefined>;
12
+ "admin-email": OptionFlag<string | undefined>;
13
+ "admin-pass": OptionFlag<string | undefined>;
14
+ "admin-firstname": OptionFlag<string | undefined>;
15
+ "admin-lastname": OptionFlag<string | undefined>;
16
+ "site-title": OptionFlag<string | undefined>;
17
+ "shop-email": OptionFlag<string | undefined>;
18
+ "shop-lang": OptionFlag<string | undefined>;
19
+ "shop-currency": OptionFlag<string | undefined>;
20
+ "install-mode": OptionFlag<string>;
21
+ "document-root": OptionFlag<string>;
22
+ wait: BooleanFlag<boolean | undefined>;
23
+ }
24
+ export type RelevantFlags<TFlags extends readonly AvailableFlagName[]> = ProcessFlags & Pick<AvailableFlags, TFlags[number]>;
25
+ export type RelevantFlagInput<TFlags extends readonly AvailableFlagName[]> = FlagInput<RelevantFlags<TFlags>>;
26
+ export declare function provideSupportedFlags<TFlagNames extends readonly AvailableFlagName[]>(requestedFlagNames: TFlagNames, appName: string): RelevantFlagInput<TFlagNames>;
27
+ export declare function autofillFlags(apiClient: MittwaldAPIV2Client, process: ProcessRenderer, necessaryFlags: readonly AvailableFlagName[], flags: Partial<OutputFlags<RelevantFlagInput<AvailableFlagName[]>>>, projectId: string, appName: string): Promise<void>;
28
+ export {};
@@ -0,0 +1,212 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { getDefaultIngressForProject } from "../project/ingress.js";
3
+ import { Value } from "../../rendering/react/components/Value.js";
4
+ import { getProjectShortIdFromUuid } from "../project/shortId.js";
5
+ import { Text } from "ink";
6
+ import { assertStatus } from "@mittwald/api-client-commons";
7
+ import { makeProjectFlagSet, projectFlags } from "../project/flags.js";
8
+ import { processFlags, } from "../../rendering/process/process_flags.js";
9
+ import { Flags } from "@oclif/core";
10
+ import { generatePasswordWithSpecialChars } from "../password.js";
11
+ import { isUuid } from "../../Helpers.js";
12
+ export const { flags: appInstallationFlags, args: appInstallationArgs, withId: withAppInstallationId, } = makeProjectFlagSet("installation", "i", {
13
+ displayName: "app installation",
14
+ normalize: normalizeAppInstallationId,
15
+ supportsContext: true,
16
+ });
17
+ export async function normalizeAppInstallationId(apiClient, projectId, id) {
18
+ if (isUuid(id)) {
19
+ return id;
20
+ }
21
+ const appInstallations = await apiClient.app.listAppinstallations({
22
+ projectId,
23
+ });
24
+ assertStatus(appInstallations, 200);
25
+ return appInstallations.data.find((inst) => inst.shortId === id)?.id ?? id;
26
+ }
27
+ function buildFlagsWithDescription(appName) {
28
+ return {
29
+ version: Flags.string({
30
+ required: true,
31
+ summary: `Version of ${appName} to be installed.`,
32
+ description: `Specify the Version in which your ${appName} will be installed.
33
+ If none is given the ${appName} will be installed in the latest available version.`,
34
+ default: "latest",
35
+ }),
36
+ host: Flags.string({
37
+ required: false,
38
+ summary: `Host to initially configure your ${appName} installation with; needs to be created separately.`,
39
+ description: `Specify a host which will be used during the installation and as an initial host for the ${appName} configuration.
40
+ If not given the default host for the given Project will be used.
41
+ This does not change the target of the used Host and can be changed later by configuring the Host and your ${appName} installation.`,
42
+ }),
43
+ "admin-user": Flags.string({
44
+ required: false,
45
+ summary: "Username for your administrator-user.",
46
+ description: `Username of the first administrator-user which will be created during the ${appName} installation.
47
+ If not given an adequate username will be created from your mStudio Account Data.
48
+ After the installation is finished the Username can be changed and additional administrator-users can be created.`,
49
+ }),
50
+ "admin-email": Flags.string({
51
+ required: false,
52
+ summary: "E-Mail-Address of your administrator-user.",
53
+ description: `E-Mail-Address that will correlate to the first administrator-user which will be created during the ${appName} installation.
54
+ If not given your mStudio Account-E-Mail-Address will be used. This E-Mail-Address can be changed after the installation is finished.`,
55
+ }),
56
+ "admin-pass": Flags.string({
57
+ required: false,
58
+ summary: "Password of your administrator-user.",
59
+ description: `Password that will correlate to the first administrator-user which will be created during the ${appName} installation.
60
+ If not given a random secure Password will be generated and sent to stdout. This Password can be changed after the installation is finished`,
61
+ }),
62
+ "admin-firstname": Flags.string({
63
+ required: false,
64
+ summary: "Firstname of your administrator-user.",
65
+ description: `Firstname that will correlate to the first administrator-user which will be created during the ${appName} installation.
66
+ If none is given your mStudio Account-Firstname will be used. This Firstname can be changed after the installation is finished`,
67
+ }),
68
+ "admin-lastname": Flags.string({
69
+ required: false,
70
+ summary: "Lastname of your administrator-user.",
71
+ description: `Lastname that will correlate to the first administrator-user which will be created during the ${appName} installation.
72
+ If none is given your mStudio Account-Firstname will be used. This Lastname can be changed after the installation is finished`,
73
+ }),
74
+ "site-title": Flags.string({
75
+ required: false,
76
+ summary: `Site Title for your ${appName} installation.`,
77
+ description: `Site Title which will be displayed in the Tab and at the top of the Frontend of your ${appName} installation.
78
+ It is also the Title shown in the App-Overview in the mStudio.
79
+ If none is given the Software Name and the given Project will be used. The Title can be changed after the installation is finished`,
80
+ }),
81
+ "shop-email": Flags.string({
82
+ required: false,
83
+ summary: `E-Mail-Address your ${appName} will be working with.`,
84
+ description: `The E-Mail-Address your ${appName} shop will be using for correspondence..
85
+ If not given your mStudio Account-E-Mail-Address will be used. This E-Mail-Address can be changed after the installation is finished.`,
86
+ }),
87
+ "shop-lang": Flags.string({
88
+ required: false,
89
+ summary: `Language your ${appName} will be working with.`,
90
+ description: `The default Language your ${appName} shop will be using.
91
+ The Front- and Backend will be displayed using the given language.
92
+ If not given will default to German(de_DE). The language can be changed after the installation is finished.`,
93
+ }),
94
+ "shop-currency": Flags.string({
95
+ required: false,
96
+ summary: `Currency your ${appName} will be working with.`,
97
+ description: `The default Currency your ${appName} shop communicates prices and calculates transactions with.
98
+ If not given will default to EUR(€). The currency can be changed after the installation is finished.`,
99
+ }),
100
+ "install-mode": Flags.string({
101
+ required: true,
102
+ summary: `The installation variant your ${appName} will be installed with.`,
103
+ description: `${appName} can be installed in one of two different ways. your ${appName} shop communicates prices and calculates transactions with.
104
+ Either as a composer project or in a more manual fashion using the source directory and the ${appName} console install wizard.
105
+ If not given will default to composer installation. This can not be changed later.`,
106
+ options: ["composer", "symlink"],
107
+ default: "composer",
108
+ }),
109
+ "document-root": Flags.string({
110
+ required: true,
111
+ summary: `The document root from which your ${appName} will be served (relative to the installation path)`,
112
+ description: "This is the document root from which the files of your application will be served by the web server. This directory is specified relative to the installation path.",
113
+ default: "/",
114
+ }),
115
+ wait: Flags.boolean({
116
+ char: "w",
117
+ description: `Wait for your ${appName} to be ready.`,
118
+ }),
119
+ };
120
+ }
121
+ export function provideSupportedFlags(requestedFlagNames, appName) {
122
+ const availableFlags = buildFlagsWithDescription(appName);
123
+ const supportedFlags = requestedFlagNames.reduce((collector, currentValue) => {
124
+ return {
125
+ ...collector,
126
+ [currentValue]: availableFlags[currentValue],
127
+ };
128
+ }, {});
129
+ const flagsToReturn = {
130
+ ...projectFlags,
131
+ ...processFlags,
132
+ ...supportedFlags,
133
+ json: Flags.boolean({}),
134
+ };
135
+ return flagsToReturn;
136
+ }
137
+ export async function autofillFlags(apiClient, process, necessaryFlags, flags, projectId, appName) {
138
+ const ownUser = await apiClient.user.getOwnAccount();
139
+ assertStatus(ownUser, 200);
140
+ // Version
141
+ if (necessaryFlags.includes("version") && !flags.version) {
142
+ flags.version = "latest";
143
+ }
144
+ // Host
145
+ if (necessaryFlags.includes("host") && !flags.host) {
146
+ flags.host =
147
+ "https://" + (await getDefaultIngressForProject(apiClient, projectId));
148
+ process.addInfo(_jsxs(Text, { children: ["Using default Host ", _jsx(Value, { children: flags["host"] })] }));
149
+ }
150
+ // Title
151
+ if (necessaryFlags.includes("site-title") && !flags["site-title"]) {
152
+ flags["site-title"] =
153
+ appName + " " + (await getProjectShortIdFromUuid(apiClient, projectId));
154
+ }
155
+ // Admin User
156
+ if (necessaryFlags.includes("admin-user") && !flags["admin-user"]) {
157
+ if (ownUser.data.person) {
158
+ flags["admin-user"] =
159
+ ownUser.data.person.firstName.charAt(0).toLowerCase() +
160
+ ownUser.data.person.lastName.toLowerCase();
161
+ }
162
+ else {
163
+ flags["admin-user"] = await getProjectShortIdFromUuid(apiClient, projectId);
164
+ }
165
+ process.addInfo(_jsxs(Text, { children: ["Using generated Admin User: ", _jsx(Value, { children: flags["admin-user"] })] }));
166
+ }
167
+ // Admin Pass
168
+ if (necessaryFlags.includes("admin-pass") && !flags["admin-pass"]) {
169
+ flags["admin-pass"] = generatePasswordWithSpecialChars();
170
+ process.addInfo(_jsxs(Text, { children: ["Using generated random Admin Pass: ", _jsx(Value, { children: flags["admin-pass"] })] }));
171
+ }
172
+ // Admin Firstname
173
+ if (necessaryFlags.includes("admin-firstname") && !flags["admin-firstname"]) {
174
+ if (ownUser.data.person) {
175
+ flags["admin-firstname"] = ownUser.data.person.firstName;
176
+ }
177
+ else {
178
+ flags["admin-firstname"] = "Max";
179
+ }
180
+ process.addInfo(_jsxs(Text, { children: ["Using mStudio firstname as Admin firstname (", _jsx(Value, { children: flags["admin-firstname"] }), ")"] }));
181
+ }
182
+ // Admin Lastname
183
+ if (necessaryFlags.includes("admin-lastname") && !flags["admin-lastname"]) {
184
+ if (ownUser.data.person) {
185
+ flags["admin-lastname"] = ownUser.data.person.lastName;
186
+ }
187
+ else {
188
+ flags["admin-lastname"] = "Mustermann";
189
+ }
190
+ process.addInfo(_jsxs(Text, { children: ["Using mStudio lastname as Admin lastname (", _jsx(Value, { children: flags["admin-lastname"] }), ")"] }));
191
+ }
192
+ // Admin E-Mail
193
+ if (necessaryFlags.includes("admin-email") && !flags["admin-email"]) {
194
+ flags["admin-email"] = ownUser.data.email;
195
+ process.addInfo(_jsxs(Text, { children: ["Using mStudio email as Admin email (", _jsx(Value, { children: flags["admin-email"] }), ")"] }));
196
+ }
197
+ // Shop E-Mail
198
+ if (necessaryFlags.includes("shop-email") && !flags["shop-email"]) {
199
+ flags["shop-email"] = ownUser.data.email;
200
+ process.addInfo(_jsxs(Text, { children: ["Using mStudio email as Shop email (", _jsx(Value, { children: flags["shop-email"] }), ")"] }));
201
+ }
202
+ // Shop Language Code
203
+ if (necessaryFlags.includes("shop-lang") && !flags["shop-lang"]) {
204
+ flags["shop-lang"] = "de-DE";
205
+ process.addInfo(_jsx(Text, { children: "Using default shop language 'de_DE'." }));
206
+ }
207
+ // Shop Currency
208
+ if (necessaryFlags.includes("shop-currency") && !flags["shop-currency"]) {
209
+ flags["shop-currency"] = "EUR";
210
+ process.addInfo(_jsx(Text, { children: "Using default shop currency '\u20AC'." }));
211
+ }
212
+ }
@@ -0,0 +1,11 @@
1
+ import { MittwaldAPIV2 } from "@mittwald/api-client";
2
+ import AppSystemSoftware = MittwaldAPIV2.Components.Schemas.AppSystemSoftware;
3
+ import AppSystemSoftwareVersion = MittwaldAPIV2.Components.Schemas.AppSystemSoftwareVersion;
4
+ import AppAppVersion = MittwaldAPIV2.Components.Schemas.AppAppVersion;
5
+ import AppApp = MittwaldAPIV2.Components.Schemas.AppApp;
6
+ import AppAppInstallation = MittwaldAPIV2.Components.Schemas.AppAppInstallation;
7
+ export declare function useApp(appId: string): AppApp;
8
+ export declare function useAppInstallation(appInstallationId: string): AppAppInstallation;
9
+ export declare function useAppVersion(appId: string, appVersionId: string): AppAppVersion;
10
+ export declare function useSystemSoftware(systemSoftwareId: string): AppSystemSoftware;
11
+ export declare function useSystemSoftwareVersion(systemSoftwareId: string, systemSoftwareVersionId: string): AppSystemSoftwareVersion;
@@ -0,0 +1,43 @@
1
+ import { usePromise } from "@mittwald/react-use-promise";
2
+ import { assertStatus } from "@mittwald/api-client-commons";
3
+ import { useRenderContext } from "../../rendering/react/context.js";
4
+ export function useApp(appId) {
5
+ const { apiClient } = useRenderContext();
6
+ const app = usePromise((id) => apiClient.app.getApp({ appId: id }), [appId]);
7
+ assertStatus(app, 200);
8
+ return app.data;
9
+ }
10
+ export function useAppInstallation(appInstallationId) {
11
+ const { apiClient } = useRenderContext();
12
+ const appInstallation = usePromise((id) => apiClient.app.getAppinstallation({
13
+ appInstallationId: id,
14
+ }), [appInstallationId]);
15
+ assertStatus(appInstallation, 200);
16
+ return appInstallation.data;
17
+ }
18
+ export function useAppVersion(appId, appVersionId) {
19
+ const { apiClient } = useRenderContext();
20
+ const appVersion = usePromise((appId, appVersionId) => apiClient.app.getAppversion({
21
+ appId,
22
+ appVersionId,
23
+ }), [appId, appVersionId]);
24
+ assertStatus(appVersion, 200);
25
+ return appVersion.data;
26
+ }
27
+ export function useSystemSoftware(systemSoftwareId) {
28
+ const { apiClient } = useRenderContext();
29
+ const systemSoftware = usePromise((id) => apiClient.app.getSystemsoftware({
30
+ systemSoftwareId: id,
31
+ }), [systemSoftwareId]);
32
+ assertStatus(systemSoftware, 200);
33
+ return systemSoftware.data;
34
+ }
35
+ export function useSystemSoftwareVersion(systemSoftwareId, systemSoftwareVersionId) {
36
+ const { apiClient } = useRenderContext();
37
+ const systemSoftwareVersion = usePromise((systemSoftwareId, systemSoftwareVersionId) => apiClient.app.getSystemsoftwareversion({
38
+ systemSoftwareId,
39
+ systemSoftwareVersionId,
40
+ }), [systemSoftwareId, systemSoftwareVersionId]);
41
+ assertStatus(systemSoftwareVersion, 200);
42
+ return systemSoftwareVersion.data;
43
+ }
@@ -0,0 +1,4 @@
1
+ import { MittwaldAPIV2, MittwaldAPIV2Client } from "@mittwald/api-client";
2
+ import { ProcessRenderer } from "../../rendering/process/process.js";
3
+ import AppAppVersion = MittwaldAPIV2.Components.Schemas.AppAppVersion;
4
+ export declare function triggerAppInstallation(apiClient: MittwaldAPIV2Client, process: ProcessRenderer, projectId: string, flags: Record<string, string>, appVersion: AppAppVersion): Promise<string[]>;
@@ -0,0 +1,43 @@
1
+ import { assertStatus } from "@mittwald/api-client-commons";
2
+ export async function triggerAppInstallation(apiClient, process, projectId, flags, appVersion) {
3
+ const [appInstallationId, eventId] = await process.runStep("starting installation", async () => {
4
+ const result = await apiClient.app.requestAppinstallation({
5
+ projectId,
6
+ data: {
7
+ appVersionId: appVersion.id,
8
+ description: flags["site-title"],
9
+ updatePolicy: "none",
10
+ userInputs: Object.keys(flags).map((k) => ({
11
+ name: k.replace("-", "_"),
12
+ value: flags[k],
13
+ })),
14
+ },
15
+ });
16
+ assertStatus(result, 201);
17
+ return [result.data.id, result.headers["etag"]];
18
+ });
19
+ await process.runStep("waiting for installation to be retrievable", async () => {
20
+ for (let attempts = 0; attempts < 10; attempts++) {
21
+ const result = await apiClient.app.getAppinstallation({
22
+ appInstallationId,
23
+ });
24
+ if (result.status === 200) {
25
+ return result.data;
26
+ }
27
+ await new Promise((resolve) => setTimeout(resolve, 100));
28
+ }
29
+ });
30
+ if ("document-root" in flags && flags["document-root"] !== "/") {
31
+ await process.runStep("setting document root", async () => {
32
+ const result = await apiClient.app.patchAppinstallation({
33
+ appInstallationId,
34
+ headers: { "if-event-reached": eventId },
35
+ data: {
36
+ customDocumentRoot: flags["document-root"],
37
+ },
38
+ });
39
+ assertStatus(result, 204);
40
+ });
41
+ }
42
+ return [appInstallationId, eventId];
43
+ }
@@ -0,0 +1,4 @@
1
+ import { MittwaldAPIV2Client } from "@mittwald/api-client";
2
+ export declare function getAppUuidFromAppName(apiClient: MittwaldAPIV2Client, softwareName: string): Promise<string>;
3
+ export declare function getAppNameFromUuid(apiClient: MittwaldAPIV2Client, uuid: string): Promise<string>;
4
+ export declare function getAppVersionFromUuid(apiClient: MittwaldAPIV2Client, appId: string, appVersionId: string): Promise<string>;
@@ -0,0 +1,44 @@
1
+ import { assertStatus } from "@mittwald/api-client-commons";
2
+ import { isUuid } from "../../Helpers.js";
3
+ // Get App UUID from App Name
4
+ export async function getAppUuidFromAppName(apiClient, softwareName) {
5
+ const apps = await apiClient.app.listApps();
6
+ assertStatus(apps, 200);
7
+ const foundApp = apps.data.find((item) => {
8
+ return (item.name.toLowerCase().replace(/[!. ]/g, "") ===
9
+ softwareName.toLowerCase().replace(/[!. ]/g, ""));
10
+ });
11
+ if (foundApp) {
12
+ return foundApp.id;
13
+ }
14
+ throw new Error("Access Denied.");
15
+ }
16
+ // Get App Human readable Name from App UUID
17
+ export async function getAppNameFromUuid(apiClient, uuid) {
18
+ if (!isUuid(uuid)) {
19
+ throw new Error("Given UUID not valid.");
20
+ }
21
+ const apps = await apiClient.app.listApps();
22
+ assertStatus(apps, 200);
23
+ const foundApp = apps.data.find((item) => {
24
+ return item.id === uuid;
25
+ });
26
+ if (foundApp) {
27
+ return foundApp.name;
28
+ }
29
+ throw new Error("App not found.");
30
+ }
31
+ // Get App Human Readable Version from App Version
32
+ export async function getAppVersionFromUuid(apiClient, appId, appVersionId) {
33
+ if (!isUuid(appId) && !isUuid(appVersionId)) {
34
+ throw new Error("Given UUID not valid.");
35
+ }
36
+ const appVersion = await apiClient.app.getAppversion({
37
+ appId: appId,
38
+ appVersionId: appVersionId,
39
+ });
40
+ if (appVersion.data.externalVersion) {
41
+ return appVersion.data.externalVersion;
42
+ }
43
+ throw new Error("AppVersion not found.");
44
+ }
@@ -0,0 +1,8 @@
1
+ import { MittwaldAPIV2, MittwaldAPIV2Client } from "@mittwald/api-client";
2
+ import AppAppVersion = MittwaldAPIV2.Components.Schemas.AppAppVersion;
3
+ import { ProcessRenderer } from "../../rendering/process/process.js";
4
+ type AppVersion = MittwaldAPIV2.Components.Schemas.AppAppVersion;
5
+ export declare function normalizeToAppVersionUuid(apiClient: MittwaldAPIV2Client, version: string, process: ProcessRenderer, appUuid: string): Promise<AppAppVersion>;
6
+ export declare function getLatestAvailableAppVersionForApp(apiClient: MittwaldAPIV2Client, appId: string): Promise<AppVersion | undefined>;
7
+ export declare function getAppVersionUuidFromAppVersion(apiClient: MittwaldAPIV2Client, appId: string, appVersion: string | undefined): Promise<AppVersion | undefined>;
8
+ export {};
@@ -0,0 +1,49 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { assertStatus } from "@mittwald/api-client-commons";
3
+ import { gt } from "semver";
4
+ import { Value } from "../../rendering/react/components/Value.js";
5
+ import { Text } from "ink";
6
+ import { getAppNameFromUuid } from "./uuid.js";
7
+ export async function normalizeToAppVersionUuid(apiClient, version, process, appUuid) {
8
+ let appVersion;
9
+ if (version && version !== "latest") {
10
+ appVersion = await getAppVersionUuidFromAppVersion(apiClient, appUuid, version);
11
+ }
12
+ else {
13
+ appVersion = await getLatestAvailableAppVersionForApp(apiClient, appUuid);
14
+ }
15
+ if (!appVersion) {
16
+ throw new Error(`${await getAppNameFromUuid(apiClient, appUuid)} version ${version} does not seem to exist for the mStudio.`);
17
+ }
18
+ process.addInfo(_jsxs(Text, { children: ["installing version: ", _jsx(Value, { children: appVersion.externalVersion })] }));
19
+ return appVersion;
20
+ }
21
+ // Get latest available Internal App Version for App UUID
22
+ export async function getLatestAvailableAppVersionForApp(apiClient, appId) {
23
+ const versions = await apiClient.app.listAppversions({
24
+ appId,
25
+ });
26
+ assertStatus(versions, 200);
27
+ if (versions.data.length === 0) {
28
+ return undefined;
29
+ }
30
+ let latestVersion = "0.0.0";
31
+ for (const version of versions.data) {
32
+ if (gt(version.internalVersion, latestVersion)) {
33
+ latestVersion = version.internalVersion;
34
+ }
35
+ }
36
+ return versions.data.find((item) => item.internalVersion === latestVersion);
37
+ }
38
+ // App Version UUID from App Version irellevant if internal or external
39
+ export async function getAppVersionUuidFromAppVersion(apiClient, appId, appVersion) {
40
+ const versions = await apiClient.app.listAppversions({
41
+ appId,
42
+ });
43
+ if (!appVersion) {
44
+ return getLatestAvailableAppVersionForApp(apiClient, appId);
45
+ }
46
+ assertStatus(versions, 200);
47
+ return versions.data.find((item) => item.internalVersion === appVersion ||
48
+ item.externalVersion === appVersion);
49
+ }
@@ -0,0 +1,3 @@
1
+ import { MittwaldAPIV2Client } from "@mittwald/api-client";
2
+ import { ProcessRenderer } from "../../rendering/process/process.js";
3
+ export declare function waitUntilAppIsInstalled(apiClient: MittwaldAPIV2Client, process: ProcessRenderer, appInstallationId: string, eventId: string): Promise<void>;
@@ -0,0 +1,19 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { waitUntil } from "../wait.js";
3
+ import { Text } from "ink";
4
+ export async function waitUntilAppIsInstalled(apiClient, process, appInstallationId, eventId) {
5
+ const stepWaiting = process.addStep(_jsx(Text, { children: "waiting for app installation to be ready" }));
6
+ await waitUntil(async () => {
7
+ const installationResponse = await apiClient.app.getAppinstallation({
8
+ appInstallationId,
9
+ // TODO: Remove once @mittwald/api-client supports this
10
+ headers: { "if-event-reached": eventId }, // eslint-disable-line
11
+ });
12
+ if (installationResponse.status === 200 &&
13
+ installationResponse.data.appVersion.current ==
14
+ installationResponse.data.appVersion.desired) {
15
+ return true;
16
+ }
17
+ });
18
+ stepWaiting.complete();
19
+ }
@@ -0,0 +1,3 @@
1
+ import { Response } from "@mittwald/api-client-commons";
2
+ export declare function assertSuccess<T extends Response>(response: T): void;
3
+ export default assertSuccess;
@@ -0,0 +1,7 @@
1
+ import { ApiClientError } from "@mittwald/api-client-commons";
2
+ export function assertSuccess(response) {
3
+ if (response.status >= 300) {
4
+ throw ApiClientError.fromResponse(`Unexpected response status (expected <300, got: ${response.status})`, response);
5
+ }
6
+ }
7
+ export default assertSuccess;
@@ -0,0 +1 @@
1
+ export declare function parseBytes(input: string): number;
@@ -0,0 +1,16 @@
1
+ export function parseBytes(input) {
2
+ const numeric = parseInt(input.replace(/[^0-9]/g, ""), 10);
3
+ if (`${numeric}` == input) {
4
+ return numeric;
5
+ }
6
+ if (input.toLowerCase().endsWith("gi")) {
7
+ return numeric * (1 << 30);
8
+ }
9
+ if (input.toLowerCase().endsWith("mi")) {
10
+ return numeric * (1 << 20);
11
+ }
12
+ if (input.toLowerCase().endsWith("ki")) {
13
+ return numeric * (1 << 10);
14
+ }
15
+ throw new Error("unsupported byte unit; supported are 'gi', 'mi', 'ki'");
16
+ }
@@ -0,0 +1,37 @@
1
+ import { Config } from "@oclif/core";
2
+ export type ContextNames = "project" | "server" | "org" | "installation" | "domain" | "dnszone";
3
+ export type ContextKey<N extends ContextNames = ContextNames> = `${N}-id`;
4
+ export type ContextMap = Partial<Record<ContextKey, ContextValue>>;
5
+ export type ContextMapUpdate = Partial<Record<ContextKey, string>>;
6
+ export type ContextValueSource = {
7
+ type: string;
8
+ identifier: string;
9
+ };
10
+ export type ContextValue = {
11
+ value: string;
12
+ source: ContextValueSource;
13
+ };
14
+ export interface ContextProvider {
15
+ name: string;
16
+ getOverrides(): Promise<ContextMap>;
17
+ }
18
+ export interface WritableContextProvider extends ContextProvider {
19
+ update(data: ContextMapUpdate): Promise<void>;
20
+ }
21
+ export declare class Context {
22
+ private readonly contextData;
23
+ readonly providers: ContextProvider[];
24
+ constructor(config: Config);
25
+ private initializeContextData;
26
+ private persist;
27
+ private setContextValue;
28
+ getContextValue(key: ContextKey): Promise<ContextValue | undefined>;
29
+ setProjectId: (id: string) => Promise<void>;
30
+ setServerId: (id: string) => Promise<void>;
31
+ setOrgId: (id: string) => Promise<void>;
32
+ setAppInstallationId: (id: string) => Promise<void>;
33
+ projectId: () => Promise<ContextValue | undefined>;
34
+ serverId: () => Promise<ContextValue | undefined>;
35
+ orgId: () => Promise<ContextValue | undefined>;
36
+ appInstallationId: () => Promise<ContextValue | undefined>;
37
+ }
@@ -0,0 +1,49 @@
1
+ import { TerraformContextProvider } from "./context_terraform.js";
2
+ import { UserContextProvider } from "./context_user.js";
3
+ function isWritable(p) {
4
+ return "update" in p;
5
+ }
6
+ export class Context {
7
+ contextData;
8
+ providers;
9
+ constructor(config) {
10
+ this.providers = [
11
+ new UserContextProvider(config),
12
+ new TerraformContextProvider(),
13
+ ];
14
+ this.contextData = this.initializeContextData();
15
+ }
16
+ async initializeContextData() {
17
+ const contextData = {};
18
+ for (const provider of this.providers) {
19
+ const overrides = await provider.getOverrides();
20
+ Object.assign(contextData, overrides);
21
+ }
22
+ return contextData;
23
+ }
24
+ async persist(data) {
25
+ for (const provider of this.providers) {
26
+ if (isWritable(provider)) {
27
+ await provider.update(data);
28
+ }
29
+ }
30
+ }
31
+ async setContextValue(key, value) {
32
+ return await this.persist({ [key]: value });
33
+ }
34
+ async getContextValue(key) {
35
+ const data = await this.contextData;
36
+ if (key in data) {
37
+ return data[key];
38
+ }
39
+ return undefined;
40
+ }
41
+ setProjectId = (id) => this.setContextValue("project-id", id);
42
+ setServerId = (id) => this.setContextValue("server-id", id);
43
+ setOrgId = (id) => this.setContextValue("org-id", id);
44
+ setAppInstallationId = (id) => this.setContextValue("installation-id", id);
45
+ projectId = () => this.getContextValue("project-id");
46
+ serverId = () => this.getContextValue("server-id");
47
+ orgId = () => this.getContextValue("org-id");
48
+ appInstallationId = () => this.getContextValue("installation-id");
49
+ }