resolve manual DTOs

This commit is contained in:
2025-12-18 22:19:40 +01:00
parent 4a3087ae35
commit d617654928
179 changed files with 3716 additions and 1257 deletions

View File

@@ -3,7 +3,7 @@ import { LeagueStatsDTO } from '../types/generated/LeagueStatsDTO';
import { LeagueMembershipsDTO } from '../types/generated/LeagueMembershipsDTO';
import { LeagueScheduleDTO } from '../types/generated/LeagueScheduleDTO';
import { LeagueStandingsDTO } from '../types/generated/LeagueStandingsDTO';
import { DriverDTO } from '../types/DriverDTO';
import { GetDriverOutputDTO } from '../types/generated/GetDriverOutputDTO';
import { RaceDTO } from '../types/generated/RaceDTO';
import { LeagueScoringConfigDTO } from '../types/LeagueScoringConfigDTO';
import { RaceViewModel } from './RaceViewModel';
@@ -20,7 +20,7 @@ export interface SponsorInfo {
// Driver summary for management section
export interface DriverSummary {
driver: DriverDTO;
driver: GetDriverOutputDTO;
rating: number | null;
rank: number | null;
}
@@ -50,13 +50,13 @@ export class LeagueDetailPageViewModel {
};
// Owner info
owner: DriverDTO | null;
owner: GetDriverOutputDTO | null;
// Scoring configuration
scoringConfig: LeagueScoringConfigDTO | null;
// Drivers and memberships
drivers: DriverDTO[];
drivers: GetDriverOutputDTO[];
memberships: LeagueMembershipWithRole[];
// Races
@@ -93,9 +93,9 @@ export class LeagueDetailPageViewModel {
constructor(
league: LeagueWithCapacityDTO,
owner: DriverDTO | null,
owner: GetDriverOutputDTO | null,
scoringConfig: LeagueScoringConfigDTO | null,
drivers: DriverDTO[],
drivers: GetDriverOutputDTO[],
memberships: LeagueMembershipsDTO,
allRaces: RaceViewModel[],
leagueStats: LeagueStatsDTO,