@sportsbroker/firebase-structure 3.0.0 → 3.0.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.
@@ -1,6 +1,6 @@
1
1
  import { TeamID } from "../../global";
2
2
 
3
- interface MarketIndicators {
3
+ export interface MarketIndicators {
4
4
  weeklyHigh: number;
5
5
  weeklyLow: number;
6
6
  weeklyVolume: number;
@@ -26,7 +26,7 @@ export interface Notification {
26
26
  export interface Notifications {
27
27
  [userId: string]: {
28
28
  unreadCount: number;
29
- [language: string]: {
29
+ [language: string]: number | { // It can't be number - this is workaround because TS can't handle dynamic keys here
30
30
  entries: {
31
31
  [notificationId: string]: Notification;
32
32
  };
@@ -1,6 +1,6 @@
1
1
  import { ISODate, MatchStatus } from "../global";
2
2
 
3
- interface MatchQueryData {
3
+ export interface MatchQueryData {
4
4
  startDate: ISODate; // "Official", planned time of start
5
5
  realStartDate: ISODate; // Real start time, f.e match was delayed
6
6
  roundNb: number;
@@ -1,4 +1,4 @@
1
- import { Image, MatchPeriod, MatchStatus, TeamID } from "../global";
1
+ import {Image, ISODate, MatchPeriod, MatchStatus, TeamID} from "../global";
2
2
 
3
3
  export interface Team {
4
4
  id: TeamID;
@@ -24,6 +24,7 @@ export interface EventStatus {
24
24
  }
25
25
 
26
26
  export interface MatchOverviewSnapshot {
27
+ id: string;
27
28
  teams: {
28
29
  home: Team;
29
30
  away: Team;
@@ -36,7 +37,7 @@ export interface MatchOverviewSnapshot {
36
37
  home: Share;
37
38
  away: Share;
38
39
  };
39
- startDate: Date;
40
+ startDate: ISODate;
40
41
  roundNb: number;
41
42
  eventStatus: EventStatus;
42
43
  season: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sportsbroker/firebase-structure",
3
- "version": "3.0.0",
3
+ "version": "3.0.2",
4
4
  "description": "Firebase structure typings",
5
5
  "main": "index.d.ts",
6
6
  "repository": {