@sportsbroker/firebase-structure 3.53.0-0 → 3.53.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,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";
@@ -1,4 +1,4 @@
1
- import {Image, TeamID, WithSeasons} from "../../global";
1
+ import { Image, SportID, 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: SportID;
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
  }
@@ -22,7 +22,7 @@ export type ISODate = string;
22
22
  /**
23
23
  * Currently support only soccer
24
24
  */
25
- export type SportID = "soccer" | "nfl" | string;
25
+ export type SportID = "soccer" | "nfl";
26
26
 
27
27
  export type Language = "en" | "de" | string;
28
28
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sportsbroker/firebase-structure",
3
- "version": "3.53.0-0",
3
+ "version": "3.53.0",
4
4
  "description": "Firebase structure typings",
5
5
  "main": "index.d.ts",
6
6
  "repository": {