@sportsbroker/firebase-structure 3.54.0 → 3.55.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 +4 -2
- package/models/details/seasons/teams.d.ts +0 -2
- package/models/details/tables/groups.d.ts +1 -3
- package/models/details/teams/overviews.d.ts +3 -8
- package/models/details/users/ownedShares.d.ts +1 -1
- package/models/global.d.ts +1 -4
- package/models/queries/seasons.d.ts +1 -3
- package/package.json +1 -1
package/firestore/match.d.ts
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { ISODate, UUID, Image, Doc } from "./common";
|
|
2
|
+
<<<<<<< HEAD
|
|
2
3
|
import { MatchCommentary } from "./match-commentary";
|
|
3
4
|
import { MatchEvent } from "./match-event";
|
|
4
5
|
import { MatchHeadToHeadStats } from "./match-h2h-stats";
|
|
5
6
|
import { MatchLineup } from "./match-lineup";
|
|
6
7
|
import { MatchStats } from "./match-stats";
|
|
8
|
+
=======
|
|
9
|
+
import { Sport } from '../models/global';
|
|
10
|
+
>>>>>>> 20ed3882f2b5427782993e7f3a2c0efbd05ccf77
|
|
7
11
|
|
|
8
12
|
export type MatchDoc = MatchData & Doc;
|
|
9
13
|
|
|
@@ -35,8 +39,6 @@ export type TeamSharesData = {
|
|
|
35
39
|
|
|
36
40
|
export type MatchResult = "WON" | "DRAW" | "LOST";
|
|
37
41
|
|
|
38
|
-
export type Sport = "soccer" | "nfl";
|
|
39
|
-
|
|
40
42
|
export type TournamentType =
|
|
41
43
|
| "DOMESTIC_LEAGUE"
|
|
42
44
|
| "DOMESTIC_CUP"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {Image, TeamID, WithSeasons} from "../../global";
|
|
1
|
+
import { Image, Sport, TeamID, WithSeasons } from "../../global";
|
|
2
2
|
|
|
3
3
|
export interface TeamOverview extends WithSeasons {
|
|
4
4
|
id: TeamID;
|
|
@@ -8,14 +8,9 @@ export interface TeamOverview extends WithSeasons {
|
|
|
8
8
|
logo?: Image;
|
|
9
9
|
isCurrentlyPlaying: boolean;
|
|
10
10
|
currentlyPlayedMatch?: string;
|
|
11
|
+
sport: Sport;
|
|
11
12
|
}
|
|
12
13
|
|
|
13
|
-
/**
|
|
14
|
-
* sportId: SportID
|
|
15
|
-
* teamId: TeamID
|
|
16
|
-
*/
|
|
17
14
|
export interface Overviews {
|
|
18
|
-
[
|
|
19
|
-
[teamId: string]: TeamOverview;
|
|
20
|
-
};
|
|
15
|
+
[teamId: string]: TeamOverview;
|
|
21
16
|
}
|
package/models/global.d.ts
CHANGED
|
@@ -19,10 +19,7 @@ export type TeamID = UUID;
|
|
|
19
19
|
*/
|
|
20
20
|
export type ISODate = string;
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
* Currently support only soccer
|
|
24
|
-
*/
|
|
25
|
-
export type SportID = "soccer" | "nfl" | string;
|
|
22
|
+
export type Sport = "soccer" | "nfl";
|
|
26
23
|
|
|
27
24
|
export type Language = "en" | "de" | string;
|
|
28
25
|
|