diff --git a/services/api/src/app/messages/command.service.ts b/services/api/src/app/messages/command.service.ts index 61fd7395..29037845 100644 --- a/services/api/src/app/messages/command.service.ts +++ b/services/api/src/app/messages/command.service.ts @@ -9,10 +9,10 @@ import { LoremCommandUseCase } from '@usecases/commands/lorem'; import { ParseCommandUseCase } from '@usecases/commands/parse'; import { ChangeRoomJoinPolicyUseCase } from '@usecases/rooms/change-room-join-policy'; import { P, match } from 'ts-pattern'; -import { InviteUseCase } from '@usecases/rooms/invite'; -import { LeaveRoomUseCase } from '@usecases/rooms/leave'; +import { InviteUseCase } from '@usecases/memberships/invite'; +import { LeaveRoomUseCase } from '@usecases/memberships/leave'; import { AboutRoomUseCase } from '@usecases/rooms/about-room'; -import { ApproveRequestUseCase } from '@usecases/rooms/approve-request'; +import { ApproveRequestUseCase } from '@usecases/memberships/approve-request'; @Injectable() export class CommandService { diff --git a/services/api/src/app/messages/messages.module.ts b/services/api/src/app/messages/messages.module.ts index 00e37024..f566758a 100644 --- a/services/api/src/app/messages/messages.module.ts +++ b/services/api/src/app/messages/messages.module.ts @@ -13,10 +13,10 @@ import { LoremCommandUseCase, LoremGenerator } from '@usecases/commands/lorem'; import { FakerLoremGenerator } from './faker.lorem.generator'; import { DispatcherModule } from '../dispatcher/dispatcher.module'; import { ChangeRoomJoinPolicyUseCase } from '@usecases/rooms/change-room-join-policy'; -import { InviteUseCase } from '@usecases/rooms/invite'; -import { LeaveRoomUseCase } from '@usecases/rooms/leave'; +import { InviteUseCase } from '@usecases/memberships/invite'; +import { LeaveRoomUseCase } from '@usecases/memberships/leave'; import { AboutRoomUseCase } from '@usecases/rooms/about-room'; -import { ApproveRequestUseCase } from '@usecases/rooms/approve-request'; +import { ApproveRequestUseCase } from '@usecases/memberships/approve-request'; @Module({ imports: [AuthModule, DispatcherModule], diff --git a/services/api/src/app/rooms/rooms.controller.ts b/services/api/src/app/rooms/rooms.controller.ts index feac6d1f..4c994c30 100644 --- a/services/api/src/app/rooms/rooms.controller.ts +++ b/services/api/src/app/rooms/rooms.controller.ts @@ -4,7 +4,7 @@ import { ConsoleLogger, Controller, Get, Param, Post } from '@nestjs/common'; import { User } from '@entities/users'; import { CreateRoomUseCase } from '@usecases/rooms/create'; import { GetRoomUseCase } from '@usecases/rooms/get'; -import { JoinRoomUseCase } from '@usecases/rooms/join'; +import { JoinRoomUseCase } from '@usecases/memberships/join'; @Auth() @Controller('rooms') diff --git a/services/api/src/app/rooms/rooms.module.ts b/services/api/src/app/rooms/rooms.module.ts index 3df1746f..a46fcb64 100644 --- a/services/api/src/app/rooms/rooms.module.ts +++ b/services/api/src/app/rooms/rooms.module.ts @@ -2,7 +2,7 @@ import { AuthModule } from '@app/auth/auth.module'; import { Module } from '@nestjs/common'; import { CreateRoomUseCase } from '@usecases/rooms/create'; import { GetRoomUseCase } from '@usecases/rooms/get'; -import { JoinRoomUseCase } from '@usecases/rooms/join'; +import { JoinRoomUseCase } from '@usecases/memberships/join'; import { RoomsController } from './rooms.controller'; import { MessagesModule } from '@app/messages/messages.module'; import { DispatcherModule } from '@app/dispatcher/dispatcher.module'; diff --git a/services/api/src/domain/usecases/rooms/approve-request.spec.ts b/services/api/src/domain/usecases/memberships/approve-request.spec.ts similarity index 100% rename from services/api/src/domain/usecases/rooms/approve-request.spec.ts rename to services/api/src/domain/usecases/memberships/approve-request.spec.ts diff --git a/services/api/src/domain/usecases/rooms/approve-request.ts b/services/api/src/domain/usecases/memberships/approve-request.ts similarity index 100% rename from services/api/src/domain/usecases/rooms/approve-request.ts rename to services/api/src/domain/usecases/memberships/approve-request.ts diff --git a/services/api/src/domain/usecases/rooms/invite.spec.ts b/services/api/src/domain/usecases/memberships/invite.spec.ts similarity index 100% rename from services/api/src/domain/usecases/rooms/invite.spec.ts rename to services/api/src/domain/usecases/memberships/invite.spec.ts diff --git a/services/api/src/domain/usecases/rooms/invite.ts b/services/api/src/domain/usecases/memberships/invite.ts similarity index 100% rename from services/api/src/domain/usecases/rooms/invite.ts rename to services/api/src/domain/usecases/memberships/invite.ts diff --git a/services/api/src/domain/usecases/rooms/join.spec.ts b/services/api/src/domain/usecases/memberships/join.spec.ts similarity index 100% rename from services/api/src/domain/usecases/rooms/join.spec.ts rename to services/api/src/domain/usecases/memberships/join.spec.ts diff --git a/services/api/src/domain/usecases/rooms/join.ts b/services/api/src/domain/usecases/memberships/join.ts similarity index 100% rename from services/api/src/domain/usecases/rooms/join.ts rename to services/api/src/domain/usecases/memberships/join.ts diff --git a/services/api/src/domain/usecases/rooms/leave.spec.ts b/services/api/src/domain/usecases/memberships/leave.spec.ts similarity index 100% rename from services/api/src/domain/usecases/rooms/leave.spec.ts rename to services/api/src/domain/usecases/memberships/leave.spec.ts diff --git a/services/api/src/domain/usecases/rooms/leave.ts b/services/api/src/domain/usecases/memberships/leave.ts similarity index 100% rename from services/api/src/domain/usecases/rooms/leave.ts rename to services/api/src/domain/usecases/memberships/leave.ts