diff --git a/apps/website/lib/services/leagues/LeagueService.ts b/apps/website/lib/services/leagues/LeagueService.ts index 63c578b9d..7d19b37dc 100644 --- a/apps/website/lib/services/leagues/LeagueService.ts +++ b/apps/website/lib/services/leagues/LeagueService.ts @@ -18,7 +18,7 @@ import { RaceViewModel } from "@/lib/view-models/RaceViewModel"; import { SubmitBlocker, ThrottleBlocker } from "@/lib/blockers"; import { RaceDTO } from "@/lib/types/generated/RaceDTO"; import { LeagueStatsDTO } from "@/lib/types/generated/LeagueStatsDTO"; -import { LeagueScoringConfigDTO } from "@/lib/types/LeagueScoringConfigDTO"; +import { LeagueScoringConfigDTO } from "@/lib/types/generated/LeagueScoringConfigDTO"; import type { LeagueMembership } from "@/lib/types/LeagueMembership"; import type { LeagueSeasonSummaryDTO } from '@/lib/types/generated/LeagueSeasonSummaryDTO'; diff --git a/apps/website/lib/types/LeagueScoringConfigDTO.ts b/apps/website/lib/types/LeagueScoringConfigDTO.ts deleted file mode 100644 index af2c81e4a..000000000 --- a/apps/website/lib/types/LeagueScoringConfigDTO.ts +++ /dev/null @@ -1,20 +0,0 @@ -export interface LeagueScoringChampionshipDTO { - id: string; - name: string; - type: string; - sessionTypes: string[]; - pointsPreview: Array<{ sessionType: string; position: number; points: number }>; - bonusSummary: string[]; - dropPolicyDescription: string; -} - -export interface LeagueScoringConfigDTO { - leagueId: string; - seasonId: string; - gameId: string; - gameName: string; - scoringPresetId?: string; - scoringPresetName?: string; - dropPolicySummary: string; - championships: LeagueScoringChampionshipDTO[]; -} \ No newline at end of file diff --git a/apps/website/lib/view-models/LeagueDetailPageViewModel.ts b/apps/website/lib/view-models/LeagueDetailPageViewModel.ts index 56ade6b5e..4b581521b 100644 --- a/apps/website/lib/view-models/LeagueDetailPageViewModel.ts +++ b/apps/website/lib/view-models/LeagueDetailPageViewModel.ts @@ -5,7 +5,7 @@ import { LeagueScheduleDTO } from '../types/generated/LeagueScheduleDTO'; import { LeagueStandingsDTO } from '../types/generated/LeagueStandingsDTO'; import { GetDriverOutputDTO } from '../types/generated/GetDriverOutputDTO'; import { RaceDTO } from '../types/generated/RaceDTO'; -import { LeagueScoringConfigDTO } from '../types/LeagueScoringConfigDTO'; +import { LeagueScoringConfigDTO } from '@/lib/types/generated/LeagueScoringConfigDTO'; import { RaceViewModel } from './RaceViewModel'; import { DriverViewModel } from './DriverViewModel';