2023-11-06 22:15:02 +00:00
|
|
|
import { Module } from '@nestjs/common';
|
2024-05-31 16:02:52 +00:00
|
|
|
import { TypeOrmModule } from '@nestjs/typeorm';
|
2023-11-06 22:15:02 +00:00
|
|
|
|
2024-07-09 15:48:10 +00:00
|
|
|
import { UpdateMessageChannelSyncStatusEnumCommand } from 'src/database/commands/0-20-update-message-channel-sync-status-enum.command';
|
2024-03-15 14:23:07 +00:00
|
|
|
import { StartDataSeedDemoWorkspaceCronCommand } from 'src/database/commands/data-seed-demo-workspace/crons/start-data-seed-demo-workspace.cron.command';
|
|
|
|
|
import { StopDataSeedDemoWorkspaceCronCommand } from 'src/database/commands/data-seed-demo-workspace/crons/stop-data-seed-demo-workspace.cron.command';
|
2024-02-24 11:30:12 +00:00
|
|
|
import { DataSeedDemoWorkspaceCommand } from 'src/database/commands/data-seed-demo-workspace/data-seed-demo-workspace-command';
|
|
|
|
|
import { DataSeedDemoWorkspaceModule } from 'src/database/commands/data-seed-demo-workspace/data-seed-demo-workspace.module';
|
2024-07-09 15:48:10 +00:00
|
|
|
import { DataSeedWorkspaceCommand } from 'src/database/commands/data-seed-dev-workspace.command';
|
|
|
|
|
import { ConfirmationQuestion } from 'src/database/commands/questions/confirmation.question';
|
2024-06-05 16:16:53 +00:00
|
|
|
import { UpdateMessageChannelVisibilityEnumCommand } from 'src/database/commands/update-message-channel-visibility-enum.command';
|
2024-07-09 15:48:10 +00:00
|
|
|
import { UpgradeTo0_22CommandModule } from 'src/database/commands/upgrade-version/0-22/0-22-upgrade-version.module';
|
|
|
|
|
import { WorkspaceAddTotalCountCommand } from 'src/database/commands/workspace-add-total-count.command';
|
|
|
|
|
import { TypeORMModule } from 'src/database/typeorm/typeorm.module';
|
|
|
|
|
import { Workspace } from 'src/engine/core-modules/workspace/workspace.entity';
|
|
|
|
|
import { WorkspaceModule } from 'src/engine/core-modules/workspace/workspace.module';
|
|
|
|
|
import { DataSourceModule } from 'src/engine/metadata-modules/data-source/data-source.module';
|
2024-05-31 16:02:52 +00:00
|
|
|
import { FieldMetadataEntity } from 'src/engine/metadata-modules/field-metadata/field-metadata.entity';
|
|
|
|
|
import { ObjectMetadataEntity } from 'src/engine/metadata-modules/object-metadata/object-metadata.entity';
|
2024-07-09 15:48:10 +00:00
|
|
|
import { ObjectMetadataModule } from 'src/engine/metadata-modules/object-metadata/object-metadata.module';
|
|
|
|
|
import { WorkspaceCacheVersionModule } from 'src/engine/metadata-modules/workspace-cache-version/workspace-cache-version.module';
|
|
|
|
|
import { WorkspaceDataSourceModule } from 'src/engine/workspace-datasource/workspace-datasource.module';
|
|
|
|
|
import { WorkspaceManagerModule } from 'src/engine/workspace-manager/workspace-manager.module';
|
|
|
|
|
import { WorkspaceSyncMetadataModule } from 'src/engine/workspace-manager/workspace-sync-metadata/workspace-sync-metadata.module';
|
2023-11-06 22:15:02 +00:00
|
|
|
|
|
|
|
|
@Module({
|
|
|
|
|
imports: [
|
2023-11-17 10:26:33 +00:00
|
|
|
WorkspaceManagerModule,
|
2023-11-10 14:33:25 +00:00
|
|
|
DataSourceModule,
|
|
|
|
|
TypeORMModule,
|
2024-05-31 16:02:52 +00:00
|
|
|
TypeOrmModule.forFeature([Workspace], 'core'),
|
|
|
|
|
TypeOrmModule.forFeature(
|
|
|
|
|
[FieldMetadataEntity, ObjectMetadataEntity],
|
|
|
|
|
'metadata',
|
|
|
|
|
),
|
2023-11-10 14:33:25 +00:00
|
|
|
WorkspaceModule,
|
2023-12-07 18:22:34 +00:00
|
|
|
WorkspaceDataSourceModule,
|
|
|
|
|
WorkspaceSyncMetadataModule,
|
|
|
|
|
ObjectMetadataModule,
|
2024-02-24 11:30:12 +00:00
|
|
|
DataSeedDemoWorkspaceModule,
|
2024-05-31 16:02:52 +00:00
|
|
|
WorkspaceCacheVersionModule,
|
2024-07-09 15:48:10 +00:00
|
|
|
|
|
|
|
|
// Upgrades
|
|
|
|
|
UpgradeTo0_22CommandModule,
|
2023-11-10 14:33:25 +00:00
|
|
|
],
|
2023-12-02 17:37:45 +00:00
|
|
|
providers: [
|
|
|
|
|
DataSeedWorkspaceCommand,
|
|
|
|
|
DataSeedDemoWorkspaceCommand,
|
2024-01-12 09:41:38 +00:00
|
|
|
WorkspaceAddTotalCountCommand,
|
2023-12-02 17:37:45 +00:00
|
|
|
ConfirmationQuestion,
|
2024-03-15 14:23:07 +00:00
|
|
|
StartDataSeedDemoWorkspaceCronCommand,
|
|
|
|
|
StopDataSeedDemoWorkspaceCronCommand,
|
2024-06-05 16:16:53 +00:00
|
|
|
UpdateMessageChannelVisibilityEnumCommand,
|
2024-05-31 16:02:52 +00:00
|
|
|
UpdateMessageChannelSyncStatusEnumCommand,
|
2023-12-02 17:37:45 +00:00
|
|
|
],
|
2023-11-06 22:15:02 +00:00
|
|
|
})
|
|
|
|
|
export class DatabaseCommandModule {}
|