@sportsbroker/firebase-structure 3.28.1 → 3.29.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.
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {Group, ISODate, MatchID, MatchPeriod, MatchStatus, SeasonID, Stage} from "../../global";
|
|
1
|
+
import {Group, ISODate, MatchID, MatchPeriod, MatchStatus, SeasonID, Stage, TournamentType} from "../../global";
|
|
2
2
|
|
|
3
3
|
export interface MatchTime {
|
|
4
4
|
minutes: number;
|
|
@@ -22,7 +22,7 @@ export interface MatchOverview {
|
|
|
22
22
|
group?: Group;
|
|
23
23
|
eventStatus: EventStatus;
|
|
24
24
|
season: SeasonID;
|
|
25
|
-
tournamentType:
|
|
25
|
+
tournamentType: TournamentType;
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
export interface Overviews {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {ISODate, Image, SeasonID, TournamentType} from "../../global";
|
|
2
2
|
import {Stages} from "./stages";
|
|
3
3
|
|
|
4
4
|
export type SeasonState = 'UPCOMING' | 'ACTIVE' | 'FINISHED';
|
|
5
|
-
export type SeasonType =
|
|
5
|
+
export type SeasonType = TournamentType;
|
|
6
6
|
export type TournamentStage = 'group' | 'knockout';
|
|
7
7
|
|
|
8
8
|
|
package/models/global.d.ts
CHANGED
|
@@ -69,6 +69,8 @@ export interface MatchSide<T> {
|
|
|
69
69
|
*/
|
|
70
70
|
export type MatchStatus = "PENDING" | "STARTED" | "FINISHED" | "POSTPONED";
|
|
71
71
|
|
|
72
|
+
export type TournamentType = 'DOMESTIC_LEAGUE' | 'DOMESTIC_CUP' | 'INTERNATIONAL_CUP';
|
|
73
|
+
|
|
72
74
|
export interface WithSeasons {
|
|
73
75
|
seasons: {
|
|
74
76
|
[seasonsName: string]: boolean; // Firebase will treat it as an array. Available: "BUND2018" | "EPL2018"
|
|
@@ -8,7 +8,8 @@ import {
|
|
|
8
8
|
MatchStatus,
|
|
9
9
|
Stage,
|
|
10
10
|
TeamID,
|
|
11
|
-
TeamSide
|
|
11
|
+
TeamSide,
|
|
12
|
+
TournamentType,
|
|
12
13
|
} from "../global";
|
|
13
14
|
|
|
14
15
|
export interface Team {
|
|
@@ -73,7 +74,7 @@ export interface MatchOverviewSnapshot {
|
|
|
73
74
|
home?: string;
|
|
74
75
|
away?: string;
|
|
75
76
|
};
|
|
76
|
-
tournamentType:
|
|
77
|
+
tournamentType: TournamentType;
|
|
77
78
|
stage?: Stage;
|
|
78
79
|
group?: Group;
|
|
79
80
|
startDate: ISODate;
|