Skip to content

Commit

Permalink
move console and client to separate modules
Browse files Browse the repository at this point in the history
  • Loading branch information
WojciechGrancow committed Nov 28, 2023
1 parent af700bb commit 87a7eab
Show file tree
Hide file tree
Showing 40 changed files with 14 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ import { ConfigModule } from '@nestjs/config';
import { ConsoleModule } from 'nestjs-console';
import { ConsoleWriterModule } from '@infra/console';
import { createConfigModuleOptions } from '@src/config';
import { DeletionClient } from '../client';
import { getDeletionClientConfig } from '../client/deletion-client.config';
import { BatchDeletionService } from '../services';
import { BatchDeletionUc, DeletionExecutionUc } from '../uc';
import { DeletionClient } from '../deletion-client';
import { getDeletionClientConfig } from '../deletion-client/deletion-client.config';
import { BatchDeletionService } from '../deletion/services';
import { BatchDeletionUc, DeletionExecutionUc } from '../deletion/uc';
import { DeletionQueueConsole } from './deletion-queue.console';
import { DeletionExecutionConsole } from './deletion-execution.console';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Test, TestingModule } from '@nestjs/testing';
import { createMock, DeepMocked } from '@golevelup/ts-jest';
import { ConsoleWriterService } from '@infra/console';
import { DeletionExecutionUc } from '../uc';
import { DeletionExecutionUc } from '../deletion/uc';
import { DeletionExecutionConsole } from './deletion-execution.console';
import { DeletionExecutionTriggerResultBuilder, TriggerDeletionExecutionOptionsBuilder } from './builder';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Command, Console } from 'nestjs-console';
import { ConsoleWriterService } from '@infra/console';
import { DeletionExecutionUc } from '../uc';
import { DeletionExecutionUc } from '../deletion/uc';
import { DeletionExecutionTriggerResultBuilder } from './builder';
import { DeletionExecutionTriggerResult, TriggerDeletionExecutionOptions } from './interface';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { Test, TestingModule } from '@nestjs/testing';
import { ConsoleWriterService } from '@infra/console';
import { createMock } from '@golevelup/ts-jest';
import { BatchDeletionUc } from '../uc';
import { BatchDeletionUc } from '../deletion/uc';
import { DeletionQueueConsole } from './deletion-queue.console';
import { PushDeleteRequestsOptionsBuilder } from './builder';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Console, Command } from 'nestjs-console';
import { ConsoleWriterService } from '@infra/console';
import { BatchDeletionUc } from '../uc';
import { BatchDeletionUc } from '../deletion/uc';
import { PushDeletionRequestsOptions } from './interface';

@Console({ command: 'queue', description: 'Console providing an access to the deletion queue.' })
Expand Down
4 changes: 2 additions & 2 deletions apps/server/src/modules/deletion/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export * from './deletion.module';
export * from './services';
export * from './client';
export * from './console';
export * from '../deletion-client';
export * from '../deletion-console';
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { ObjectId } from 'bson';
import { Test, TestingModule } from '@nestjs/testing';
import { createMock, DeepMocked } from '@golevelup/ts-jest';
import { DeletionClient, DeletionRequestOutput, DeletionRequestOutputBuilder } from '../client';
import { DeletionClient, DeletionRequestOutput, DeletionRequestOutputBuilder } from '../../deletion-client';
import { QueueDeletionRequestInputBuilder, QueueDeletionRequestOutputBuilder } from './builder';
import { BatchDeletionService } from './batch-deletion.service';

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Injectable } from '@nestjs/common';
import { QueueDeletionRequestOutputBuilder } from './builder';
import { DeletionClient, DeletionRequestInputBuilder } from '../client';
import { DeletionClient, DeletionRequestInputBuilder } from '../../deletion-client';
import { QueueDeletionRequestInput, QueueDeletionRequestOutput } from './interface';

@Injectable()
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Test, TestingModule } from '@nestjs/testing';
import { createMock, DeepMocked } from '@golevelup/ts-jest';
import { DeletionClient } from '../client';
import { DeletionClient } from '../../deletion-client';
import { DeletionExecutionUc } from './deletion-execution.uc';

describe(DeletionExecutionUc.name, () => {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Injectable } from '@nestjs/common';
import { DeletionClient } from '../client';
import { DeletionClient } from '../../deletion-client';

@Injectable()
export class DeletionExecutionUc {
Expand Down

0 comments on commit 87a7eab

Please sign in to comment.