21 lines
617 B
TypeScript
21 lines
617 B
TypeScript
import type { Presenter } from '@gridpilot/shared/presentation/Presenter';
|
|
|
|
export interface LeagueJoinRequestViewModel {
|
|
id: string;
|
|
leagueId: string;
|
|
driverId: string;
|
|
requestedAt: Date;
|
|
message: string;
|
|
driver: { id: string; name: string } | null;
|
|
}
|
|
|
|
export interface GetLeagueJoinRequestsViewModel {
|
|
joinRequests: LeagueJoinRequestViewModel[];
|
|
}
|
|
|
|
export interface GetLeagueJoinRequestsResultDTO {
|
|
joinRequests: any[];
|
|
drivers: { id: string; name: string }[];
|
|
}
|
|
|
|
export interface IGetLeagueJoinRequestsPresenter extends Presenter<GetLeagueJoinRequestsResultDTO, GetLeagueJoinRequestsViewModel> {} |