22 lines
489 B
TypeScript
22 lines
489 B
TypeScript
import type { Team } from '../../domain/entities/Team';
|
|
|
|
export interface TeamListItemViewModel {
|
|
id: string;
|
|
name: string;
|
|
tag: string;
|
|
description: string;
|
|
memberCount: number;
|
|
leagues: string[];
|
|
specialization?: 'endurance' | 'sprint' | 'mixed';
|
|
region?: string;
|
|
languages?: string[];
|
|
}
|
|
|
|
export interface AllTeamsViewModel {
|
|
teams: TeamListItemViewModel[];
|
|
totalCount: number;
|
|
}
|
|
|
|
export interface IAllTeamsPresenter {
|
|
present(teams: Team[]): AllTeamsViewModel;
|
|
} |