@sportsbroker/firebase-structure 3.0.2 → 3.0.3

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 { ISODate, MatchPeriod, MatchStatus } from "../../global";
1
+ import {ISODate, MatchID, MatchPeriod, MatchStatus, SeasonID} from "../../global";
2
2
 
3
3
  export interface MatchTime {
4
4
  minutes: number;
@@ -13,11 +13,13 @@ export interface EventStatus {
13
13
  }
14
14
 
15
15
  export interface MatchOverview {
16
+ id: MatchID;
16
17
  startDate: ISODate;
17
18
  roundNb: number;
18
19
  originalRoundNb: number;
19
20
  isTba: boolean;
20
21
  eventStatus: EventStatus;
22
+ season: SeasonID;
21
23
  }
22
24
 
23
25
  export interface Overviews {
@@ -19,11 +19,6 @@ interface TeamsStats {
19
19
 
20
20
  export interface Stats {
21
21
  [sportID: string]: {
22
- [matchID: string]: {
23
- /**
24
- * possible values: @see StatsType
25
- */
26
- [statsType: string]: TeamsStats;
27
- };
22
+ [matchID: string]: Record<StatsType, TeamsStats>
28
23
  };
29
24
  }
@@ -1,9 +1,9 @@
1
1
  import {Image, TeamID, WithSeasons} from "../../global";
2
2
 
3
3
  export interface TeamOverview extends WithSeasons {
4
+ id: TeamID;
4
5
  name: string;
5
6
  abbreviation: string;
6
- id: TeamID;
7
7
  logo?: Image;
8
8
  isCurrentlyPlaying: boolean;
9
9
  }
@@ -8,6 +8,7 @@ export interface MarketIndicators {
8
8
  }
9
9
 
10
10
  export interface TeamShare {
11
+ seasonPriceChangePercentage: number;
11
12
  price: number;
12
13
  openingPrice: number;
13
14
  priceChangePercentage: number;
@@ -1,11 +1,11 @@
1
- import { ISODate, MatchStatus } from "../global";
1
+ import {ISODate, MatchID, MatchStatus} from "../global";
2
2
 
3
3
  export interface MatchQueryData {
4
+ id: MatchID;
4
5
  startDate: ISODate; // "Official", planned time of start
5
6
  realStartDate: ISODate; // Real start time, f.e match was delayed
6
7
  roundNb: number;
7
8
  matchStatus: MatchStatus;
8
- season: string;
9
9
  }
10
10
 
11
11
  interface Matches {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sportsbroker/firebase-structure",
3
- "version": "3.0.2",
3
+ "version": "3.0.3",
4
4
  "description": "Firebase structure typings",
5
5
  "main": "index.d.ts",
6
6
  "repository": {