website refactor
This commit is contained in:
@@ -5,23 +5,23 @@ import * as LeagueTokens from './LeagueTokens';
|
||||
|
||||
// Import core interfaces
|
||||
import type { MediaResolverPort } from '@core/ports/media/MediaResolverPort';
|
||||
import type { IDriverRepository } from '@core/racing/domain/repositories/DriverRepository';
|
||||
import type { ILeagueMembershipRepository } from '@core/racing/domain/repositories/LeagueMembershipRepository';
|
||||
import type { ILeagueRepository } from '@core/racing/domain/repositories/LeagueRepository';
|
||||
import type { IProtestRepository } from '@core/racing/domain/repositories/ProtestRepository';
|
||||
import type { IRaceRepository } from '@core/racing/domain/repositories/RaceRepository';
|
||||
import type { ISeasonRepository } from '@core/racing/domain/repositories/SeasonRepository';
|
||||
import type { ISeasonSponsorshipRepository } from '@core/racing/domain/repositories/SeasonSponsorshipRepository';
|
||||
import type { IStandingRepository } from '@core/racing/domain/repositories/StandingRepository';
|
||||
import type { Logger } from '@core/shared/application/Logger';
|
||||
import type { DriverRepository } from '@core/racing/domain/repositories/DriverRepository';
|
||||
import type { LeagueMembershipRepository } from '@core/racing/domain/repositories/LeagueMembershipRepository';
|
||||
import type { LeagueRepository } from '@core/racing/domain/repositories/LeagueRepository';
|
||||
import type { ProtestRepository } from '@core/racing/domain/repositories/ProtestRepository';
|
||||
import type { RaceRepository } from '@core/racing/domain/repositories/RaceRepository';
|
||||
import type { SeasonRepository } from '@core/racing/domain/repositories/SeasonRepository';
|
||||
import type { SeasonSponsorshipRepository } from '@core/racing/domain/repositories/SeasonSponsorshipRepository';
|
||||
import type { StandingRepository } from '@core/racing/domain/repositories/StandingRepository';
|
||||
import type { Logger } from '@core/shared/application/UseCaseOutputPort/UseCaseOutputPort/UseCaseOutputPort_TEMP_TEMP';
|
||||
|
||||
// Import concrete in-memory implementations
|
||||
import { getLeagueScoringPresetById, listLeagueScoringPresets } from '@adapters/bootstrap/LeagueScoringPresets';
|
||||
import { ConsoleLogger } from '@adapters/logging/ConsoleLogger';
|
||||
import { MediaResolverAdapter } from '@adapters/media/MediaResolverAdapter';
|
||||
import { InMemoryLeagueStandingsRepository } from '@adapters/racing/persistence/inmemory/InMemoryLeagueStandingsRepository';
|
||||
import type { ILeagueWalletRepository } from "@core/racing/domain/repositories/LeagueWalletRepository";
|
||||
import type { ITransactionRepository } from "@core/racing/domain/repositories/TransactionRepository";
|
||||
import type { LeagueWalletRepository } from "@core/racing/domain/repositories/LeagueWalletRepository";
|
||||
import type { TransactionRepository } from "@core/racing/domain/repositories/TransactionRepository";
|
||||
|
||||
// Import use cases
|
||||
import { ApproveLeagueJoinRequestUseCase } from '@core/racing/application/use-cases/ApproveLeagueJoinRequestUseCase';
|
||||
@@ -205,18 +205,18 @@ export const LeagueProviders: Provider[] = [
|
||||
// Use cases
|
||||
{
|
||||
provide: GET_ALL_LEAGUES_WITH_CAPACITY_USE_CASE,
|
||||
useFactory: (leagueRepo: ILeagueRepository, membershipRepo: ILeagueMembershipRepository) =>
|
||||
useFactory: (leagueRepo: LeagueRepository, membershipRepo: LeagueMembershipRepository) =>
|
||||
new GetAllLeaguesWithCapacityUseCase(leagueRepo, membershipRepo),
|
||||
inject: [LEAGUE_REPOSITORY_TOKEN, LEAGUE_MEMBERSHIP_REPOSITORY_TOKEN],
|
||||
},
|
||||
{
|
||||
provide: GET_ALL_LEAGUES_WITH_CAPACITY_AND_SCORING_USE_CASE,
|
||||
useFactory: (
|
||||
leagueRepo: ILeagueRepository,
|
||||
membershipRepo: ILeagueMembershipRepository,
|
||||
seasonRepo: ISeasonRepository,
|
||||
scoringRepo: import('@core/racing/domain/repositories/LeagueScoringConfigRepository').ILeagueScoringConfigRepository,
|
||||
gameRepo: import('@core/racing/domain/repositories/GameRepository').IGameRepository,
|
||||
leagueRepo: LeagueRepository,
|
||||
membershipRepo: LeagueMembershipRepository,
|
||||
seasonRepo: SeasonRepository,
|
||||
scoringRepo: import('@core/racing/domain/repositories/LeagueScoringConfigRepository').LeagueScoringConfigRepository,
|
||||
gameRepo: import('@core/racing/domain/repositories/GameRepository').GameRepository,
|
||||
) =>
|
||||
new GetAllLeaguesWithCapacityAndScoringUseCase(
|
||||
leagueRepo,
|
||||
@@ -237,8 +237,8 @@ export const LeagueProviders: Provider[] = [
|
||||
{
|
||||
provide: GET_LEAGUE_STANDINGS_USE_CASE,
|
||||
useFactory: (
|
||||
standingRepo: IStandingRepository,
|
||||
driverRepo: IDriverRepository,
|
||||
standingRepo: StandingRepository,
|
||||
driverRepo: DriverRepository,
|
||||
) => new GetLeagueStandingsUseCase(standingRepo, driverRepo),
|
||||
inject: [
|
||||
STANDING_REPOSITORY_TOKEN,
|
||||
@@ -263,54 +263,54 @@ export const LeagueProviders: Provider[] = [
|
||||
},
|
||||
{
|
||||
provide: GET_TOTAL_LEAGUES_USE_CASE,
|
||||
useFactory: (leagueRepo: ILeagueRepository) =>
|
||||
useFactory: (leagueRepo: LeagueRepository) =>
|
||||
new GetTotalLeaguesUseCase(leagueRepo),
|
||||
inject: [LEAGUE_REPOSITORY_TOKEN],
|
||||
},
|
||||
{
|
||||
provide: GET_LEAGUE_JOIN_REQUESTS_USE_CASE,
|
||||
useFactory: (
|
||||
membershipRepo: ILeagueMembershipRepository,
|
||||
driverRepo: IDriverRepository,
|
||||
leagueRepo: ILeagueRepository,
|
||||
membershipRepo: LeagueMembershipRepository,
|
||||
driverRepo: DriverRepository,
|
||||
leagueRepo: LeagueRepository,
|
||||
) => new GetLeagueJoinRequestsUseCase(membershipRepo, driverRepo, leagueRepo),
|
||||
inject: [LEAGUE_MEMBERSHIP_REPOSITORY_TOKEN, DRIVER_REPOSITORY_TOKEN, LEAGUE_REPOSITORY_TOKEN],
|
||||
},
|
||||
{
|
||||
provide: APPROVE_LEAGUE_JOIN_REQUEST_USE_CASE,
|
||||
useFactory: (
|
||||
membershipRepo: ILeagueMembershipRepository,
|
||||
leagueRepo: ILeagueRepository,
|
||||
membershipRepo: LeagueMembershipRepository,
|
||||
leagueRepo: LeagueRepository,
|
||||
) => new ApproveLeagueJoinRequestUseCase(membershipRepo, leagueRepo),
|
||||
inject: [LEAGUE_MEMBERSHIP_REPOSITORY_TOKEN, LEAGUE_REPOSITORY_TOKEN],
|
||||
},
|
||||
{
|
||||
provide: REJECT_LEAGUE_JOIN_REQUEST_USE_CASE,
|
||||
useFactory: (membershipRepo: ILeagueMembershipRepository) =>
|
||||
useFactory: (membershipRepo: LeagueMembershipRepository) =>
|
||||
new RejectLeagueJoinRequestUseCase(membershipRepo),
|
||||
inject: [LEAGUE_MEMBERSHIP_REPOSITORY_TOKEN],
|
||||
},
|
||||
{
|
||||
provide: REMOVE_LEAGUE_MEMBER_USE_CASE,
|
||||
useFactory: (
|
||||
membershipRepo: ILeagueMembershipRepository,
|
||||
membershipRepo: LeagueMembershipRepository,
|
||||
) => new RemoveLeagueMemberUseCase(membershipRepo),
|
||||
inject: [LEAGUE_MEMBERSHIP_REPOSITORY_TOKEN],
|
||||
},
|
||||
{
|
||||
provide: UPDATE_LEAGUE_MEMBER_ROLE_USE_CASE,
|
||||
useFactory: (
|
||||
membershipRepo: ILeagueMembershipRepository,
|
||||
membershipRepo: LeagueMembershipRepository,
|
||||
) => new UpdateLeagueMemberRoleUseCase(membershipRepo),
|
||||
inject: [LEAGUE_MEMBERSHIP_REPOSITORY_TOKEN],
|
||||
},
|
||||
{
|
||||
provide: GET_LEAGUE_OWNER_SUMMARY_USE_CASE,
|
||||
useFactory: (
|
||||
leagueRepo: ILeagueRepository,
|
||||
driverRepo: IDriverRepository,
|
||||
leagueMembershipRepo: ILeagueMembershipRepository,
|
||||
standingRepo: IStandingRepository,
|
||||
leagueRepo: LeagueRepository,
|
||||
driverRepo: DriverRepository,
|
||||
leagueMembershipRepo: LeagueMembershipRepository,
|
||||
standingRepo: StandingRepository,
|
||||
) => new GetLeagueOwnerSummaryUseCase(leagueRepo, driverRepo, leagueMembershipRepo, standingRepo),
|
||||
inject: [
|
||||
LEAGUE_REPOSITORY_TOKEN,
|
||||
@@ -322,10 +322,10 @@ export const LeagueProviders: Provider[] = [
|
||||
{
|
||||
provide: GET_LEAGUE_PROTESTS_USE_CASE,
|
||||
useFactory: (
|
||||
raceRepo: IRaceRepository,
|
||||
protestRepo: IProtestRepository,
|
||||
driverRepo: IDriverRepository,
|
||||
leagueRepo: ILeagueRepository,
|
||||
raceRepo: RaceRepository,
|
||||
protestRepo: ProtestRepository,
|
||||
driverRepo: DriverRepository,
|
||||
leagueRepo: LeagueRepository,
|
||||
) => new GetLeagueProtestsUseCase(raceRepo, protestRepo, driverRepo, leagueRepo),
|
||||
inject: [
|
||||
RACE_REPOSITORY_TOKEN,
|
||||
@@ -341,18 +341,18 @@ export const LeagueProviders: Provider[] = [
|
||||
{
|
||||
provide: GET_LEAGUE_MEMBERSHIPS_USE_CASE,
|
||||
useFactory: (
|
||||
membershipRepo: ILeagueMembershipRepository,
|
||||
driverRepo: IDriverRepository,
|
||||
leagueRepo: ILeagueRepository,
|
||||
membershipRepo: LeagueMembershipRepository,
|
||||
driverRepo: DriverRepository,
|
||||
leagueRepo: LeagueRepository,
|
||||
) => new GetLeagueMembershipsUseCase(membershipRepo, driverRepo, leagueRepo),
|
||||
inject: [LEAGUE_MEMBERSHIP_REPOSITORY_TOKEN, DRIVER_REPOSITORY_TOKEN, LEAGUE_REPOSITORY_TOKEN],
|
||||
},
|
||||
{
|
||||
provide: GET_LEAGUE_ROSTER_MEMBERS_USE_CASE,
|
||||
useFactory: (
|
||||
membershipRepo: ILeagueMembershipRepository,
|
||||
driverRepo: IDriverRepository,
|
||||
leagueRepo: ILeagueRepository,
|
||||
membershipRepo: LeagueMembershipRepository,
|
||||
driverRepo: DriverRepository,
|
||||
leagueRepo: LeagueRepository,
|
||||
) => new GetLeagueRosterMembersUseCase(membershipRepo, driverRepo, leagueRepo),
|
||||
inject: [
|
||||
LEAGUE_MEMBERSHIP_REPOSITORY_TOKEN,
|
||||
@@ -363,9 +363,9 @@ export const LeagueProviders: Provider[] = [
|
||||
{
|
||||
provide: GET_LEAGUE_ROSTER_JOIN_REQUESTS_USE_CASE,
|
||||
useFactory: (
|
||||
membershipRepo: ILeagueMembershipRepository,
|
||||
driverRepo: IDriverRepository,
|
||||
leagueRepo: ILeagueRepository,
|
||||
membershipRepo: LeagueMembershipRepository,
|
||||
driverRepo: DriverRepository,
|
||||
leagueRepo: LeagueRepository,
|
||||
) => new GetLeagueRosterJoinRequestsUseCase(membershipRepo, driverRepo, leagueRepo),
|
||||
inject: [
|
||||
LEAGUE_MEMBERSHIP_REPOSITORY_TOKEN,
|
||||
@@ -376,9 +376,9 @@ export const LeagueProviders: Provider[] = [
|
||||
{
|
||||
provide: GET_LEAGUE_SCHEDULE_USE_CASE,
|
||||
useFactory: (
|
||||
leagueRepo: ILeagueRepository,
|
||||
seasonRepo: ISeasonRepository,
|
||||
raceRepo: IRaceRepository,
|
||||
leagueRepo: LeagueRepository,
|
||||
seasonRepo: SeasonRepository,
|
||||
raceRepo: RaceRepository,
|
||||
logger: Logger,
|
||||
) => new GetLeagueScheduleUseCase(leagueRepo, seasonRepo, raceRepo, logger),
|
||||
inject: [
|
||||
@@ -391,8 +391,8 @@ export const LeagueProviders: Provider[] = [
|
||||
{
|
||||
provide: GET_LEAGUE_ADMIN_PERMISSIONS_USE_CASE,
|
||||
useFactory: (
|
||||
leagueRepo: ILeagueRepository,
|
||||
leagueMembershipRepo: ILeagueMembershipRepository,
|
||||
leagueRepo: LeagueRepository,
|
||||
leagueMembershipRepo: LeagueMembershipRepository,
|
||||
logger: Logger,
|
||||
) => new GetLeagueAdminPermissionsUseCase(leagueRepo, leagueMembershipRepo, logger),
|
||||
inject: [
|
||||
@@ -404,9 +404,9 @@ export const LeagueProviders: Provider[] = [
|
||||
{
|
||||
provide: GET_LEAGUE_WALLET_USE_CASE,
|
||||
useFactory: (
|
||||
leagueRepo: ILeagueRepository,
|
||||
walletRepo: ILeagueWalletRepository,
|
||||
transactionRepo: ITransactionRepository,
|
||||
leagueRepo: LeagueRepository,
|
||||
walletRepo: LeagueWalletRepository,
|
||||
transactionRepo: TransactionRepository,
|
||||
) => new GetLeagueWalletUseCase(leagueRepo, walletRepo, transactionRepo),
|
||||
inject: [
|
||||
LEAGUE_REPOSITORY_TOKEN,
|
||||
@@ -417,9 +417,9 @@ export const LeagueProviders: Provider[] = [
|
||||
{
|
||||
provide: WITHDRAW_FROM_LEAGUE_WALLET_USE_CASE,
|
||||
useFactory: (
|
||||
leagueRepo: ILeagueRepository,
|
||||
walletRepo: ILeagueWalletRepository,
|
||||
transactionRepo: ITransactionRepository,
|
||||
leagueRepo: LeagueRepository,
|
||||
walletRepo: LeagueWalletRepository,
|
||||
transactionRepo: TransactionRepository,
|
||||
logger: Logger,
|
||||
) => new WithdrawFromLeagueWalletUseCase(leagueRepo, walletRepo, transactionRepo, logger),
|
||||
inject: [
|
||||
@@ -432,11 +432,11 @@ export const LeagueProviders: Provider[] = [
|
||||
{
|
||||
provide: GET_SEASON_SPONSORSHIPS_USE_CASE,
|
||||
useFactory: (
|
||||
seasonSponsorshipRepo: ISeasonSponsorshipRepository,
|
||||
seasonRepo: ISeasonRepository,
|
||||
leagueRepo: ILeagueRepository,
|
||||
leagueMembershipRepo: ILeagueMembershipRepository,
|
||||
raceRepo: IRaceRepository,
|
||||
seasonSponsorshipRepo: SeasonSponsorshipRepository,
|
||||
seasonRepo: SeasonRepository,
|
||||
leagueRepo: LeagueRepository,
|
||||
leagueMembershipRepo: LeagueMembershipRepository,
|
||||
raceRepo: RaceRepository,
|
||||
) =>
|
||||
new GetSeasonSponsorshipsUseCase(
|
||||
seasonSponsorshipRepo,
|
||||
@@ -462,7 +462,7 @@ export const LeagueProviders: Provider[] = [
|
||||
{
|
||||
provide: JOIN_LEAGUE_USE_CASE,
|
||||
useFactory: (
|
||||
membershipRepo: ILeagueMembershipRepository,
|
||||
membershipRepo: LeagueMembershipRepository,
|
||||
logger: Logger,
|
||||
) => new JoinLeagueUseCase(membershipRepo, logger),
|
||||
inject: [LEAGUE_MEMBERSHIP_REPOSITORY_TOKEN, LOGGER_TOKEN],
|
||||
@@ -480,8 +480,8 @@ export const LeagueProviders: Provider[] = [
|
||||
{
|
||||
provide: LeagueTokens.CREATE_LEAGUE_SEASON_SCHEDULE_RACE_USE_CASE,
|
||||
useFactory: (
|
||||
seasonRepo: ISeasonRepository,
|
||||
raceRepo: IRaceRepository,
|
||||
seasonRepo: SeasonRepository,
|
||||
raceRepo: RaceRepository,
|
||||
logger: Logger,
|
||||
) =>
|
||||
new CreateLeagueSeasonScheduleRaceUseCase(seasonRepo, raceRepo, logger, {
|
||||
@@ -496,8 +496,8 @@ export const LeagueProviders: Provider[] = [
|
||||
{
|
||||
provide: LeagueTokens.UPDATE_LEAGUE_SEASON_SCHEDULE_RACE_USE_CASE,
|
||||
useFactory: (
|
||||
seasonRepo: ISeasonRepository,
|
||||
raceRepo: IRaceRepository,
|
||||
seasonRepo: SeasonRepository,
|
||||
raceRepo: RaceRepository,
|
||||
logger: Logger,
|
||||
) => new UpdateLeagueSeasonScheduleRaceUseCase(seasonRepo, raceRepo, logger),
|
||||
inject: [
|
||||
@@ -509,8 +509,8 @@ export const LeagueProviders: Provider[] = [
|
||||
{
|
||||
provide: LeagueTokens.DELETE_LEAGUE_SEASON_SCHEDULE_RACE_USE_CASE,
|
||||
useFactory: (
|
||||
seasonRepo: ISeasonRepository,
|
||||
raceRepo: IRaceRepository,
|
||||
seasonRepo: SeasonRepository,
|
||||
raceRepo: RaceRepository,
|
||||
logger: Logger,
|
||||
) => new DeleteLeagueSeasonScheduleRaceUseCase(seasonRepo, raceRepo, logger),
|
||||
inject: [
|
||||
@@ -522,7 +522,7 @@ export const LeagueProviders: Provider[] = [
|
||||
{
|
||||
provide: LeagueTokens.PUBLISH_LEAGUE_SEASON_SCHEDULE_USE_CASE,
|
||||
useFactory: (
|
||||
seasonRepo: ISeasonRepository,
|
||||
seasonRepo: SeasonRepository,
|
||||
logger: Logger,
|
||||
) => new PublishLeagueSeasonScheduleUseCase(seasonRepo, logger),
|
||||
inject: [
|
||||
@@ -533,7 +533,7 @@ export const LeagueProviders: Provider[] = [
|
||||
{
|
||||
provide: LeagueTokens.UNPUBLISH_LEAGUE_SEASON_SCHEDULE_USE_CASE,
|
||||
useFactory: (
|
||||
seasonRepo: ISeasonRepository,
|
||||
seasonRepo: SeasonRepository,
|
||||
logger: Logger,
|
||||
) => new UnpublishLeagueSeasonScheduleUseCase(seasonRepo, logger),
|
||||
inject: [
|
||||
|
||||
@@ -58,7 +58,7 @@ import type { LeagueScoringConfigViewModel } from './presenters/LeagueScoringCon
|
||||
import type { LeagueScoringPresetsViewModel } from './presenters/LeagueScoringPresetsPresenter';
|
||||
|
||||
// Core imports
|
||||
import type { Logger } from '@core/shared/domain/Logger';
|
||||
import type { Logger } from '@core/shared/application/UseCaseOutputPort/UseCaseOutputPort/UseCaseOutputPort_TEMP_TEMP';
|
||||
|
||||
// Use cases
|
||||
import { ApproveLeagueJoinRequestUseCase } from '@core/racing/application/use-cases/ApproveLeagueJoinRequestUseCase';
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { MediaReference } from '@core/domain/media/MediaReference';
|
||||
import type { MediaResolverPort } from '@core/ports/media/MediaResolverPort';
|
||||
import type { GetAllLeaguesWithCapacityAndScoringResult } from '@core/racing/application/use-cases/GetAllLeaguesWithCapacityAndScoringUseCase';
|
||||
import type { UseCaseOutputPort } from '@core/shared/application/UseCaseOutputPort';
|
||||
import type { UseCaseOutputPort } from '@core/shared/application/UseCaseOutputPort/UseCaseOutputPort/UseCaseOutputPort_TEMP_TEMP';
|
||||
import type {
|
||||
AllLeaguesWithCapacityAndScoringDTO,
|
||||
LeagueWithCapacityAndScoringDTO,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { GetAllLeaguesWithCapacityResult } from '@core/racing/application/use-cases/GetAllLeaguesWithCapacityUseCase';
|
||||
import type { UseCaseOutputPort } from '@core/shared/application/UseCaseOutputPort';
|
||||
import type { UseCaseOutputPort } from '@core/shared/application/UseCaseOutputPort/UseCaseOutputPort/UseCaseOutputPort_TEMP_TEMP';
|
||||
import { AllLeaguesWithCapacityDTO, LeagueWithCapacityDTO } from '../dtos/AllLeaguesWithCapacityDTO';
|
||||
|
||||
export class AllLeaguesWithCapacityPresenter implements UseCaseOutputPort<GetAllLeaguesWithCapacityResult> {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
|
||||
import { ApproveLeagueJoinRequestResult } from '@core/racing/application/use-cases/ApproveLeagueJoinRequestUseCase';
|
||||
import type { UseCaseOutputPort } from '@core/shared/application';
|
||||
import type { UseCaseOutputPort } from '@core/shared/application/UseCaseOutputPort/UseCaseOutputPort/UseCaseOutputPort_TEMP_TEMP';
|
||||
import type { ApproveLeagueJoinRequestDTO } from '../dtos/ApproveLeagueJoinRequestDTO';
|
||||
|
||||
export class ApproveLeagueJoinRequestPresenter implements UseCaseOutputPort<ApproveLeagueJoinRequestResult> {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { GetLeagueAdminPermissionsResult } from '@core/racing/application/use-cases/GetLeagueAdminPermissionsUseCase';
|
||||
import type { UseCaseOutputPort } from '@core/shared/application';
|
||||
import type { UseCaseOutputPort } from '@core/shared/application/UseCaseOutputPort/UseCaseOutputPort/UseCaseOutputPort_TEMP_TEMP';
|
||||
import { LeagueAdminPermissionsDTO } from '../dtos/LeagueAdminPermissionsDTO';
|
||||
|
||||
export class GetLeagueAdminPermissionsPresenter implements UseCaseOutputPort<GetLeagueAdminPermissionsResult> {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { GetLeagueMembershipsResult } from '@core/racing/application/use-cases/GetLeagueMembershipsUseCase';
|
||||
import type { UseCaseOutputPort } from '@core/shared/application';
|
||||
import type { UseCaseOutputPort } from '@core/shared/application/UseCaseOutputPort/UseCaseOutputPort/UseCaseOutputPort_TEMP_TEMP';
|
||||
import type { LeagueMemberDTO } from '../dtos/LeagueMemberDTO';
|
||||
import { LeagueMembershipsDTO } from '../dtos/LeagueMembershipsDTO';
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { GetLeagueOwnerSummaryResult } from '@core/racing/application/use-cases/GetLeagueOwnerSummaryUseCase';
|
||||
import type { UseCaseOutputPort } from '@core/shared/application';
|
||||
import type { UseCaseOutputPort } from '@core/shared/application/UseCaseOutputPort/UseCaseOutputPort/UseCaseOutputPort_TEMP_TEMP';
|
||||
import { LeagueOwnerSummaryDTO } from '../dtos/LeagueOwnerSummaryDTO';
|
||||
|
||||
export class GetLeagueOwnerSummaryPresenter implements UseCaseOutputPort<GetLeagueOwnerSummaryResult> {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { GetLeagueWalletResult } from '@core/racing/application/use-cases/GetLeagueWalletUseCase';
|
||||
import type { UseCaseOutputPort } from '@core/shared/application';
|
||||
import type { UseCaseOutputPort } from '@core/shared/application/UseCaseOutputPort/UseCaseOutputPort/UseCaseOutputPort_TEMP_TEMP';
|
||||
import { GetLeagueWalletOutputDTO, WalletTransactionDTO } from '../dtos/GetLeagueWalletOutputDTO';
|
||||
|
||||
export class GetLeagueWalletPresenter implements UseCaseOutputPort<GetLeagueWalletResult> {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { GetSeasonSponsorshipsResult } from '@core/racing/application/use-cases/GetSeasonSponsorshipsUseCase';
|
||||
import type { UseCaseOutputPort } from '@core/shared/application/UseCaseOutputPort';
|
||||
import type { UseCaseOutputPort } from '@core/shared/application/UseCaseOutputPort/UseCaseOutputPort/UseCaseOutputPort_TEMP_TEMP';
|
||||
import { SponsorshipDetailDTO } from '../../sponsor/dtos/SponsorshipDetailDTO';
|
||||
import { GetSeasonSponsorshipsOutputDTO } from '../dtos/GetSeasonSponsorshipsOutputDTO';
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { JoinLeagueResult } from '@core/racing/application/use-cases/JoinLeagueUseCase';
|
||||
import type { UseCaseOutputPort } from '@core/shared/application/UseCaseOutputPort';
|
||||
import type { UseCaseOutputPort } from '@core/shared/application/UseCaseOutputPort/UseCaseOutputPort/UseCaseOutputPort_TEMP_TEMP';
|
||||
import type { JoinLeagueOutputDTO } from '../dtos/JoinLeagueOutputDTO';
|
||||
|
||||
export class JoinLeaguePresenter implements UseCaseOutputPort<JoinLeagueResult> {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { GetLeagueFullConfigResult } from '@core/racing/application/use-cases/GetLeagueFullConfigUseCase';
|
||||
import type { UseCaseOutputPort } from '@core/shared/application/UseCaseOutputPort';
|
||||
import type { UseCaseOutputPort } from '@core/shared/application/UseCaseOutputPort/UseCaseOutputPort/UseCaseOutputPort_TEMP_TEMP';
|
||||
import { LeagueConfigFormModelDTO } from '../dtos/LeagueConfigFormModelDTO';
|
||||
|
||||
export class LeagueConfigPresenter implements UseCaseOutputPort<GetLeagueFullConfigResult> {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { GetLeagueJoinRequestsResult } from '@core/racing/application/use-cases/GetLeagueJoinRequestsUseCase';
|
||||
import type { UseCaseOutputPort } from '@core/shared/application';
|
||||
import type { UseCaseOutputPort } from '@core/shared/application/UseCaseOutputPort/UseCaseOutputPort/UseCaseOutputPort_TEMP_TEMP';
|
||||
import { LeagueJoinRequestWithDriverDTO } from '../dtos/LeagueJoinRequestWithDriverDTO';
|
||||
|
||||
export interface LeagueJoinRequestsViewModel {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { GetLeagueOwnerSummaryResult } from '@core/racing/application/use-cases/GetLeagueOwnerSummaryUseCase';
|
||||
import type { UseCaseOutputPort } from '@core/shared/application';
|
||||
import type { UseCaseOutputPort } from '@core/shared/application/UseCaseOutputPort/UseCaseOutputPort/UseCaseOutputPort_TEMP_TEMP';
|
||||
import { LeagueOwnerSummaryDTO } from '../dtos/LeagueOwnerSummaryDTO';
|
||||
|
||||
export class LeagueOwnerSummaryPresenter implements UseCaseOutputPort<GetLeagueOwnerSummaryResult> {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import type { GetLeagueRosterJoinRequestsResult } from '@core/racing/application/use-cases/GetLeagueRosterJoinRequestsUseCase';
|
||||
import type { GetLeagueRosterMembersResult } from '@core/racing/application/use-cases/GetLeagueRosterMembersUseCase';
|
||||
import type { UseCaseOutputPort } from '@core/shared/application';
|
||||
import type { UseCaseOutputPort } from '@core/shared/application/UseCaseOutputPort/UseCaseOutputPort/UseCaseOutputPort_TEMP_TEMP';
|
||||
import { Injectable } from '@nestjs/common';
|
||||
import type { DriverDTO } from '../../driver/dtos/DriverDTO';
|
||||
import type { LeagueRosterJoinRequestDTO } from '../dtos/LeagueRosterJoinRequestDTO';
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { GetLeagueScheduleResult } from '@core/racing/application/use-cases/GetLeagueScheduleUseCase';
|
||||
import type { UseCaseOutputPort } from '@core/shared/application';
|
||||
import type { UseCaseOutputPort } from '@core/shared/application/UseCaseOutputPort/UseCaseOutputPort/UseCaseOutputPort_TEMP_TEMP';
|
||||
import { RaceDTO } from '../../race/dtos/RaceDTO';
|
||||
import { LeagueScheduleDTO } from '../dtos/LeagueScheduleDTO';
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import type { GetLeagueScoringConfigResult } from '@core/racing/application/use-cases/GetLeagueScoringConfigUseCase';
|
||||
import type { BonusRule } from '@core/racing/domain/types/BonusRule';
|
||||
import type { ChampionshipConfig } from '@core/racing/domain/types/ChampionshipConfig';
|
||||
import type { UseCaseOutputPort } from '@core/shared/application/UseCaseOutputPort';
|
||||
import type { UseCaseOutputPort } from '@core/shared/application/UseCaseOutputPort/UseCaseOutputPort/UseCaseOutputPort_TEMP_TEMP';
|
||||
|
||||
export interface LeagueScoringChampionshipViewModel {
|
||||
id: string;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { ListLeagueScoringPresetsResult } from '@core/racing/application/use-cases/ListLeagueScoringPresetsUseCase';
|
||||
import type { UseCaseOutputPort } from '@core/shared/application/UseCaseOutputPort';
|
||||
import type { UseCaseOutputPort } from '@core/shared/application/UseCaseOutputPort/UseCaseOutputPort/UseCaseOutputPort_TEMP_TEMP';
|
||||
import type { LeagueScoringPresetsDTO } from '../dtos/LeagueScoringPresetsDTO';
|
||||
|
||||
export type LeagueScoringPresetsViewModel = LeagueScoringPresetsDTO;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { UseCaseOutputPort } from '@core/shared/application';
|
||||
import type { UseCaseOutputPort } from '@core/shared/application/UseCaseOutputPort/UseCaseOutputPort/UseCaseOutputPort_TEMP_TEMP';
|
||||
|
||||
import type {
|
||||
CreateLeagueScheduleRaceOutputDTO,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { RejectLeagueJoinRequestResult } from '@core/racing/application/use-cases/RejectLeagueJoinRequestUseCase';
|
||||
import type { UseCaseOutputPort } from '@core/shared/application/UseCaseOutputPort';
|
||||
import type { UseCaseOutputPort } from '@core/shared/application/UseCaseOutputPort/UseCaseOutputPort/UseCaseOutputPort_TEMP_TEMP';
|
||||
import type { RejectJoinRequestOutputDTO } from '../dtos/RejectJoinRequestOutputDTO';
|
||||
|
||||
export class RejectLeagueJoinRequestPresenter implements UseCaseOutputPort<RejectLeagueJoinRequestResult> {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { RemoveLeagueMemberResult } from '@core/racing/application/use-cases/RemoveLeagueMemberUseCase';
|
||||
import type { UseCaseOutputPort } from '@core/shared/application/UseCaseOutputPort';
|
||||
import type { UseCaseOutputPort } from '@core/shared/application/UseCaseOutputPort/UseCaseOutputPort/UseCaseOutputPort_TEMP_TEMP';
|
||||
import type { RemoveLeagueMemberOutputDTO } from '../dtos/RemoveLeagueMemberOutputDTO';
|
||||
|
||||
export class RemoveLeagueMemberPresenter implements UseCaseOutputPort<RemoveLeagueMemberResult> {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { TransferLeagueOwnershipResult } from '@core/racing/application/use-cases/TransferLeagueOwnershipUseCase';
|
||||
import type { UseCaseOutputPort } from '@core/shared/application/UseCaseOutputPort';
|
||||
import type { UseCaseOutputPort } from '@core/shared/application/UseCaseOutputPort/UseCaseOutputPort/UseCaseOutputPort_TEMP_TEMP';
|
||||
import type { TransferLeagueOwnershipOutputDTO } from '../dtos/TransferLeagueOwnershipOutputDTO';
|
||||
|
||||
export class TransferLeagueOwnershipPresenter implements UseCaseOutputPort<TransferLeagueOwnershipResult> {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { UpdateLeagueMemberRoleResult } from '@core/racing/application/use-cases/UpdateLeagueMemberRoleUseCase';
|
||||
import type { UseCaseOutputPort } from '@core/shared/application/UseCaseOutputPort';
|
||||
import type { UseCaseOutputPort } from '@core/shared/application/UseCaseOutputPort/UseCaseOutputPort/UseCaseOutputPort_TEMP_TEMP';
|
||||
import type { UpdateLeagueMemberRoleOutputDTO } from '../dtos/UpdateLeagueMemberRoleOutputDTO';
|
||||
|
||||
export class UpdateLeagueMemberRolePresenter implements UseCaseOutputPort<UpdateLeagueMemberRoleResult> {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import type { WithdrawFromLeagueWalletResult } from '@core/racing/application/use-cases/WithdrawFromLeagueWalletUseCase';
|
||||
import type { UseCaseOutputPort } from '@core/shared/application';
|
||||
import type { UseCaseOutputPort } from '@core/shared/application/UseCaseOutputPort/UseCaseOutputPort/UseCaseOutputPort_TEMP_TEMP';
|
||||
import { WithdrawFromLeagueWalletOutputDTO } from '../dtos/WithdrawFromLeagueWalletOutputDTO';
|
||||
|
||||
export class WithdrawFromLeagueWalletPresenter implements UseCaseOutputPort<WithdrawFromLeagueWalletResult> {
|
||||
|
||||
Reference in New Issue
Block a user