@contember/cli 2.1.0-alpha.30 → 2.1.0-alpha.35

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 (394) hide show
  1. package/dist/development/run.cjs.map +1 -1
  2. package/dist/development/run.js.map +1 -1
  3. package/dist/development/src/commands/actions/ActionsGetEventCommand.cjs.map +1 -1
  4. package/dist/development/src/commands/actions/ActionsGetEventCommand.js.map +1 -1
  5. package/dist/development/src/commands/actions/ActionsListFailedEventsCommand.cjs.map +1 -1
  6. package/dist/development/src/commands/actions/ActionsListFailedEventsCommand.js.map +1 -1
  7. package/dist/development/src/commands/actions/ActionsListVariablesCommand.cjs.map +1 -1
  8. package/dist/development/src/commands/actions/ActionsListVariablesCommand.js.map +1 -1
  9. package/dist/development/src/commands/actions/ActionsRetryEventCommand.cjs.map +1 -1
  10. package/dist/development/src/commands/actions/ActionsRetryEventCommand.js.map +1 -1
  11. package/dist/development/src/commands/actions/ActionsSetVariablesCommand.cjs +7 -4
  12. package/dist/development/src/commands/actions/ActionsSetVariablesCommand.cjs.map +1 -1
  13. package/dist/development/src/commands/actions/ActionsSetVariablesCommand.js +7 -4
  14. package/dist/development/src/commands/actions/ActionsSetVariablesCommand.js.map +1 -1
  15. package/dist/development/src/commands/actions/ActionsStopEventCommand.cjs.map +1 -1
  16. package/dist/development/src/commands/actions/ActionsStopEventCommand.js.map +1 -1
  17. package/dist/development/src/commands/deploy/DeployCommand.cjs.map +1 -1
  18. package/dist/development/src/commands/deploy/DeployCommand.js.map +1 -1
  19. package/dist/development/src/commands/migrations/MigrationAmendCommand.cjs.map +1 -1
  20. package/dist/development/src/commands/migrations/MigrationAmendCommand.js.map +1 -1
  21. package/dist/development/src/commands/migrations/MigrationBlankCommand.cjs.map +1 -1
  22. package/dist/development/src/commands/migrations/MigrationBlankCommand.js.map +1 -1
  23. package/dist/development/src/commands/migrations/MigrationDescribeCommand.cjs.map +1 -1
  24. package/dist/development/src/commands/migrations/MigrationDescribeCommand.js.map +1 -1
  25. package/dist/development/src/commands/migrations/MigrationDiffCommand.cjs.map +1 -1
  26. package/dist/development/src/commands/migrations/MigrationDiffCommand.js.map +1 -1
  27. package/dist/development/src/commands/migrations/MigrationExecuteCommand.cjs.map +1 -1
  28. package/dist/development/src/commands/migrations/MigrationExecuteCommand.js.map +1 -1
  29. package/dist/development/src/commands/migrations/MigrationRebaseCommand.cjs.map +1 -1
  30. package/dist/development/src/commands/migrations/MigrationRebaseCommand.js.map +1 -1
  31. package/dist/development/src/commands/migrations/MigrationStatusCommand.cjs.map +1 -1
  32. package/dist/development/src/commands/migrations/MigrationStatusCommand.js.map +1 -1
  33. package/dist/development/src/commands/misc/VersionCommand.cjs.map +1 -1
  34. package/dist/development/src/commands/misc/VersionCommand.js.map +1 -1
  35. package/dist/development/src/commands/project/ProjectGenerateDocumentationCommand.cjs.map +1 -1
  36. package/dist/development/src/commands/project/ProjectGenerateDocumentationCommand.js.map +1 -1
  37. package/dist/development/src/commands/project/ProjectPrintSchemaCommand.cjs.map +1 -1
  38. package/dist/development/src/commands/project/ProjectPrintSchemaCommand.js.map +1 -1
  39. package/dist/development/src/commands/project/ProjectValidateCommand.cjs.map +1 -1
  40. package/dist/development/src/commands/project/ProjectValidateCommand.js.map +1 -1
  41. package/dist/development/src/commands/transfer/ExportCommand.cjs.map +1 -1
  42. package/dist/development/src/commands/transfer/ExportCommand.js.map +1 -1
  43. package/dist/development/src/commands/transfer/ImportCommand.cjs.map +1 -1
  44. package/dist/development/src/commands/transfer/ImportCommand.js.map +1 -1
  45. package/dist/development/src/commands/transfer/TransferCommand.cjs.map +1 -1
  46. package/dist/development/src/commands/transfer/TransferCommand.js.map +1 -1
  47. package/dist/development/src/commands/transfer/utils.cjs.map +1 -1
  48. package/dist/development/src/commands/transfer/utils.js.map +1 -1
  49. package/dist/development/src/commands/workspace/WorkspaceUpdateApiCommand.cjs +16 -14
  50. package/dist/development/src/commands/workspace/WorkspaceUpdateApiCommand.cjs.map +1 -1
  51. package/dist/development/src/commands/workspace/WorkspaceUpdateApiCommand.js +16 -14
  52. package/dist/development/src/commands/workspace/WorkspaceUpdateApiCommand.js.map +1 -1
  53. package/dist/development/src/consts.cjs.map +1 -1
  54. package/dist/development/src/dic.cjs +87 -3
  55. package/dist/development/src/dic.cjs.map +1 -1
  56. package/dist/development/src/dic.js +88 -4
  57. package/dist/development/src/dic.js.map +1 -1
  58. package/dist/development/src/lib/SystemClientProvider.cjs.map +1 -1
  59. package/dist/development/src/lib/SystemClientProvider.js.map +1 -1
  60. package/dist/development/src/lib/TenantClientProvider.cjs.map +1 -1
  61. package/dist/development/src/lib/TenantClientProvider.js.map +1 -1
  62. package/dist/development/src/lib/VersionChecker.cjs.map +1 -1
  63. package/dist/development/src/lib/VersionChecker.js.map +1 -1
  64. package/dist/development/src/lib/actions/ActionsClient.cjs.map +1 -1
  65. package/dist/development/src/lib/actions/ActionsClient.js.map +1 -1
  66. package/dist/development/src/lib/admin/AdminClient.cjs.map +1 -1
  67. package/dist/development/src/lib/admin/AdminClient.js.map +1 -1
  68. package/dist/development/src/lib/admin/AdminDeployer.cjs.map +1 -1
  69. package/dist/development/src/lib/admin/AdminDeployer.js.map +1 -1
  70. package/dist/development/src/lib/assertNever.cjs.map +1 -1
  71. package/dist/development/src/lib/assertNever.js.map +1 -1
  72. package/dist/development/src/lib/dsn.cjs.map +1 -1
  73. package/dist/development/src/lib/dsn.js.map +1 -1
  74. package/dist/development/src/lib/env.cjs.map +1 -1
  75. package/dist/development/src/lib/env.js.map +1 -1
  76. package/dist/development/src/lib/fs/DockerComposeManager.cjs.map +1 -1
  77. package/dist/development/src/lib/fs/DockerComposeManager.js.map +1 -1
  78. package/dist/development/src/lib/fs/FileSystem.cjs.map +1 -1
  79. package/dist/development/src/lib/fs/FileSystem.js.map +1 -1
  80. package/dist/development/src/lib/fs/YamlHandler.cjs.map +1 -1
  81. package/dist/development/src/lib/fs/YamlHandler.js.map +1 -1
  82. package/dist/development/src/lib/js/EsBuildBuilder.cjs.map +1 -1
  83. package/dist/development/src/lib/js/EsBuildBuilder.js.map +1 -1
  84. package/dist/development/src/lib/js/EvalExecutor.cjs.map +1 -1
  85. package/dist/development/src/lib/js/EvalExecutor.js.map +1 -1
  86. package/dist/development/src/lib/js/JsCodeRunner.cjs.map +1 -1
  87. package/dist/development/src/lib/js/JsCodeRunner.js.map +1 -1
  88. package/dist/development/src/lib/migrations/MigrationExecutionFacade.cjs.map +1 -1
  89. package/dist/development/src/lib/migrations/MigrationExecutionFacade.js.map +1 -1
  90. package/dist/development/src/lib/migrations/MigrationPrinter.cjs.map +1 -1
  91. package/dist/development/src/lib/migrations/MigrationPrinter.js.map +1 -1
  92. package/dist/development/src/lib/migrations/MigrationRebaseFacade.cjs.map +1 -1
  93. package/dist/development/src/lib/migrations/MigrationRebaseFacade.js.map +1 -1
  94. package/dist/development/src/lib/migrations/MigrationsStatusFacade.cjs.map +1 -1
  95. package/dist/development/src/lib/migrations/MigrationsStatusFacade.js.map +1 -1
  96. package/dist/development/src/lib/migrations/MigrationsValidator.cjs.map +1 -1
  97. package/dist/development/src/lib/migrations/MigrationsValidator.js.map +1 -1
  98. package/dist/development/src/lib/project/RemoteProject.cjs.map +1 -1
  99. package/dist/development/src/lib/project/RemoteProject.js.map +1 -1
  100. package/dist/development/src/lib/project/RemoteProjectProvider.cjs.map +1 -1
  101. package/dist/development/src/lib/project/RemoteProjectProvider.js.map +1 -1
  102. package/dist/development/src/lib/project/RemoteProjectResolver.cjs.map +1 -1
  103. package/dist/development/src/lib/project/RemoteProjectResolver.js.map +1 -1
  104. package/dist/development/src/lib/project/docs/components/EntityInfo.cjs +135 -177
  105. package/dist/development/src/lib/project/docs/components/EntityInfo.cjs.map +1 -1
  106. package/dist/development/src/lib/project/docs/components/EntityInfo.js +136 -178
  107. package/dist/development/src/lib/project/docs/components/EntityInfo.js.map +1 -1
  108. package/dist/development/src/lib/project/docs/components/EntityLink.cjs.map +1 -1
  109. package/dist/development/src/lib/project/docs/components/EntityLink.js.map +1 -1
  110. package/dist/development/src/lib/project/docs/components/FieldLink.cjs +5 -5
  111. package/dist/development/src/lib/project/docs/components/FieldLink.cjs.map +1 -1
  112. package/dist/development/src/lib/project/docs/components/FieldLink.js +5 -5
  113. package/dist/development/src/lib/project/docs/components/FieldLink.js.map +1 -1
  114. package/dist/development/src/lib/project/docs/components/FieldPermissions.cjs +8 -8
  115. package/dist/development/src/lib/project/docs/components/FieldPermissions.cjs.map +1 -1
  116. package/dist/development/src/lib/project/docs/components/FieldPermissions.js +8 -8
  117. package/dist/development/src/lib/project/docs/components/FieldPermissions.js.map +1 -1
  118. package/dist/development/src/lib/project/docs/components/FieldType.cjs +34 -36
  119. package/dist/development/src/lib/project/docs/components/FieldType.cjs.map +1 -1
  120. package/dist/development/src/lib/project/docs/components/FieldType.js +34 -36
  121. package/dist/development/src/lib/project/docs/components/FieldType.js.map +1 -1
  122. package/dist/development/src/lib/project/docs/components/OnDelete.cjs +22 -26
  123. package/dist/development/src/lib/project/docs/components/OnDelete.cjs.map +1 -1
  124. package/dist/development/src/lib/project/docs/components/OnDelete.js +22 -26
  125. package/dist/development/src/lib/project/docs/components/OnDelete.js.map +1 -1
  126. package/dist/development/src/lib/project/docs/components/ProjectInfo.cjs +16 -16
  127. package/dist/development/src/lib/project/docs/components/ProjectInfo.cjs.map +1 -1
  128. package/dist/development/src/lib/project/docs/components/ProjectInfo.js +16 -16
  129. package/dist/development/src/lib/project/docs/components/ProjectInfo.js.map +1 -1
  130. package/dist/development/src/lib/project/docs/components/SinglePermission.cjs.map +1 -1
  131. package/dist/development/src/lib/project/docs/components/SinglePermission.js.map +1 -1
  132. package/dist/development/src/lib/project/docs/components/utils.cjs.map +1 -1
  133. package/dist/development/src/lib/project/docs/components/utils.js.map +1 -1
  134. package/dist/development/src/lib/project/docs/projectDescribe.cjs.map +1 -1
  135. package/dist/development/src/lib/project/docs/projectDescribe.js.map +1 -1
  136. package/dist/development/src/lib/schema/SchemaLoader.cjs.map +1 -1
  137. package/dist/development/src/lib/schema/SchemaLoader.js.map +1 -1
  138. package/dist/development/src/lib/schema/SchemaValidationHelper.cjs.map +1 -1
  139. package/dist/development/src/lib/schema/SchemaValidationPrinter.cjs.map +1 -1
  140. package/dist/development/src/lib/schema/SchemaValidationPrinter.js.map +1 -1
  141. package/dist/development/src/lib/schema/collectReferences.cjs.map +1 -1
  142. package/dist/development/src/lib/schema/collectReferences.js.map +1 -1
  143. package/dist/development/src/lib/stream.cjs.map +1 -1
  144. package/dist/development/src/lib/stream.js.map +1 -1
  145. package/dist/development/src/lib/tenant/TenantClient.cjs.map +1 -1
  146. package/dist/development/src/lib/tenant/TenantClient.js.map +1 -1
  147. package/dist/development/src/lib/transfer/DataTransferClient.cjs +29 -27
  148. package/dist/development/src/lib/transfer/DataTransferClient.cjs.map +1 -1
  149. package/dist/development/src/lib/transfer/DataTransferClient.js +29 -27
  150. package/dist/development/src/lib/transfer/DataTransferClient.js.map +1 -1
  151. package/dist/development/src/lib/transfer/stdio.cjs.map +1 -1
  152. package/dist/development/src/lib/transfer/stdio.js.map +1 -1
  153. package/dist/development/src/lib/workspace/WorkspaceResolver.cjs +4 -4
  154. package/dist/development/src/lib/workspace/WorkspaceResolver.cjs.map +1 -1
  155. package/dist/development/src/lib/workspace/WorkspaceResolver.js +5 -5
  156. package/dist/development/src/lib/workspace/WorkspaceResolver.js.map +1 -1
  157. package/dist/production/run.cjs.map +1 -1
  158. package/dist/production/run.js +0 -0
  159. package/dist/production/run.js.map +1 -1
  160. package/dist/production/src/commands/actions/ActionsGetEventCommand.cjs.map +1 -1
  161. package/dist/production/src/commands/actions/ActionsGetEventCommand.js.map +1 -1
  162. package/dist/production/src/commands/actions/ActionsListFailedEventsCommand.cjs.map +1 -1
  163. package/dist/production/src/commands/actions/ActionsListFailedEventsCommand.js.map +1 -1
  164. package/dist/production/src/commands/actions/ActionsListVariablesCommand.cjs.map +1 -1
  165. package/dist/production/src/commands/actions/ActionsListVariablesCommand.js.map +1 -1
  166. package/dist/production/src/commands/actions/ActionsRetryEventCommand.cjs.map +1 -1
  167. package/dist/production/src/commands/actions/ActionsRetryEventCommand.js.map +1 -1
  168. package/dist/production/src/commands/actions/ActionsSetVariablesCommand.cjs +7 -4
  169. package/dist/production/src/commands/actions/ActionsSetVariablesCommand.cjs.map +1 -1
  170. package/dist/production/src/commands/actions/ActionsSetVariablesCommand.js +7 -4
  171. package/dist/production/src/commands/actions/ActionsSetVariablesCommand.js.map +1 -1
  172. package/dist/production/src/commands/actions/ActionsStopEventCommand.cjs.map +1 -1
  173. package/dist/production/src/commands/actions/ActionsStopEventCommand.js.map +1 -1
  174. package/dist/production/src/commands/deploy/DeployCommand.cjs.map +1 -1
  175. package/dist/production/src/commands/deploy/DeployCommand.js.map +1 -1
  176. package/dist/production/src/commands/migrations/MigrationAmendCommand.cjs.map +1 -1
  177. package/dist/production/src/commands/migrations/MigrationAmendCommand.js.map +1 -1
  178. package/dist/production/src/commands/migrations/MigrationBlankCommand.cjs.map +1 -1
  179. package/dist/production/src/commands/migrations/MigrationBlankCommand.js.map +1 -1
  180. package/dist/production/src/commands/migrations/MigrationDescribeCommand.cjs.map +1 -1
  181. package/dist/production/src/commands/migrations/MigrationDescribeCommand.js.map +1 -1
  182. package/dist/production/src/commands/migrations/MigrationDiffCommand.cjs.map +1 -1
  183. package/dist/production/src/commands/migrations/MigrationDiffCommand.js.map +1 -1
  184. package/dist/production/src/commands/migrations/MigrationExecuteCommand.cjs.map +1 -1
  185. package/dist/production/src/commands/migrations/MigrationExecuteCommand.js.map +1 -1
  186. package/dist/production/src/commands/migrations/MigrationRebaseCommand.cjs.map +1 -1
  187. package/dist/production/src/commands/migrations/MigrationRebaseCommand.js.map +1 -1
  188. package/dist/production/src/commands/migrations/MigrationStatusCommand.cjs.map +1 -1
  189. package/dist/production/src/commands/migrations/MigrationStatusCommand.js.map +1 -1
  190. package/dist/production/src/commands/misc/VersionCommand.cjs.map +1 -1
  191. package/dist/production/src/commands/misc/VersionCommand.js.map +1 -1
  192. package/dist/production/src/commands/project/ProjectGenerateDocumentationCommand.cjs.map +1 -1
  193. package/dist/production/src/commands/project/ProjectGenerateDocumentationCommand.js.map +1 -1
  194. package/dist/production/src/commands/project/ProjectPrintSchemaCommand.cjs.map +1 -1
  195. package/dist/production/src/commands/project/ProjectPrintSchemaCommand.js.map +1 -1
  196. package/dist/production/src/commands/project/ProjectValidateCommand.cjs.map +1 -1
  197. package/dist/production/src/commands/project/ProjectValidateCommand.js.map +1 -1
  198. package/dist/production/src/commands/transfer/ExportCommand.cjs.map +1 -1
  199. package/dist/production/src/commands/transfer/ExportCommand.js.map +1 -1
  200. package/dist/production/src/commands/transfer/ImportCommand.cjs.map +1 -1
  201. package/dist/production/src/commands/transfer/ImportCommand.js.map +1 -1
  202. package/dist/production/src/commands/transfer/TransferCommand.cjs.map +1 -1
  203. package/dist/production/src/commands/transfer/TransferCommand.js.map +1 -1
  204. package/dist/production/src/commands/transfer/utils.cjs.map +1 -1
  205. package/dist/production/src/commands/transfer/utils.js.map +1 -1
  206. package/dist/production/src/commands/workspace/WorkspaceUpdateApiCommand.cjs +16 -14
  207. package/dist/production/src/commands/workspace/WorkspaceUpdateApiCommand.cjs.map +1 -1
  208. package/dist/production/src/commands/workspace/WorkspaceUpdateApiCommand.js +16 -14
  209. package/dist/production/src/commands/workspace/WorkspaceUpdateApiCommand.js.map +1 -1
  210. package/dist/production/src/consts.cjs.map +1 -1
  211. package/dist/production/src/dic.cjs +87 -3
  212. package/dist/production/src/dic.cjs.map +1 -1
  213. package/dist/production/src/dic.js +88 -4
  214. package/dist/production/src/dic.js.map +1 -1
  215. package/dist/production/src/lib/SystemClientProvider.cjs.map +1 -1
  216. package/dist/production/src/lib/SystemClientProvider.js.map +1 -1
  217. package/dist/production/src/lib/TenantClientProvider.cjs.map +1 -1
  218. package/dist/production/src/lib/TenantClientProvider.js.map +1 -1
  219. package/dist/production/src/lib/VersionChecker.cjs.map +1 -1
  220. package/dist/production/src/lib/VersionChecker.js.map +1 -1
  221. package/dist/production/src/lib/actions/ActionsClient.cjs.map +1 -1
  222. package/dist/production/src/lib/actions/ActionsClient.js.map +1 -1
  223. package/dist/production/src/lib/admin/AdminClient.cjs.map +1 -1
  224. package/dist/production/src/lib/admin/AdminClient.js.map +1 -1
  225. package/dist/production/src/lib/admin/AdminDeployer.cjs.map +1 -1
  226. package/dist/production/src/lib/admin/AdminDeployer.js.map +1 -1
  227. package/dist/production/src/lib/assertNever.cjs.map +1 -1
  228. package/dist/production/src/lib/assertNever.js.map +1 -1
  229. package/dist/production/src/lib/dsn.cjs.map +1 -1
  230. package/dist/production/src/lib/dsn.js.map +1 -1
  231. package/dist/production/src/lib/env.cjs.map +1 -1
  232. package/dist/production/src/lib/env.js.map +1 -1
  233. package/dist/production/src/lib/fs/DockerComposeManager.cjs.map +1 -1
  234. package/dist/production/src/lib/fs/DockerComposeManager.js.map +1 -1
  235. package/dist/production/src/lib/fs/FileSystem.cjs.map +1 -1
  236. package/dist/production/src/lib/fs/FileSystem.js.map +1 -1
  237. package/dist/production/src/lib/fs/YamlHandler.cjs.map +1 -1
  238. package/dist/production/src/lib/fs/YamlHandler.js.map +1 -1
  239. package/dist/production/src/lib/js/EsBuildBuilder.cjs.map +1 -1
  240. package/dist/production/src/lib/js/EsBuildBuilder.js.map +1 -1
  241. package/dist/production/src/lib/js/EvalExecutor.cjs.map +1 -1
  242. package/dist/production/src/lib/js/EvalExecutor.js.map +1 -1
  243. package/dist/production/src/lib/js/JsCodeRunner.cjs.map +1 -1
  244. package/dist/production/src/lib/js/JsCodeRunner.js.map +1 -1
  245. package/dist/production/src/lib/migrations/MigrationExecutionFacade.cjs.map +1 -1
  246. package/dist/production/src/lib/migrations/MigrationExecutionFacade.js.map +1 -1
  247. package/dist/production/src/lib/migrations/MigrationPrinter.cjs.map +1 -1
  248. package/dist/production/src/lib/migrations/MigrationPrinter.js.map +1 -1
  249. package/dist/production/src/lib/migrations/MigrationRebaseFacade.cjs.map +1 -1
  250. package/dist/production/src/lib/migrations/MigrationRebaseFacade.js.map +1 -1
  251. package/dist/production/src/lib/migrations/MigrationsStatusFacade.cjs.map +1 -1
  252. package/dist/production/src/lib/migrations/MigrationsStatusFacade.js.map +1 -1
  253. package/dist/production/src/lib/migrations/MigrationsValidator.cjs.map +1 -1
  254. package/dist/production/src/lib/migrations/MigrationsValidator.js.map +1 -1
  255. package/dist/production/src/lib/project/RemoteProject.cjs.map +1 -1
  256. package/dist/production/src/lib/project/RemoteProject.js.map +1 -1
  257. package/dist/production/src/lib/project/RemoteProjectProvider.cjs.map +1 -1
  258. package/dist/production/src/lib/project/RemoteProjectProvider.js.map +1 -1
  259. package/dist/production/src/lib/project/RemoteProjectResolver.cjs.map +1 -1
  260. package/dist/production/src/lib/project/RemoteProjectResolver.js.map +1 -1
  261. package/dist/production/src/lib/project/docs/components/EntityInfo.cjs +39 -66
  262. package/dist/production/src/lib/project/docs/components/EntityInfo.cjs.map +1 -1
  263. package/dist/production/src/lib/project/docs/components/EntityInfo.js +40 -67
  264. package/dist/production/src/lib/project/docs/components/EntityInfo.js.map +1 -1
  265. package/dist/production/src/lib/project/docs/components/EntityLink.cjs.map +1 -1
  266. package/dist/production/src/lib/project/docs/components/EntityLink.js.map +1 -1
  267. package/dist/production/src/lib/project/docs/components/FieldLink.cjs.map +1 -1
  268. package/dist/production/src/lib/project/docs/components/FieldLink.js.map +1 -1
  269. package/dist/production/src/lib/project/docs/components/FieldPermissions.cjs.map +1 -1
  270. package/dist/production/src/lib/project/docs/components/FieldPermissions.js.map +1 -1
  271. package/dist/production/src/lib/project/docs/components/FieldType.cjs +3 -5
  272. package/dist/production/src/lib/project/docs/components/FieldType.cjs.map +1 -1
  273. package/dist/production/src/lib/project/docs/components/FieldType.js +3 -5
  274. package/dist/production/src/lib/project/docs/components/FieldType.js.map +1 -1
  275. package/dist/production/src/lib/project/docs/components/OnDelete.cjs +4 -8
  276. package/dist/production/src/lib/project/docs/components/OnDelete.cjs.map +1 -1
  277. package/dist/production/src/lib/project/docs/components/OnDelete.js +4 -8
  278. package/dist/production/src/lib/project/docs/components/OnDelete.js.map +1 -1
  279. package/dist/production/src/lib/project/docs/components/ProjectInfo.cjs.map +1 -1
  280. package/dist/production/src/lib/project/docs/components/ProjectInfo.js.map +1 -1
  281. package/dist/production/src/lib/project/docs/components/SinglePermission.cjs.map +1 -1
  282. package/dist/production/src/lib/project/docs/components/SinglePermission.js.map +1 -1
  283. package/dist/production/src/lib/project/docs/components/utils.cjs.map +1 -1
  284. package/dist/production/src/lib/project/docs/components/utils.js.map +1 -1
  285. package/dist/production/src/lib/project/docs/projectDescribe.cjs.map +1 -1
  286. package/dist/production/src/lib/project/docs/projectDescribe.js.map +1 -1
  287. package/dist/production/src/lib/schema/SchemaLoader.cjs.map +1 -1
  288. package/dist/production/src/lib/schema/SchemaLoader.js.map +1 -1
  289. package/dist/production/src/lib/schema/SchemaValidationHelper.cjs.map +1 -1
  290. package/dist/production/src/lib/schema/SchemaValidationPrinter.cjs.map +1 -1
  291. package/dist/production/src/lib/schema/SchemaValidationPrinter.js.map +1 -1
  292. package/dist/production/src/lib/schema/collectReferences.cjs.map +1 -1
  293. package/dist/production/src/lib/schema/collectReferences.js.map +1 -1
  294. package/dist/production/src/lib/stream.cjs.map +1 -1
  295. package/dist/production/src/lib/stream.js.map +1 -1
  296. package/dist/production/src/lib/tenant/TenantClient.cjs.map +1 -1
  297. package/dist/production/src/lib/tenant/TenantClient.js.map +1 -1
  298. package/dist/production/src/lib/transfer/DataTransferClient.cjs +29 -27
  299. package/dist/production/src/lib/transfer/DataTransferClient.cjs.map +1 -1
  300. package/dist/production/src/lib/transfer/DataTransferClient.js +29 -27
  301. package/dist/production/src/lib/transfer/DataTransferClient.js.map +1 -1
  302. package/dist/production/src/lib/transfer/stdio.cjs.map +1 -1
  303. package/dist/production/src/lib/transfer/stdio.js.map +1 -1
  304. package/dist/production/src/lib/workspace/WorkspaceResolver.cjs +4 -4
  305. package/dist/production/src/lib/workspace/WorkspaceResolver.cjs.map +1 -1
  306. package/dist/production/src/lib/workspace/WorkspaceResolver.js +5 -5
  307. package/dist/production/src/lib/workspace/WorkspaceResolver.js.map +1 -1
  308. package/dist/types/commands/actions/ActionsGetEventCommand.d.ts.map +1 -1
  309. package/dist/types/commands/actions/ActionsListFailedEventsCommand.d.ts.map +1 -1
  310. package/dist/types/commands/actions/ActionsListVariablesCommand.d.ts.map +1 -1
  311. package/dist/types/commands/actions/ActionsSetVariablesCommand.d.ts.map +1 -1
  312. package/dist/types/commands/deploy/DeployCommand.d.ts.map +1 -1
  313. package/dist/types/commands/migrations/MigrationAmendCommand.d.ts.map +1 -1
  314. package/dist/types/commands/migrations/MigrationBlankCommand.d.ts.map +1 -1
  315. package/dist/types/commands/migrations/MigrationDescribeCommand.d.ts.map +1 -1
  316. package/dist/types/commands/migrations/MigrationDiffCommand.d.ts.map +1 -1
  317. package/dist/types/commands/migrations/MigrationExecuteCommand.d.ts.map +1 -1
  318. package/dist/types/commands/migrations/MigrationRebaseCommand.d.ts.map +1 -1
  319. package/dist/types/commands/migrations/MigrationStatusCommand.d.ts.map +1 -1
  320. package/dist/types/commands/project/ProjectGenerateDocumentationCommand.d.ts.map +1 -1
  321. package/dist/types/commands/project/ProjectPrintSchemaCommand.d.ts.map +1 -1
  322. package/dist/types/commands/transfer/TransferCommand.d.ts.map +1 -1
  323. package/dist/types/commands/transfer/utils.d.ts.map +1 -1
  324. package/dist/types/commands/workspace/WorkspaceUpdateApiCommand.d.ts.map +1 -1
  325. package/dist/types/dic.d.ts.map +1 -1
  326. package/dist/types/lib/VersionChecker.d.ts.map +1 -1
  327. package/dist/types/lib/actions/ActionsClient.d.ts.map +1 -1
  328. package/dist/types/lib/admin/AdminClient.d.ts.map +1 -1
  329. package/dist/types/lib/admin/AdminDeployer.d.ts.map +1 -1
  330. package/dist/types/lib/fs/DockerComposeManager.d.ts.map +1 -1
  331. package/dist/types/lib/migrations/MigrationPrinter.d.ts.map +1 -1
  332. package/dist/types/lib/migrations/MigrationsStatusFacade.d.ts.map +1 -1
  333. package/dist/types/lib/project/docs/components/EntityInfo.d.ts.map +1 -1
  334. package/dist/types/lib/project/docs/components/FieldLink.d.ts.map +1 -1
  335. package/dist/types/lib/project/docs/components/FieldPermissions.d.ts.map +1 -1
  336. package/dist/types/lib/project/docs/components/FieldType.d.ts.map +1 -1
  337. package/dist/types/lib/project/docs/components/OnDelete.d.ts.map +1 -1
  338. package/dist/types/lib/project/docs/components/ProjectInfo.d.ts.map +1 -1
  339. package/dist/types/lib/project/docs/projectDescribe.d.ts.map +1 -1
  340. package/dist/types/lib/schema/SchemaValidationPrinter.d.ts.map +1 -1
  341. package/dist/types/lib/stream.d.ts.map +1 -1
  342. package/dist/types/lib/tenant/TenantClient.d.ts.map +1 -1
  343. package/dist/types/lib/transfer/DataTransferClient.d.ts.map +1 -1
  344. package/package.json +39 -35
  345. package/src/commands/actions/ActionsGetEventCommand.ts +0 -1
  346. package/src/commands/actions/ActionsListFailedEventsCommand.ts +1 -3
  347. package/src/commands/actions/ActionsListVariablesCommand.ts +1 -2
  348. package/src/commands/actions/ActionsSetVariablesCommand.ts +13 -7
  349. package/src/commands/deploy/DeployCommand.ts +0 -3
  350. package/src/commands/migrations/MigrationAmendCommand.ts +2 -2
  351. package/src/commands/migrations/MigrationBlankCommand.ts +1 -3
  352. package/src/commands/migrations/MigrationDescribeCommand.ts +0 -1
  353. package/src/commands/migrations/MigrationDiffCommand.ts +0 -2
  354. package/src/commands/migrations/MigrationExecuteCommand.ts +1 -2
  355. package/src/commands/migrations/MigrationRebaseCommand.ts +0 -2
  356. package/src/commands/migrations/MigrationStatusCommand.ts +7 -12
  357. package/src/commands/project/ProjectGenerateDocumentationCommand.ts +1 -2
  358. package/src/commands/project/ProjectPrintSchemaCommand.ts +1 -3
  359. package/src/commands/transfer/ImportCommand.ts +1 -2
  360. package/src/commands/transfer/TransferCommand.ts +2 -3
  361. package/src/commands/transfer/utils.ts +0 -1
  362. package/src/commands/workspace/WorkspaceUpdateApiCommand.ts +16 -14
  363. package/src/dic.ts +150 -116
  364. package/src/lib/VersionChecker.ts +0 -2
  365. package/src/lib/actions/ActionsClient.ts +0 -1
  366. package/src/lib/admin/AdminClient.ts +2 -2
  367. package/src/lib/admin/AdminDeployer.ts +0 -1
  368. package/src/lib/fs/DockerComposeManager.ts +0 -3
  369. package/src/lib/migrations/MigrationPrinter.ts +0 -2
  370. package/src/lib/migrations/MigrationsStatusFacade.ts +0 -1
  371. package/src/lib/project/RemoteProjectResolver.ts +2 -2
  372. package/src/lib/project/docs/components/EntityInfo.tsx +36 -31
  373. package/src/lib/project/docs/components/FieldLink.tsx +5 -1
  374. package/src/lib/project/docs/components/FieldPermissions.tsx +8 -6
  375. package/src/lib/project/docs/components/FieldType.tsx +31 -30
  376. package/src/lib/project/docs/components/OnDelete.tsx +15 -13
  377. package/src/lib/project/docs/components/ProjectInfo.tsx +1 -4
  378. package/src/lib/project/docs/components/SinglePermission.tsx +0 -1
  379. package/src/lib/project/docs/components/utils.ts +0 -1
  380. package/src/lib/project/docs/projectDescribe.tsx +0 -2
  381. package/src/lib/project/docs/resources/style.css +2 -3
  382. package/src/lib/schema/SchemaLoader.ts +1 -1
  383. package/src/lib/schema/SchemaValidationPrinter.ts +0 -1
  384. package/src/lib/stream.ts +7 -8
  385. package/src/lib/tenant/TenantClient.ts +0 -1
  386. package/src/lib/transfer/DataTransferClient.ts +32 -32
  387. package/src/lib/transfer/stdio.ts +0 -1
  388. package/src/lib/workspace/WorkspaceResolver.ts +5 -5
  389. package/src/run.ts +2 -5
  390. package/dist/types/tsconfig.tsbuildinfo +0 -1
  391. package/postcss.config.js +0 -6
  392. package/src/.eslintrc.cjs +0 -5
  393. package/src/lib/project/docs/.eslintrc.cjs +0 -5
  394. package/tailwind.config.js +0 -7
