diff --git a/libs/tasks/domain/src/index.ts b/libs/tasks/domain/src/index.ts index b6b8850..0e8b7cc 100644 --- a/libs/tasks/domain/src/index.ts +++ b/libs/tasks/domain/src/index.ts @@ -1,6 +1,10 @@ -export * from './lib/entities/task.entity'; -export * from './lib/entities/user-task.entity'; +// tasks +export * from './lib/tasks-repository.interface'; +export * from './lib/entities/task.entity'; export * from './lib/value-objects/task-status.enum'; -export * from './lib/tasks.repository'; +// user tasks +export * from './lib/user-tasks-repository.interface'; + +export * from './lib/entities/user-task.entity'; diff --git a/libs/tasks/domain/src/lib/tasks.repository.spec.ts b/libs/tasks/domain/src/lib/tasks-repository.interface.spec.ts similarity index 89% rename from libs/tasks/domain/src/lib/tasks.repository.spec.ts rename to libs/tasks/domain/src/lib/tasks-repository.interface.spec.ts index f7ec9c6..4221f5c 100644 --- a/libs/tasks/domain/src/lib/tasks.repository.spec.ts +++ b/libs/tasks/domain/src/lib/tasks-repository.interface.spec.ts @@ -1,5 +1,5 @@ import { Task } from './entities/task.entity'; -import { TasksRepository } from './tasks.repository'; +import { TasksRepository } from './tasks-repository.interface'; class MockTasksRepository implements TasksRepository { async findAll(): Promise { diff --git a/libs/tasks/domain/src/lib/tasks.repository.ts b/libs/tasks/domain/src/lib/tasks-repository.interface.ts similarity index 100% rename from libs/tasks/domain/src/lib/tasks.repository.ts rename to libs/tasks/domain/src/lib/tasks-repository.interface.ts diff --git a/libs/tasks/domain/src/lib/user-tasks.repository.spec.ts b/libs/tasks/domain/src/lib/user-tasks-repository.interface.spec.ts similarity index 95% rename from libs/tasks/domain/src/lib/user-tasks.repository.spec.ts rename to libs/tasks/domain/src/lib/user-tasks-repository.interface.spec.ts index de2bdd3..d08ef7f 100644 --- a/libs/tasks/domain/src/lib/user-tasks.repository.spec.ts +++ b/libs/tasks/domain/src/lib/user-tasks-repository.interface.spec.ts @@ -1,5 +1,5 @@ import { Task } from './entities/task.entity'; -import { UserTasksRepository } from './user-tasks.repository'; +import { UserTasksRepository } from './user-tasks-repository.interface'; class MockUserTasksRepository implements UserTasksRepository { async findAll(userId: string): Promise { diff --git a/libs/tasks/domain/src/lib/user-tasks.repository.ts b/libs/tasks/domain/src/lib/user-tasks-repository.interface.ts similarity index 100% rename from libs/tasks/domain/src/lib/user-tasks.repository.ts rename to libs/tasks/domain/src/lib/user-tasks-repository.interface.ts