@sportsbroker/firebase-structure 3.34.4-0 → 3.34.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -6,10 +6,10 @@ export interface Score {
|
|
|
6
6
|
export interface MatchScore {
|
|
7
7
|
home: number | null; // total without penalties
|
|
8
8
|
away: number | null; // total without penalties
|
|
9
|
-
periods:
|
|
9
|
+
periods: MatchPeriods;
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
export interface
|
|
12
|
+
export interface MatchPeriods {
|
|
13
13
|
firstHalf?: Score;
|
|
14
14
|
secondHalf?: Score;
|
|
15
15
|
firstOvertime?: Score;
|
|
@@ -17,10 +17,6 @@ export interface SoccerPeriods {
|
|
|
17
17
|
shootoutPenalties?: Score;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
export interface NFLPeriods {
|
|
21
|
-
[sequenceName: string]: Score
|
|
22
|
-
}
|
|
23
|
-
|
|
24
20
|
export interface Scores {
|
|
25
21
|
[sportID: string]: {
|
|
26
22
|
[matchID: string]: MatchScore;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export interface
|
|
1
|
+
export interface TeamRanking {
|
|
2
2
|
position: number;
|
|
3
3
|
positionChange: number;
|
|
4
4
|
points: number;
|
|
@@ -11,44 +11,20 @@ export interface SoccerTeamRanking {
|
|
|
11
11
|
goalsAgainst: number;
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
-
export interface NflTeamRanking {
|
|
15
|
-
won: number;
|
|
16
|
-
lost: number;
|
|
17
|
-
draw: number;
|
|
18
|
-
played: number;
|
|
19
|
-
winningPercentage: number;
|
|
20
|
-
position: number;
|
|
21
|
-
lastPosition?: number;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export type TeamRanking = SoccerTeamRanking | NflTeamRanking;
|
|
25
|
-
|
|
26
14
|
export interface Ranking {
|
|
27
15
|
groups: {
|
|
28
|
-
|
|
16
|
+
[sportID: string]: {
|
|
29
17
|
[seasonID: string]: {
|
|
30
18
|
[groupID: string]: {
|
|
31
|
-
[teamID: string]:
|
|
19
|
+
[teamID: string]: TeamRanking;
|
|
32
20
|
};
|
|
33
21
|
};
|
|
34
22
|
};
|
|
35
|
-
nfl: {
|
|
36
|
-
[seasonID: string]: {
|
|
37
|
-
[groupID: string]: {
|
|
38
|
-
[teamID: string]: NflTeamRanking;
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
}
|
|
42
23
|
};
|
|
43
24
|
leagues: {
|
|
44
|
-
|
|
45
|
-
[seasonID: string]: {
|
|
46
|
-
[teamID: string]: SoccerTeamRanking;
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
nfl: {
|
|
25
|
+
[sportID: string]: {
|
|
50
26
|
[seasonID: string]: {
|
|
51
|
-
[teamID: string]:
|
|
27
|
+
[teamID: string]: TeamRanking;
|
|
52
28
|
};
|
|
53
29
|
};
|
|
54
30
|
};
|
|
@@ -14,7 +14,9 @@ export type NotificationType =
|
|
|
14
14
|
| 'SHARE_SELL_SUCCESSFUL'
|
|
15
15
|
| 'SHARE_BUY_UNSUCCESSFUL'
|
|
16
16
|
| 'SHARE_SELL_UNSUCCESSFUL'
|
|
17
|
-
| 'FOOTBALL_PASSPORT_STAMP_ACQUIRED'
|
|
17
|
+
| 'FOOTBALL_PASSPORT_STAMP_ACQUIRED'
|
|
18
|
+
| 'APP_RATING'
|
|
19
|
+
;
|
|
18
20
|
|
|
19
21
|
export type VariablesMap = {
|
|
20
22
|
['CUSTOM']: {
|
|
@@ -64,6 +66,7 @@ export type VariablesMap = {
|
|
|
64
66
|
promoEndDate: string;
|
|
65
67
|
stampUrl: string;
|
|
66
68
|
};
|
|
69
|
+
['APP_RATING']: {};
|
|
67
70
|
}
|
|
68
71
|
|
|
69
72
|
export interface Notification<T extends NotificationType> {
|
|
@@ -29,27 +29,17 @@ export interface GroupTable {
|
|
|
29
29
|
|
|
30
30
|
export interface TableSummary {
|
|
31
31
|
groups: {
|
|
32
|
-
|
|
32
|
+
[sportID: string]: {
|
|
33
33
|
[seasonID: string]: {
|
|
34
34
|
[groupId: string]: GroupTable;
|
|
35
35
|
}
|
|
36
|
-
}
|
|
37
|
-
nfl: {
|
|
38
|
-
[seasonID: string]: {
|
|
39
|
-
[groupId: string]: GroupTable;
|
|
40
|
-
}
|
|
41
|
-
},
|
|
36
|
+
}
|
|
42
37
|
};
|
|
43
38
|
leagues: {
|
|
44
|
-
|
|
45
|
-
[seasonID: string]: {
|
|
46
|
-
[teamID: string]: TeamTable;
|
|
47
|
-
};
|
|
48
|
-
},
|
|
49
|
-
nfl: {
|
|
39
|
+
[sportID: string]: {
|
|
50
40
|
[seasonID: string]: {
|
|
51
41
|
[teamID: string]: TeamTable;
|
|
52
42
|
};
|
|
53
|
-
}
|
|
43
|
+
};
|
|
54
44
|
};
|
|
55
45
|
}
|