@@ -1,8 +1,7 @@
1
1
  import { Command, CommandConfiguration, Input } from '@contember/cli-common'
2
2
  import { MigrationExecutionFacade } from '../../lib/migrations/MigrationExecutionFacade'
3
3
 
4
- type Args = {
5
- }
4
+ type Args = {}
6
5
 
7
6
  type Options = {
8
7
  until?: string
@@ -18,7 +18,6 @@ export class MigrationRebaseCommand extends Command<Args, Options> {
18
18
  super()
19
19
  }
20
20
 
21
-
22
21
  protected configure(configuration: CommandConfiguration<Args, Options>): void {
23
22
  configuration.description('Rebase migrations on filesystem and in local instance')
24
23
  configuration.argument('migration').variadic()
@@ -29,7 +28,6 @@ export class MigrationRebaseCommand extends Command<Args, Options> {
29
28
  }
30
29
 
31
30
  protected async execute(input: Input<Args, Options>): Promise<void> {
32
-
33
31
  const migrationNames = input.getArgument('migration')
34
32
 
35
33
  const migrations: Migration[] = []
@@ -5,8 +5,7 @@ import { MigrationsStatusFacade } from '../../lib/migrations/MigrationsStatusFac
5
5
  import { MigrationPrinter } from '../../lib/migrations/MigrationPrinter'
6
6
  import { SystemClientProvider } from '../../lib/SystemClientProvider'
7
7
 
8
- type Args = {
9
- }
8
+ type Args = {}
10
9
 
11
10
  type Options = {
12
11
  ['only-to-execute']?: true
@@ -41,7 +40,6 @@ export class MigrationStatusCommand extends Command<Args, Options> {
41
40
  }
42
41
 
43
42
  protected async execute(input: Input<Args, Options>): Promise<number> {
44
-
45
43
  const onlyErrors = input.getOption('only-errors')
46
44
  const onlyToExecute = input.getOption('only-to-execute')
47
45
  const restoreMissing = input.getOption('restore-missing')
@@ -68,15 +66,12 @@ export class MigrationStatusCommand extends Command<Args, Options> {
68
66
  status = await this.migrationsStatusFacade.resolveMigrationsStatus({})
69
67
  }
70
68
 
71
-
72
-
73
- const filtered =
74
- onlyErrors || onlyToExecute
75
- ? sortMigrations([
76
- ...(onlyErrors ? status.errorMigrations : []),
77
- ...(onlyToExecute ? status.migrationsToExecute : []),
78
- ])
79
- : status.allMigrations
69
+ const filtered = onlyErrors || onlyToExecute
70
+ ? sortMigrations([
71
+ ...(onlyErrors ? status.errorMigrations : []),
72
+ ...(onlyToExecute ? status.migrationsToExecute : []),
73
+ ])
74
+ : status.allMigrations
80
75
 
81
76
  console.log(this.migrationPrinter.printStatusTable(filtered))
82
77
 
@@ -6,8 +6,7 @@ import { SchemaLoader } from '../../lib/schema/SchemaLoader'
6
6
  import { validateSchemaAndPrintErrors } from '../../lib/schema/SchemaValidationHelper'
7
7
  import { SchemaVersionBuilder } from '@contember/migrations-client'
8
8
 
9
- type Args = {
10
- }
9
+ type Args = {}
11
10
 
12
11
  type Options = {
13
12
  source?: 'migrations' | 'definition'
@@ -14,8 +14,7 @@ import { SchemaLoader } from '../../lib/schema/SchemaLoader'
14
14
  import { SchemaVersionBuilder } from '@contember/migrations-client'
15
15
  import { validateSchemaAndPrintErrors } from '../../lib/schema/SchemaValidationHelper'
16
16
 
17
- type Args = {
18
- }
17
+ type Args = {}
19
18
 
20
19
  type Options = {
21
20
  role?: string[]
@@ -51,7 +50,6 @@ export class ProjectPrintSchemaCommand extends Command<Args, Options> {
51
50
  protected async execute(input: Input<Args, Options>): Promise<number> {
52
51
  const format = input.getOption('format') || 'graphql'
53
52
 
54
-
55
53
  const schema = input.getOption('source') === 'migrations'
56
54
  ? await this.schemaVersionBuilder.buildSchema()
57
55
  : await this.schemaLoader.loadSchema()
@@ -51,7 +51,7 @@ export class ImportCommand extends Command<Args, Options> {
51
51
  }
52
52
  const file = input.getArgument('file')
53
53
  const baseInputStream = createReadStream(file)
54
- const stream = (file.endsWith('.gz') ? baseInputStream.pipe(createGunzip()) : baseInputStream)
54
+ const stream = file.endsWith('.gz') ? baseInputStream.pipe(createGunzip()) : baseInputStream
55
55
  stream.on('error', (err: any) => {
56
56
  console.error('Error in import stream:', err)
57
57
  })
@@ -74,4 +74,3 @@ export class ImportCommand extends Command<Args, Options> {
74
74
  }
75
75
  }
76
76
  }
77
-
@@ -50,7 +50,6 @@ export class TransferCommand extends Command<Args, Options> {
50
50
  throw `Target project not defined`
51
51
  }
52
52
 
53
-
54
53
  console.log('')
55
54
  console.log('Transferring data between projects:')
56
55
  console.log('')
@@ -68,12 +67,12 @@ export class TransferCommand extends Command<Args, Options> {
68
67
 
69
68
  const includeSystem = input.getOption('include-system') === true
70
69
  const gzipTransfer = !input.getOption('no-gzip-transfer')
71
- const exportResponse = (await this.dataTransferClient.dataExport({
70
+ const exportResponse = await this.dataTransferClient.dataExport({
72
71
  project: sourceProject,
73
72
  includeSystem,
74
73
  excludeTables: input.getOption('exclude-table') ?? [],
75
74
  gzip: gzipTransfer,
76
- }))
75
+ })
77
76
  const stream = Readable.fromWeb(exportResponse.body! as any)
78
77
  const importResponse = await this.dataTransferClient.dataImport({
79
78
  stream: stream,
@@ -1,7 +1,6 @@
1
1
  import { Input } from '@contember/cli-common'
2
2
  import prompts from 'prompts'
3
3
 
4
-
5
4
  export const confirmImport = async (input: Input<{}, { yes: boolean }>): Promise<boolean> => {
6
5
  if (input.getOption('yes')) {
7
6
  return true
@@ -42,20 +42,22 @@ export class WorkspaceUpdateApiCommand extends Command<Args, Options> {
42
42
  }
43
43
  await this.dockerComposeManager.updateMainDockerComposeConfig(data => ({
44
44
  ...data,
45
- services: Object.fromEntries(Object.entries(data?.services ?? {}).map(([name, service]: [string, any]) => {
46
- const newImage = getNewImage(service.image)
47
- if (newImage) {
48
- console.log(`docker-compose service ${name} updated`)
49
- return [
50
- name,
51
- {
52
- ...service,
53
- image: newImage,
54
- },
55
- ]
56
- }
57
- return [name, service]
58
- })),
45
+ services: Object.fromEntries(
46
+ Object.entries(data?.services ?? {}).map(([name, service]: [string, any]) => {
47
+ const newImage = getNewImage(service.image)
48
+ if (newImage) {
49
+ console.log(`docker-compose service ${name} updated`)
50
+ return [
51
+ name,
52
+ {
53
+ ...service,
54
+ image: newImage,
55
+ },
56
+ ]
57
+ }
58
+ return [name, service]
59
+ }),
60
+ ),
59
61
  }))
60
62
  console.log('API versions updated')
61
63
  console.log('Restart server to apply changes')
package/src/dic.ts CHANGED
@@ -50,11 +50,11 @@ import { DataTransferClient } from './lib/transfer/DataTransferClient'
50
50
  import { ExportCommand, ImportCommand, TransferCommand } from './commands/transfer'
51
51
  import {
52
52
  Application,
53
+ Bun,
53
54
  CommandFactoryList,
54
55
  CommandManager,
55
56
  CommandRunner,
56
57
  Npm,
57
- Bun,
58
58
  PackageWorkspaceResolver,
59
59
  Pnpm,
60
60
  Yarn,
@@ -91,30 +91,17 @@ export const createContainer = ({ env, version, runtime, workspace }: {
91
91
  runtime: 'node' | 'bun'
92
92
  }) => {
93
93
  return new Builder({})
94
- .addService('env', () =>
95
- env)
96
- .addService('version', () =>
97
- version)
98
- .addService('runtime', () =>
99
- runtime)
100
- .addService('workspace', () =>
101
- workspace)
102
- .addService('fs', () =>
103
- new FileSystem())
104
- .addService('yamlHandler', ({ fs }) =>
105
- new YamlHandler(fs))
106
- .addService('jsExecutor', () =>
107
- new EvalExecutor())
108
- .addService('jsBuilder', () =>
109
- new EsBuildBuilder())
110
- .addService('jsCodeRunner', ({ jsExecutor, jsBuilder }) =>
111
- new JsCodeRunner(jsBuilder, jsExecutor))
112
-
113
- .addService('workspaceResolver', ({ yamlHandler }) =>
114
- new WorkspaceResolver(yamlHandler))
115
-
116
- .addService('remoteProjectResolver', ({ env }) =>
117
- new RemoteProjectResolver(env))
94
+ .addService('env', () => env)
95
+ .addService('version', () => version)
96
+ .addService('runtime', () => runtime)
97
+ .addService('workspace', () => workspace)
98
+ .addService('fs', () => new FileSystem())
99
+ .addService('yamlHandler', ({ fs }) => new YamlHandler(fs))
100
+ .addService('jsExecutor', () => new EvalExecutor())
101
+ .addService('jsBuilder', () => new EsBuildBuilder())
102
+ .addService('jsCodeRunner', ({ jsExecutor, jsBuilder }) => new JsCodeRunner(jsBuilder, jsExecutor))
103
+ .addService('workspaceResolver', ({ yamlHandler }) => new WorkspaceResolver(yamlHandler))
104
+ .addService('remoteProjectResolver', ({ env }) => new RemoteProjectResolver(env))
118
105
  .addService('remoteProjectProvider', ({ remoteProjectResolver }) => {
119
106
  const provider = new RemoteProjectProvider()
120
107
  const remoteProject = remoteProjectResolver.resolve()
@@ -123,12 +110,9 @@ export const createContainer = ({ env, version, runtime, workspace }: {
123
110
  }
124
111
  return provider
125
112
  })
126
- .addService('systemClientProvider', ({ remoteProjectProvider }) =>
127
- new SystemClientProvider(remoteProjectProvider))
128
- .addService('tenantClientProvider', ({ remoteProjectProvider }) =>
129
- new TenantClientProvider(remoteProjectProvider))
130
- .addService('adminClient', ({ remoteProjectProvider }) =>
131
- new AdminClient(remoteProjectProvider))
113
+ .addService('systemClientProvider', ({ remoteProjectProvider }) => new SystemClientProvider(remoteProjectProvider))
114
+ .addService('tenantClientProvider', ({ remoteProjectProvider }) => new TenantClientProvider(remoteProjectProvider))
115
+ .addService('adminClient', ({ remoteProjectProvider }) => new AdminClient(remoteProjectProvider))
132
116
  .addService('migrationFilesManager', ({ jsCodeRunner, workspace }) => {
133
117
  const runJs = runtime === 'bun' ? (file: string) => import(file) : jsCodeRunner.run
134
118
  return new MigrationFilesManager(workspace.migrationsDir, {
@@ -147,16 +131,14 @@ export const createContainer = ({ env, version, runtime, workspace }: {
147
131
  new Bun(fs, commandRunner),
148
132
  ])
149
133
  })
150
- .addService('dockerComposeManager', ({ workspace, env, fs, yamlHandler }) =>
151
- new DockerComposeManager(workspace.baseDir, env.dockerComposeFile, fs, yamlHandler))
152
- .addService('modificationHandlerFactory', () =>
153
- new ModificationHandlerFactory(ModificationHandlerFactory.defaultFactoryMap))
154
- .addService('schemaMigrator', ({ modificationHandlerFactory }) =>
155
- new SchemaMigrator(modificationHandlerFactory))
156
- .addService('migrationsResolver', ({ migrationFilesManager }) =>
157
- new MigrationsResolver(migrationFilesManager))
158
- .addService('schemaVersionBuilder', ({ migrationsResolver, schemaMigrator }) =>
159
- new SchemaVersionBuilder(migrationsResolver, schemaMigrator))
134
+ .addService(
135
+ 'dockerComposeManager',
136
+ ({ workspace, env, fs, yamlHandler }) => new DockerComposeManager(workspace.baseDir, env.dockerComposeFile, fs, yamlHandler),
137
+ )
138
+ .addService('modificationHandlerFactory', () => new ModificationHandlerFactory(ModificationHandlerFactory.defaultFactoryMap))
139
+ .addService('schemaMigrator', ({ modificationHandlerFactory }) => new SchemaMigrator(modificationHandlerFactory))
140
+ .addService('migrationsResolver', ({ migrationFilesManager }) => new MigrationsResolver(migrationFilesManager))
141
+ .addService('schemaVersionBuilder', ({ migrationsResolver, schemaMigrator }) => new SchemaVersionBuilder(migrationsResolver, schemaMigrator))
160
142
  .addService('schemaDiffer', ({ schemaMigrator }) =>
161
143
  new SchemaDiffer(schemaMigrator, {
162
144
  maxPatchSize: env.migrationsOptions?.maxPatchSize,
@@ -167,76 +149,127 @@ export const createContainer = ({ env, version, runtime, workspace }: {
167
149
  ts: jsSample,
168
150
  js: jsSample,
169
151
  }))
170
- .addService('migrationDescriber', ({ modificationHandlerFactory }) =>
171
- new MigrationDescriber(modificationHandlerFactory))
172
- .addService('migrationPrinter', ({ migrationDescriber }) =>
173
- new MigrationPrinter(migrationDescriber))
174
- .addService('migrationsExecutor', () =>
175
- new MigrationExecutor())
176
- .addService('migrationsStatusResolver', () =>
177
- new MigrationsStatusResolver())
178
- .addService('migrationsStatusFacade', ({ systemClientProvider, migrationsResolver, migrationsStatusResolver, migrationPrinter }) =>
179
- new MigrationsStatusFacade(systemClientProvider, migrationsResolver, migrationsStatusResolver, migrationPrinter))
180
- .addService('migrationExecutionFacade', ({ systemClientProvider, tenantClientProvider, remoteProjectProvider, schemaVersionBuilder, migrationPrinter, migrationsExecutor, migrationsStatusFacade }) =>
181
- new MigrationExecutionFacade(systemClientProvider, tenantClientProvider, remoteProjectProvider, schemaVersionBuilder, migrationPrinter, migrationsExecutor, migrationsStatusFacade))
182
- .addService('migrationsValidator', ({ migrationDescriber, schemaMigrator }) =>
183
- new MigrationsValidator(migrationDescriber, schemaMigrator))
184
- .addService('migrationRebaseFacade', ({ schemaVersionBuilder, migrationsValidator, systemClientProvider, migrationFilesManager }) =>
185
- new MigrationRebaseFacade(schemaVersionBuilder, migrationsValidator, systemClientProvider, migrationFilesManager))
186
- .addService('schemaLoader', ({ workspace, jsCodeRunner, runtime }) =>
187
- runtime === 'bun' ? new ImportSchemaLoader(workspace) : new TranspilingSchemaLoader(workspace, jsCodeRunner))
188
-
189
- .addService('adminDeployer', ({ remoteProjectProvider, adminClient, fs }) =>
190
- new AdminDeployer(remoteProjectProvider, adminClient, fs))
191
- .addService('dataTransferClient', () =>
192
- new DataTransferClient())
193
-
194
-
195
- .addService('deployCommand', ({ adminDeployer, migrationExecutionFacade, fs, remoteProjectProvider, remoteProjectResolver, workspace }) =>
196
- new DeployCommand(adminDeployer, migrationExecutionFacade, fs, remoteProjectProvider, remoteProjectResolver, workspace))
197
- .addService('migrationAmendCommand', ({ migrationsResolver, systemClientProvider, migrationsStatusFacade, schemaLoader, schemaVersionBuilder, migrationCreator, migrationsValidator, migrationPrinter, schemaMigrator }) =>
198
- new MigrationAmendCommand(migrationsResolver, systemClientProvider, migrationsStatusFacade, schemaLoader, schemaVersionBuilder, migrationCreator, migrationsValidator, migrationPrinter, schemaMigrator))
199
- .addService('migrationBlankCommand', ({ migrationCreator }) =>
200
- new MigrationBlankCommand(migrationCreator))
201
- .addService('migrationDescribeCommand', ({ migrationPrinter, schemaVersionBuilder, migrationsResolver }) =>
202
- new MigrationDescribeCommand(migrationPrinter, schemaVersionBuilder, migrationsResolver))
203
- .addService('migrationDiffCommand', ({ schemaLoader, schemaVersionBuilder, migrationCreator, migrationPrinter, migrationExecutionFacade }) =>
204
- new MigrationDiffCommand(schemaLoader, schemaVersionBuilder, migrationCreator, migrationPrinter, migrationExecutionFacade))
205
- .addService('migrationExecuteCommand', ({ migrationExecutionFacade }) =>
206
- new MigrationExecuteCommand(migrationExecutionFacade))
207
- .addService('migrationRebaseCommand', ({ migrationsResolver, migrationRebaseFacade }) =>
208
- new MigrationRebaseCommand(migrationsResolver, migrationRebaseFacade))
209
- .addService('migrationStatusCommand', ({ migrationsStatusFacade, migrationFilesManager, systemClientProvider, migrationPrinter }) =>
210
- new MigrationStatusCommand(migrationsStatusFacade, migrationFilesManager, systemClientProvider, migrationPrinter))
211
- .addService('versionCommand', ({ version }) =>
212
- new VersionCommand(version))
213
- .addService('projectGenerateDocumentationCommand', ({ schemaLoader, schemaVersionBuilder }) =>
214
- new ProjectGenerateDocumentationCommand(schemaLoader, schemaVersionBuilder))
215
- .addService('projectPrintSchemaCommand', ({ schemaLoader, schemaVersionBuilder }) =>
216
- new ProjectPrintSchemaCommand(schemaLoader, schemaVersionBuilder))
217
- .addService('projectValidateCommand', ({ schemaLoader, migrationsValidator, migrationsResolver, schemaDiffer, schemaVersionBuilder }) =>
218
- new ProjectValidateCommand(schemaLoader, migrationsValidator, migrationsResolver, schemaDiffer, schemaVersionBuilder))
219
- .addService('exportCommand', ({ dataTransferClient, remoteProjectResolver }) =>
220
- new ExportCommand(remoteProjectResolver, dataTransferClient))
221
- .addService('importCommand', ({ dataTransferClient, remoteProjectResolver }) =>
222
- new ImportCommand(remoteProjectResolver, dataTransferClient))
223
- .addService('transferCommand', ({ dataTransferClient, remoteProjectResolver }) =>
224
- new TransferCommand(remoteProjectResolver, dataTransferClient))
225
- .addService('workspaceUpdateCommand', ({ packageWorkspaceResolver, dockerComposeManager }) =>
226
- new WorkspaceUpdateApiCommand(packageWorkspaceResolver, dockerComposeManager))
227
- .addService('actionsListVariables', ({ remoteProjectResolver }) =>
228
- new ActionsListVariablesCommand(remoteProjectResolver))
229
- .addService('actionsSetVariables', ({ remoteProjectResolver }) =>
230
- new ActionsSetVariablesCommand(remoteProjectResolver))
231
- .addService('actionsListFailedEvents', ({ remoteProjectResolver }) =>
232
- new ActionsListFailedEventsCommand(remoteProjectResolver))
233
- .addService('actionsRetryEvent', ({ remoteProjectResolver }) =>
234
- new ActionsRetryEventCommand(remoteProjectResolver))
235
- .addService('actionsGetEvent', ({ remoteProjectResolver }) =>
236
- new ActionsGetEventCommand(remoteProjectResolver))
237
- .addService('actionsStopEvent', ({ remoteProjectResolver }) =>
238
- new ActionsStopEventCommand(remoteProjectResolver))
239
-
152
+ .addService('migrationDescriber', ({ modificationHandlerFactory }) => new MigrationDescriber(modificationHandlerFactory))
153
+ .addService('migrationPrinter', ({ migrationDescriber }) => new MigrationPrinter(migrationDescriber))
154
+ .addService('migrationsExecutor', () => new MigrationExecutor())
155
+ .addService('migrationsStatusResolver', () => new MigrationsStatusResolver())
156
+ .addService(
157
+ 'migrationsStatusFacade',
158
+ ({ systemClientProvider, migrationsResolver, migrationsStatusResolver, migrationPrinter }) =>
159
+ new MigrationsStatusFacade(systemClientProvider, migrationsResolver, migrationsStatusResolver, migrationPrinter),
160
+ )
161
+ .addService(
162
+ 'migrationExecutionFacade',
163
+ ({
164
+ systemClientProvider,
165
+ tenantClientProvider,
166
+ remoteProjectProvider,
167
+ schemaVersionBuilder,
168
+ migrationPrinter,
169
+ migrationsExecutor,
170
+ migrationsStatusFacade,
171
+ }) =>
172
+ new MigrationExecutionFacade(
173
+ systemClientProvider,
174
+ tenantClientProvider,
175
+ remoteProjectProvider,
176
+ schemaVersionBuilder,
177
+ migrationPrinter,
178
+ migrationsExecutor,
179
+ migrationsStatusFacade,
180
+ ),
181
+ )
182
+ .addService('migrationsValidator', ({ migrationDescriber, schemaMigrator }) => new MigrationsValidator(migrationDescriber, schemaMigrator))
183
+ .addService(
184
+ 'migrationRebaseFacade',
185
+ ({ schemaVersionBuilder, migrationsValidator, systemClientProvider, migrationFilesManager }) =>
186
+ new MigrationRebaseFacade(schemaVersionBuilder, migrationsValidator, systemClientProvider, migrationFilesManager),
187
+ )
188
+ .addService(
189
+ 'schemaLoader',
190
+ ({ workspace, jsCodeRunner, runtime }) =>
191
+ runtime === 'bun' ? new ImportSchemaLoader(workspace) : new TranspilingSchemaLoader(workspace, jsCodeRunner),
192
+ )
193
+ .addService('adminDeployer', ({ remoteProjectProvider, adminClient, fs }) => new AdminDeployer(remoteProjectProvider, adminClient, fs))
194
+ .addService('dataTransferClient', () => new DataTransferClient())
195
+ .addService(
196
+ 'deployCommand',
197
+ ({ adminDeployer, migrationExecutionFacade, fs, remoteProjectProvider, remoteProjectResolver, workspace }) =>
198
+ new DeployCommand(adminDeployer, migrationExecutionFacade, fs, remoteProjectProvider, remoteProjectResolver, workspace),
199
+ )
200
+ .addService(
201
+ 'migrationAmendCommand',
202
+ ({
203
+ migrationsResolver,
204
+ systemClientProvider,
205
+ migrationsStatusFacade,
206
+ schemaLoader,
207
+ schemaVersionBuilder,
208
+ migrationCreator,
209
+ migrationsValidator,
210
+ migrationPrinter,
211
+ schemaMigrator,
212
+ }) =>
213
+ new MigrationAmendCommand(
214
+ migrationsResolver,
215
+ systemClientProvider,
216
+ migrationsStatusFacade,
217
+ schemaLoader,
218
+ schemaVersionBuilder,
219
+ migrationCreator,
220
+ migrationsValidator,
221
+ migrationPrinter,
222
+ schemaMigrator,
223
+ ),
224
+ )
225
+ .addService('migrationBlankCommand', ({ migrationCreator }) => new MigrationBlankCommand(migrationCreator))
226
+ .addService(
227
+ 'migrationDescribeCommand',
228
+ ({ migrationPrinter, schemaVersionBuilder, migrationsResolver }) =>
229
+ new MigrationDescribeCommand(migrationPrinter, schemaVersionBuilder, migrationsResolver),
230
+ )
231
+ .addService(
232
+ 'migrationDiffCommand',
233
+ ({ schemaLoader, schemaVersionBuilder, migrationCreator, migrationPrinter, migrationExecutionFacade }) =>
234
+ new MigrationDiffCommand(schemaLoader, schemaVersionBuilder, migrationCreator, migrationPrinter, migrationExecutionFacade),
235
+ )
236
+ .addService('migrationExecuteCommand', ({ migrationExecutionFacade }) => new MigrationExecuteCommand(migrationExecutionFacade))
237
+ .addService(
238
+ 'migrationRebaseCommand',
239
+ ({ migrationsResolver, migrationRebaseFacade }) => new MigrationRebaseCommand(migrationsResolver, migrationRebaseFacade),
240
+ )
241
+ .addService(
242
+ 'migrationStatusCommand',
243
+ ({ migrationsStatusFacade, migrationFilesManager, systemClientProvider, migrationPrinter }) =>
244
+ new MigrationStatusCommand(migrationsStatusFacade, migrationFilesManager, systemClientProvider, migrationPrinter),
245
+ )
246
+ .addService('versionCommand', ({ version }) => new VersionCommand(version))
247
+ .addService(
248
+ 'projectGenerateDocumentationCommand',
249
+ ({ schemaLoader, schemaVersionBuilder }) => new ProjectGenerateDocumentationCommand(schemaLoader, schemaVersionBuilder),
250
+ )
251
+ .addService(
252
+ 'projectPrintSchemaCommand',
253
+ ({ schemaLoader, schemaVersionBuilder }) => new ProjectPrintSchemaCommand(schemaLoader, schemaVersionBuilder),
254
+ )
255
+ .addService(
256
+ 'projectValidateCommand',
257
+ ({ schemaLoader, migrationsValidator, migrationsResolver, schemaDiffer, schemaVersionBuilder }) =>
258
+ new ProjectValidateCommand(schemaLoader, migrationsValidator, migrationsResolver, schemaDiffer, schemaVersionBuilder),
259
+ )
260
+ .addService('exportCommand', ({ dataTransferClient, remoteProjectResolver }) => new ExportCommand(remoteProjectResolver, dataTransferClient))
261
+ .addService('importCommand', ({ dataTransferClient, remoteProjectResolver }) => new ImportCommand(remoteProjectResolver, dataTransferClient))
262
+ .addService('transferCommand', ({ dataTransferClient, remoteProjectResolver }) => new TransferCommand(remoteProjectResolver, dataTransferClient))
263
+ .addService(
264
+ 'workspaceUpdateCommand',
265
+ ({ packageWorkspaceResolver, dockerComposeManager }) => new WorkspaceUpdateApiCommand(packageWorkspaceResolver, dockerComposeManager),
266
+ )
267
+ .addService('actionsListVariables', ({ remoteProjectResolver }) => new ActionsListVariablesCommand(remoteProjectResolver))
268
+ .addService('actionsSetVariables', ({ remoteProjectResolver }) => new ActionsSetVariablesCommand(remoteProjectResolver))
269
+ .addService('actionsListFailedEvents', ({ remoteProjectResolver }) => new ActionsListFailedEventsCommand(remoteProjectResolver))
270
+ .addService('actionsRetryEvent', ({ remoteProjectResolver }) => new ActionsRetryEventCommand(remoteProjectResolver))
271
+ .addService('actionsGetEvent', ({ remoteProjectResolver }) => new ActionsGetEventCommand(remoteProjectResolver))
272
+ .addService('actionsStopEvent', ({ remoteProjectResolver }) => new ActionsStopEventCommand(remoteProjectResolver))
240
273
  .addService('commandList', dic => {
241
274
  const commands: CommandFactoryList = {
242
275
  ['deploy']: () => dic.deployCommand,
@@ -264,11 +297,12 @@ export const createContainer = ({ env, version, runtime, workspace }: {
264
297
  }
265
298
  return commands
266
299
  })
267
- .addService('commandManager', ({ commandList }) =>
268
- new CommandManager(commandList))
269
-
270
- .addService('versionChecker', ({ version, workspace, packageWorkspaceResolver, dockerComposeManager }) =>
271
- new VersionChecker(version, workspace.baseDir, packageWorkspaceResolver, dockerComposeManager))
300
+ .addService('commandManager', ({ commandList }) => new CommandManager(commandList))
301
+ .addService(
302
+ 'versionChecker',
303
+ ({ version, workspace, packageWorkspaceResolver, dockerComposeManager }) =>
304
+ new VersionChecker(version, workspace.baseDir, packageWorkspaceResolver, dockerComposeManager),
305
+ )
272
306
  .addService('application', ({ commandManager, versionChecker }) => {
273
307
  const app = new Application(
274
308
  commandManager,
@@ -63,10 +63,8 @@ export class VersionChecker {
63
63
  Please make sure all dependencies are up to date.\nIf you are really certain about the compatibility, you can disable this version check by running the CLI with the CONTEMBER_SKIP_VERSION_CHECK=1 environment variable`
64
64
  }
65
65
  }
66
-
67
66
  }
68
67
 
69
-
70
68
  const extractVersion = (tag: string) => {
71
69
  // e.g.
72
70
  // 2.1.0-alpha.15-foo-bar => 2.1.0-alpha.15
@@ -79,7 +79,6 @@ export class ActionsClient {
79
79
  return result.stopEvent.ok
80
80
  }
81
81
 
82
-
83
82
  public async getEvent(id: string): Promise<Event | null> {
84
83
  const query = `query($id: UUID!) {
85
84
  event(id: $id) {
@@ -14,7 +14,8 @@ export class AdminClient {
14
14
  if (!response.ok) {
15
15
  const project = this.remoteProjectProvider.get()
16
16
  const maskedToken = maskToken(project.token)
17
- throw `Failed to deploy admin, POST request to ${project.adminEndpoint}/_deploy with token ${maskedToken} returned status ${response.status} ${response.statusText}\n${await response.text()}`
17
+ throw `Failed to deploy admin, POST request to ${project.adminEndpoint}/_deploy with token ${maskedToken} returned status ${response.status} ${response.statusText}\n${await response
18
+ .text()}`
18
19
  }
19
20
  }
20
21
 
@@ -29,5 +30,4 @@ export class AdminClient {
29
30
  body: JSON.stringify(body),
30
31
  })
31
32
  }
32
-
33
33
  }
@@ -25,7 +25,6 @@ export class AdminDeployer {
25
25
  console.log(`Admin deployed (${files.length} files)`)
26
26
  }
27
27
 
28
-
29
28
  private readAdminFiles = async (dir: string, prefix: string = ''): Promise<AdminFiles> => {
30
29
  const files = []
31
30
  for (const fileName of await this.fs.readDir(dir, { withFileTypes: true })) {
@@ -18,10 +18,8 @@ export interface DockerComposeConfig {
18
18
  services?: Record<string, DockerComposeServiceConfig>
19
19
  }
20
20
 
21
-
22
21
  const MAIN_CONFIGS = ['docker-compose.yaml', 'docker-compose.yml']
23
22
 
24
-
25
23
  export class DockerComposeManager {
26
24
  constructor(
27
25
  private readonly dir: string,
@@ -59,5 +57,4 @@ export class DockerComposeManager {
59
57
  }
60
58
  return null
61
59
  }
62
-
63
60
  }
@@ -1,4 +1,3 @@
1
- // eslint-disable-next-line @typescript-eslint/triple-slash-reference
2
1
  /// <reference path="../../../types/chalk-table/index.d.ts" />
3
2
 
4
3
  import { Schema } from '@contember/schema'
@@ -90,5 +89,4 @@ export class MigrationPrinter {
90
89
  }),
91
90
  )
92
91
  }
93
-
94
92
  }
@@ -11,7 +11,6 @@ export class MigrationsStatusFacade {
11
11
  ) {
12
12
  }
13
13
 
14
-
15
14
  public resolveMigrationsStatus = async ({ force, allowError }: { force?: boolean; allowError?: boolean }) => {
16
15
  const executedMigrations = await this.systemClientProvider.get().listExecutedMigrations()
17
16
  const localMigrations = await this.migrationsResolver.getMigrationFiles()
@@ -13,9 +13,9 @@ export class RemoteProjectResolver {
13
13
  let token: string | undefined
14
14
  let project: string | undefined
15
15
  if (identifier?.includes('://')) {
16
- ({ endpoint, project, token } = parseDsn(identifier))
16
+ ;({ endpoint, project, token } = parseDsn(identifier))
17
17
  } else if (this.cliEnv.dsn) {
18
- ({ endpoint, project, token } = parseDsn(this.cliEnv.dsn))
18
+ ;({ endpoint, project, token } = parseDsn(this.cliEnv.dsn))
19
19
  } else {
20
20
  endpoint = this.cliEnv.apiUrl
21
21
  token = this.cliEnv.apiToken