@sportsbroker/firebase-structure 3.4.0 → 3.4.2

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.
@@ -49,6 +49,11 @@
49
49
  "$uid": {
50
50
  ".read": "$uid === auth.uid"
51
51
  }
52
+ },
53
+ "messages": {
54
+ "$uid": {
55
+ ".read": "$uid === auth.uid"
56
+ }
52
57
  }
53
58
  }
54
59
  }
@@ -1,11 +1,15 @@
1
1
  import { ISODate, Image, SeasonID } from "../../global";
2
2
 
3
+ export type SeasonState = 'UPCOMING' | 'ACTIVE' | 'FINISHED';
4
+
3
5
  export interface SeasonOverview {
4
6
  endDate: ISODate;
5
7
  id: SeasonID; // "EPL2018" or similar used as reference
6
8
  name: string; // examples: "English Premier League", "Major League Soccer", "Germany Bundesliga"
7
9
  startDate: ISODate;
8
- isActive: boolean; // indicate if season is currently active, or archival one
10
+ shouldDisplay: boolean;
11
+ nextSeasonId?: string;
12
+ state: SeasonState;
9
13
  logo?: Image;
10
14
  }
11
15
 
@@ -2,7 +2,7 @@ import { Image } from "../global";
2
2
  import { Team } from "./matchOverviews";
3
3
  import { TeamRanking } from "../details/tables/ranking";
4
4
 
5
- interface MatchOutcome {
5
+ export interface MatchOutcome {
6
6
  vsTeam: Team;
7
7
  result?: MatchResult;
8
8
  matchId: number;
@@ -15,7 +15,7 @@ export enum MatchResult {
15
15
  LOST = "LOST"
16
16
  }
17
17
 
18
- interface TeamTable {
18
+ export interface TeamTable {
19
19
  name: string;
20
20
  abbreviation: string;
21
21
  logo: Image;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sportsbroker/firebase-structure",
3
- "version": "3.4.0",
3
+ "version": "3.4.2",
4
4
  "description": "Firebase structure typings",
5
5
  "main": "index.d.ts",
6
6
  "repository": {