@sportsbroker/firebase-structure 3.24.0-2 → 3.24.0-20

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,142 @@
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-20](https://github.com/SportsBroker-HQ/firebase-structure/compare/v3.24.0-19...v3.24.0-20) (2021-05-11)
6
+
7
+
8
+ ### Features
9
+
10
+ * mark teams as optional ([98a7b6b](https://github.com/SportsBroker-HQ/firebase-structure/commit/98a7b6b9daabceb41f6450f6ff6e51054248b37f))
11
+
12
+ ## [3.24.0-19](https://github.com/SportsBroker-HQ/firebase-structure/compare/v3.24.0-17...v3.24.0-19) (2021-05-10)
13
+
14
+
15
+ ### Features
16
+
17
+ * added match commentary types ([21c5791](https://github.com/SportsBroker-HQ/firebase-structure/commit/21c5791d7f86debd3a003ce2c930944104fbcd7b))
18
+ * new match statistics [ch14445] ([619f873](https://github.com/SportsBroker-HQ/firebase-structure/commit/619f873a61de094d9c9dd8db11c2b16580b52051))
19
+
20
+
21
+ ### Bug Fixes
22
+
23
+ * converted commentary type from enum to strings union ([#144](https://github.com/SportsBroker-HQ/firebase-structure/issues/144)) ([97e0fbe](https://github.com/SportsBroker-HQ/firebase-structure/commit/97e0fbedea00b2e9a70b1ee41db7c6fd286f2b15))
24
+
25
+ ## [3.24.0-18](https://github.com/SportsBroker-HQ/firebase-structure/compare/v3.24.0-17...v3.24.0-18) (2021-05-10)
26
+
27
+
28
+ ### Features
29
+
30
+ * added match commentary types ([21c5791](https://github.com/SportsBroker-HQ/firebase-structure/commit/21c5791d7f86debd3a003ce2c930944104fbcd7b))
31
+ * new match statistics [ch14445] ([619f873](https://github.com/SportsBroker-HQ/firebase-structure/commit/619f873a61de094d9c9dd8db11c2b16580b52051))
32
+
33
+
34
+ ### Bug Fixes
35
+
36
+ * converted commentary type from enum to strings union ([#144](https://github.com/SportsBroker-HQ/firebase-structure/issues/144)) ([97e0fbe](https://github.com/SportsBroker-HQ/firebase-structure/commit/97e0fbedea00b2e9a70b1ee41db7c6fd286f2b15))
37
+
38
+ ## [3.24.0-17](https://github.com/SportsBroker-HQ/firebase-structure/compare/v3.24.0-16...v3.24.0-17) (2021-05-06)
39
+
40
+
41
+ ### Features
42
+
43
+ * make sub player in optional ([2f66535](https://github.com/SportsBroker-HQ/firebase-structure/commit/2f66535bb82037854865ebd0d37bca5b7cb443b8))
44
+ * new match statistics [ch14445] ([e1b598e](https://github.com/SportsBroker-HQ/firebase-structure/commit/e1b598eaf702948e33c27d9e6fccf95e53c6cafa))
45
+
46
+ ## [3.24.0-16](https://github.com/SportsBroker-HQ/firebase-structure/compare/v3.24.0-15...v3.24.0-16) (2021-04-23)
47
+
48
+
49
+ ### Features
50
+
51
+ * adjust head to head structure ([a9e03d0](https://github.com/SportsBroker-HQ/firebase-structure/commit/a9e03d09e5632b0a52ab0fd13559320a6ba62fda))
52
+
53
+ ## [3.24.0-15](https://github.com/SportsBroker-HQ/firebase-structure/compare/v3.24.0-14...v3.24.0-15) (2021-04-21)
54
+
55
+ ## [3.24.0-14](https://github.com/SportsBroker-HQ/firebase-structure/compare/v3.24.0-13...v3.24.0-14) (2021-04-21)
56
+
57
+
58
+ ### Bug Fixes
59
+
60
+ * prevent remove of stages/groups ([cf92497](https://github.com/SportsBroker-HQ/firebase-structure/commit/cf9249774fa323eb2317e70488593e9b2c162686))
61
+
62
+ ## [3.24.0-13](https://github.com/SportsBroker-HQ/firebase-structure/compare/v3.24.0-12...v3.24.0-13) (2021-04-21)
63
+
64
+
65
+ ### Features
66
+
67
+ * set prev/next match as optional ([fa64283](https://github.com/SportsBroker-HQ/firebase-structure/commit/fa64283cd8059db43baeefa4c75c04b97652125e))
68
+
69
+ ## [3.24.0-12](https://github.com/SportsBroker-HQ/firebase-structure/compare/v3.24.0-11...v3.24.0-12) (2021-04-21)
70
+
71
+
72
+ ### Features
73
+
74
+ * add stages, groups ([7e0bf8f](https://github.com/SportsBroker-HQ/firebase-structure/commit/7e0bf8f96d65e84abb4e463ef0dd0f2ca643467a))
75
+
76
+ ## [3.24.0-11](https://github.com/SportsBroker-HQ/firebase-structure/compare/v3.24.0-10...v3.24.0-11) (2021-04-19)
77
+
78
+
79
+ ### Features
80
+
81
+ * add match team predicate ([1b01393](https://github.com/SportsBroker-HQ/firebase-structure/commit/1b013931dd54e080569fd01b5a2f1a60cc982432))
82
+
83
+ ## [3.24.0-10](https://github.com/SportsBroker-HQ/firebase-structure/compare/v3.24.0-9...v3.24.0-10) (2021-04-19)
84
+
85
+
86
+ ### Bug Fixes
87
+
88
+ * revert snapshots structures ([4dffdbe](https://github.com/SportsBroker-HQ/firebase-structure/commit/4dffdbeadde47e7cd977be4d639c1b2a013015fc))
89
+
90
+ ## [3.24.0-9](https://github.com/SportsBroker-HQ/firebase-structure/compare/v3.24.0-7...v3.24.0-9) (2021-04-16)
91
+
92
+
93
+ ### Features
94
+
95
+ * added type and countryCode to SeasonOverview ([dc420fe](https://github.com/SportsBroker-HQ/firebase-structure/commit/dc420fe7566bb8bd0721668c449847b84a576588))
96
+ * adjust events teamId ([afc6b72](https://github.com/SportsBroker-HQ/firebase-structure/commit/afc6b727dfa5e0ba2cb558c54d7e15453a6a5efd))
97
+
98
+ ## [3.24.0-8](https://github.com/SportsBroker-HQ/firebase-structure/compare/v3.24.0-7...v3.24.0-8) (2021-04-16)
99
+
100
+
101
+ ### Features
102
+
103
+ * added type and countryCode to SeasonOverview ([dc420fe](https://github.com/SportsBroker-HQ/firebase-structure/commit/dc420fe7566bb8bd0721668c449847b84a576588))
104
+
105
+ ## [3.24.0-7](https://github.com/SportsBroker-HQ/firebase-structure/compare/v3.24.0-6...v3.24.0-7) (2021-04-15)
106
+
107
+
108
+ ### Features
109
+
110
+ * adjust match scores schema ([e34e1d3](https://github.com/SportsBroker-HQ/firebase-structure/commit/e34e1d313256cd330105f436e90caeaebb5293c9))
111
+
112
+ ## [3.24.0-6](https://github.com/SportsBroker-HQ/firebase-structure/compare/v3.24.0-5...v3.24.0-6) (2021-04-15)
113
+
114
+
115
+ ### Features
116
+
117
+ * adjust match scores schema ([c18bbe3](https://github.com/SportsBroker-HQ/firebase-structure/commit/c18bbe3ea23151a7567d226da57ca3914a35be9a))
118
+
119
+ ## [3.24.0-5](https://github.com/SportsBroker-HQ/firebase-structure/compare/v3.24.0-3...v3.24.0-5) (2021-04-14)
120
+
121
+
122
+ ### Features
123
+
124
+ * adjust head2head structure ([39ee387](https://github.com/SportsBroker-HQ/firebase-structure/commit/39ee38764e4ff0aee5224207bfb83933ebae11b8))
125
+
126
+ ## [3.24.0-4](https://github.com/SportsBroker-HQ/firebase-structure/compare/v3.24.0-3...v3.24.0-4) (2021-04-14)
127
+
128
+
129
+ ### Features
130
+
131
+ * adjust head2head structure ([39ee387](https://github.com/SportsBroker-HQ/firebase-structure/commit/39ee38764e4ff0aee5224207bfb83933ebae11b8))
132
+
133
+ ## [3.24.0-3](https://github.com/SportsBroker-HQ/firebase-structure/compare/v3.24.0-2...v3.24.0-3) (2021-04-14)
134
+
135
+
136
+ ### Features
137
+
138
+ * add euro groups ([f990eb9](https://github.com/SportsBroker-HQ/firebase-structure/commit/f990eb908a16aee582f39c7341f74647c8032112))
139
+ * adjust head2head structure ([523552b](https://github.com/SportsBroker-HQ/firebase-structure/commit/523552b539b79b8f7500af6b24d4291ab48f927d))
140
+
5
141
  ## [3.24.0-2](https://github.com/SportsBroker-HQ/firebase-structure/compare/v3.24.0-1...v3.24.0-2) (2021-04-12)
6
142
 
7
143
 
@@ -5,9 +5,11 @@ import { Shares } from "./shares";
5
5
  import { Stats } from "./stats";
6
6
  import { Teams } from "./teams";
7
7
  import { Lineups } from "./lineups";
8
- import { Referees } from "./referees";
9
8
  import { Stories } from "./stories";
10
9
  import { Commentaries } from "./commentaries";
10
+ import { HeadToHeadStats } from "./h2h";
11
+ import { MatchTeamPredicates } from "./matchTeamPredicate";
12
+ import { MatchOfficials } from "./officials";
11
13
 
12
14
  export interface Matches {
13
15
  events: Events;
@@ -16,8 +18,10 @@ export interface Matches {
16
18
  shares: Shares;
17
19
  stats: Stats;
18
20
  teams: Teams;
21
+ h2h?: HeadToHeadStats;
19
22
  lineups?: Lineups;
20
- referees?: Referees;
23
+ officials?: MatchOfficials;
21
24
  stories?: Stories;
22
25
  commentaries?: Commentaries;
26
+ predicates?: MatchTeamPredicates;
23
27
  }
@@ -1,6 +1,7 @@
1
1
  export interface CommentaryItem {
2
2
  period: number;
3
3
  content: string;
4
+ type: CommentaryType;
4
5
  time: {
5
6
  minutes: number;
6
7
  seconds: number;
@@ -8,10 +9,24 @@ export interface CommentaryItem {
8
9
  };
9
10
  }
10
11
 
12
+ export type CommentaryType =
13
+ | 'assist'
14
+ | 'comment'
15
+ | 'full time'
16
+ | 'goal'
17
+ | 'half time'
18
+ | 'comment_important'
19
+ | 'kick off'
20
+ | 'penalty'
21
+ | 'red card'
22
+ | 'second_yellow red card'
23
+ | 'secondyellow card'
24
+ | 'substitution'
25
+ | 'var'
26
+ | 'yellow card';
27
+
11
28
  export interface Commentaries {
12
29
  [sportID: string]: {
13
- [matchID: string]: {
14
- [commentaryID: string]: CommentaryItem;
15
- };
30
+ [matchID: string]: CommentaryItem[];
16
31
  };
17
32
  }
@@ -1,4 +1,4 @@
1
- import { NumericID, TeamSide } from "../../global";
1
+ import { NumericID, TeamSide, TeamID } from "../../global";
2
2
 
3
3
  type EventType = "YELLOW_CARD" | "RED_CARD" | "GOAL" | "SUBSTITUTION";
4
4
 
@@ -12,7 +12,7 @@ interface BaseEvent {
12
12
  type: EventType;
13
13
  time: EventTime;
14
14
  teamType: TeamSide;
15
- teamId: NumericID;
15
+ teamId: TeamID;
16
16
  }
17
17
 
18
18
  interface RedCardEvent extends BaseEvent {
@@ -49,10 +49,10 @@ interface GoalEvent extends BaseEvent {
49
49
 
50
50
  interface SubstitutionEvent extends BaseEvent {
51
51
  type: "SUBSTITUTION";
52
- playerInId: NumericID;
53
- playerInName: string;
54
- playerInShirtName: string;
55
- playerInUniform: string;
52
+ playerInId?: NumericID;
53
+ playerInName?: string;
54
+ playerInShirtName?: string;
55
+ playerInUniform?: string;
56
56
  playerOutId: NumericID;
57
57
  playerOutName: string;
58
58
  playerOutShirtName: string;
@@ -1,11 +1,18 @@
1
- export interface HeadToHeadStats {
1
+ export interface TeamHeadToHeadStats {
2
2
  wins: number;
3
- homeWins: number;
4
- awayWins: number;
3
+ goals: number;
4
+ }
5
+
6
+ export interface TeamsHeadToHeadStats {
7
+ [teamId: string]: TeamHeadToHeadStats;
8
+ }
9
+
10
+ export interface HeadToHeadStats {
11
+ teamsData: TeamsHeadToHeadStats;
5
12
  draws: number;
6
13
  }
7
14
 
8
- // h2hId - "<teamAId>_<teamBId>"
15
+ // h2hId - "<teamAId>_<teamBId>" or "<teamBId>_<teamAId>"
9
16
 
10
17
  export interface HeadToHead {
11
18
  [sportId: string]: {
@@ -0,0 +1,10 @@
1
+ export interface MatchTeamPredicate {
2
+ // Winner of the current match will go to nextMatchWinnerId match
3
+ nextMatchWinnerId: string;
4
+ }
5
+
6
+ export interface MatchTeamPredicates {
7
+ [sportID: string]: {
8
+ [matchID: string]: MatchTeamPredicate;
9
+ }
10
+ }
@@ -0,0 +1,18 @@
1
+ export enum MatchOfficialType {
2
+ FourthOfficial = 'Fourth official',
3
+ Lineman1 = 'Lineman 1',
4
+ Lineman2 = 'Lineman 2',
5
+ Main = 'Main',
6
+ }
7
+
8
+ export interface MatchOfficial {
9
+ firstName: string;
10
+ lastName: string;
11
+ officialType: MatchOfficialType;
12
+ }
13
+
14
+ export interface MatchOfficials {
15
+ [sportID: string]: {
16
+ [matchID: string]: MatchOfficial[];
17
+ };
18
+ }
@@ -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,8 +1,9 @@
1
1
  export interface Score {
2
- home: number;
3
- away: number;
2
+ home: number | null;
3
+ away: number | null;
4
4
  }
5
5
 
6
+ // @TODO: change to firstHalf, fullTime, overtime
6
7
  export interface MatchPeriods{
7
8
  firstHalf: Score;
8
9
  secondHalf?: Score;
@@ -11,8 +12,8 @@ export interface MatchPeriods{
11
12
  }
12
13
 
13
14
  export interface MatchScore {
14
- home: number;
15
- away: number;
15
+ home: number | null;
16
+ away: number | null;
16
17
  periods: MatchPeriods;
17
18
  shootoutPenalties?: Score;
18
19
  }
@@ -3,36 +3,78 @@ export interface TeamsStats {
3
3
  away: number;
4
4
  }
5
5
 
6
- export interface MatchStats {
6
+ /**
7
+ * @see: https://sportsbroker.slite.com/app/channels/VOZ0prjzHu/notes/tOQ3uR_FUT
8
+ */
9
+ export interface MatchStats {
10
+ // possession
11
+ possessionPercentageLast15: TeamsStats,
12
+ possessionPercentageLast30: TeamsStats,
7
13
  possession: TeamsStats,
8
- attackingThirdPossession: TeamsStats,
9
- ownThirdPossession: TeamsStats,
10
- shotsOnTarget: TeamsStats,
14
+ possessionLosses: TeamsStats,
15
+ possessionWonAttThird: TeamsStats,
16
+ possessionWonDefThird: TeamsStats,
17
+ possessionWonMidThird: TeamsStats,
18
+
19
+ // shots
20
+ bigChanceCreated: TeamsStats,
21
+ bigChanceMissed: TeamsStats,
22
+ bigChanceScored: TeamsStats,
23
+ crossbarHits: TeamsStats,
24
+ postHitsLeft: TeamsStats,
25
+ postHitsRight: TeamsStats,
26
+ shots: TeamsStats,
11
27
  shotsOffTarget: TeamsStats,
12
- clearances: TeamsStats,
28
+ shotsOnTarget: TeamsStats,
29
+ woodwork: TeamsStats,
30
+
31
+ // attacking
32
+ goalAssists: TeamsStats,
33
+ freeKickAwarded: TeamsStats,
34
+ fastbreak: TeamsStats,
13
35
  corners: TeamsStats,
36
+ throws: TeamsStats,
14
37
  offsides: TeamsStats,
15
- passes: TeamsStats,
16
- interceptions: TeamsStats,
17
- penalties: TeamsStats,
18
- shots: TeamsStats,
19
- ownGoals: TeamsStats,
38
+
39
+ // defensive
40
+ fouls: TeamsStats,
20
41
  saves: TeamsStats,
21
- freeKickAwarded: TeamsStats,
22
- freeKickConceded: TeamsStats,
42
+ penaltySave: TeamsStats,
43
+ ownGoals: TeamsStats,
44
+ interceptionsInBox: TeamsStats,
45
+ clearance: TeamsStats,
46
+ interceptions: TeamsStats,
23
47
  crossBlocked: TeamsStats,
48
+ shotBlocked: TeamsStats,
24
49
  tackles: TeamsStats,
25
- touches: TeamsStats,
26
- yellowCards: TeamsStats,
27
- redCards: TeamsStats,
28
- foulsConceded: TeamsStats,
29
- groundDuelsWon: TeamsStats,
30
- aerialDuelsWon: TeamsStats,
31
- punches: TeamsStats,
32
- cornerKicks: TeamsStats,
33
- successfulPasses: TeamsStats,
50
+
51
+ //passing
52
+ passes: TeamsStats,
53
+ backwardPass: TeamsStats,
54
+ forwardPass: TeamsStats,
34
55
  successfulCrosses: TeamsStats,
56
+ unsuccessfulCrosses: TeamsStats,
57
+ successfulPasses: TeamsStats,
35
58
  unsuccessfulPasses: TeamsStats,
59
+ successfulLongBalls: TeamsStats,
60
+ unsuccessfulLongBalls: TeamsStats,
61
+ penaltyAreaEntries: TeamsStats,
62
+
63
+ // 1vs1
64
+ duelsWon: TeamsStats,
65
+ duelsLost: TeamsStats,
66
+ groundDuelsWon: TeamsStats,
67
+ groundDuelsLost: TeamsStats,
68
+ aerialDuelsWon: TeamsStats,
69
+ aerialDuelsLost: TeamsStats,
70
+ oneOnOneShotAttempt: TeamsStats,
71
+
72
+ // discipline
73
+ yellowCards: TeamsStats,
74
+ redCards: TeamsStats,
75
+ penaltyGoal: TeamsStats,
76
+ penaltyConceded: TeamsStats,
77
+ penaltyTaken: TeamsStats,
36
78
  }
37
79
 
38
80
  export interface Stats {
@@ -10,8 +10,8 @@ export interface MatchTeam {
10
10
  export interface Teams {
11
11
  [sportID: string]: {
12
12
  [matchID: string]: {
13
- home: MatchTeam;
14
- away: MatchTeam;
13
+ home?: MatchTeam;
14
+ away?: MatchTeam;
15
15
  };
16
16
  };
17
17
  }
@@ -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,6 +1,8 @@
1
1
  import { ISODate, Image, SeasonID } from "../../global";
2
+ import {Stages} from "./stages";
2
3
 
3
4
  export type SeasonState = 'UPCOMING' | 'ACTIVE' | 'FINISHED';
5
+ export type SeasonType = 'DOMESTIC' | 'INTERNATIONAL';
4
6
 
5
7
  export interface SeasonOverview {
6
8
  endDate: ISODate;
@@ -11,6 +13,9 @@ export interface SeasonOverview {
11
13
  nextSeasonId?: string;
12
14
  state: SeasonState;
13
15
  logo?: Image;
16
+ type: SeasonType;
17
+ countryCode?: string;
18
+ stages?: Stages;
14
19
  }
15
20
 
16
21
  /**
@@ -0,0 +1,12 @@
1
+ export interface Stage {
2
+ name: string;
3
+ matchesIds: { [matchId: string]: true };
4
+ }
5
+
6
+ export interface Stages {
7
+ [sportId: string]: {
8
+ [seasonId: string]: {
9
+ [stageId: string]: Stage;
10
+ }
11
+ }
12
+ }
@@ -8,9 +8,12 @@ export type NumericID = number;
8
8
  */
9
9
  export type MongoID = string;
10
10
 
11
+
12
+ export type UUID = string;
13
+
11
14
  export type UserID = MongoID;
12
15
 
13
- export type TeamID = MongoID;
16
+ export type TeamID = UUID;
14
17
 
15
18
  /**
16
19
  * @type ISO ISODate
@@ -24,7 +27,7 @@ export type SportID = "soccer" | string;
24
27
 
25
28
  export type Language = "en" | "de" | string;
26
29
 
27
- export type MatchID = MongoID;
30
+ export type MatchID = UUID;
28
31
 
29
32
  export type SeasonID = string;
30
33
 
@@ -66,3 +69,11 @@ export interface WithSeasons {
66
69
  }
67
70
 
68
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;
@@ -9,7 +20,10 @@ export interface Team {
9
20
 
10
21
  export interface Opponent {
11
22
  score: number;
23
+ name: string;
12
24
  teamId: string;
25
+ abbreviation: string;
26
+ logo?: Image;
13
27
  }
14
28
 
15
29
  export interface PreviousMatch {
@@ -42,11 +56,11 @@ export interface EventStatus {
42
56
 
43
57
  export interface MatchOverviewSnapshot {
44
58
  id: string;
45
- teams: {
46
- home: Team;
47
- away: Team;
59
+ teams?: {
60
+ home?: Team;
61
+ away?: Team;
48
62
  };
49
- score: {
63
+ score?: {
50
64
  home: number;
51
65
  away: number;
52
66
  };
@@ -54,6 +68,8 @@ export interface MatchOverviewSnapshot {
54
68
  home: Share;
55
69
  away: Share;
56
70
  };
71
+ stage?: Stage;
72
+ group?: Group;
57
73
  startDate: ISODate;
58
74
  roundNb: number;
59
75
  eventStatus: EventStatus;
@@ -1,20 +1,38 @@
1
1
  import { TeamRanking } from "../details/tables/ranking";
2
+ import {Image, MatchResult} from "../global";
3
+ import {Team} from "./matchOverviews";
4
+
5
+ export interface MatchOveriew {
6
+ vsTeam?: Team;
7
+ result?: MatchResult;
8
+ matchId?: string;
9
+ startDate?: string;
10
+ }
2
11
 
3
12
  export interface TeamTable {
13
+ name: string;
14
+ abbreviation: string;
15
+ logo: Image;
4
16
  ranking: TeamRanking;
17
+ groupId?: string;
5
18
  previousMatchId?: string;
6
19
  nextMatchId?: string;
20
+ nextMatch?: MatchOveriew;
21
+ previousMatch?: MatchOveriew;
22
+ }
23
+
24
+ export interface GroupTable {
25
+ name: string;
26
+ matchesIds: {[matchId: string]: true};
7
27
  }
8
28
 
9
29
  export interface TableSummary {
10
30
  groups: {
11
31
  [sportID: string]: {
12
32
  [seasonID: string]: {
13
- [groupID: string]: {
14
- [teamID: string]: TeamTable;
15
- };
16
- };
17
- };
33
+ [groupId: string]: GroupTable;
34
+ }
35
+ }
18
36
  };
19
37
  leagues: {
20
38
  [sportID: string]: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sportsbroker/firebase-structure",
3
- "version": "3.24.0-2",
3
+ "version": "3.24.0-20",
4
4
  "description": "Firebase structure typings",
5
5
  "main": "index.d.ts",
6
6
  "repository": {
@@ -1,13 +0,0 @@
1
- types:
2
- - build
3
- - chore
4
- - ci
5
- - docs
6
- - feat
7
- - fix
8
- - improvement
9
- - perf
10
- - refactor
11
- - revert
12
- - style
13
- - test
@@ -1,13 +0,0 @@
1
- export interface MatchReferees {
2
- referee: string;
3
- refereeAssistants: string[];
4
- fourthOfficial: string;
5
- varOfficial: string;
6
- varAssistants: string[];
7
- }
8
-
9
- export interface Referees {
10
- [sportID: string]: {
11
- [matchID: string]: MatchReferees;
12
- };
13
- }