@sportsbroker/firebase-structure 3.24.0-11 → 3.24.0-12

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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ## [3.24.0-12](https://github.com/SportsBroker-HQ/firebase-structure/compare/v3.24.0-11...v3.24.0-12) (2021-04-21)
6
+
7
+
8
+ ### Features
9
+
10
+ * add stages, groups ([7e0bf8f](https://github.com/SportsBroker-HQ/firebase-structure/commit/7e0bf8f96d65e84abb4e463ef0dd0f2ca643467a))
11
+
5
12
  ## [3.24.0-11](https://github.com/SportsBroker-HQ/firebase-structure/compare/v3.24.0-10...v3.24.0-11) (2021-04-19)
6
13
 
7
14
 
@@ -1,4 +1,4 @@
1
- import {ISODate, MatchID, MatchPeriod, MatchStatus, SeasonID} from "../../global";
1
+ import {Group, ISODate, MatchID, MatchPeriod, MatchStatus, SeasonID, Stage} from "../../global";
2
2
 
3
3
  export interface MatchTime {
4
4
  minutes: number;
@@ -18,6 +18,8 @@ export interface MatchOverview {
18
18
  roundNb: number;
19
19
  originalRoundNb: number;
20
20
  isTba: boolean;
21
+ stage?: Stage;
22
+ group?: Group;
21
23
  eventStatus: EventStatus;
22
24
  season: SeasonID;
23
25
  }
@@ -1,5 +1,6 @@
1
1
  import { Overviews } from "./overviews";
2
2
  import { TeamsInSeasons } from "./teams";
3
+ import { Stages } from "./stages";
3
4
 
4
5
  export interface Seasons {
5
6
  overviews: Overviews;
@@ -1,4 +1,5 @@
1
1
  import { ISODate, Image, SeasonID } from "../../global";
2
+ import {Stages} from "./stages";
2
3
 
3
4
  export type SeasonState = 'UPCOMING' | 'ACTIVE' | 'FINISHED';
4
5
  export type SeasonType = 'CLUB' | 'INTERNATIONAL';
@@ -14,6 +15,7 @@ export interface SeasonOverview {
14
15
  logo?: Image;
15
16
  type: SeasonType;
16
17
  countryCode?: string;
18
+ stages?: Stages;
17
19
  }
18
20
 
19
21
  /**
@@ -0,0 +1,12 @@
1
+ export interface Stage {
2
+ name: string;
3
+ matchesIds: string[];
4
+ }
5
+
6
+ export interface Stages {
7
+ [sportId: string]: {
8
+ [seasonId: string]: {
9
+ [stageId: string]: Stage;
10
+ }
11
+ }
12
+ }
@@ -69,3 +69,11 @@ export interface WithSeasons {
69
69
  }
70
70
 
71
71
  export type Platforms = 'IOS' | 'WEB' | 'ANDROID';
72
+
73
+ export interface Stage {
74
+ id: string;
75
+ }
76
+
77
+ export interface Group {
78
+ id: string;
79
+ }
@@ -1,4 +1,4 @@
1
- import {ISODate, MatchID, MatchStatus} from "../global";
1
+ import {Group, ISODate, MatchID, MatchStatus, Stage} from "../global";
2
2
 
3
3
  export interface MatchQueryData {
4
4
  id: MatchID;
@@ -6,6 +6,8 @@ export interface MatchQueryData {
6
6
  realStartDate: ISODate; // Real start time, f.e match was delayed
7
7
  roundNb: number;
8
8
  matchStatus: MatchStatus;
9
+ stage?: Stage;
10
+ group?: Group;
9
11
  }
10
12
 
11
13
  interface Matches {
@@ -1,4 +1,15 @@
1
- import {Image, ISODate, MatchPeriod, MatchResult, MatchSide, MatchStatus, TeamID, TeamSide} from "../global";
1
+ import {
2
+ Group,
3
+ Image,
4
+ ISODate,
5
+ MatchPeriod,
6
+ MatchResult,
7
+ MatchSide,
8
+ MatchStatus,
9
+ Stage,
10
+ TeamID,
11
+ TeamSide
12
+ } from "../global";
2
13
 
3
14
  export interface Team {
4
15
  id: TeamID;
@@ -57,6 +68,8 @@ export interface MatchOverviewSnapshot {
57
68
  home: Share;
58
69
  away: Share;
59
70
  };
71
+ stage?: Stage;
72
+ group?: Group;
60
73
  startDate: ISODate;
61
74
  roundNb: number;
62
75
  eventStatus: EventStatus;
@@ -7,6 +7,7 @@ export interface TeamTable {
7
7
  abbreviation: string;
8
8
  logo: Image;
9
9
  ranking: TeamRanking;
10
+ groupId?: string;
10
11
  previousMatchId?: string;
11
12
  nextMatchId?: string;
12
13
  nextMatch?: {
@@ -26,16 +27,6 @@ export interface TeamTable {
26
27
  export interface GroupTable {
27
28
  name: string;
28
29
  matchesIds: string[];
29
- ranking: {
30
- [teamID: string]: TeamRanking;
31
- }
32
- }
33
-
34
- export interface SeasonTable {
35
- groupIds?: string[];
36
- table: {
37
- [teamID: string]: TeamTable;
38
- }
39
30
  }
40
31
 
41
32
  export interface TableSummary {
@@ -48,7 +39,9 @@ export interface TableSummary {
48
39
  };
49
40
  leagues: {
50
41
  [sportID: string]: {
51
- [seasonID: string]: SeasonTable;
42
+ [seasonID: string]: {
43
+ [teamID: string]: TeamTable;
44
+ };
52
45
  };
53
46
  };
54
47
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sportsbroker/firebase-structure",
3
- "version": "3.24.0-11",
3
+ "version": "3.24.0-12",
4
4
  "description": "Firebase structure typings",
5
5
  "main": "index.d.ts",
6
6
  "repository": {