32 lines
702 B
TypeScript
32 lines
702 B
TypeScript
import type { League } from '../../domain/entities/League';
|
|
|
|
export interface LeagueWithCapacityViewModel {
|
|
id: string;
|
|
name: string;
|
|
description: string;
|
|
ownerId: string;
|
|
settings: {
|
|
maxDrivers: number;
|
|
sessionDuration?: number;
|
|
visibility?: string;
|
|
};
|
|
createdAt: string;
|
|
socialLinks?: {
|
|
discordUrl?: string;
|
|
youtubeUrl?: string;
|
|
websiteUrl?: string;
|
|
};
|
|
usedSlots: number;
|
|
}
|
|
|
|
export interface AllLeaguesWithCapacityViewModel {
|
|
leagues: LeagueWithCapacityViewModel[];
|
|
totalCount: number;
|
|
}
|
|
|
|
export interface IAllLeaguesWithCapacityPresenter {
|
|
present(
|
|
leagues: League[],
|
|
memberCounts: Map<string, number>
|
|
): AllLeaguesWithCapacityViewModel;
|
|
} |