@sportsbroker/firebase-structure 3.54.1 → 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.
@@ -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,5 +1,3 @@
1
- import { TeamID, SportID, SeasonID } from "../../global";
2
-
3
1
  /**
4
2
  * sportId: SportID
5
3
  * seasonId: SeasonID
@@ -1,7 +1,5 @@
1
- import { GroupID, SeasonID, SportID } from "../../global";
2
-
3
1
  /**
4
- * sportID: SportID
2
+ * sportID: Sport
5
3
  * seasonID: SeasonID
6
4
  * groupID: GroupID
7
5
  */
@@ -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
- [sportId: string]: {
19
- [teamId: string]: TeamOverview;
20
- };
15
+ [teamId: string]: TeamOverview;
21
16
  }
@@ -1,4 +1,4 @@
1
- import {ISODate, MatchID, SportID, TeamSide} from "../../global";
1
+ import { ISODate } from "../../global";
2
2
 
3
3
  export interface UserOwnedShares {
4
4
  amount: number;
@@ -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
 
@@ -1,7 +1,5 @@
1
- import { SportID, SeasonID } from "../global";
2
-
3
1
  /**
4
- * sportId: SportID
2
+ * sportId: Sport
5
3
  * seasonId: SeasonID
6
4
  */
7
5
  export interface ActiveSeasons {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sportsbroker/firebase-structure",
3
- "version": "3.54.1",
3
+ "version": "3.55.0",
4
4
  "description": "Firebase structure typings",
5
5
  "main": "index.d.ts",
6
6
  "repository": {