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

@@ -1,20 +1,23 @@
// TODO: Create ImportRaceResultsSummaryDTO in apps/website/lib/types/generated when available
interface ImportRaceResultsSummaryDTO {
success: boolean;
raceId: string;
importedCount: number;
errors: string[];
driversProcessed: number;
resultsRecorded: number;
errors?: string[];
}
export class ImportRaceResultsSummaryViewModel {
success: boolean;
raceId: string;
importedCount: number;
driversProcessed: number;
resultsRecorded: number;
errors: string[];
constructor(dto: ImportRaceResultsSummaryDTO) {
this.success = dto.success;
this.raceId = dto.raceId;
this.importedCount = dto.importedCount;
this.errors = dto.errors;
this.driversProcessed = dto.driversProcessed;
this.resultsRecorded = dto.resultsRecorded;
this.errors = dto.errors || [];
}
// TODO: Add additional UI-specific fields when DTO is available
}