wip
This commit is contained in:
14
packages/racing/domain/repositories/IRaceEventRepository.ts
Normal file
14
packages/racing/domain/repositories/IRaceEventRepository.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import type { RaceEvent } from '../entities/RaceEvent';
|
||||
|
||||
export interface IRaceEventRepository {
|
||||
findById(id: string): Promise<RaceEvent | null>;
|
||||
findAll(): Promise<RaceEvent[]>;
|
||||
findBySeasonId(seasonId: string): Promise<RaceEvent[]>;
|
||||
findByLeagueId(leagueId: string): Promise<RaceEvent[]>;
|
||||
findByStatus(status: string): Promise<RaceEvent[]>;
|
||||
findAwaitingStewardingClose(): Promise<RaceEvent[]>;
|
||||
create(raceEvent: RaceEvent): Promise<RaceEvent>;
|
||||
update(raceEvent: RaceEvent): Promise<RaceEvent>;
|
||||
delete(id: string): Promise<void>;
|
||||
exists(id: string): Promise<boolean>;
|
||||
}
|
||||
13
packages/racing/domain/repositories/ISessionRepository.ts
Normal file
13
packages/racing/domain/repositories/ISessionRepository.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import type { Session } from '../entities/Session';
|
||||
|
||||
export interface ISessionRepository {
|
||||
findById(id: string): Promise<Session | null>;
|
||||
findAll(): Promise<Session[]>;
|
||||
findByRaceEventId(raceEventId: string): Promise<Session[]>;
|
||||
findByLeagueId(leagueId: string): Promise<Session[]>;
|
||||
findByStatus(status: string): Promise<Session[]>;
|
||||
create(session: Session): Promise<Session>;
|
||||
update(session: Session): Promise<Session>;
|
||||
delete(id: string): Promise<void>;
|
||||
exists(id: string): Promise<boolean>;
|
||||
}
|
||||
Reference in New Issue
Block a user