This commit is contained in:
2025-12-10 00:38:59 +01:00
parent a4a732ddc5
commit 0f7fe67d3c
25 changed files with 1914 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
/**
* Repository Interface: ILiveryRepository
*
* Defines operations for livery-related entities
*/
import type { DriverLivery } from '../entities/DriverLivery';
import type { LiveryTemplate } from '../entities/LiveryTemplate';
export interface ILiveryRepository {
// DriverLivery operations
findDriverLiveryById(id: string): Promise<DriverLivery | null>;
findDriverLiveriesByDriverId(driverId: string): Promise<DriverLivery[]>;
findDriverLiveryByDriverAndCar(driverId: string, carId: string): Promise<DriverLivery | null>;
createDriverLivery(livery: DriverLivery): Promise<DriverLivery>;
updateDriverLivery(livery: DriverLivery): Promise<DriverLivery>;
deleteDriverLivery(id: string): Promise<void>;
// LiveryTemplate operations
findTemplateById(id: string): Promise<LiveryTemplate | null>;
findTemplatesBySeasonId(seasonId: string): Promise<LiveryTemplate[]>;
findTemplateBySeasonAndCar(seasonId: string, carId: string): Promise<LiveryTemplate | null>;
createTemplate(template: LiveryTemplate): Promise<LiveryTemplate>;
updateTemplate(template: LiveryTemplate): Promise<LiveryTemplate>;
deleteTemplate(id: string): Promise<void>;
}