soccer-go
Version:
Soccer CLI for stats and results.
56 lines (55 loc) • 1.22 kB
TypeScript
import type { IPlayerJson } from './Player';
export interface ITeamLinks {
self: string;
matches: string;
players: string;
}
export default class Team {
id: number;
name: string;
code: string;
shortName: string | null;
venue: string | null;
founded: number | null;
clubColors: string | null;
website: string | null;
coach: ICoach | null;
runningCompetitions: ICompetition[];
links: ITeamLinks;
squad: IPlayerJson[];
constructor(data: ITeamJson);
}
export interface ITeamJson {
id: number;
name: string;
shortName: string;
tla: string;
crest: string;
venue: string | null;
founded: number | null;
clubColors: string | null;
website: string | null;
coach: ICoach | null;
runningCompetitions: ICompetition[];
squad: IPlayerJson[];
}
export interface ICompetition {
id: number;
name: string;
code: string;
type: string;
emblem: string;
}
export interface ICoach {
id: number;
firstName: string;
lastName: string;
name: string;
dateOfBirth: string;
nationality: string;
contract: IContract;
}
export interface IContract {
start: string;
until: string;
}