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,16 +1,16 @@
import type { DriverDTO } from '../types/DriverDTO';
import type { GetDriverOutputDTO } from '../types/generated/GetDriverOutputDTO';
/**
* View Model for driver summary with rating and rank
* Transform from DTO to ViewModel with UI fields
*/
export class DriverSummaryViewModel {
driver: DriverDTO;
driver: GetDriverOutputDTO;
rating: number | null;
rank: number | null;
constructor(dto: {
driver: DriverDTO;
driver: GetDriverOutputDTO;
rating?: number | null;
rank?: number | null;
}) {