@sportsbroker/firebase-structure 3.53.0-0 → 3.53.0-1
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.
- package/firestore/match.d.ts +3 -8
- package/package.json +1 -1
package/firestore/match.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ISODate, UUID, Image, Doc } from "./common";
|
|
2
|
+
import { MatchSide } from '../models/global';
|
|
2
3
|
|
|
3
4
|
export type MatchDoc = MatchData & Doc;
|
|
4
5
|
|
|
@@ -19,7 +20,7 @@ export type MatchData = {
|
|
|
19
20
|
|
|
20
21
|
export type MatchResult = "WON" | "DRAW" | "LOST";
|
|
21
22
|
|
|
22
|
-
export type Sport = "soccer";
|
|
23
|
+
export type Sport = "soccer" | "nfl";
|
|
23
24
|
|
|
24
25
|
export type TournamentType =
|
|
25
26
|
| "DOMESTIC_LEAGUE"
|
|
@@ -29,13 +30,7 @@ export type TournamentType =
|
|
|
29
30
|
export type MatchScores = {
|
|
30
31
|
home: number | null;
|
|
31
32
|
away: number | null;
|
|
32
|
-
periods:
|
|
33
|
-
firstHalf: MatchSides<number | null>;
|
|
34
|
-
secondHalf: MatchSides<number | null>;
|
|
35
|
-
firstOvertime: MatchSides<number | null>;
|
|
36
|
-
secondOvertime: MatchSides<number | null>;
|
|
37
|
-
shootoutPenalties: MatchSides<number | null>;
|
|
38
|
-
};
|
|
33
|
+
periods: Record<string, MatchSides<number | null>>;
|
|
39
34
|
};
|
|
40
35
|
|
|
41
36
|
export type MatchTeamSide = "home" | "away" | "none";
|