/
boxrec.page.profile.constants.ts
81 lines (74 loc) · 2.69 KB
/
boxrec.page.profile.constants.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
import {BoxrecGeneralLinks, BoxrecTitles} from '../../boxrec-common-tables/boxrec-common.constants';
import {BoxrecBasic, BoxrecJudge, Record, WinLossDraw} from '../boxrec.constants';
import {WeightDivision} from '../champions/boxrec.champions.constants';
import {BoxingBoutOutcome} from '../event/boxrec.event.constants';
import {BoxrecPageProfileEventRow} from './boxrec.page.profile.event.row';
import {BoxrecPageProfileManagerBoxerRow} from './boxrec.page.profile.manager.boxer.row';
import {BoxrecPageProfileOtherCommonBoutRow} from './boxrec.page.profile.other.common.bout.row';
import {BoxrecProfileRole} from './boxrec.profile.constants';
interface BoxrecProfileOutput {
birthName: string | null;
birthPlace: string | null;
globalId: number | null;
name: string;
otherInfo: string[][];
picture: string;
residence: string | null;
role: BoxrecProfileRole[];
status: string | null;
}
// boxer profile
export interface BoxrecProfileBoxerOutput extends BoxrecProfileOutput {
KOs: number | null;
alias: string | null;
born: string | null;
bouts: BoxrecProfileBoxerBoutOutput[];
debut: string | null;
division: WeightDivision | null;
hasBoutScheduled: boolean;
height: number[] | null;
nationality: string | null;
numberOfBouts: number;
ranking: number[][] | null;
rating: number | null;
reach: number[] | null;
record: Record;
rounds: number | null;
stance: string | null;
suspended: string | null;
titlesHeld: string[] | null;
vadacbp: boolean | null;
}
// individual bout
export interface BoxrecProfileBoxerBoutOutput {
date: string;
firstBoxerRating: Array<number | null>;
firstBoxerWeight: number | null;
judges: BoxrecJudge[];
links: BoxrecGeneralLinks;
location: string;
metadata: string | null;
numberOfRounds: Array<number | null>;
outcome: WinLossDraw;
rating: number | null;
referee: BoxrecBasic;
result: [WinLossDraw, BoxingBoutOutcome | string | null, BoxingBoutOutcome | string | null];
secondBoxer: BoxrecBasic;
secondBoxerLast6: WinLossDraw[];
secondBoxerRating: Array<number | null>;
secondBoxerRecord: Record;
secondBoxerWeight: number | null;
titles: BoxrecTitles[];
}
export interface BoxrecProfileManagerOutput extends BoxrecProfileOutput {
boxers: BoxrecPageProfileManagerBoxerRow[];
}
export interface BoxrecProfileOtherOutput extends BoxrecProfileOutput {
bouts: BoxrecPageProfileOtherCommonBoutRow[];
}
export interface BoxrecProfilePromoterOutput extends BoxrecProfileEventsOutput {
company: string | null;
}
export interface BoxrecProfileEventsOutput extends BoxrecProfileOutput {
events: BoxrecPageProfileEventRow[];
}