@contember/cli 2.1.0-alpha.9 → 2.1.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CLAUDE.md +39 -0
- package/dist/development/run.cjs.map +1 -1
- package/dist/development/run.js.map +1 -1
- package/dist/development/src/commands/actions/ActionsGetEventCommand.cjs +31 -0
- package/dist/development/src/commands/actions/ActionsGetEventCommand.cjs.map +1 -0
- package/dist/development/src/commands/actions/ActionsGetEventCommand.js +31 -0
- package/dist/development/src/commands/actions/ActionsGetEventCommand.js.map +1 -0
- package/dist/development/src/commands/actions/ActionsListFailedEventsCommand.cjs +60 -0
- package/dist/development/src/commands/actions/ActionsListFailedEventsCommand.cjs.map +1 -0
- package/dist/development/src/commands/actions/ActionsListFailedEventsCommand.js +60 -0
- package/dist/development/src/commands/actions/ActionsListFailedEventsCommand.js.map +1 -0
- package/dist/development/src/commands/actions/ActionsListVariablesCommand.cjs +29 -0
- package/dist/development/src/commands/actions/ActionsListVariablesCommand.cjs.map +1 -0
- package/dist/development/src/commands/actions/ActionsListVariablesCommand.js +29 -0
- package/dist/development/src/commands/actions/ActionsListVariablesCommand.js.map +1 -0
- package/dist/development/src/commands/actions/ActionsRetryEventCommand.cjs +32 -0
- package/dist/development/src/commands/actions/ActionsRetryEventCommand.cjs.map +1 -0
- package/dist/development/src/commands/actions/ActionsRetryEventCommand.js +32 -0
- package/dist/development/src/commands/actions/ActionsRetryEventCommand.js.map +1 -0
- package/dist/development/src/commands/actions/ActionsSetVariablesCommand.cjs +43 -0
- package/dist/development/src/commands/actions/ActionsSetVariablesCommand.cjs.map +1 -0
- package/dist/development/src/commands/actions/ActionsSetVariablesCommand.js +43 -0
- package/dist/development/src/commands/actions/ActionsSetVariablesCommand.js.map +1 -0
- package/dist/development/src/commands/actions/ActionsStopEventCommand.cjs +32 -0
- package/dist/development/src/commands/actions/ActionsStopEventCommand.cjs.map +1 -0
- package/dist/development/src/commands/actions/ActionsStopEventCommand.js +32 -0
- package/dist/development/src/commands/actions/ActionsStopEventCommand.js.map +1 -0
- package/dist/development/src/commands/deploy/DeployCommand.cjs.map +1 -1
- package/dist/development/src/commands/deploy/DeployCommand.js.map +1 -1
- package/dist/development/src/commands/migrations/MigrationAmendCommand.cjs.map +1 -1
- package/dist/development/src/commands/migrations/MigrationAmendCommand.js.map +1 -1
- package/dist/development/src/commands/migrations/MigrationBlankCommand.cjs.map +1 -1
- package/dist/development/src/commands/migrations/MigrationBlankCommand.js.map +1 -1
- package/dist/development/src/commands/migrations/MigrationDescribeCommand.cjs.map +1 -1
- package/dist/development/src/commands/migrations/MigrationDescribeCommand.js.map +1 -1
- package/dist/development/src/commands/migrations/MigrationDiffCommand.cjs.map +1 -1
- package/dist/development/src/commands/migrations/MigrationDiffCommand.js.map +1 -1
- package/dist/development/src/commands/migrations/MigrationExecuteCommand.cjs.map +1 -1
- package/dist/development/src/commands/migrations/MigrationExecuteCommand.js.map +1 -1
- package/dist/development/src/commands/migrations/MigrationRebaseCommand.cjs.map +1 -1
- package/dist/development/src/commands/migrations/MigrationRebaseCommand.js.map +1 -1
- package/dist/development/src/commands/migrations/MigrationStatusCommand.cjs +1 -1
- package/dist/development/src/commands/migrations/MigrationStatusCommand.cjs.map +1 -1
- package/dist/development/src/commands/migrations/MigrationStatusCommand.js +1 -1
- package/dist/development/src/commands/migrations/MigrationStatusCommand.js.map +1 -1
- package/dist/development/src/commands/misc/VersionCommand.cjs.map +1 -1
- package/dist/development/src/commands/misc/VersionCommand.js.map +1 -1
- package/dist/development/src/commands/project/ProjectGenerateDocumentationCommand.cjs.map +1 -1
- package/dist/development/src/commands/project/ProjectGenerateDocumentationCommand.js.map +1 -1
- package/dist/development/src/commands/project/ProjectPrintSchemaCommand.cjs.map +1 -1
- package/dist/development/src/commands/project/ProjectPrintSchemaCommand.js.map +1 -1
- package/dist/development/src/commands/project/ProjectValidateCommand.cjs.map +1 -1
- package/dist/development/src/commands/project/ProjectValidateCommand.js.map +1 -1
- package/dist/development/src/commands/transfer/ExportCommand.cjs +7 -2
- package/dist/development/src/commands/transfer/ExportCommand.cjs.map +1 -1
- package/dist/development/src/commands/transfer/ExportCommand.js +8 -3
- package/dist/development/src/commands/transfer/ExportCommand.js.map +1 -1
- package/dist/development/src/commands/transfer/ImportCommand.cjs +7 -4
- package/dist/development/src/commands/transfer/ImportCommand.cjs.map +1 -1
- package/dist/development/src/commands/transfer/ImportCommand.js +5 -2
- package/dist/development/src/commands/transfer/ImportCommand.js.map +1 -1
- package/dist/development/src/commands/transfer/TransferCommand.cjs +4 -5
- package/dist/development/src/commands/transfer/TransferCommand.cjs.map +1 -1
- package/dist/development/src/commands/transfer/TransferCommand.js +4 -5
- package/dist/development/src/commands/transfer/TransferCommand.js.map +1 -1
- package/dist/development/src/commands/transfer/utils.cjs.map +1 -1
- package/dist/development/src/commands/transfer/utils.js.map +1 -1
- package/dist/development/src/commands/workspace/WorkspaceUpdateApiCommand.cjs +16 -14
- package/dist/development/src/commands/workspace/WorkspaceUpdateApiCommand.cjs.map +1 -1
- package/dist/development/src/commands/workspace/WorkspaceUpdateApiCommand.js +16 -14
- package/dist/development/src/commands/workspace/WorkspaceUpdateApiCommand.js.map +1 -1
- package/dist/development/src/consts.cjs.map +1 -1
- package/dist/development/src/dic.cjs +100 -4
- package/dist/development/src/dic.cjs.map +1 -1
- package/dist/development/src/dic.js +101 -5
- package/dist/development/src/dic.js.map +1 -1
- package/dist/development/src/lib/SystemClientProvider.cjs.map +1 -1
- package/dist/development/src/lib/SystemClientProvider.js.map +1 -1
- package/dist/development/src/lib/TenantClientProvider.cjs.map +1 -1
- package/dist/development/src/lib/TenantClientProvider.js.map +1 -1
- package/dist/development/src/lib/VersionChecker.cjs +7 -9
- package/dist/development/src/lib/VersionChecker.cjs.map +1 -1
- package/dist/development/src/lib/VersionChecker.js +7 -9
- package/dist/development/src/lib/VersionChecker.js.map +1 -1
- package/dist/development/src/lib/actions/ActionsClient.cjs +91 -0
- package/dist/development/src/lib/actions/ActionsClient.cjs.map +1 -0
- package/dist/development/src/lib/actions/ActionsClient.js +91 -0
- package/dist/development/src/lib/actions/ActionsClient.js.map +1 -0
- package/dist/development/src/lib/admin/AdminClient.cjs.map +1 -1
- package/dist/development/src/lib/admin/AdminClient.js.map +1 -1
- package/dist/development/src/lib/admin/AdminDeployer.cjs.map +1 -1
- package/dist/development/src/lib/admin/AdminDeployer.js.map +1 -1
- package/dist/development/src/lib/assertNever.cjs.map +1 -1
- package/dist/development/src/lib/assertNever.js.map +1 -1
- package/dist/development/src/lib/dsn.cjs.map +1 -1
- package/dist/development/src/lib/dsn.js.map +1 -1
- package/dist/development/src/lib/env.cjs.map +1 -1
- package/dist/development/src/lib/env.js.map +1 -1
- package/dist/development/src/lib/fs/DockerComposeManager.cjs.map +1 -1
- package/dist/development/src/lib/fs/DockerComposeManager.js.map +1 -1
- package/dist/development/src/lib/fs/FileSystem.cjs.map +1 -1
- package/dist/development/src/lib/fs/FileSystem.js.map +1 -1
- package/dist/development/src/lib/fs/YamlHandler.cjs.map +1 -1
- package/dist/development/src/lib/fs/YamlHandler.js.map +1 -1
- package/dist/development/src/lib/js/EsBuildBuilder.cjs.map +1 -1
- package/dist/development/src/lib/js/EsBuildBuilder.js.map +1 -1
- package/dist/development/src/lib/js/EvalExecutor.cjs.map +1 -1
- package/dist/development/src/lib/js/EvalExecutor.js.map +1 -1
- package/dist/development/src/lib/js/JsCodeRunner.cjs.map +1 -1
- package/dist/development/src/lib/js/JsCodeRunner.js.map +1 -1
- package/dist/development/src/lib/migrations/MigrationExecutionFacade.cjs.map +1 -1
- package/dist/development/src/lib/migrations/MigrationExecutionFacade.js.map +1 -1
- package/dist/development/src/lib/migrations/MigrationPrinter.cjs +7 -2
- package/dist/development/src/lib/migrations/MigrationPrinter.cjs.map +1 -1
- package/dist/development/src/lib/migrations/MigrationPrinter.js +7 -2
- package/dist/development/src/lib/migrations/MigrationPrinter.js.map +1 -1
- package/dist/development/src/lib/migrations/MigrationRebaseFacade.cjs.map +1 -1
- package/dist/development/src/lib/migrations/MigrationRebaseFacade.js.map +1 -1
- package/dist/development/src/lib/migrations/MigrationsStatusFacade.cjs +3 -3
- package/dist/development/src/lib/migrations/MigrationsStatusFacade.cjs.map +1 -1
- package/dist/development/src/lib/migrations/MigrationsStatusFacade.js +3 -3
- package/dist/development/src/lib/migrations/MigrationsStatusFacade.js.map +1 -1
- package/dist/development/src/lib/migrations/MigrationsValidator.cjs.map +1 -1
- package/dist/development/src/lib/migrations/MigrationsValidator.js.map +1 -1
- package/dist/development/src/lib/project/RemoteProject.cjs.map +1 -1
- package/dist/development/src/lib/project/RemoteProject.js.map +1 -1
- package/dist/development/src/lib/project/RemoteProjectProvider.cjs.map +1 -1
- package/dist/development/src/lib/project/RemoteProjectProvider.js.map +1 -1
- package/dist/development/src/lib/project/RemoteProjectResolver.cjs.map +1 -1
- package/dist/development/src/lib/project/RemoteProjectResolver.js.map +1 -1
- package/dist/development/src/lib/project/docs/components/EntityInfo.cjs +135 -177
- package/dist/development/src/lib/project/docs/components/EntityInfo.cjs.map +1 -1
- package/dist/development/src/lib/project/docs/components/EntityInfo.js +136 -178
- package/dist/development/src/lib/project/docs/components/EntityInfo.js.map +1 -1
- package/dist/development/src/lib/project/docs/components/EntityLink.cjs.map +1 -1
- package/dist/development/src/lib/project/docs/components/EntityLink.js.map +1 -1
- package/dist/development/src/lib/project/docs/components/FieldLink.cjs +5 -5
- package/dist/development/src/lib/project/docs/components/FieldLink.cjs.map +1 -1
- package/dist/development/src/lib/project/docs/components/FieldLink.js +5 -5
- package/dist/development/src/lib/project/docs/components/FieldLink.js.map +1 -1
- package/dist/development/src/lib/project/docs/components/FieldPermissions.cjs +8 -8
- package/dist/development/src/lib/project/docs/components/FieldPermissions.cjs.map +1 -1
- package/dist/development/src/lib/project/docs/components/FieldPermissions.js +8 -8
- package/dist/development/src/lib/project/docs/components/FieldPermissions.js.map +1 -1
- package/dist/development/src/lib/project/docs/components/FieldType.cjs +34 -36
- package/dist/development/src/lib/project/docs/components/FieldType.cjs.map +1 -1
- package/dist/development/src/lib/project/docs/components/FieldType.js +34 -36
- package/dist/development/src/lib/project/docs/components/FieldType.js.map +1 -1
- package/dist/development/src/lib/project/docs/components/OnDelete.cjs +22 -26
- package/dist/development/src/lib/project/docs/components/OnDelete.cjs.map +1 -1
- package/dist/development/src/lib/project/docs/components/OnDelete.js +22 -26
- package/dist/development/src/lib/project/docs/components/OnDelete.js.map +1 -1
- package/dist/development/src/lib/project/docs/components/ProjectInfo.cjs +16 -16
- package/dist/development/src/lib/project/docs/components/ProjectInfo.cjs.map +1 -1
- package/dist/development/src/lib/project/docs/components/ProjectInfo.js +16 -16
- package/dist/development/src/lib/project/docs/components/ProjectInfo.js.map +1 -1
- package/dist/development/src/lib/project/docs/components/SinglePermission.cjs.map +1 -1
- package/dist/development/src/lib/project/docs/components/SinglePermission.js.map +1 -1
- package/dist/development/src/lib/project/docs/components/utils.cjs.map +1 -1
- package/dist/development/src/lib/project/docs/components/utils.js.map +1 -1
- package/dist/development/src/lib/project/docs/projectDescribe.cjs.map +1 -1
- package/dist/development/src/lib/project/docs/projectDescribe.js.map +1 -1
- package/dist/development/src/lib/schema/SchemaLoader.cjs.map +1 -1
- package/dist/development/src/lib/schema/SchemaLoader.js.map +1 -1
- package/dist/development/src/lib/schema/SchemaValidationHelper.cjs.map +1 -1
- package/dist/development/src/lib/schema/SchemaValidationPrinter.cjs.map +1 -1
- package/dist/development/src/lib/schema/SchemaValidationPrinter.js.map +1 -1
- package/dist/development/src/lib/schema/collectReferences.cjs.map +1 -1
- package/dist/development/src/lib/schema/collectReferences.js.map +1 -1
- package/dist/development/src/lib/stream.cjs +0 -7
- package/dist/development/src/lib/stream.cjs.map +1 -1
- package/dist/development/src/lib/stream.js +1 -8
- package/dist/development/src/lib/stream.js.map +1 -1
- package/dist/development/src/lib/tenant/TenantClient.cjs.map +1 -1
- package/dist/development/src/lib/tenant/TenantClient.js.map +1 -1
- package/dist/development/src/lib/transfer/DataTransferClient.cjs +53 -61
- package/dist/development/src/lib/transfer/DataTransferClient.cjs.map +1 -1
- package/dist/development/src/lib/transfer/DataTransferClient.js +55 -63
- package/dist/development/src/lib/transfer/DataTransferClient.js.map +1 -1
- package/dist/development/src/lib/transfer/stdio.cjs.map +1 -1
- package/dist/development/src/lib/transfer/stdio.js.map +1 -1
- package/dist/development/src/lib/workspace/WorkspaceResolver.cjs +4 -4
- package/dist/development/src/lib/workspace/WorkspaceResolver.cjs.map +1 -1
- package/dist/development/src/lib/workspace/WorkspaceResolver.js +5 -5
- package/dist/development/src/lib/workspace/WorkspaceResolver.js.map +1 -1
- package/dist/production/run.cjs.map +1 -1
- package/dist/production/run.js.map +1 -1
- package/dist/production/src/commands/actions/ActionsGetEventCommand.cjs +31 -0
- package/dist/production/src/commands/actions/ActionsGetEventCommand.cjs.map +1 -0
- package/dist/production/src/commands/actions/ActionsGetEventCommand.js +31 -0
- package/dist/production/src/commands/actions/ActionsGetEventCommand.js.map +1 -0
- package/dist/production/src/commands/actions/ActionsListFailedEventsCommand.cjs +60 -0
- package/dist/production/src/commands/actions/ActionsListFailedEventsCommand.cjs.map +1 -0
- package/dist/production/src/commands/actions/ActionsListFailedEventsCommand.js +60 -0
- package/dist/production/src/commands/actions/ActionsListFailedEventsCommand.js.map +1 -0
- package/dist/production/src/commands/actions/ActionsListVariablesCommand.cjs +29 -0
- package/dist/production/src/commands/actions/ActionsListVariablesCommand.cjs.map +1 -0
- package/dist/production/src/commands/actions/ActionsListVariablesCommand.js +29 -0
- package/dist/production/src/commands/actions/ActionsListVariablesCommand.js.map +1 -0
- package/dist/production/src/commands/actions/ActionsRetryEventCommand.cjs +32 -0
- package/dist/production/src/commands/actions/ActionsRetryEventCommand.cjs.map +1 -0
- package/dist/production/src/commands/actions/ActionsRetryEventCommand.js +32 -0
- package/dist/production/src/commands/actions/ActionsRetryEventCommand.js.map +1 -0
- package/dist/production/src/commands/actions/ActionsSetVariablesCommand.cjs +43 -0
- package/dist/production/src/commands/actions/ActionsSetVariablesCommand.cjs.map +1 -0
- package/dist/production/src/commands/actions/ActionsSetVariablesCommand.js +43 -0
- package/dist/production/src/commands/actions/ActionsSetVariablesCommand.js.map +1 -0
- package/dist/production/src/commands/actions/ActionsStopEventCommand.cjs +32 -0
- package/dist/production/src/commands/actions/ActionsStopEventCommand.cjs.map +1 -0
- package/dist/production/src/commands/actions/ActionsStopEventCommand.js +32 -0
- package/dist/production/src/commands/actions/ActionsStopEventCommand.js.map +1 -0
- package/dist/production/src/commands/deploy/DeployCommand.cjs.map +1 -1
- package/dist/production/src/commands/deploy/DeployCommand.js.map +1 -1
- package/dist/production/src/commands/migrations/MigrationAmendCommand.cjs.map +1 -1
- package/dist/production/src/commands/migrations/MigrationAmendCommand.js.map +1 -1
- package/dist/production/src/commands/migrations/MigrationBlankCommand.cjs.map +1 -1
- package/dist/production/src/commands/migrations/MigrationBlankCommand.js.map +1 -1
- package/dist/production/src/commands/migrations/MigrationDescribeCommand.cjs.map +1 -1
- package/dist/production/src/commands/migrations/MigrationDescribeCommand.js.map +1 -1
- package/dist/production/src/commands/migrations/MigrationDiffCommand.cjs.map +1 -1
- package/dist/production/src/commands/migrations/MigrationDiffCommand.js.map +1 -1
- package/dist/production/src/commands/migrations/MigrationExecuteCommand.cjs.map +1 -1
- package/dist/production/src/commands/migrations/MigrationExecuteCommand.js.map +1 -1
- package/dist/production/src/commands/migrations/MigrationRebaseCommand.cjs.map +1 -1
- package/dist/production/src/commands/migrations/MigrationRebaseCommand.js.map +1 -1
- package/dist/production/src/commands/migrations/MigrationStatusCommand.cjs +1 -1
- package/dist/production/src/commands/migrations/MigrationStatusCommand.cjs.map +1 -1
- package/dist/production/src/commands/migrations/MigrationStatusCommand.js +1 -1
- package/dist/production/src/commands/migrations/MigrationStatusCommand.js.map +1 -1
- package/dist/production/src/commands/misc/VersionCommand.cjs.map +1 -1
- package/dist/production/src/commands/misc/VersionCommand.js.map +1 -1
- package/dist/production/src/commands/project/ProjectGenerateDocumentationCommand.cjs.map +1 -1
- package/dist/production/src/commands/project/ProjectGenerateDocumentationCommand.js.map +1 -1
- package/dist/production/src/commands/project/ProjectPrintSchemaCommand.cjs.map +1 -1
- package/dist/production/src/commands/project/ProjectPrintSchemaCommand.js.map +1 -1
- package/dist/production/src/commands/project/ProjectValidateCommand.cjs.map +1 -1
- package/dist/production/src/commands/project/ProjectValidateCommand.js.map +1 -1
- package/dist/production/src/commands/transfer/ExportCommand.cjs +7 -2
- package/dist/production/src/commands/transfer/ExportCommand.cjs.map +1 -1
- package/dist/production/src/commands/transfer/ExportCommand.js +8 -3
- package/dist/production/src/commands/transfer/ExportCommand.js.map +1 -1
- package/dist/production/src/commands/transfer/ImportCommand.cjs +7 -4
- package/dist/production/src/commands/transfer/ImportCommand.cjs.map +1 -1
- package/dist/production/src/commands/transfer/ImportCommand.js +5 -2
- package/dist/production/src/commands/transfer/ImportCommand.js.map +1 -1
- package/dist/production/src/commands/transfer/TransferCommand.cjs +4 -5
- package/dist/production/src/commands/transfer/TransferCommand.cjs.map +1 -1
- package/dist/production/src/commands/transfer/TransferCommand.js +4 -5
- package/dist/production/src/commands/transfer/TransferCommand.js.map +1 -1
- package/dist/production/src/commands/transfer/utils.cjs.map +1 -1
- package/dist/production/src/commands/transfer/utils.js.map +1 -1
- package/dist/production/src/commands/workspace/WorkspaceUpdateApiCommand.cjs +16 -14
- package/dist/production/src/commands/workspace/WorkspaceUpdateApiCommand.cjs.map +1 -1
- package/dist/production/src/commands/workspace/WorkspaceUpdateApiCommand.js +16 -14
- package/dist/production/src/commands/workspace/WorkspaceUpdateApiCommand.js.map +1 -1
- package/dist/production/src/consts.cjs.map +1 -1
- package/dist/production/src/dic.cjs +100 -4
- package/dist/production/src/dic.cjs.map +1 -1
- package/dist/production/src/dic.js +101 -5
- package/dist/production/src/dic.js.map +1 -1
- package/dist/production/src/lib/SystemClientProvider.cjs.map +1 -1
- package/dist/production/src/lib/SystemClientProvider.js.map +1 -1
- package/dist/production/src/lib/TenantClientProvider.cjs.map +1 -1
- package/dist/production/src/lib/TenantClientProvider.js.map +1 -1
- package/dist/production/src/lib/VersionChecker.cjs +7 -9
- package/dist/production/src/lib/VersionChecker.cjs.map +1 -1
- package/dist/production/src/lib/VersionChecker.js +7 -9
- package/dist/production/src/lib/VersionChecker.js.map +1 -1
- package/dist/production/src/lib/actions/ActionsClient.cjs +91 -0
- package/dist/production/src/lib/actions/ActionsClient.cjs.map +1 -0
- package/dist/production/src/lib/actions/ActionsClient.js +91 -0
- package/dist/production/src/lib/actions/ActionsClient.js.map +1 -0
- package/dist/production/src/lib/admin/AdminClient.cjs.map +1 -1
- package/dist/production/src/lib/admin/AdminClient.js.map +1 -1
- package/dist/production/src/lib/admin/AdminDeployer.cjs.map +1 -1
- package/dist/production/src/lib/admin/AdminDeployer.js.map +1 -1
- package/dist/production/src/lib/assertNever.cjs.map +1 -1
- package/dist/production/src/lib/assertNever.js.map +1 -1
- package/dist/production/src/lib/dsn.cjs.map +1 -1
- package/dist/production/src/lib/dsn.js.map +1 -1
- package/dist/production/src/lib/env.cjs.map +1 -1
- package/dist/production/src/lib/env.js.map +1 -1
- package/dist/production/src/lib/fs/DockerComposeManager.cjs.map +1 -1
- package/dist/production/src/lib/fs/DockerComposeManager.js.map +1 -1
- package/dist/production/src/lib/fs/FileSystem.cjs.map +1 -1
- package/dist/production/src/lib/fs/FileSystem.js.map +1 -1
- package/dist/production/src/lib/fs/YamlHandler.cjs.map +1 -1
- package/dist/production/src/lib/fs/YamlHandler.js.map +1 -1
- package/dist/production/src/lib/js/EsBuildBuilder.cjs.map +1 -1
- package/dist/production/src/lib/js/EsBuildBuilder.js.map +1 -1
- package/dist/production/src/lib/js/EvalExecutor.cjs.map +1 -1
- package/dist/production/src/lib/js/EvalExecutor.js.map +1 -1
- package/dist/production/src/lib/js/JsCodeRunner.cjs.map +1 -1
- package/dist/production/src/lib/js/JsCodeRunner.js.map +1 -1
- package/dist/production/src/lib/migrations/MigrationExecutionFacade.cjs.map +1 -1
- package/dist/production/src/lib/migrations/MigrationExecutionFacade.js.map +1 -1
- package/dist/production/src/lib/migrations/MigrationPrinter.cjs +7 -2
- package/dist/production/src/lib/migrations/MigrationPrinter.cjs.map +1 -1
- package/dist/production/src/lib/migrations/MigrationPrinter.js +7 -2
- package/dist/production/src/lib/migrations/MigrationPrinter.js.map +1 -1
- package/dist/production/src/lib/migrations/MigrationRebaseFacade.cjs.map +1 -1
- package/dist/production/src/lib/migrations/MigrationRebaseFacade.js.map +1 -1
- package/dist/production/src/lib/migrations/MigrationsStatusFacade.cjs +3 -3
- package/dist/production/src/lib/migrations/MigrationsStatusFacade.cjs.map +1 -1
- package/dist/production/src/lib/migrations/MigrationsStatusFacade.js +3 -3
- package/dist/production/src/lib/migrations/MigrationsStatusFacade.js.map +1 -1
- package/dist/production/src/lib/migrations/MigrationsValidator.cjs.map +1 -1
- package/dist/production/src/lib/migrations/MigrationsValidator.js.map +1 -1
- package/dist/production/src/lib/project/RemoteProject.cjs.map +1 -1
- package/dist/production/src/lib/project/RemoteProject.js.map +1 -1
- package/dist/production/src/lib/project/RemoteProjectProvider.cjs.map +1 -1
- package/dist/production/src/lib/project/RemoteProjectProvider.js.map +1 -1
- package/dist/production/src/lib/project/RemoteProjectResolver.cjs.map +1 -1
- package/dist/production/src/lib/project/RemoteProjectResolver.js.map +1 -1
- package/dist/production/src/lib/project/docs/components/EntityInfo.cjs +39 -66
- package/dist/production/src/lib/project/docs/components/EntityInfo.cjs.map +1 -1
- package/dist/production/src/lib/project/docs/components/EntityInfo.js +40 -67
- package/dist/production/src/lib/project/docs/components/EntityInfo.js.map +1 -1
- package/dist/production/src/lib/project/docs/components/EntityLink.cjs.map +1 -1
- package/dist/production/src/lib/project/docs/components/EntityLink.js.map +1 -1
- package/dist/production/src/lib/project/docs/components/FieldLink.cjs.map +1 -1
- package/dist/production/src/lib/project/docs/components/FieldLink.js.map +1 -1
- package/dist/production/src/lib/project/docs/components/FieldPermissions.cjs.map +1 -1
- package/dist/production/src/lib/project/docs/components/FieldPermissions.js.map +1 -1
- package/dist/production/src/lib/project/docs/components/FieldType.cjs +3 -5
- package/dist/production/src/lib/project/docs/components/FieldType.cjs.map +1 -1
- package/dist/production/src/lib/project/docs/components/FieldType.js +3 -5
- package/dist/production/src/lib/project/docs/components/FieldType.js.map +1 -1
- package/dist/production/src/lib/project/docs/components/OnDelete.cjs +4 -8
- package/dist/production/src/lib/project/docs/components/OnDelete.cjs.map +1 -1
- package/dist/production/src/lib/project/docs/components/OnDelete.js +4 -8
- package/dist/production/src/lib/project/docs/components/OnDelete.js.map +1 -1
- package/dist/production/src/lib/project/docs/components/ProjectInfo.cjs.map +1 -1
- package/dist/production/src/lib/project/docs/components/ProjectInfo.js.map +1 -1
- package/dist/production/src/lib/project/docs/components/SinglePermission.cjs.map +1 -1
- package/dist/production/src/lib/project/docs/components/SinglePermission.js.map +1 -1
- package/dist/production/src/lib/project/docs/components/utils.cjs.map +1 -1
- package/dist/production/src/lib/project/docs/components/utils.js.map +1 -1
- package/dist/production/src/lib/project/docs/projectDescribe.cjs.map +1 -1
- package/dist/production/src/lib/project/docs/projectDescribe.js.map +1 -1
- package/dist/production/src/lib/schema/SchemaLoader.cjs.map +1 -1
- package/dist/production/src/lib/schema/SchemaLoader.js.map +1 -1
- package/dist/production/src/lib/schema/SchemaValidationHelper.cjs.map +1 -1
- package/dist/production/src/lib/schema/SchemaValidationPrinter.cjs.map +1 -1
- package/dist/production/src/lib/schema/SchemaValidationPrinter.js.map +1 -1
- package/dist/production/src/lib/schema/collectReferences.cjs.map +1 -1
- package/dist/production/src/lib/schema/collectReferences.js.map +1 -1
- package/dist/production/src/lib/stream.cjs +0 -7
- package/dist/production/src/lib/stream.cjs.map +1 -1
- package/dist/production/src/lib/stream.js +1 -8
- package/dist/production/src/lib/stream.js.map +1 -1
- package/dist/production/src/lib/tenant/TenantClient.cjs.map +1 -1
- package/dist/production/src/lib/tenant/TenantClient.js.map +1 -1
- package/dist/production/src/lib/transfer/DataTransferClient.cjs +53 -61
- package/dist/production/src/lib/transfer/DataTransferClient.cjs.map +1 -1
- package/dist/production/src/lib/transfer/DataTransferClient.js +55 -63
- package/dist/production/src/lib/transfer/DataTransferClient.js.map +1 -1
- package/dist/production/src/lib/transfer/stdio.cjs.map +1 -1
- package/dist/production/src/lib/transfer/stdio.js.map +1 -1
- package/dist/production/src/lib/workspace/WorkspaceResolver.cjs +4 -4
- package/dist/production/src/lib/workspace/WorkspaceResolver.cjs.map +1 -1
- package/dist/production/src/lib/workspace/WorkspaceResolver.js +5 -5
- package/dist/production/src/lib/workspace/WorkspaceResolver.js.map +1 -1
- package/dist/types/commands/actions/ActionsGetEventCommand.d.ts +16 -0
- package/dist/types/commands/actions/ActionsGetEventCommand.d.ts.map +1 -0
- package/dist/types/commands/actions/ActionsListFailedEventsCommand.d.ts +15 -0
- package/dist/types/commands/actions/ActionsListFailedEventsCommand.d.ts.map +1 -0
- package/dist/types/commands/actions/ActionsListVariablesCommand.d.ts +14 -0
- package/dist/types/commands/actions/ActionsListVariablesCommand.d.ts.map +1 -0
- package/dist/types/commands/actions/ActionsRetryEventCommand.d.ts +16 -0
- package/dist/types/commands/actions/ActionsRetryEventCommand.d.ts.map +1 -0
- package/dist/types/commands/actions/ActionsSetVariablesCommand.d.ts +19 -0
- package/dist/types/commands/actions/ActionsSetVariablesCommand.d.ts.map +1 -0
- package/dist/types/commands/actions/ActionsStopEventCommand.d.ts +16 -0
- package/dist/types/commands/actions/ActionsStopEventCommand.d.ts.map +1 -0
- package/dist/types/commands/deploy/DeployCommand.d.ts.map +1 -1
- package/dist/types/commands/migrations/MigrationAmendCommand.d.ts.map +1 -1
- package/dist/types/commands/migrations/MigrationBlankCommand.d.ts.map +1 -1
- package/dist/types/commands/migrations/MigrationDescribeCommand.d.ts.map +1 -1
- package/dist/types/commands/migrations/MigrationDiffCommand.d.ts.map +1 -1
- package/dist/types/commands/migrations/MigrationExecuteCommand.d.ts.map +1 -1
- package/dist/types/commands/migrations/MigrationRebaseCommand.d.ts.map +1 -1
- package/dist/types/commands/migrations/MigrationStatusCommand.d.ts.map +1 -1
- package/dist/types/commands/project/ProjectGenerateDocumentationCommand.d.ts.map +1 -1
- package/dist/types/commands/project/ProjectPrintSchemaCommand.d.ts.map +1 -1
- package/dist/types/commands/transfer/ExportCommand.d.ts.map +1 -1
- package/dist/types/commands/transfer/ImportCommand.d.ts.map +1 -1
- package/dist/types/commands/transfer/TransferCommand.d.ts.map +1 -1
- package/dist/types/commands/transfer/utils.d.ts.map +1 -1
- package/dist/types/commands/workspace/WorkspaceUpdateApiCommand.d.ts.map +1 -1
- package/dist/types/dic.d.ts +18 -0
- package/dist/types/dic.d.ts.map +1 -1
- package/dist/types/lib/VersionChecker.d.ts.map +1 -1
- package/dist/types/lib/actions/ActionsClient.d.ts +33 -0
- package/dist/types/lib/actions/ActionsClient.d.ts.map +1 -0
- package/dist/types/lib/admin/AdminClient.d.ts.map +1 -1
- package/dist/types/lib/admin/AdminDeployer.d.ts.map +1 -1
- package/dist/types/lib/fs/DockerComposeManager.d.ts.map +1 -1
- package/dist/types/lib/migrations/MigrationPrinter.d.ts +1 -1
- package/dist/types/lib/migrations/MigrationPrinter.d.ts.map +1 -1
- package/dist/types/lib/migrations/MigrationsStatusFacade.d.ts +3 -1
- package/dist/types/lib/migrations/MigrationsStatusFacade.d.ts.map +1 -1
- package/dist/types/lib/project/docs/components/EntityInfo.d.ts.map +1 -1
- package/dist/types/lib/project/docs/components/FieldLink.d.ts.map +1 -1
- package/dist/types/lib/project/docs/components/FieldPermissions.d.ts.map +1 -1
- package/dist/types/lib/project/docs/components/FieldType.d.ts.map +1 -1
- package/dist/types/lib/project/docs/components/OnDelete.d.ts.map +1 -1
- package/dist/types/lib/project/docs/components/ProjectInfo.d.ts.map +1 -1
- package/dist/types/lib/project/docs/projectDescribe.d.ts.map +1 -1
- package/dist/types/lib/schema/SchemaValidationPrinter.d.ts.map +1 -1
- package/dist/types/lib/stream.d.ts.map +1 -1
- package/dist/types/lib/tenant/TenantClient.d.ts.map +1 -1
- package/dist/types/lib/transfer/DataTransferClient.d.ts +2 -4
- package/dist/types/lib/transfer/DataTransferClient.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +33 -29
- package/src/commands/actions/ActionsGetEventCommand.ts +41 -0
- package/src/commands/actions/ActionsListFailedEventsCommand.ts +68 -0
- package/src/commands/actions/ActionsListVariablesCommand.ts +36 -0
- package/src/commands/actions/ActionsRetryEventCommand.ts +42 -0
- package/src/commands/actions/ActionsSetVariablesCommand.ts +62 -0
- package/src/commands/actions/ActionsStopEventCommand.ts +42 -0
- package/src/commands/deploy/DeployCommand.ts +0 -3
- package/src/commands/migrations/MigrationAmendCommand.ts +2 -2
- package/src/commands/migrations/MigrationBlankCommand.ts +1 -3
- package/src/commands/migrations/MigrationDescribeCommand.ts +0 -1
- package/src/commands/migrations/MigrationDiffCommand.ts +0 -2
- package/src/commands/migrations/MigrationExecuteCommand.ts +1 -2
- package/src/commands/migrations/MigrationRebaseCommand.ts +0 -2
- package/src/commands/migrations/MigrationStatusCommand.ts +8 -13
- package/src/commands/project/ProjectGenerateDocumentationCommand.ts +1 -2
- package/src/commands/project/ProjectPrintSchemaCommand.ts +1 -3
- package/src/commands/transfer/ExportCommand.ts +9 -4
- package/src/commands/transfer/ImportCommand.ts +7 -3
- package/src/commands/transfer/TransferCommand.ts +6 -6
- package/src/commands/transfer/utils.ts +0 -1
- package/src/commands/workspace/WorkspaceUpdateApiCommand.ts +16 -14
- package/src/dic.ts +162 -103
- package/src/lib/VersionChecker.ts +11 -9
- package/src/lib/actions/ActionsClient.ts +111 -0
- package/src/lib/admin/AdminClient.ts +2 -2
- package/src/lib/admin/AdminDeployer.ts +0 -1
- package/src/lib/fs/DockerComposeManager.ts +0 -3
- package/src/lib/migrations/MigrationPrinter.ts +7 -4
- package/src/lib/migrations/MigrationsStatusFacade.ts +4 -4
- package/src/lib/project/RemoteProjectResolver.ts +2 -2
- package/src/lib/project/docs/components/EntityInfo.tsx +36 -31
- package/src/lib/project/docs/components/FieldLink.tsx +5 -1
- package/src/lib/project/docs/components/FieldPermissions.tsx +8 -6
- package/src/lib/project/docs/components/FieldType.tsx +31 -30
- package/src/lib/project/docs/components/OnDelete.tsx +15 -13
- package/src/lib/project/docs/components/ProjectInfo.tsx +1 -4
- package/src/lib/project/docs/components/SinglePermission.tsx +0 -1
- package/src/lib/project/docs/components/utils.ts +0 -1
- package/src/lib/project/docs/projectDescribe.tsx +0 -2
- package/src/lib/project/docs/resources/style.css +2 -3
- package/src/lib/schema/SchemaLoader.ts +1 -1
- package/src/lib/schema/SchemaValidationPrinter.ts +0 -1
- package/src/lib/stream.ts +7 -8
- package/src/lib/tenant/TenantClient.ts +0 -1
- package/src/lib/transfer/DataTransferClient.ts +56 -74
- package/src/lib/transfer/stdio.ts +0 -1
- package/src/lib/workspace/WorkspaceResolver.ts +5 -5
- package/src/run.ts +2 -5
- package/dist/development/src/lib/migrations/migrations.cjs +0 -43
- package/dist/development/src/lib/migrations/migrations.cjs.map +0 -1
- package/dist/development/src/lib/migrations/migrations.js +0 -43
- package/dist/development/src/lib/migrations/migrations.js.map +0 -1
- package/dist/production/src/lib/migrations/migrations.cjs +0 -43
- package/dist/production/src/lib/migrations/migrations.cjs.map +0 -1
- package/dist/production/src/lib/migrations/migrations.js +0 -43
- package/dist/production/src/lib/migrations/migrations.js.map +0 -1
- package/dist/types/lib/migrations/migrations.d.ts +0 -3
- package/dist/types/lib/migrations/migrations.d.ts.map +0 -1
- package/postcss.config.js +0 -6
- package/src/.eslintrc.cjs +0 -5
- package/src/lib/migrations/migrations.ts +0 -45
- package/src/lib/project/docs/.eslintrc.cjs +0 -5
- package/tailwind.config.js +0 -7
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const chalk = require("chalk");
|
|
4
|
-
const chalkTable = require("chalk-table");
|
|
5
|
-
const assertNever = require("../assertNever.cjs");
|
|
6
|
-
const migrationsClient = require("@contember/migrations-client");
|
|
7
|
-
const createMigrationStatusTable = (migrations) => {
|
|
8
|
-
return chalkTable(
|
|
9
|
-
{
|
|
10
|
-
columns: ["status", "migration", "info"]
|
|
11
|
-
},
|
|
12
|
-
migrations.map((it) => {
|
|
13
|
-
switch (it.state) {
|
|
14
|
-
case migrationsClient.MigrationState.EXECUTED_ERROR:
|
|
15
|
-
return { status: chalk.bgRedBright.white("ERROR"), migration: it.name, info: it.errorMessage };
|
|
16
|
-
case migrationsClient.MigrationState.EXECUTED_OK:
|
|
17
|
-
return {
|
|
18
|
-
status: chalk.bgGreen.blackBright("Executed"),
|
|
19
|
-
migration: it.name,
|
|
20
|
-
info: `Executed at ${it.executedMigration.executedAt.toISOString()}`
|
|
21
|
-
};
|
|
22
|
-
case migrationsClient.MigrationState.EXECUTED_MISSING:
|
|
23
|
-
return {
|
|
24
|
-
status: chalk.bgRedBright.white("ERROR"),
|
|
25
|
-
migration: it.name,
|
|
26
|
-
info: it.errorMessage
|
|
27
|
-
};
|
|
28
|
-
case migrationsClient.MigrationState.TO_EXECUTE_OK:
|
|
29
|
-
return {
|
|
30
|
-
status: chalk.bgBlueBright.white("Not executed"),
|
|
31
|
-
migration: it.name,
|
|
32
|
-
info: "Will be executed during next deploy"
|
|
33
|
-
};
|
|
34
|
-
case migrationsClient.MigrationState.TO_EXECUTE_ERROR:
|
|
35
|
-
return { status: chalk.bgRedBright.white("ERROR"), migration: it.name, info: it.errorMessage };
|
|
36
|
-
default:
|
|
37
|
-
assertNever.assertNever();
|
|
38
|
-
}
|
|
39
|
-
})
|
|
40
|
-
);
|
|
41
|
-
};
|
|
42
|
-
exports.createMigrationStatusTable = createMigrationStatusTable;
|
|
43
|
-
//# sourceMappingURL=migrations.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"migrations.cjs","sources":["../../../../../../packages/cli/src/lib/migrations/migrations.ts"],"sourcesContent":["import { Migration, MigrationDescriber } from '@contember/schema-migrations'\nimport chalk from 'chalk'\nimport { Schema } from '@contember/schema'\nimport chalkTable from 'chalk-table'\nimport { assertNever } from '../assertNever'\nimport { emptyDatabaseMetadata } from '@contember/database'\nimport { MigrationState } from '@contember/migrations-client'\nimport { AnyMigrationStatus } from '@contember/migrations-client'\n\n\nexport const createMigrationStatusTable = (migrations: AnyMigrationStatus[]): string => {\n\treturn chalkTable(\n\t\t{\n\t\t\tcolumns: ['status', 'migration', 'info'],\n\t\t},\n\t\tmigrations.map(it => {\n\t\t\tswitch (it.state) {\n\t\t\t\tcase MigrationState.EXECUTED_ERROR:\n\t\t\t\t\treturn { status: chalk.bgRedBright.white('ERROR'), migration: it.name, info: it.errorMessage }\n\t\t\t\tcase MigrationState.EXECUTED_OK:\n\t\t\t\t\treturn {\n\t\t\t\t\t\tstatus: chalk.bgGreen.blackBright('Executed'),\n\t\t\t\t\t\tmigration: it.name,\n\t\t\t\t\t\tinfo: `Executed at ${it.executedMigration.executedAt.toISOString()}`,\n\t\t\t\t\t}\n\t\t\t\tcase MigrationState.EXECUTED_MISSING:\n\t\t\t\t\treturn {\n\t\t\t\t\t\tstatus: chalk.bgRedBright.white('ERROR'),\n\t\t\t\t\t\tmigration: it.name,\n\t\t\t\t\t\tinfo: it.errorMessage,\n\t\t\t\t\t}\n\t\t\t\tcase MigrationState.TO_EXECUTE_OK:\n\t\t\t\t\treturn {\n\t\t\t\t\t\tstatus: chalk.bgBlueBright.white('Not executed'),\n\t\t\t\t\t\tmigration: it.name,\n\t\t\t\t\t\tinfo: 'Will be executed during next deploy',\n\t\t\t\t\t}\n\t\t\t\tcase MigrationState.TO_EXECUTE_ERROR:\n\t\t\t\t\treturn { status: chalk.bgRedBright.white('ERROR'), migration: it.name, info: it.errorMessage }\n\t\t\t\tdefault:\n\t\t\t\t\tassertNever(it)\n\t\t\t}\n\t\t}),\n\t)\n}\n"],"names":["MigrationState","assertNever"],"mappings":";;;;;;AAUa,MAAA,6BAA6B,CAAC,eAA6C;AAChF,SAAA;AAAA,IACN;AAAA,MACC,SAAS,CAAC,UAAU,aAAa,MAAM;AAAA,IACxC;AAAA,IACA,WAAW,IAAI,CAAM,OAAA;AACpB,cAAQ,GAAG,OAAO;AAAA,QACjB,KAAKA,iBAAe,eAAA;AACnB,iBAAO,EAAE,QAAQ,MAAM,YAAY,MAAM,OAAO,GAAG,WAAW,GAAG,MAAM,MAAM,GAAG,aAAa;AAAA,QAC9F,KAAKA,iBAAe,eAAA;AACZ,iBAAA;AAAA,YACN,QAAQ,MAAM,QAAQ,YAAY,UAAU;AAAA,YAC5C,WAAW,GAAG;AAAA,YACd,MAAM,eAAe,GAAG,kBAAkB,WAAW,aAAa;AAAA,UACnE;AAAA,QACD,KAAKA,iBAAe,eAAA;AACZ,iBAAA;AAAA,YACN,QAAQ,MAAM,YAAY,MAAM,OAAO;AAAA,YACvC,WAAW,GAAG;AAAA,YACd,MAAM,GAAG;AAAA,UACV;AAAA,QACD,KAAKA,iBAAe,eAAA;AACZ,iBAAA;AAAA,YACN,QAAQ,MAAM,aAAa,MAAM,cAAc;AAAA,YAC/C,WAAW,GAAG;AAAA,YACd,MAAM;AAAA,UACP;AAAA,QACD,KAAKA,iBAAe,eAAA;AACnB,iBAAO,EAAE,QAAQ,MAAM,YAAY,MAAM,OAAO,GAAG,WAAW,GAAG,MAAM,MAAM,GAAG,aAAa;AAAA,QAC9F;AACCC,sBAAAA,YAAc;AAAA,MAAA;AAAA,IAEhB,CAAA;AAAA,EACF;AACD;;"}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import chalk from "chalk";
|
|
2
|
-
import chalkTable from "chalk-table";
|
|
3
|
-
import { assertNever } from "../assertNever.js";
|
|
4
|
-
import { MigrationState } from "@contember/migrations-client";
|
|
5
|
-
const createMigrationStatusTable = (migrations) => {
|
|
6
|
-
return chalkTable(
|
|
7
|
-
{
|
|
8
|
-
columns: ["status", "migration", "info"]
|
|
9
|
-
},
|
|
10
|
-
migrations.map((it) => {
|
|
11
|
-
switch (it.state) {
|
|
12
|
-
case MigrationState.EXECUTED_ERROR:
|
|
13
|
-
return { status: chalk.bgRedBright.white("ERROR"), migration: it.name, info: it.errorMessage };
|
|
14
|
-
case MigrationState.EXECUTED_OK:
|
|
15
|
-
return {
|
|
16
|
-
status: chalk.bgGreen.blackBright("Executed"),
|
|
17
|
-
migration: it.name,
|
|
18
|
-
info: `Executed at ${it.executedMigration.executedAt.toISOString()}`
|
|
19
|
-
};
|
|
20
|
-
case MigrationState.EXECUTED_MISSING:
|
|
21
|
-
return {
|
|
22
|
-
status: chalk.bgRedBright.white("ERROR"),
|
|
23
|
-
migration: it.name,
|
|
24
|
-
info: it.errorMessage
|
|
25
|
-
};
|
|
26
|
-
case MigrationState.TO_EXECUTE_OK:
|
|
27
|
-
return {
|
|
28
|
-
status: chalk.bgBlueBright.white("Not executed"),
|
|
29
|
-
migration: it.name,
|
|
30
|
-
info: "Will be executed during next deploy"
|
|
31
|
-
};
|
|
32
|
-
case MigrationState.TO_EXECUTE_ERROR:
|
|
33
|
-
return { status: chalk.bgRedBright.white("ERROR"), migration: it.name, info: it.errorMessage };
|
|
34
|
-
default:
|
|
35
|
-
assertNever();
|
|
36
|
-
}
|
|
37
|
-
})
|
|
38
|
-
);
|
|
39
|
-
};
|
|
40
|
-
export {
|
|
41
|
-
createMigrationStatusTable
|
|
42
|
-
};
|
|
43
|
-
//# sourceMappingURL=migrations.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"migrations.js","sources":["../../../../../../packages/cli/src/lib/migrations/migrations.ts"],"sourcesContent":["import { Migration, MigrationDescriber } from '@contember/schema-migrations'\nimport chalk from 'chalk'\nimport { Schema } from '@contember/schema'\nimport chalkTable from 'chalk-table'\nimport { assertNever } from '../assertNever'\nimport { emptyDatabaseMetadata } from '@contember/database'\nimport { MigrationState } from '@contember/migrations-client'\nimport { AnyMigrationStatus } from '@contember/migrations-client'\n\n\nexport const createMigrationStatusTable = (migrations: AnyMigrationStatus[]): string => {\n\treturn chalkTable(\n\t\t{\n\t\t\tcolumns: ['status', 'migration', 'info'],\n\t\t},\n\t\tmigrations.map(it => {\n\t\t\tswitch (it.state) {\n\t\t\t\tcase MigrationState.EXECUTED_ERROR:\n\t\t\t\t\treturn { status: chalk.bgRedBright.white('ERROR'), migration: it.name, info: it.errorMessage }\n\t\t\t\tcase MigrationState.EXECUTED_OK:\n\t\t\t\t\treturn {\n\t\t\t\t\t\tstatus: chalk.bgGreen.blackBright('Executed'),\n\t\t\t\t\t\tmigration: it.name,\n\t\t\t\t\t\tinfo: `Executed at ${it.executedMigration.executedAt.toISOString()}`,\n\t\t\t\t\t}\n\t\t\t\tcase MigrationState.EXECUTED_MISSING:\n\t\t\t\t\treturn {\n\t\t\t\t\t\tstatus: chalk.bgRedBright.white('ERROR'),\n\t\t\t\t\t\tmigration: it.name,\n\t\t\t\t\t\tinfo: it.errorMessage,\n\t\t\t\t\t}\n\t\t\t\tcase MigrationState.TO_EXECUTE_OK:\n\t\t\t\t\treturn {\n\t\t\t\t\t\tstatus: chalk.bgBlueBright.white('Not executed'),\n\t\t\t\t\t\tmigration: it.name,\n\t\t\t\t\t\tinfo: 'Will be executed during next deploy',\n\t\t\t\t\t}\n\t\t\t\tcase MigrationState.TO_EXECUTE_ERROR:\n\t\t\t\t\treturn { status: chalk.bgRedBright.white('ERROR'), migration: it.name, info: it.errorMessage }\n\t\t\t\tdefault:\n\t\t\t\t\tassertNever(it)\n\t\t\t}\n\t\t}),\n\t)\n}\n"],"names":[],"mappings":";;;;AAUa,MAAA,6BAA6B,CAAC,eAA6C;AAChF,SAAA;AAAA,IACN;AAAA,MACC,SAAS,CAAC,UAAU,aAAa,MAAM;AAAA,IACxC;AAAA,IACA,WAAW,IAAI,CAAM,OAAA;AACpB,cAAQ,GAAG,OAAO;AAAA,QACjB,KAAK,eAAe;AACnB,iBAAO,EAAE,QAAQ,MAAM,YAAY,MAAM,OAAO,GAAG,WAAW,GAAG,MAAM,MAAM,GAAG,aAAa;AAAA,QAC9F,KAAK,eAAe;AACZ,iBAAA;AAAA,YACN,QAAQ,MAAM,QAAQ,YAAY,UAAU;AAAA,YAC5C,WAAW,GAAG;AAAA,YACd,MAAM,eAAe,GAAG,kBAAkB,WAAW,aAAa;AAAA,UACnE;AAAA,QACD,KAAK,eAAe;AACZ,iBAAA;AAAA,YACN,QAAQ,MAAM,YAAY,MAAM,OAAO;AAAA,YACvC,WAAW,GAAG;AAAA,YACd,MAAM,GAAG;AAAA,UACV;AAAA,QACD,KAAK,eAAe;AACZ,iBAAA;AAAA,YACN,QAAQ,MAAM,aAAa,MAAM,cAAc;AAAA,YAC/C,WAAW,GAAG;AAAA,YACd,MAAM;AAAA,UACP;AAAA,QACD,KAAK,eAAe;AACnB,iBAAO,EAAE,QAAQ,MAAM,YAAY,MAAM,OAAO,GAAG,WAAW,GAAG,MAAM,MAAM,GAAG,aAAa;AAAA,QAC9F;AACC,sBAAc;AAAA,MAAA;AAAA,IAEhB,CAAA;AAAA,EACF;AACD;"}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const chalk = require("chalk");
|
|
4
|
-
const chalkTable = require("chalk-table");
|
|
5
|
-
const assertNever = require("../assertNever.cjs");
|
|
6
|
-
const migrationsClient = require("@contember/migrations-client");
|
|
7
|
-
const createMigrationStatusTable = (migrations) => {
|
|
8
|
-
return chalkTable(
|
|
9
|
-
{
|
|
10
|
-
columns: ["status", "migration", "info"]
|
|
11
|
-
},
|
|
12
|
-
migrations.map((it) => {
|
|
13
|
-
switch (it.state) {
|
|
14
|
-
case migrationsClient.MigrationState.EXECUTED_ERROR:
|
|
15
|
-
return { status: chalk.bgRedBright.white("ERROR"), migration: it.name, info: it.errorMessage };
|
|
16
|
-
case migrationsClient.MigrationState.EXECUTED_OK:
|
|
17
|
-
return {
|
|
18
|
-
status: chalk.bgGreen.blackBright("Executed"),
|
|
19
|
-
migration: it.name,
|
|
20
|
-
info: `Executed at ${it.executedMigration.executedAt.toISOString()}`
|
|
21
|
-
};
|
|
22
|
-
case migrationsClient.MigrationState.EXECUTED_MISSING:
|
|
23
|
-
return {
|
|
24
|
-
status: chalk.bgRedBright.white("ERROR"),
|
|
25
|
-
migration: it.name,
|
|
26
|
-
info: it.errorMessage
|
|
27
|
-
};
|
|
28
|
-
case migrationsClient.MigrationState.TO_EXECUTE_OK:
|
|
29
|
-
return {
|
|
30
|
-
status: chalk.bgBlueBright.white("Not executed"),
|
|
31
|
-
migration: it.name,
|
|
32
|
-
info: "Will be executed during next deploy"
|
|
33
|
-
};
|
|
34
|
-
case migrationsClient.MigrationState.TO_EXECUTE_ERROR:
|
|
35
|
-
return { status: chalk.bgRedBright.white("ERROR"), migration: it.name, info: it.errorMessage };
|
|
36
|
-
default:
|
|
37
|
-
assertNever.assertNever();
|
|
38
|
-
}
|
|
39
|
-
})
|
|
40
|
-
);
|
|
41
|
-
};
|
|
42
|
-
exports.createMigrationStatusTable = createMigrationStatusTable;
|
|
43
|
-
//# sourceMappingURL=migrations.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"migrations.cjs","sources":["../../../../../../packages/cli/src/lib/migrations/migrations.ts"],"sourcesContent":["import { Migration, MigrationDescriber } from '@contember/schema-migrations'\nimport chalk from 'chalk'\nimport { Schema } from '@contember/schema'\nimport chalkTable from 'chalk-table'\nimport { assertNever } from '../assertNever'\nimport { emptyDatabaseMetadata } from '@contember/database'\nimport { MigrationState } from '@contember/migrations-client'\nimport { AnyMigrationStatus } from '@contember/migrations-client'\n\n\nexport const createMigrationStatusTable = (migrations: AnyMigrationStatus[]): string => {\n\treturn chalkTable(\n\t\t{\n\t\t\tcolumns: ['status', 'migration', 'info'],\n\t\t},\n\t\tmigrations.map(it => {\n\t\t\tswitch (it.state) {\n\t\t\t\tcase MigrationState.EXECUTED_ERROR:\n\t\t\t\t\treturn { status: chalk.bgRedBright.white('ERROR'), migration: it.name, info: it.errorMessage }\n\t\t\t\tcase MigrationState.EXECUTED_OK:\n\t\t\t\t\treturn {\n\t\t\t\t\t\tstatus: chalk.bgGreen.blackBright('Executed'),\n\t\t\t\t\t\tmigration: it.name,\n\t\t\t\t\t\tinfo: `Executed at ${it.executedMigration.executedAt.toISOString()}`,\n\t\t\t\t\t}\n\t\t\t\tcase MigrationState.EXECUTED_MISSING:\n\t\t\t\t\treturn {\n\t\t\t\t\t\tstatus: chalk.bgRedBright.white('ERROR'),\n\t\t\t\t\t\tmigration: it.name,\n\t\t\t\t\t\tinfo: it.errorMessage,\n\t\t\t\t\t}\n\t\t\t\tcase MigrationState.TO_EXECUTE_OK:\n\t\t\t\t\treturn {\n\t\t\t\t\t\tstatus: chalk.bgBlueBright.white('Not executed'),\n\t\t\t\t\t\tmigration: it.name,\n\t\t\t\t\t\tinfo: 'Will be executed during next deploy',\n\t\t\t\t\t}\n\t\t\t\tcase MigrationState.TO_EXECUTE_ERROR:\n\t\t\t\t\treturn { status: chalk.bgRedBright.white('ERROR'), migration: it.name, info: it.errorMessage }\n\t\t\t\tdefault:\n\t\t\t\t\tassertNever(it)\n\t\t\t}\n\t\t}),\n\t)\n}\n"],"names":["MigrationState","assertNever"],"mappings":";;;;;;AAUa,MAAA,6BAA6B,CAAC,eAA6C;AAChF,SAAA;AAAA,IACN;AAAA,MACC,SAAS,CAAC,UAAU,aAAa,MAAM;AAAA,IACxC;AAAA,IACA,WAAW,IAAI,CAAM,OAAA;AACpB,cAAQ,GAAG,OAAO;AAAA,QACjB,KAAKA,iBAAe,eAAA;AACnB,iBAAO,EAAE,QAAQ,MAAM,YAAY,MAAM,OAAO,GAAG,WAAW,GAAG,MAAM,MAAM,GAAG,aAAa;AAAA,QAC9F,KAAKA,iBAAe,eAAA;AACZ,iBAAA;AAAA,YACN,QAAQ,MAAM,QAAQ,YAAY,UAAU;AAAA,YAC5C,WAAW,GAAG;AAAA,YACd,MAAM,eAAe,GAAG,kBAAkB,WAAW,aAAa;AAAA,UACnE;AAAA,QACD,KAAKA,iBAAe,eAAA;AACZ,iBAAA;AAAA,YACN,QAAQ,MAAM,YAAY,MAAM,OAAO;AAAA,YACvC,WAAW,GAAG;AAAA,YACd,MAAM,GAAG;AAAA,UACV;AAAA,QACD,KAAKA,iBAAe,eAAA;AACZ,iBAAA;AAAA,YACN,QAAQ,MAAM,aAAa,MAAM,cAAc;AAAA,YAC/C,WAAW,GAAG;AAAA,YACd,MAAM;AAAA,UACP;AAAA,QACD,KAAKA,iBAAe,eAAA;AACnB,iBAAO,EAAE,QAAQ,MAAM,YAAY,MAAM,OAAO,GAAG,WAAW,GAAG,MAAM,MAAM,GAAG,aAAa;AAAA,QAC9F;AACCC,sBAAAA,YAAc;AAAA,MAAA;AAAA,IAEhB,CAAA;AAAA,EACF;AACD;;"}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import chalk from "chalk";
|
|
2
|
-
import chalkTable from "chalk-table";
|
|
3
|
-
import { assertNever } from "../assertNever.js";
|
|
4
|
-
import { MigrationState } from "@contember/migrations-client";
|
|
5
|
-
const createMigrationStatusTable = (migrations) => {
|
|
6
|
-
return chalkTable(
|
|
7
|
-
{
|
|
8
|
-
columns: ["status", "migration", "info"]
|
|
9
|
-
},
|
|
10
|
-
migrations.map((it) => {
|
|
11
|
-
switch (it.state) {
|
|
12
|
-
case MigrationState.EXECUTED_ERROR:
|
|
13
|
-
return { status: chalk.bgRedBright.white("ERROR"), migration: it.name, info: it.errorMessage };
|
|
14
|
-
case MigrationState.EXECUTED_OK:
|
|
15
|
-
return {
|
|
16
|
-
status: chalk.bgGreen.blackBright("Executed"),
|
|
17
|
-
migration: it.name,
|
|
18
|
-
info: `Executed at ${it.executedMigration.executedAt.toISOString()}`
|
|
19
|
-
};
|
|
20
|
-
case MigrationState.EXECUTED_MISSING:
|
|
21
|
-
return {
|
|
22
|
-
status: chalk.bgRedBright.white("ERROR"),
|
|
23
|
-
migration: it.name,
|
|
24
|
-
info: it.errorMessage
|
|
25
|
-
};
|
|
26
|
-
case MigrationState.TO_EXECUTE_OK:
|
|
27
|
-
return {
|
|
28
|
-
status: chalk.bgBlueBright.white("Not executed"),
|
|
29
|
-
migration: it.name,
|
|
30
|
-
info: "Will be executed during next deploy"
|
|
31
|
-
};
|
|
32
|
-
case MigrationState.TO_EXECUTE_ERROR:
|
|
33
|
-
return { status: chalk.bgRedBright.white("ERROR"), migration: it.name, info: it.errorMessage };
|
|
34
|
-
default:
|
|
35
|
-
assertNever();
|
|
36
|
-
}
|
|
37
|
-
})
|
|
38
|
-
);
|
|
39
|
-
};
|
|
40
|
-
export {
|
|
41
|
-
createMigrationStatusTable
|
|
42
|
-
};
|
|
43
|
-
//# sourceMappingURL=migrations.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"migrations.js","sources":["../../../../../../packages/cli/src/lib/migrations/migrations.ts"],"sourcesContent":["import { Migration, MigrationDescriber } from '@contember/schema-migrations'\nimport chalk from 'chalk'\nimport { Schema } from '@contember/schema'\nimport chalkTable from 'chalk-table'\nimport { assertNever } from '../assertNever'\nimport { emptyDatabaseMetadata } from '@contember/database'\nimport { MigrationState } from '@contember/migrations-client'\nimport { AnyMigrationStatus } from '@contember/migrations-client'\n\n\nexport const createMigrationStatusTable = (migrations: AnyMigrationStatus[]): string => {\n\treturn chalkTable(\n\t\t{\n\t\t\tcolumns: ['status', 'migration', 'info'],\n\t\t},\n\t\tmigrations.map(it => {\n\t\t\tswitch (it.state) {\n\t\t\t\tcase MigrationState.EXECUTED_ERROR:\n\t\t\t\t\treturn { status: chalk.bgRedBright.white('ERROR'), migration: it.name, info: it.errorMessage }\n\t\t\t\tcase MigrationState.EXECUTED_OK:\n\t\t\t\t\treturn {\n\t\t\t\t\t\tstatus: chalk.bgGreen.blackBright('Executed'),\n\t\t\t\t\t\tmigration: it.name,\n\t\t\t\t\t\tinfo: `Executed at ${it.executedMigration.executedAt.toISOString()}`,\n\t\t\t\t\t}\n\t\t\t\tcase MigrationState.EXECUTED_MISSING:\n\t\t\t\t\treturn {\n\t\t\t\t\t\tstatus: chalk.bgRedBright.white('ERROR'),\n\t\t\t\t\t\tmigration: it.name,\n\t\t\t\t\t\tinfo: it.errorMessage,\n\t\t\t\t\t}\n\t\t\t\tcase MigrationState.TO_EXECUTE_OK:\n\t\t\t\t\treturn {\n\t\t\t\t\t\tstatus: chalk.bgBlueBright.white('Not executed'),\n\t\t\t\t\t\tmigration: it.name,\n\t\t\t\t\t\tinfo: 'Will be executed during next deploy',\n\t\t\t\t\t}\n\t\t\t\tcase MigrationState.TO_EXECUTE_ERROR:\n\t\t\t\t\treturn { status: chalk.bgRedBright.white('ERROR'), migration: it.name, info: it.errorMessage }\n\t\t\t\tdefault:\n\t\t\t\t\tassertNever(it)\n\t\t\t}\n\t\t}),\n\t)\n}\n"],"names":[],"mappings":";;;;AAUa,MAAA,6BAA6B,CAAC,eAA6C;AAChF,SAAA;AAAA,IACN;AAAA,MACC,SAAS,CAAC,UAAU,aAAa,MAAM;AAAA,IACxC;AAAA,IACA,WAAW,IAAI,CAAM,OAAA;AACpB,cAAQ,GAAG,OAAO;AAAA,QACjB,KAAK,eAAe;AACnB,iBAAO,EAAE,QAAQ,MAAM,YAAY,MAAM,OAAO,GAAG,WAAW,GAAG,MAAM,MAAM,GAAG,aAAa;AAAA,QAC9F,KAAK,eAAe;AACZ,iBAAA;AAAA,YACN,QAAQ,MAAM,QAAQ,YAAY,UAAU;AAAA,YAC5C,WAAW,GAAG;AAAA,YACd,MAAM,eAAe,GAAG,kBAAkB,WAAW,aAAa;AAAA,UACnE;AAAA,QACD,KAAK,eAAe;AACZ,iBAAA;AAAA,YACN,QAAQ,MAAM,YAAY,MAAM,OAAO;AAAA,YACvC,WAAW,GAAG;AAAA,YACd,MAAM,GAAG;AAAA,UACV;AAAA,QACD,KAAK,eAAe;AACZ,iBAAA;AAAA,YACN,QAAQ,MAAM,aAAa,MAAM,cAAc;AAAA,YAC/C,WAAW,GAAG;AAAA,YACd,MAAM;AAAA,UACP;AAAA,QACD,KAAK,eAAe;AACnB,iBAAO,EAAE,QAAQ,MAAM,YAAY,MAAM,OAAO,GAAG,WAAW,GAAG,MAAM,MAAM,GAAG,aAAa;AAAA,QAC9F;AACC,sBAAc;AAAA,MAAA;AAAA,IAEhB,CAAA;AAAA,EACF;AACD;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"migrations.d.ts","sourceRoot":"","sources":["../../../../src/lib/migrations/migrations.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,kBAAkB,EAAE,MAAM,8BAA8B,CAAA;AAGjE,eAAO,MAAM,0BAA0B,GAAI,YAAY,kBAAkB,EAAE,KAAG,MAkC7E,CAAA"}
|
package/postcss.config.js
DELETED
package/src/.eslintrc.cjs
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { Migration, MigrationDescriber } from '@contember/schema-migrations'
|
|
2
|
-
import chalk from 'chalk'
|
|
3
|
-
import { Schema } from '@contember/schema'
|
|
4
|
-
import chalkTable from 'chalk-table'
|
|
5
|
-
import { assertNever } from '../assertNever'
|
|
6
|
-
import { emptyDatabaseMetadata } from '@contember/database'
|
|
7
|
-
import { MigrationState } from '@contember/migrations-client'
|
|
8
|
-
import { AnyMigrationStatus } from '@contember/migrations-client'
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
export const createMigrationStatusTable = (migrations: AnyMigrationStatus[]): string => {
|
|
12
|
-
return chalkTable(
|
|
13
|
-
{
|
|
14
|
-
columns: ['status', 'migration', 'info'],
|
|
15
|
-
},
|
|
16
|
-
migrations.map(it => {
|
|
17
|
-
switch (it.state) {
|
|
18
|
-
case MigrationState.EXECUTED_ERROR:
|
|
19
|
-
return { status: chalk.bgRedBright.white('ERROR'), migration: it.name, info: it.errorMessage }
|
|
20
|
-
case MigrationState.EXECUTED_OK:
|
|
21
|
-
return {
|
|
22
|
-
status: chalk.bgGreen.blackBright('Executed'),
|
|
23
|
-
migration: it.name,
|
|
24
|
-
info: `Executed at ${it.executedMigration.executedAt.toISOString()}`,
|
|
25
|
-
}
|
|
26
|
-
case MigrationState.EXECUTED_MISSING:
|
|
27
|
-
return {
|
|
28
|
-
status: chalk.bgRedBright.white('ERROR'),
|
|
29
|
-
migration: it.name,
|
|
30
|
-
info: it.errorMessage,
|
|
31
|
-
}
|
|
32
|
-
case MigrationState.TO_EXECUTE_OK:
|
|
33
|
-
return {
|
|
34
|
-
status: chalk.bgBlueBright.white('Not executed'),
|
|
35
|
-
migration: it.name,
|
|
36
|
-
info: 'Will be executed during next deploy',
|
|
37
|
-
}
|
|
38
|
-
case MigrationState.TO_EXECUTE_ERROR:
|
|
39
|
-
return { status: chalk.bgRedBright.white('ERROR'), migration: it.name, info: it.errorMessage }
|
|
40
|
-
default:
|
|
41
|
-
assertNever(it)
|
|
42
|
-
}
|
|
43
|
-
}),
|
|
44
|
-
)
|
|
45
|
-
}
|