diff --git a/backend/src/modules/boards/applications/update-board.use-case.spec.ts b/backend/src/modules/boards/applications/update-board.use-case.spec.ts index 6156f9ec2..23c054dbe 100644 --- a/backend/src/modules/boards/applications/update-board.use-case.spec.ts +++ b/backend/src/modules/boards/applications/update-board.use-case.spec.ts @@ -1,6 +1,5 @@ import { Test, TestingModule } from '@nestjs/testing'; import * as CommunicationsType from 'src/modules/communication/interfaces/types'; -import * as Votes from 'src/modules/votes/interfaces/types'; import { BoardRepositoryInterface } from '../repositories/board.repository.interface'; import { CommunicationServiceInterface } from 'src/modules/communication/interfaces/slack-communication.service.interface'; import { BoardFactory } from 'src/libs/test-utils/mocks/factories/board-factory.mock'; @@ -30,6 +29,7 @@ import { GET_BOARD_USER_SERVICE, UPDATE_BOARD_USER_SERVICE } from 'src/modules/boardUsers/constants'; +import { DELETE_VOTE_SERVICE } from 'src/modules/votes/constants'; const regularBoard = BoardFactory.create({ isSubBoard: false, dividedBoards: [] }); const userId = faker.datatype.uuid(); @@ -110,7 +110,7 @@ describe('UpdateBoardUseCase', () => { useValue: createMock() }, { - provide: Votes.TYPES.services.DeleteVoteService, + provide: DELETE_VOTE_SERVICE, useValue: createMock() }, { @@ -132,7 +132,7 @@ describe('UpdateBoardUseCase', () => { boardRepositoryMock = module.get(BOARD_REPOSITORY); updateBoardUserServiceMock = module.get(UPDATE_BOARD_USER_SERVICE); getBoardUserServiceMock = module.get(GET_BOARD_USER_SERVICE); - deleteVoteServiceMock = module.get(Votes.TYPES.services.DeleteVoteService); + deleteVoteServiceMock = module.get(DELETE_VOTE_SERVICE); slackCommunicationServiceMock = module.get( CommunicationsType.TYPES.services.SlackCommunicationService ); diff --git a/backend/src/modules/boards/applications/update-board.use-case.ts b/backend/src/modules/boards/applications/update-board.use-case.ts index 920b08f0d..136d9b7be 100644 --- a/backend/src/modules/boards/applications/update-board.use-case.ts +++ b/backend/src/modules/boards/applications/update-board.use-case.ts @@ -13,7 +13,6 @@ import { CommunicationServiceInterface } from 'src/modules/communication/interfa import * as CommunicationsType from 'src/modules/communication/interfaces/types'; import User from 'src/modules/users/entities/user.schema'; import { DeleteVoteServiceInterface } from 'src/modules/votes/interfaces/services/delete.vote.service.interface'; -import * as Votes from 'src/modules/votes/interfaces/types'; import { UpdateBoardDto } from '../dto/update-board.dto'; import Board from '../entities/board.schema'; import { ResponsibleType } from '../interfaces/responsible.interface'; @@ -23,6 +22,7 @@ import { GET_BOARD_USER_SERVICE, UPDATE_BOARD_USER_SERVICE } from 'src/modules/boardUsers/constants'; +import { DELETE_VOTE_SERVICE } from 'src/modules/votes/constants'; @Injectable() export class UpdateBoardUseCase implements UseCase { @@ -33,7 +33,7 @@ export class UpdateBoardUseCase implements UseCase { private readonly getBoardUserService: GetBoardUserServiceInterface, @Inject(UPDATE_BOARD_USER_SERVICE) private readonly updateBoardUserService: UpdateBoardUserServiceInterface, - @Inject(Votes.TYPES.services.DeleteVoteService) + @Inject(DELETE_VOTE_SERVICE) private readonly deleteVoteService: DeleteVoteServiceInterface, @Inject(CommunicationsType.TYPES.services.SlackCommunicationService) private readonly slackCommunicationService: CommunicationServiceInterface diff --git a/backend/src/modules/columns/services/update.column.service.spec.ts b/backend/src/modules/columns/services/update.column.service.spec.ts index 726285a9a..e10027517 100644 --- a/backend/src/modules/columns/services/update.column.service.spec.ts +++ b/backend/src/modules/columns/services/update.column.service.spec.ts @@ -6,15 +6,14 @@ import { BadRequestException, Logger, NotFoundException } from '@nestjs/common'; import { Test, TestingModule } from '@nestjs/testing'; import { BoardFactory } from 'src/libs/test-utils/mocks/factories/board-factory.mock'; import SocketGateway from 'src/modules/socket/gateway/socket.gateway'; -import { updateColumnService } from '../columns.providers'; import * as Columns from '../interfaces/types'; -import * as Votes from 'src/modules/votes/interfaces/types'; import { ColumnRepository } from '../repositories/column.repository'; import GetBoardService from 'src/modules/boards/services/get.board.service'; import UpdateColumnService from './update.column.service'; import DeleteVoteService from 'src/modules/votes/services/delete.vote.service'; import { DeleteVoteServiceInterface } from 'src/modules/votes/interfaces/services/delete.vote.service.interface'; import { GET_BOARD_SERVICE } from 'src/modules/boards/constants'; +import { DELETE_VOTE_SERVICE } from 'src/modules/votes/constants'; const fakeBoards = BoardFactory.createMany(2); @@ -29,7 +28,7 @@ describe('UpdateColumnService', () => { const module: TestingModule = await Test.createTestingModule({ imports: [EventEmitterModule.forRoot()], providers: [ - updateColumnService, + UpdateColumnService, { provide: Columns.TYPES.repositories.ColumnRepository, useValue: createMock() @@ -39,7 +38,7 @@ describe('UpdateColumnService', () => { useValue: createMock() }, { - provide: Votes.TYPES.services.DeleteVoteService, + provide: DELETE_VOTE_SERVICE, useValue: createMock() }, { @@ -49,8 +48,8 @@ describe('UpdateColumnService', () => { ] }).compile(); - columnService = module.get(Columns.TYPES.services.UpdateColumnService); - deleteVoteService = module.get(Votes.TYPES.services.DeleteVoteService); + columnService = module.get(UpdateColumnService); + deleteVoteService = module.get(DELETE_VOTE_SERVICE); repositoryColumn = module.get(Columns.TYPES.repositories.ColumnRepository); socketService = module.get(SocketGateway); getBoardServiceImpl = module.get(GET_BOARD_SERVICE); diff --git a/backend/src/modules/columns/services/update.column.service.ts b/backend/src/modules/columns/services/update.column.service.ts index f290cd46d..d410dc196 100644 --- a/backend/src/modules/columns/services/update.column.service.ts +++ b/backend/src/modules/columns/services/update.column.service.ts @@ -1,6 +1,5 @@ import { BadRequestException, Inject, Injectable, NotFoundException } from '@nestjs/common'; import { COLUMN_NOT_FOUND, UPDATE_FAILED } from 'src/libs/exceptions/messages'; -import * as Votes from 'src/modules/votes/interfaces/types'; import * as Columns from '../interfaces/types'; import { UpdateColumnServiceInterface } from '../interfaces/services/update.column.service.interface'; import { UpdateColumnDto } from '../dto/update-column.dto'; @@ -10,6 +9,7 @@ import { ColumnRepositoryInterface } from '../repositories/column.repository.int import { GetBoardServiceInterface } from 'src/modules/boards/interfaces/services/get.board.service.interface'; import { DeleteVoteServiceInterface } from 'src/modules/votes/interfaces/services/delete.vote.service.interface'; import { GET_BOARD_SERVICE } from 'src/modules/boards/constants'; +import { DELETE_VOTE_SERVICE } from 'src/modules/votes/constants'; @Injectable() export default class UpdateColumnService implements UpdateColumnServiceInterface { @@ -19,7 +19,7 @@ export default class UpdateColumnService implements UpdateColumnServiceInterface private readonly socketService: SocketGateway, @Inject(GET_BOARD_SERVICE) private readonly getBoardService: GetBoardServiceInterface, - @Inject(Votes.TYPES.services.DeleteVoteService) + @Inject(DELETE_VOTE_SERVICE) private readonly deleteVoteService: DeleteVoteServiceInterface ) {} diff --git a/backend/src/modules/votes/applications/card-group-vote.use-case.spec.ts b/backend/src/modules/votes/applications/card-group-vote.use-case.spec.ts index 7c4a5f7f0..f0202de4f 100644 --- a/backend/src/modules/votes/applications/card-group-vote.use-case.spec.ts +++ b/backend/src/modules/votes/applications/card-group-vote.use-case.spec.ts @@ -1,5 +1,5 @@ import { Test, TestingModule } from '@nestjs/testing'; -import { TYPES } from '../interfaces/types'; +import { CREATE_VOTE_SERVICE, DELETE_VOTE_SERVICE, VOTE_REPOSITORY } from '../constants'; import { DeepMocked, createMock } from '@golevelup/ts-jest'; import { CreateVoteServiceInterface } from '../interfaces/services/create.vote.service.interface'; import { VoteRepositoryInterface } from '../interfaces/repositories/vote.repository.interface'; @@ -43,15 +43,15 @@ describe('CardGroupVoteUseCase', () => { providers: [ CardGroupVoteUseCase, { - provide: TYPES.repositories.VoteRepository, + provide: VOTE_REPOSITORY, useValue: createMock() }, { - provide: TYPES.services.DeleteVoteService, + provide: DELETE_VOTE_SERVICE, useValue: createMock() }, { - provide: TYPES.services.CreateVoteService, + provide: CREATE_VOTE_SERVICE, useValue: createMock() }, { @@ -62,9 +62,9 @@ describe('CardGroupVoteUseCase', () => { }).compile(); useCase = module.get(CardGroupVoteUseCase); - voteRepositoryMock = module.get(TYPES.repositories.VoteRepository); - createVoteServiceMock = module.get(TYPES.services.CreateVoteService); - deleteVoteServiceMock = module.get(TYPES.services.DeleteVoteService); + voteRepositoryMock = module.get(VOTE_REPOSITORY); + createVoteServiceMock = module.get(CREATE_VOTE_SERVICE); + deleteVoteServiceMock = module.get(DELETE_VOTE_SERVICE); }); beforeEach(() => { diff --git a/backend/src/modules/votes/applications/card-group-vote.use-case.ts b/backend/src/modules/votes/applications/card-group-vote.use-case.ts index e9ef415b0..36751a6ce 100644 --- a/backend/src/modules/votes/applications/card-group-vote.use-case.ts +++ b/backend/src/modules/votes/applications/card-group-vote.use-case.ts @@ -1,5 +1,5 @@ import { Inject, Injectable, Logger } from '@nestjs/common'; -import { TYPES } from '../interfaces/types'; +import { CREATE_VOTE_SERVICE, DELETE_VOTE_SERVICE, VOTE_REPOSITORY } from '../constants'; import { UseCase } from 'src/libs/interfaces/use-case.interface'; import { CreateVoteServiceInterface } from '../interfaces/services/create.vote.service.interface'; import { UpdateBoardUserServiceInterface } from 'src/modules/boardUsers/interfaces/services/update.board.user.service.interface'; @@ -20,13 +20,13 @@ import { UPDATE_BOARD_USER_SERVICE } from 'src/modules/boardUsers/constants'; export class CardGroupVoteUseCase implements UseCase { private logger: Logger = new Logger('CreateVoteService'); constructor( - @Inject(TYPES.services.CreateVoteService) + @Inject(CREATE_VOTE_SERVICE) private readonly createVoteService: CreateVoteServiceInterface, - @Inject(TYPES.repositories.VoteRepository) + @Inject(VOTE_REPOSITORY) private readonly voteRepository: VoteRepositoryInterface, @Inject(UPDATE_BOARD_USER_SERVICE) private readonly updateBoardUserService: UpdateBoardUserServiceInterface, - @Inject(TYPES.services.DeleteVoteService) + @Inject(DELETE_VOTE_SERVICE) private readonly deleteVoteService: DeleteVoteServiceInterface ) {} diff --git a/backend/src/modules/votes/applications/card-item-vote.use-case.spec.ts b/backend/src/modules/votes/applications/card-item-vote.use-case.spec.ts index e74567891..6f760ce3b 100644 --- a/backend/src/modules/votes/applications/card-item-vote.use-case.spec.ts +++ b/backend/src/modules/votes/applications/card-item-vote.use-case.spec.ts @@ -1,5 +1,5 @@ import { Test, TestingModule } from '@nestjs/testing'; -import { TYPES } from '../interfaces/types'; +import { CREATE_VOTE_SERVICE, DELETE_VOTE_SERVICE, VOTE_REPOSITORY } from '../constants'; import { DeepMocked, createMock } from '@golevelup/ts-jest'; import { CreateVoteServiceInterface } from '../interfaces/services/create.vote.service.interface'; import { VoteRepositoryInterface } from '../interfaces/repositories/vote.repository.interface'; @@ -44,15 +44,15 @@ describe('CardItemVoteUseCase', () => { providers: [ CardItemVoteUseCase, { - provide: TYPES.repositories.VoteRepository, + provide: VOTE_REPOSITORY, useValue: createMock() }, { - provide: TYPES.services.DeleteVoteService, + provide: DELETE_VOTE_SERVICE, useValue: createMock() }, { - provide: TYPES.services.CreateVoteService, + provide: CREATE_VOTE_SERVICE, useValue: createMock() }, { @@ -63,9 +63,9 @@ describe('CardItemVoteUseCase', () => { }).compile(); useCase = module.get(CardItemVoteUseCase); - voteRepositoryMock = module.get(TYPES.repositories.VoteRepository); - createVoteServiceMock = module.get(TYPES.services.CreateVoteService); - deleteVoteServiceMock = module.get(TYPES.services.DeleteVoteService); + voteRepositoryMock = module.get(VOTE_REPOSITORY); + createVoteServiceMock = module.get(CREATE_VOTE_SERVICE); + deleteVoteServiceMock = module.get(DELETE_VOTE_SERVICE); }); beforeEach(() => { diff --git a/backend/src/modules/votes/applications/card-item-vote.use-case.ts b/backend/src/modules/votes/applications/card-item-vote.use-case.ts index 409a752b2..c6c831fa2 100644 --- a/backend/src/modules/votes/applications/card-item-vote.use-case.ts +++ b/backend/src/modules/votes/applications/card-item-vote.use-case.ts @@ -1,5 +1,5 @@ import { Inject, Injectable, Logger } from '@nestjs/common'; -import { TYPES } from '../interfaces/types'; +import { CREATE_VOTE_SERVICE, DELETE_VOTE_SERVICE, VOTE_REPOSITORY } from '../constants'; import { UseCase } from 'src/libs/interfaces/use-case.interface'; import { CreateVoteServiceInterface } from '../interfaces/services/create.vote.service.interface'; import { UpdateBoardUserServiceInterface } from 'src/modules/boardUsers/interfaces/services/update.board.user.service.interface'; @@ -17,11 +17,11 @@ import { UPDATE_BOARD_USER_SERVICE } from 'src/modules/boardUsers/constants'; export class CardItemVoteUseCase implements UseCase { private logger: Logger = new Logger('CreateVoteService'); constructor( - @Inject(TYPES.services.CreateVoteService) + @Inject(CREATE_VOTE_SERVICE) private readonly createVoteService: CreateVoteServiceInterface, - @Inject(TYPES.services.DeleteVoteService) + @Inject(DELETE_VOTE_SERVICE) private readonly deleteVoteService: DeleteVoteServiceInterface, - @Inject(TYPES.repositories.VoteRepository) + @Inject(VOTE_REPOSITORY) private readonly voteRepository: VoteRepositoryInterface, @Inject(UPDATE_BOARD_USER_SERVICE) private readonly updateBoardUserService: UpdateBoardUserServiceInterface diff --git a/backend/src/modules/votes/constants.ts b/backend/src/modules/votes/constants.ts new file mode 100644 index 000000000..db16e35fc --- /dev/null +++ b/backend/src/modules/votes/constants.ts @@ -0,0 +1,15 @@ +/* SERVICES */ + +export const CREATE_VOTE_SERVICE = 'CreateVoteService'; + +export const DELETE_VOTE_SERVICE = 'DeleteVoteService'; + +/* USE CASES */ + +export const CARD_ITEM_VOTE_USE_CASE = 'CardItemVoteUseCase'; + +export const CARD_GROUP_VOTE_USE_CASE = 'CardGroupVoteUseCase'; + +/* REPOSITORY */ + +export const VOTE_REPOSITORY = 'VoteRepository'; diff --git a/backend/src/modules/votes/controller/votes.controller.ts b/backend/src/modules/votes/controller/votes.controller.ts index 60fbcc58f..e14622058 100644 --- a/backend/src/modules/votes/controller/votes.controller.ts +++ b/backend/src/modules/votes/controller/votes.controller.ts @@ -21,7 +21,7 @@ import { UnauthorizedResponse } from 'src/libs/swagger/errors/unauthorized.swagg import BoardDto from 'src/modules/boards/dto/board.dto'; import SocketGateway from 'src/modules/socket/gateway/socket.gateway'; import VoteDto from '../dto/vote.dto'; -import { TYPES } from '../interfaces/types'; +import { CARD_GROUP_VOTE_USE_CASE, CARD_ITEM_VOTE_USE_CASE } from '../constants'; import { UseCase } from 'src/libs/interfaces/use-case.interface'; import CardItemVoteUseCaseDto from '../dto/useCase/card-item-vote.use-case.dto'; import CardGroupVoteUseCaseDto from '../dto/useCase/card-group-vote.use-case.dto'; @@ -32,9 +32,9 @@ import CardGroupVoteUseCaseDto from '../dto/useCase/card-group-vote.use-case.dto @Controller('boards') export default class VotesController { constructor( - @Inject(TYPES.applications.CardItemVoteUseCase) + @Inject(CARD_ITEM_VOTE_USE_CASE) private readonly cardItemVoteUseCase: UseCase, - @Inject(TYPES.applications.CardGroupVoteUseCase) + @Inject(CARD_GROUP_VOTE_USE_CASE) private readonly cardGroupVoteUseCase: UseCase, private readonly socketService: SocketGateway ) {} diff --git a/backend/src/modules/votes/interfaces/types.ts b/backend/src/modules/votes/interfaces/types.ts deleted file mode 100644 index fef6b1a71..000000000 --- a/backend/src/modules/votes/interfaces/types.ts +++ /dev/null @@ -1,13 +0,0 @@ -export const TYPES = { - services: { - CreateVoteService: 'CreateVoteService', - DeleteVoteService: 'DeleteVoteService' - }, - repositories: { - VoteRepository: 'VoteRepository' - }, - applications: { - CardItemVoteUseCase: 'CardItemVoteUseCase', - CardGroupVoteUseCase: 'CardGroupVoteUseCase' - } -}; diff --git a/backend/src/modules/votes/services/create.vote.service.spec.ts b/backend/src/modules/votes/services/create.vote.service.spec.ts index f068636da..c3d21eab8 100644 --- a/backend/src/modules/votes/services/create.vote.service.spec.ts +++ b/backend/src/modules/votes/services/create.vote.service.spec.ts @@ -1,5 +1,5 @@ import { Test, TestingModule } from '@nestjs/testing'; -import { TYPES } from '../interfaces/types'; +import { VOTE_REPOSITORY } from '../constants'; import { DeepMocked, createMock } from '@golevelup/ts-jest'; import CreateVoteService from './create.vote.service'; import { CreateVoteServiceInterface } from '../interfaces/services/create.vote.service.interface'; @@ -38,7 +38,7 @@ describe('CreateVoteService', () => { providers: [ CreateVoteService, { - provide: TYPES.repositories.VoteRepository, + provide: VOTE_REPOSITORY, useValue: createMock() }, { @@ -55,8 +55,8 @@ describe('CreateVoteService', () => { } ] }).compile(); - voteService = module.get(CreateVoteService); - voteRepositoryMock = module.get(TYPES.repositories.VoteRepository); + voteService = module.get(CreateVoteService); + voteRepositoryMock = module.get(VOTE_REPOSITORY); getBoardUserServiceMock = module.get(GET_BOARD_USER_SERVICE); getBoardServiceMock = module.get(GET_BOARD_SERVICE); updateBoardUserServiceMock = module.get(UPDATE_BOARD_USER_SERVICE); diff --git a/backend/src/modules/votes/services/delete.vote.service.spec.ts b/backend/src/modules/votes/services/delete.vote.service.spec.ts index 883fd5c6a..2fb0722e1 100644 --- a/backend/src/modules/votes/services/delete.vote.service.spec.ts +++ b/backend/src/modules/votes/services/delete.vote.service.spec.ts @@ -1,5 +1,5 @@ import { Test, TestingModule } from '@nestjs/testing'; -import { TYPES } from '../interfaces/types'; +import { VOTE_REPOSITORY } from '../constants'; import { DeepMocked, createMock } from '@golevelup/ts-jest'; import { VoteRepositoryInterface } from '../interfaces/repositories/vote.repository.interface'; import { GetBoardUserServiceInterface } from 'src/modules/boardUsers/interfaces/services/get.board.user.service.interface'; @@ -47,7 +47,7 @@ describe('DeleteVoteService', () => { providers: [ DeleteVoteService, { - provide: TYPES.repositories.VoteRepository, + provide: VOTE_REPOSITORY, useValue: createMock() }, { @@ -69,7 +69,7 @@ describe('DeleteVoteService', () => { ] }).compile(); voteService = module.get(DeleteVoteService); - voteRepositoryMock = module.get(TYPES.repositories.VoteRepository); + voteRepositoryMock = module.get(VOTE_REPOSITORY); getBoardServiceMock = module.get(GET_BOARD_SERVICE); getBoardUserServiceMock = module.get(GET_BOARD_USER_SERVICE); getCardServiceMock = module.get(GET_CARD_SERVICE); diff --git a/backend/src/modules/votes/services/delete.vote.service.ts b/backend/src/modules/votes/services/delete.vote.service.ts index 65bc1c4be..6370426e2 100644 --- a/backend/src/modules/votes/services/delete.vote.service.ts +++ b/backend/src/modules/votes/services/delete.vote.service.ts @@ -3,7 +3,7 @@ import { DELETE_VOTE_FAILED, UPDATE_FAILED } from 'src/libs/exceptions/messages' import isEmpty from 'src/libs/utils/isEmpty'; import { GetCardServiceInterface } from 'src/modules/cards/interfaces/services/get.card.service.interface'; import { DeleteVoteServiceInterface } from '../interfaces/services/delete.vote.service.interface'; -import { TYPES } from '../interfaces/types'; +import { VOTE_REPOSITORY } from '../constants'; import { VoteRepositoryInterface } from '../interfaces/repositories/vote.repository.interface'; import { UpdateBoardUserServiceInterface } from 'src/modules/boardUsers/interfaces/services/update.board.user.service.interface'; import { GetBoardUserServiceInterface } from 'src/modules/boardUsers/interfaces/services/get.board.user.service.interface'; @@ -26,7 +26,7 @@ import { GET_CARD_SERVICE } from 'src/modules/cards/constants'; @Injectable() export default class DeleteVoteService implements DeleteVoteServiceInterface { constructor( - @Inject(TYPES.repositories.VoteRepository) + @Inject(VOTE_REPOSITORY) private readonly voteRepository: VoteRepositoryInterface, @Inject(GET_BOARD_USER_SERVICE) private readonly getBoardUserService: GetBoardUserServiceInterface, diff --git a/backend/src/modules/votes/votes.providers.ts b/backend/src/modules/votes/votes.providers.ts index e01d7e98f..dc35428b1 100644 --- a/backend/src/modules/votes/votes.providers.ts +++ b/backend/src/modules/votes/votes.providers.ts @@ -1,31 +1,43 @@ import { VoteRepository } from './repositories/vote.repository'; -import { TYPES } from './interfaces/types'; +import { + CARD_GROUP_VOTE_USE_CASE, + CARD_ITEM_VOTE_USE_CASE, + CREATE_VOTE_SERVICE, + DELETE_VOTE_SERVICE, + VOTE_REPOSITORY +} from './constants'; import CreateVoteService from './services/create.vote.service'; import DeleteVoteService from './services/delete.vote.service'; import { CardItemVoteUseCase } from './applications/card-item-vote.use-case'; import { CardGroupVoteUseCase } from './applications/card-group-vote.use-case'; +/* SERVICES */ + export const createVoteService = { - provide: TYPES.services.CreateVoteService, + provide: CREATE_VOTE_SERVICE, useClass: CreateVoteService }; export const deleteVoteService = { - provide: TYPES.services.DeleteVoteService, + provide: DELETE_VOTE_SERVICE, useClass: DeleteVoteService }; +/* USE CASES */ + export const cardItemVoteUseCase = { - provide: TYPES.applications.CardItemVoteUseCase, + provide: CARD_ITEM_VOTE_USE_CASE, useClass: CardItemVoteUseCase }; export const cardGroupVoteUseCase = { - provide: TYPES.applications.CardGroupVoteUseCase, + provide: CARD_GROUP_VOTE_USE_CASE, useClass: CardGroupVoteUseCase }; +/* REPOSITORY */ + export const voteRepository = { - provide: TYPES.repositories.VoteRepository, + provide: VOTE_REPOSITORY, useClass: VoteRepository };