@sportsbroker/firebase-structure 3.51.0 → 3.52.0
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 +7 -7
- package/package.json +1 -1
package/firestore/match.d.ts
CHANGED
|
@@ -5,16 +5,16 @@ export type MatchDoc = MatchData & Doc;
|
|
|
5
5
|
export type MatchData = {
|
|
6
6
|
matchId: UUID;
|
|
7
7
|
sport: Sport;
|
|
8
|
+
startDate: ISODate;
|
|
8
9
|
teams?: MatchSides<MatchTeam>;
|
|
9
|
-
|
|
10
|
+
roundNb: number;
|
|
11
|
+
season: string;
|
|
12
|
+
eventStatus: EventStatus;
|
|
10
13
|
tournamentType: TournamentType;
|
|
11
14
|
stage?: MatchStage;
|
|
12
15
|
group?: MatchGroup;
|
|
16
|
+
score?: MatchScores;
|
|
13
17
|
previousMatches?: MatchSides<PreviousMatch[]>;
|
|
14
|
-
startDate: ISODate;
|
|
15
|
-
roundNb: number;
|
|
16
|
-
eventStatus: EventStatus;
|
|
17
|
-
season: string;
|
|
18
18
|
};
|
|
19
19
|
|
|
20
20
|
export type MatchResult = "WON" | "DRAW" | "LOST";
|
|
@@ -55,12 +55,12 @@ export interface MatchSides<T> {
|
|
|
55
55
|
|
|
56
56
|
export type MatchStage = {
|
|
57
57
|
stageId: UUID;
|
|
58
|
-
name
|
|
58
|
+
name?: string;
|
|
59
59
|
};
|
|
60
60
|
|
|
61
61
|
export type MatchGroup = {
|
|
62
62
|
groupId: UUID;
|
|
63
|
-
name
|
|
63
|
+
name?: string;
|
|
64
64
|
};
|
|
65
65
|
|
|
66
66
|
export type MatchTeams = {
|